Properties
Optional onAliasQueried
onAliasQueried: (alias: string, roomId: string) => PossiblePromise<void>
Type declaration
-
- (alias: string, roomId: string): PossiblePromise<void>
-
Parameters
-
alias: string
-
roomId: string
Returns PossiblePromise<void>
Optional onAliasQuery
on
AliasQuery: (alias: string, aliasLocalpart: string) => PossiblePromise<null | void | { creationOpts?: Record<string, unknown>; remote?: RemoteRoom; roomId?: string }>
Type declaration
-
- (alias: string, aliasLocalpart: string): PossiblePromise<null | void | { creationOpts?: Record<string, unknown>; remote?: RemoteRoom; roomId?: string }>
-
Parameters
-
alias: string
-
aliasLocalpart: string
Returns PossiblePromise<null | void | { creationOpts?: Record<string, unknown>; remote?: RemoteRoom; roomId?: string }>
Optional onEphemeralEvent
Optional onLog
onLog: (text: string, isError: boolean) => void
Type declaration
-
- (text: string, isError: boolean): void
-
Parameters
-
text: string
-
isError: boolean
Returns void
Optional onUserQuery
on
UserQuery: (matrixUser: MatrixUser) => PossiblePromise<null | void | { name?: string; remote?: RemoteUser; url?: string }>
Type declaration
-
- (matrixUser: MatrixUser): PossiblePromise<null | void | { name?: string; remote?: RemoteUser; url?: string }>
-
Parameters
Returns PossiblePromise<null | void | { name?: string; remote?: RemoteUser; url?: string }>
Optional thirdPartyLookup
thirdPartyLookup: { protocols: string[]; getLocation?: any; getProtocol?: any; getUser?: any; parseLocation?: any; parseUser?: any }
Type declaration
-
protocols: string[]
-
getLocation: function
- getLocation(protocol: string, fields: Record<string, string | string[]>): PossiblePromise<ThirdpartyLocationResponse[]>
-
Parameters
-
protocol: string
-
fields: Record<string, string | string[]>
Returns PossiblePromise<ThirdpartyLocationResponse[]>
-
getProtocol: function
- getProtocol(protocol: string): PossiblePromise<ThirdpartyProtocolResponse>
-
Parameters
Returns PossiblePromise<ThirdpartyProtocolResponse>
-
getUser: function
- getUser(protocol: string, fields: Record<string, string | string[]>): PossiblePromise<ThirdpartyUserResponse[]>
-
Parameters
-
protocol: string
-
fields: Record<string, string | string[]>
Returns PossiblePromise<ThirdpartyUserResponse[]>
-
parseLocation: function
- parseLocation(alias: string): PossiblePromise<ThirdpartyLocationResponse[]>
-
Parameters
Returns PossiblePromise<ThirdpartyLocationResponse[]>
-
parseUser: function
- parseUser(userid: string): PossiblePromise<ThirdpartyLocationResponse[]>
-
Parameters
Returns PossiblePromise<ThirdpartyLocationResponse[]>
Optional userActivityTracker
The bridge will invoke this function when a room has been created via onAliasQuery.