Skip to content
PricingReleases

ChannelAdapter

Defined in: channel-gateway.ts:141

readonly provider: string

Defined in: channel-gateway.ts:142

optional acknowledge(connection_id, message): Promise<void>

Defined in: channel-gateway.ts:149

string

NormalizedChannelMessage

Promise<void>


authenticate(connection_id): Promise<{ authenticated: boolean; provider_account_id: string | null; }>

Defined in: channel-gateway.ts:144

string

Promise<{ authenticated: boolean; provider_account_id: string | null; }>


optional backfillHistory(connection_id, channel_id, cursor?): Promise<NormalizedChannelMessage[]>

Defined in: channel-gateway.ts:151

string

string

string

Promise<NormalizedChannelMessage[]>


capabilities(): ChannelAdapterCapabilities | Promise<ChannelAdapterCapabilities>

Defined in: channel-gateway.ts:143

ChannelAdapterCapabilities | Promise<ChannelAdapterCapabilities>


deliver(connection_id, request): Promise<ChannelDeliveryResult>

Defined in: channel-gateway.ts:148

string

ChannelDeliveryRequest

Promise<ChannelDeliveryResult>


discoverChannels(connection_id): Promise<ChannelDirectoryEntry[]>

Defined in: channel-gateway.ts:147

string

Promise<ChannelDirectoryEntry[]>


normalize(event, connection_id): NormalizedChannelMessage | Promise<NormalizedChannelMessage | null> | null

Defined in: channel-gateway.ts:145

unknown

string

NormalizedChannelMessage | Promise<NormalizedChannelMessage | null> | null


optional recentContext(connection_id, message, limit): Promise<ChannelContextMessage[]>

Defined in: channel-gateway.ts:150

string

NormalizedChannelMessage

number

Promise<ChannelContextMessage[]>


resolveIdentity(connection_id, provider_user_id): Promise<ChannelProviderIdentity | null>

Defined in: channel-gateway.ts:146

string

string

Promise<ChannelProviderIdentity | null>


optional setTyping(connection_id, channel_id, thread_id, active): Promise<void>

Defined in: channel-gateway.ts:152

string

string

string | null

boolean

Promise<void>