Type alias MessageMetadataBeta

MessageMetadata: {
    createdAt: string;
    exchangeId: string;
    externalId?: string;
    from: string;
    id: string;
    kind: MessageKind;
    protocol: `${number}`;
    to: string;
}

Message's metadata

Type declaration

  • createdAt: string

    Message creation time. Expressed as ISO8601

  • exchangeId: string

    ID for an "exchange" of messages between Alice - PFI. Uses the id of the RFQ that initiated the exchange

  • Optional externalId?: string

    Arbitrary ID for the caller to associate with the message. Optional

  • from: string

    The sender's DID

  • id: string

    the message id

  • kind: MessageKind

    the message kind (e.g. rfq, quote)

  • protocol: `${number}`

    Version of the protocol in use (x.x format). Must be consistent with all other messages in a given exchange

  • to: string

    the recipient's DID