@sphereon/oid4vci-common
Advanced tools
Comparing version 0.4.1-unstable.270 to 0.4.1-unstable.275
@@ -137,4 +137,4 @@ "use strict"; | ||
if ('credential_offer_uri' in offer && (offer === null || offer === void 0 ? void 0 : offer.credential_offer_uri) !== undefined) { | ||
credentialOfferURI = offer.credential_offer_uri; | ||
if ((opts === null || opts === void 0 ? void 0 : opts.resolve) || (opts === null || opts === void 0 ? void 0 : opts.resolve) === undefined) { | ||
credentialOfferURI = offer.credential_offer_uri; | ||
originalCredentialOffer = (yield resolveCredentialOfferURI(credentialOfferURI)); | ||
@@ -141,0 +141,0 @@ } |
@@ -14,3 +14,3 @@ import { ICredentialContextType, IVerifiableCredential, W3CVerifiableCredential } from '@sphereon/ssi-types'; | ||
} | ||
export type OID4VCICredentialFormat = 'jwt_vc_json' | 'jwt_vc_json_ld' | 'ldp_vc'; | ||
export type OID4VCICredentialFormat = 'jwt_vc_json' | 'jwt_vc_json-ld' | 'ldp_vc'; | ||
export interface NameAndLocale { | ||
@@ -105,3 +105,3 @@ name?: string; | ||
export interface CredentialRequestJwtVcJsonLdAndLdpVc extends CommonCredentialRequest { | ||
format: 'jwt_vc_json_ld' | 'ldp_vc'; | ||
format: 'jwt_vc_json-ld' | 'ldp_vc'; | ||
credential_definition: IssuerCredentialDefinition; | ||
@@ -117,3 +117,3 @@ } | ||
export interface CredentialResponseJwtVcJsonLdAndLdpVc extends CommonCredentialResponse { | ||
format: 'jwt_vc_json_ld' | 'ldp_vc'; | ||
format: 'jwt_vc_json-ld' | 'ldp_vc'; | ||
credential: IVerifiableCredential; | ||
@@ -120,0 +120,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { CredentialOfferV1_0_11 } from './v1_0_11.types'; | ||
import { AssertedUniformCredentialOffer } from './CredentialIssuance.types'; | ||
export interface StateType { | ||
@@ -7,3 +7,3 @@ createdAt: number; | ||
clientId?: string; | ||
credentialOffer: CredentialOfferV1_0_11; | ||
credentialOffer: AssertedUniformCredentialOffer; | ||
userPin?: string; | ||
@@ -10,0 +10,0 @@ issuerState?: string; |
@@ -149,4 +149,4 @@ import { | ||
if ('credential_offer_uri' in offer && offer?.credential_offer_uri !== undefined) { | ||
credentialOfferURI = offer.credential_offer_uri; | ||
if (opts?.resolve || opts?.resolve === undefined) { | ||
credentialOfferURI = offer.credential_offer_uri; | ||
originalCredentialOffer = (await resolveCredentialOfferURI(credentialOfferURI)) as CredentialOfferPayloadV1_0_11; | ||
@@ -153,0 +153,0 @@ } else if (!originalCredentialOffer) { |
@@ -18,3 +18,3 @@ import { ICredentialContextType, IVerifiableCredential, W3CVerifiableCredential } from '@sphereon/ssi-types'; | ||
export type OID4VCICredentialFormat = 'jwt_vc_json' | 'jwt_vc_json_ld' | 'ldp_vc' /*| 'mso_mdoc'*/; // we do not support mdocs at this point | ||
export type OID4VCICredentialFormat = 'jwt_vc_json' | 'jwt_vc_json-ld' | 'ldp_vc' /*| 'mso_mdoc'*/; // we do not support mdocs at this point | ||
@@ -173,3 +173,3 @@ export interface NameAndLocale { | ||
export interface CredentialRequestJwtVcJsonLdAndLdpVc extends CommonCredentialRequest { | ||
format: 'jwt_vc_json_ld' | 'ldp_vc'; | ||
format: 'jwt_vc_json-ld' | 'ldp_vc'; | ||
credential_definition: IssuerCredentialDefinition; | ||
@@ -187,3 +187,3 @@ } | ||
export interface CredentialResponseJwtVcJsonLdAndLdpVc extends CommonCredentialResponse { | ||
format: 'jwt_vc_json_ld' | 'ldp_vc'; | ||
format: 'jwt_vc_json-ld' | 'ldp_vc'; | ||
credential: IVerifiableCredential; | ||
@@ -190,0 +190,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { CredentialOfferV1_0_11 } from './v1_0_11.types'; | ||
import { AssertedUniformCredentialOffer } from './CredentialIssuance.types'; | ||
@@ -9,3 +9,3 @@ export interface StateType { | ||
clientId?: string; | ||
credentialOffer: CredentialOfferV1_0_11; | ||
credentialOffer: AssertedUniformCredentialOffer; | ||
userPin?: string; | ||
@@ -12,0 +12,0 @@ 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 |
{ | ||
"name": "@sphereon/oid4vci-common", | ||
"version": "0.4.1-unstable.270+d9dae74", | ||
"version": "0.4.1-unstable.275+3886eda", | ||
"description": "OpenID 4 Verifiable Credential Issuance Common Types", | ||
@@ -48,3 +48,3 @@ "source": "lib/index.ts", | ||
}, | ||
"gitHead": "d9dae74c38a3db8a53062a32750fe9126650ab33" | ||
"gitHead": "3886eda519a2943b412080ae83f46c99480abe9e" | ||
} |
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
222991