@sphereon/ssi-types
Advanced tools
Comparing version 0.8.1-next.12 to 0.8.1-next.18
@@ -42,2 +42,3 @@ import { PresentationSubmission } from './pex'; | ||
requiredRevealStatements?: string[]; | ||
[x: string]: unknown; | ||
} | ||
@@ -56,2 +57,12 @@ export interface ICredentialStatus { | ||
export declare type IVerifiableCredential = ICredential & IHasProof; | ||
/** | ||
* Represents a Json Web Token in compact form. | ||
*/ | ||
export declare type CompactJWT = string; | ||
/** | ||
* Represents a signed Verifiable Credential (includes proof), in either JSON or compact JWT format. | ||
* See {@link https://www.w3.org/TR/vc-data-model/#credentials | VC data model} | ||
* See {@link https://www.w3.org/TR/vc-data-model/#proof-formats | proof formats} | ||
*/ | ||
export declare type W3CVerifiableCredential = IVerifiableCredential | CompactJWT; | ||
export interface IPresentation { | ||
@@ -61,3 +72,3 @@ id?: string; | ||
type: string[]; | ||
verifiableCredential: IVerifiableCredential[]; | ||
verifiableCredential: W3CVerifiableCredential[]; | ||
presentation_submission?: PresentationSubmission; | ||
@@ -68,2 +79,8 @@ holder?: string; | ||
export declare type IVerifiablePresentation = IPresentation & IHasProof; | ||
/** | ||
* Represents a signed Verifiable Presentation (includes proof), in either JSON or compact JWT format. | ||
* See {@link https://www.w3.org/TR/vc-data-model/#presentations | VC data model} | ||
* See {@link https://www.w3.org/TR/vc-data-model/#proof-formats | proof formats} | ||
*/ | ||
export declare type W3CVerifiablePresentation = IVerifiablePresentation | CompactJWT; | ||
export interface WrappedVerifiableCredential { | ||
@@ -148,5 +165,5 @@ /** | ||
export declare type ClaimFormat = 'jwt' | 'jwt_vc' | 'jwt_vp' | 'ldp' | 'ldp_vc' | 'ldp_vp' | string; | ||
export declare type OriginalVerifiableCredential = IVerifiableCredential | JwtDecodedVerifiableCredential | string; | ||
export declare type OriginalVerifiablePresentation = IPresentation | JwtDecodedVerifiablePresentation | string; | ||
export declare type OriginalVerifiableCredential = W3CVerifiableCredential | JwtDecodedVerifiableCredential; | ||
export declare type OriginalVerifiablePresentation = W3CVerifiablePresentation | JwtDecodedVerifiablePresentation; | ||
export declare type Original = OriginalVerifiablePresentation | OriginalVerifiableCredential; | ||
//# sourceMappingURL=vc.d.ts.map |
{ | ||
"name": "@sphereon/ssi-types", | ||
"description": "SSI Common Types", | ||
"version": "0.8.1-next.12+84fb570", | ||
"version": "0.8.1-next.18+71e09b8", | ||
"main": "dist/index.js", | ||
@@ -40,3 +40,3 @@ "types": "dist/index.d.ts", | ||
], | ||
"gitHead": "84fb570f29ecd7a4fbd6477fd22284f47e814ab8" | ||
"gitHead": "71e09b8e8cfa8237d8e3d0a6b0be0ed4f3beff48" | ||
} |
@@ -56,2 +56,3 @@ import { PresentationSubmission } from './pex' | ||
requiredRevealStatements?: string[] // The parts of the proof that must be revealed in a derived proof | ||
[x: string]: unknown | ||
} | ||
@@ -76,2 +77,14 @@ | ||
/** | ||
* Represents a Json Web Token in compact form. | ||
*/ | ||
export type CompactJWT = string | ||
/** | ||
* Represents a signed Verifiable Credential (includes proof), in either JSON or compact JWT format. | ||
* See {@link https://www.w3.org/TR/vc-data-model/#credentials | VC data model} | ||
* See {@link https://www.w3.org/TR/vc-data-model/#proof-formats | proof formats} | ||
*/ | ||
export type W3CVerifiableCredential = IVerifiableCredential | CompactJWT | ||
export interface IPresentation { | ||
@@ -81,3 +94,3 @@ id?: string | ||
type: string[] | ||
verifiableCredential: IVerifiableCredential[] // we relax to ICredential for internal decoded stable representations without proofs | ||
verifiableCredential: W3CVerifiableCredential[] // we relax to ICredential for internal decoded stable representations without proofs | ||
presentation_submission?: PresentationSubmission | ||
@@ -91,2 +104,9 @@ holder?: string | ||
/** | ||
* Represents a signed Verifiable Presentation (includes proof), in either JSON or compact JWT format. | ||
* See {@link https://www.w3.org/TR/vc-data-model/#presentations | VC data model} | ||
* See {@link https://www.w3.org/TR/vc-data-model/#proof-formats | proof formats} | ||
*/ | ||
export type W3CVerifiablePresentation = IVerifiablePresentation | CompactJWT | ||
export interface WrappedVerifiableCredential { | ||
@@ -180,4 +200,4 @@ /** | ||
export type OriginalVerifiableCredential = IVerifiableCredential | JwtDecodedVerifiableCredential | string | ||
export type OriginalVerifiablePresentation = IPresentation | JwtDecodedVerifiablePresentation | string | ||
export type OriginalVerifiableCredential = W3CVerifiableCredential | JwtDecodedVerifiableCredential | ||
export type OriginalVerifiablePresentation = W3CVerifiablePresentation | JwtDecodedVerifiablePresentation | ||
export type Original = OriginalVerifiablePresentation | OriginalVerifiableCredential |
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
82042
1171