@sphereon/ssi-sdk.vc-status-list 0.32.1-feature.SSISDK.8.213 → 0.32.1-feature.SSISDK.8.214

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.
@@ -8,5 +8,5 @@ export interface DecodedStatusListPayload {
8
8
  ttl?: number;
9
9
  iat: number;
10
10
  }
11
- export declare const resolveIdentifier: (context: IRequiredContext, issuer: string, keyRef?: string) => Promise<import("@sphereon/ssi-sdk-ext.identifier-resolution").ManagedIdentifierKidResult | (import("@sphereon/ssi-sdk-ext.identifier-resolution").IManagedIdentifierResultBase & import("@sphereon/ssi-sdk-ext.identifier-resolution").ManagedIdentifierX5cResult) | (import("@sphereon/ssi-sdk-ext.identifier-resolution").IManagedIdentifierResultBase & import("@sphereon/ssi-sdk-ext.identifier-resolution").ManagedIdentifierDidResult) | (import("@sphereon/ssi-sdk-ext.identifier-resolution").IManagedIdentifierResultBase & import("@sphereon/ssi-sdk-ext.identifier-resolution").ManagedIdentifierJwkResult) | (import("@sphereon/ssi-sdk-ext.identifier-resolution").IManagedIdentifierResultBase & import("@sphereon/ssi-sdk-ext.identifier-resolution").ManagedIdentifierKeyResult) | (import("@sphereon/ssi-sdk-ext.identifier-resolution").IManagedIdentifierResultBase & import("@sphereon/ssi-sdk-ext.identifier-resolution").ManagedIdentifierCoseKeyResult) | (import("@sphereon/ssi-sdk-ext.identifier-resolution").IManagedIdentifierResultBase & import("@sphereon/ssi-sdk-ext.identifier-resolution").ManagedIdentifierOID4VCIssuerResult)>;
11
+ export declare const resolveIdentifier: (context: IRequiredContext, issuer: string, keyRef?: string) => Promise<import("@sphereon/ssi-sdk-ext.identifier-resolution").ManagedIdentifierResult>;
12
12
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/impl/encoding/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAA;IACd,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,UAAU,CAAA;IACtB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,eAAO,MAAM,iBAAiB,YAAmB,gBAAgB,UAAU,MAAM,WAAW,MAAM,umCAYjG,CAAA"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/impl/encoding/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAA;IACd,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,UAAU,CAAA;IACtB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,eAAO,MAAM,iBAAiB,YAAmB,gBAAgB,UAAU,MAAM,WAAW,MAAM,2FAOjG,CAAA"}
@@ -11,16 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.resolveIdentifier = void 0;
13
13
  const resolveIdentifier = (context, issuer, keyRef) => __awaiter(void 0, void 0, void 0, function* () {
14
- if (keyRef) {
15
- return yield context.agent.identifierManagedGetByKid({
16
- identifier: keyRef,
17
- });
18
- }
19
- return yield context.agent.identifierManagedGet({
20
- identifier: issuer,
21
- vmRelationship: 'assertionMethod',
22
- offlineWhenNoDIDRegistered: true,
23
- });
14
+ return yield context.agent.identifierManagedGet(Object.assign({ identifier: issuer, vmRelationship: 'assertionMethod', offlineWhenNoDIDRegistered: true }, (keyRef && { kmsKeyRef: keyRef })));
24
15
  });
25
16
  exports.resolveIdentifier = resolveIdentifier;
26
17
  //# sourceMappingURL=common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/impl/encoding/common.ts"],"names":[],"mappings":";;;;;;;;;;;;AAYO,MAAM,iBAAiB,GAAG,CAAO,OAAyB,EAAE,MAAc,EAAE,MAAe,EAAE,EAAE;IACpG,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,MAAM,OAAO,CAAC,KAAK,CAAC,yBAAyB,CAAC;YACnD,UAAU,EAAE,MAAM;SACnB,CAAC,CAAA;IACJ,CAAC;IAED,OAAO,MAAM,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC;QAC9C,UAAU,EAAE,MAAM;QAClB,cAAc,EAAE,iBAAiB;QACjC,0BAA0B,EAAE,IAAI;KACjC,CAAC,CAAA;AACJ,CAAC,CAAA,CAAA;AAZY,QAAA,iBAAiB,qBAY7B"}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/impl/encoding/common.ts"],"names":[],"mappings":";;;;;;;;;;;;AAYO,MAAM,iBAAiB,GAAG,CAAO,OAAyB,EAAE,MAAc,EAAE,MAAe,EAAE,EAAE;IACpG,OAAO,MAAM,OAAO,CAAC,KAAK,CAAC,oBAAoB,iBAC7C,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,iBAAiB,EACjC,0BAA0B,EAAE,IAAI,IAC7B,CAAC,MAAM,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EACpC,CAAA;AACJ,CAAC,CAAA,CAAA;AAPY,QAAA,iBAAiB,qBAO7B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk.vc-status-list",
3
3
  "description": "Sphereon SSI-SDK plugin for Status List management, like StatusList2021.",
4
- "version": "0.32.1-feature.SSISDK.8.213+69e162f1",
4
+ "version": "0.32.1-feature.SSISDK.8.214+71cda41c",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "@sphereon/ssi-sdk-ext.did-utils": "0.27.0",
19
19
  "@sphereon/ssi-sdk-ext.identifier-resolution": "0.27.0",
20
20
  "@sphereon/ssi-sdk-ext.jwt-service": "0.27.0",
21
- "@sphereon/ssi-types": "0.32.1-feature.SSISDK.8.213+69e162f1",
21
+ "@sphereon/ssi-types": "0.32.1-feature.SSISDK.8.214+71cda41c",
22
22
  "@sphereon/vc-status-list": "7.0.0-next.0",
23
23
  "@veramo/core": "4.2.0",
24
24
  "@veramo/credential-status": "4.2.0",
@@ -58,5 +58,5 @@
58
58
  "StatusList2021"
59
59
  ],
60
60
  "nx": {},
61
- "gitHead": "69e162f1537569d9e953420343cfff5e4fc00c90"
61
+ "gitHead": "71cda41ca3d56953e47689d75aad68930ee41631"
62
62
  }
@@ -11,15 +11,10 @@ export interface DecodedStatusListPayload {
11
11
  }
12
12
 
13
13
  export const resolveIdentifier = async (context: IRequiredContext, issuer: string, keyRef?: string) => {
14
- if (keyRef) {
15
- return await context.agent.identifierManagedGetByKid({
16
- identifier: keyRef,
17
- })
18
- }
19
-
20
14
  return await context.agent.identifierManagedGet({
21
15
  identifier: issuer,
22
16
  vmRelationship: 'assertionMethod',
23
17
  offlineWhenNoDIDRegistered: true,
18
+ ...(keyRef && { kmsKeyRef: keyRef }), // TODO the getDid resolver should look at this ASAP
24
19
  })
25
20
  }