Add a regex pattern to be registered.
: The type of regex pattern. Must be 'users', 'rooms', or 'aliases'.
: The regex pattern.
: True to reserve the matched namespace.
Get the token the app service will use to communicate with the homeserver.
The token
Get the URL which the home server will hit in order to talk to the AS.
Get the token the homeserver will use to communicate with the app service.
The token
Get the ID of the appservice.
The ID
Get the key-value output which should be written to a YAML file.
Get the list of protocols that this appservice will serve for third party lookups. Will return null if no protocols have been set.
The protocols.
Get the desired user_id localpart for the app service itself.
The user_id localpart ("alice" in "@alice:domain")
Check if a room alias meets this registration regex.
The room alias
True to restrict matching to only exclusive regexes. False to allow exclusive or non-exlusive regexes to match.
True if there is a match.
Get whether requests from this AS are rate-limited by the home server.
Check if a room ID meets this registration regex.
The room ID
True to restrict matching to only exclusive regexes. False to allow exclusive or non-exlusive regexes to match.
True if there is a match.
Check if a user_id meets this registration regex.
The user ID
True to restrict matching to only exclusive regexes. False to allow exclusive or non-exlusive regexes to match.
True if there is a match.
Output this registration to the given file name.
The file name to write the yaml to.
Experimental
Should the appservice receive ephemeral events. Note this requires a homeserver implementing MSC2409.
Set the token the app service will use to communicate with the homeserver.
The token
Set the URL which the home server will hit in order to talk to the AS.
The application service url
Set the token the homeserver will use to communicate with the app service.
The token
Set the ID of the appservice; must be unique across the homeserver and never change.
The ID
Set the list of protocols that this appservice will serve for third party lookups.
The protocols
Set whether requests from this AS are rate-limited by the home server.
The flag which is set to true to enable rate rate limiting, false to disable.
Set the desired user_id localpart for the app service itself.
The user_id localpart ("alice" in "@alice:domain")
Convert a JSON object to an AppServiceRegistration object.
The registration object
The registration.
Generate a random token.
A randomly generated token.
Generated using TypeDoc
Experimental Signal to the homeserver that this appservice will accept ephemeral events.