@twin.org/identity-connector-entity-storage 0.0.1-next.19 → 0.0.1-next.21

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.
@@ -0,0 +1,77 @@
1
+ # Class: EntityStorageIdentityResolverConnector
2
+
3
+ Class for performing identity operations using entity storage.
4
+
5
+ ## Implements
6
+
7
+ - `IIdentityResolverConnector`
8
+
9
+ ## Constructors
10
+
11
+ ### new EntityStorageIdentityResolverConnector()
12
+
13
+ > **new EntityStorageIdentityResolverConnector**(`options`?): [`EntityStorageIdentityResolverConnector`](EntityStorageIdentityResolverConnector.md)
14
+
15
+ Create a new instance of EntityStorageIdentityResolverConnector.
16
+
17
+ #### Parameters
18
+
19
+ ##### options?
20
+
21
+ [`IEntityStorageIdentityResolverConnectorConstructorOptions`](../interfaces/IEntityStorageIdentityResolverConnectorConstructorOptions.md)
22
+
23
+ The options for the identity connector.
24
+
25
+ #### Returns
26
+
27
+ [`EntityStorageIdentityResolverConnector`](EntityStorageIdentityResolverConnector.md)
28
+
29
+ ## Properties
30
+
31
+ ### NAMESPACE
32
+
33
+ > `readonly` `static` **NAMESPACE**: `string` = `"entity-storage"`
34
+
35
+ The namespace supported by the identity connector.
36
+
37
+ ***
38
+
39
+ ### CLASS\_NAME
40
+
41
+ > `readonly` **CLASS\_NAME**: `string`
42
+
43
+ Runtime name for the class.
44
+
45
+ #### Implementation of
46
+
47
+ `IIdentityResolverConnector.CLASS_NAME`
48
+
49
+ ## Methods
50
+
51
+ ### resolveDocument()
52
+
53
+ > **resolveDocument**(`documentId`): `Promise`\<`IDidDocument`\>
54
+
55
+ Resolve a document from its id.
56
+
57
+ #### Parameters
58
+
59
+ ##### documentId
60
+
61
+ `string`
62
+
63
+ The id of the document to resolve.
64
+
65
+ #### Returns
66
+
67
+ `Promise`\<`IDidDocument`\>
68
+
69
+ The resolved document.
70
+
71
+ #### Throws
72
+
73
+ NotFoundError if the id can not be resolved.
74
+
75
+ #### Implementation of
76
+
77
+ `IIdentityResolverConnector.resolveDocument`
@@ -6,15 +6,19 @@ Initialize the schema for the identity entity storage connector.
6
6
 
7
7
  ## Parameters
8
8
 
9
- **options?**
9
+ ### options?
10
10
 
11
11
  Options for which entities to register.
12
12
 
13
- **options.includeDocument?**: `boolean`
13
+ #### includeDocument
14
+
15
+ `boolean`
14
16
 
15
17
  Whether to include the document entity, defaults to true.
16
18
 
17
- **options.includeProfile?**: `boolean`
19
+ #### includeProfile
20
+
21
+ `boolean`
18
22
 
19
23
  Whether to include the profile entity, defaults to true.
20
24
 
@@ -6,6 +6,13 @@
6
6
  - [IdentityProfile](classes/IdentityProfile.md)
7
7
  - [EntityStorageIdentityConnector](classes/EntityStorageIdentityConnector.md)
8
8
  - [EntityStorageIdentityProfileConnector](classes/EntityStorageIdentityProfileConnector.md)
9
+ - [EntityStorageIdentityResolverConnector](classes/EntityStorageIdentityResolverConnector.md)
10
+
11
+ ## Interfaces
12
+
13
+ - [IEntityStorageIdentityConnectorConstructorOptions](interfaces/IEntityStorageIdentityConnectorConstructorOptions.md)
14
+ - [IEntityStorageIdentityProfileConnectorConstructorOptions](interfaces/IEntityStorageIdentityProfileConnectorConstructorOptions.md)
15
+ - [IEntityStorageIdentityResolverConnectorConstructorOptions](interfaces/IEntityStorageIdentityResolverConnectorConstructorOptions.md)
9
16
 
10
17
  ## Functions
11
18
 
@@ -0,0 +1,43 @@
1
+ # Interface: IEntityStorageIdentityConnectorConstructorOptions
2
+
3
+ Options for the entity storage identity connector constructor.
4
+
5
+ ## Extends
6
+
7
+ - [`IEntityStorageIdentityResolverConnectorConstructorOptions`](IEntityStorageIdentityResolverConnectorConstructorOptions.md)
8
+
9
+ ## Properties
10
+
11
+ ### didDocumentEntityStorageType?
12
+
13
+ > `optional` **didDocumentEntityStorageType**: `string`
14
+
15
+ The entity storage for the did documents.
16
+
17
+ #### Default
18
+
19
+ ```ts
20
+ identity-document
21
+ ```
22
+
23
+ #### Inherited from
24
+
25
+ [`IEntityStorageIdentityResolverConnectorConstructorOptions`](IEntityStorageIdentityResolverConnectorConstructorOptions.md).[`didDocumentEntityStorageType`](IEntityStorageIdentityResolverConnectorConstructorOptions.md#diddocumententitystoragetype)
26
+
27
+ ***
28
+
29
+ ### vaultConnectorType?
30
+
31
+ > `optional` **vaultConnectorType**: `string`
32
+
33
+ The vault for the private keys.
34
+
35
+ #### Default
36
+
37
+ ```ts
38
+ vault
39
+ ```
40
+
41
+ #### Inherited from
42
+
43
+ [`IEntityStorageIdentityResolverConnectorConstructorOptions`](IEntityStorageIdentityResolverConnectorConstructorOptions.md).[`vaultConnectorType`](IEntityStorageIdentityResolverConnectorConstructorOptions.md#vaultconnectortype)
@@ -0,0 +1,17 @@
1
+ # Interface: IEntityStorageIdentityProfileConnectorConstructorOptions
2
+
3
+ Options for the entity storage identity profile connector constructor.
4
+
5
+ ## Properties
6
+
7
+ ### profileEntityStorageType?
8
+
9
+ > `optional` **profileEntityStorageType**: `string`
10
+
11
+ The storage connector for the profiles.
12
+
13
+ #### Default
14
+
15
+ ```ts
16
+ identity-profile
17
+ ```
@@ -0,0 +1,35 @@
1
+ # Interface: IEntityStorageIdentityResolverConnectorConstructorOptions
2
+
3
+ Options for the entity storage identity connector constructor.
4
+
5
+ ## Extended by
6
+
7
+ - [`IEntityStorageIdentityConnectorConstructorOptions`](IEntityStorageIdentityConnectorConstructorOptions.md)
8
+
9
+ ## Properties
10
+
11
+ ### didDocumentEntityStorageType?
12
+
13
+ > `optional` **didDocumentEntityStorageType**: `string`
14
+
15
+ The entity storage for the did documents.
16
+
17
+ #### Default
18
+
19
+ ```ts
20
+ identity-document
21
+ ```
22
+
23
+ ***
24
+
25
+ ### vaultConnectorType?
26
+
27
+ > `optional` **vaultConnectorType**: `string`
28
+
29
+ The vault for the private keys.
30
+
31
+ #### Default
32
+
33
+ ```ts
34
+ vault
35
+ ```
package/locales/en.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "error": {
3
+ "entityStorageIdentityResolverConnector": {
4
+ "documentNotFound": "The document could not be found",
5
+ "resolveDocumentFailed": "Resolving the document failed"
6
+ },
3
7
  "entityStorageIdentityConnector": {
4
8
  "createDocumentFailed": "Creating the document failed",
5
9
  "signatureVerificationFailed": "The document integrity check failed",
6
- "resolveDocumentFailed": "Resolving the document failed",
7
10
  "missingDid": "The full id including DID is required",
8
11
  "addVerificationMethodFailed": "Adding the verification method failed",
9
12
  "removeVerificationMethodFailed": "Removing the verification method failed",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/identity-connector-entity-storage",
3
- "version": "0.0.1-next.19",
3
+ "version": "0.0.1-next.21",
4
4
  "description": "Identity connector implementation using entity storage",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,7 +19,7 @@
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.1-next.19",
22
+ "@twin.org/identity-models": "0.0.1-next.21",
23
23
  "@twin.org/nameof": "next",
24
24
  "@twin.org/standards-w3c-did": "next",
25
25
  "@twin.org/vault-models": "next",
@@ -30,9 +30,9 @@
30
30
  "types": "./dist/types/index.d.ts",
31
31
  "exports": {
32
32
  ".": {
33
+ "types": "./dist/types/index.d.ts",
33
34
  "require": "./dist/cjs/index.cjs",
34
- "import": "./dist/esm/index.mjs",
35
- "types": "./dist/types/index.d.ts"
35
+ "import": "./dist/esm/index.mjs"
36
36
  },
37
37
  "./locales/*.json": "./locales/*.json"
38
38
  },