@twin.org/identity-connector-entity-storage 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 (31) hide show
  1. package/dist/es/entities/identityDocument.js +45 -0
  2. package/dist/es/entities/identityDocument.js.map +1 -0
  3. package/dist/es/entities/identityProfile.js +37 -0
  4. package/dist/es/entities/identityProfile.js.map +1 -0
  5. package/dist/{esm/index.mjs → es/entityStorageIdentityConnector.js} +18 -355
  6. package/dist/es/entityStorageIdentityConnector.js.map +1 -0
  7. package/dist/es/entityStorageIdentityProfileConnector.js +203 -0
  8. package/dist/es/entityStorageIdentityProfileConnector.js.map +1 -0
  9. package/dist/es/entityStorageIdentityResolverConnector.js +65 -0
  10. package/dist/es/entityStorageIdentityResolverConnector.js.map +1 -0
  11. package/dist/es/index.js +12 -0
  12. package/dist/es/index.js.map +1 -0
  13. package/dist/es/models/IEntityStorageIdentityConnectorConstructorOptions.js +2 -0
  14. package/dist/es/models/IEntityStorageIdentityConnectorConstructorOptions.js.map +1 -0
  15. package/dist/es/models/IEntityStorageIdentityProfileConnectorConstructorOptions.js +4 -0
  16. package/dist/es/models/IEntityStorageIdentityProfileConnectorConstructorOptions.js.map +1 -0
  17. package/dist/es/models/IEntityStorageIdentityResolverConnectorConstructorOptions.js +4 -0
  18. package/dist/es/models/IEntityStorageIdentityResolverConnectorConstructorOptions.js.map +1 -0
  19. package/dist/es/schema.js +20 -0
  20. package/dist/es/schema.js.map +1 -0
  21. package/dist/types/entityStorageIdentityConnector.d.ts +6 -1
  22. package/dist/types/entityStorageIdentityProfileConnector.d.ts +6 -1
  23. package/dist/types/entityStorageIdentityResolverConnector.d.ts +6 -1
  24. package/dist/types/index.d.ts +9 -9
  25. package/dist/types/models/IEntityStorageIdentityConnectorConstructorOptions.d.ts +1 -1
  26. package/docs/changelog.md +57 -0
  27. package/docs/reference/classes/EntityStorageIdentityConnector.md +22 -4
  28. package/docs/reference/classes/EntityStorageIdentityProfileConnector.md +18 -0
  29. package/docs/reference/classes/EntityStorageIdentityResolverConnector.md +18 -0
  30. package/package.json +6 -8
  31. package/dist/cjs/index.cjs +0 -1326
@@ -1,7 +1,7 @@
1
1
  import { type IJsonLdContextDefinitionRoot, type IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
2
  import { type IIdentityConnector } from "@twin.org/identity-models";
3
3
  import { DidVerificationMethodType, ProofTypes, type IDidDocument, type IDidDocumentVerificationMethod, type IDidService, type IDidVerifiableCredentialV1, type IDidVerifiablePresentationV1, type IProof } from "@twin.org/standards-w3c-did";
4
- import type { IEntityStorageIdentityConnectorConstructorOptions } from "./models/IEntityStorageIdentityConnectorConstructorOptions";
4
+ import type { IEntityStorageIdentityConnectorConstructorOptions } from "./models/IEntityStorageIdentityConnectorConstructorOptions.js";
5
5
  /**
6
6
  * Class for performing identity operations using entity storage.
7
7
  */
@@ -19,6 +19,11 @@ export declare class EntityStorageIdentityConnector implements IIdentityConnecto
19
19
  * @param options The options for the identity connector.
20
20
  */
21
21
  constructor(options?: IEntityStorageIdentityConnectorConstructorOptions);
22
+ /**
23
+ * Returns the class name of the component.
24
+ * @returns The class name of the component.
25
+ */
26
+ className(): string;
22
27
  /**
23
28
  * Create a new document.
24
29
  * @param controller The controller of the identity who can make changes.
@@ -1,6 +1,6 @@
1
1
  import type { IJsonLdDocument } from "@twin.org/data-json-ld";
2
2
  import type { IIdentityProfileConnector } from "@twin.org/identity-models";
3
- import type { IEntityStorageIdentityProfileConnectorConstructorOptions } from "./models/IEntityStorageIdentityProfileConnectorConstructorOptions";
3
+ import type { IEntityStorageIdentityProfileConnectorConstructorOptions } from "./models/IEntityStorageIdentityProfileConnectorConstructorOptions.js";
4
4
  /**
5
5
  * Class which implements the identity profile connector contract.
6
6
  */
@@ -18,6 +18,11 @@ export declare class EntityStorageIdentityProfileConnector<T extends IJsonLdDocu
18
18
  * @param options The options for the identity service.
19
19
  */
20
20
  constructor(options?: IEntityStorageIdentityProfileConnectorConstructorOptions);
21
+ /**
22
+ * Returns the class name of the component.
23
+ * @returns The class name of the component.
24
+ */
25
+ className(): string;
21
26
  /**
22
27
  * Create the profile properties for an identity.
23
28
  * @param identity The identity of the profile to create.
@@ -1,6 +1,6 @@
1
1
  import type { IIdentityResolverConnector } from "@twin.org/identity-models";
2
2
  import type { IDidDocument } from "@twin.org/standards-w3c-did";
3
- import type { IEntityStorageIdentityResolverConnectorConstructorOptions } from "./models/IEntityStorageIdentityResolverConnectorConstructorOptions";
3
+ import type { IEntityStorageIdentityResolverConnectorConstructorOptions } from "./models/IEntityStorageIdentityResolverConnectorConstructorOptions.js";
4
4
  /**
5
5
  * Class for performing identity operations using entity storage.
6
6
  */
@@ -18,6 +18,11 @@ export declare class EntityStorageIdentityResolverConnector implements IIdentity
18
18
  * @param options The options for the identity connector.
19
19
  */
20
20
  constructor(options?: IEntityStorageIdentityResolverConnectorConstructorOptions);
21
+ /**
22
+ * Returns the class name of the component.
23
+ * @returns The class name of the component.
24
+ */
25
+ className(): string;
21
26
  /**
22
27
  * Resolve a document from its id.
23
28
  * @param documentId The id of the document to resolve.
@@ -1,9 +1,9 @@
1
- export * from "./entities/identityDocument";
2
- export * from "./entities/identityProfile";
3
- export * from "./entityStorageIdentityConnector";
4
- export * from "./entityStorageIdentityProfileConnector";
5
- export * from "./entityStorageIdentityResolverConnector";
6
- export * from "./models/IEntityStorageIdentityConnectorConstructorOptions";
7
- export * from "./models/IEntityStorageIdentityProfileConnectorConstructorOptions";
8
- export * from "./models/IEntityStorageIdentityResolverConnectorConstructorOptions";
9
- export * from "./schema";
1
+ export * from "./entities/identityDocument.js";
2
+ export * from "./entities/identityProfile.js";
3
+ export * from "./entityStorageIdentityConnector.js";
4
+ export * from "./entityStorageIdentityProfileConnector.js";
5
+ export * from "./entityStorageIdentityResolverConnector.js";
6
+ export * from "./models/IEntityStorageIdentityConnectorConstructorOptions.js";
7
+ export * from "./models/IEntityStorageIdentityProfileConnectorConstructorOptions.js";
8
+ export * from "./models/IEntityStorageIdentityResolverConnectorConstructorOptions.js";
9
+ export * from "./schema.js";
@@ -1,4 +1,4 @@
1
- import type { IEntityStorageIdentityResolverConnectorConstructorOptions } from "./IEntityStorageIdentityResolverConnectorConstructorOptions";
1
+ import type { IEntityStorageIdentityResolverConnectorConstructorOptions } from "./IEntityStorageIdentityResolverConnectorConstructorOptions.js";
2
2
  /**
3
3
  * Options for the entity storage identity connector constructor.
4
4
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,62 @@
1
1
  # @twin.org/identity-connector-entity-storage- Changelog
2
2
 
3
+ ## [0.0.3-next.2](https://github.com/twinfoundation/identity/compare/identity-connector-entity-storage-v0.0.3-next.1...identity-connector-entity-storage-v0.0.3-next.2) (2025-11-14)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **identity-connector-entity-storage:** 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
+
17
+ ## [0.0.3-next.1](https://github.com/twinfoundation/identity/compare/identity-connector-entity-storage-v0.0.3-next.0...identity-connector-entity-storage-v0.0.3-next.1) (2025-11-11)
18
+
19
+
20
+ ### Features
21
+
22
+ * add context id features ([#62](https://github.com/twinfoundation/identity/issues/62)) ([e02ecca](https://github.com/twinfoundation/identity/commit/e02ecca9c45a849104bfbf7bc18a1f44e6eea8a1))
23
+ * add expiration date option to vc creation ([73e05e1](https://github.com/twinfoundation/identity/commit/73e05e1ae61112c7e056889969751f4ff82d9f29))
24
+ * add identity remove ([eebc13f](https://github.com/twinfoundation/identity/commit/eebc13f4c2cd994d2d9cce4da2128fb346c80ba7))
25
+ * add validate-locales ([04d74b4](https://github.com/twinfoundation/identity/commit/04d74b4d1ebe42672e8ca75a7bdb8e3556afd0be))
26
+ * eslint migration to flat config ([fd6246d](https://github.com/twinfoundation/identity/commit/fd6246d566280b6d5d10a108eb1e92c4b510f2f2))
27
+ * identity key separator use slash ([1319d0d](https://github.com/twinfoundation/identity/commit/1319d0d07164a36b3ec279e6421b8835ffefc3d3))
28
+ * re-use vault keys if available ([5a848d7](https://github.com/twinfoundation/identity/commit/5a848d7520829d9c891ec889fd773fbc0ee77ba5))
29
+ * update framework core ([c824497](https://github.com/twinfoundation/identity/commit/c82449709af0215eb7af496cf687c93fb30b5ae0))
30
+ * use new generateKid method ([f0fe779](https://github.com/twinfoundation/identity/commit/f0fe779323b675575bb9f80aa74f1957dc57a094))
31
+ * use shared store mechanism ([#27](https://github.com/twinfoundation/identity/issues/27)) ([ce41f3f](https://github.com/twinfoundation/identity/commit/ce41f3fc3da1b206ec06da7ea5b2c968f788804d))
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * Import path and bump version ([#21](https://github.com/twinfoundation/identity/issues/21)) ([ccea845](https://github.com/twinfoundation/identity/commit/ccea845bf32562267280bc1b3dde1c9af1a00360))
37
+ * Install sdk-wasm ([#20](https://github.com/twinfoundation/identity/issues/20)) ([75ec14e](https://github.com/twinfoundation/identity/commit/75ec14e072f8c219863a1c028a3b0783802086e9))
38
+
39
+
40
+ ### Dependencies
41
+
42
+ * The following workspace dependencies were updated
43
+ * dependencies
44
+ * @twin.org/identity-models bumped from 0.0.3-next.0 to 0.0.3-next.1
45
+
46
+ ## [0.0.2-next.10](https://github.com/twinfoundation/identity/compare/identity-connector-entity-storage-v0.0.2-next.9...identity-connector-entity-storage-v0.0.2-next.10) (2025-10-27)
47
+
48
+
49
+ ### Miscellaneous Chores
50
+
51
+ * **identity-connector-entity-storage:** Synchronize repo versions
52
+
53
+
54
+ ### Dependencies
55
+
56
+ * The following workspace dependencies were updated
57
+ * dependencies
58
+ * @twin.org/identity-models bumped from 0.0.2-next.9 to 0.0.2-next.10
59
+
3
60
  ## [0.0.2-next.9](https://github.com/twinfoundation/identity/compare/identity-connector-entity-storage-v0.0.2-next.8...identity-connector-entity-storage-v0.0.2-next.9) (2025-10-09)
4
61
 
5
62
 
@@ -44,6 +44,24 @@ The namespace supported by the identity connector.
44
44
 
45
45
  ## Methods
46
46
 
47
+ ### className()
48
+
49
+ > **className**(): `string`
50
+
51
+ Returns the class name of the component.
52
+
53
+ #### Returns
54
+
55
+ `string`
56
+
57
+ The class name of the component.
58
+
59
+ #### Implementation of
60
+
61
+ `IIdentityConnector.className`
62
+
63
+ ***
64
+
47
65
  ### createDocument()
48
66
 
49
67
  > **createDocument**(`controller`): `Promise`\<`IDidDocument`\>
@@ -308,7 +326,7 @@ The verification method id to use.
308
326
 
309
327
  The id of the credential.
310
328
 
311
- `undefined` | `string`
329
+ `string` | `undefined`
312
330
 
313
331
  ##### subject
314
332
 
@@ -474,19 +492,19 @@ The method to associate with the presentation.
474
492
 
475
493
  The id of the presentation.
476
494
 
477
- `undefined` | `string`
495
+ `string` | `undefined`
478
496
 
479
497
  ##### contexts
480
498
 
481
499
  The contexts for the data stored in the verifiable credential.
482
500
 
483
- `undefined` | `IJsonLdContextDefinitionRoot`
501
+ `IJsonLdContextDefinitionRoot` | `undefined`
484
502
 
485
503
  ##### types
486
504
 
487
505
  The types for the data stored in the verifiable credential.
488
506
 
489
- `undefined` | `string` | `string`[]
507
+ `string` | `string`[] | `undefined`
490
508
 
491
509
  ##### verifiableCredentials
492
510
 
@@ -54,6 +54,24 @@ Runtime name for the class.
54
54
 
55
55
  ## Methods
56
56
 
57
+ ### className()
58
+
59
+ > **className**(): `string`
60
+
61
+ Returns the class name of the component.
62
+
63
+ #### Returns
64
+
65
+ `string`
66
+
67
+ The class name of the component.
68
+
69
+ #### Implementation of
70
+
71
+ `IIdentityProfileConnector.className`
72
+
73
+ ***
74
+
57
75
  ### create()
58
76
 
59
77
  > **create**(`identity`, `publicProfile?`, `privateProfile?`): `Promise`\<`void`\>
@@ -44,6 +44,24 @@ Runtime name for the class.
44
44
 
45
45
  ## Methods
46
46
 
47
+ ### className()
48
+
49
+ > **className**(): `string`
50
+
51
+ Returns the class name of the component.
52
+
53
+ #### Returns
54
+
55
+ `string`
56
+
57
+ The class name of the component.
58
+
59
+ #### Implementation of
60
+
61
+ `IIdentityResolverConnector.className`
62
+
63
+ ***
64
+
47
65
  ### resolveDocument()
48
66
 
49
67
  > **resolveDocument**(`documentId`): `Promise`\<`IDidDocument`\>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/identity-connector-entity-storage",
3
- "version": "0.0.2-next.9",
3
+ "version": "0.0.3-next.2",
4
4
  "description": "Identity connector implementation using entity storage",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,26 +19,24 @@
19
19
  "@twin.org/data-core": "next",
20
20
  "@twin.org/data-json-ld": "next",
21
21
  "@twin.org/entity": "next",
22
- "@twin.org/identity-models": "0.0.2-next.9",
22
+ "@twin.org/identity-models": "0.0.3-next.2",
23
23
  "@twin.org/nameof": "next",
24
24
  "@twin.org/standards-w3c-did": "next",
25
25
  "@twin.org/vault-models": "next",
26
26
  "@twin.org/web": "next"
27
27
  },
28
- "main": "./dist/cjs/index.cjs",
29
- "module": "./dist/esm/index.mjs",
28
+ "main": "./dist/es/index.js",
30
29
  "types": "./dist/types/index.d.ts",
31
30
  "exports": {
32
31
  ".": {
33
32
  "types": "./dist/types/index.d.ts",
34
- "require": "./dist/cjs/index.cjs",
35
- "import": "./dist/esm/index.mjs"
33
+ "import": "./dist/es/index.js",
34
+ "default": "./dist/es/index.js"
36
35
  },
37
36
  "./locales/*.json": "./locales/*.json"
38
37
  },
39
38
  "files": [
40
- "dist/cjs",
41
- "dist/esm",
39
+ "dist/es",
42
40
  "dist/types",
43
41
  "locales",
44
42
  "docs"