@sphereon/ssi-types
Advanced tools
Comparing version 0.8.1-unstable.9 to 0.8.1-unstable.11
import { PresentationSubmission } from './pex'; | ||
import { IProofPurpose, IProofType } from './did'; | ||
declare type AdditionalProperties = Record<string, any>; | ||
export declare type AdditionalClaims = Record<string, any>; | ||
export interface ICredential { | ||
@@ -8,3 +8,3 @@ expirationDate?: string; | ||
issuanceDate: string; | ||
credentialSubject: ICredentialSubject & AdditionalProperties; | ||
credentialSubject: ICredentialSubject & AdditionalClaims; | ||
id?: string; | ||
@@ -22,3 +22,3 @@ '@context': ICredentialContextType[] | ICredentialContextType; | ||
} | ||
export declare type ICredentialContextType = (ICredentialContext & AdditionalProperties) | string; | ||
export declare type ICredentialContextType = (ICredentialContext & AdditionalClaims) | string; | ||
export interface ICredentialContext { | ||
@@ -149,3 +149,2 @@ name?: string; | ||
export declare type Original = OriginalVerifiablePresentation | OriginalVerifiableCredential; | ||
export {}; | ||
//# sourceMappingURL=vc.d.ts.map |
{ | ||
"name": "@sphereon/ssi-types", | ||
"description": "SSI Common Types", | ||
"version": "0.8.1-unstable.9+af7f532", | ||
"version": "0.8.1-unstable.11+e5fd396", | ||
"main": "dist/index.js", | ||
@@ -40,3 +40,3 @@ "types": "dist/index.d.ts", | ||
], | ||
"gitHead": "af7f5324bc1718f724e3258c3f218eb85e4199cd" | ||
"gitHead": "e5fd396f0430a594fd72f590136d281355f61408" | ||
} |
import { PresentationSubmission } from './pex' | ||
import { IProofPurpose, IProofType } from './did' | ||
type AdditionalProperties = Record<string, any> | ||
export type AdditionalClaims = Record<string, any> | ||
@@ -14,3 +14,3 @@ export interface ICredential { | ||
// If sub is present, the value MUST be used to set the value of the id property of credentialSubject of the new credential JSON object. | ||
credentialSubject: ICredentialSubject & AdditionalProperties | ||
credentialSubject: ICredentialSubject & AdditionalClaims | ||
// If jti is present, the value MUST be used to set the value of the id property of the new JSON object. | ||
@@ -30,7 +30,5 @@ id?: string | ||
id?: string | ||
// [x: string]: string | string[] | object | object[] | unknown | ||
} | ||
export type ICredentialContextType = (ICredentialContext & AdditionalProperties) | string | ||
export type ICredentialContextType = (ICredentialContext & AdditionalClaims) | string | ||
@@ -40,4 +38,2 @@ export interface ICredentialContext { | ||
did?: string | ||
// [x: string]: unknown | ||
} | ||
@@ -63,4 +59,2 @@ | ||
requiredRevealStatements?: string[] // The parts of the proof that must be revealed in a derived proof | ||
// [x: string]: string | string[] | undefined | ||
} | ||
@@ -89,3 +83,3 @@ | ||
type: string[] | ||
verifiableCredential: IVerifiableCredential[] //| ICredential[] // we relax to ICredential for internal decoded stable representations without proofs | ||
verifiableCredential: IVerifiableCredential[] // we relax to ICredential for internal decoded stable representations without proofs | ||
presentation_submission?: PresentationSubmission | ||
@@ -92,0 +86,0 @@ holder?: string |
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
80219
1137