@sphereon/ssi-types
Advanced tools
Comparing version 0.30.2-feature.SPRIND.83.231 to 0.30.2-feature.SPRIND.83.359
@@ -49,3 +49,4 @@ import { EventEmitter } from 'events'; | ||
VC_DELETE = "VC delete", | ||
VC_DECLINE = "VC decline" | ||
VC_ISSUE_DECLINE = "VC issue decline", | ||
VC_SHARE_DECLINE = "VC share decline" | ||
} | ||
@@ -52,0 +53,0 @@ export type ActionSubType = DefaultActionSubType | string; |
@@ -57,3 +57,4 @@ "use strict"; | ||
DefaultActionSubType["VC_DELETE"] = "VC delete"; | ||
DefaultActionSubType["VC_DECLINE"] = "VC decline"; | ||
DefaultActionSubType["VC_ISSUE_DECLINE"] = "VC issue decline"; | ||
DefaultActionSubType["VC_SHARE_DECLINE"] = "VC share decline"; | ||
})(DefaultActionSubType || (exports.DefaultActionSubType = DefaultActionSubType = {})); | ||
@@ -60,0 +61,0 @@ var InitiatorType; |
@@ -106,2 +106,3 @@ import { IssuerType } from '@veramo/core'; | ||
addContextIfMissing?: boolean; | ||
hasher?: Hasher; | ||
}): IVerifiablePresentation; | ||
@@ -108,0 +109,0 @@ static jwtEncodedCredentialToUniformCredential(jwt: string, opts?: { |
@@ -528,3 +528,3 @@ "use strict"; | ||
} | ||
const decoded = CredentialMapper.decodeVerifiablePresentation(original); | ||
const decoded = CredentialMapper.decodeVerifiablePresentation(original, opts === null || opts === void 0 ? void 0 : opts.hasher); | ||
const isJwtEncoded = CredentialMapper.isJwtEncoded(original); | ||
@@ -531,0 +531,0 @@ const isJwtDecoded = CredentialMapper.isJwtDecodedPresentation(original); |
@@ -10,2 +10,3 @@ export * from './did'; | ||
export * from './mso_mdoc'; | ||
export * from './metadata-types'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -26,2 +26,3 @@ "use strict"; | ||
__exportStar(require("./mso_mdoc"), exports); | ||
__exportStar(require("./metadata-types"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@sphereon/ssi-types", | ||
"description": "SSI Common Types", | ||
"version": "0.30.2-feature.SPRIND.83.231+74d11ac1", | ||
"version": "0.30.2-feature.SPRIND.83.359+7b8a67eb", | ||
"main": "dist/index.js", | ||
@@ -49,3 +49,3 @@ "types": "dist/index.d.ts", | ||
"nx": {}, | ||
"gitHead": "74d11ac160dfc4f2032b634101eab34d14e5f69a" | ||
"gitHead": "7b8a67ebae412bd4fd68a64560cc9ac1d64459b7" | ||
} |
@@ -54,3 +54,4 @@ import { EventEmitter } from 'events' | ||
VC_DELETE = 'VC delete', | ||
VC_DECLINE = 'VC decline' | ||
VC_ISSUE_DECLINE = 'VC issue decline', | ||
VC_SHARE_DECLINE = 'VC share decline' | ||
} | ||
@@ -57,0 +58,0 @@ |
@@ -165,8 +165,9 @@ import { IssuerType } from '@veramo/core' | ||
const mdocCredentials = deviceResponse.documents | ||
?.map((doc) => CredentialMapper.toWrappedVerifiableCredential(doc, opts) as WrappedMdocCredential) | ||
if (!mdocCredentials || mdocCredentials.length === 0 ) { | ||
const mdocCredentials = deviceResponse.documents?.map( | ||
(doc) => CredentialMapper.toWrappedVerifiableCredential(doc, opts) as WrappedMdocCredential | ||
) | ||
if (!mdocCredentials || mdocCredentials.length === 0) { | ||
throw new Error('could not extract any mdoc credentials from mdoc device response') | ||
} | ||
return { | ||
@@ -620,3 +621,3 @@ type: CredentialMapper.isMsoMdocDecodedPresentation(originalPresentation) ? OriginalType.MSO_MDOC_DECODED : OriginalType.MSO_MDOC_ENCODED, | ||
presentation: OriginalVerifiablePresentation, | ||
opts?: { maxTimeSkewInMS?: number; addContextIfMissing?: boolean } | ||
opts?: { maxTimeSkewInMS?: number; addContextIfMissing?: boolean; hasher?: Hasher } | ||
): IVerifiablePresentation { | ||
@@ -636,3 +637,3 @@ if (CredentialMapper.isSdJwtDecodedCredential(presentation)) { | ||
} | ||
const decoded = CredentialMapper.decodeVerifiablePresentation(original) | ||
const decoded = CredentialMapper.decodeVerifiablePresentation(original, opts?.hasher) | ||
const isJwtEncoded: boolean = CredentialMapper.isJwtEncoded(original) | ||
@@ -639,0 +640,0 @@ const isJwtDecoded: boolean = CredentialMapper.isJwtDecodedPresentation(original) |
@@ -10,1 +10,2 @@ export * from './did' | ||
export * from './mso_mdoc' | ||
export * from './metadata-types' |
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
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
349470
103
5883
6