Type alias ResourceMetadataBeta

ResourceMetadata: {
    createdAt: string;
    from: string;
    id: string;
    kind: ResourceKind;
    protocol: `${number}`;
    updatedAt?: string;
}

Resource's metadata

Type declaration

  • createdAt: string

    When the resource was created at. Expressed as ISO8601

  • from: string

    The author's DID

  • id: string

    the resource id

  • kind: ResourceKind

    the resource kind (e.g. Offering)

  • protocol: `${number}`

    Version of the protocol in use (x.x format). Any exchanges based off this resource must use the same version.

  • Optional updatedAt?: string

    When the resource was last updated. Expressed as ISO8601