Skip to content

@keymaster/connect / AppMsgSendParams

Interface: AppMsgSendParams

appmsg.send 请求参数。

Properties overview

PropertyTypeRequiredDescription
recipientPublicKeyHexstringYes
recipientOrigin?stringNo外部 app 形式的目标:exact origin(scheme + host + port)。
recipientAppId?stringNo内部插件 / 系统应用形式的目标:pluginEndpointId / appId。
contentTypeAppMsgContentTypeYes
bodystringYes
clientMessageIdstringYes
createdAtMsnumberYes
connectSessionIdstringYes必填:当前 connectSessionId。

Extends

  • AppMsgSendInput

Properties

recipientPublicKeyHex

recipientPublicKeyHex: string

Inherited from

AppMsgSendInput.recipientPublicKeyHex


recipientOrigin?

optional recipientOrigin?: string

外部 app 形式的目标:exact origin(scheme + host + port)。

Inherited from

AppMsgSendInput.recipientOrigin


recipientAppId?

optional recipientAppId?: string

内部插件 / 系统应用形式的目标:pluginEndpointId / appId。

Inherited from

AppMsgSendInput.recipientAppId


contentType

contentType: AppMsgContentType

Inherited from

AppMsgSendInput.contentType


body

body: string

Inherited from

AppMsgSendInput.body


clientMessageId

clientMessageId: string

Inherited from

AppMsgSendInput.clientMessageId


createdAtMs

createdAtMs: number

Inherited from

AppMsgSendInput.createdAtMs


connectSessionId

connectSessionId: string

必填:当前 connectSessionId。

Capability access without key custody.