@twin.org/identity-models 0.0.2-next.9 → 0.0.3-next.2

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 (118) hide show
  1. package/dist/es/contextIdHandlers/didContextIdHandler.js +34 -0
  2. package/dist/es/contextIdHandlers/didContextIdHandler.js.map +1 -0
  3. package/dist/es/factories/identityConnectorFactory.js +9 -0
  4. package/dist/es/factories/identityConnectorFactory.js.map +1 -0
  5. package/dist/es/factories/identityProfileConnectorFactory.js +9 -0
  6. package/dist/es/factories/identityProfileConnectorFactory.js.map +1 -0
  7. package/dist/es/factories/identityResolverConnectorFactory.js +9 -0
  8. package/dist/es/factories/identityResolverConnectorFactory.js.map +1 -0
  9. package/dist/es/index.js +49 -0
  10. package/dist/es/index.js.map +1 -0
  11. package/dist/es/models/IIdentityComponent.js +2 -0
  12. package/dist/es/models/IIdentityComponent.js.map +1 -0
  13. package/dist/es/models/IIdentityConnector.js +2 -0
  14. package/dist/es/models/IIdentityConnector.js.map +1 -0
  15. package/dist/es/models/IIdentityProfileComponent.js +2 -0
  16. package/dist/es/models/IIdentityProfileComponent.js.map +1 -0
  17. package/dist/es/models/IIdentityProfileConnector.js +2 -0
  18. package/dist/es/models/IIdentityProfileConnector.js.map +1 -0
  19. package/dist/es/models/IIdentityResolverComponent.js +2 -0
  20. package/dist/es/models/IIdentityResolverComponent.js.map +1 -0
  21. package/dist/es/models/IIdentityResolverConnector.js +2 -0
  22. package/dist/es/models/IIdentityResolverConnector.js.map +1 -0
  23. package/dist/es/models/api/identity/IIdentityCreateRequest.js +4 -0
  24. package/dist/es/models/api/identity/IIdentityCreateRequest.js.map +1 -0
  25. package/dist/es/models/api/identity/IIdentityCreateResponse.js +2 -0
  26. package/dist/es/models/api/identity/IIdentityCreateResponse.js.map +1 -0
  27. package/dist/es/models/api/identity/IIdentityProofCreateRequest.js +2 -0
  28. package/dist/es/models/api/identity/IIdentityProofCreateRequest.js.map +1 -0
  29. package/dist/es/models/api/identity/IIdentityProofCreateResponse.js +2 -0
  30. package/dist/es/models/api/identity/IIdentityProofCreateResponse.js.map +1 -0
  31. package/dist/es/models/api/identity/IIdentityProofVerifyRequest.js +2 -0
  32. package/dist/es/models/api/identity/IIdentityProofVerifyRequest.js.map +1 -0
  33. package/dist/es/models/api/identity/IIdentityProofVerifyResponse.js +4 -0
  34. package/dist/es/models/api/identity/IIdentityProofVerifyResponse.js.map +1 -0
  35. package/dist/es/models/api/identity/IIdentityRemoveRequest.js +4 -0
  36. package/dist/es/models/api/identity/IIdentityRemoveRequest.js.map +1 -0
  37. package/dist/es/models/api/identity/IIdentityServiceCreateRequest.js +4 -0
  38. package/dist/es/models/api/identity/IIdentityServiceCreateRequest.js.map +1 -0
  39. package/dist/es/models/api/identity/IIdentityServiceCreateResponse.js +2 -0
  40. package/dist/es/models/api/identity/IIdentityServiceCreateResponse.js.map +1 -0
  41. package/dist/es/models/api/identity/IIdentityServiceRemoveRequest.js +4 -0
  42. package/dist/es/models/api/identity/IIdentityServiceRemoveRequest.js.map +1 -0
  43. package/dist/es/models/api/identity/IIdentityVerifiableCredentialCreateRequest.js +2 -0
  44. package/dist/es/models/api/identity/IIdentityVerifiableCredentialCreateRequest.js.map +1 -0
  45. package/dist/es/models/api/identity/IIdentityVerifiableCredentialCreateResponse.js +2 -0
  46. package/dist/es/models/api/identity/IIdentityVerifiableCredentialCreateResponse.js.map +1 -0
  47. package/dist/es/models/api/identity/IIdentityVerifiableCredentialRevokeRequest.js +4 -0
  48. package/dist/es/models/api/identity/IIdentityVerifiableCredentialRevokeRequest.js.map +1 -0
  49. package/dist/es/models/api/identity/IIdentityVerifiableCredentialUnrevokeRequest.js +4 -0
  50. package/dist/es/models/api/identity/IIdentityVerifiableCredentialUnrevokeRequest.js.map +1 -0
  51. package/dist/es/models/api/identity/IIdentityVerifiableCredentialVerifyRequest.js +4 -0
  52. package/dist/es/models/api/identity/IIdentityVerifiableCredentialVerifyRequest.js.map +1 -0
  53. package/dist/es/models/api/identity/IIdentityVerifiableCredentialVerifyResponse.js +2 -0
  54. package/dist/es/models/api/identity/IIdentityVerifiableCredentialVerifyResponse.js.map +1 -0
  55. package/dist/es/models/api/identity/IIdentityVerifiablePresentationCreateRequest.js +2 -0
  56. package/dist/es/models/api/identity/IIdentityVerifiablePresentationCreateRequest.js.map +1 -0
  57. package/dist/es/models/api/identity/IIdentityVerifiablePresentationCreateResponse.js +2 -0
  58. package/dist/es/models/api/identity/IIdentityVerifiablePresentationCreateResponse.js.map +1 -0
  59. package/dist/es/models/api/identity/IIdentityVerifiablePresentationVerifyRequest.js +4 -0
  60. package/dist/es/models/api/identity/IIdentityVerifiablePresentationVerifyRequest.js.map +1 -0
  61. package/dist/es/models/api/identity/IIdentityVerifiablePresentationVerifyResponse.js +2 -0
  62. package/dist/es/models/api/identity/IIdentityVerifiablePresentationVerifyResponse.js.map +1 -0
  63. package/dist/es/models/api/identity/IIdentityVerificationMethodCreateRequest.js +2 -0
  64. package/dist/es/models/api/identity/IIdentityVerificationMethodCreateRequest.js.map +1 -0
  65. package/dist/es/models/api/identity/IIdentityVerificationMethodCreateResponse.js +2 -0
  66. package/dist/es/models/api/identity/IIdentityVerificationMethodCreateResponse.js.map +1 -0
  67. package/dist/es/models/api/identity/IIdentityVerificationMethodRemoveRequest.js +4 -0
  68. package/dist/es/models/api/identity/IIdentityVerificationMethodRemoveRequest.js.map +1 -0
  69. package/dist/es/models/api/profile/IIdentityProfileCreateRequest.js +2 -0
  70. package/dist/es/models/api/profile/IIdentityProfileCreateRequest.js.map +1 -0
  71. package/dist/es/models/api/profile/IIdentityProfileGetPublicRequest.js +4 -0
  72. package/dist/es/models/api/profile/IIdentityProfileGetPublicRequest.js.map +1 -0
  73. package/dist/es/models/api/profile/IIdentityProfileGetPublicResponse.js +2 -0
  74. package/dist/es/models/api/profile/IIdentityProfileGetPublicResponse.js.map +1 -0
  75. package/dist/es/models/api/profile/IIdentityProfileGetRequest.js +4 -0
  76. package/dist/es/models/api/profile/IIdentityProfileGetRequest.js.map +1 -0
  77. package/dist/es/models/api/profile/IIdentityProfileGetResponse.js +2 -0
  78. package/dist/es/models/api/profile/IIdentityProfileGetResponse.js.map +1 -0
  79. package/dist/es/models/api/profile/IIdentityProfileListRequest.js +4 -0
  80. package/dist/es/models/api/profile/IIdentityProfileListRequest.js.map +1 -0
  81. package/dist/es/models/api/profile/IIdentityProfileListResponse.js +2 -0
  82. package/dist/es/models/api/profile/IIdentityProfileListResponse.js.map +1 -0
  83. package/dist/es/models/api/profile/IIdentityProfileUpdateRequest.js +2 -0
  84. package/dist/es/models/api/profile/IIdentityProfileUpdateRequest.js.map +1 -0
  85. package/dist/es/models/api/resolver/IIdentityResolveRequest.js +4 -0
  86. package/dist/es/models/api/resolver/IIdentityResolveRequest.js.map +1 -0
  87. package/dist/es/models/api/resolver/IIdentityResolveResponse.js +2 -0
  88. package/dist/es/models/api/resolver/IIdentityResolveResponse.js.map +1 -0
  89. package/dist/es/types/did.js +53 -0
  90. package/dist/es/types/did.js.map +1 -0
  91. package/dist/es/utils/documentHelper.js +92 -0
  92. package/dist/es/utils/documentHelper.js.map +1 -0
  93. package/dist/es/utils/verificationHelper.js +79 -0
  94. package/dist/es/utils/verificationHelper.js.map +1 -0
  95. package/dist/types/contextIdHandlers/didContextIdHandler.d.ts +22 -0
  96. package/dist/types/factories/identityConnectorFactory.d.ts +1 -1
  97. package/dist/types/factories/identityProfileConnectorFactory.d.ts +1 -1
  98. package/dist/types/factories/identityResolverConnectorFactory.d.ts +1 -1
  99. package/dist/types/index.d.ts +46 -45
  100. package/dist/types/types/did.d.ts +28 -0
  101. package/dist/types/utils/verificationHelper.d.ts +1 -1
  102. package/docs/changelog.md +37 -0
  103. package/docs/reference/classes/{IdHelper.md → Did.md} +41 -5
  104. package/docs/reference/classes/DidContextIdHandler.md +79 -0
  105. package/docs/reference/classes/DocumentHelper.md +3 -3
  106. package/docs/reference/classes/VerificationHelper.md +2 -2
  107. package/docs/reference/index.md +2 -1
  108. package/docs/reference/interfaces/IIdentityComponent.md +4 -12
  109. package/docs/reference/interfaces/IIdentityConnector.md +4 -12
  110. package/docs/reference/interfaces/IIdentityProfileComponent.md +0 -8
  111. package/docs/reference/interfaces/IIdentityProfileConnector.md +0 -8
  112. package/docs/reference/interfaces/IIdentityResolverComponent.md +0 -8
  113. package/docs/reference/interfaces/IIdentityResolverConnector.md +0 -8
  114. package/locales/en.json +3 -2
  115. package/package.json +6 -7
  116. package/dist/cjs/index.cjs +0 -241
  117. package/dist/esm/index.mjs +0 -234
  118. package/dist/types/utils/idHelper.d.ts +0 -20
@@ -0,0 +1,34 @@
1
+ import { Converter, HexHelper } from "@twin.org/core";
2
+ import { Did } from "../types/did.js";
3
+ /**
4
+ * Context Id handler for testing as a DID.
5
+ */
6
+ export class DidContextIdHandler {
7
+ /**
8
+ * Runtime name for the class.
9
+ */
10
+ static CLASS_NAME = "DidContextIdHandler";
11
+ /**
12
+ * Get the short form of the DID which is the last part.
13
+ * @param value The full context id value.
14
+ * @returns Short form string.
15
+ */
16
+ short(value) {
17
+ const parts = Did.parse(value);
18
+ // If the ID part is hex, convert to base64 for a shorter representation.
19
+ if (HexHelper.hasPrefix(parts.id) && HexHelper.isHex(parts.id, true)) {
20
+ const bytes = Converter.hexToBytes(parts.id);
21
+ return Converter.bytesToBase64Url(bytes);
22
+ }
23
+ return parts.id;
24
+ }
25
+ /**
26
+ * Guard the value ensuring length.
27
+ * @param value The value to guard.
28
+ * @throws GeneralError if the value is too short.
29
+ */
30
+ guard(value) {
31
+ Did.guard(DidContextIdHandler.CLASS_NAME, "value", value);
32
+ }
33
+ }
34
+ //# sourceMappingURL=didContextIdHandler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"didContextIdHandler.js","sourceRoot":"","sources":["../../../src/contextIdHandlers/didContextIdHandler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC;;GAEG;AACH,MAAM,OAAO,mBAAmB;IAC/B;;OAEG;IACI,MAAM,CAAU,UAAU,yBAAyC;IAE1E;;;;OAIG;IACI,KAAK,CAAC,KAAa;QACzB,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC/B,yEAAyE;QACzE,IAAI,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC;YACtE,MAAM,KAAK,GAAG,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC7C,OAAO,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;QAC1C,CAAC;QACD,OAAO,KAAK,CAAC,EAAE,CAAC;IACjB,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,KAAa;QACzB,GAAG,CAAC,KAAK,CAAC,mBAAmB,CAAC,UAAU,WAAiB,KAAK,CAAC,CAAC;IACjE,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IContextIdHandler } from \"@twin.org/context\";\nimport { Converter, HexHelper } from \"@twin.org/core\";\nimport { nameof } from \"@twin.org/nameof\";\nimport { Did } from \"../types/did.js\";\n\n/**\n * Context Id handler for testing as a DID.\n */\nexport class DidContextIdHandler implements IContextIdHandler {\n\t/**\n\t * Runtime name for the class.\n\t */\n\tpublic static readonly CLASS_NAME: string = nameof<DidContextIdHandler>();\n\n\t/**\n\t * Get the short form of the DID which is the last part.\n\t * @param value The full context id value.\n\t * @returns Short form string.\n\t */\n\tpublic short(value: string): string {\n\t\tconst parts = Did.parse(value);\n\t\t// If the ID part is hex, convert to base64 for a shorter representation.\n\t\tif (HexHelper.hasPrefix(parts.id) && HexHelper.isHex(parts.id, true)) {\n\t\t\tconst bytes = Converter.hexToBytes(parts.id);\n\t\t\treturn Converter.bytesToBase64Url(bytes);\n\t\t}\n\t\treturn parts.id;\n\t}\n\n\t/**\n\t * Guard the value ensuring length.\n\t * @param value The value to guard.\n\t * @throws GeneralError if the value is too short.\n\t */\n\tpublic guard(value: string): void {\n\t\tDid.guard(DidContextIdHandler.CLASS_NAME, nameof(value), value);\n\t}\n}\n"]}
@@ -0,0 +1,9 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { Factory } from "@twin.org/core";
4
+ /**
5
+ * Factory for creating identity connectors.
6
+ */
7
+ // eslint-disable-next-line @typescript-eslint/naming-convention
8
+ export const IdentityConnectorFactory = Factory.createFactory("identity-connector");
9
+ //# sourceMappingURL=identityConnectorFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identityConnectorFactory.js","sourceRoot":"","sources":["../../../src/factories/identityConnectorFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GACpC,OAAO,CAAC,aAAa,CAAqB,oBAAoB,CAAC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IIdentityConnector } from \"../models/IIdentityConnector.js\";\n\n/**\n * Factory for creating identity connectors.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const IdentityConnectorFactory =\n\tFactory.createFactory<IIdentityConnector>(\"identity-connector\");\n"]}
@@ -0,0 +1,9 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { Factory } from "@twin.org/core";
4
+ /**
5
+ * Factory for creating identity profile connectors.
6
+ */
7
+ // eslint-disable-next-line @typescript-eslint/naming-convention
8
+ export const IdentityProfileConnectorFactory = Factory.createFactory("identity-profile-connector");
9
+ //# sourceMappingURL=identityProfileConnectorFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identityProfileConnectorFactory.js","sourceRoot":"","sources":["../../../src/factories/identityProfileConnectorFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,+BAA+B,GAAG,OAAO,CAAC,aAAa,CACnE,4BAA4B,CAC5B,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IIdentityProfileConnector } from \"../models/IIdentityProfileConnector.js\";\n\n/**\n * Factory for creating identity profile connectors.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const IdentityProfileConnectorFactory = Factory.createFactory<IIdentityProfileConnector>(\n\t\"identity-profile-connector\"\n);\n"]}
@@ -0,0 +1,9 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { Factory } from "@twin.org/core";
4
+ /**
5
+ * Factory for creating identity resolver connectors.
6
+ */
7
+ // eslint-disable-next-line @typescript-eslint/naming-convention
8
+ export const IdentityResolverConnectorFactory = Factory.createFactory("identity-resolver-connector");
9
+ //# sourceMappingURL=identityResolverConnectorFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identityResolverConnectorFactory.js","sourceRoot":"","sources":["../../../src/factories/identityResolverConnectorFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,gCAAgC,GAAG,OAAO,CAAC,aAAa,CACpE,6BAA6B,CAC7B,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IIdentityResolverConnector } from \"../models/IIdentityResolverConnector.js\";\n\n/**\n * Factory for creating identity resolver connectors.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const IdentityResolverConnectorFactory = Factory.createFactory<IIdentityResolverConnector>(\n\t\"identity-resolver-connector\"\n);\n"]}
@@ -0,0 +1,49 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export * from "./contextIdHandlers/didContextIdHandler.js";
4
+ export * from "./factories/identityConnectorFactory.js";
5
+ export * from "./factories/identityProfileConnectorFactory.js";
6
+ export * from "./factories/identityResolverConnectorFactory.js";
7
+ export * from "./models/api/identity/IIdentityCreateRequest.js";
8
+ export * from "./models/api/identity/IIdentityCreateResponse.js";
9
+ export * from "./models/api/identity/IIdentityProofCreateRequest.js";
10
+ export * from "./models/api/identity/IIdentityProofCreateResponse.js";
11
+ export * from "./models/api/identity/IIdentityProofVerifyRequest.js";
12
+ export * from "./models/api/identity/IIdentityProofVerifyResponse.js";
13
+ export * from "./models/api/identity/IIdentityRemoveRequest.js";
14
+ export * from "./models/api/identity/IIdentityServiceCreateRequest.js";
15
+ export * from "./models/api/identity/IIdentityServiceCreateResponse.js";
16
+ export * from "./models/api/identity/IIdentityServiceRemoveRequest.js";
17
+ export * from "./models/api/identity/IIdentityVerifiableCredentialCreateRequest.js";
18
+ export * from "./models/api/identity/IIdentityVerifiableCredentialCreateResponse.js";
19
+ export * from "./models/api/identity/IIdentityVerifiableCredentialRevokeRequest.js";
20
+ export * from "./models/api/identity/IIdentityVerifiableCredentialUnrevokeRequest.js";
21
+ export * from "./models/api/identity/IIdentityVerifiableCredentialVerifyRequest.js";
22
+ export * from "./models/api/identity/IIdentityVerifiableCredentialVerifyResponse.js";
23
+ export * from "./models/api/identity/IIdentityVerifiablePresentationCreateRequest.js";
24
+ export * from "./models/api/identity/IIdentityVerifiablePresentationCreateResponse.js";
25
+ export * from "./models/api/identity/IIdentityVerifiablePresentationVerifyRequest.js";
26
+ export * from "./models/api/identity/IIdentityVerifiablePresentationVerifyResponse.js";
27
+ export * from "./models/api/identity/IIdentityVerificationMethodCreateRequest.js";
28
+ export * from "./models/api/identity/IIdentityVerificationMethodCreateResponse.js";
29
+ export * from "./models/api/identity/IIdentityVerificationMethodRemoveRequest.js";
30
+ export * from "./models/api/profile/IIdentityProfileCreateRequest.js";
31
+ export * from "./models/api/profile/IIdentityProfileGetPublicRequest.js";
32
+ export * from "./models/api/profile/IIdentityProfileGetPublicResponse.js";
33
+ export * from "./models/api/profile/IIdentityProfileGetRequest.js";
34
+ export * from "./models/api/profile/IIdentityProfileGetResponse.js";
35
+ export * from "./models/api/profile/IIdentityProfileListRequest.js";
36
+ export * from "./models/api/profile/IIdentityProfileListResponse.js";
37
+ export * from "./models/api/profile/IIdentityProfileUpdateRequest.js";
38
+ export * from "./models/api/resolver/IIdentityResolveRequest.js";
39
+ export * from "./models/api/resolver/IIdentityResolveResponse.js";
40
+ export * from "./models/IIdentityComponent.js";
41
+ export * from "./models/IIdentityConnector.js";
42
+ export * from "./models/IIdentityProfileComponent.js";
43
+ export * from "./models/IIdentityProfileConnector.js";
44
+ export * from "./models/IIdentityResolverComponent.js";
45
+ export * from "./models/IIdentityResolverConnector.js";
46
+ export * from "./types/did.js";
47
+ export * from "./utils/documentHelper.js";
48
+ export * from "./utils/verificationHelper.js";
49
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAChE,cAAc,iDAAiD,CAAC;AAChE,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC;AACrE,cAAc,uDAAuD,CAAC;AACtE,cAAc,sDAAsD,CAAC;AACrE,cAAc,uDAAuD,CAAC;AACtE,cAAc,iDAAiD,CAAC;AAChE,cAAc,wDAAwD,CAAC;AACvE,cAAc,yDAAyD,CAAC;AACxE,cAAc,wDAAwD,CAAC;AACvE,cAAc,qEAAqE,CAAC;AACpF,cAAc,sEAAsE,CAAC;AACrF,cAAc,qEAAqE,CAAC;AACpF,cAAc,uEAAuE,CAAC;AACtF,cAAc,qEAAqE,CAAC;AACpF,cAAc,sEAAsE,CAAC;AACrF,cAAc,uEAAuE,CAAC;AACtF,cAAc,wEAAwE,CAAC;AACvF,cAAc,uEAAuE,CAAC;AACtF,cAAc,wEAAwE,CAAC;AACvF,cAAc,mEAAmE,CAAC;AAClF,cAAc,oEAAoE,CAAC;AACnF,cAAc,mEAAmE,CAAC;AAClF,cAAc,uDAAuD,CAAC;AACtE,cAAc,0DAA0D,CAAC;AACzE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,oDAAoD,CAAC;AACnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,qDAAqD,CAAC;AACpE,cAAc,sDAAsD,CAAC;AACrE,cAAc,uDAAuD,CAAC;AACtE,cAAc,kDAAkD,CAAC;AACjE,cAAc,mDAAmD,CAAC;AAClE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./contextIdHandlers/didContextIdHandler.js\";\nexport * from \"./factories/identityConnectorFactory.js\";\nexport * from \"./factories/identityProfileConnectorFactory.js\";\nexport * from \"./factories/identityResolverConnectorFactory.js\";\nexport * from \"./models/api/identity/IIdentityCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityProofCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityProofCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityProofVerifyRequest.js\";\nexport * from \"./models/api/identity/IIdentityProofVerifyResponse.js\";\nexport * from \"./models/api/identity/IIdentityRemoveRequest.js\";\nexport * from \"./models/api/identity/IIdentityServiceCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityServiceCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityServiceRemoveRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialRevokeRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialUnrevokeRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialVerifyRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiableCredentialVerifyResponse.js\";\nexport * from \"./models/api/identity/IIdentityVerifiablePresentationCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiablePresentationCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityVerifiablePresentationVerifyRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerifiablePresentationVerifyResponse.js\";\nexport * from \"./models/api/identity/IIdentityVerificationMethodCreateRequest.js\";\nexport * from \"./models/api/identity/IIdentityVerificationMethodCreateResponse.js\";\nexport * from \"./models/api/identity/IIdentityVerificationMethodRemoveRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileCreateRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileGetPublicRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileGetPublicResponse.js\";\nexport * from \"./models/api/profile/IIdentityProfileGetRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileGetResponse.js\";\nexport * from \"./models/api/profile/IIdentityProfileListRequest.js\";\nexport * from \"./models/api/profile/IIdentityProfileListResponse.js\";\nexport * from \"./models/api/profile/IIdentityProfileUpdateRequest.js\";\nexport * from \"./models/api/resolver/IIdentityResolveRequest.js\";\nexport * from \"./models/api/resolver/IIdentityResolveResponse.js\";\nexport * from \"./models/IIdentityComponent.js\";\nexport * from \"./models/IIdentityConnector.js\";\nexport * from \"./models/IIdentityProfileComponent.js\";\nexport * from \"./models/IIdentityProfileConnector.js\";\nexport * from \"./models/IIdentityResolverComponent.js\";\nexport * from \"./models/IIdentityResolverConnector.js\";\nexport * from \"./types/did.js\";\nexport * from \"./utils/documentHelper.js\";\nexport * from \"./utils/verificationHelper.js\";\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityComponent.js","sourceRoot":"","sources":["../../../src/models/IIdentityComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IJsonLdContextDefinitionRoot, IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type {\n\tDidVerificationMethodType,\n\tIDidDocument,\n\tIDidDocumentVerificationMethod,\n\tIProof,\n\tIDidService,\n\tIDidVerifiableCredential,\n\tIDidVerifiablePresentation,\n\tProofTypes\n} from \"@twin.org/standards-w3c-did\";\n\n/**\n * Interface describing a contract which provides identity operations.\n */\nexport interface IIdentityComponent extends IComponent {\n\t/**\n\t * Create a new identity.\n\t * @param namespace The namespace of the connector to use for the identity, defaults to service configured namespace.\n\t * @param controller The controller of the identity who can make changes.\n\t * @returns The created identity document.\n\t */\n\tidentityCreate(namespace?: string, controller?: string): Promise<IDidDocument>;\n\n\t/**\n\t * Remove an identity.\n\t * @param identity The id of the document to remove.\n\t * @param controller The controller of the identity who can make changes.\n\t * @returns Nothing.\n\t */\n\tidentityRemove(identity: string, controller?: string): Promise<void>;\n\n\t/**\n\t * Add a verification method to the document in JSON Web key Format.\n\t * @param identity The id of the document to add the verification method to.\n\t * @param verificationMethodType The type of the verification method to add.\n\t * @param verificationMethodId The id of the verification method, if undefined uses the kid of the generated JWK.\n\t * @param controller The controller of the identity who can make changes.\n\t * @returns The verification method.\n\t * @throws NotFoundError if the id can not be resolved.\n\t * @throws NotSupportedError if the platform does not support multiple keys.\n\t */\n\tverificationMethodCreate(\n\t\tidentity: string,\n\t\tverificationMethodType: DidVerificationMethodType,\n\t\tverificationMethodId?: string,\n\t\tcontroller?: string\n\t): Promise<IDidDocumentVerificationMethod>;\n\n\t/**\n\t * Remove a verification method from the document.\n\t * @param verificationMethodId The id of the verification method.\n\t * @param controller The controller of the identity who can make changes.\n\t * @returns Nothing.\n\t * @throws NotFoundError if the id can not be resolved.\n\t * @throws NotSupportedError if the platform does not support multiple revocable keys.\n\t */\n\tverificationMethodRemove(verificationMethodId: string, controller?: string): Promise<void>;\n\n\t/**\n\t * Add a service to the document.\n\t * @param identity The id of the document to add the service to.\n\t * @param serviceId The id of the service.\n\t * @param serviceType The type of the service.\n\t * @param serviceEndpoint The endpoint for the service.\n\t * @param controller The controller of the identity who can make changes.\n\t * @returns The service.\n\t * @throws NotFoundError if the id can not be resolved.\n\t */\n\tserviceCreate(\n\t\tidentity: string,\n\t\tserviceId: string,\n\t\tserviceType: string | string[],\n\t\tserviceEndpoint: string | string[],\n\t\tcontroller?: string\n\t): Promise<IDidService>;\n\n\t/**\n\t * Remove a service from the document.\n\t * @param serviceId The id of the service.\n\t * @param controller The controller of the identity who can make changes.\n\t * @returns Nothing.\n\t * @throws NotFoundError if the id can not be resolved.\n\t */\n\tserviceRemove(serviceId: string, controller?: string): Promise<void>;\n\n\t/**\n\t * Create a verifiable credential for a verification method.\n\t * @param verificationMethodId The verification method id to use.\n\t * @param id The id of the credential.\n\t * @param subject The credential subject to store in the verifiable credential.\n\t * @param options Additional options for creating the verifiable credential.\n\t * @param options.revocationIndex The bitmap revocation index of the credential, if undefined will not have revocation status.\n\t * @param options.expirationDate The date the verifiable credential is valid until.\n\t * @param controller The controller of the identity who can make changes.\n\t * @returns The created verifiable credential and its token.\n\t * @throws NotFoundError if the id can not be resolved.\n\t */\n\tverifiableCredentialCreate(\n\t\tverificationMethodId: string,\n\t\tid: string | undefined,\n\t\tsubject: IJsonLdNodeObject,\n\t\toptions?: {\n\t\t\trevocationIndex?: number;\n\t\t\texpirationDate?: Date;\n\t\t},\n\t\tcontroller?: string\n\t): Promise<{\n\t\tverifiableCredential: IDidVerifiableCredential;\n\t\tjwt: string;\n\t}>;\n\n\t/**\n\t * Verify a verifiable credential is valid.\n\t * @param credentialJwt The credential to verify.\n\t * @returns The credential stored in the jwt and the revocation status.\n\t */\n\tverifiableCredentialVerify(credentialJwt: string): Promise<{\n\t\trevoked: boolean;\n\t\tverifiableCredential?: IDidVerifiableCredential;\n\t}>;\n\n\t/**\n\t * Revoke verifiable credential.\n\t * @param issuerId The id of the document to update the revocation list for.\n\t * @param credentialIndex The revocation bitmap index revoke.\n\t * @param controller The controller of the identity who can make changes.\n\t * @returns Nothing.\n\t */\n\tverifiableCredentialRevoke(\n\t\tissuerId: string,\n\t\tcredentialIndex: number,\n\t\tcontroller?: string\n\t): Promise<void>;\n\n\t/**\n\t * Unrevoke verifiable credential.\n\t * @param issuerId The id of the document to update the revocation list for.\n\t * @param credentialIndex The revocation bitmap index to un revoke.\n\t * @param controller The controller of the identity who can make changes.\n\t * @returns Nothing.\n\t */\n\tverifiableCredentialUnrevoke(\n\t\tissuerId: string,\n\t\tcredentialIndex: number,\n\t\tcontroller?: string\n\t): Promise<void>;\n\n\t/**\n\t * Create a verifiable presentation from the supplied verifiable credentials.\n\t * @param verificationMethodId The method to associate with the presentation.\n\t * @param presentationId The id of the presentation.\n\t * @param contexts The contexts for the data stored in the verifiable credential.\n\t * @param types The types for the data stored in the verifiable credential.\n\t * @param verifiableCredentials The credentials to use for creating the presentation in jwt format.\n\t * @param expiresInMinutes The time in minutes for the presentation to expire.\n\t * @param controller The controller of the identity who can make changes.\n\t * @returns The created verifiable presentation and its token.\n\t * @throws NotFoundError if the id can not be resolved.\n\t */\n\tverifiablePresentationCreate(\n\t\tverificationMethodId: string,\n\t\tpresentationId: string | undefined,\n\t\tcontexts: IJsonLdContextDefinitionRoot | undefined,\n\t\ttypes: string | string[] | undefined,\n\t\tverifiableCredentials: (string | IDidVerifiableCredential)[],\n\t\texpiresInMinutes?: number,\n\t\tcontroller?: string\n\t): Promise<{\n\t\tverifiablePresentation: IDidVerifiablePresentation;\n\t\tjwt: string;\n\t}>;\n\n\t/**\n\t * Verify a verifiable presentation is valid.\n\t * @param presentationJwt The presentation to verify.\n\t * @returns The presentation stored in the jwt and the revocation status.\n\t */\n\tverifiablePresentationVerify(presentationJwt: string): Promise<{\n\t\trevoked: boolean;\n\t\tverifiablePresentation?: IDidVerifiablePresentation;\n\t\tissuers?: IDidDocument[];\n\t}>;\n\n\t/**\n\t * Create a proof for a document with the specified verification method.\n\t * @param verificationMethodId The verification method id to use.\n\t * @param proofType The type of proof to create.\n\t * @param unsecureDocument The unsecure document to create the proof for.\n\t * @param controller The controller of the identity who can make changes.\n\t * @returns The proof.\n\t */\n\tproofCreate(\n\t\tverificationMethodId: string,\n\t\tproofType: ProofTypes,\n\t\tunsecureDocument: IJsonLdNodeObject,\n\t\tcontroller?: string\n\t): Promise<IProof>;\n\n\t/**\n\t * Verify proof for a document with the specified verification method.\n\t * @param document The document to verify.\n\t * @param proof The proof to verify.\n\t * @returns True if the proof is verified.\n\t */\n\tproofVerify(document: IJsonLdNodeObject, proof: IProof): Promise<boolean>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityConnector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityConnector.js","sourceRoot":"","sources":["../../../src/models/IIdentityConnector.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IJsonLdContextDefinitionRoot, IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type {\n\tDidVerificationMethodType,\n\tIDidDocument,\n\tIDidDocumentVerificationMethod,\n\tIProof,\n\tIDidService,\n\tIDidVerifiableCredential,\n\tIDidVerifiablePresentation,\n\tProofTypes\n} from \"@twin.org/standards-w3c-did\";\n\n/**\n * Interface describing an identity connector.\n */\nexport interface IIdentityConnector extends IComponent {\n\t/**\n\t * Create a new document.\n\t * @param controller The controller of the identity who can make changes.\n\t * @returns The created document.\n\t */\n\tcreateDocument(controller: string): Promise<IDidDocument>;\n\n\t/**\n\t * Remove a document.\n\t * @param controller The controller of the identity who can make changes.\n\t * @param documentId The id of the document to remove.\n\t * @returns Nothing.\n\t */\n\tremoveDocument(controller: string, documentId: string): Promise<void>;\n\n\t/**\n\t * Add a verification method to the document in JSON Web key Format.\n\t * @param controller The controller of the identity who can make changes.\n\t * @param documentId The id of the document to add the verification method to.\n\t * @param verificationMethodType The type of the verification method to add.\n\t * @param verificationMethodId The id of the verification method, if undefined uses the kid of the generated JWK.\n\t * @returns The verification method.\n\t * @throws NotFoundError if the id can not be resolved.\n\t * @throws NotSupportedError if the platform does not support multiple keys.\n\t */\n\taddVerificationMethod(\n\t\tcontroller: string,\n\t\tdocumentId: string,\n\t\tverificationMethodType: DidVerificationMethodType,\n\t\tverificationMethodId?: string\n\t): Promise<IDidDocumentVerificationMethod>;\n\n\t/**\n\t * Remove a verification method from the document.\n\t * @param controller The controller of the identity who can make changes.\n\t * @param verificationMethodId The id of the verification method.\n\t * @returns Nothing.\n\t * @throws NotFoundError if the id can not be resolved.\n\t * @throws NotSupportedError if the platform does not support multiple revocable keys.\n\t */\n\tremoveVerificationMethod(controller: string, verificationMethodId: string): Promise<void>;\n\n\t/**\n\t * Add a service to the document.\n\t * @param controller The controller of the identity who can make changes.\n\t * @param documentId The id of the document to add the service to.\n\t * @param serviceId The id of the service.\n\t * @param serviceType The type of the service.\n\t * @param serviceEndpoint The endpoint for the service.\n\t * @returns The service.\n\t * @throws NotFoundError if the id can not be resolved.\n\t */\n\taddService(\n\t\tcontroller: string,\n\t\tdocumentId: string,\n\t\tserviceId: string,\n\t\tserviceType: string | string[],\n\t\tserviceEndpoint: string | string[]\n\t): Promise<IDidService>;\n\n\t/**\n\t * Remove a service from the document.\n\t * @param controller The controller of the identity who can make changes.\n\t * @param serviceId The id of the service.\n\t * @returns Nothing.\n\t * @throws NotFoundError if the id can not be resolved.\n\t */\n\tremoveService(controller: string, serviceId: string): Promise<void>;\n\n\t/**\n\t * Create a verifiable credential for a verification method.\n\t * @param controller The controller of the identity who can make changes.\n\t * @param verificationMethodId The verification method id to use.\n\t * @param id The id of the credential.\n\t * @param subject The credential subject to store in the verifiable credential.\n\t * @param options Additional options for creating the verifiable credential.\n\t * @param options.revocationIndex The bitmap revocation index of the credential, if undefined will not have revocation status.\n\t * @param options.expirationDate The date the verifiable credential is valid until.\n\t * @returns The created verifiable credential and its token.\n\t * @throws NotFoundError if the id can not be resolved.\n\t */\n\tcreateVerifiableCredential(\n\t\tcontroller: string,\n\t\tverificationMethodId: string,\n\t\tid: string | undefined,\n\t\tsubject: IJsonLdNodeObject,\n\t\toptions?: {\n\t\t\trevocationIndex?: number;\n\t\t\texpirationDate?: Date;\n\t\t}\n\t): Promise<{\n\t\tverifiableCredential: IDidVerifiableCredential;\n\t\tjwt: string;\n\t}>;\n\n\t/**\n\t * Check a verifiable credential is valid.\n\t * @param credentialJwt The credential to verify.\n\t * @returns The credential stored in the jwt and the revocation status.\n\t */\n\tcheckVerifiableCredential(credentialJwt: string): Promise<{\n\t\trevoked: boolean;\n\t\tverifiableCredential?: IDidVerifiableCredential;\n\t}>;\n\n\t/**\n\t * Revoke verifiable credential(s).\n\t * @param controller The controller of the identity who can make changes.\n\t * @param issuerDocumentId The id of the document to update the revocation list for.\n\t * @param credentialIndices The revocation bitmap index or indices to revoke.\n\t * @returns Nothing.\n\t */\n\trevokeVerifiableCredentials(\n\t\tcontroller: string,\n\t\tissuerDocumentId: string,\n\t\tcredentialIndices: number[]\n\t): Promise<void>;\n\n\t/**\n\t * Unrevoke verifiable credential(s).\n\t * @param controller The controller of the identity who can make changes.\n\t * @param issuerDocumentId The id of the document to update the revocation list for.\n\t * @param credentialIndices The revocation bitmap index or indices to un revoke.\n\t * @returns Nothing.\n\t */\n\tunrevokeVerifiableCredentials(\n\t\tcontroller: string,\n\t\tissuerDocumentId: string,\n\t\tcredentialIndices: number[]\n\t): Promise<void>;\n\n\t/**\n\t * Create a verifiable presentation from the supplied verifiable credentials.\n\t * @param controller The controller of the identity who can make changes.\n\t * @param verificationMethodId The method to associate with the presentation.\n\t * @param presentationId The id of the presentation.\n\t * @param contexts The contexts for the data stored in the verifiable credential.\n\t * @param types The types for the data stored in the verifiable credential.\n\t * @param verifiableCredentials The credentials to use for creating the presentation in jwt format.\n\t * @param expiresInMinutes The time in minutes for the presentation to expire.\n\t * @returns The created verifiable presentation and its token.\n\t * @throws NotFoundError if the id can not be resolved.\n\t */\n\tcreateVerifiablePresentation(\n\t\tcontroller: string,\n\t\tverificationMethodId: string,\n\t\tpresentationId: string | undefined,\n\t\tcontexts: IJsonLdContextDefinitionRoot | undefined,\n\t\ttypes: string | string[] | undefined,\n\t\tverifiableCredentials: (string | IDidVerifiableCredential)[],\n\t\texpiresInMinutes?: number\n\t): Promise<{\n\t\tverifiablePresentation: IDidVerifiablePresentation;\n\t\tjwt: string;\n\t}>;\n\n\t/**\n\t * Check a verifiable presentation is valid.\n\t * @param presentationJwt The presentation to verify.\n\t * @returns The presentation stored in the jwt and the revocation status.\n\t */\n\tcheckVerifiablePresentation(presentationJwt: string): Promise<{\n\t\trevoked: boolean;\n\t\tverifiablePresentation?: IDidVerifiablePresentation;\n\t\tissuers?: IDidDocument[];\n\t}>;\n\n\t/**\n\t * Create a proof for arbitrary data with the specified verification method.\n\t * @param controller The controller of the identity who can make changes.\n\t * @param verificationMethodId The verification method id to use.\n\t * @param proofType The type of proof to create.\n\t * @param unsecureDocument The unsecure document to create the proof for.\n\t * @returns The proof.\n\t */\n\tcreateProof(\n\t\tcontroller: string,\n\t\tverificationMethodId: string,\n\t\tproofType: ProofTypes,\n\t\tunsecureDocument: IJsonLdNodeObject\n\t): Promise<IProof>;\n\n\t/**\n\t * Verify proof for arbitrary data with the specified verification method.\n\t * @param document The document to verify.\n\t * @param proof The proof to verify.\n\t * @returns True if the proof is verified.\n\t */\n\tverifyProof(document: IJsonLdNodeObject, proof: IProof): Promise<boolean>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityProfileComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityProfileComponent.js","sourceRoot":"","sources":["../../../src/models/IIdentityProfileComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IJsonLdDocument } from \"@twin.org/data-json-ld\";\n\n/**\n * Interface describing a contract which provides profile operations.\n */\nexport interface IIdentityProfileComponent<\n\tT extends IJsonLdDocument = IJsonLdDocument,\n\tU extends IJsonLdDocument = IJsonLdDocument\n> extends IComponent {\n\t/**\n\t * Create the profile properties for an identity.\n\t * @param publicProfile The public profile data as JSON-LD.\n\t * @param privateProfile The private profile data as JSON-LD.\n\t * @param identity The identity to perform the profile operation on.\n\t * @returns Nothing.\n\t */\n\tcreate(publicProfile?: T, privateProfile?: U, identity?: string): Promise<void>;\n\n\t/**\n\t * Get the profile properties for an identity.\n\t * @param publicPropertyNames The public properties to get for the profile, defaults to all.\n\t * @param privatePropertyNames The private properties to get for the profile, defaults to all.\n\t * @param identity The identity to perform the profile operation on.\n\t * @returns The items identity and the properties.\n\t */\n\tget(\n\t\tpublicPropertyNames?: (keyof T)[],\n\t\tprivatePropertyNames?: (keyof U)[],\n\t\tidentity?: string\n\t): Promise<{\n\t\tidentity: string;\n\t\tpublicProfile?: Partial<T>;\n\t\tprivateProfile?: Partial<U>;\n\t}>;\n\n\t/**\n\t * Get the public profile properties for an identity.\n\t * @param identity The identity to perform the profile operation on.\n\t * @param propertyNames The public properties to get for the profile, defaults to all.\n\t * @returns The items properties.\n\t */\n\tgetPublic(identity: string, propertyNames?: (keyof T)[]): Promise<Partial<T>>;\n\n\t/**\n\t * Update the profile properties of an identity.\n\t * @param publicProfile The public profile data as JSON-LD.\n\t * @param privateProfile The private profile data as JSON-LD.\n\t * @param identity The identity to perform the profile operation on.\n\t * @returns Nothing.\n\t */\n\tupdate(publicProfile?: T, privateProfile?: U, identity?: string): Promise<void>;\n\n\t/**\n\t * Delete the profile for an identity.\n\t * @param identity The identity to perform the profile operation on.\n\t * @returns Nothing.\n\t */\n\tremove(identity?: string): Promise<void>;\n\n\t/**\n\t * Get a list of the requested identities.\n\t * @param publicFilters The filters to apply to the identities public profiles.\n\t * @param publicPropertyNames The public properties to get for the profile, defaults to all.\n\t * @param cursor The cursor for paged requests.\n\t * @param limit The maximum number of items in a page.\n\t * @returns The list of items and cursor for paging.\n\t */\n\tlist(\n\t\tpublicFilters?: {\n\t\t\tpropertyName: string;\n\t\t\tpropertyValue: unknown;\n\t\t}[],\n\t\tpublicPropertyNames?: (keyof T)[],\n\t\tcursor?: string,\n\t\tlimit?: number\n\t): Promise<{\n\t\t/**\n\t\t * The identities.\n\t\t */\n\t\titems: {\n\t\t\tidentity: string;\n\t\t\tpublicProfile?: Partial<T>;\n\t\t}[];\n\t\t/**\n\t\t * An optional cursor, when defined can be used to call find to get more entities.\n\t\t */\n\t\tcursor?: string;\n\t}>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityProfileConnector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityProfileConnector.js","sourceRoot":"","sources":["../../../src/models/IIdentityProfileConnector.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IJsonLdDocument } from \"@twin.org/data-json-ld\";\n\n/**\n * Interface describing a contract which provides profile operations.\n */\nexport interface IIdentityProfileConnector<\n\tT extends IJsonLdDocument = IJsonLdDocument,\n\tU extends IJsonLdDocument = IJsonLdDocument\n> extends IComponent {\n\t/**\n\t * Create the profile properties for an identity.\n\t * @param identity The identity of the profile to create.\n\t * @param publicProfile The public profile data as JSON-LD.\n\t * @param privateProfile The private profile data as JSON-LD.\n\t * @returns Nothing.\n\t */\n\tcreate(identity: string, publicProfile?: T, privateProfile?: U): Promise<void>;\n\n\t/**\n\t * Get the profile properties for an identity.\n\t * @param identity The identity of the item to get.\n\t * @param publicPropertyNames The public properties to get for the profile, defaults to all.\n\t * @param privatePropertyNames The private properties to get for the profile, defaults to all.\n\t * @returns The identity profile, will only return private data if you have correct permissions.\n\t */\n\tget(\n\t\tidentity: string,\n\t\tpublicPropertyNames?: (keyof T)[],\n\t\tprivatePropertyNames?: (keyof U)[]\n\t): Promise<{\n\t\tpublicProfile: Partial<T>;\n\t\tprivateProfile: Partial<U>;\n\t}>;\n\n\t/**\n\t * Update the profile properties of an identity.\n\t * @param identity The identity to update.\n\t * @param publicProfile The public profile data as JSON-LD.\n\t * @param privateProfile The private profile data as JSON-LD.\n\t * @returns Nothing.\n\t */\n\tupdate(identity: string, publicProfile?: T, privateProfile?: U): Promise<void>;\n\n\t/**\n\t * Delete the profile for an identity.\n\t * @param identity The identity to delete.\n\t * @returns Nothing.\n\t */\n\tremove(identity: string): Promise<void>;\n\n\t/**\n\t * Get a list of the requested identities.\n\t * @param publicFilters The filters to apply to the identities public profiles.\n\t * @param privateFilters The filters to apply to the identities private profiles.\n\t * @param publicPropertyNames The public properties to get for the profile, defaults to all.\n\t * @param privatePropertyNames The private properties to get for the profile, defaults to all.\n\t * @param cursor The cursor for paged requests.\n\t * @param limit The maximum number of items in a page.\n\t * @returns The list of items and cursor for paging.\n\t */\n\tlist(\n\t\tpublicFilters?: {\n\t\t\tpropertyName: string;\n\t\t\tpropertyValue: unknown;\n\t\t}[],\n\t\tprivateFilters?: {\n\t\t\tpropertyName: string;\n\t\t\tpropertyValue: unknown;\n\t\t}[],\n\t\tpublicPropertyNames?: (keyof T)[],\n\t\tprivatePropertyNames?: (keyof U)[],\n\t\tcursor?: string,\n\t\tlimit?: number\n\t): Promise<{\n\t\t/**\n\t\t * The identity profiles.\n\t\t */\n\t\titems: {\n\t\t\tidentity: string;\n\t\t\tpublicProfile?: Partial<T>;\n\t\t\tprivateProfile?: Partial<U>;\n\t\t}[];\n\t\t/**\n\t\t * An optional cursor, when defined can be used to call find to get more entities.\n\t\t */\n\t\tcursor?: string;\n\t}>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityResolverComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityResolverComponent.js","sourceRoot":"","sources":["../../../src/models/IIdentityResolverComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IDidDocument } from \"@twin.org/standards-w3c-did\";\n\n/**\n * Interface describing a contract which provides identity operations.\n */\nexport interface IIdentityResolverComponent extends IComponent {\n\t/**\n\t * Resolve an identity.\n\t * @param identity The id of the document to resolve.\n\t * @returns The resolved document.\n\t */\n\tidentityResolve(identity: string): Promise<IDidDocument>;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityResolverConnector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityResolverConnector.js","sourceRoot":"","sources":["../../../src/models/IIdentityResolverConnector.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IDidDocument } from \"@twin.org/standards-w3c-did\";\n\n/**\n * Interface describing an identity connector.\n */\nexport interface IIdentityResolverConnector extends IComponent {\n\t/**\n\t * Resolve a document from its id.\n\t * @param documentId The id of the document to resolve.\n\t * @returns The resolved document.\n\t * @throws NotFoundError if the id can not be resolved.\n\t */\n\tresolveDocument(documentId: string): Promise<IDidDocument>;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IIdentityCreateRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityCreateRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityCreateRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Request to create an identity.\n */\nexport interface IIdentityCreateRequest {\n\t/**\n\t * The data for the request.\n\t */\n\tbody?: {\n\t\t/**\n\t\t * The optional namespace to create the identity in.\n\t\t */\n\t\tnamespace?: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityCreateResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityCreateResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityCreateResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDidDocument } from \"@twin.org/standards-w3c-did\";\n\n/**\n * Response to creating an identity.\n */\nexport interface IIdentityCreateResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: IDidDocument;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityProofCreateRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityProofCreateRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityProofCreateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { ProofTypes } from \"@twin.org/standards-w3c-did\";\n\n/**\n * Request to create a proof.\n */\nexport interface IIdentityProofCreateRequest {\n\t/**\n\t * The path parameters.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identity to create the proof for.\n\t\t */\n\t\tidentity: string;\n\n\t\t/**\n\t\t * The verification method id to use.\n\t\t */\n\t\tverificationMethodId: string;\n\t};\n\n\t/**\n\t * The data for the request.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The type of proof to create.\n\t\t */\n\t\tproofType: ProofTypes;\n\n\t\t/**\n\t\t * The document to create the proof for.\n\t\t */\n\t\tdocument: IJsonLdNodeObject;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityProofCreateResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityProofCreateResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityProofCreateResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IProof } from \"@twin.org/standards-w3c-did\";\n\n/**\n * Response to creating a proof.\n */\nexport interface IIdentityProofCreateResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: IProof;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityProofVerifyRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityProofVerifyRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityProofVerifyRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IProof } from \"@twin.org/standards-w3c-did\";\n\n/**\n * Request to verify a proof.\n */\nexport interface IIdentityProofVerifyRequest {\n\t/**\n\t * The data for the request.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The document to verify the proof for.\n\t\t */\n\t\tdocument: IJsonLdNodeObject;\n\n\t\t/**\n\t\t * The proof to verify.\n\t\t */\n\t\tproof: IProof;\n\t};\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IIdentityProofVerifyResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityProofVerifyResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityProofVerifyResponse.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Response to verifying a proof.\n */\nexport interface IIdentityProofVerifyResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: {\n\t\tverified: boolean;\n\t};\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IIdentityRemoveRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityRemoveRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityRemoveRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Request to remove an identity.\n */\nexport interface IIdentityRemoveRequest {\n\t/**\n\t * The data for the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identity to remove.\n\t\t */\n\t\tidentity: string;\n\t};\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IIdentityServiceCreateRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityServiceCreateRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityServiceCreateRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Request to create a service.\n */\nexport interface IIdentityServiceCreateRequest {\n\t/**\n\t * The path parameters.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identity to create the service for.\n\t\t */\n\t\tidentity: string;\n\t};\n\n\t/**\n\t * The data for the request.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The id of the service.\n\t\t */\n\t\tserviceId: string;\n\n\t\t/**\n\t\t * The type of the service.\n\t\t */\n\t\ttype: string | string[];\n\n\t\t/**\n\t\t * The endpoint for the service.\n\t\t */\n\t\tendpoint: string | string[];\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityServiceCreateResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityServiceCreateResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityServiceCreateResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDidService } from \"@twin.org/standards-w3c-did\";\n\n/**\n * Response to creating a service.\n */\nexport interface IIdentityServiceCreateResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: IDidService;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IIdentityServiceRemoveRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityServiceRemoveRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityServiceRemoveRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Request to remove a service.\n */\nexport interface IIdentityServiceRemoveRequest {\n\t/**\n\t * The path parameters.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identity to remove the service from.\n\t\t */\n\t\tidentity: string;\n\n\t\t/**\n\t\t * The service to remove.\n\t\t */\n\t\tserviceId: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityVerifiableCredentialCreateRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityVerifiableCredentialCreateRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityVerifiableCredentialCreateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\n\n/**\n * Request to create a verifiable credential.\n */\nexport interface IIdentityVerifiableCredentialCreateRequest {\n\t/**\n\t * The path parameters.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identity to create the verification credential for.\n\t\t */\n\t\tidentity: string;\n\n\t\t/**\n\t\t * The verification method id to use.\n\t\t */\n\t\tverificationMethodId: string;\n\t};\n\n\t/**\n\t * The data for the request.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The id of the credential.\n\t\t */\n\t\tcredentialId?: string;\n\n\t\t/**\n\t\t * The credential subject to store in the verifiable credential.\n\t\t */\n\t\tsubject: IJsonLdNodeObject;\n\n\t\t/**\n\t\t * The bitmap revocation index of the credential, if undefined will not have revocation status.\n\t\t */\n\t\trevocationIndex?: number;\n\n\t\t/**\n\t\t * The date the verifiable credential is valid until.\n\t\t */\n\t\texpirationDate?: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityVerifiableCredentialCreateResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityVerifiableCredentialCreateResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityVerifiableCredentialCreateResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDidVerifiableCredential } from \"@twin.org/standards-w3c-did\";\n\n/**\n * Response to creating a verifiable credential.\n */\nexport interface IIdentityVerifiableCredentialCreateResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The verifiable credential that was created.\n\t\t */\n\t\tverifiableCredential: IDidVerifiableCredential;\n\n\t\t/**\n\t\t * The JWT token for the verifiable credential.\n\t\t */\n\t\tjwt: string;\n\t};\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IIdentityVerifiableCredentialRevokeRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityVerifiableCredentialRevokeRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityVerifiableCredentialRevokeRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Request to revoke a verifiable credential.\n */\nexport interface IIdentityVerifiableCredentialRevokeRequest {\n\t/**\n\t * The path parameters.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identity to revoke the verification credential for.\n\t\t */\n\t\tidentity: string;\n\n\t\t/**\n\t\t * The revocation index to revoke.\n\t\t */\n\t\trevocationIndex: number;\n\t};\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IIdentityVerifiableCredentialUnrevokeRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityVerifiableCredentialUnrevokeRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityVerifiableCredentialUnrevokeRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Request to unrevoke a verifiable credential.\n */\nexport interface IIdentityVerifiableCredentialUnrevokeRequest {\n\t/**\n\t * The path parameters.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identity to unrevoke the verification credential for.\n\t\t */\n\t\tidentity: string;\n\n\t\t/**\n\t\t * The revocation index to unrevoke.\n\t\t */\n\t\trevocationIndex: number;\n\t};\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IIdentityVerifiableCredentialVerifyRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityVerifiableCredentialVerifyRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityVerifiableCredentialVerifyRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Request to verify a verifiable credential.\n */\nexport interface IIdentityVerifiableCredentialVerifyRequest {\n\t/**\n\t * The path parameters.\n\t */\n\tquery: {\n\t\t/**\n\t\t * The jwt to verify.\n\t\t */\n\t\tjwt: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityVerifiableCredentialVerifyResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityVerifiableCredentialVerifyResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityVerifiableCredentialVerifyResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDidVerifiableCredential } from \"@twin.org/standards-w3c-did\";\n\n/**\n * Response to verifying a verifiable credential.\n */\nexport interface IIdentityVerifiableCredentialVerifyResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: {\n\t\t/**\n\t\t * Has the credential been revoked.\n\t\t */\n\t\trevoked: boolean;\n\n\t\t/**\n\t\t * The verifiable credential that was verified.\n\t\t */\n\t\tverifiableCredential?: IDidVerifiableCredential;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityVerifiablePresentationCreateRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityVerifiablePresentationCreateRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityVerifiablePresentationCreateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionRoot } from \"@twin.org/data-json-ld\";\nimport type { IDidVerifiableCredential } from \"@twin.org/standards-w3c-did\";\n\n/**\n * Request to create a verifiable presentation.\n */\nexport interface IIdentityVerifiablePresentationCreateRequest {\n\t/**\n\t * The path parameters.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identity to create the verification presentation for.\n\t\t */\n\t\tidentity: string;\n\n\t\t/**\n\t\t * The verification method id to use.\n\t\t */\n\t\tverificationMethodId: string;\n\t};\n\n\t/**\n\t * The data for the request.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The id of the presentation.\n\t\t */\n\t\tpresentationId?: string;\n\n\t\t/**\n\t\t * The context to use for the presentation.\n\t\t */\n\t\tcontexts?: IJsonLdContextDefinitionRoot;\n\n\t\t/**\n\t\t * The types of the presentation.\n\t\t */\n\t\ttypes?: string | string[];\n\n\t\t/**\n\t\t * The verifiable credentials to include in the presentation.\n\t\t */\n\t\tverifiableCredentials: (string | IDidVerifiableCredential)[];\n\n\t\t/**\n\t\t * The expiration time for the presentation.\n\t\t */\n\t\texpiresInMinutes?: number;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityVerifiablePresentationCreateResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityVerifiablePresentationCreateResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityVerifiablePresentationCreateResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDidVerifiablePresentation } from \"@twin.org/standards-w3c-did\";\n\n/**\n * Response to creating a verifiable presentation.\n */\nexport interface IIdentityVerifiablePresentationCreateResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The verifiable presentation that was created.\n\t\t */\n\t\tverifiablePresentation: IDidVerifiablePresentation;\n\n\t\t/**\n\t\t * The JWT token for the verifiable presentation.\n\t\t */\n\t\tjwt: string;\n\t};\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IIdentityVerifiablePresentationVerifyRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityVerifiablePresentationVerifyRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityVerifiablePresentationVerifyRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Request to verify a verifiable presentation.\n */\nexport interface IIdentityVerifiablePresentationVerifyRequest {\n\t/**\n\t * The path parameters.\n\t */\n\tquery: {\n\t\t/**\n\t\t * The jwt to verify.\n\t\t */\n\t\tjwt: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityVerifiablePresentationVerifyResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityVerifiablePresentationVerifyResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityVerifiablePresentationVerifyResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDidDocument, IDidVerifiablePresentation } from \"@twin.org/standards-w3c-did\";\n\n/**\n * Response to verifying a verifiable presentation.\n */\nexport interface IIdentityVerifiablePresentationVerifyResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: {\n\t\t/**\n\t\t * Has the presentation been revoked.\n\t\t */\n\t\trevoked: boolean;\n\n\t\t/**\n\t\t * The verifiable presentation that was verified.\n\t\t */\n\t\tverifiablePresentation?: IDidVerifiablePresentation;\n\n\t\t/**\n\t\t * The issuers of the presentation.\n\t\t */\n\t\tissuers?: IDidDocument[];\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityVerificationMethodCreateRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityVerificationMethodCreateRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityVerificationMethodCreateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DidVerificationMethodType } from \"@twin.org/standards-w3c-did\";\n\n/**\n * Request to create a verification method.\n */\nexport interface IIdentityVerificationMethodCreateRequest {\n\t/**\n\t * The path parameters.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identity to create the verification method for.\n\t\t */\n\t\tidentity: string;\n\t};\n\n\t/**\n\t * The data for the request.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The type of the verification method to create.\n\t\t */\n\t\tverificationMethodType: DidVerificationMethodType;\n\n\t\t/**\n\t\t * The optional id for the verification method, will be allocated if not supplied.\n\t\t */\n\t\tverificationMethodId?: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityVerificationMethodCreateResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityVerificationMethodCreateResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityVerificationMethodCreateResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDidDocumentVerificationMethod } from \"@twin.org/standards-w3c-did\";\n\n/**\n * Response to creating a verification method.\n */\nexport interface IIdentityVerificationMethodCreateResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: IDidDocumentVerificationMethod;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IIdentityVerificationMethodRemoveRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityVerificationMethodRemoveRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/identity/IIdentityVerificationMethodRemoveRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Request to remove a verification method.\n */\nexport interface IIdentityVerificationMethodRemoveRequest {\n\t/**\n\t * The path parameters.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identity to remove the verification method from.\n\t\t */\n\t\tidentity: string;\n\n\t\t/**\n\t\t * The verification method to remove.\n\t\t */\n\t\tverificationMethodId: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityProfileCreateRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityProfileCreateRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/profile/IIdentityProfileCreateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdDocument } from \"@twin.org/data-json-ld\";\n\n/**\n * Request to create an identity profile.\n */\nexport interface IIdentityProfileCreateRequest {\n\t/**\n\t * The data for the request.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The public profile data.\n\t\t */\n\t\tpublicProfile?: IJsonLdDocument;\n\n\t\t/**\n\t\t * The private profile data.\n\t\t */\n\t\tprivateProfile?: IJsonLdDocument;\n\t};\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IIdentityProfileGetPublicRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityProfileGetPublicRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/profile/IIdentityProfileGetPublicRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Get the public profile for an identity.\n */\nexport interface IIdentityProfileGetPublicRequest {\n\t/**\n\t * The path parameters.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identity to get the profile for.\n\t\t */\n\t\tidentity: string;\n\t};\n\n\t/**\n\t * The query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * The properties to get for the public profile, defaults to all, should be a comma separated list.\n\t\t */\n\t\tpropertyNames?: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityProfileGetPublicResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityProfileGetPublicResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/profile/IIdentityProfileGetPublicResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdDocument } from \"@twin.org/data-json-ld\";\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * Response to get an identity public profile.\n */\nexport interface IIdentityProfileGetPublicResponse {\n\t/**\n\t * The response headers.\n\t */\n\theaders: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The response payload.\n\t */\n\tbody: Partial<IJsonLdDocument>;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IIdentityProfileGetRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityProfileGetRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/profile/IIdentityProfileGetRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Get the profile for an identity.\n */\nexport interface IIdentityProfileGetRequest {\n\t/**\n\t * The query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * The public properties to get for the profile, defaults to all, should be a comma separated list.\n\t\t */\n\t\tpublicPropertyNames?: string;\n\n\t\t/**\n\t\t * The private properties to get for the profile, defaults to all, should be a comma separated list.\n\t\t */\n\t\tprivatePropertyNames?: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityProfileGetResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityProfileGetResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/profile/IIdentityProfileGetResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdDocument } from \"@twin.org/data-json-ld\";\n\n/**\n * Response to get an identity details.\n */\nexport interface IIdentityProfileGetResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The identity of the profile, this is the authenticated user identity.\n\t\t */\n\t\tidentity: string;\n\n\t\t/**\n\t\t * The public profile data.\n\t\t */\n\t\tpublicProfile?: Partial<IJsonLdDocument>;\n\n\t\t/**\n\t\t * The private profile data.\n\t\t */\n\t\tprivateProfile?: Partial<IJsonLdDocument>;\n\t};\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IIdentityProfileListRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityProfileListRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/profile/IIdentityProfileListRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Request to get a list of identities.\n */\nexport interface IIdentityProfileListRequest {\n\t/**\n\t * The query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * The public filters to apply to the list, comma separated list with color between key and value for each pair e.g. prop1:value1,prop2:value2.\n\t\t */\n\t\tpublicFilters?: string;\n\n\t\t/**\n\t\t * The public properties to get for the profile, defaults to all, should be a comma separated list.\n\t\t */\n\t\tpublicPropertyNames?: string;\n\n\t\t/**\n\t\t * The cursor for paged requests.\n\t\t */\n\t\tcursor?: string;\n\n\t\t/**\n\t\t * Number of items to return.\n\t\t */\n\t\tlimit?: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityProfileListResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityProfileListResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/profile/IIdentityProfileListResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdDocument } from \"@twin.org/data-json-ld\";\n\n/**\n * Response to get a list of identities.\n */\nexport interface IIdentityProfileListResponse {\n\t/**\n\t * The response payload.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The identities.\n\t\t */\n\t\titems: {\n\t\t\t/**\n\t\t\t * The identity.\n\t\t\t */\n\t\t\tidentity: string;\n\n\t\t\t/**\n\t\t\t * The public profile data.\n\t\t\t */\n\t\t\tpublicProfile?: Partial<IJsonLdDocument>;\n\t\t}[];\n\n\t\t/**\n\t\t * An optional cursor, when defined can be used to call find to get more entities.\n\t\t */\n\t\tcursor?: string;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityProfileUpdateRequest.js.map