577 lines
28 KiB
C#
577 lines
28 KiB
C#
namespace PrivaPub
|
|||
|
|
{
|
||
|
|
public static class ApiPaths
|
||
|
|
{
|
||
|
|
public static class Token
|
||
|
|
{
|
||
|
|
public const string POST_Exchange = "/oauth/token";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Accounts
|
||
|
|
{
|
||
|
|
public const string GET_VerifyCredentials = "/api/v1/accounts/verify_credentials";
|
||
|
|
public const string PATCH_UpdateCredentials = "/api/v1/accounts/update_credentials";
|
||
|
|
public const string DELETE_DeleteAvatar = "/api/v1/profile/avatar";
|
||
|
|
public const string DELETE_DeleteHeader = "/api/v1/profile/header";
|
||
|
|
public const string GET_Lookup = "/api/v1/accounts/lookup";
|
||
|
|
public const string GET_Relationships = "/api/v1/accounts/relationships";
|
||
|
|
public const string GET_Search = "/api/v1/accounts/search";
|
||
|
|
public const string GET_Many = "/api/v1/accounts";
|
||
|
|
public const string GET_M_Get = "/api/v1/accounts/{id}";
|
||
|
|
public const string GET_M_Statuses = "/api/v1/accounts/{id}/statuses";
|
||
|
|
public const string GET_M_Followers = "/api/v1/accounts/{id}/followers";
|
||
|
|
public const string GET_M_Following = "/api/v1/accounts/{id}/following";
|
||
|
|
public const string GET_Feeds = "/api/v1/feeds";
|
||
|
|
public const string POST_M_Follow = "/api/v1/accounts/{id}/follow";
|
||
|
|
public const string POST_M_Unfollow = "/api/v1/accounts/{id}/unfollow";
|
||
|
|
public const string POST_M_RemoveFromFollowers = "/api/v1/accounts/{id}/remove_from_followers";
|
||
|
|
public const string POST_M_Block = "/api/v1/accounts/{id}/block";
|
||
|
|
public const string POST_M_Unblock = "/api/v1/accounts/{id}/unblock";
|
||
|
|
public const string POST_M_Mute = "/api/v1/accounts/{id}/mute";
|
||
|
|
public const string POST_M_Unmute = "/api/v1/accounts/{id}/unmute";
|
||
|
|
public const string GET_Blocks = "/api/v1/blocks";
|
||
|
|
public const string GET_Mutes = "/api/v1/mutes";
|
||
|
|
public const string GET_DomainBlocks = "/api/v1/domain_blocks";
|
||
|
|
public const string GET_PreviewDomainBlock = "/api/v1/domain_blocks/preview";
|
||
|
|
public const string POST_BlockDomain = "/api/v1/domain_blocks";
|
||
|
|
public const string DELETE_UnblockDomain = "/api/v1/domain_blocks";
|
||
|
|
public const string GET_FollowRequests = "/api/v1/follow_requests";
|
||
|
|
public const string POST_M_Authorize = "/api/v1/follow_requests/{id}/authorize";
|
||
|
|
public const string POST_M_Reject = "/api/v1/follow_requests/{id}/reject";
|
||
|
|
public const string GET_FamiliarFollowers = "/api/v1/accounts/familiar_followers";
|
||
|
|
public const string POST_M_Endorse = "/api/v1/accounts/{id}/pin";
|
||
|
|
public const string POST_M_EndorseV1 = "/api/v1/accounts/{id}/endorse";
|
||
|
|
public const string POST_M_Unendorse = "/api/v1/accounts/{id}/unpin";
|
||
|
|
public const string POST_M_UnendorseV1 = "/api/v1/accounts/{id}/unendorse";
|
||
|
|
public const string GET_Endorsements = "/api/v1/endorsements";
|
||
|
|
public const string GET_M_EndorsementsOfAccount = "/api/v1/accounts/{id}/endorsements";
|
||
|
|
public const string POST_M_Note = "/api/v1/accounts/{id}/note";
|
||
|
|
public const string GET_Preferences = "/api/v1/preferences";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Announcements
|
||
|
|
{
|
||
|
|
public const string GET_List = "/api/v1/announcements";
|
||
|
|
public const string POST_M_Dismiss = "/api/v1/announcements/{id}/dismiss";
|
||
|
|
public const string PUT_M_React = "/api/v1/announcements/{id}/reactions/{name}";
|
||
|
|
public const string DELETE_M_Unreact = "/api/v1/announcements/{id}/reactions/{name}";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Apps
|
||
|
|
{
|
||
|
|
public const string POST_Create = "/api/v1/apps";
|
||
|
|
public const string GET_Verify = "/api/v1/apps/verify_credentials";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Cdns
|
||
|
|
{
|
||
|
|
public const string GET_List = "/api/privapub/v1/cdns";
|
||
|
|
public const string GET_M_Detail = "/api/privapub/v1/cdns/{key}";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class CustomEmojis
|
||
|
|
{
|
||
|
|
public const string GET_List = "/api/v1/custom_emojis";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class FeaturedTags
|
||
|
|
{
|
||
|
|
public const string GET_Mine = "/api/v1/featured_tags";
|
||
|
|
public const string POST_Feature = "/api/v1/featured_tags";
|
||
|
|
public const string DELETE_M_Unfeature = "/api/v1/featured_tags/{id}";
|
||
|
|
public const string GET_Suggestions = "/api/v1/featured_tags/suggestions";
|
||
|
|
public const string GET_M_OfAccount = "/api/v1/accounts/{id}/featured_tags";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Filters
|
||
|
|
{
|
||
|
|
public const string GET_All = "/api/v2/filters";
|
||
|
|
public const string GET_M_One = "/api/v2/filters/{id}";
|
||
|
|
public const string POST_Create = "/api/v2/filters";
|
||
|
|
public const string PUT_M_Update = "/api/v2/filters/{id}";
|
||
|
|
public const string DELETE_M_Delete = "/api/v2/filters/{id}";
|
||
|
|
public const string GET_M_Keywords = "/api/v2/filters/{id}/keywords";
|
||
|
|
public const string POST_M_AddKeyword = "/api/v2/filters/{id}/keywords";
|
||
|
|
public const string GET_M_Keyword = "/api/v2/filters/keywords/{id}";
|
||
|
|
public const string PUT_M_UpdateKeyword = "/api/v2/filters/keywords/{id}";
|
||
|
|
public const string DELETE_M_DeleteKeyword = "/api/v2/filters/keywords/{id}";
|
||
|
|
public const string GET_M_Statuses = "/api/v2/filters/{id}/statuses";
|
||
|
|
public const string POST_M_AddStatus = "/api/v2/filters/{id}/statuses";
|
||
|
|
public const string GET_M_Status = "/api/v2/filters/statuses/{id}";
|
||
|
|
public const string DELETE_M_DeleteStatus = "/api/v2/filters/statuses/{id}";
|
||
|
|
public const string GET_AllV1 = "/api/v1/filters";
|
||
|
|
public const string GET_M_OneV1 = "/api/v1/filters/{id}";
|
||
|
|
public const string POST_CreateV1 = "/api/v1/filters";
|
||
|
|
public const string PUT_M_UpdateV1 = "/api/v1/filters/{id}";
|
||
|
|
public const string DELETE_M_DeleteV1 = "/api/v1/filters/{id}";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Instance
|
||
|
|
{
|
||
|
|
public const string GET_V1 = "/api/v1/instance";
|
||
|
|
public const string GET_V2 = "/api/v2/instance";
|
||
|
|
public const string GET_Peers = "/api/v1/instance/peers";
|
||
|
|
public const string GET_Activity = "/api/v1/instance/activity";
|
||
|
|
public const string GET_InstanceRules = "/api/v1/instance/rules";
|
||
|
|
public const string GET_ExtendedDescription = "/api/v1/instance/extended_description";
|
||
|
|
public const string GET_PrivacyPolicy = "/api/v1/instance/privacy_policy";
|
||
|
|
public const string GET_TermsOfService = "/api/v1/instance/terms_of_service";
|
||
|
|
public const string GET_M_TermsOfServiceOn = "/api/v1/instance/terms_of_service/{date}";
|
||
|
|
public const string GET_DomainBlocks = "/api/v1/instance/domain_blocks";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Lists
|
||
|
|
{
|
||
|
|
public const string GET_All = "/api/v1/lists";
|
||
|
|
public const string GET_M_One = "/api/v1/lists/{id}";
|
||
|
|
public const string POST_Create = "/api/v1/lists";
|
||
|
|
public const string PUT_M_Update = "/api/v1/lists/{id}";
|
||
|
|
public const string DELETE_M_Delete = "/api/v1/lists/{id}";
|
||
|
|
public const string GET_M_Accounts = "/api/v1/lists/{id}/accounts";
|
||
|
|
public const string POST_M_Add = "/api/v1/lists/{id}/accounts";
|
||
|
|
public const string DELETE_M_Remove = "/api/v1/lists/{id}/accounts";
|
||
|
|
public const string GET_M_Containing = "/api/v1/accounts/{id}/lists";
|
||
|
|
public const string GET_M_Timeline = "/api/v1/timelines/list/{id}";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Media
|
||
|
|
{
|
||
|
|
public const string POST_Upload = "/api/v1/media";
|
||
|
|
public const string POST_UploadV2 = "/api/v2/media";
|
||
|
|
public const string GET_M_Get = "/api/v1/media/{id}";
|
||
|
|
public const string DELETE_M_Delete = "/api/v1/media/{id}";
|
||
|
|
public const string PUT_M_Update = "/api/v1/media/{id}";
|
||
|
|
public const string GET_M_Proxy = "/media/proxy/{signature}/{encoded}";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class NotificationRequests
|
||
|
|
{
|
||
|
|
public const string GET_Policy = "/api/v2/notifications/policy";
|
||
|
|
public const string PATCH_SetPolicy = "/api/v2/notifications/policy";
|
||
|
|
public const string PUT_SetPolicy = "/api/v2/notifications/policy";
|
||
|
|
public const string GET_PolicyV1 = "/api/v1/notifications/policy";
|
||
|
|
public const string PUT_SetPolicyV1 = "/api/v1/notifications/policy";
|
||
|
|
public const string PATCH_SetPolicyV1 = "/api/v1/notifications/policy";
|
||
|
|
public const string GET_Requests = "/api/v1/notifications/requests";
|
||
|
|
public const string GET_Merged = "/api/v1/notifications/requests/merged";
|
||
|
|
public const string GET_M_Request = "/api/v1/notifications/requests/{id}";
|
||
|
|
public const string POST_M_Accept = "/api/v1/notifications/requests/{id}/accept";
|
||
|
|
public const string POST_M_Dismiss = "/api/v1/notifications/requests/{id}/dismiss";
|
||
|
|
public const string POST_AcceptMany = "/api/v1/notifications/requests/accept";
|
||
|
|
public const string POST_DismissMany = "/api/v1/notifications/requests/dismiss";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Polls
|
||
|
|
{
|
||
|
|
public const string GET_M_Get = "/api/v1/polls/{id}";
|
||
|
|
public const string POST_M_Vote = "/api/v1/polls/{id}/votes";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Provenance
|
||
|
|
{
|
||
|
|
public const string GET_M_Status = "/api/privapub/v1/statuses/{id}/provenance";
|
||
|
|
public const string GET_M_Instance = "/api/privapub/v1/instances/{host}";
|
||
|
|
public const string GET_Instances = "/api/privapub/v1/instances";
|
||
|
|
public const string GET_M_History = "/api/privapub/v1/instances/{host}/history";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Push
|
||
|
|
{
|
||
|
|
public const string POST_Create = "/api/v1/push/subscription";
|
||
|
|
public const string GET_Show = "/api/v1/push/subscription";
|
||
|
|
public const string PUT_Update = "/api/v1/push/subscription";
|
||
|
|
public const string DELETE_Delete = "/api/v1/push/subscription";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Reactions
|
||
|
|
{
|
||
|
|
public const string GET_M_List = "/api/v1/pleroma/statuses/{id}/reactions";
|
||
|
|
public const string PUT_M_React = "/api/v1/pleroma/statuses/{id}/reactions/{emoji}";
|
||
|
|
public const string DELETE_M_Unreact = "/api/v1/pleroma/statuses/{id}/reactions/{emoji}";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Reports
|
||
|
|
{
|
||
|
|
public const string POST_Create = "/api/v1/reports";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class ScheduledStatuses
|
||
|
|
{
|
||
|
|
public const string GET_All = "/api/v1/scheduled_statuses";
|
||
|
|
public const string GET_M_One = "/api/v1/scheduled_statuses/{id}";
|
||
|
|
public const string PUT_M_Move = "/api/v1/scheduled_statuses/{id}";
|
||
|
|
public const string DELETE_M_Drop = "/api/v1/scheduled_statuses/{id}";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Search
|
||
|
|
{
|
||
|
|
public const string GET_Search = "/api/v2/search";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Stubs
|
||
|
|
{
|
||
|
|
public const string GET_LinkTimeline = "/api/v1/timelines/link";
|
||
|
|
public const string GET_M_IdentityProofs = "/api/v1/accounts/{id}/identity_proofs";
|
||
|
|
public const string GET_Languages = "/api/v1/instance/languages";
|
||
|
|
public const string GET_TranslationLanguages = "/api/v1/instance/translation_languages";
|
||
|
|
public const string POST_M_Translate = "/api/v1/statuses/{id}/translate";
|
||
|
|
public const string GET_AnnualReports = "/api/v1/annual_reports";
|
||
|
|
public const string GET_M_AnnualReports = "/api/v1/annual_reports/{year}";
|
||
|
|
public const string POST_M_ReadAnnualReport = "/api/v1/annual_reports/{year}/read";
|
||
|
|
public const string POST_Register = "/api/v1/accounts";
|
||
|
|
public const string POST_ResendConfirmation = "/api/v1/emails/confirmations";
|
||
|
|
public const string GET_CheckConfirmation = "/api/v1/emails/check_confirmation";
|
||
|
|
public const string GET_SearchPeers = "/api/v1/peers/search";
|
||
|
|
public const string GET_M_AsyncRefresh = "/api/v1_alpha/async_refreshes/{id}";
|
||
|
|
public const string GET_M_Admin = "/api/v1/admin/{**rest}";
|
||
|
|
public const string POST_M_Admin = "/api/v1/admin/{**rest}";
|
||
|
|
public const string PUT_M_Admin = "/api/v1/admin/{**rest}";
|
||
|
|
public const string PATCH_M_Admin = "/api/v1/admin/{**rest}";
|
||
|
|
public const string DELETE_M_Admin = "/api/v1/admin/{**rest}";
|
||
|
|
public const string GET_M_AdminV2 = "/api/v2/admin/{**rest}";
|
||
|
|
public const string POST_M_AdminV2 = "/api/v2/admin/{**rest}";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Statuses
|
||
|
|
{
|
||
|
|
public const string POST_Create = "/api/v1/statuses";
|
||
|
|
public const string GET_Many = "/api/v1/statuses";
|
||
|
|
public const string GET_M_Get = "/api/v1/statuses/{id}";
|
||
|
|
public const string PUT_M_Edit = "/api/v1/statuses/{id}";
|
||
|
|
public const string DELETE_M_Delete = "/api/v1/statuses/{id}";
|
||
|
|
public const string GET_M_Context = "/api/v1/statuses/{id}/context";
|
||
|
|
public const string GET_M_History = "/api/v1/statuses/{id}/history";
|
||
|
|
public const string GET_M_Source = "/api/v1/statuses/{id}/source";
|
||
|
|
public const string POST_M_Join = "/api/privapub/v1/statuses/{id}/join";
|
||
|
|
public const string POST_M_Leave = "/api/privapub/v1/statuses/{id}/leave";
|
||
|
|
public const string POST_M_Favourite = "/api/v1/statuses/{id}/favourite";
|
||
|
|
public const string POST_M_Unfavourite = "/api/v1/statuses/{id}/unfavourite";
|
||
|
|
public const string POST_M_Downvote = "/api/v1/statuses/{id}/downvote";
|
||
|
|
public const string POST_M_Undownvote = "/api/v1/statuses/{id}/undownvote";
|
||
|
|
public const string POST_M_Reblog = "/api/v1/statuses/{id}/reblog";
|
||
|
|
public const string POST_M_Unreblog = "/api/v1/statuses/{id}/unreblog";
|
||
|
|
public const string GET_M_FavouritedBy = "/api/v1/statuses/{id}/favourited_by";
|
||
|
|
public const string GET_M_RebloggedBy = "/api/v1/statuses/{id}/reblogged_by";
|
||
|
|
public const string GET_M_Quotes = "/api/v1/statuses/{id}/quotes";
|
||
|
|
public const string POST_M_RevokeQuote = "/api/v1/statuses/{id}/quotes/{quotingId}/revoke";
|
||
|
|
public const string PUT_M_InteractionPolicy = "/api/v1/statuses/{id}/interaction_policy";
|
||
|
|
public const string POST_M_Bookmark = "/api/v1/statuses/{id}/bookmark";
|
||
|
|
public const string POST_M_Unbookmark = "/api/v1/statuses/{id}/unbookmark";
|
||
|
|
public const string GET_Bookmarks = "/api/v1/bookmarks";
|
||
|
|
public const string POST_M_Mute = "/api/v1/statuses/{id}/mute";
|
||
|
|
public const string POST_M_Unmute = "/api/v1/statuses/{id}/unmute";
|
||
|
|
public const string POST_M_Pin = "/api/v1/statuses/{id}/pin";
|
||
|
|
public const string POST_M_Unpin = "/api/v1/statuses/{id}/unpin";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Streaming
|
||
|
|
{
|
||
|
|
public const string GET_Health = "/api/v1/streaming/health";
|
||
|
|
public const string GET_Socket = "/api/v1/streaming";
|
||
|
|
public const string GET_M_Events = "/api/v1/streaming/{*stream}";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Suggestions
|
||
|
|
{
|
||
|
|
public const string GET_V1 = "/api/v1/suggestions";
|
||
|
|
public const string GET_V2 = "/api/v2/suggestions";
|
||
|
|
public const string DELETE_M_Dismiss = "/api/v1/suggestions/{accountId}";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Tags
|
||
|
|
{
|
||
|
|
public const string GET_M_Tag = "/api/v1/tags/{name}";
|
||
|
|
public const string POST_M_Follow = "/api/v1/tags/{name}/follow";
|
||
|
|
public const string POST_M_Unfollow = "/api/v1/tags/{name}/unfollow";
|
||
|
|
public const string POST_M_Feature = "/api/v1/tags/{name}/feature";
|
||
|
|
public const string POST_M_Unfeature = "/api/v1/tags/{name}/unfeature";
|
||
|
|
public const string GET_Followed = "/api/v1/followed_tags";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Timelines
|
||
|
|
{
|
||
|
|
public const string GET_Home = "/api/v1/timelines/home";
|
||
|
|
public const string GET_Public = "/api/v1/timelines/public";
|
||
|
|
public const string GET_M_Feed = "/api/v1/timelines/feed/{id}";
|
||
|
|
public const string GET_M_Tag = "/api/v1/timelines/tag/{hashtag}";
|
||
|
|
public const string GET_Favourites = "/api/v1/favourites";
|
||
|
|
public const string GET_Conversations = "/api/v1/conversations";
|
||
|
|
public const string POST_M_ReadConversation = "/api/v1/conversations/{id}/read";
|
||
|
|
public const string POST_M_UnreadConversation = "/api/v1/conversations/{id}/unread";
|
||
|
|
public const string DELETE_M_RemoveConversation = "/api/v1/conversations/{id}";
|
||
|
|
public const string GET_Markers = "/api/v1/markers";
|
||
|
|
public const string POST_SaveMarkers = "/api/v1/markers";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Notifications
|
||
|
|
{
|
||
|
|
public const string GET_List = "/api/v1/notifications";
|
||
|
|
public const string GET_GroupedList = "/api/v2/notifications";
|
||
|
|
public const string GET_GroupedUnreadCount = "/api/v2/notifications/unread_count";
|
||
|
|
public const string GET_M_Group = "/api/v2/notifications/{groupKey}";
|
||
|
|
public const string GET_M_GroupAccounts = "/api/v2/notifications/{groupKey}/accounts";
|
||
|
|
public const string POST_M_DismissGroup = "/api/v2/notifications/{groupKey}/dismiss";
|
||
|
|
public const string GET_M_Get = "/api/v1/notifications/{id}";
|
||
|
|
public const string POST_Clear = "/api/v1/notifications/clear";
|
||
|
|
public const string POST_ClearV2 = "/api/v2/notifications/clear";
|
||
|
|
public const string POST_M_Dismiss = "/api/v1/notifications/{id}/dismiss";
|
||
|
|
public const string GET_UnreadCount = "/api/v1/notifications/unread_count";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Trends
|
||
|
|
{
|
||
|
|
public const string GET_Tags = "/api/v1/trends";
|
||
|
|
public const string GET_TagsV1 = "/api/v1/trends/tags";
|
||
|
|
public const string GET_Statuses = "/api/v1/trends/statuses";
|
||
|
|
public const string GET_Links = "/api/v1/trends/links";
|
||
|
|
public const string GET_Directory = "/api/v1/directory";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Admin
|
||
|
|
{
|
||
|
|
public const string Prefix = "clientapi/admin";
|
||
|
|
public const string DELETE_RemoveUsers = "/clientapi/admin/remove/users";
|
||
|
|
public const string POST_BanUsers = "/clientapi/admin/ban/users";
|
||
|
|
public const string POST_UnbanUsers = "/clientapi/admin/unban/users";
|
||
|
|
public const string GET_Roots = "/clientapi/admin/roots";
|
||
|
|
public const string GET_M_Root = "/clientapi/admin/roots/{id}";
|
||
|
|
public const string POST_M_Role = "/clientapi/admin/roots/{id}/role";
|
||
|
|
public const string POST_M_ResetTotp = "/clientapi/admin/roots/{id}/totp/reset";
|
||
|
|
public const string POST_M_DeletePersona = "/clientapi/admin/personas/{id}/delete";
|
||
|
|
public const string POST_M_DeleteGroup = "/clientapi/admin/groups/{id}/delete";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Backup
|
||
|
|
{
|
||
|
|
public const string Prefix = "clientapi/admin/backups";
|
||
|
|
public const string GET_List = "";
|
||
|
|
public const string POST_Create = "";
|
||
|
|
public const string DELETE_M_Delete = "{id}";
|
||
|
|
public const string POST_M_Ticket = "{id}/ticket";
|
||
|
|
public const string GET_M_Download = "download/{ticket}";
|
||
|
|
public const string POST_StartUpload = "uploads";
|
||
|
|
public const string GET_M_Upload = "uploads/{id}";
|
||
|
|
public const string PUT_M_Append = "uploads/{id}";
|
||
|
|
public const string POST_M_FinishUpload = "uploads/{id}/finish";
|
||
|
|
public const string DELETE_M_CancelUpload = "uploads/{id}";
|
||
|
|
public const string POST_M_Restore = "{id}/restore";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Data
|
||
|
|
{
|
||
|
|
public const string Prefix = "clientapi/data";
|
||
|
|
public const string GET_Ping = "/clientapi/data/ping";
|
||
|
|
public const string GET_CurrentVersion = "/clientapi/data/current-version";
|
||
|
|
public const string GET_Languages = "/clientapi/data/languages";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class DomainBlock
|
||
|
|
{
|
||
|
|
public const string Prefix = "clientapi/admin/domainblocks";
|
||
|
|
public const string GET_List = "/clientapi/admin/domainblocks/list";
|
||
|
|
public const string POST_Insert = "/clientapi/admin/domainblocks/insert";
|
||
|
|
public const string POST_Delete = "/clientapi/admin/domainblocks/delete";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class EmojiAdmin
|
||
|
|
{
|
||
|
|
public const string Prefix = "clientapi/admin/emoji";
|
||
|
|
public const string GET_List = "list";
|
||
|
|
public const string POST_Insert = "insert";
|
||
|
|
public const string POST_Update = "update";
|
||
|
|
public const string POST_Delete = "delete";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Group
|
||
|
|
{
|
||
|
|
public const string Prefix = "clientapi/group";
|
||
|
|
public const string GET_List = "/clientapi/group/list";
|
||
|
|
public const string POST_Insert = "/clientapi/group/insert";
|
||
|
|
public const string POST_Update = "/clientapi/group/update";
|
||
|
|
public const string POST_Join = "/clientapi/group/join";
|
||
|
|
public const string POST_Leave = "/clientapi/group/leave";
|
||
|
|
public const string POST_Approve = "/clientapi/group/approve";
|
||
|
|
public const string GET_Members = "/clientapi/group/members";
|
||
|
|
public const string POST_Reject = "/clientapi/group/reject";
|
||
|
|
public const string POST_Remove = "/clientapi/group/remove";
|
||
|
|
public const string POST_Delete = "/clientapi/group/delete";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class InstanceAdmin
|
||
|
|
{
|
||
|
|
public const string Prefix = "clientapi/admin";
|
||
|
|
public const string GET_Settings = "/clientapi/admin/settings";
|
||
|
|
public const string POST_SaveSettings = "/clientapi/admin/settings";
|
||
|
|
public const string POST_SaveThumbnail = "/clientapi/admin/settings/thumbnail";
|
||
|
|
public const string DELETE_DeleteThumbnail = "/clientapi/admin/settings/thumbnail";
|
||
|
|
public const string GET_Announcements = "/clientapi/admin/announcements/list";
|
||
|
|
public const string POST_InsertAnnouncement = "/clientapi/admin/announcements/insert";
|
||
|
|
public const string POST_UpdateAnnouncement = "/clientapi/admin/announcements/update";
|
||
|
|
public const string POST_DeleteAnnouncement = "/clientapi/admin/announcements/delete";
|
||
|
|
public const string GET_StaffPicks = "/clientapi/admin/staff-picks";
|
||
|
|
public const string POST_InsertStaffPick = "/clientapi/admin/staff-picks/insert";
|
||
|
|
public const string POST_DeleteStaffPick = "/clientapi/admin/staff-picks/delete";
|
||
|
|
public const string GET_Relays = "/clientapi/admin/relays";
|
||
|
|
public const string POST_InsertRelay = "/clientapi/admin/relays/insert";
|
||
|
|
public const string POST_DeleteRelay = "/clientapi/admin/relays/delete";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Moderator
|
||
|
|
{
|
||
|
|
public const string Prefix = "clientapi/moderator";
|
||
|
|
public const string GET_Reports = "/clientapi/moderator/reports";
|
||
|
|
public const string POST_M_Resolve = "/clientapi/moderator/reports/{id}/resolve";
|
||
|
|
public const string GET_Accounts = "/clientapi/moderator/accounts";
|
||
|
|
public const string GET_Moderated = "/clientapi/moderator/accounts/moderated";
|
||
|
|
public const string GET_M_Account = "/clientapi/moderator/accounts/{id}";
|
||
|
|
public const string POST_Moderate = "/clientapi/moderator/accounts/moderate";
|
||
|
|
public const string POST_RemovePost = "/clientapi/moderator/posts/remove";
|
||
|
|
public const string GET_Log = "/clientapi/moderator/log";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class PersonaArchive
|
||
|
|
{
|
||
|
|
public const string Prefix = "clientapi/persona";
|
||
|
|
public const string GET_M_Status = "{avatarId}/archive";
|
||
|
|
public const string POST_M_Export = "{avatarId}/archive";
|
||
|
|
public const string POST_M_Ticket = "{avatarId}/archive/ticket";
|
||
|
|
public const string GET_M_Download = "archive/download/{ticket}";
|
||
|
|
public const string POST_StartUpload = "archive/uploads";
|
||
|
|
public const string GET_M_Upload = "archive/uploads/{id}";
|
||
|
|
public const string PUT_M_Append = "archive/uploads/{id}";
|
||
|
|
public const string DELETE_M_CancelUpload = "archive/uploads/{id}";
|
||
|
|
public const string POST_M_Import = "{avatarId}/archive/import";
|
||
|
|
public const string POST_M_Stop = "{avatarId}/archive/import/stop";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Post
|
||
|
|
{
|
||
|
|
public const string Prefix = "clientapi/post";
|
||
|
|
public const string GET_List = "/clientapi/post/list";
|
||
|
|
public const string POST_Insert = "/clientapi/post/insert";
|
||
|
|
public const string GET_Nearby = "/clientapi/post/nearby";
|
||
|
|
public const string POST_Update = "/clientapi/post/update";
|
||
|
|
public const string POST_Delete = "/clientapi/post/delete";
|
||
|
|
public const string GET_Dms = "/clientapi/dm/list";
|
||
|
|
public const string POST_InsertDm = "/clientapi/dm/insert";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class PrivateAvatar
|
||
|
|
{
|
||
|
|
public const string Prefix = "clientapi/avatar/private";
|
||
|
|
public const string GET_GetAvatars = "/clientapi/avatar/private/list";
|
||
|
|
public const string POST_InsertAvatar = "/clientapi/avatar/private/insert";
|
||
|
|
public const string POST_DeleteAvatar = "/clientapi/avatar/private/delete";
|
||
|
|
public const string GET_Preferences = "/clientapi/avatar/private/preferences";
|
||
|
|
public const string POST_SavePreferences = "/clientapi/avatar/private/preferences";
|
||
|
|
public const string POST_UpdateAvatar = "/clientapi/avatar/private/update";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class RootUser
|
||
|
|
{
|
||
|
|
public const string Prefix = "clientapi/user";
|
||
|
|
public const string POST_SignUp = "/clientapi/user/signup";
|
||
|
|
public const string POST_Login = "/clientapi/user/login";
|
||
|
|
public const string POST_InvitationSignUp = "/clientapi/user/invitation/signup";
|
||
|
|
public const string POST_InvitationLogin = "/clientapi/user/invitation/login";
|
||
|
|
public const string GET_Setup = "/clientapi/user/setup";
|
||
|
|
public const string POST_SetUp = "/clientapi/user/setup";
|
||
|
|
public const string GET_Logout = "/clientapi/user/logout";
|
||
|
|
public const string POST_LogoutEverywhere = "/clientapi/user/logout/everywhere";
|
||
|
|
public const string POST_UpdateUser = "/clientapi/user/update";
|
||
|
|
public const string GET_Account = "/clientapi/user/account";
|
||
|
|
public const string POST_RequestEmailChange = "/clientapi/user/email";
|
||
|
|
public const string POST_VerifyEmail = "/clientapi/user/email/verify";
|
||
|
|
public const string POST_TotpSetup = "/clientapi/user/totp/setup";
|
||
|
|
public const string POST_TotpEnable = "/clientapi/user/totp/enable";
|
||
|
|
public const string POST_TotpDisable = "/clientapi/user/totp/disable";
|
||
|
|
public const string POST_RemoveEmail = "/clientapi/user/email/remove";
|
||
|
|
public const string POST_UpdateUserSettings = "/clientapi/user/update/settings";
|
||
|
|
public const string POST_UpdatePassword = "/clientapi/user/update/password";
|
||
|
|
public const string GET_GetStorage = "/clientapi/user/storage";
|
||
|
|
public const string GET_GetUserSettings = "/clientapi/user/settings";
|
||
|
|
public const string POST_RecoverPassword = "/clientapi/user/recover/password";
|
||
|
|
public const string POST_IsValidRecoveryCode = "/clientapi/user/recover/valid";
|
||
|
|
public const string POST_ChangePassword = "/clientapi/user/recover/update/password";
|
||
|
|
public const string POST_RemoveSelf = "/clientapi/user/delete";
|
||
|
|
public const string GET_SniffAgain = "/clientapi/user/sniff/again";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Social
|
||
|
|
{
|
||
|
|
public const string Prefix = "clientapi/social";
|
||
|
|
public const string POST_Follow = "/clientapi/follow";
|
||
|
|
public const string POST_Unfollow = "/clientapi/unfollow";
|
||
|
|
public const string GET_Following = "/clientapi/following";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Statistics
|
||
|
|
{
|
||
|
|
public const string Prefix = "clientapi/admin/statistics";
|
||
|
|
public const string GET_Crawler = "/clientapi/admin/statistics/crawler";
|
||
|
|
public const string GET_Overview = "/clientapi/admin/statistics/overview";
|
||
|
|
public const string GET_Hosts = "/clientapi/admin/statistics/hosts";
|
||
|
|
public const string GET_M_Host = "/clientapi/admin/statistics/hosts/{host}";
|
||
|
|
public const string GET_Events = "/clientapi/admin/statistics/events";
|
||
|
|
public const string GET_Server = "/clientapi/admin/statistics/server";
|
||
|
|
public const string POST_M_Rollup = "/clientapi/admin/statistics/rollups/{day}";
|
||
|
|
public const string POST_M_Describe = "/clientapi/admin/statistics/hosts/{host}/describe";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Timeline
|
||
|
|
{
|
||
|
|
public const string Prefix = "clientapi/timeline";
|
||
|
|
public const string GET_Home = "/clientapi/timeline/home";
|
||
|
|
public const string GET_Notifications = "/clientapi/notifications";
|
||
|
|
public const string POST_Read = "/clientapi/notifications/read";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Emojis
|
||
|
|
{
|
||
|
|
public const string GET_Get = "/";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Peasants
|
||
|
|
{
|
||
|
|
public const string Prefix = "peasants";
|
||
|
|
public const string GET_M_GetActor = "{actor}";
|
||
|
|
public const string GET_Root = "/";
|
||
|
|
public const string GET_M_Outbox = "{actor}/anus";
|
||
|
|
public const string GET_M_Followers = "{actor}/groupies";
|
||
|
|
public const string GET_M_Wall = "{actor}/";
|
||
|
|
public const string GET_M_RollCall = "{actor}/groupies/roll-call";
|
||
|
|
public const string GET_M_Following = "{actor}/stalking";
|
||
|
|
public const string GET_M_Members = "{actor}/flock";
|
||
|
|
public const string GET_M_Moderators = "{actor}/wardens";
|
||
|
|
public const string GET_M_Featured = "{actor}/trophies";
|
||
|
|
public const string GET_M_FeaturedTags = "{actor}/tattoos";
|
||
|
|
public const string GET_M_Post = "{actor}/scribbles/{postId}";
|
||
|
|
public const string GET_M_Replies = "{actor}/scribbles/{postId}/replies";
|
||
|
|
public const string GET_M_Context = "{actor}/scribbles/{postId}/context";
|
||
|
|
public const string GET_M_ParrotLicence = "{actor}/parrot-licences/{licenceId}";
|
||
|
|
public const string GET_M_Grunt = "{actor}/grunts/{activityId}";
|
||
|
|
public const string GET_M_Whispers = "{actor}/whispers/{conversationId}";
|
||
|
|
public const string POST_M_Inbox = "{actor}/mouth";
|
||
|
|
public const string POST_M_ActorSharedInbox = "{actor}/human-centipede";
|
||
|
|
public const string POST_SharedInbox = "/human-centipede";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Users
|
||
|
|
{
|
||
|
|
public const string Prefix = "users";
|
||
|
|
public const string GET_M_GetActor = "{actor}";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class WellKnown
|
||
|
|
{
|
||
|
|
public const string GET_WebFinger = "/.well-known/webfinger";
|
||
|
|
public const string GET_NodeInfoLinks = "/.well-known/nodeinfo";
|
||
|
|
public const string GET_M_NodeInfo = "/nodeinfo/{version:regex(^2\\.[[01]]$)}";
|
||
|
|
}
|
||
|
|
|
||
|
|
public static class Build
|
||
|
|
{
|
||
|
|
public const string GET_BuildJson = "/build.json";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|