Type alias RecordUpdateParamsBeta

RecordUpdateParams: {
    data?: unknown;
    dataCid?: DwnMessageDescriptor[DwnInterface.RecordsWrite]["dataCid"];
    dataSize?: DwnMessageDescriptor[DwnInterface.RecordsWrite]["dataSize"];
    dateModified?: DwnMessageDescriptor[DwnInterface.RecordsWrite]["messageTimestamp"];
    datePublished?: DwnMessageDescriptor[DwnInterface.RecordsWrite]["datePublished"];
    protocolRole?: RecordOptions["protocolRole"];
    published?: DwnMessageDescriptor[DwnInterface.RecordsWrite]["published"];
    tags?: DwnMessageDescriptor[DwnInterface.RecordsWrite]["tags"];
}

Parameters for updating a DWN record.

This type specifies the set of properties that can be updated on an existing record. It is used to convey the new state or changes to be applied to the record.

Type declaration

  • Optional data?: unknown

    The new data for the record, which can be of any type. This data will replace the existing data of the record. It's essential to ensure that this data is compatible with the record's schema or data format expectations.

  • Optional dataCid?: DwnMessageDescriptor[DwnInterface.RecordsWrite]["dataCid"]

    The Content Identifier (CID) of the data. Updating this value changes the reference to the data associated with the record.

  • Optional dataSize?: DwnMessageDescriptor[DwnInterface.RecordsWrite]["dataSize"]

    The size of the data in bytes.

  • Optional dateModified?: DwnMessageDescriptor[DwnInterface.RecordsWrite]["messageTimestamp"]

    The timestamp indicating when the record was last modified.

  • Optional datePublished?: DwnMessageDescriptor[DwnInterface.RecordsWrite]["datePublished"]

    The timestamp indicating when the record was published.

  • Optional protocolRole?: RecordOptions["protocolRole"]

    The protocol role under which this record is written.

  • Optional published?: DwnMessageDescriptor[DwnInterface.RecordsWrite]["published"]

    The published status of the record.

  • Optional tags?: DwnMessageDescriptor[DwnInterface.RecordsWrite]["tags"]

    The tags associated with the updated record

Generated using TypeDoc