@sphereon/ssi-sdk.oid4vci-holder 0.34.1-feature.SSISDK.45.91 → 0.34.1-feature.SSISDK.45.92
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.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +20 -20
- package/src/agent/OID4VCIHolder.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2646,7 +2646,7 @@ var OID4VCIHolder = class _OID4VCIHolder {
|
|
|
2646
2646
|
alias: credentialsToAccept[0].correlationId,
|
|
2647
2647
|
origin: import_ssi_sdk3.IdentityOrigin.EXTERNAL,
|
|
2648
2648
|
roles: [
|
|
2649
|
-
|
|
2649
|
+
import_ssi_types2.CredentialRole.ISSUER
|
|
2650
2650
|
],
|
|
2651
2651
|
identifier: {
|
|
2652
2652
|
type: identifierType,
|
|
@@ -2681,7 +2681,7 @@ var OID4VCIHolder = class _OID4VCIHolder {
|
|
|
2681
2681
|
}
|
|
2682
2682
|
async oid4vciHolderGetIssuerBranding(args, context) {
|
|
2683
2683
|
const { serverMetadata, contact } = args;
|
|
2684
|
-
const issuerCorrelationId = contact?.identities.filter((identity) => identity.roles.includes(
|
|
2684
|
+
const issuerCorrelationId = contact?.identities.filter((identity) => identity.roles.includes(import_ssi_types2.CredentialRole.ISSUER)).map((identity) => identity.identifier.correlationId)[0];
|
|
2685
2685
|
if (issuerCorrelationId) {
|
|
2686
2686
|
const branding = await context.agent.ibGetIssuerBranding({
|
|
2687
2687
|
filter: [
|
|
@@ -2711,7 +2711,7 @@ var OID4VCIHolder = class _OID4VCIHolder {
|
|
|
2711
2711
|
if (!contact) {
|
|
2712
2712
|
return Promise.reject(Error("Missing contact in context"));
|
|
2713
2713
|
}
|
|
2714
|
-
const issuerCorrelationId = contact?.identities.filter((identity) => identity.roles.includes(
|
|
2714
|
+
const issuerCorrelationId = contact?.identities.filter((identity) => identity.roles.includes(import_ssi_types2.CredentialRole.ISSUER)).map((identity) => identity.identifier.correlationId)[0];
|
|
2715
2715
|
const branding = await context.agent.ibGetIssuerBranding({
|
|
2716
2716
|
filter: [
|
|
2717
2717
|
{
|
|
@@ -2913,7 +2913,7 @@ var OID4VCIHolder = class _OID4VCIHolder {
|
|
|
2913
2913
|
rawDocument: (0, import_ssi_sdk3.ensureRawDocument)(persistCredential),
|
|
2914
2914
|
kmsKeyRef,
|
|
2915
2915
|
identifierMethod: method,
|
|
2916
|
-
credentialRole:
|
|
2916
|
+
credentialRole: import_ssi_types2.CredentialRole.HOLDER,
|
|
2917
2917
|
issuerCorrelationType: issuer?.startsWith("did:") ? import_ssi_sdk3.CredentialCorrelationType.DID : import_ssi_sdk3.CredentialCorrelationType.URL,
|
|
2918
2918
|
issuerCorrelationId: issuer,
|
|
2919
2919
|
subjectCorrelationType,
|