forked from turt2live/matrix-bot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add capabilities API * Fix property * lint
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
type BooleanCapability = { enabled: boolean }; | ||
|
||
export interface MatrixCapabilities { | ||
/** | ||
* Is the user able to add, remove, or change 3PID associations on their account . | ||
*/ | ||
"m.3pid_changes"?: BooleanCapability; | ||
/** | ||
* Is the user able to change their own password. | ||
*/ | ||
"m.change_password"?: BooleanCapability; | ||
/** | ||
* Is the user able to generate single-use, time-limited tokens via the API. | ||
*/ | ||
"m.get_login_token"?: BooleanCapability; | ||
/** | ||
* Is the user able to change their own avatar_url via profile endpoints. | ||
*/ | ||
"m.set_avatar_url"?: BooleanCapability; | ||
/** | ||
* Is the user able to change their own display name via profile endpoints. | ||
*/ | ||
"m.set_displayname"?: BooleanCapability; | ||
/** | ||
* Describes the default and available room versions a server supports, and at what level of stability. | ||
* | ||
* Any room version not marked as "stable" should be considered "unstable" | ||
*/ | ||
"m.room_versions"?: { | ||
"available": { | ||
[version: string]: "stable"|string; | ||
}; | ||
"default": string; | ||
}; | ||
[key: string]: unknown; | ||
} |