Message
Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:13
A received or stored message. Its fields are public values. Its actions use
the client that returned it; the message holds that client weakly, so an
action after the client ends or is collected fails with ClientClosed.
The generated base holds the message’s fields.
Extends
Section titled “Extends”MessageFields
Properties
Section titled “Properties”content
Section titled “content”
readonlycontent:MessageContent
Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:14
contentType?
Section titled “contentType?”
readonlyoptionalcontentType?:ContentTypeId
Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2119
Inherited from
Section titled “Inherited from”MessageFields.contentType
conversationId
Section titled “conversationId”
readonlyconversationId:string
Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2110
Inherited from
Section titled “Inherited from”MessageFields.conversationId
deliveryCursor
Section titled “deliveryCursor”
readonlydeliveryCursor:string|null
Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2109
The committed delivery position, or null when there is none.
Inherited from
Section titled “Inherited from”MessageFields.deliveryCursor
deliveryStatus
Section titled “deliveryStatus”
readonlydeliveryStatus:DeliveryStatus
Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2117
Inherited from
Section titled “Inherited from”MessageFields.deliveryStatus
encoded?
Section titled “encoded?”
readonlyoptionalencoded?:EncodedContent
Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2121
Inherited from
Section titled “Inherited from”MessageFields.encoded
expiresAt?
Section titled “expiresAt?”
readonlyoptionalexpiresAt?:Timestamp
Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2115
Inherited from
Section titled “Inherited from”MessageFields.expiresAt
fallback?
Section titled “fallback?”
readonlyoptionalfallback?:string
Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2120
Inherited from
Section titled “Inherited from”MessageFields.fallback
readonlyid:string
Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2107
Inherited from
Section titled “Inherited from”MessageFields.id
inReplyTo?
Section titled “inReplyTo?”
readonlyoptionalinReplyTo?:ReplyParent
Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2124
Inherited from
Section titled “Inherited from”MessageFields.inReplyTo
inReplyToContent?
Section titled “inReplyToContent?”
readonlyoptionalinReplyToContent?:MessageBody
Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:16
The decoded body of the message this one replies to.
insertedAt
Section titled “insertedAt”
readonlyinsertedAt:Timestamp
Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2114
Inherited from
Section titled “Inherited from”MessageFields.insertedAt
readonlykind:MessageKind
Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2116
Inherited from
Section titled “Inherited from”MessageFields.kind
rawBytes
Section titled “rawBytes”
readonlyrawBytes:Uint8Array
Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2118
Inherited from
Section titled “Inherited from”MessageFields.rawBytes
reactions
Section titled “reactions”
readonlyreactions:ReactionMessage[]
Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2123
Inherited from
Section titled “Inherited from”MessageFields.reactions
replyContent?
Section titled “replyContent?”
readonlyoptionalreplyContent?:MessageBody
Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:18
The decoded body of this reply.
replyCount
Section titled “replyCount”
readonlyreplyCount:bigint
Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2122
Inherited from
Section titled “Inherited from”MessageFields.replyCount
senderInboxId
Section titled “senderInboxId”
readonlysenderInboxId:string
Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2112
Inherited from
Section titled “Inherited from”MessageFields.senderInboxId
sentAt
Section titled “sentAt”
readonlysentAt:Timestamp
Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2113
Inherited from
Section titled “Inherited from”MessageFields.sentAt
readonlytopic:string
Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2111
Inherited from
Section titled “Inherited from”MessageFields.topic
Methods
Section titled “Methods”client()
Section titled “client()”client():
Client
Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:35
The client that returned this message. Throws ClientClosed when gone.
Returns
Section titled “Returns”conversation()
Section titled “conversation()”conversation():
Promise<Conversation|undefined>
Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:33
Returns
Section titled “Returns”Promise<Conversation | undefined>
delete()
Section titled “delete()”delete():
Promise<string>
Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:21
Returns
Section titled “Returns”Promise<string>
deleteLocally()
Section titled “deleteLocally()”deleteLocally():
Promise<void>
Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:22
Returns
Section titled “Returns”Promise<void>
parent()
Section titled “parent()”parent():
Promise<Message|undefined>
Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:32
Returns
Section titled “Returns”Promise<Message | undefined>
react()
Section titled “react()”react(
reaction,options?):Promise<string>
Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:23
Parameters
Section titled “Parameters”reaction
Section titled “reaction”options?
Section titled “options?”Returns
Section titled “Returns”Promise<string>
refresh()
Section titled “refresh()”refresh():
Promise<Message|undefined>
Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:20
Returns
Section titled “Returns”Promise<Message | undefined>
reply()
Section titled “reply()”Call Signature
Section titled “Call Signature”reply(
content,options?):Promise<string>
Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:24
Parameters
Section titled “Parameters”content
Section titled “content”string | EncodedContent
options?
Section titled “options?”Returns
Section titled “Returns”Promise<string>
Call Signature
Section titled “Call Signature”reply<
T>(codec,value,options?):Promise<string>
Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:31
Reply with a value of a typed codec. The codec’s fallback applies to the
nested envelope; the reply keeps the reply type’s push default unless
options.shouldPush is set. A failed codec step is CodecEncodeFailed,
with no publish attempt.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”ContentCodec<T>
NoInfer<T>
options?
Section titled “options?”Returns
Section titled “Returns”Promise<string>