@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.
Files changed (50) hide show
  1. package/dist/cjs/index.cjs +1417 -48
  2. package/dist/esm/index.mjs +1403 -51
  3. package/dist/types/identityProfileRoutes.d.ts +1 -1
  4. package/dist/types/identityProfileService.d.ts +6 -4
  5. package/dist/types/identityResolverRoutes.d.ts +21 -0
  6. package/dist/types/identityResolverService.d.ts +27 -0
  7. package/dist/types/identityRoutes.d.ts +108 -4
  8. package/dist/types/identityService.d.ts +136 -10
  9. package/dist/types/index.d.ts +6 -0
  10. package/dist/types/models/IIdentityProfileServiceConstructorOptions.d.ts +10 -0
  11. package/dist/types/models/IIdentityResolverServiceConfig.d.ts +9 -0
  12. package/dist/types/models/IIdentityResolverServiceConstructorOptions.d.ts +15 -0
  13. package/dist/types/models/IIdentityServiceConstructorOptions.d.ts +10 -0
  14. package/docs/changelog.md +302 -1
  15. package/docs/open-api/spec.json +2948 -1360
  16. package/docs/reference/classes/IdentityProfileService.md +76 -58
  17. package/docs/reference/classes/IdentityResolverService.md +73 -0
  18. package/docs/reference/classes/IdentityService.md +560 -16
  19. package/docs/reference/functions/generateRestRoutesIdentity.md +8 -4
  20. package/docs/reference/functions/generateRestRoutesIdentityProfile.md +8 -4
  21. package/docs/reference/functions/generateRestRoutesIdentityResolver.md +25 -0
  22. package/docs/reference/functions/identitiesList.md +9 -3
  23. package/docs/reference/functions/identityCreate.md +31 -0
  24. package/docs/reference/functions/identityGet.md +9 -3
  25. package/docs/reference/functions/identityGetPublic.md +9 -3
  26. package/docs/reference/functions/identityProfileCreate.md +9 -3
  27. package/docs/reference/functions/identityProfileRemove.md +9 -3
  28. package/docs/reference/functions/identityProfileUpdate.md +9 -3
  29. package/docs/reference/functions/identityProofCreate.md +31 -0
  30. package/docs/reference/functions/identityProofVerify.md +31 -0
  31. package/docs/reference/functions/identityRemove.md +31 -0
  32. package/docs/reference/functions/identityResolve.md +9 -3
  33. package/docs/reference/functions/identityServiceCreate.md +31 -0
  34. package/docs/reference/functions/identityServiceRemove.md +31 -0
  35. package/docs/reference/functions/identityVerifiableCredentialCreate.md +31 -0
  36. package/docs/reference/functions/identityVerifiableCredentialRevoke.md +31 -0
  37. package/docs/reference/functions/identityVerifiableCredentialUnrevoke.md +31 -0
  38. package/docs/reference/functions/identityVerifiableCredentialVerify.md +31 -0
  39. package/docs/reference/functions/identityVerifiablePresentationCreate.md +31 -0
  40. package/docs/reference/functions/identityVerifiablePresentationVerify.md +31 -0
  41. package/docs/reference/functions/identityVerificationMethodCreate.md +31 -0
  42. package/docs/reference/functions/identityVerificationMethodRemove.md +31 -0
  43. package/docs/reference/index.md +22 -1
  44. package/docs/reference/interfaces/IIdentityProfileServiceConstructorOptions.md +17 -0
  45. package/docs/reference/interfaces/IIdentityResolverServiceConfig.md +11 -0
  46. package/docs/reference/interfaces/IIdentityResolverServiceConstructorOptions.md +25 -0
  47. package/docs/reference/interfaces/IIdentityServiceConstructorOptions.md +11 -0
  48. package/docs/reference/variables/tagsIdentityResolver.md +5 -0
  49. package/locales/en.json +23 -4
  50. package/package.json +18 -18
@@ -0,0 +1,31 @@
1
+ # Function: identityCreate()
2
+
3
+ > **identityCreate**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IIdentityCreateResponse`\>
4
+
5
+ Create an identity.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes stored in the ComponentFactory.
20
+
21
+ ### request
22
+
23
+ `IIdentityCreateRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`IIdentityCreateResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -6,15 +6,21 @@ Get the identity profile.
6
6
 
7
7
  ## Parameters
8
8
 
9
- **httpRequestContext**: `IHttpRequestContext`
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
10
12
 
11
13
  The request context for the API.
12
14
 
13
- **componentName**: `string`
15
+ ### componentName
16
+
17
+ `string`
14
18
 
15
19
  The name of the component to use in the routes stored in the ComponentFactory.
16
20
 
17
- **request**: `IIdentityProfileGetRequest`
21
+ ### request
22
+
23
+ `IIdentityProfileGetRequest`
18
24
 
19
25
  The request.
20
26
 
@@ -6,15 +6,21 @@ Get the identity public profile.
6
6
 
7
7
  ## Parameters
8
8
 
9
- **httpRequestContext**: `IHttpRequestContext`
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
10
12
 
11
13
  The request context for the API.
12
14
 
13
- **componentName**: `string`
15
+ ### componentName
16
+
17
+ `string`
14
18
 
15
19
  The name of the component to use in the routes stored in the ComponentFactory.
16
20
 
17
- **request**: `IIdentityProfileGetPublicRequest`
21
+ ### request
22
+
23
+ `IIdentityProfileGetPublicRequest`
18
24
 
19
25
  The request.
20
26
 
@@ -6,15 +6,21 @@ Create an identity profile.
6
6
 
7
7
  ## Parameters
8
8
 
9
- **httpRequestContext**: `IHttpRequestContext`
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
10
12
 
11
13
  The request context for the API.
12
14
 
13
- **componentName**: `string`
15
+ ### componentName
16
+
17
+ `string`
14
18
 
15
19
  The name of the component to use in the routes stored in the ComponentFactory.
16
20
 
17
- **request**: `IIdentityProfileCreateRequest`
21
+ ### request
22
+
23
+ `IIdentityProfileCreateRequest`
18
24
 
19
25
  The request.
20
26
 
@@ -6,15 +6,21 @@ Remove an identity profile.
6
6
 
7
7
  ## Parameters
8
8
 
9
- **httpRequestContext**: `IHttpRequestContext`
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
10
12
 
11
13
  The request context for the API.
12
14
 
13
- **componentName**: `string`
15
+ ### componentName
16
+
17
+ `string`
14
18
 
15
19
  The name of the component to use in the routes stored in the ComponentFactory.
16
20
 
17
- **request**: `INoContentRequest`
21
+ ### request
22
+
23
+ `INoContentRequest`
18
24
 
19
25
  The request.
20
26
 
@@ -6,15 +6,21 @@ Update an identity profile.
6
6
 
7
7
  ## Parameters
8
8
 
9
- **httpRequestContext**: `IHttpRequestContext`
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
10
12
 
11
13
  The request context for the API.
12
14
 
13
- **componentName**: `string`
15
+ ### componentName
16
+
17
+ `string`
14
18
 
15
19
  The name of the component to use in the routes stored in the ComponentFactory.
16
20
 
17
- **request**: `IIdentityProfileUpdateRequest`
21
+ ### request
22
+
23
+ `IIdentityProfileUpdateRequest`
18
24
 
19
25
  The request.
20
26
 
@@ -0,0 +1,31 @@
1
+ # Function: identityProofCreate()
2
+
3
+ > **identityProofCreate**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IIdentityProofCreateResponse`\>
4
+
5
+ Create an identity proof.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes stored in the ComponentFactory.
20
+
21
+ ### request
22
+
23
+ `IIdentityProofCreateRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`IIdentityProofCreateResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: identityProofVerify()
2
+
3
+ > **identityProofVerify**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IIdentityProofVerifyResponse`\>
4
+
5
+ Verify an identity proof.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes stored in the ComponentFactory.
20
+
21
+ ### request
22
+
23
+ `IIdentityProofVerifyRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`IIdentityProofVerifyResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: identityRemove()
2
+
3
+ > **identityRemove**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`INoContentResponse`\>
4
+
5
+ Remove an identity.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes stored in the ComponentFactory.
20
+
21
+ ### request
22
+
23
+ `IIdentityRemoveRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`INoContentResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -6,15 +6,21 @@ Resolve an identity.
6
6
 
7
7
  ## Parameters
8
8
 
9
- **httpRequestContext**: `IHttpRequestContext`
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
10
12
 
11
13
  The request context for the API.
12
14
 
13
- **componentName**: `string`
15
+ ### componentName
16
+
17
+ `string`
14
18
 
15
19
  The name of the component to use in the routes stored in the ComponentFactory.
16
20
 
17
- **request**: `IIdentityResolveRequest`
21
+ ### request
22
+
23
+ `IIdentityResolveRequest`
18
24
 
19
25
  The request.
20
26
 
@@ -0,0 +1,31 @@
1
+ # Function: identityServiceCreate()
2
+
3
+ > **identityServiceCreate**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IIdentityServiceCreateResponse`\>
4
+
5
+ Create an identity service.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes stored in the ComponentFactory.
20
+
21
+ ### request
22
+
23
+ `IIdentityServiceCreateRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`IIdentityServiceCreateResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: identityServiceRemove()
2
+
3
+ > **identityServiceRemove**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`INoContentResponse`\>
4
+
5
+ Remove an identity service.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes stored in the ComponentFactory.
20
+
21
+ ### request
22
+
23
+ `IIdentityServiceRemoveRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`INoContentResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: identityVerifiableCredentialCreate()
2
+
3
+ > **identityVerifiableCredentialCreate**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IIdentityVerifiableCredentialCreateResponse`\>
4
+
5
+ Create a verifiable credential.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes stored in the ComponentFactory.
20
+
21
+ ### request
22
+
23
+ `IIdentityVerifiableCredentialCreateRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`IIdentityVerifiableCredentialCreateResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: identityVerifiableCredentialRevoke()
2
+
3
+ > **identityVerifiableCredentialRevoke**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`INoContentResponse`\>
4
+
5
+ Revoke a verifiable credential.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes stored in the ComponentFactory.
20
+
21
+ ### request
22
+
23
+ `IIdentityVerifiableCredentialRevokeRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`INoContentResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: identityVerifiableCredentialUnrevoke()
2
+
3
+ > **identityVerifiableCredentialUnrevoke**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`INoContentResponse`\>
4
+
5
+ Unrevoke a verifiable credential.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes stored in the ComponentFactory.
20
+
21
+ ### request
22
+
23
+ `IIdentityVerifiableCredentialUnrevokeRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`INoContentResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: identityVerifiableCredentialVerify()
2
+
3
+ > **identityVerifiableCredentialVerify**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IIdentityVerifiableCredentialVerifyResponse`\>
4
+
5
+ Verify a verifiable credential.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes stored in the ComponentFactory.
20
+
21
+ ### request
22
+
23
+ `IIdentityVerifiableCredentialVerifyRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`IIdentityVerifiableCredentialVerifyResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: identityVerifiablePresentationCreate()
2
+
3
+ > **identityVerifiablePresentationCreate**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IIdentityVerifiablePresentationCreateResponse`\>
4
+
5
+ Create a verifiable presentation.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes stored in the ComponentFactory.
20
+
21
+ ### request
22
+
23
+ `IIdentityVerifiablePresentationCreateRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`IIdentityVerifiablePresentationCreateResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: identityVerifiablePresentationVerify()
2
+
3
+ > **identityVerifiablePresentationVerify**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IIdentityVerifiablePresentationVerifyResponse`\>
4
+
5
+ Verify a verifiable presentation.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes stored in the ComponentFactory.
20
+
21
+ ### request
22
+
23
+ `IIdentityVerifiablePresentationVerifyRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`IIdentityVerifiablePresentationVerifyResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: identityVerificationMethodCreate()
2
+
3
+ > **identityVerificationMethodCreate**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IIdentityVerificationMethodCreateResponse`\>
4
+
5
+ Create an identity verification method.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes stored in the ComponentFactory.
20
+
21
+ ### request
22
+
23
+ `IIdentityVerificationMethodCreateRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`IIdentityVerificationMethodCreateResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -0,0 +1,31 @@
1
+ # Function: identityVerificationMethodRemove()
2
+
3
+ > **identityVerificationMethodRemove**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`INoContentResponse`\>
4
+
5
+ Remove an identity verification method.
6
+
7
+ ## Parameters
8
+
9
+ ### httpRequestContext
10
+
11
+ `IHttpRequestContext`
12
+
13
+ The request context for the API.
14
+
15
+ ### componentName
16
+
17
+ `string`
18
+
19
+ The name of the component to use in the routes stored in the ComponentFactory.
20
+
21
+ ### request
22
+
23
+ `IIdentityVerificationMethodRemoveRequest`
24
+
25
+ The request.
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`INoContentResponse`\>
30
+
31
+ The response object with additional http response properties.
@@ -3,15 +3,21 @@
3
3
  ## Classes
4
4
 
5
5
  - [IdentityProfileService](classes/IdentityProfileService.md)
6
+ - [IdentityResolverService](classes/IdentityResolverService.md)
6
7
  - [IdentityService](classes/IdentityService.md)
7
8
 
8
9
  ## Interfaces
9
10
 
11
+ - [IIdentityProfileServiceConstructorOptions](interfaces/IIdentityProfileServiceConstructorOptions.md)
12
+ - [IIdentityResolverServiceConfig](interfaces/IIdentityResolverServiceConfig.md)
13
+ - [IIdentityResolverServiceConstructorOptions](interfaces/IIdentityResolverServiceConstructorOptions.md)
10
14
  - [IIdentityServiceConfig](interfaces/IIdentityServiceConfig.md)
15
+ - [IIdentityServiceConstructorOptions](interfaces/IIdentityServiceConstructorOptions.md)
11
16
 
12
17
  ## Variables
13
18
 
14
19
  - [tagsIdentityProfile](variables/tagsIdentityProfile.md)
20
+ - [tagsIdentityResolver](variables/tagsIdentityResolver.md)
15
21
  - [tagsIdentity](variables/tagsIdentity.md)
16
22
  - [restEntryPoints](variables/restEntryPoints.md)
17
23
 
@@ -24,5 +30,20 @@
24
30
  - [identityProfileUpdate](functions/identityProfileUpdate.md)
25
31
  - [identityProfileRemove](functions/identityProfileRemove.md)
26
32
  - [identitiesList](functions/identitiesList.md)
27
- - [generateRestRoutesIdentity](functions/generateRestRoutesIdentity.md)
33
+ - [generateRestRoutesIdentityResolver](functions/generateRestRoutesIdentityResolver.md)
28
34
  - [identityResolve](functions/identityResolve.md)
35
+ - [generateRestRoutesIdentity](functions/generateRestRoutesIdentity.md)
36
+ - [identityCreate](functions/identityCreate.md)
37
+ - [identityRemove](functions/identityRemove.md)
38
+ - [identityVerificationMethodCreate](functions/identityVerificationMethodCreate.md)
39
+ - [identityVerificationMethodRemove](functions/identityVerificationMethodRemove.md)
40
+ - [identityServiceCreate](functions/identityServiceCreate.md)
41
+ - [identityServiceRemove](functions/identityServiceRemove.md)
42
+ - [identityVerifiableCredentialCreate](functions/identityVerifiableCredentialCreate.md)
43
+ - [identityVerifiableCredentialVerify](functions/identityVerifiableCredentialVerify.md)
44
+ - [identityVerifiableCredentialRevoke](functions/identityVerifiableCredentialRevoke.md)
45
+ - [identityVerifiableCredentialUnrevoke](functions/identityVerifiableCredentialUnrevoke.md)
46
+ - [identityVerifiablePresentationCreate](functions/identityVerifiablePresentationCreate.md)
47
+ - [identityVerifiablePresentationVerify](functions/identityVerifiablePresentationVerify.md)
48
+ - [identityProofCreate](functions/identityProofCreate.md)
49
+ - [identityProofVerify](functions/identityProofVerify.md)
@@ -0,0 +1,17 @@
1
+ # Interface: IIdentityProfileServiceConstructorOptions
2
+
3
+ Options for the identity profile service constructor.
4
+
5
+ ## Properties
6
+
7
+ ### profileEntityConnectorType?
8
+
9
+ > `optional` **profileEntityConnectorType**: `string`
10
+
11
+ The storage connector for the profiles.
12
+
13
+ #### Default
14
+
15
+ ```ts
16
+ identity-profile
17
+ ```
@@ -0,0 +1,11 @@
1
+ # Interface: IIdentityResolverServiceConfig
2
+
3
+ Configuration for the Identity Resolver Service.
4
+
5
+ ## Properties
6
+
7
+ ### defaultNamespace?
8
+
9
+ > `optional` **defaultNamespace**: `string`
10
+
11
+ What is the default connector to use for Identity. If not provided the first connector from the factory will be used.