Skip to content

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.

  • MessageFields

readonly content: MessageContent

Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:14


readonly optional contentType?: ContentTypeId

Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2119

MessageFields.contentType


readonly conversationId: string

Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2110

MessageFields.conversationId


readonly deliveryCursor: 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.

MessageFields.deliveryCursor


readonly deliveryStatus: DeliveryStatus

Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2117

MessageFields.deliveryStatus


readonly optional encoded?: EncodedContent

Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2121

MessageFields.encoded


readonly optional expiresAt?: Timestamp

Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2115

MessageFields.expiresAt


readonly optional fallback?: string

Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2120

MessageFields.fallback


readonly id: string

Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2107

MessageFields.id


readonly optional inReplyTo?: ReplyParent

Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2124

MessageFields.inReplyTo


readonly optional inReplyToContent?: MessageBody

Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:16

The decoded body of the message this one replies to.


readonly insertedAt: Timestamp

Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2114

MessageFields.insertedAt


readonly kind: MessageKind

Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2116

MessageFields.kind


readonly rawBytes: Uint8Array

Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2118

MessageFields.rawBytes


readonly reactions: ReactionMessage[]

Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2123

MessageFields.reactions


readonly optional replyContent?: MessageBody

Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:18

The decoded body of this reply.


readonly replyCount: bigint

Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2122

MessageFields.replyCount


readonly senderInboxId: string

Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2112

MessageFields.senderInboxId


readonly sentAt: Timestamp

Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2113

MessageFields.sentAt


readonly topic: string

Defined in: sdks/browser/dist/typescript-wasm/public-values.gen.d.ts:2111

MessageFields.topic

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.

Client


conversation(): Promise<Conversation | undefined>

Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:33

Promise<Conversation | undefined>


delete(): Promise<string>

Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:21

Promise<string>


deleteLocally(): Promise<void>

Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:22

Promise<void>


parent(): Promise<Message | undefined>

Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:32

Promise<Message | undefined>


react(reaction, options?): Promise<string>

Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:23

Reaction

SendOptions

Promise<string>


refresh(): Promise<Message | undefined>

Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:20

Promise<Message | undefined>


reply(content, options?): Promise<string>

Defined in: sdks/browser/dist/typescript-wasm/runtime/public/message.d.ts:24

string | EncodedContent

SendOptions

Promise<string>

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.

T

ContentCodec<T>

NoInfer<T>

SendOptions

Promise<string>