From 84375845308d5ed11b01b0e20dd442b82bf5bf85 Mon Sep 17 00:00:00 2001 From: GopherDID <74898029+vmidyllic@users.noreply.github.com> Date: Fri, 7 Jun 2024 10:11:20 +0300 Subject: [PATCH] add credential offer status (#239) * add credential offer status --- src/iden3comm/types/protocol/credentials.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/iden3comm/types/protocol/credentials.ts b/src/iden3comm/types/protocol/credentials.ts index abc06b34..afb731e9 100644 --- a/src/iden3comm/types/protocol/credentials.ts +++ b/src/iden3comm/types/protocol/credentials.ts @@ -36,10 +36,18 @@ export type CredentialsOnchainOfferMessageBody = { transaction_data: ContractInvokeTransactionData; }; +/** CredentialOfferStatus is list of possible statuses for credential offer message */ +export enum CredentialOfferStatus { + Pending = 'pending', + Completed = 'completed', + Rejected = 'rejected' +} + /** CredentialOffer is structure to fetch credential */ export type CredentialOffer = { id: string; description: string; + status?: CredentialOfferStatus; }; /** CredentialIssuanceMessage represent Iden3message for credential issuance */