|
|
@ -7,120 +7,636 @@ namespace MatrixDotNetLib |
|
|
|
public class MatrixApis |
|
|
|
public class MatrixApis |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
public class Server |
|
|
|
public static class Server |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// Gets discovery information about the domain. |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Server32administration/getWellknown |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
public static string Discovery = "/.well-known/matrix/client"; |
|
|
|
public static string Discovery = "/.well-known/matrix/client"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// Gets the versions of the specifications supported by the server. |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Server32administration/getVersions |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
public static string Versions = "/_matrix/client/versions"; |
|
|
|
public static string Versions = "/_matrix/client/versions"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// Gets information about the server's supported feature set and other relevant capabilities. |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Capabilities/getCapabilities |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
public static string Capabilities = "/_matrix/client/r0/capabilities"; |
|
|
|
public static string Capabilities = "/_matrix/client/r0/capabilities"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// Gets information about a particular user. |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Server32administration/getWhoIs |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
public static string Whois = "/_matrix/client/r0/admin/whois/{userid}"; |
|
|
|
public static string Whois = "/_matrix/client/r0/admin/whois/{userid}"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// Performs a full text search across different categories. Posts with a search object. |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Search/search |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
public static string Search = "/_matrix/client/r0/search"; |
|
|
|
public static string Search = "/_matrix/client/r0/search"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// Performs a user search. Posts with a user search object. |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/User32data/searchUserDirectory |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
public static string UserSearch = "/_matrix/client/r0/user_directory/search"; |
|
|
|
public static string UserSearch = "/_matrix/client/r0/user_directory/search"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// Lists the public rooms on the server. Posts with a filter object. |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Room32discovery/getPublicRooms |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
public static string RoomList = "/_matrix/client/r0/publicrooms"; |
|
|
|
public static string RoomList = "/_matrix/client/r0/publicrooms"; |
|
|
|
public static string ManageRooms = "/_matrix/client/r0/directory/list/appservice/{networkid}/{roomid}"; |
|
|
|
|
|
|
|
public static string UpgradeRoom = "/_matrix/client/r0/rooms/{roomid}/upgrade"; |
|
|
|
|
|
|
|
public static string Openid = "/_matrix/client/r0/user/{userid}/openid/request_token"; |
|
|
|
|
|
|
|
public static string Voip = "/_matrix/client/r0/voip/turnserver"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class Key |
|
|
|
/// <summary> |
|
|
|
{ |
|
|
|
/// Updates the visibility of a given room in the directory. Puts a visibility object. |
|
|
|
public static string Latest = "/_matrix/client/r0/keys/changes"; |
|
|
|
/// </summary> |
|
|
|
public static string Claim = "/_matrix/client/r0/keys/claim"; |
|
|
|
/// <remarks> |
|
|
|
public static string Download = "/_matrix/client/r0/keys/query"; |
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Application32service32room32directory32management/updateAppserviceRoomDirectoryVsibility |
|
|
|
public static string Upload = "/_matrix/client/r0/keys/upload"; |
|
|
|
/// </remarks> |
|
|
|
} |
|
|
|
public static string ManageRooms = "/_matrix/client/r0/directory/list/appservice/{networkid}/{roomid}"; |
|
|
|
|
|
|
|
|
|
|
|
public class Device |
|
|
|
/// <summary> |
|
|
|
{ |
|
|
|
/// Upgrades the given room to a particular room version. Posts with a room upgrade object. |
|
|
|
public static string Manage = "/_matrix/client/r0/devices"; |
|
|
|
/// </summary> |
|
|
|
public static string MultiDelete = "/_matrix/client/r0/delete_devices"; |
|
|
|
/// <remarks> |
|
|
|
public static string Send = "/_matrix/client/r0/sendtodevice/{eventtype}/{txnid}"; |
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Room32upgrades/upgradeRoom |
|
|
|
} |
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string UpgradeRoom = "/_matrix/client/r0/rooms/{roomid}/upgrade"; |
|
|
|
|
|
|
|
|
|
|
|
public class Media |
|
|
|
/// <summary> |
|
|
|
{ |
|
|
|
/// Gets an OpenID token object for use with another service. Posts with a userId parameter. |
|
|
|
public static string Config = "/_matrix/media/r0/config"; |
|
|
|
/// </summary> |
|
|
|
public static string Save = "/_matrix/media/r0/download/{servername}/{mediaid}"; |
|
|
|
/// <remarks> |
|
|
|
public static string Saveas = "/_matrix/media/r0/download/{servername}/{mediaid}/{filename}"; |
|
|
|
/// https://matrix.org/docs/api/client-server/#!/OpenID/requestOpenIdToken |
|
|
|
public static string Preview = "/_matrix/media/r0/preview_url"; |
|
|
|
/// </remarks> |
|
|
|
public static string Thumb = "/_matrix/media/r0/thumbnail/{servername}/{mediaid}"; |
|
|
|
public static string Openid = "/_matrix/client/r0/user/{userid}/openid/request_token"; |
|
|
|
public static string Upload = "/_matrix/media/r0/upload"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class Notifier |
|
|
|
/// <summary> |
|
|
|
{ |
|
|
|
/// Gets client credentials for use when initiating a call. |
|
|
|
public static string Notifiers = "/_matrix/client/r0/notifications"; |
|
|
|
/// </summary> |
|
|
|
public static string Pushers = "/_matrix/client/r0/pushers"; |
|
|
|
/// <remarks> |
|
|
|
public static string Set = "/_matrix/client/r0/pushers/set"; |
|
|
|
/// https://matrix.org/docs/api/client-server/#!/VOIP/getTurnServer |
|
|
|
public static string Rules = "/_matrix/client/r0/pushrules/"; |
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Voip = "/_matrix/client/r0/voip/turnserver"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class NotifierRule |
|
|
|
public static class Key |
|
|
|
{ |
|
|
|
{ |
|
|
|
public static string Manage = "/_matrix/client/r0/pushrules/{scope}/{kind}/{ruleid}"; |
|
|
|
/// <summary> |
|
|
|
public static string Actions = "/_matrix/client/r0/pushrules/{scope}/{kind}/{ruleid}/actions"; |
|
|
|
/// Gets a list of users who have updated their device identity keys. |
|
|
|
public static string Toggle = "/_matrix/client/r0/pushrules/{scope}/{kind}/{ruleid}/enabled"; |
|
|
|
/// </summary> |
|
|
|
} |
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/End45to45end32encryption/getKeysChanges |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Latest = "/_matrix/client/r0/keys/changes"; |
|
|
|
|
|
|
|
|
|
|
|
public static class User |
|
|
|
/// <summary> |
|
|
|
{ |
|
|
|
/// Claims one-time keys for use in pre-key messages. Posts with a key object. |
|
|
|
public static string Thirdparty = "/_matrix/client/r0/account/3pid"; |
|
|
|
/// </summary> |
|
|
|
public static string Deactivate = "/_matrix/client/r0/account/deactivate"; |
|
|
|
/// <remarks> |
|
|
|
public static string Password = "/_matrix/client/r0/account/password"; |
|
|
|
/// https://matrix.org/docs/api/client-server/#!/End45to45end32encryption/claimKeys |
|
|
|
public static string Register = "/_matrix/client/r0/register"; |
|
|
|
/// </remarks> |
|
|
|
public static string WhoAmI = "/_matrix/client/r0/account/whoami"; |
|
|
|
public static string Claim = "/_matrix/client/r0/keys/claim"; |
|
|
|
public static string Profile = "/_matrix/client/r0/profile/{userid}"; |
|
|
|
|
|
|
|
public static string Avatar = "/_matrix/client/r0/profile/{userid}/avtatar_url"; |
|
|
|
|
|
|
|
public static string DisplayName = "/_matrix/client/r0/profile/{userid}/displayname"; |
|
|
|
|
|
|
|
public static string ExtraInfo = "/_matrix/client/r0/user/{userid}/account_data/{type}"; |
|
|
|
|
|
|
|
public static string EventFilter = "/_matrix/client/r0/user/{userid}/filter"; |
|
|
|
|
|
|
|
public static string Rooms = "/_matrix/client/r0/joined_rooms"; |
|
|
|
|
|
|
|
public static string Login = "/_matrix/client/r0/login"; |
|
|
|
|
|
|
|
public static string Logout = "/_matrix/client/r0/logout"; |
|
|
|
|
|
|
|
public static string Status = "/_matrix/client/r0/presence/{userid}/status"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class UserRoom |
|
|
|
/// <summary> |
|
|
|
{ |
|
|
|
/// Returns the current devices and identity keys for the given users. Posts with a key object. |
|
|
|
public static string Extrainfo = "/_matrix/client/r0/user/{userid}/rooms/{roomid}/account_data/{type}"; |
|
|
|
/// </summary> |
|
|
|
public static string Tags = "/_matrix/client/r0/user/{userid}/rooms/{roomid}/tags"; |
|
|
|
/// <remarks> |
|
|
|
} |
|
|
|
/// https://matrix.org/docs/api/client-server/#!/End45to45end32encryption/queryKeys |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Download = "/_matrix/client/r0/keys/query"; |
|
|
|
|
|
|
|
|
|
|
|
public class Room |
|
|
|
/// <summary> |
|
|
|
{ |
|
|
|
/// Publishes end-to-end encryption keys for the device. Posts with a key object. |
|
|
|
public static string Create = "/_matrix/client/r0/createroom"; |
|
|
|
/// </summary> |
|
|
|
public static string Aliases = "/_matrix/client/unstable/org.matrix.msc2432/rooms/{roomid}/aliases"; |
|
|
|
/// <remarks> |
|
|
|
public static string Active = "/_matrix/client/r0/rooms/{roomid}/joined_members"; |
|
|
|
/// https://matrix.org/docs/api/client-server/#!/End45to45end32encryption/uploadKeys |
|
|
|
public static string Members = "/_matrix/client/r0/rooms/{roomid}/members"; |
|
|
|
/// </remarks> |
|
|
|
public static string Messages = "/_matrix/client/r0/rooms/{roomid}/messages"; |
|
|
|
public static string Upload = "/_matrix/client/r0/keys/upload"; |
|
|
|
public static string Join = "/_matrix/client/r0/join/{roomidoralias}"; |
|
|
|
} |
|
|
|
public static string Ban = "/_matrix/client/r0/rooms/{roomid}/ban"; |
|
|
|
|
|
|
|
public static string Forget = "/_matrix/client/r0/rooms/{roomid}/forget"; |
|
|
|
|
|
|
|
public static string Invite = "/_matrix/client/r0/rooms/{roomid}/invite"; |
|
|
|
|
|
|
|
public static string IdJoin = "/_matrix/client/r0/rooms/{roomid}/join"; |
|
|
|
|
|
|
|
public static string Kick = "/_matrix/client/r0/rooms/{roomid}/kick"; |
|
|
|
|
|
|
|
public static string Leave = "/_matrix/client/r0/rooms/{roomid}/leave"; |
|
|
|
|
|
|
|
public static string Unban = "/_matrix/client/r0/rooms/{roomid}/unban"; |
|
|
|
|
|
|
|
public static string Marker = "/_matrix/client/r0/rooms/{roomid}/read_markers"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class RoomEvent |
|
|
|
public static class Device |
|
|
|
{ |
|
|
|
{ |
|
|
|
public static string Context = "/_matrix/client/r0/rooms/{roomid}/context/{eventid}"; |
|
|
|
/// <summary> |
|
|
|
public static string Event = "/_matrix/client/r0/rooms/{roomid}/event/{eventid}"; |
|
|
|
/// Private string for device URL |
|
|
|
public static string Receipt = "/_matrix/client/r0/rooms/{roomid}/receipt/{receipttype}/{eventid}"; |
|
|
|
/// </summary> |
|
|
|
public static string Redact = "/_matrix/client/r0/rooms/{roomid}/redact/{eventid}/{txnid}"; |
|
|
|
private static string _deviceIdUrl = "/_matrix/client/r0/devices/{deviceId}"; |
|
|
|
public static string Send = "/_matrix/client/r0/rooms/{roomid}/send/{eventtype}/{txnid}"; |
|
|
|
|
|
|
|
public static string Typing = "/_matrix/client/r0/rooms/{roomid}/typing/{userid}"; |
|
|
|
|
|
|
|
public static string Flag = "/_matrix/client/r0/rooms/{roomid}/report/{eventid}"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class RoomState |
|
|
|
/// <summary> |
|
|
|
{ |
|
|
|
/// Gets information about all devices for the current user. |
|
|
|
public static string List = "/_matrix/client/r0/rooms/{roomid}/state"; |
|
|
|
/// </summary> |
|
|
|
public static string State = "/_matrix/client/r0/rooms/{roomid}/state/{eventtype}/{statekey}"; |
|
|
|
/// <remarks> |
|
|
|
} |
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Device32management/getDevices |
|
|
|
} |
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Manage = "/_matrix/client/r0/devices"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// Deletes the given device, and invalidates any access token associated with it. Deletes with interactive auth object and deviceId parameter. |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Device32management/deleteDevice |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Delete = _deviceIdUrl; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// Gets information on a single device, by device id. Gets with deviceId parameter. |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Device32management/getDevice |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Info = _deviceIdUrl; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// Updates the metadata (display name) on the given device. Puts a device metadata object with deviceId parameter. |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Device32management/updateDevice |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Update = _deviceIdUrl; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// Deletes the given devices, and invalidates any access token associated with them. Posts with an interactive auth + device list object. |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Device32management/deleteDevices |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string MultiDelete = "/_matrix/client/r0/delete_devices"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// Sends send-to-device events to the given devices. Puts a device message object with eventType and txnId parameters. |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Send45to45Device32messaging/sendToDevice |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Send = "/_matrix/client/r0/sendtodevice/{eventtype}/{txnid}"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static class Media |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Config = "/_matrix/media/r0/config"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Save = "/_matrix/media/r0/download/{servername}/{mediaid}"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Saveas = "/_matrix/media/r0/download/{servername}/{mediaid}/{filename}"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Preview = "/_matrix/media/r0/preview_url"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Thumb = "/_matrix/media/r0/thumbnail/{servername}/{mediaid}"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Upload = "/_matrix/media/r0/upload"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static class Notifier |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Notifiers = "/_matrix/client/r0/notifications"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Pushers = "/_matrix/client/r0/pushers"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Set = "/_matrix/client/r0/pushers/set"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Rules = "/_matrix/client/r0/pushrules/"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static class NotifierRule |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Manage = "/_matrix/client/r0/pushrules/{scope}/{kind}/{ruleid}"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Actions = "/_matrix/client/r0/pushrules/{scope}/{kind}/{ruleid}/actions"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Toggle = "/_matrix/client/r0/pushrules/{scope}/{kind}/{ruleid}/enabled"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static class User |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Thirdparty = "/_matrix/client/r0/account/3pid"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Deactivate = "/_matrix/client/r0/account/deactivate"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Password = "/_matrix/client/r0/account/password"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Register = "/_matrix/client/r0/register"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string WhoAmI = "/_matrix/client/r0/account/whoami"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Profile = "/_matrix/client/r0/profile/{userid}"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Avatar = "/_matrix/client/r0/profile/{userid}/avtatar_url"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string DisplayName = "/_matrix/client/r0/profile/{userid}/displayname"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string ExtraInfo = "/_matrix/client/r0/user/{userid}/account_data/{type}"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string EventFilter = "/_matrix/client/r0/user/{userid}/filter"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// Gets a list of the user's current rooms. |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Room32membership/getJoinedRooms |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Rooms = "/_matrix/client/r0/joined_rooms"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Login = "/_matrix/client/r0/login"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Logout = "/_matrix/client/r0/logout"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Status = "/_matrix/client/r0/presence/{userid}/status"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static class UserRoom |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Extrainfo = "/_matrix/client/r0/user/{userid}/rooms/{roomid}/account_data/{type}"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Tags = "/_matrix/client/r0/user/{userid}/rooms/{roomid}/tags"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static class Room |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Create = "/_matrix/client/r0/createroom"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Aliases = "/_matrix/client/unstable/org.matrix.msc2432/rooms/{roomid}/aliases"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Active = "/_matrix/client/r0/rooms/{roomid}/joined_members"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Members = "/_matrix/client/r0/rooms/{roomid}/members"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Messages = "/_matrix/client/r0/rooms/{roomid}/messages"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Join = "/_matrix/client/r0/join/{roomidoralias}"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Ban = "/_matrix/client/r0/rooms/{roomid}/ban"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Forget = "/_matrix/client/r0/rooms/{roomid}/forget"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Invite = "/_matrix/client/r0/rooms/{roomid}/invite"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string IdJoin = "/_matrix/client/r0/rooms/{roomid}/join"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Kick = "/_matrix/client/r0/rooms/{roomid}/kick"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Leave = "/_matrix/client/r0/rooms/{roomid}/leave"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Unban = "/_matrix/client/r0/rooms/{roomid}/unban"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Marker = "/_matrix/client/r0/rooms/{roomid}/read_markers"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static class RoomEvent |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Context = "/_matrix/client/r0/rooms/{roomid}/context/{eventid}"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Event = "/_matrix/client/r0/rooms/{roomid}/event/{eventid}"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Receipt = "/_matrix/client/r0/rooms/{roomid}/receipt/{receipttype}/{eventid}"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Redact = "/_matrix/client/r0/rooms/{roomid}/redact/{eventid}/{txnid}"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Send = "/_matrix/client/r0/rooms/{roomid}/send/{eventtype}/{txnid}"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Typing = "/_matrix/client/r0/rooms/{roomid}/typing/{userid}"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string Flag = "/_matrix/client/r0/rooms/{roomid}/report/{eventid}"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static class RoomState |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string List = "/_matrix/client/r0/rooms/{roomid}/state"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
/// <remarks> |
|
|
|
|
|
|
|
/// |
|
|
|
|
|
|
|
/// </remarks> |
|
|
|
|
|
|
|
public static string State = "/_matrix/client/r0/rooms/{roomid}/state/{eventtype}/{statekey}"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class MatrixApiEntities |
|
|
|
public class MatrixApiEntities |
|
|
|
{ |
|
|
|
{ |
|
|
|