@twin.org/identity-connector-entity-storage 0.0.3-next.2 → 0.0.3-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.
- package/README.md +2 -2
- package/dist/es/entityStorageIdentityConnector.js +171 -27
- package/dist/es/entityStorageIdentityConnector.js.map +1 -1
- package/dist/es/entityStorageIdentityProfileConnector.js.map +1 -1
- package/dist/es/models/IEntityStorageIdentityConnectorConstructorOptions.js.map +1 -1
- package/dist/types/entityStorageIdentityConnector.d.ts +37 -8
- package/docs/changelog.md +380 -69
- package/docs/examples.md +221 -1
- package/docs/reference/classes/EntityStorageIdentityConnector.md +148 -40
- package/docs/reference/classes/EntityStorageIdentityProfileConnector.md +8 -8
- package/docs/reference/classes/EntityStorageIdentityResolverConnector.md +4 -4
- package/docs/reference/classes/IdentityDocument.md +4 -4
- package/docs/reference/classes/IdentityProfile.md +5 -5
- package/docs/reference/interfaces/IEntityStorageIdentityConnectorConstructorOptions.md +4 -4
- package/docs/reference/interfaces/IEntityStorageIdentityProfileConnectorConstructorOptions.md +2 -2
- package/docs/reference/interfaces/IEntityStorageIdentityResolverConnectorConstructorOptions.md +4 -4
- package/locales/en.json +21 -16
- package/package.json +5 -5
|
@@ -14,7 +14,7 @@ Class describing the identity document.
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
### id
|
|
17
|
+
### id {#id}
|
|
18
18
|
|
|
19
19
|
> **id**: `string`
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ The identity of the document.
|
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
25
|
-
### document
|
|
25
|
+
### document {#document}
|
|
26
26
|
|
|
27
27
|
> **document**: `IDidDocument`
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ The DID document.
|
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
33
|
-
### signature
|
|
33
|
+
### signature {#signature}
|
|
34
34
|
|
|
35
35
|
> **signature**: `string`
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ The signature of the document.
|
|
|
38
38
|
|
|
39
39
|
***
|
|
40
40
|
|
|
41
|
-
### controller
|
|
41
|
+
### controller {#controller}
|
|
42
42
|
|
|
43
43
|
> **controller**: `string`
|
|
44
44
|
|
|
@@ -14,7 +14,7 @@ Class representing profile details for the identity.
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
### identity
|
|
17
|
+
### identity {#identity}
|
|
18
18
|
|
|
19
19
|
> **identity**: `string`
|
|
20
20
|
|
|
@@ -22,16 +22,16 @@ The id for the identity.
|
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
25
|
-
### publicProfile?
|
|
25
|
+
### publicProfile? {#publicprofile}
|
|
26
26
|
|
|
27
|
-
> `optional` **publicProfile
|
|
27
|
+
> `optional` **publicProfile?**: `unknown`
|
|
28
28
|
|
|
29
29
|
The public profile data.
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
33
|
-
### privateProfile?
|
|
33
|
+
### privateProfile? {#privateprofile}
|
|
34
34
|
|
|
35
|
-
> `optional` **privateProfile
|
|
35
|
+
> `optional` **privateProfile?**: `unknown`
|
|
36
36
|
|
|
37
37
|
The private profile data.
|
|
@@ -8,9 +8,9 @@ Options for the entity storage identity connector constructor.
|
|
|
8
8
|
|
|
9
9
|
## Properties
|
|
10
10
|
|
|
11
|
-
### didDocumentEntityStorageType?
|
|
11
|
+
### didDocumentEntityStorageType? {#diddocumententitystoragetype}
|
|
12
12
|
|
|
13
|
-
> `optional` **didDocumentEntityStorageType
|
|
13
|
+
> `optional` **didDocumentEntityStorageType?**: `string`
|
|
14
14
|
|
|
15
15
|
The entity storage for the did documents.
|
|
16
16
|
|
|
@@ -26,9 +26,9 @@ identity-document
|
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
29
|
-
### vaultConnectorType?
|
|
29
|
+
### vaultConnectorType? {#vaultconnectortype}
|
|
30
30
|
|
|
31
|
-
> `optional` **vaultConnectorType
|
|
31
|
+
> `optional` **vaultConnectorType?**: `string`
|
|
32
32
|
|
|
33
33
|
The vault for the private keys.
|
|
34
34
|
|
package/docs/reference/interfaces/IEntityStorageIdentityProfileConnectorConstructorOptions.md
CHANGED
|
@@ -4,9 +4,9 @@ Options for the entity storage identity profile connector constructor.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### profileEntityStorageType?
|
|
7
|
+
### profileEntityStorageType? {#profileentitystoragetype}
|
|
8
8
|
|
|
9
|
-
> `optional` **profileEntityStorageType
|
|
9
|
+
> `optional` **profileEntityStorageType?**: `string`
|
|
10
10
|
|
|
11
11
|
The storage connector for the profiles.
|
|
12
12
|
|
package/docs/reference/interfaces/IEntityStorageIdentityResolverConnectorConstructorOptions.md
CHANGED
|
@@ -8,9 +8,9 @@ Options for the entity storage identity connector constructor.
|
|
|
8
8
|
|
|
9
9
|
## Properties
|
|
10
10
|
|
|
11
|
-
### didDocumentEntityStorageType?
|
|
11
|
+
### didDocumentEntityStorageType? {#diddocumententitystoragetype}
|
|
12
12
|
|
|
13
|
-
> `optional` **didDocumentEntityStorageType
|
|
13
|
+
> `optional` **didDocumentEntityStorageType?**: `string`
|
|
14
14
|
|
|
15
15
|
The entity storage for the did documents.
|
|
16
16
|
|
|
@@ -22,9 +22,9 @@ identity-document
|
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
25
|
-
### vaultConnectorType?
|
|
25
|
+
### vaultConnectorType? {#vaultconnectortype}
|
|
26
26
|
|
|
27
|
-
> `optional` **vaultConnectorType
|
|
27
|
+
> `optional` **vaultConnectorType?**: `string`
|
|
28
28
|
|
|
29
29
|
The vault for the private keys.
|
|
30
30
|
|
package/locales/en.json
CHANGED
|
@@ -5,28 +5,33 @@
|
|
|
5
5
|
"resolveDocumentFailed": "Resolving the document failed"
|
|
6
6
|
},
|
|
7
7
|
"entityStorageIdentityConnector": {
|
|
8
|
-
"
|
|
9
|
-
"removeDocumentFailed": "Removing the document failed",
|
|
10
|
-
"signatureVerificationFailed": "The document integrity check failed",
|
|
11
|
-
"missingDid": "The full id including DID is required",
|
|
12
|
-
"addVerificationMethodFailed": "Adding the verification method failed",
|
|
13
|
-
"removeVerificationMethodFailed": "Removing the verification method failed",
|
|
8
|
+
"addAlsoKnownAsFailed": "Adding to the alsoKnownAs property failed",
|
|
14
9
|
"addServiceFailed": "Adding the service failed",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"verificationMethodNotFound": "The verification method could not be found",
|
|
18
|
-
"serviceNotFound": "The service could not be found",
|
|
19
|
-
"publicKeyJwkMissing": "The verification method contains no publicKeyJwk in method \"{method}\"",
|
|
20
|
-
"jwkSignatureFailed": "The signature on the JWK failed verification",
|
|
21
|
-
"createVerifiableCredentialFailed": "Creating the verifiable credential failed",
|
|
10
|
+
"addVerificationMethodFailed": "Adding the verification method failed",
|
|
11
|
+
"algorithmKeyTypeMismatch": "Algorithm \"{algorithm}\" requires key type \"{expectedKeyType}\", but key \"{keyId}\" has type \"{actualKeyType}\"",
|
|
22
12
|
"checkingVerifiableCredentialFailed": "Checking the verifiable credential failed",
|
|
23
|
-
"createVerifiablePresentationFailed": "Creating the verifiable presentation failed",
|
|
24
13
|
"checkingVerifiablePresentationFailed": "Checking the verifiable presentation failed",
|
|
14
|
+
"createDocumentFailed": "Creating the document failed",
|
|
25
15
|
"createProofFailed": "Creating the signature for the data failed",
|
|
16
|
+
"createVerifiableCredentialFailed": "Creating the verifiable credential failed",
|
|
17
|
+
"createVerifiablePresentationFailed": "Creating the verifiable presentation failed",
|
|
18
|
+
"documentNotFound": "The document could not be found \"{notFoundId}\"",
|
|
19
|
+
"invalidAlias": "The alias is invalid it must be a Url or Urn, it is \"{alias}\"",
|
|
20
|
+
"jwkSignatureFailed": "The signature on the JWK failed verification",
|
|
26
21
|
"methodMissing": "The verification method specified does not exist \"{method}\"",
|
|
27
|
-
"
|
|
22
|
+
"missingDid": "The full id including DID is required",
|
|
23
|
+
"privateKeyMissing": "The private key could not be found for key \"{keyId}\"",
|
|
24
|
+
"publicKeyJwkMissing": "The verification method contains no publicKeyJwk in method \"{method}\"",
|
|
25
|
+
"removeAlsoKnownAsFailed": "Removing from the alsoKnownAs property failed",
|
|
26
|
+
"removeDocumentFailed": "Removing the document failed",
|
|
27
|
+
"removeServiceFailed": "Removing the service failed",
|
|
28
|
+
"removeVerificationMethodFailed": "Removing the verification method failed",
|
|
28
29
|
"revokeVerifiableCredentialsFailed": "Revoking verifiable credentials failed",
|
|
29
|
-
"
|
|
30
|
+
"serviceNotFound": "The service could not be found",
|
|
31
|
+
"signatureVerificationFailed": "The document integrity check failed",
|
|
32
|
+
"unrevokeVerifiableCredentialsFailed": "Unrevoking verifiable credentials failed",
|
|
33
|
+
"verificationMethodNotFound": "The verification method could not be found",
|
|
34
|
+
"verifyProofFailed": "Verifying the signature for the data failed"
|
|
30
35
|
},
|
|
31
36
|
"entityStorageIdentityProfileConnector": {
|
|
32
37
|
"alreadyExists": "The identity profile already exists for the identity \"{existingId}\"",
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/identity-connector-entity-storage",
|
|
3
|
-
"version": "0.0.3-next.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.3-next.21",
|
|
4
|
+
"description": "Entity storage connector for persisting and retrieving identity records through a consistent data layer.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/
|
|
7
|
+
"url": "git+https://github.com/iotaledger/identity.git",
|
|
8
8
|
"directory": "packages/identity-connector-entity-storage"
|
|
9
9
|
},
|
|
10
10
|
"author": "martyn.janes@iota.org",
|
|
@@ -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.3-next.
|
|
22
|
+
"@twin.org/identity-models": "0.0.3-next.21",
|
|
23
23
|
"@twin.org/nameof": "next",
|
|
24
24
|
"@twin.org/standards-w3c-did": "next",
|
|
25
25
|
"@twin.org/vault-models": "next",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"integration"
|
|
61
61
|
],
|
|
62
62
|
"bugs": {
|
|
63
|
-
"url": "git+https://github.com/
|
|
63
|
+
"url": "git+https://github.com/iotaledger/identity/issues"
|
|
64
64
|
},
|
|
65
65
|
"homepage": "https://twindev.org"
|
|
66
66
|
}
|