ChannelAdapter
Defined in: channel-gateway.ts:141
Properties
Section titled “Properties”provider
Section titled “provider”
readonlyprovider:string
Defined in: channel-gateway.ts:142
Methods
Section titled “Methods”acknowledge()?
Section titled “acknowledge()?”
optionalacknowledge(connection_id,message):Promise<void>
Defined in: channel-gateway.ts:149
Parameters
Section titled “Parameters”connection_id
Section titled “connection_id”string
message
Section titled “message”Returns
Section titled “Returns”Promise<void>
authenticate()
Section titled “authenticate()”authenticate(
connection_id):Promise<{authenticated:boolean;provider_account_id:string|null; }>
Defined in: channel-gateway.ts:144
Parameters
Section titled “Parameters”connection_id
Section titled “connection_id”string
Returns
Section titled “Returns”Promise<{ authenticated: boolean; provider_account_id: string | null; }>
backfillHistory()?
Section titled “backfillHistory()?”
optionalbackfillHistory(connection_id,channel_id,cursor?):Promise<NormalizedChannelMessage[]>
Defined in: channel-gateway.ts:151
Parameters
Section titled “Parameters”connection_id
Section titled “connection_id”string
channel_id
Section titled “channel_id”string
cursor?
Section titled “cursor?”string
Returns
Section titled “Returns”Promise<NormalizedChannelMessage[]>
capabilities()
Section titled “capabilities()”capabilities():
ChannelAdapterCapabilities|Promise<ChannelAdapterCapabilities>
Defined in: channel-gateway.ts:143
Returns
Section titled “Returns”ChannelAdapterCapabilities | Promise<ChannelAdapterCapabilities>
deliver()
Section titled “deliver()”deliver(
connection_id,request):Promise<ChannelDeliveryResult>
Defined in: channel-gateway.ts:148
Parameters
Section titled “Parameters”connection_id
Section titled “connection_id”string
request
Section titled “request”Returns
Section titled “Returns”Promise<ChannelDeliveryResult>
discoverChannels()
Section titled “discoverChannels()”discoverChannels(
connection_id):Promise<ChannelDirectoryEntry[]>
Defined in: channel-gateway.ts:147
Parameters
Section titled “Parameters”connection_id
Section titled “connection_id”string
Returns
Section titled “Returns”Promise<ChannelDirectoryEntry[]>
normalize()
Section titled “normalize()”normalize(
event,connection_id):NormalizedChannelMessage|Promise<NormalizedChannelMessage|null> |null
Defined in: channel-gateway.ts:145
Parameters
Section titled “Parameters”unknown
connection_id
Section titled “connection_id”string
Returns
Section titled “Returns”NormalizedChannelMessage | Promise<NormalizedChannelMessage | null> | null
recentContext()?
Section titled “recentContext()?”
optionalrecentContext(connection_id,message,limit):Promise<ChannelContextMessage[]>
Defined in: channel-gateway.ts:150
Parameters
Section titled “Parameters”connection_id
Section titled “connection_id”string
message
Section titled “message”number
Returns
Section titled “Returns”Promise<ChannelContextMessage[]>
resolveIdentity()
Section titled “resolveIdentity()”resolveIdentity(
connection_id,provider_user_id):Promise<ChannelProviderIdentity|null>
Defined in: channel-gateway.ts:146
Parameters
Section titled “Parameters”connection_id
Section titled “connection_id”string
provider_user_id
Section titled “provider_user_id”string
Returns
Section titled “Returns”Promise<ChannelProviderIdentity | null>
setTyping()?
Section titled “setTyping()?”
optionalsetTyping(connection_id,channel_id,thread_id,active):Promise<void>
Defined in: channel-gateway.ts:152
Parameters
Section titled “Parameters”connection_id
Section titled “connection_id”string
channel_id
Section titled “channel_id”string
thread_id
Section titled “thread_id”string | null
active
Section titled “active”boolean
Returns
Section titled “Returns”Promise<void>