@sphereon/ssi-types
Advanced tools
Comparing version 0.8.1-next.26 to 0.8.1-next.31
@@ -99,3 +99,3 @@ import { PresentationSubmission } from './pex'; | ||
*/ | ||
format: ClaimFormat; | ||
format: CredentialFormat; | ||
/** | ||
@@ -122,3 +122,3 @@ * Internal stable representation of a Credential without Proofs, created based on https://www.w3.org/TR/vc-data-model/#jwt-decoding | ||
*/ | ||
format: ClaimFormat; | ||
format: PresentationFormat; | ||
/** | ||
@@ -163,3 +163,5 @@ * Internal stable representation of a Presentation without proofs, created based on https://www.w3.org/TR/vc-data-model/#jwt-decoding | ||
} | ||
export declare type ClaimFormat = 'jwt' | 'jwt_vc' | 'jwt_vp' | 'ldp' | 'ldp_vc' | 'ldp_vp' | string; | ||
export declare type CredentialFormat = 'jwt' | 'ldp' | 'jwt_vc' | 'ldp_vc' | string; | ||
export declare type PresentationFormat = 'jwt' | 'ldp' | 'jwt_vp' | 'ldp_vp' | string; | ||
export declare type ClaimFormat = CredentialFormat | PresentationFormat; | ||
export declare type OriginalVerifiableCredential = W3CVerifiableCredential | JwtDecodedVerifiableCredential; | ||
@@ -166,0 +168,0 @@ export declare type OriginalVerifiablePresentation = W3CVerifiablePresentation | JwtDecodedVerifiablePresentation; |
{ | ||
"name": "@sphereon/ssi-types", | ||
"description": "SSI Common Types", | ||
"version": "0.8.1-next.26+4dc8dea", | ||
"version": "0.8.1-next.31+fe90ad0", | ||
"main": "dist/index.js", | ||
@@ -40,3 +40,3 @@ "types": "dist/index.d.ts", | ||
], | ||
"gitHead": "4dc8dea175ff9eb8526ce6f1abb4b72ffbb58128" | ||
"gitHead": "fe90ad0ac1fc1f401075310cae842a1e2136a361" | ||
} |
import { | ||
ClaimFormat, | ||
ICredential, | ||
@@ -11,3 +10,3 @@ IPresentation, | ||
OriginalVerifiableCredential, | ||
OriginalVerifiablePresentation, | ||
OriginalVerifiablePresentation, PresentationFormat, | ||
WrappedVerifiableCredential, | ||
@@ -50,3 +49,3 @@ WrappedVerifiablePresentation, | ||
const type = isJwtEncoded ? OriginalType.JWT_ENCODED : isJwtDecoded ? OriginalType.JWT_DECODED : OriginalType.JSONLD | ||
const format: ClaimFormat = isJwtDecoded || isJwtEncoded ? 'jwt_vp' : 'ldp_vp' | ||
const format: PresentationFormat = isJwtDecoded || isJwtEncoded ? 'jwt_vp' : 'ldp_vp' | ||
const decoded = CredentialMapper.decodeVerifiablePresentation(original) | ||
@@ -53,0 +52,0 @@ const vp: IPresentation = |
@@ -127,3 +127,3 @@ import { PresentationSubmission } from './pex' | ||
*/ | ||
format: ClaimFormat | ||
format: CredentialFormat | ||
/** | ||
@@ -151,3 +151,3 @@ * Internal stable representation of a Credential without Proofs, created based on https://www.w3.org/TR/vc-data-model/#jwt-decoding | ||
*/ | ||
format: ClaimFormat | ||
format: PresentationFormat | ||
/** | ||
@@ -199,3 +199,5 @@ * Internal stable representation of a Presentation without proofs, created based on https://www.w3.org/TR/vc-data-model/#jwt-decoding | ||
export type ClaimFormat = 'jwt' | 'jwt_vc' | 'jwt_vp' | 'ldp' | 'ldp_vc' | 'ldp_vp' | string | ||
export type CredentialFormat = 'jwt' | 'ldp' | 'jwt_vc' | 'ldp_vc' | string | ||
export type PresentationFormat = 'jwt' | 'ldp' | 'jwt_vp' | 'ldp_vp' | string | ||
export type ClaimFormat = CredentialFormat | PresentationFormat | ||
@@ -202,0 +204,0 @@ export type OriginalVerifiableCredential = W3CVerifiableCredential | JwtDecodedVerifiableCredential |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
83633
1185