Skip to main content

Message

@hyperledger/identus-sdk v8.0.0


@hyperledger/identus-sdk / overview / Domain / Message

Class: Message

Defined in: packages/shared/domain/build/index.d.ts:300

Storable define properties a Domain object must implement to be compatible with Pluto

Implements

Constructors

Constructor

new Message(body: string | JsonObj<any>, id: string | undefined, piuri: string, from?: DID, to?: DID, attachments?: AttachmentDescriptor[], thid?: string, extraHeaders?: JsonObj<any>, createdTime?: number, expiresTimePlus?: number, ack?: string[], direction?: MessageDirection, fromPrior?: string, pthid?: string): Message

Defined in: packages/shared/domain/build/index.d.ts:316

Parameters

ParameterType
bodystring | JsonObj<any>
idstring | undefined
piuristring
from?DID
to?DID
attachments?AttachmentDescriptor[]
thid?string
extraHeaders?JsonObj<any>
createdTime?number
expiresTimePlus?number
ack?string[]
direction?MessageDirection
fromPrior?string
pthid?string

Returns

Message

Properties

PropertyModifierTypeDescriptionDefined in
ackreadonlystring[]-packages/shared/domain/build/index.d.ts:310
attachmentsreadonlyAttachmentDescriptor[]-packages/shared/domain/build/index.d.ts:305
bodyreadonlyJsonObj-packages/shared/domain/build/index.d.ts:315
createdTimereadonlynumber-packages/shared/domain/build/index.d.ts:308
directionpublicMessageDirection-packages/shared/domain/build/index.d.ts:311
expiresTimePlusreadonlynumber-packages/shared/domain/build/index.d.ts:309
extraHeadersreadonlyJsonObj-packages/shared/domain/build/index.d.ts:307
from?readonlyDID-packages/shared/domain/build/index.d.ts:303
fromPrior?readonlystring-packages/shared/domain/build/index.d.ts:312
idreadonlystring-packages/shared/domain/build/index.d.ts:301
piurireadonlystring-packages/shared/domain/build/index.d.ts:302
pthid?readonlystring-packages/shared/domain/build/index.d.ts:313
thid?readonlystring-packages/shared/domain/build/index.d.ts:306
to?readonlyDID-packages/shared/domain/build/index.d.ts:304
uuidpublicstringUniversally Unique Identifier. should be unique across all items.packages/shared/domain/build/index.d.ts:314

Methods

fromJson()

static fromJson(jsonString: any): Message

Defined in: packages/shared/domain/build/index.d.ts:317

Parameters

ParameterType
jsonStringany

Returns

Message


isBase64Attachment()

static isBase64Attachment(data: any): data is AttachmentBase64

Defined in: packages/shared/domain/build/index.d.ts:318

Parameters

ParameterType
dataany

Returns

data is AttachmentBase64


isJsonAttachment()

static isJsonAttachment(data: any): data is AttachmentJsonData

Defined in: packages/shared/domain/build/index.d.ts:319

Parameters

ParameterType
dataany

Returns

data is AttachmentJsonData