New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sphereon/oid4vci-common

Package Overview
Dependencies
Maintainers
4
Versions
443
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sphereon/oid4vci-common - npm Package Compare versions

Comparing version 0.4.1-unstable.286 to 0.4.1-unstable.288

12

dist/types/StateManager.types.d.ts

@@ -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;

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc