3 unstable releases
0.6.5 | Jul 20, 2023 |
---|---|
0.5.5 |
|
0.5.5-rev.2 | Oct 25, 2022 |
0.5.5-rev.1 | Sep 21, 2022 |
#13 in #revolt
Used in revolute
760KB
14K
SLoC
Rust API client for revolt_api
Open source user-first chat platform.
For more information, please visit https://revolt.chat
Overview
This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.
- API version: 0.6.5
- Package version: 0.6.5
- Build package:
org.openapitools.codegen.languages.RustClientCodegen
Installation
Put the package under your project folder in a directory named revolt_api
and add the following to Cargo.toml
under [dependencies]
:
revolt_api = { path = "./revolt_api" }
Documentation for API Endpoints
All URIs are relative to https://api.revolt.chat
Class | Method | HTTP request | Description |
---|---|---|---|
AccountApi | change_email_change_email | PATCH /auth/account/change/email | Change Email |
AccountApi | change_password_change_password | PATCH /auth/account/change/password | Change Password |
AccountApi | confirm_deletion_confirm_deletion | PUT /auth/account/delete | Confirm Account Deletion |
AccountApi | create_account_create_account | POST /auth/account/create | Create Account |
AccountApi | delete_account_delete_account | POST /auth/account/delete | Delete Account |
AccountApi | disable_account_disable_account | POST /auth/account/disable | Disable Account |
AccountApi | fetch_account_fetch_account | GET /auth/account/ | Fetch Account |
AccountApi | password_reset_password_reset | PATCH /auth/account/reset_password | Password Reset |
AccountApi | resend_verification_resend_verification | POST /auth/account/reverify | Resend Verification |
AccountApi | send_password_reset_send_password_reset | POST /auth/account/reset_password | Send Password Reset |
AccountApi | verify_email_verify_email | POST /auth/account/verify/{code} | Verify Email |
AdminApi | message_query_message_query | POST /admin/messages | Globally Fetch Messages |
AdminApi | stats_stats | GET /admin/stats | Query Stats |
BotsApi | create_create_bot | POST /bots/create | Create Bot |
BotsApi | delete_delete_bot | DELETE /bots/{target} | Delete Bot |
BotsApi | edit_edit_bot | PATCH /bots/{target} | Edit Bot |
BotsApi | fetch_fetch_bot | GET /bots/{bot} | Fetch Bot |
BotsApi | fetch_owned_fetch_owned_bots | GET /bots/@me | Fetch Owned Bots |
BotsApi | fetch_public_fetch_public_bot | GET /bots/{target}/invite | Fetch Public Bot |
BotsApi | invite_invite_bot | POST /bots/{target}/invite | Invite Bot |
ChannelInformationApi | channel_delete_req | DELETE /channels/{target} | Close Channel |
ChannelInformationApi | channel_edit_req | PATCH /channels/{target} | Edit Channel |
ChannelInformationApi | channel_fetch_req | GET /channels/{target} | Fetch Channel |
ChannelInvitesApi | invite_create_req | POST /channels/{target}/invites | Create Invite |
ChannelPermissionsApi | permissions_set_default_req | PUT /channels/{target}/permissions/default | Set Default Permission |
ChannelPermissionsApi | permissions_set_req | PUT /channels/{target}/permissions/{role_id} | Set Role Permission |
CoreApi | root_root | GET / | Query Node |
DirectMessagingApi | fetch_dms_req | GET /users/dms | Fetch Direct Message Channels |
DirectMessagingApi | open_dm_req | GET /users/{target}/dm | Open Direct Message |
EmojisApi | emoji_create_create_emoji | PUT /custom/emoji/{id} | Create New Emoji |
EmojisApi | emoji_delete_delete_emoji | DELETE /custom/emoji/{id} | Delete Emoji |
EmojisApi | emoji_fetch_fetch_emoji | GET /custom/emoji/{id} | Fetch Emoji |
GroupsApi | group_add_member_req | PUT /channels/{target}/recipients/{member} | Add Member to Group |
GroupsApi | group_create_req | POST /channels/create | Create Group |
GroupsApi | group_remove_member_req | DELETE /channels/{target}/recipients/{member} | Remove Member from Group |
GroupsApi | members_fetch_req | GET /channels/{target}/members | Fetch Group Members |
InteractionsApi | message_clear_reactions_clear_reactions | DELETE /channels/{target}/messages/{msg}/reactions | Remove All Reactions from Message |
InteractionsApi | message_react_react_message | PUT /channels/{target}/messages/{msg}/reactions/{emoji} | Add Reaction to Message |
InteractionsApi | message_unreact_unreact_message | DELETE /channels/{target}/messages/{msg}/reactions/{emoji} | Remove Reaction(s) to Message |
InvitesApi | invite_delete_req | DELETE /invites/{target} | Delete Invite |
InvitesApi | invite_fetch_req | GET /invites/{target} | Fetch Invite |
InvitesApi | invite_join_req | POST /invites/{target} | Join Invite |
MfaApi | create_ticket_create_ticket | PUT /auth/mfa/ticket | Create MFA ticket |
MfaApi | fetch_recovery_fetch_recovery | POST /auth/mfa/recovery | Fetch Recovery Codes |
MfaApi | fetch_status_fetch_status | GET /auth/mfa/ | MFA Status |
MfaApi | generate_recovery_generate_recovery | PATCH /auth/mfa/recovery | Generate Recovery Codes |
MfaApi | get_mfa_methods_get_mfa_methods | GET /auth/mfa/methods | Get MFA Methods |
MfaApi | totp_disable_totp_disable | DELETE /auth/mfa/totp | Disable TOTP 2FA |
MfaApi | totp_enable_totp_enable | PUT /auth/mfa/totp | Enable TOTP 2FA |
MfaApi | totp_generate_secret_totp_generate_secret | POST /auth/mfa/totp | Generate TOTP Secret |
MessagingApi | channel_ack_req | PUT /channels/{target}/ack/{message} | Acknowledge Message |
MessagingApi | message_bulk_delete_req | DELETE /channels/{target}/messages/bulk | Bulk Delete Messages |
MessagingApi | message_delete_req | DELETE /channels/{target}/messages/{msg} | Delete Message |
MessagingApi | message_edit_req | PATCH /channels/{target}/messages/{msg} | Edit Message |
MessagingApi | message_fetch_req | GET /channels/{target}/messages/{msg} | Fetch Message |
MessagingApi | message_query_req | GET /channels/{target}/messages | Fetch Messages |
MessagingApi | message_query_stale_req | POST /channels/{_target}/messages/stale | Poll Message Changes |
MessagingApi | message_search_req | POST /channels/{target}/search | Search for Messages |
MessagingApi | message_send_message_send | POST /channels/{target}/messages | Send Message |
OnboardingApi | complete_req | POST /onboard/complete | Complete Onboarding |
OnboardingApi | hello_req | GET /onboard/hello | Check Onboarding Status |
RelationshipsApi | add_friend_req | PUT /users/{target}/friend | Accept Friend Request |
RelationshipsApi | block_user_req | PUT /users/{target}/block | Block User |
RelationshipsApi | find_mutual_req | GET /users/{target}/mutual | Fetch Mutual Friends And Servers |
RelationshipsApi | remove_friend_req | DELETE /users/{target}/friend | Deny Friend Request / Remove Friend |
RelationshipsApi | send_friend_request_req | POST /users/friend | Send Friend Request |
RelationshipsApi | unblock_user_req | DELETE /users/{target}/block | Unblock User |
ServerCustomisationApi | emoji_list_list_emoji | GET /servers/{target}/emojis | Fetch Server Emoji |
ServerInformationApi | channel_create_req | POST /servers/{target}/channels | Create Channel |
ServerInformationApi | server_ack_req | PUT /servers/{target}/ack | Mark Server As Read |
ServerInformationApi | server_create_req | POST /servers/create | Create Server |
ServerInformationApi | server_delete_req | DELETE /servers/{target} | Delete / Leave Server |
ServerInformationApi | server_edit_req | PATCH /servers/{target} | Edit Server |
ServerInformationApi | server_fetch_req | GET /servers/{target} | Fetch Server |
ServerMembersApi | ban_create_req | PUT /servers/{server}/bans/{target} | Ban User |
ServerMembersApi | ban_list_req | GET /servers/{target}/bans | Fetch Bans |
ServerMembersApi | ban_remove_req | DELETE /servers/{server}/bans/{target} | Unban user |
ServerMembersApi | invites_fetch_req | GET /servers/{target}/invites | Fetch Invites |
ServerMembersApi | member_edit_req | PATCH /servers/{server}/members/{target} | Edit Member |
ServerMembersApi | member_experimental_query_member_experimental_query | GET /servers/{target}/members_experimental_query | Query members by name |
ServerMembersApi | member_fetch_all_req | GET /servers/{target}/members | Fetch Members |
ServerMembersApi | member_fetch_req | GET /servers/{target}/members/{member} | Fetch Member |
ServerMembersApi | member_remove_req | DELETE /servers/{target}/members/{member} | Kick Member |
ServerPermissionsApi | permissions_set_default_req | PUT /servers/{target}/permissions/default | Set Default Permission |
ServerPermissionsApi | permissions_set_req | PUT /servers/{target}/permissions/{role_id} | Set Role Permission |
ServerPermissionsApi | roles_create_req | POST /servers/{target}/roles | Create Role |
ServerPermissionsApi | roles_delete_req | DELETE /servers/{target}/roles/{role_id} | Delete Role |
ServerPermissionsApi | roles_edit_req | PATCH /servers/{target}/roles/{role_id} | Edit Role |
SessionApi | edit_edit | PATCH /auth/session/{id} | Edit Session |
SessionApi | fetch_all_fetch_all | GET /auth/session/all | Fetch Sessions |
SessionApi | login_login | POST /auth/session/login | Login |
SessionApi | logout_logout | POST /auth/session/logout | Logout |
SessionApi | revoke_all_revoke_all | DELETE /auth/session/all | Delete All Sessions |
SessionApi | revoke_revoke | DELETE /auth/session/{id} | Revoke Session |
SyncApi | get_settings_req | POST /sync/settings/fetch | Fetch Settings |
SyncApi | get_unreads_req | GET /sync/unreads | Fetch Unreads |
SyncApi | set_settings_req | POST /sync/settings/set | Set Settings |
UserInformationApi | change_username_req | PATCH /users/@me/username | Change Username |
UserInformationApi | edit_user_req | PATCH /users/{target} | Edit User |
UserInformationApi | fetch_profile_req | GET /users/{target}/profile | Fetch User Profile |
UserInformationApi | fetch_self_req | GET /users/@me | Fetch Self |
UserInformationApi | fetch_user_flags_fetch_user_flags | GET /users/{target}/flags | Fetch User Flags |
UserInformationApi | fetch_user_req | GET /users/{target} | Fetch User |
UserInformationApi | get_default_avatar_req | GET /users/{target}/default_avatar | Fetch Default Avatar |
UserSafetyApi | create_strike_create_strike | POST /safety/strikes | Create Strike |
UserSafetyApi | delete_strike_delete_strike | DELETE /safety/strikes/{strike_id} | Delete Strike |
UserSafetyApi | edit_report_edit_report | PATCH /safety/reports/{report} | Edit Report |
UserSafetyApi | edit_strike_edit_strike | POST /safety/strikes/{strike_id} | Edit Strike |
UserSafetyApi | fetch_report_fetch_report | GET /safety/report/{id} | Fetch Report |
UserSafetyApi | fetch_reports_fetch_reports | GET /safety/reports | Fetch Reports |
UserSafetyApi | fetch_snapshots_fetch_snapshots | GET /safety/snapshot/{report_id} | Fetch Snapshots |
UserSafetyApi | fetch_strikes_fetch_strikes | GET /safety/strikes/{user_id} | Fetch Strikes |
UserSafetyApi | report_content_report_content | POST /safety/report | Report Content |
VoiceApi | voice_join_req | POST /channels/{target}/join_call | Join Call |
WebPushApi | subscribe_req | POST /push/subscribe | Push Subscribe |
WebPushApi | unsubscribe_req | POST /push/unsubscribe | Unsubscribe |
WebhooksApi | webhook_create_req | POST /channels/{target}/webhooks | Creates a webhook |
WebhooksApi | webhook_fetch_all_req | GET /channels/{channel_id}/webhooks | Gets all webhooks |
Documentation For Models
- AccountInfo
- AccountStrike
- AllMemberResponse
- AuthifierError
- AuthifierErrorOneOf
- AuthifierErrorOneOf1
- AuthifierErrorOneOf10
- AuthifierErrorOneOf11
- AuthifierErrorOneOf12
- AuthifierErrorOneOf13
- AuthifierErrorOneOf14
- AuthifierErrorOneOf15
- AuthifierErrorOneOf16
- AuthifierErrorOneOf2
- AuthifierErrorOneOf3
- AuthifierErrorOneOf4
- AuthifierErrorOneOf5
- AuthifierErrorOneOf6
- AuthifierErrorOneOf7
- AuthifierErrorOneOf8
- AuthifierErrorOneOf9
- BanListResult
- BandcampType
- BannedUser
- BannedUserAvatar
- Bot
- BotInformation
- BuildInformation
- BulkMessageResponse
- BulkMessageResponseAnyOf
- CaptchaFeature
- Category
- Channel
- ChannelCompositeKey
- ChannelOneOf
- ChannelOneOf1
- ChannelOneOf2
- ChannelOneOf2Icon
- ChannelOneOf3
- ChannelOneOf3DefaultPermissions
- ChannelOneOf4
- ChannelType
- ChannelUnread
- ChannelUnreadId
- CollectionScans
- CollectionStats
- CollectionStatsQueryExecStats
- ContentReportReason
- CreateServerResponse
- CreateServerResponseServer
- CreateVoiceUserResponse
- CreateWebhookBody
- Data
- DataAccountDeletion
- DataBanCreate
- DataChangeEmail
- DataChangePassword
- DataChangeUsername
- DataCreateAccount
- DataCreateBot
- DataCreateChannel
- DataCreateEmoji
- DataCreateEmojiParent
- DataCreateGroup
- DataCreateRole
- DataCreateServer
- DataCreateStrike
- DataDefaultChannelPermissions
- DataDefaultChannelPermissionsAnyOf
- DataDefaultChannelPermissionsAnyOf1
- DataDefaultChannelPermissionsAnyOf1Permissions
- DataEditAccountStrike
- DataEditBot
- DataEditChannel
- DataEditMessage
- DataEditReport
- DataEditReportStatus
- DataEditRole
- DataEditServer
- DataEditServerSystemMessages
- DataEditSession
- DataEditUser
- DataEditUserProfile
- DataEditUserStatus
- DataHello
- DataLogin
- DataLoginAnyOf
- DataLoginAnyOf1
- DataLoginAnyOf1MfaResponse
- DataMemberEdit
- DataMessageSend
- DataMessageSendInteractions
- DataMessageSendMasquerade
- DataOnboard
- DataPasswordReset
- DataPermissions
- DataPermissionsValue
- DataReportContent
- DataReportContentContent
- DataResendVerification
- DataSendFriendRequest
- DataSendPasswordReset
- DataSetServerRolePermission
- DataSetServerRolePermissionPermissions
- Embed
- EmbedOneOf
- EmbedOneOf1
- EmbedOneOf2
- EmbedOneOf3
- EmbedOneOf3Media
- EmbedOneOf4
- EmbedOneOfImage
- EmbedOneOfSpecial
- EmbedOneOfVideo
- Emoji
- EmojiParent
- EmojiParentOneOf
- EmojiParentOneOf1
- Error
- ErrorOneOf
- ErrorOneOf1
- ErrorOneOf1OneOf
- ErrorOneOf1OneOf1
- ErrorOneOf1OneOf10
- ErrorOneOf1OneOf11
- ErrorOneOf1OneOf12
- ErrorOneOf1OneOf13
- ErrorOneOf1OneOf14
- ErrorOneOf1OneOf15
- ErrorOneOf1OneOf16
- ErrorOneOf1OneOf17
- ErrorOneOf1OneOf18
- ErrorOneOf1OneOf19
- ErrorOneOf1OneOf2
- ErrorOneOf1OneOf20
- ErrorOneOf1OneOf21
- ErrorOneOf1OneOf22
- ErrorOneOf1OneOf23
- ErrorOneOf1OneOf24
- ErrorOneOf1OneOf25
- ErrorOneOf1OneOf26
- ErrorOneOf1OneOf27
- ErrorOneOf1OneOf28
- ErrorOneOf1OneOf29
- ErrorOneOf1OneOf3
- ErrorOneOf1OneOf30
- ErrorOneOf1OneOf31
- ErrorOneOf1OneOf32
- ErrorOneOf1OneOf33
- ErrorOneOf1OneOf34
- ErrorOneOf1OneOf35
- ErrorOneOf1OneOf36
- ErrorOneOf1OneOf37
- ErrorOneOf1OneOf38
- ErrorOneOf1OneOf39
- ErrorOneOf1OneOf4
- ErrorOneOf1OneOf40
- ErrorOneOf1OneOf41
- ErrorOneOf1OneOf42
- ErrorOneOf1OneOf43
- ErrorOneOf1OneOf44
- ErrorOneOf1OneOf45
- ErrorOneOf1OneOf46
- ErrorOneOf1OneOf47
- ErrorOneOf1OneOf48
- ErrorOneOf1OneOf49
- ErrorOneOf1OneOf5
- ErrorOneOf1OneOf6
- ErrorOneOf1OneOf7
- ErrorOneOf1OneOf8
- ErrorOneOf1OneOf9
- ErrorOneOf2
- ErrorOneOf3
- ErrorOneOf4
- ErrorOneOf5
- ErrorOneOf6
- ErrorOneOf7
- Feature
- FetchBotResponse
- FetchBotResponseBot
- FetchBotResponseUser
- FetchServerResponse
- FetchServerResponseAnyOf
- FieldsBot
- FieldsChannel
- FieldsMember
- FieldsRole
- FieldsServer
- FieldsUser
- File
- FileMetadata
- FlagResponse
- Image
- ImageSize
- Index
- IndexAccess
- IndexAccesses
- Interactions
- Invite
- InviteBotDestination
- InviteBotDestinationAnyOf
- InviteBotDestinationAnyOf1
- InviteJoinResponse
- InviteJoinResponseOneOf
- InviteJoinResponseOneOfServer
- InviteOneOf
- InviteOneOf1
- InviteResponse
- InviteResponseOneOf
- InviteResponseOneOf1
- InviteResponseOneOfServerBanner
- InviteResponseOneOfServerIcon
- InviteResponseOneOfUserAvatar
- LatencyHistogramEntry
- LatencyStats
- LightspeedType
- Masquerade
- Member
- MemberCompositeKey
- MemberId
- MemberQueryResponse
- Message
- MessageInteractions
- MessageMasquerade
- MessageQuery
- MessageQueryAnyOf
- MessageQueryAnyOf1
- MessageSort
- MessageSystem
- MessageWebhook
- Metadata
- MetadataOneOf
- MetadataOneOf1
- MetadataOneOf2
- MetadataOneOf3
- MetadataOneOf4
- MfaMethod
- MfaResponse
- MfaResponseAnyOf
- MfaResponseAnyOf1
- MfaResponseAnyOf2
- MfaTicket
- MultiFactorStatus
- MutualResponse
- NewRoleResponse
- NewRoleResponseRole
- OptionsBulkDelete
- OptionsFetchSettings
- OptionsMessageSearch
- OptionsQueryStale
- Override
- OverrideField
- OwnedBotsResponse
- Permission
- Presence
- PublicBot
- QueryExecStats
- QueryExecStatsCollectionScans
- Relationship
- RelationshipStatus
- Reply
- Report
- ReportOneOf
- ReportOneOf1
- ReportOneOf2
- ReportStatus
- ReportStatusOneOf
- ReportStatusOneOf1
- ReportStatusOneOf2
- ReportStatusString
- ReportedContent
- ReportedContentOneOf
- ReportedContentOneOf1
- ReportedContentOneOf2
- ResponseLogin
- ResponseLoginOneOf
- ResponseLoginOneOf1
- ResponseLoginOneOf2
- ResponseLoginOneOfSubscription
- ResponseTotpSecret
- ResponseVerify
- ResponseVerifyAnyOf
- ResponseVerifyAnyOfTicket
- RevoltConfig
- RevoltConfigBuild
- RevoltConfigFeatures
- RevoltFeatures
- RevoltFeaturesAutumn
- RevoltFeaturesCaptcha
- RevoltFeaturesJanuary
- RevoltFeaturesVoso
- Role
- RolePermissions
- SendableEmbed
- Server
- ServerBan
- ServerBanner
- ServerIcon
- ServerSystemMessages
- SessionInfo
- SnapshotContent
- SnapshotContentOneOf
- SnapshotContentOneOf1
- SnapshotContentOneOf2
- SnapshotWithContext
- SnapshotWithContextContent
- SnapshotWithContextServer
- Special
- SpecialOneOf
- SpecialOneOf1
- SpecialOneOf2
- SpecialOneOf3
- SpecialOneOf4
- SpecialOneOf5
- SpecialOneOf6
- SpecialOneOf7
- SpecialOneOf8
- Stats
- SystemMessage
- SystemMessageChannels
- SystemMessageOneOf
- SystemMessageOneOf1
- SystemMessageOneOf10
- SystemMessageOneOf2
- SystemMessageOneOf3
- SystemMessageOneOf4
- SystemMessageOneOf5
- SystemMessageOneOf6
- SystemMessageOneOf7
- SystemMessageOneOf8
- SystemMessageOneOf9
- TwitchType
- User
- UserAvatar
- UserBot
- UserPermission
- UserProfile
- UserProfileBackground
- UserProfileData
- UserReportReason
- UserStatus
- Video
- VoiceFeature
- WebPushSubscription
- Webhook
- WebhookAvatar
To get access to the crate's generated documentation, use:
cargo doc --open
Author
Dependencies
~5–17MB
~236K SLoC