@twin.org/identity-service 0.0.1-next.8 → 0.0.1
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/dist/cjs/index.cjs +1417 -48
- package/dist/esm/index.mjs +1403 -51
- package/dist/types/identityProfileRoutes.d.ts +1 -1
- package/dist/types/identityProfileService.d.ts +6 -4
- package/dist/types/identityResolverRoutes.d.ts +21 -0
- package/dist/types/identityResolverService.d.ts +27 -0
- package/dist/types/identityRoutes.d.ts +108 -4
- package/dist/types/identityService.d.ts +136 -10
- package/dist/types/index.d.ts +6 -0
- package/dist/types/models/IIdentityProfileServiceConstructorOptions.d.ts +10 -0
- package/dist/types/models/IIdentityResolverServiceConfig.d.ts +9 -0
- package/dist/types/models/IIdentityResolverServiceConstructorOptions.d.ts +15 -0
- package/dist/types/models/IIdentityServiceConstructorOptions.d.ts +10 -0
- package/docs/changelog.md +302 -1
- package/docs/open-api/spec.json +2948 -1360
- package/docs/reference/classes/IdentityProfileService.md +76 -58
- package/docs/reference/classes/IdentityResolverService.md +73 -0
- package/docs/reference/classes/IdentityService.md +560 -16
- package/docs/reference/functions/generateRestRoutesIdentity.md +8 -4
- package/docs/reference/functions/generateRestRoutesIdentityProfile.md +8 -4
- package/docs/reference/functions/generateRestRoutesIdentityResolver.md +25 -0
- package/docs/reference/functions/identitiesList.md +9 -3
- package/docs/reference/functions/identityCreate.md +31 -0
- package/docs/reference/functions/identityGet.md +9 -3
- package/docs/reference/functions/identityGetPublic.md +9 -3
- package/docs/reference/functions/identityProfileCreate.md +9 -3
- package/docs/reference/functions/identityProfileRemove.md +9 -3
- package/docs/reference/functions/identityProfileUpdate.md +9 -3
- package/docs/reference/functions/identityProofCreate.md +31 -0
- package/docs/reference/functions/identityProofVerify.md +31 -0
- package/docs/reference/functions/identityRemove.md +31 -0
- package/docs/reference/functions/identityResolve.md +9 -3
- package/docs/reference/functions/identityServiceCreate.md +31 -0
- package/docs/reference/functions/identityServiceRemove.md +31 -0
- package/docs/reference/functions/identityVerifiableCredentialCreate.md +31 -0
- package/docs/reference/functions/identityVerifiableCredentialRevoke.md +31 -0
- package/docs/reference/functions/identityVerifiableCredentialUnrevoke.md +31 -0
- package/docs/reference/functions/identityVerifiableCredentialVerify.md +31 -0
- package/docs/reference/functions/identityVerifiablePresentationCreate.md +31 -0
- package/docs/reference/functions/identityVerifiablePresentationVerify.md +31 -0
- package/docs/reference/functions/identityVerificationMethodCreate.md +31 -0
- package/docs/reference/functions/identityVerificationMethodRemove.md +31 -0
- package/docs/reference/index.md +22 -1
- package/docs/reference/interfaces/IIdentityProfileServiceConstructorOptions.md +17 -0
- package/docs/reference/interfaces/IIdentityResolverServiceConfig.md +11 -0
- package/docs/reference/interfaces/IIdentityResolverServiceConstructorOptions.md +25 -0
- package/docs/reference/interfaces/IIdentityServiceConstructorOptions.md +11 -0
- package/docs/reference/variables/tagsIdentityResolver.md +5 -0
- package/locales/en.json +23 -4
- package/package.json +18 -18
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Interface: IIdentityResolverServiceConstructorOptions
|
|
2
|
+
|
|
3
|
+
Options for the identity resolver service constructor.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### fallbackResolverConnectorType?
|
|
8
|
+
|
|
9
|
+
> `optional` **fallbackResolverConnectorType**: `string`
|
|
10
|
+
|
|
11
|
+
Fallback connector type to use if the namespace connector is not available.
|
|
12
|
+
|
|
13
|
+
#### Default
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
universal
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### config?
|
|
22
|
+
|
|
23
|
+
> `optional` **config**: [`IIdentityResolverServiceConfig`](IIdentityResolverServiceConfig.md)
|
|
24
|
+
|
|
25
|
+
The configuration for the identity service.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Interface: IIdentityServiceConstructorOptions
|
|
2
|
+
|
|
3
|
+
Options for the identity service constructor.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### config?
|
|
8
|
+
|
|
9
|
+
> `optional` **config**: [`IIdentityServiceConfig`](IIdentityServiceConfig.md)
|
|
10
|
+
|
|
11
|
+
The configuration for the identity service.
|
package/locales/en.json
CHANGED
|
@@ -2,13 +2,32 @@
|
|
|
2
2
|
"error": {
|
|
3
3
|
"identityService": {
|
|
4
4
|
"noConnectors": "There are no connectors registered with the identity factory",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"namespaceMismatch": "The namespace in the urn \"{id}\" does not match the namespace of the identity service \"{namespace}\"",
|
|
6
|
+
"connectorNotFound": "There is no connector with the namespace \"{namespace}\" registered with the identity factory",
|
|
7
|
+
"jwtDecodeFailed": "Decoding the JWT failed",
|
|
8
|
+
"identityCreateFailed": "Creating the identity failed",
|
|
9
|
+
"identityRemoveFailed": "Removing the identity failed \"{identity}\"",
|
|
10
|
+
"verificationMethodCreateFailed": "Creating the verification method failed for identity \"{identity}\"",
|
|
11
|
+
"verificationMethodRemoveFailed": "Removing the verification method failed \"{verificationMethodId}\"",
|
|
12
|
+
"serviceCreateFailed": "Creating the service failed for identity \"{identity}\", service \"{serviceId}\"",
|
|
13
|
+
"serviceRemoveFailed": "Removing the service failed \"{serviceId}\"",
|
|
14
|
+
"verifiableCredentialCreateFailed": "Creating the verifiable credential failed for method \"{verificationMethodId}\"",
|
|
15
|
+
"verifiableCredentialVerifyFailed": "Verifying the verifiable credential failed",
|
|
16
|
+
"verifiableCredentialRevokeFailed": "Revoking the verifiable credential failed for document \"{issuerIdentity}\" with index \"{credentialIndex}\"",
|
|
17
|
+
"verifiableCredentialUnrevokeFailed": "Unrevoking the verifiable credential failed for document \"{issuerIdentity}\" with index \"{credentialIndex}\"",
|
|
18
|
+
"verifiablePresentationCreateFailed": "Creating the verifiable presentation failed for method \"{verificationMethodId}\"",
|
|
19
|
+
"verifiablePresentationVerifyFailed": "Verifying the verifiable presentation failed",
|
|
20
|
+
"proofCreateFailed": "Creating the proof failed for method \"{verificationMethodId}\"",
|
|
21
|
+
"proofVerifyFailed": "Verifying the proof failed"
|
|
7
22
|
},
|
|
8
|
-
"
|
|
9
|
-
"noConnectors": "There are no connectors registered with the identity
|
|
23
|
+
"identityResolverService": {
|
|
24
|
+
"noConnectors": "There are no connectors registered with the identity resolver factory",
|
|
25
|
+
"namespaceMismatch": "The namespace in the urn \"{id}\" does not match the namespace of the identity service \"{namespace}\"",
|
|
26
|
+
"connectorNotFound": "There is no connector with the namespace \"{namespace}\" registered with the identity factory",
|
|
27
|
+
"identityResolveFailed": "Resolving the identity failed \"{identity}\""
|
|
10
28
|
},
|
|
11
29
|
"identityProfileService": {
|
|
30
|
+
"noConnectors": "There are no connectors registered with the identity profile factory",
|
|
12
31
|
"alreadyExists": "The identity profile already exists for the identity \"{existingId}\"",
|
|
13
32
|
"createFailed": "Creating the identity profile failed \"{identity}\"",
|
|
14
33
|
"getFailed": "Getting the identity profile failed",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/identity-service",
|
|
3
|
-
"version": "0.0.1
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"description": "Identity contract implementation and REST endpoint definitions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,31 +14,31 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/api-models": "next",
|
|
18
|
-
"@twin.org/core": "
|
|
19
|
-
"@twin.org/crypto": "
|
|
20
|
-
"@twin.org/data-core": "
|
|
21
|
-
"@twin.org/data-json-ld": "
|
|
22
|
-
"@twin.org/entity": "
|
|
23
|
-
"@twin.org/entity-storage-connector-memory": "
|
|
24
|
-
"@twin.org/entity-storage-models": "
|
|
25
|
-
"@twin.org/identity-connector-entity-storage": "0.0.1
|
|
26
|
-
"@twin.org/identity-models": "0.0.1
|
|
27
|
-
"@twin.org/standards-w3c-did": "
|
|
28
|
-
"@twin.org/vault-connector-entity-storage": "
|
|
29
|
-
"@twin.org/vault-models": "
|
|
30
|
-
"@twin.org/web": "
|
|
17
|
+
"@twin.org/api-models": "^0.0.2-next.1",
|
|
18
|
+
"@twin.org/core": "^0.0.1",
|
|
19
|
+
"@twin.org/crypto": "^0.0.1",
|
|
20
|
+
"@twin.org/data-core": "^0.0.1",
|
|
21
|
+
"@twin.org/data-json-ld": "^0.0.1",
|
|
22
|
+
"@twin.org/entity": "^0.0.1",
|
|
23
|
+
"@twin.org/entity-storage-connector-memory": "^0.0.1",
|
|
24
|
+
"@twin.org/entity-storage-models": "^0.0.1",
|
|
25
|
+
"@twin.org/identity-connector-entity-storage": "^0.0.1",
|
|
26
|
+
"@twin.org/identity-models": "^0.0.1",
|
|
27
|
+
"@twin.org/standards-w3c-did": "^0.0.1",
|
|
28
|
+
"@twin.org/vault-connector-entity-storage": "^0.0.1",
|
|
29
|
+
"@twin.org/vault-models": "^0.0.1",
|
|
30
|
+
"@twin.org/web": "^0.0.1"
|
|
31
31
|
},
|
|
32
32
|
"main": "./dist/cjs/index.cjs",
|
|
33
33
|
"module": "./dist/esm/index.mjs",
|
|
34
34
|
"types": "./dist/types/index.d.ts",
|
|
35
35
|
"exports": {
|
|
36
36
|
".": {
|
|
37
|
+
"types": "./dist/types/index.d.ts",
|
|
37
38
|
"require": "./dist/cjs/index.cjs",
|
|
38
|
-
"import": "./dist/esm/index.mjs"
|
|
39
|
-
"types": "./dist/types/index.d.ts"
|
|
39
|
+
"import": "./dist/esm/index.mjs"
|
|
40
40
|
},
|
|
41
|
-
"./locales": "./locales"
|
|
41
|
+
"./locales/*.json": "./locales/*.json"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"dist/cjs",
|