Type alias RecordModelBeta

RecordModel: DwnMessageDescriptor[DwnInterface.RecordsWrite] & Omit<DwnMessage[DwnInterface.RecordsWrite], "descriptor" | "recordId"> & {
    author: string;
    protocolRole?: RecordOptions["protocolRole"];
    recordId?: string;
}

Represents the structured data model of a record, encapsulating the essential fields that define the record's metadata and payload within a Decentralized Web Node (DWN).

Type declaration

  • author: string

    The DID that signed the record.

  • Optional protocolRole?: RecordOptions["protocolRole"]

    The protocol role under which this record is written.

  • Optional recordId?: string

    The unique identifier of the record.

Generated using TypeDoc