@twin.org/identity-service 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 (40) hide show
  1. package/dist/es/identityProfileRoutes.js +389 -0
  2. package/dist/es/identityProfileRoutes.js.map +1 -0
  3. package/dist/es/identityProfileService.js +165 -0
  4. package/dist/es/identityProfileService.js.map +1 -0
  5. package/dist/es/identityResolverRoutes.js +87 -0
  6. package/dist/es/identityResolverRoutes.js.map +1 -0
  7. package/dist/es/identityResolverService.js +98 -0
  8. package/dist/es/identityResolverService.js.map +1 -0
  9. package/dist/es/identityRoutes.js +946 -0
  10. package/dist/es/identityRoutes.js.map +1 -0
  11. package/dist/es/identityService.js +391 -0
  12. package/dist/es/identityService.js.map +1 -0
  13. package/dist/es/index.js +15 -0
  14. package/dist/es/index.js.map +1 -0
  15. package/dist/es/models/IIdentityProfileServiceConstructorOptions.js +2 -0
  16. package/dist/es/models/IIdentityProfileServiceConstructorOptions.js.map +1 -0
  17. package/dist/es/models/IIdentityResolverServiceConfig.js +4 -0
  18. package/dist/es/models/IIdentityResolverServiceConfig.js.map +1 -0
  19. package/dist/es/models/IIdentityResolverServiceConstructorOptions.js +2 -0
  20. package/dist/es/models/IIdentityResolverServiceConstructorOptions.js.map +1 -0
  21. package/dist/es/models/IIdentityServiceConfig.js +4 -0
  22. package/dist/es/models/IIdentityServiceConfig.js.map +1 -0
  23. package/dist/es/models/IIdentityServiceConstructorOptions.js +2 -0
  24. package/dist/es/models/IIdentityServiceConstructorOptions.js.map +1 -0
  25. package/dist/es/restEntryPoints.js +24 -0
  26. package/dist/es/restEntryPoints.js.map +1 -0
  27. package/dist/types/identityProfileService.d.ts +6 -1
  28. package/dist/types/identityResolverService.d.ts +6 -1
  29. package/dist/types/identityService.d.ts +6 -1
  30. package/dist/types/index.d.ts +12 -12
  31. package/dist/types/models/IIdentityResolverServiceConstructorOptions.d.ts +1 -1
  32. package/dist/types/models/IIdentityServiceConstructorOptions.d.ts +1 -1
  33. package/docs/changelog.md +66 -0
  34. package/docs/open-api/spec.json +115 -130
  35. package/docs/reference/classes/IdentityProfileService.md +18 -0
  36. package/docs/reference/classes/IdentityResolverService.md +18 -0
  37. package/docs/reference/classes/IdentityService.md +22 -4
  38. package/package.json +7 -8
  39. package/dist/cjs/index.cjs +0 -2071
  40. package/dist/esm/index.mjs +0 -2039
@@ -0,0 +1,15 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export * from "./identityProfileRoutes.js";
4
+ export * from "./identityProfileService.js";
5
+ export * from "./identityResolverRoutes.js";
6
+ export * from "./identityResolverService.js";
7
+ export * from "./identityRoutes.js";
8
+ export * from "./identityService.js";
9
+ export * from "./models/IIdentityProfileServiceConstructorOptions.js";
10
+ export * from "./models/IIdentityResolverServiceConfig.js";
11
+ export * from "./models/IIdentityResolverServiceConstructorOptions.js";
12
+ export * from "./models/IIdentityServiceConfig.js";
13
+ export * from "./models/IIdentityServiceConstructorOptions.js";
14
+ export * from "./restEntryPoints.js";
15
+ //# 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,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uDAAuD,CAAC;AACtE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wDAAwD,CAAC;AACvE,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sBAAsB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./identityProfileRoutes.js\";\nexport * from \"./identityProfileService.js\";\nexport * from \"./identityResolverRoutes.js\";\nexport * from \"./identityResolverService.js\";\nexport * from \"./identityRoutes.js\";\nexport * from \"./identityService.js\";\nexport * from \"./models/IIdentityProfileServiceConstructorOptions.js\";\nexport * from \"./models/IIdentityResolverServiceConfig.js\";\nexport * from \"./models/IIdentityResolverServiceConstructorOptions.js\";\nexport * from \"./models/IIdentityServiceConfig.js\";\nexport * from \"./models/IIdentityServiceConstructorOptions.js\";\nexport * from \"./restEntryPoints.js\";\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityProfileServiceConstructorOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityProfileServiceConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IIdentityProfileServiceConstructorOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n/**\n * Options for the identity profile service constructor.\n */\nexport interface IIdentityProfileServiceConstructorOptions {\n\t/**\n\t * The storage connector for the profiles.\n\t * @default identity-profile\n\t */\n\tprofileEntityConnectorType?: string;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IIdentityResolverServiceConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityResolverServiceConfig.js","sourceRoot":"","sources":["../../../src/models/IIdentityResolverServiceConfig.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Configuration for the Identity Resolver Service.\n */\nexport interface IIdentityResolverServiceConfig {\n\t/**\n\t * What is the default connector to use for Identity. If not provided the first connector from the factory will be used.\n\t */\n\tdefaultNamespace?: string;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityResolverServiceConstructorOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityResolverServiceConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IIdentityResolverServiceConstructorOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IIdentityResolverServiceConfig } from \"./IIdentityResolverServiceConfig.js\";\n\n/**\n * Options for the identity resolver service constructor.\n */\nexport interface IIdentityResolverServiceConstructorOptions {\n\t/**\n\t * Fallback connector type to use if the namespace connector is not available.\n\t * @default universal\n\t */\n\tfallbackResolverConnectorType?: string;\n\n\t/**\n\t * The configuration for the identity service.\n\t */\n\tconfig?: IIdentityResolverServiceConfig;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export {};
4
+ //# sourceMappingURL=IIdentityServiceConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityServiceConfig.js","sourceRoot":"","sources":["../../../src/models/IIdentityServiceConfig.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Configuration for the Identity Service.\n */\nexport interface IIdentityServiceConfig {\n\t/**\n\t * What is the default connector to use for Identity. If not provided the first connector from the factory will be used.\n\t */\n\tdefaultNamespace?: string;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIdentityServiceConstructorOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIdentityServiceConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IIdentityServiceConstructorOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IIdentityServiceConfig } from \"./IIdentityServiceConfig.js\";\n\n/**\n * Options for the identity service constructor.\n */\nexport interface IIdentityServiceConstructorOptions {\n\t/**\n\t * The configuration for the identity service.\n\t */\n\tconfig?: IIdentityServiceConfig;\n}\n"]}
@@ -0,0 +1,24 @@
1
+ import { generateRestRoutesIdentityProfile, tagsIdentityProfile } from "./identityProfileRoutes.js";
2
+ import { generateRestRoutesIdentityResolver, tagsIdentityResolver } from "./identityResolverRoutes.js";
3
+ import { generateRestRoutesIdentity, tagsIdentity } from "./identityRoutes.js";
4
+ export const restEntryPoints = [
5
+ {
6
+ name: "identityResolver",
7
+ defaultBaseRoute: "identity",
8
+ tags: tagsIdentityResolver,
9
+ generateRoutes: generateRestRoutesIdentityResolver
10
+ },
11
+ {
12
+ name: "identity",
13
+ defaultBaseRoute: "identity",
14
+ tags: tagsIdentity,
15
+ generateRoutes: generateRestRoutesIdentity
16
+ },
17
+ {
18
+ name: "identityProfile",
19
+ defaultBaseRoute: "identity/profile",
20
+ tags: tagsIdentityProfile,
21
+ generateRoutes: generateRestRoutesIdentityProfile
22
+ }
23
+ ];
24
+ //# sourceMappingURL=restEntryPoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restEntryPoints.js","sourceRoot":"","sources":["../../src/restEntryPoints.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iCAAiC,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACpG,OAAO,EACN,kCAAkC,EAClC,oBAAoB,EACpB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAE/E,MAAM,CAAC,MAAM,eAAe,GAA2B;IACtD;QACC,IAAI,EAAE,kBAAkB;QACxB,gBAAgB,EAAE,UAAU;QAC5B,IAAI,EAAE,oBAAoB;QAC1B,cAAc,EAAE,kCAAkC;KAClD;IACD;QACC,IAAI,EAAE,UAAU;QAChB,gBAAgB,EAAE,UAAU;QAC5B,IAAI,EAAE,YAAY;QAClB,cAAc,EAAE,0BAA0B;KAC1C;IACD;QACC,IAAI,EAAE,iBAAiB;QACvB,gBAAgB,EAAE,kBAAkB;QACpC,IAAI,EAAE,mBAAmB;QACzB,cAAc,EAAE,iCAAiC;KACjD;CACD,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IRestRouteEntryPoint } from \"@twin.org/api-models\";\nimport { generateRestRoutesIdentityProfile, tagsIdentityProfile } from \"./identityProfileRoutes.js\";\nimport {\n\tgenerateRestRoutesIdentityResolver,\n\ttagsIdentityResolver\n} from \"./identityResolverRoutes.js\";\nimport { generateRestRoutesIdentity, tagsIdentity } from \"./identityRoutes.js\";\n\nexport const restEntryPoints: IRestRouteEntryPoint[] = [\n\t{\n\t\tname: \"identityResolver\",\n\t\tdefaultBaseRoute: \"identity\",\n\t\ttags: tagsIdentityResolver,\n\t\tgenerateRoutes: generateRestRoutesIdentityResolver\n\t},\n\t{\n\t\tname: \"identity\",\n\t\tdefaultBaseRoute: \"identity\",\n\t\ttags: tagsIdentity,\n\t\tgenerateRoutes: generateRestRoutesIdentity\n\t},\n\t{\n\t\tname: \"identityProfile\",\n\t\tdefaultBaseRoute: \"identity/profile\",\n\t\ttags: tagsIdentityProfile,\n\t\tgenerateRoutes: generateRestRoutesIdentityProfile\n\t}\n];\n"]}
@@ -1,6 +1,6 @@
1
1
  import type { IJsonLdDocument } from "@twin.org/data-json-ld";
2
2
  import { type IIdentityProfileComponent } from "@twin.org/identity-models";
3
- import type { IIdentityProfileServiceConstructorOptions } from "./models/IIdentityProfileServiceConstructorOptions";
3
+ import type { IIdentityProfileServiceConstructorOptions } from "./models/IIdentityProfileServiceConstructorOptions.js";
4
4
  /**
5
5
  * Class which implements the identity profile contract.
6
6
  */
@@ -14,6 +14,11 @@ export declare class IdentityProfileService<T extends IJsonLdDocument = IJsonLdD
14
14
  * @param options The dependencies for the identity profile service.
15
15
  */
16
16
  constructor(options?: IIdentityProfileServiceConstructorOptions);
17
+ /**
18
+ * Returns the class name of the component.
19
+ * @returns The class name of the component.
20
+ */
21
+ className(): string;
17
22
  /**
18
23
  * Create the profile properties for an identity.
19
24
  * @param publicProfile The public profile data as JSON-LD.
@@ -1,6 +1,6 @@
1
1
  import { type IIdentityResolverComponent } from "@twin.org/identity-models";
2
2
  import type { IDidDocument } from "@twin.org/standards-w3c-did";
3
- import type { IIdentityResolverServiceConstructorOptions } from "./models/IIdentityResolverServiceConstructorOptions";
3
+ import type { IIdentityResolverServiceConstructorOptions } from "./models/IIdentityResolverServiceConstructorOptions.js";
4
4
  /**
5
5
  * Class which implements the identity resolver contract.
6
6
  */
@@ -14,6 +14,11 @@ export declare class IdentityResolverService implements IIdentityResolverCompone
14
14
  * @param options The options for the service.
15
15
  */
16
16
  constructor(options?: IIdentityResolverServiceConstructorOptions);
17
+ /**
18
+ * Returns the class name of the component.
19
+ * @returns The class name of the component.
20
+ */
21
+ className(): string;
17
22
  /**
18
23
  * Resolve an identity.
19
24
  * @param identity The id of the document to resolve.
@@ -1,7 +1,7 @@
1
1
  import type { IJsonLdContextDefinitionRoot, IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
2
  import { type IIdentityComponent } from "@twin.org/identity-models";
3
3
  import { DidVerificationMethodType, ProofTypes, type IDidDocument, type IDidDocumentVerificationMethod, type IProof, type IDidService, type IDidVerifiableCredential, type IDidVerifiablePresentation } from "@twin.org/standards-w3c-did";
4
- import type { IIdentityServiceConstructorOptions } from "./models/IIdentityServiceConstructorOptions";
4
+ import type { IIdentityServiceConstructorOptions } from "./models/IIdentityServiceConstructorOptions.js";
5
5
  /**
6
6
  * Class which implements the identity contract.
7
7
  */
@@ -15,6 +15,11 @@ export declare class IdentityService implements IIdentityComponent {
15
15
  * @param options The options for the service.
16
16
  */
17
17
  constructor(options?: IIdentityServiceConstructorOptions);
18
+ /**
19
+ * Returns the class name of the component.
20
+ * @returns The class name of the component.
21
+ */
22
+ className(): string;
18
23
  /**
19
24
  * Create a new identity.
20
25
  * @param namespace The namespace of the connector to use for the identity, defaults to service configured namespace.
@@ -1,12 +1,12 @@
1
- export * from "./identityProfileRoutes";
2
- export * from "./identityProfileService";
3
- export * from "./identityResolverRoutes";
4
- export * from "./identityResolverService";
5
- export * from "./identityRoutes";
6
- export * from "./identityService";
7
- export * from "./models/IIdentityProfileServiceConstructorOptions";
8
- export * from "./models/IIdentityResolverServiceConfig";
9
- export * from "./models/IIdentityResolverServiceConstructorOptions";
10
- export * from "./models/IIdentityServiceConfig";
11
- export * from "./models/IIdentityServiceConstructorOptions";
12
- export * from "./restEntryPoints";
1
+ export * from "./identityProfileRoutes.js";
2
+ export * from "./identityProfileService.js";
3
+ export * from "./identityResolverRoutes.js";
4
+ export * from "./identityResolverService.js";
5
+ export * from "./identityRoutes.js";
6
+ export * from "./identityService.js";
7
+ export * from "./models/IIdentityProfileServiceConstructorOptions.js";
8
+ export * from "./models/IIdentityResolverServiceConfig.js";
9
+ export * from "./models/IIdentityResolverServiceConstructorOptions.js";
10
+ export * from "./models/IIdentityServiceConfig.js";
11
+ export * from "./models/IIdentityServiceConstructorOptions.js";
12
+ export * from "./restEntryPoints.js";
@@ -1,4 +1,4 @@
1
- import type { IIdentityResolverServiceConfig } from "./IIdentityResolverServiceConfig";
1
+ import type { IIdentityResolverServiceConfig } from "./IIdentityResolverServiceConfig.js";
2
2
  /**
3
3
  * Options for the identity resolver service constructor.
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { IIdentityServiceConfig } from "./IIdentityServiceConfig";
1
+ import type { IIdentityServiceConfig } from "./IIdentityServiceConfig.js";
2
2
  /**
3
3
  * Options for the identity service constructor.
4
4
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,71 @@
1
1
  # @twin.org/identity-service - Changelog
2
2
 
3
+ ## [0.0.3-next.2](https://github.com/twinfoundation/identity/compare/identity-service-v0.0.3-next.1...identity-service-v0.0.3-next.2) (2025-11-14)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **identity-service:** Synchronize repo versions
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/identity-models bumped from 0.0.3-next.1 to 0.0.3-next.2
16
+ * devDependencies
17
+ * @twin.org/identity-connector-entity-storage bumped from 0.0.3-next.1 to 0.0.3-next.2
18
+
19
+ ## [0.0.3-next.1](https://github.com/twinfoundation/identity/compare/identity-service-v0.0.3-next.0...identity-service-v0.0.3-next.1) (2025-11-11)
20
+
21
+
22
+ ### Features
23
+
24
+ * add context id features ([#62](https://github.com/twinfoundation/identity/issues/62)) ([e02ecca](https://github.com/twinfoundation/identity/commit/e02ecca9c45a849104bfbf7bc18a1f44e6eea8a1))
25
+ * add expiration date option to vc creation ([73e05e1](https://github.com/twinfoundation/identity/commit/73e05e1ae61112c7e056889969751f4ff82d9f29))
26
+ * add identity remove ([eebc13f](https://github.com/twinfoundation/identity/commit/eebc13f4c2cd994d2d9cce4da2128fb346c80ba7))
27
+ * add validate-locales ([04d74b4](https://github.com/twinfoundation/identity/commit/04d74b4d1ebe42672e8ca75a7bdb8e3556afd0be))
28
+ * eslint migration to flat config ([fd6246d](https://github.com/twinfoundation/identity/commit/fd6246d566280b6d5d10a108eb1e92c4b510f2f2))
29
+ * identity key separator use slash ([1319d0d](https://github.com/twinfoundation/identity/commit/1319d0d07164a36b3ec279e6421b8835ffefc3d3))
30
+ * remove unused namespace ([1987f72](https://github.com/twinfoundation/identity/commit/1987f72089be5ece10aa96b1fb9c386221c95c75))
31
+ * update framework core ([c824497](https://github.com/twinfoundation/identity/commit/c82449709af0215eb7af496cf687c93fb30b5ae0))
32
+ * update twindev schemas ([f5b2735](https://github.com/twinfoundation/identity/commit/f5b273561b52fa75e654e074927c164a465aa510))
33
+ * use new generateKid method ([f0fe779](https://github.com/twinfoundation/identity/commit/f0fe779323b675575bb9f80aa74f1957dc57a094))
34
+ * use shared store mechanism ([#27](https://github.com/twinfoundation/identity/issues/27)) ([ce41f3f](https://github.com/twinfoundation/identity/commit/ce41f3fc3da1b206ec06da7ea5b2c968f788804d))
35
+
36
+
37
+ ### Bug Fixes
38
+
39
+ * Import path and bump version ([#21](https://github.com/twinfoundation/identity/issues/21)) ([ccea845](https://github.com/twinfoundation/identity/commit/ccea845bf32562267280bc1b3dde1c9af1a00360))
40
+ * Install sdk-wasm ([#20](https://github.com/twinfoundation/identity/issues/20)) ([75ec14e](https://github.com/twinfoundation/identity/commit/75ec14e072f8c219863a1c028a3b0783802086e9))
41
+ * missing path params ([02acbde](https://github.com/twinfoundation/identity/commit/02acbde3033bf5d5435dca0bd8187cabad8f3028))
42
+ * query params force coercion ([d9347d2](https://github.com/twinfoundation/identity/commit/d9347d29d4a9cc58759f30f5d8526de864ea7522))
43
+
44
+
45
+ ### Dependencies
46
+
47
+ * The following workspace dependencies were updated
48
+ * dependencies
49
+ * @twin.org/identity-models bumped from 0.0.3-next.0 to 0.0.3-next.1
50
+ * devDependencies
51
+ * @twin.org/identity-connector-entity-storage bumped from 0.0.3-next.0 to 0.0.3-next.1
52
+
53
+ ## [0.0.2-next.10](https://github.com/twinfoundation/identity/compare/identity-service-v0.0.2-next.9...identity-service-v0.0.2-next.10) (2025-10-27)
54
+
55
+
56
+ ### Bug Fixes
57
+
58
+ * missing path params ([02acbde](https://github.com/twinfoundation/identity/commit/02acbde3033bf5d5435dca0bd8187cabad8f3028))
59
+
60
+
61
+ ### Dependencies
62
+
63
+ * The following workspace dependencies were updated
64
+ * dependencies
65
+ * @twin.org/identity-models bumped from 0.0.2-next.9 to 0.0.2-next.10
66
+ * devDependencies
67
+ * @twin.org/identity-connector-entity-storage bumped from 0.0.2-next.9 to 0.0.2-next.10
68
+
3
69
  ## [0.0.2-next.9](https://github.com/twinfoundation/identity/compare/identity-service-v0.0.2-next.8...identity-service-v0.0.2-next.9) (2025-10-09)
4
70
 
5
71