Skip to content

About

A generated client for communication with a Matrix server

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

matrix_dart_generated_client

A generated client to communicate with a Matrix server. Experimental.

License: MIT

This Dart package is automatically generated by the OpenAPI Generator project:

  • API version: v1.13
  • Generator version: 7.11.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.DartDioClientCodegen

Requirements

Installation & Usage

Git

The package is not published on pub.dev. Include the following in pubspec.yaml

dependencies:
  matrix_dart_generated_client:
    git: https://github.com/SD-Software-Design-GmbH/matrix_dart_generated_client.git

Local development

To use the package from your local drive, please include the following in pubspec.yaml

dependencies:
  matrix_dart_generated_client:
    path: /path/to/matrix_dart_generated_client

Getting Started

Please follow the installation procedure and then run the following:

import 'package:matrix_dart_generated_client/openapi.dart';


final client = MatrixGeneratedClient(basePathOverride: 'https://matrix.example.org');
final api = client.getAccountManagementApi();

try {
    final response = await api.getAccount3PIDs();
    print(response);
} on DioException catch (e) {
    print("Exception when calling AccountManagementApi->getAccount3PIDs: $e\n");
}

Documentation for API Endpoints

All URIs are relative to https://matrix.org

Class Method HTTP request Description
AccountManagementApi add3PID POST /_matrix/client/v3/account/3pid/add Adds contact information to the user's account.
AccountManagementApi bind3PID POST /_matrix/client/v3/account/3pid/bind Binds a 3PID to the user's account through an Identity Service.
AccountManagementApi changePassword POST /_matrix/client/v3/account/password Changes a user's password.
AccountManagementApi checkUsernameAvailability GET /_matrix/client/v3/register/available Checks to see if a username is available on the server.
AccountManagementApi deactivateAccount POST /_matrix/client/v3/account/deactivate Deactivate a user's account.
AccountManagementApi delete3pidFromAccount POST /_matrix/client/v3/account/3pid/delete Deletes a third-party identifier from the user's account
AccountManagementApi getAccount3PIDs GET /_matrix/client/v3/account/3pid Gets a list of a user's third-party identifiers.
AccountManagementApi post3PIDs POST /_matrix/client/v3/account/3pid Adds contact information to the user's account.
AccountManagementApi register POST /_matrix/client/v3/register Register for an account on this homeserver.
AccountManagementApi registrationTokenValidity GET /_matrix/client/v1/register/m.login.registration_token/validity Query if a given registration token is still valid.
AccountManagementApi requestTokenTo3PIDEmail POST /_matrix/client/v3/account/3pid/email/requestToken Begins the validation process for an email address for association with the user's account.
AccountManagementApi requestTokenTo3PIDMSISDN POST /_matrix/client/v3/account/3pid/msisdn/requestToken Begins the validation process for a phone number for association with the user's account.
AccountManagementApi requestTokenToRegisterEmail POST /_matrix/client/v3/register/email/requestToken Begins the validation process for an email to be used during registration.
AccountManagementApi requestTokenToRegisterMSISDN POST /_matrix/client/v3/register/msisdn/requestToken Requests a validation token be sent to the given phone number for the purpose of registering an account
AccountManagementApi requestTokenToResetPasswordEmail POST /_matrix/client/v3/account/password/email/requestToken Requests a validation token be sent to the given email address for the purpose of resetting a user's password
AccountManagementApi requestTokenToResetPasswordMSISDN POST /_matrix/client/v3/account/password/msisdn/requestToken Requests a validation token be sent to the given phone number for the purpose of resetting a user's password.
AccountManagementApi unbind3pidFromAccount POST /_matrix/client/v3/account/3pid/unbind Removes a user's third-party identifier from an identity server.
ApplicationServiceRoomDirectoryManagementApi updateAppserviceRoomDirectoryVisibility PUT /_matrix/client/v3/directory/list/appservice/{networkId}/{roomId} Updates a room's visibility in the application service's room directory.
CapabilitiesApi getCapabilities GET /_matrix/client/v3/capabilities Gets information about the server's capabilities.
DefaultApi pingAppservice POST /_matrix/client/v1/appservice/{appserviceId}/ping Ask the homeserver to ping the application service to ensure the connection works.
DefaultApi refresh POST /_matrix/client/v3/refresh Refresh an access token
DeviceManagementApi deleteDevice DELETE /_matrix/client/v3/devices/{deviceId} Delete a device
DeviceManagementApi deleteDevices POST /_matrix/client/v3/delete_devices Bulk deletion of devices
DeviceManagementApi getDevice GET /_matrix/client/v3/devices/{deviceId} Get a single device
DeviceManagementApi getDevices GET /_matrix/client/v3/devices List registered devices for the current user
DeviceManagementApi updateDevice PUT /_matrix/client/v3/devices/{deviceId} Update a device
EndToEndEncryptionApi claimKeys POST /_matrix/client/v3/keys/claim Claim one-time encryption keys.
EndToEndEncryptionApi deleteRoomKeyBySessionId DELETE /_matrix/client/v3/room_keys/keys/{roomId}/{sessionId} Delete a key from the backup.
EndToEndEncryptionApi deleteRoomKeys DELETE /_matrix/client/v3/room_keys/keys Delete the keys from the backup.
EndToEndEncryptionApi deleteRoomKeysByRoomId DELETE /_matrix/client/v3/room_keys/keys/{roomId} Delete the keys from the backup for a given room.
EndToEndEncryptionApi deleteRoomKeysVersion DELETE /_matrix/client/v3/room_keys/version/{version} Delete an existing key backup.
EndToEndEncryptionApi getKeysChanges GET /_matrix/client/v3/keys/changes Query users with recent device key updates.
EndToEndEncryptionApi getRoomKeyBySessionId GET /_matrix/client/v3/room_keys/keys/{roomId}/{sessionId} Retrieve a key from the backup.
EndToEndEncryptionApi getRoomKeys GET /_matrix/client/v3/room_keys/keys Retrieve the keys from the backup.
EndToEndEncryptionApi getRoomKeysByRoomId GET /_matrix/client/v3/room_keys/keys/{roomId} Retrieve the keys from the backup for a given room.
EndToEndEncryptionApi getRoomKeysVersion GET /_matrix/client/v3/room_keys/version/{version} Get information about an existing backup.
EndToEndEncryptionApi getRoomKeysVersionCurrent GET /_matrix/client/v3/room_keys/version Get information about the latest backup version.
EndToEndEncryptionApi postRoomKeysVersion POST /_matrix/client/v3/room_keys/version Create a new backup.
EndToEndEncryptionApi putRoomKeyBySessionId PUT /_matrix/client/v3/room_keys/keys/{roomId}/{sessionId} Store a key in the backup.
EndToEndEncryptionApi putRoomKeys PUT /_matrix/client/v3/room_keys/keys Store several keys in the backup.
EndToEndEncryptionApi putRoomKeysByRoomId PUT /_matrix/client/v3/room_keys/keys/{roomId} Store several keys in the backup for a given room.
EndToEndEncryptionApi putRoomKeysVersion PUT /_matrix/client/v3/room_keys/version/{version} Update information about an existing backup.
EndToEndEncryptionApi queryKeys POST /_matrix/client/v3/keys/query Download device identity keys.
EndToEndEncryptionApi uploadCrossSigningKeys POST /_matrix/client/v3/keys/device_signing/upload Upload cross-signing keys.
EndToEndEncryptionApi uploadCrossSigningSignatures POST /_matrix/client/v3/keys/signatures/upload Upload cross-signing signatures.
EndToEndEncryptionApi uploadKeys POST /_matrix/client/v3/keys/upload Upload end-to-end encryption keys.
EventRelationshipsApi getRelatingEvents GET /_matrix/client/v1/rooms/{roomId}/relations/{eventId} Get the child events for a given parent event.
EventRelationshipsApi getRelatingEventsWithRelType GET /_matrix/client/v1/rooms/{roomId}/relations/{eventId}/{relType} Get the child events for a given parent event, with a given `relType`.
EventRelationshipsApi getRelatingEventsWithRelTypeAndEventType GET /_matrix/client/v1/rooms/{roomId}/relations/{eventId}/{relType}/{eventType} Get the child events for a given parent event, with a given `relType` and `eventType`.
MediaApi createContent POST /_matrix/media/v1/create Create a new `mxc://` URI without uploading the content.
MediaApi getConfig GET /_matrix/media/v3/config Get the configuration for the content repository.
MediaApi getConfigAuthed GET /_matrix/client/v1/media/config Get the configuration for the content repository.
MediaApi getContent GET /_matrix/media/v3/download/{serverName}/{mediaId} Download content from the content repository.
MediaApi getContentAuthed GET /_matrix/client/v1/media/download/{serverName}/{mediaId} Download content from the content repository.
MediaApi getContentOverrideName GET /_matrix/media/v3/download/{serverName}/{mediaId}/{fileName} Download content from the content repository overriding the file name
MediaApi getContentOverrideNameAuthed GET /_matrix/client/v1/media/download/{serverName}/{mediaId}/{fileName} Download content from the content repository overriding the file name.
MediaApi getContentThumbnail GET /_matrix/media/v3/thumbnail/{serverName}/{mediaId} Download a thumbnail of content from the content repository
MediaApi getContentThumbnailAuthed GET /_matrix/client/v1/media/thumbnail/{serverName}/{mediaId} Download a thumbnail of content from the content repository
MediaApi getUrlPreview GET /_matrix/media/v3/preview_url Get information about a URL for a client
MediaApi getUrlPreviewAuthed GET /_matrix/client/v1/media/preview_url Get information about a URL for a client
MediaApi uploadContent POST /_matrix/media/v3/upload Upload some content to the content repository.
MediaApi uploadContentToMXC PUT /_matrix/media/v3/upload/{serverName}/{mediaId} Upload content to an `mxc://` URI that was created earlier.
OpenIDApi requestOpenIdToken POST /_matrix/client/v3/user/{userId}/openid/request_token Get an OpenID token object to verify the requester's identity.
PresenceApi getPresence GET /_matrix/client/v3/presence/{userId}/status Get this user's presence state.
PresenceApi setPresence PUT /_matrix/client/v3/presence/{userId}/status Update this user's presence state.
PushNotificationsApi deletePushRule DELETE /_matrix/client/v3/pushrules/global/{kind}/{ruleId} Delete a push rule.
PushNotificationsApi getNotifications GET /_matrix/client/v3/notifications Gets a list of events that the user has been notified about
PushNotificationsApi getPushRule GET /_matrix/client/v3/pushrules/global/{kind}/{ruleId} Retrieve a push rule.
PushNotificationsApi getPushRuleActions GET /_matrix/client/v3/pushrules/global/{kind}/{ruleId}/actions The actions for a push rule
PushNotificationsApi getPushRules GET /_matrix/client/v3/pushrules/ Retrieve all push rulesets.
PushNotificationsApi getPushRulesGlobal GET /_matrix/client/v3/pushrules/global/ Retrieve all push rules.
PushNotificationsApi getPushers GET /_matrix/client/v3/pushers Gets the current pushers for the authenticated user
PushNotificationsApi isPushRuleEnabled GET /_matrix/client/v3/pushrules/global/{kind}/{ruleId}/enabled Get whether a push rule is enabled
PushNotificationsApi postPusher POST /_matrix/client/v3/pushers/set Modify a pusher for this user on the homeserver.
PushNotificationsApi setPushRule PUT /_matrix/client/v3/pushrules/global/{kind}/{ruleId} Add or change a push rule.
PushNotificationsApi setPushRuleActions PUT /_matrix/client/v3/pushrules/global/{kind}/{ruleId}/actions Set the actions for a push rule.
PushNotificationsApi setPushRuleEnabled PUT /_matrix/client/v3/pushrules/global/{kind}/{ruleId}/enabled Enable or disable a push rule.
ReadMarkersApi setReadMarker POST /_matrix/client/v3/rooms/{roomId}/read_markers Set the position of the read marker for a room.
ReportingContentApi reportEvent POST /_matrix/client/v3/rooms/{roomId}/report/{eventId} Report an event in a joined room as inappropriate.
ReportingContentApi reportRoom POST /_matrix/client/v3/rooms/{roomId}/report Report a room as inappropriate.
RoomCreationApi createRoom POST /_matrix/client/v3/createRoom Create a new room
RoomDirectoryApi deleteRoomAlias DELETE /_matrix/client/v3/directory/room/{roomAlias} Remove a mapping of room alias to room ID.
RoomDirectoryApi getLocalAliases GET /_matrix/client/v3/rooms/{roomId}/aliases Get a list of local aliases on a given room.
RoomDirectoryApi getRoomIdByAlias GET /_matrix/client/v3/directory/room/{roomAlias} Get the room ID corresponding to this room alias.
RoomDirectoryApi setRoomAlias PUT /_matrix/client/v3/directory/room/{roomAlias} Create a new mapping from room alias to room ID.
RoomDiscoveryApi getPublicRooms GET /_matrix/client/v3/publicRooms Lists the public rooms on the server.
RoomDiscoveryApi getRoomVisibilityOnDirectory GET /_matrix/client/v3/directory/list/room/{roomId} Gets the visibility of a room in the directory
RoomDiscoveryApi queryPublicRooms POST /_matrix/client/v3/publicRooms Lists the public rooms on the server with optional filter.
RoomDiscoveryApi setRoomVisibilityOnDirectory PUT /_matrix/client/v3/directory/list/room/{roomId} Sets the visibility of a room in the room directory
RoomMembershipApi ban POST /_matrix/client/v3/rooms/{roomId}/ban Ban a user in the room.
RoomMembershipApi forgetRoom POST /_matrix/client/v3/rooms/{roomId}/forget Stop the requesting user remembering about a particular room.
RoomMembershipApi getJoinedRooms GET /_matrix/client/v3/joined_rooms Lists the user's current rooms.
RoomMembershipApi inviteBy3PID POST /_matrix/client/v3/rooms/{roomId}/invite Invite a user to participate in a particular room.
RoomMembershipApi inviteUser POST /_matrix/client/v3/rooms/{roomId}/invite Invite a user to participate in a particular room.
RoomMembershipApi joinRoom POST /_matrix/client/v3/join/{roomIdOrAlias} Start the requesting user participating in a particular room.
RoomMembershipApi joinRoomById POST /_matrix/client/v3/rooms/{roomId}/join Start the requesting user participating in a particular room.
RoomMembershipApi kick POST /_matrix/client/v3/rooms/{roomId}/kick Kick a user from the room.
RoomMembershipApi knockRoom POST /_matrix/client/v3/knock/{roomIdOrAlias} Knock on a room, requesting permission to join.
RoomMembershipApi leaveRoom POST /_matrix/client/v3/rooms/{roomId}/leave Stop the requesting user participating in a particular room.
RoomMembershipApi unban POST /_matrix/client/v3/rooms/{roomId}/unban Unban a user from the room.
RoomParticipationApi callSync GET /_matrix/client/v3/sync Synchronise the client's state and receive new messages.
RoomParticipationApi defineFilter POST /_matrix/client/v3/user/{userId}/filter Upload a new filter.
RoomParticipationApi getEventByTimestamp GET /_matrix/client/v1/rooms/{roomId}/timestamp_to_event Get the closest event ID to the given timestamp
RoomParticipationApi getEventContext GET /_matrix/client/v3/rooms/{roomId}/context/{eventId} Get events and state around the specified event.
RoomParticipationApi getEvents GET /_matrix/client/v3/events Listen on the event stream.
RoomParticipationApi getFilter GET /_matrix/client/v3/user/{userId}/filter/{filterId} Download a filter
RoomParticipationApi getJoinedMembersByRoom GET /_matrix/client/v3/rooms/{roomId}/joined_members Gets the list of currently joined users and their profile data.
RoomParticipationApi getMembersByRoom GET /_matrix/client/v3/rooms/{roomId}/members Get the m.room.member events for the room.
RoomParticipationApi getOneEvent GET /_matrix/client/v3/events/{eventId} Get a single event by event ID.
RoomParticipationApi getOneRoomEvent GET /_matrix/client/v3/rooms/{roomId}/event/{eventId} Get a single event by event ID.
RoomParticipationApi getRoomEvents GET /_matrix/client/v3/rooms/{roomId}/messages Get a list of events for this room
RoomParticipationApi getRoomState GET /_matrix/client/v3/rooms/{roomId}/state Get all state events in the current state of a room.
RoomParticipationApi getRoomStateWithKey GET /_matrix/client/v3/rooms/{roomId}/state/{eventType}/{stateKey} Get the state identified by the type and key.
RoomParticipationApi initialSync GET /_matrix/client/v3/initialSync Get the user's current state.
RoomParticipationApi peekEvents GET /_matrix/client/v3/events Listen on the event stream of a particular room.
RoomParticipationApi postReceipt POST /_matrix/client/v3/rooms/{roomId}/receipt/{receiptType}/{eventId} Send a receipt for the given event ID.
RoomParticipationApi redactEvent PUT /_matrix/client/v3/rooms/{roomId}/redact/{eventId}/{txnId} Strips all non-integrity-critical information out of an event.
RoomParticipationApi roomInitialSync GET /_matrix/client/v3/rooms/{roomId}/initialSync Snapshot the current state of a room and its most recent messages.
RoomParticipationApi sendMessage PUT /_matrix/client/v3/rooms/{roomId}/send/{eventType}/{txnId} Send a message event to the given room.
RoomParticipationApi setRoomStateWithKey PUT /_matrix/client/v3/rooms/{roomId}/state/{eventType}/{stateKey} Send a state event to the given room.
RoomParticipationApi setTyping PUT /_matrix/client/v3/rooms/{roomId}/typing/{userId} Informs the server that the user has started or stopped typing.
RoomUpgradesApi upgradeRoom POST /_matrix/client/v3/rooms/{roomId}/upgrade Upgrades a room to a new room version.
SearchApi search POST /_matrix/client/v3/search Perform a server-side search.
SendToDeviceMessagingApi sendToDevice PUT /_matrix/client/v3/sendToDevice/{eventType}/{txnId} Send an event to a given set of devices.
ServerAdministrationApi getVersions GET /_matrix/client/versions Gets the versions of the specification supported by the server.
ServerAdministrationApi getWellknown GET /.well-known/matrix/client Gets Matrix server discovery information about the domain.
ServerAdministrationApi getWellknownSupport GET /.well-known/matrix/support Gets homeserver contacts and support details.
ServerAdministrationApi getWhoIs GET /_matrix/client/v3/admin/whois/{userId} Gets information about a particular user.
SessionManagementApi generateLoginToken POST /_matrix/client/v1/login/get_token Optional endpoint to generate a single-use, time-limited, `m.login.token` token.
SessionManagementApi getLoginFlows GET /_matrix/client/v3/login Get the supported login types to authenticate users
SessionManagementApi getTokenOwner GET /_matrix/client/v3/account/whoami Gets information about the owner of an access token.
SessionManagementApi login POST /_matrix/client/v3/login Authenticates the user.
SessionManagementApi logout POST /_matrix/client/v3/logout Invalidates a user access token
SessionManagementApi logoutAll POST /_matrix/client/v3/logout/all Invalidates all access tokens for a user
SessionManagementApi redirectToIdP GET /_matrix/client/v3/login/sso/redirect/{idpId} Redirect the user's browser to the SSO interface for an IdP.
SessionManagementApi redirectToSSO GET /_matrix/client/v3/login/sso/redirect Redirect the user's browser to the SSO interface.
SpacesApi getSpaceHierarchy GET /_matrix/client/v1/rooms/{roomId}/hierarchy Retrieve a portion of a space tree.
ThirdPartyLookupApi getProtocolMetadata GET /_matrix/client/v3/thirdparty/protocol/{protocol} Retrieve metadata about a specific protocol that the homeserver supports.
ThirdPartyLookupApi getProtocols GET /_matrix/client/v3/thirdparty/protocols Retrieve metadata about all protocols that a homeserver supports.
ThirdPartyLookupApi queryLocationByAlias GET /_matrix/client/v3/thirdparty/location Reverse-lookup third-party locations given a Matrix room alias.
ThirdPartyLookupApi queryLocationByProtocol GET /_matrix/client/v3/thirdparty/location/{protocol} Retrieve Matrix-side portals rooms leading to a third-party location.
ThirdPartyLookupApi queryUserByID GET /_matrix/client/v3/thirdparty/user Reverse-lookup third-party users given a Matrix User ID.
ThirdPartyLookupApi queryUserByProtocol GET /_matrix/client/v3/thirdparty/user/{protocol} Retrieve the Matrix User ID of a corresponding third-party user.
ThreadsApi getThreadRoots GET /_matrix/client/v1/rooms/{roomId}/threads Fetches a list of the threads in a room.
UserDataApi deleteRoomTag DELETE /_matrix/client/v3/user/{userId}/rooms/{roomId}/tags/{tag} Remove a tag from the room.
UserDataApi getAccountData GET /_matrix/client/v3/user/{userId}/account_data/{type} Get some account data for the user.
UserDataApi getAccountDataPerRoom GET /_matrix/client/v3/user/{userId}/rooms/{roomId}/account_data/{type} Get some account data for the user that is specific to a room.
UserDataApi getAvatarUrl GET /_matrix/client/v3/profile/{userId}/avatar_url Get the user's avatar URL.
UserDataApi getDisplayName GET /_matrix/client/v3/profile/{userId}/displayname Get the user's display name.
UserDataApi getRoomTags GET /_matrix/client/v3/user/{userId}/rooms/{roomId}/tags List the tags for a room.
UserDataApi getUserProfile GET /_matrix/client/v3/profile/{userId} Get this user's profile information.
UserDataApi setAccountData PUT /_matrix/client/v3/user/{userId}/account_data/{type} Set some account data for the user.
UserDataApi setAccountDataPerRoom PUT /_matrix/client/v3/user/{userId}/rooms/{roomId}/account_data/{type} Set some account data for the user that is specific to a room.
UserDataApi setAvatarUrl PUT /_matrix/client/v3/profile/{userId}/avatar_url Set the user's avatar URL.
UserDataApi setDisplayName PUT /_matrix/client/v3/profile/{userId}/displayname Set the user's display name.
UserDataApi setRoomTag PUT /_matrix/client/v3/user/{userId}/rooms/{roomId}/tags/{tag} Add a tag to a room.
UserDirectoryApi searchUserDirectory POST /_matrix/client/v3/user_directory/search Searches the user directory.
VOIPApi getTurnServer GET /_matrix/client/v3/voip/turnServer Obtain TURN server credentials.

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

accessTokenBearer

  • Type: HTTP Bearer Token authentication

accessTokenQuery

  • Type: API key
  • API key parameter name: access_token
  • Location: URL query string

appserviceAccessTokenBearer

  • Type: HTTP Bearer Token authentication

appserviceAccessTokenQuery

  • Type: API key
  • API key parameter name: access_token
  • Location: URL query string

Maintained by SD Software-Design GmbH · MIT License

About

A generated client for communication with a Matrix server

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages