@sphereon/ssi-types
Advanced tools
Comparing version 0.8.1-unstable.85 to 0.8.1-unstable.86
@@ -5,5 +5,4 @@ import { PresentationSubmission } from './pex'; | ||
export declare type IIssuerId = string; | ||
export interface ICredentialWithType { | ||
export interface ICredentialWithoutType { | ||
'@context': ICredentialContextType | ICredentialContextType[]; | ||
type: string[]; | ||
credentialSchema?: undefined | ICredentialSchemaType | ICredentialSchemaType[]; | ||
@@ -21,18 +20,9 @@ issuer: IIssuerId | IIssuer; | ||
} | ||
export interface ICredentialWithAtType { | ||
'@context': ICredentialContextType | ICredentialContextType[]; | ||
export interface VerifiableDataTypeProperty { | ||
type: string[]; | ||
} | ||
export interface VerifiableDataAtTypeProperty { | ||
'@type': string[]; | ||
credentialSchema?: undefined | ICredentialSchemaType | ICredentialSchemaType[]; | ||
issuer: IIssuerId | IIssuer; | ||
issuanceDate: string; | ||
credentialSubject: (ICredentialSubject & AdditionalClaims) | (ICredentialSubject & AdditionalClaims)[]; | ||
expirationDate?: string; | ||
id?: string; | ||
'@id'?: string; | ||
credentialStatus?: ICredentialStatus; | ||
description?: string; | ||
name?: string; | ||
[x: string]: any; | ||
} | ||
export declare type ICredential = ICredentialWithType | ICredentialWithAtType; | ||
export declare type ICredential = ICredentialWithoutType & (VerifiableDataAtTypeProperty | VerifiableDataTypeProperty); | ||
export interface ICredentialSubject { | ||
@@ -86,7 +76,6 @@ id?: string; | ||
export declare type W3CVerifiableCredential = IVerifiableCredential | CompactJWT; | ||
export interface IPresentationWithType { | ||
export interface IPresentationWithoutType { | ||
id?: string; | ||
'@id'?: string; | ||
'@context': ICredentialContextType | ICredentialContextType[]; | ||
type: string[]; | ||
verifiableCredential: W3CVerifiableCredential[]; | ||
@@ -97,13 +86,3 @@ presentation_submission?: PresentationSubmission; | ||
} | ||
export interface IPresentationWithAtType { | ||
id?: string; | ||
'@id'?: string; | ||
'@context': ICredentialContextType | ICredentialContextType[]; | ||
'@type': string[]; | ||
verifiableCredential: W3CVerifiableCredential[]; | ||
presentation_submission?: PresentationSubmission; | ||
holder?: string; | ||
[x: string]: any; | ||
} | ||
export declare type IPresentation = IPresentationWithType | IPresentationWithAtType; | ||
export declare type IPresentation = IPresentationWithoutType & (VerifiableDataTypeProperty | VerifiableDataAtTypeProperty); | ||
export declare type IVerifiablePresentation = IPresentation & IHasProof; | ||
@@ -110,0 +89,0 @@ /** |
{ | ||
"name": "@sphereon/ssi-types", | ||
"description": "SSI Common Types", | ||
"version": "0.8.1-unstable.85+9c5cedd", | ||
"version": "0.8.1-unstable.86+55d3de7", | ||
"main": "dist/index.js", | ||
@@ -40,3 +40,3 @@ "types": "dist/index.d.ts", | ||
], | ||
"gitHead": "9c5ceddd61087efa8def8f748ae1a9450bbeae46" | ||
"gitHead": "55d3de7ef96fee215cc1eb1c497ffa3b125c218a" | ||
} |
@@ -8,5 +8,4 @@ import { PresentationSubmission } from './pex' | ||
export interface ICredentialWithType { | ||
export interface ICredentialWithoutType { | ||
'@context': ICredentialContextType | ICredentialContextType[] | ||
type: string[] | ||
credentialSchema?: undefined | ICredentialSchemaType | ICredentialSchemaType[] | ||
@@ -31,25 +30,11 @@ // If iss is present, the value MUST be used to set the issuer property of the new credential JSON object or the holder property of the new presentation JSON object. | ||
export interface ICredentialWithAtType { | ||
'@context': ICredentialContextType | ICredentialContextType[] | ||
export interface VerifiableDataTypeProperty { | ||
type: string[] | ||
} | ||
export interface VerifiableDataAtTypeProperty { | ||
'@type': string[] | ||
credentialSchema?: undefined | ICredentialSchemaType | ICredentialSchemaType[] | ||
// If iss is present, the value MUST be used to set the issuer property of the new credential JSON object or the holder property of the new presentation JSON object. | ||
issuer: IIssuerId | IIssuer | ||
// If nbf is present, the UNIX timestamp MUST be converted to an [XMLSCHEMA11-2] date-time, and MUST be used to set the value of the issuanceDate property of the new JSON object. | ||
issuanceDate: string | ||
// 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 & AdditionalClaims) | (ICredentialSubject & AdditionalClaims)[] | ||
// If exp is present, the UNIX timestamp MUST be converted to an [XMLSCHEMA11-2] date-time, and MUST be used to set the value of the expirationDate property of credentialSubject of the new JSON object. | ||
expirationDate?: string | ||
// If jti is present, the value MUST be used to set the value of the id property of the new JSON object. | ||
id?: string | ||
'@id'?: string | ||
credentialStatus?: ICredentialStatus | ||
description?: string | ||
name?: string | ||
[x: string]: any | ||
} | ||
export type ICredential = ICredentialWithType | ICredentialWithAtType | ||
export type ICredential = ICredentialWithoutType & (VerifiableDataAtTypeProperty | VerifiableDataTypeProperty) | ||
@@ -118,7 +103,6 @@ export interface ICredentialSubject { | ||
export interface IPresentationWithType { | ||
export interface IPresentationWithoutType { | ||
id?: string | ||
'@id'?: string | ||
'@context': ICredentialContextType | ICredentialContextType[] | ||
type: string[] | ||
verifiableCredential: W3CVerifiableCredential[] // we relax to ICredential for internal decoded stable representations without proofs | ||
@@ -131,16 +115,4 @@ presentation_submission?: PresentationSubmission | ||
export interface IPresentationWithAtType { | ||
id?: string | ||
'@id'?: string | ||
'@context': ICredentialContextType | ICredentialContextType[] | ||
'@type': string[] | ||
verifiableCredential: W3CVerifiableCredential[] // we relax to ICredential for internal decoded stable representations without proofs | ||
presentation_submission?: PresentationSubmission | ||
holder?: string | ||
export type IPresentation = IPresentationWithoutType & (VerifiableDataTypeProperty | VerifiableDataAtTypeProperty) | ||
[x: string]: any | ||
} | ||
export type IPresentation = IPresentationWithType | IPresentationWithAtType | ||
export type IVerifiablePresentation = IPresentation & IHasProof | ||
@@ -147,0 +119,0 @@ |
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
88274
1254