@sphereon/ssi-types 0.33.1-next.68 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +14 -14
- package/dist/index.d.ts +14 -14
- package/package.json +2 -2
- package/src/types/w3c-vc.ts +16 -10
package/dist/index.d.cts
CHANGED
|
@@ -849,23 +849,23 @@ interface IVerifyStatusResult {
|
|
|
849
849
|
*/
|
|
850
850
|
[x: string]: any;
|
|
851
851
|
}
|
|
852
|
+
interface IVerifySingleResultItem {
|
|
853
|
+
credential?: OriginalVerifiableCredential;
|
|
854
|
+
presentation?: IPresentation;
|
|
855
|
+
verified: boolean;
|
|
856
|
+
error?: IError;
|
|
857
|
+
log: Array<IVerifySingleResultLog>;
|
|
858
|
+
}
|
|
859
|
+
interface IVerifySingleResultLog {
|
|
860
|
+
id: string;
|
|
861
|
+
valid: boolean;
|
|
862
|
+
}
|
|
852
863
|
interface IVerifyResult {
|
|
853
864
|
/**
|
|
854
865
|
* This value is used to transmit the global result of verification.
|
|
855
866
|
*/
|
|
856
867
|
verified: boolean;
|
|
857
|
-
results?:
|
|
858
|
-
{
|
|
859
|
-
credential?: ICredential;
|
|
860
|
-
presentation?: IPresentation;
|
|
861
|
-
verified: boolean;
|
|
862
|
-
error?: IError;
|
|
863
|
-
log: [{
|
|
864
|
-
id: string;
|
|
865
|
-
valid: boolean;
|
|
866
|
-
}];
|
|
867
|
-
}
|
|
868
|
-
];
|
|
868
|
+
results?: Array<IVerifySingleResultItem>;
|
|
869
869
|
statusResult?: IVerifyStatusResult;
|
|
870
870
|
/**
|
|
871
871
|
* Optional Error object for the
|
|
@@ -874,7 +874,7 @@ interface IVerifyResult {
|
|
|
874
874
|
error?: IError | undefined;
|
|
875
875
|
/**
|
|
876
876
|
* Other options can be specified for verification.
|
|
877
|
-
* They will be forwarded to the lower level modules. that
|
|
877
|
+
* They will be forwarded to the lower level modules. that perform the checks
|
|
878
878
|
*/
|
|
879
879
|
[x: string]: any;
|
|
880
880
|
}
|
|
@@ -1586,4 +1586,4 @@ declare class BasicEventEmitter extends EventEmitter {
|
|
|
1586
1586
|
emit(eventName: string, event: BasicEvent<any, any>, ...args: any[]): boolean;
|
|
1587
1587
|
}
|
|
1588
1588
|
|
|
1589
|
-
export { type ActionSubType, ActionType, type AdditionalClaims, type BaseJWK, type BasicEvent, BasicEventEmitter, type BearerTokenArg, type CWT, type ClaimFormat, type CompactJWT, type CompactSdJwtVc, type ConditionWeightedThreshold, type CredentialConstraint, type CredentialEncoding, type CredentialFormat, CredentialMapper, type CredentialProofFormat, type DIDDocument, type DIDDocumentMetadata, type DIDResolutionMetadata, type DIDResolutionOptions, type DIDResolutionResult, type DataModel, type DcqlClaim, type DcqlCredentialMatch, type DcqlCredentialQuery, type DcqlFilter, type DcqlPresentationResult, type DcqlQueryREST, DefaultActionSubType, type Descriptor, type DeviceSignedJson, DocumentFormat, type DocumentJson, type EventData, EventManager, type Extensible, type Hasher, type HasherSync, ICoseCurve, type ICoseKeyJson, ICoseKeyOperation, ICoseKeyType, ICoseSignatureAlgorithm, type ICredential, type ICredentialContext, type ICredentialContextType, type ICredentialSchema, type ICredentialSchemaType, type ICredentialStatus, type ICredentialSubject, type IError, type IErrorDetails, type IHasProof, type IIssuer, type IIssuerId, type IMetadataImportArgs, type IParsedDID, type IPresentation, type IProof, IProofPurpose, IProofType, type ISimpleLogger, type IValidationResult, type IValidationResults, type IVerifiableCredential, type IVerifiablePresentation, type IVerifyResult, type IVerifyStatusResult, InitiatorType, type IssuerAttributeName, type IssuerSignedItemJson, type IssuerSignedJson, type JWK, JWT_PROOF_TYPE_2020, JoseCurve, type JoseCurveString, JoseKeyOperation, type JoseKeyOperationString, JoseSignatureAlgorithm, type JoseSignatureAlgorithmString, type JsonWebKey, JwkKeyType, type JwkKeyTypeString, type JwtDecodedVerifiableCredential, type JwtDecodedVerifiablePresentation, type KeyCapabilitySection, type LanguageValueClaim, LogLevel, LogMethod, Loggers, LoggingEventType, type MdocDecodedPayload, type MdocDeviceResponse, type MdocDocument, type MdocDocumentJson, type MdocIssuerSigned, type MdocOid4vpIssuerSigned, type MdocOid4vpMdocVpToken, type MetadataType, ObjectUtils, type Optional, type OrPromise, type Original, OriginalType, type OriginalVerifiableCredential, type OriginalVerifiablePresentation, type PresentationFormat, type PresentationSubmission, type RequireOneOf, type SdJwtClaimDisplayMetadata, type SdJwtClaimMetadata, type SdJwtClaimPath, type SdJwtClaimSelectiveDisclosure, type SdJwtCredentialInput, type SdJwtDecodedDisclosure, type SdJwtDecodedVerifiableCredential, type SdJwtDecodedVerifiableCredentialPayload, type SdJwtDisclosure, type SdJwtDisclosureFrame, type SdJwtLogoMetadata, type SdJwtPresentationFrame, type SdJwtSVGTemplateMetadata, type SdJwtSVGTemplateProperties, type SdJwtSignedVerifiableCredentialPayload, type SdJwtSimpleRenderingMetadata, type SdJwtTypeDisplayMetadata, type SdJwtTypeHasher, type SdJwtTypeMetadata, type SdJwtTypeRenderingMetadata, type SdJwtVcKbJwtHeader, type SdJwtVcKbJwtPayload, type Service, type ServiceEndpoint, type SimpleLogEvent, type SimpleLogOptions, SimpleLogger, SimpleRecordLogger, type StatusListCredential, StatusListCredentialIdMode, StatusListDriverType, type StatusListIndexingDirection, StatusListType, type StatusPurpose2021, SubSystem, type SubjectAttributeName, System, SystemCorrelationIdType, type TypeAttributeName, type UniformVerifiablePresentation, VCDM_CREDENTIAL_CONTEXT_V1, VCDM_CREDENTIAL_CONTEXT_V2, VCDM_CREDENTIAL_CONTEXT_VERSIONS, type VerificationMethod, type W3CVerifiableCredential, type W3CVerifiablePresentation, type WrappedMdocCredential, type WrappedMdocPresentation, type WrappedSdJwtVerifiableCredential, type WrappedSdJwtVerifiablePresentation, type WrappedVerifiableCredential, type WrappedVerifiablePresentation, type WrappedW3CVerifiableCredential, type WrappedW3CVerifiablePresentation, addVcdmContextIfNeeded, decodeMdocDeviceResponse, decodeMdocIssuerSigned, decodeSdJwtVc, decodeSdJwtVcAsync, defaultHasher, encodeMdocIssuerSigned, getMdocDecodedPayload, isLanguageValueObject, isLanguageValueObjects, isVcdm1Credential, isVcdm2Credential, isWrappedMdocCredential, isWrappedMdocPresentation, isWrappedSdJwtVerifiableCredential, isWrappedSdJwtVerifiablePresentation, isWrappedW3CVerifiableCredential, isWrappedW3CVerifiablePresentation, logOptions, mapLanguageValue, mapLanguageValues, mdocDecodedCredentialToUniformCredential, parseDid, sdJwtDecodedCredentialToUniformCredential, sha256, shaHasher, toLanguageValueObject, toLanguageValueObjects };
|
|
1589
|
+
export { type ActionSubType, ActionType, type AdditionalClaims, type BaseJWK, type BasicEvent, BasicEventEmitter, type BearerTokenArg, type CWT, type ClaimFormat, type CompactJWT, type CompactSdJwtVc, type ConditionWeightedThreshold, type CredentialConstraint, type CredentialEncoding, type CredentialFormat, CredentialMapper, type CredentialProofFormat, type DIDDocument, type DIDDocumentMetadata, type DIDResolutionMetadata, type DIDResolutionOptions, type DIDResolutionResult, type DataModel, type DcqlClaim, type DcqlCredentialMatch, type DcqlCredentialQuery, type DcqlFilter, type DcqlPresentationResult, type DcqlQueryREST, DefaultActionSubType, type Descriptor, type DeviceSignedJson, DocumentFormat, type DocumentJson, type EventData, EventManager, type Extensible, type Hasher, type HasherSync, ICoseCurve, type ICoseKeyJson, ICoseKeyOperation, ICoseKeyType, ICoseSignatureAlgorithm, type ICredential, type ICredentialContext, type ICredentialContextType, type ICredentialSchema, type ICredentialSchemaType, type ICredentialStatus, type ICredentialSubject, type IError, type IErrorDetails, type IHasProof, type IIssuer, type IIssuerId, type IMetadataImportArgs, type IParsedDID, type IPresentation, type IProof, IProofPurpose, IProofType, type ISimpleLogger, type IValidationResult, type IValidationResults, type IVerifiableCredential, type IVerifiablePresentation, type IVerifyResult, type IVerifySingleResultItem, type IVerifySingleResultLog, type IVerifyStatusResult, InitiatorType, type IssuerAttributeName, type IssuerSignedItemJson, type IssuerSignedJson, type JWK, JWT_PROOF_TYPE_2020, JoseCurve, type JoseCurveString, JoseKeyOperation, type JoseKeyOperationString, JoseSignatureAlgorithm, type JoseSignatureAlgorithmString, type JsonWebKey, JwkKeyType, type JwkKeyTypeString, type JwtDecodedVerifiableCredential, type JwtDecodedVerifiablePresentation, type KeyCapabilitySection, type LanguageValueClaim, LogLevel, LogMethod, Loggers, LoggingEventType, type MdocDecodedPayload, type MdocDeviceResponse, type MdocDocument, type MdocDocumentJson, type MdocIssuerSigned, type MdocOid4vpIssuerSigned, type MdocOid4vpMdocVpToken, type MetadataType, ObjectUtils, type Optional, type OrPromise, type Original, OriginalType, type OriginalVerifiableCredential, type OriginalVerifiablePresentation, type PresentationFormat, type PresentationSubmission, type RequireOneOf, type SdJwtClaimDisplayMetadata, type SdJwtClaimMetadata, type SdJwtClaimPath, type SdJwtClaimSelectiveDisclosure, type SdJwtCredentialInput, type SdJwtDecodedDisclosure, type SdJwtDecodedVerifiableCredential, type SdJwtDecodedVerifiableCredentialPayload, type SdJwtDisclosure, type SdJwtDisclosureFrame, type SdJwtLogoMetadata, type SdJwtPresentationFrame, type SdJwtSVGTemplateMetadata, type SdJwtSVGTemplateProperties, type SdJwtSignedVerifiableCredentialPayload, type SdJwtSimpleRenderingMetadata, type SdJwtTypeDisplayMetadata, type SdJwtTypeHasher, type SdJwtTypeMetadata, type SdJwtTypeRenderingMetadata, type SdJwtVcKbJwtHeader, type SdJwtVcKbJwtPayload, type Service, type ServiceEndpoint, type SimpleLogEvent, type SimpleLogOptions, SimpleLogger, SimpleRecordLogger, type StatusListCredential, StatusListCredentialIdMode, StatusListDriverType, type StatusListIndexingDirection, StatusListType, type StatusPurpose2021, SubSystem, type SubjectAttributeName, System, SystemCorrelationIdType, type TypeAttributeName, type UniformVerifiablePresentation, VCDM_CREDENTIAL_CONTEXT_V1, VCDM_CREDENTIAL_CONTEXT_V2, VCDM_CREDENTIAL_CONTEXT_VERSIONS, type VerificationMethod, type W3CVerifiableCredential, type W3CVerifiablePresentation, type WrappedMdocCredential, type WrappedMdocPresentation, type WrappedSdJwtVerifiableCredential, type WrappedSdJwtVerifiablePresentation, type WrappedVerifiableCredential, type WrappedVerifiablePresentation, type WrappedW3CVerifiableCredential, type WrappedW3CVerifiablePresentation, addVcdmContextIfNeeded, decodeMdocDeviceResponse, decodeMdocIssuerSigned, decodeSdJwtVc, decodeSdJwtVcAsync, defaultHasher, encodeMdocIssuerSigned, getMdocDecodedPayload, isLanguageValueObject, isLanguageValueObjects, isVcdm1Credential, isVcdm2Credential, isWrappedMdocCredential, isWrappedMdocPresentation, isWrappedSdJwtVerifiableCredential, isWrappedSdJwtVerifiablePresentation, isWrappedW3CVerifiableCredential, isWrappedW3CVerifiablePresentation, logOptions, mapLanguageValue, mapLanguageValues, mdocDecodedCredentialToUniformCredential, parseDid, sdJwtDecodedCredentialToUniformCredential, sha256, shaHasher, toLanguageValueObject, toLanguageValueObjects };
|
package/dist/index.d.ts
CHANGED
|
@@ -849,23 +849,23 @@ interface IVerifyStatusResult {
|
|
|
849
849
|
*/
|
|
850
850
|
[x: string]: any;
|
|
851
851
|
}
|
|
852
|
+
interface IVerifySingleResultItem {
|
|
853
|
+
credential?: OriginalVerifiableCredential;
|
|
854
|
+
presentation?: IPresentation;
|
|
855
|
+
verified: boolean;
|
|
856
|
+
error?: IError;
|
|
857
|
+
log: Array<IVerifySingleResultLog>;
|
|
858
|
+
}
|
|
859
|
+
interface IVerifySingleResultLog {
|
|
860
|
+
id: string;
|
|
861
|
+
valid: boolean;
|
|
862
|
+
}
|
|
852
863
|
interface IVerifyResult {
|
|
853
864
|
/**
|
|
854
865
|
* This value is used to transmit the global result of verification.
|
|
855
866
|
*/
|
|
856
867
|
verified: boolean;
|
|
857
|
-
results?:
|
|
858
|
-
{
|
|
859
|
-
credential?: ICredential;
|
|
860
|
-
presentation?: IPresentation;
|
|
861
|
-
verified: boolean;
|
|
862
|
-
error?: IError;
|
|
863
|
-
log: [{
|
|
864
|
-
id: string;
|
|
865
|
-
valid: boolean;
|
|
866
|
-
}];
|
|
867
|
-
}
|
|
868
|
-
];
|
|
868
|
+
results?: Array<IVerifySingleResultItem>;
|
|
869
869
|
statusResult?: IVerifyStatusResult;
|
|
870
870
|
/**
|
|
871
871
|
* Optional Error object for the
|
|
@@ -874,7 +874,7 @@ interface IVerifyResult {
|
|
|
874
874
|
error?: IError | undefined;
|
|
875
875
|
/**
|
|
876
876
|
* Other options can be specified for verification.
|
|
877
|
-
* They will be forwarded to the lower level modules. that
|
|
877
|
+
* They will be forwarded to the lower level modules. that perform the checks
|
|
878
878
|
*/
|
|
879
879
|
[x: string]: any;
|
|
880
880
|
}
|
|
@@ -1586,4 +1586,4 @@ declare class BasicEventEmitter extends EventEmitter {
|
|
|
1586
1586
|
emit(eventName: string, event: BasicEvent<any, any>, ...args: any[]): boolean;
|
|
1587
1587
|
}
|
|
1588
1588
|
|
|
1589
|
-
export { type ActionSubType, ActionType, type AdditionalClaims, type BaseJWK, type BasicEvent, BasicEventEmitter, type BearerTokenArg, type CWT, type ClaimFormat, type CompactJWT, type CompactSdJwtVc, type ConditionWeightedThreshold, type CredentialConstraint, type CredentialEncoding, type CredentialFormat, CredentialMapper, type CredentialProofFormat, type DIDDocument, type DIDDocumentMetadata, type DIDResolutionMetadata, type DIDResolutionOptions, type DIDResolutionResult, type DataModel, type DcqlClaim, type DcqlCredentialMatch, type DcqlCredentialQuery, type DcqlFilter, type DcqlPresentationResult, type DcqlQueryREST, DefaultActionSubType, type Descriptor, type DeviceSignedJson, DocumentFormat, type DocumentJson, type EventData, EventManager, type Extensible, type Hasher, type HasherSync, ICoseCurve, type ICoseKeyJson, ICoseKeyOperation, ICoseKeyType, ICoseSignatureAlgorithm, type ICredential, type ICredentialContext, type ICredentialContextType, type ICredentialSchema, type ICredentialSchemaType, type ICredentialStatus, type ICredentialSubject, type IError, type IErrorDetails, type IHasProof, type IIssuer, type IIssuerId, type IMetadataImportArgs, type IParsedDID, type IPresentation, type IProof, IProofPurpose, IProofType, type ISimpleLogger, type IValidationResult, type IValidationResults, type IVerifiableCredential, type IVerifiablePresentation, type IVerifyResult, type IVerifyStatusResult, InitiatorType, type IssuerAttributeName, type IssuerSignedItemJson, type IssuerSignedJson, type JWK, JWT_PROOF_TYPE_2020, JoseCurve, type JoseCurveString, JoseKeyOperation, type JoseKeyOperationString, JoseSignatureAlgorithm, type JoseSignatureAlgorithmString, type JsonWebKey, JwkKeyType, type JwkKeyTypeString, type JwtDecodedVerifiableCredential, type JwtDecodedVerifiablePresentation, type KeyCapabilitySection, type LanguageValueClaim, LogLevel, LogMethod, Loggers, LoggingEventType, type MdocDecodedPayload, type MdocDeviceResponse, type MdocDocument, type MdocDocumentJson, type MdocIssuerSigned, type MdocOid4vpIssuerSigned, type MdocOid4vpMdocVpToken, type MetadataType, ObjectUtils, type Optional, type OrPromise, type Original, OriginalType, type OriginalVerifiableCredential, type OriginalVerifiablePresentation, type PresentationFormat, type PresentationSubmission, type RequireOneOf, type SdJwtClaimDisplayMetadata, type SdJwtClaimMetadata, type SdJwtClaimPath, type SdJwtClaimSelectiveDisclosure, type SdJwtCredentialInput, type SdJwtDecodedDisclosure, type SdJwtDecodedVerifiableCredential, type SdJwtDecodedVerifiableCredentialPayload, type SdJwtDisclosure, type SdJwtDisclosureFrame, type SdJwtLogoMetadata, type SdJwtPresentationFrame, type SdJwtSVGTemplateMetadata, type SdJwtSVGTemplateProperties, type SdJwtSignedVerifiableCredentialPayload, type SdJwtSimpleRenderingMetadata, type SdJwtTypeDisplayMetadata, type SdJwtTypeHasher, type SdJwtTypeMetadata, type SdJwtTypeRenderingMetadata, type SdJwtVcKbJwtHeader, type SdJwtVcKbJwtPayload, type Service, type ServiceEndpoint, type SimpleLogEvent, type SimpleLogOptions, SimpleLogger, SimpleRecordLogger, type StatusListCredential, StatusListCredentialIdMode, StatusListDriverType, type StatusListIndexingDirection, StatusListType, type StatusPurpose2021, SubSystem, type SubjectAttributeName, System, SystemCorrelationIdType, type TypeAttributeName, type UniformVerifiablePresentation, VCDM_CREDENTIAL_CONTEXT_V1, VCDM_CREDENTIAL_CONTEXT_V2, VCDM_CREDENTIAL_CONTEXT_VERSIONS, type VerificationMethod, type W3CVerifiableCredential, type W3CVerifiablePresentation, type WrappedMdocCredential, type WrappedMdocPresentation, type WrappedSdJwtVerifiableCredential, type WrappedSdJwtVerifiablePresentation, type WrappedVerifiableCredential, type WrappedVerifiablePresentation, type WrappedW3CVerifiableCredential, type WrappedW3CVerifiablePresentation, addVcdmContextIfNeeded, decodeMdocDeviceResponse, decodeMdocIssuerSigned, decodeSdJwtVc, decodeSdJwtVcAsync, defaultHasher, encodeMdocIssuerSigned, getMdocDecodedPayload, isLanguageValueObject, isLanguageValueObjects, isVcdm1Credential, isVcdm2Credential, isWrappedMdocCredential, isWrappedMdocPresentation, isWrappedSdJwtVerifiableCredential, isWrappedSdJwtVerifiablePresentation, isWrappedW3CVerifiableCredential, isWrappedW3CVerifiablePresentation, logOptions, mapLanguageValue, mapLanguageValues, mdocDecodedCredentialToUniformCredential, parseDid, sdJwtDecodedCredentialToUniformCredential, sha256, shaHasher, toLanguageValueObject, toLanguageValueObjects };
|
|
1589
|
+
export { type ActionSubType, ActionType, type AdditionalClaims, type BaseJWK, type BasicEvent, BasicEventEmitter, type BearerTokenArg, type CWT, type ClaimFormat, type CompactJWT, type CompactSdJwtVc, type ConditionWeightedThreshold, type CredentialConstraint, type CredentialEncoding, type CredentialFormat, CredentialMapper, type CredentialProofFormat, type DIDDocument, type DIDDocumentMetadata, type DIDResolutionMetadata, type DIDResolutionOptions, type DIDResolutionResult, type DataModel, type DcqlClaim, type DcqlCredentialMatch, type DcqlCredentialQuery, type DcqlFilter, type DcqlPresentationResult, type DcqlQueryREST, DefaultActionSubType, type Descriptor, type DeviceSignedJson, DocumentFormat, type DocumentJson, type EventData, EventManager, type Extensible, type Hasher, type HasherSync, ICoseCurve, type ICoseKeyJson, ICoseKeyOperation, ICoseKeyType, ICoseSignatureAlgorithm, type ICredential, type ICredentialContext, type ICredentialContextType, type ICredentialSchema, type ICredentialSchemaType, type ICredentialStatus, type ICredentialSubject, type IError, type IErrorDetails, type IHasProof, type IIssuer, type IIssuerId, type IMetadataImportArgs, type IParsedDID, type IPresentation, type IProof, IProofPurpose, IProofType, type ISimpleLogger, type IValidationResult, type IValidationResults, type IVerifiableCredential, type IVerifiablePresentation, type IVerifyResult, type IVerifySingleResultItem, type IVerifySingleResultLog, type IVerifyStatusResult, InitiatorType, type IssuerAttributeName, type IssuerSignedItemJson, type IssuerSignedJson, type JWK, JWT_PROOF_TYPE_2020, JoseCurve, type JoseCurveString, JoseKeyOperation, type JoseKeyOperationString, JoseSignatureAlgorithm, type JoseSignatureAlgorithmString, type JsonWebKey, JwkKeyType, type JwkKeyTypeString, type JwtDecodedVerifiableCredential, type JwtDecodedVerifiablePresentation, type KeyCapabilitySection, type LanguageValueClaim, LogLevel, LogMethod, Loggers, LoggingEventType, type MdocDecodedPayload, type MdocDeviceResponse, type MdocDocument, type MdocDocumentJson, type MdocIssuerSigned, type MdocOid4vpIssuerSigned, type MdocOid4vpMdocVpToken, type MetadataType, ObjectUtils, type Optional, type OrPromise, type Original, OriginalType, type OriginalVerifiableCredential, type OriginalVerifiablePresentation, type PresentationFormat, type PresentationSubmission, type RequireOneOf, type SdJwtClaimDisplayMetadata, type SdJwtClaimMetadata, type SdJwtClaimPath, type SdJwtClaimSelectiveDisclosure, type SdJwtCredentialInput, type SdJwtDecodedDisclosure, type SdJwtDecodedVerifiableCredential, type SdJwtDecodedVerifiableCredentialPayload, type SdJwtDisclosure, type SdJwtDisclosureFrame, type SdJwtLogoMetadata, type SdJwtPresentationFrame, type SdJwtSVGTemplateMetadata, type SdJwtSVGTemplateProperties, type SdJwtSignedVerifiableCredentialPayload, type SdJwtSimpleRenderingMetadata, type SdJwtTypeDisplayMetadata, type SdJwtTypeHasher, type SdJwtTypeMetadata, type SdJwtTypeRenderingMetadata, type SdJwtVcKbJwtHeader, type SdJwtVcKbJwtPayload, type Service, type ServiceEndpoint, type SimpleLogEvent, type SimpleLogOptions, SimpleLogger, SimpleRecordLogger, type StatusListCredential, StatusListCredentialIdMode, StatusListDriverType, type StatusListIndexingDirection, StatusListType, type StatusPurpose2021, SubSystem, type SubjectAttributeName, System, SystemCorrelationIdType, type TypeAttributeName, type UniformVerifiablePresentation, VCDM_CREDENTIAL_CONTEXT_V1, VCDM_CREDENTIAL_CONTEXT_V2, VCDM_CREDENTIAL_CONTEXT_VERSIONS, type VerificationMethod, type W3CVerifiableCredential, type W3CVerifiablePresentation, type WrappedMdocCredential, type WrappedMdocPresentation, type WrappedSdJwtVerifiableCredential, type WrappedSdJwtVerifiablePresentation, type WrappedVerifiableCredential, type WrappedVerifiablePresentation, type WrappedW3CVerifiableCredential, type WrappedW3CVerifiablePresentation, addVcdmContextIfNeeded, decodeMdocDeviceResponse, decodeMdocIssuerSigned, decodeSdJwtVc, decodeSdJwtVcAsync, defaultHasher, encodeMdocIssuerSigned, getMdocDecodedPayload, isLanguageValueObject, isLanguageValueObjects, isVcdm1Credential, isVcdm2Credential, isWrappedMdocCredential, isWrappedMdocPresentation, isWrappedSdJwtVerifiableCredential, isWrappedSdJwtVerifiablePresentation, isWrappedW3CVerifiableCredential, isWrappedW3CVerifiablePresentation, logOptions, mapLanguageValue, mapLanguageValues, mdocDecodedCredentialToUniformCredential, parseDid, sdJwtDecodedCredentialToUniformCredential, sha256, shaHasher, toLanguageValueObject, toLanguageValueObjects };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-types",
|
|
3
3
|
"description": "SSI Common Types",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.34.0",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.cjs",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"Verifiable Credentials",
|
|
58
58
|
"DIDs"
|
|
59
59
|
],
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "b1c9c5e91a9ce4bc677ff2cce5f2d520a16b366d"
|
|
61
61
|
}
|
package/src/types/w3c-vc.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type PresentationSubmission } from './pex'
|
|
2
2
|
import { OriginalType } from '../mapper'
|
|
3
3
|
import { IProofPurpose, IProofType } from '../utils'
|
|
4
|
+
import { OriginalVerifiableCredential } from './vc'
|
|
4
5
|
|
|
5
6
|
export type AdditionalClaims = Record<string, any>
|
|
6
7
|
|
|
@@ -210,21 +211,26 @@ export interface IVerifyStatusResult {
|
|
|
210
211
|
[x: string]: any
|
|
211
212
|
}
|
|
212
213
|
|
|
214
|
+
export interface IVerifySingleResultItem {
|
|
215
|
+
credential?: OriginalVerifiableCredential
|
|
216
|
+
presentation?: IPresentation
|
|
217
|
+
verified: boolean
|
|
218
|
+
error?: IError
|
|
219
|
+
log: Array<IVerifySingleResultLog>
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface IVerifySingleResultLog {
|
|
223
|
+
id: string
|
|
224
|
+
valid: boolean
|
|
225
|
+
}
|
|
226
|
+
|
|
213
227
|
export interface IVerifyResult {
|
|
214
228
|
/**
|
|
215
229
|
* This value is used to transmit the global result of verification.
|
|
216
230
|
*/
|
|
217
231
|
verified: boolean
|
|
218
232
|
|
|
219
|
-
results?:
|
|
220
|
-
{
|
|
221
|
-
credential?: ICredential
|
|
222
|
-
presentation?: IPresentation
|
|
223
|
-
verified: boolean
|
|
224
|
-
error?: IError
|
|
225
|
-
log: [{ id: string; valid: boolean }]
|
|
226
|
-
},
|
|
227
|
-
]
|
|
233
|
+
results?: Array<IVerifySingleResultItem>
|
|
228
234
|
|
|
229
235
|
statusResult?: IVerifyStatusResult
|
|
230
236
|
|
|
@@ -236,7 +242,7 @@ export interface IVerifyResult {
|
|
|
236
242
|
|
|
237
243
|
/**
|
|
238
244
|
* Other options can be specified for verification.
|
|
239
|
-
* They will be forwarded to the lower level modules. that
|
|
245
|
+
* They will be forwarded to the lower level modules. that perform the checks
|
|
240
246
|
*/
|
|
241
247
|
[x: string]: any
|
|
242
248
|
}
|