Skip to content

IntentCodec

Defined in: sdks/node/dist/runtime/public/codecs.d.ts:58

  • StandardCodec<Intent, ReturnType<typeof lowerIntent>>

new IntentCodec(): IntentCodec

Defined in: sdks/node/dist/runtime/public/codecs.d.ts:59

IntentCodec

StandardCodec<Intent, ReturnType<typeof lowerIntent>>.constructor

readonly type: ContentTypeId

Defined in: sdks/node/dist/runtime/public/codecs.d.ts:10

StandardCodec.type

decode(encoded): Intent

Defined in: sdks/node/dist/runtime/public/codecs.d.ts:17

EncodedContent

Intent

StandardCodec.decode


encode(value): EncodedContent

Defined in: sdks/node/dist/runtime/public/codecs.d.ts:14

Intent

EncodedContent

StandardCodec.encode


fallback(value): string | undefined

Defined in: sdks/node/dist/runtime/public/codecs.d.ts:15

Text for recipients without this codec. Absent: no fallback.

Intent

string | undefined

StandardCodec.fallback


shouldPush(value): boolean

Defined in: sdks/node/dist/runtime/public/codecs.d.ts:16

Whether sending this value notifies recipients. Absent: it does.

Intent

boolean

StandardCodec.shouldPush