@credo-ts/core 0.6.0-pr-2100-20241125134343 → 0.6.0-pr-2134-20241217213340

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.
Files changed (73) hide show
  1. package/build/agent/AgentModules.d.ts +0 -2
  2. package/build/agent/AgentModules.js +0 -2
  3. package/build/agent/AgentModules.js.map +1 -1
  4. package/build/index.d.ts +0 -1
  5. package/build/index.js +0 -1
  6. package/build/index.js.map +1 -1
  7. package/build/modules/dif-presentation-exchange/utils/transform.d.ts +2 -4
  8. package/build/modules/dif-presentation-exchange/utils/transform.js +19 -2
  9. package/build/modules/dif-presentation-exchange/utils/transform.js.map +1 -1
  10. package/build/modules/mdoc/Mdoc.d.ts +0 -14
  11. package/build/modules/mdoc/Mdoc.js +0 -23
  12. package/build/modules/mdoc/Mdoc.js.map +1 -1
  13. package/build/modules/mdoc/MdocDeviceResponse.d.ts +1 -14
  14. package/build/modules/mdoc/MdocDeviceResponse.js +4 -31
  15. package/build/modules/mdoc/MdocDeviceResponse.js.map +1 -1
  16. package/build/modules/mdoc/MdocOptions.d.ts +0 -12
  17. package/build/modules/mdoc/repository/MdocRecord.d.ts +0 -8
  18. package/build/modules/mdoc/repository/MdocRecord.js +0 -12
  19. package/build/modules/mdoc/repository/MdocRecord.js.map +1 -1
  20. package/build/modules/sd-jwt-vc/SdJwtVcApi.d.ts +0 -2
  21. package/build/modules/sd-jwt-vc/SdJwtVcService.d.ts +0 -12
  22. package/build/modules/sd-jwt-vc/SdJwtVcService.js +0 -29
  23. package/build/modules/sd-jwt-vc/SdJwtVcService.js.map +1 -1
  24. package/build/modules/sd-jwt-vc/decodeSdJwtVc.d.ts +7 -2
  25. package/build/modules/sd-jwt-vc/decodeSdJwtVc.js +0 -3
  26. package/build/modules/sd-jwt-vc/decodeSdJwtVc.js.map +1 -1
  27. package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.d.ts +1 -8
  28. package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.js +1 -10
  29. package/build/modules/sd-jwt-vc/repository/SdJwtVcRecord.js.map +1 -1
  30. package/build/modules/vc/repository/W3cCredentialRecord.d.ts +0 -4
  31. package/build/modules/vc/repository/W3cCredentialRecord.js +0 -6
  32. package/build/modules/vc/repository/W3cCredentialRecord.js.map +1 -1
  33. package/build/modules/x509/X509Certificate.d.ts +30 -4
  34. package/build/modules/x509/X509Certificate.js +85 -26
  35. package/build/modules/x509/X509Certificate.js.map +1 -1
  36. package/build/modules/x509/X509ServiceOptions.d.ts +1 -0
  37. package/build/transport/HttpOutboundTransport.js +1 -2
  38. package/build/transport/HttpOutboundTransport.js.map +1 -1
  39. package/build/utils/fetch.js +1 -2
  40. package/build/utils/fetch.js.map +1 -1
  41. package/build/utils/parseInvitation.js +1 -2
  42. package/build/utils/parseInvitation.js.map +1 -1
  43. package/package.json +1 -4
  44. package/build/modules/dcql/DcqlError.d.ts +0 -8
  45. package/build/modules/dcql/DcqlError.js +0 -12
  46. package/build/modules/dcql/DcqlError.js.map +0 -1
  47. package/build/modules/dcql/DcqlModule.d.ts +0 -10
  48. package/build/modules/dcql/DcqlModule.js +0 -23
  49. package/build/modules/dcql/DcqlModule.js.map +0 -1
  50. package/build/modules/dcql/DcqlService.d.ts +0 -140
  51. package/build/modules/dcql/DcqlService.js +0 -253
  52. package/build/modules/dcql/DcqlService.js.map +0 -1
  53. package/build/modules/dcql/index.d.ts +0 -5
  54. package/build/modules/dcql/index.js +0 -22
  55. package/build/modules/dcql/index.js.map +0 -1
  56. package/build/modules/dcql/models/DcqlCredentialsForRequest.d.ts +0 -20
  57. package/build/modules/dcql/models/DcqlCredentialsForRequest.js +0 -3
  58. package/build/modules/dcql/models/DcqlCredentialsForRequest.js.map +0 -1
  59. package/build/modules/dcql/models/index.d.ts +0 -20
  60. package/build/modules/dcql/models/index.js +0 -18
  61. package/build/modules/dcql/models/index.js.map +0 -1
  62. package/build/modules/dcql/utils/DcqlPresentationsToCreate.d.ts +0 -31
  63. package/build/modules/dcql/utils/DcqlPresentationsToCreate.js +0 -36
  64. package/build/modules/dcql/utils/DcqlPresentationsToCreate.js.map +0 -1
  65. package/build/modules/dcql/utils/index.d.ts +0 -1
  66. package/build/modules/dcql/utils/index.js +0 -18
  67. package/build/modules/dcql/utils/index.js.map +0 -1
  68. package/build/modules/mdoc/mdocUtil.d.ts +0 -1
  69. package/build/modules/mdoc/mdocUtil.js +0 -7
  70. package/build/modules/mdoc/mdocUtil.js.map +0 -1
  71. package/build/modules/sd-jwt-vc/disclosureFrame.d.ts +0 -5
  72. package/build/modules/sd-jwt-vc/disclosureFrame.js +0 -32
  73. package/build/modules/sd-jwt-vc/disclosureFrame.js.map +0 -1
@@ -1 +0,0 @@
1
- export * from './DcqlPresentationsToCreate';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./DcqlPresentationsToCreate"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/dcql/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA2C"}
@@ -1 +0,0 @@
1
- export declare function nameSpacesRecordToMap<NamespaceValue extends unknown, NameSpaces extends Record<string, Record<string, NamespaceValue>>>(nameSpaces: NameSpaces): Map<string, Map<string, NamespaceValue>>;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.nameSpacesRecordToMap = nameSpacesRecordToMap;
4
- function nameSpacesRecordToMap(nameSpaces) {
5
- return new Map(Object.entries(nameSpaces).map(([key, value]) => [key, new Map(Object.entries(value))]));
6
- }
7
- //# sourceMappingURL=mdocUtil.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mdocUtil.js","sourceRoot":"","sources":["../../../src/modules/mdoc/mdocUtil.ts"],"names":[],"mappings":";;AAAA,sDAMC;AAND,SAAgB,qBAAqB,CAInC,UAAsB;IACtB,OAAO,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAU,CAAC,CAAC,CAAA;AAClH,CAAC"}
@@ -1,5 +0,0 @@
1
- type DisclosureFrame = {
2
- [key: string]: boolean | DisclosureFrame;
3
- };
4
- export declare function buildDisclosureFrameFromPayload(input: Record<string, unknown>): DisclosureFrame | null;
5
- export {};
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buildDisclosureFrameFromPayload = buildDisclosureFrameFromPayload;
4
- function buildDisclosureFrameFromPayload(input) {
5
- var _a;
6
- // Handle objects recursively
7
- const result = {};
8
- // Base case: input is null or undefined
9
- if (input === null || input === undefined) {
10
- return result;
11
- }
12
- for (const [key, value] of Object.entries(input)) {
13
- // Ignore non-value values
14
- if (value === null || value === undefined)
15
- continue;
16
- if (typeof value === 'object') {
17
- if (Array.isArray(value)) {
18
- // TODO: Array disclosure frames are not yet supported - treating entire array as disclosed
19
- result[key] = true;
20
- }
21
- else {
22
- result[key] = (_a = buildDisclosureFrameFromPayload(value)) !== null && _a !== void 0 ? _a : false;
23
- }
24
- }
25
- else {
26
- // Handle primitive values
27
- result[key] = true;
28
- }
29
- }
30
- return Object.keys(result).length > 0 ? result : null;
31
- }
32
- //# sourceMappingURL=disclosureFrame.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"disclosureFrame.js","sourceRoot":"","sources":["../../../src/modules/sd-jwt-vc/disclosureFrame.ts"],"names":[],"mappings":";;AAIA,0EA2BC;AA3BD,SAAgB,+BAA+B,CAAC,KAA8B;;IAC5E,6BAA6B;IAC7B,MAAM,MAAM,GAAoB,EAAE,CAAA;IAElC,wCAAwC;IACxC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QAC1C,OAAO,MAAM,CAAA;IACf,CAAC;IAED,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACjD,0BAA0B;QAC1B,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;YAAE,SAAQ;QAEnD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;gBACzB,2FAA2F;gBAC3F,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;YACpB,CAAC;iBAAM,CAAC;gBACN,MAAM,CAAC,GAAG,CAAC,GAAG,MAAA,+BAA+B,CAAC,KAAgC,CAAC,mCAAI,KAAK,CAAA;YAC1F,CAAC;QACH,CAAC;aAAM,CAAC;YACN,0BAA0B;YAC1B,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;QACpB,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAA;AACvD,CAAC"}