@sphereon/oid4vci-common
Advanced tools
Comparing version 0.4.1-unstable.286 to 0.4.1-unstable.288
@@ -9,5 +9,17 @@ import { AssertedUniformCredentialOffer } from './CredentialIssuance.types'; | ||
userPin?: string; | ||
status: IssueStatus; | ||
error?: string; | ||
lastUpdatedAt: number; | ||
issuerState?: string; | ||
preAuthorizedCode?: string; | ||
} | ||
export declare enum IssueStatus { | ||
OFFER_CREATED = "OFFER_CREATED", | ||
OFFER_URI_RETRIEVED = "OFFER_URI_RETRIEVED", | ||
ACCESS_TOKEN_REQUESTED = "ACCESS_TOKEN_CREATED", | ||
ACCESS_TOKEN_CREATED = "ACCESS_TOKEN_CREATED", | ||
CREDENTIAL_REQUEST_RECEIVED = "CREDENTIAL_REQUEST_RECEIVED", | ||
CREDENTIAL_ISSUED = "CREDENTIAL_ISSUED", | ||
ERROR = "ERROR" | ||
} | ||
export interface CNonceState extends StateType { | ||
@@ -14,0 +26,0 @@ cNonce: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.IssueStatus = void 0; | ||
var IssueStatus; | ||
(function (IssueStatus) { | ||
IssueStatus["OFFER_CREATED"] = "OFFER_CREATED"; | ||
IssueStatus["OFFER_URI_RETRIEVED"] = "OFFER_URI_RETRIEVED"; | ||
IssueStatus["ACCESS_TOKEN_REQUESTED"] = "ACCESS_TOKEN_CREATED"; | ||
IssueStatus["ACCESS_TOKEN_CREATED"] = "ACCESS_TOKEN_CREATED"; | ||
IssueStatus["CREDENTIAL_REQUEST_RECEIVED"] = "CREDENTIAL_REQUEST_RECEIVED"; | ||
IssueStatus["CREDENTIAL_ISSUED"] = "CREDENTIAL_ISSUED"; | ||
IssueStatus["ERROR"] = "ERROR"; | ||
})(IssueStatus = exports.IssueStatus || (exports.IssueStatus = {})); | ||
//# sourceMappingURL=StateManager.types.js.map |
@@ -11,2 +11,5 @@ import { AssertedUniformCredentialOffer } from './CredentialIssuance.types'; | ||
userPin?: string; | ||
status: IssueStatus; | ||
error?: string; | ||
lastUpdatedAt: number; | ||
issuerState?: string; //todo: Probably good to hash it here, since it would come in from the client and we could match the hash and thus use the client value | ||
@@ -16,2 +19,12 @@ preAuthorizedCode?: string; //todo: Probably good to hash it here, since it would come in from the client and we could match the hash and thus use the client value | ||
export enum IssueStatus { | ||
OFFER_CREATED = 'OFFER_CREATED', | ||
OFFER_URI_RETRIEVED = 'OFFER_URI_RETRIEVED', // This state is optional. as an offer uri is optional | ||
ACCESS_TOKEN_REQUESTED = 'ACCESS_TOKEN_CREATED', // Optional state, given the token endpoint could also be on a separate AS | ||
ACCESS_TOKEN_CREATED = 'ACCESS_TOKEN_CREATED', // Optional state, given the token endpoint could also be on a separate AS | ||
CREDENTIAL_REQUEST_RECEIVED = 'CREDENTIAL_REQUEST_RECEIVED', // Credential request received. Next state would either be error or issued | ||
CREDENTIAL_ISSUED = 'CREDENTIAL_ISSUED', | ||
ERROR = 'ERROR', | ||
} | ||
export interface CNonceState extends StateType { | ||
@@ -18,0 +31,0 @@ cNonce: string; |
{ | ||
"name": "@sphereon/oid4vci-common", | ||
"version": "0.4.1-unstable.286+a3c2561", | ||
"version": "0.4.1-unstable.288+a1fa6a4", | ||
"description": "OpenID 4 Verifiable Credential Issuance Common Types", | ||
@@ -48,3 +48,3 @@ "source": "lib/index.ts", | ||
}, | ||
"gitHead": "a3c2561c7596ad7303467528d92cdaa033c7af94" | ||
"gitHead": "a1fa6a4c569c36951e1a7cedb632aa0b22104448" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
235701
3490