@twin.org/identity-models 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 (85) hide show
  1. package/dist/cjs/index.cjs +150 -21
  2. package/dist/esm/index.mjs +150 -22
  3. package/dist/types/factories/identityResolverConnectorFactory.d.ts +6 -0
  4. package/dist/types/index.d.ts +37 -11
  5. package/dist/types/models/IIdentityComponent.d.ts +134 -5
  6. package/dist/types/models/IIdentityConnector.d.ts +25 -29
  7. package/dist/types/models/IIdentityResolverComponent.d.ts +13 -0
  8. package/dist/types/models/IIdentityResolverConnector.d.ts +14 -0
  9. package/dist/types/models/api/identity/IIdentityCreateRequest.d.ts +14 -0
  10. package/dist/types/models/api/identity/IIdentityCreateResponse.d.ts +10 -0
  11. package/dist/types/models/api/identity/IIdentityProofCreateRequest.d.ts +33 -0
  12. package/dist/types/models/api/identity/IIdentityProofCreateResponse.d.ts +10 -0
  13. package/dist/types/models/api/identity/IIdentityProofVerifyRequest.d.ts +20 -0
  14. package/dist/types/models/api/identity/IIdentityProofVerifyResponse.d.ts +11 -0
  15. package/dist/types/models/api/identity/IIdentityRemoveRequest.d.ts +14 -0
  16. package/dist/types/models/api/identity/IIdentityServiceCreateRequest.d.ts +31 -0
  17. package/dist/types/models/api/identity/IIdentityServiceCreateResponse.d.ts +10 -0
  18. package/dist/types/models/api/identity/IIdentityServiceRemoveRequest.d.ts +18 -0
  19. package/dist/types/models/api/identity/IIdentityVerifiableCredentialCreateRequest.d.ts +36 -0
  20. package/dist/types/models/api/identity/IIdentityVerifiableCredentialCreateResponse.d.ts +19 -0
  21. package/dist/types/models/api/identity/IIdentityVerifiableCredentialRevokeRequest.d.ts +18 -0
  22. package/dist/types/models/api/identity/IIdentityVerifiableCredentialUnrevokeRequest.d.ts +18 -0
  23. package/dist/types/models/api/identity/IIdentityVerifiableCredentialVerifyRequest.d.ts +14 -0
  24. package/dist/types/models/api/identity/IIdentityVerifiableCredentialVerifyResponse.d.ts +19 -0
  25. package/dist/types/models/api/identity/IIdentityVerifiablePresentationCreateRequest.d.ts +45 -0
  26. package/dist/types/models/api/identity/IIdentityVerifiablePresentationCreateResponse.d.ts +19 -0
  27. package/dist/types/models/api/identity/IIdentityVerifiablePresentationVerifyRequest.d.ts +14 -0
  28. package/dist/types/models/api/identity/IIdentityVerifiablePresentationVerifyResponse.d.ts +23 -0
  29. package/dist/types/models/api/identity/IIdentityVerificationMethodCreateRequest.d.ts +28 -0
  30. package/dist/types/models/api/identity/IIdentityVerificationMethodCreateResponse.d.ts +10 -0
  31. package/dist/types/models/api/identity/IIdentityVerificationMethodRemoveRequest.d.ts +18 -0
  32. package/dist/types/models/api/{IIdentityProfileListRequest.d.ts → profile/IIdentityProfileListRequest.d.ts} +1 -1
  33. package/dist/types/models/api/{IIdentityResolveRequest.d.ts → resolver/IIdentityResolveRequest.d.ts} +2 -2
  34. package/dist/types/utils/documentHelper.d.ts +33 -2
  35. package/dist/types/utils/verificationHelper.d.ts +29 -0
  36. package/docs/changelog.md +152 -1
  37. package/docs/reference/classes/DocumentHelper.md +122 -8
  38. package/docs/reference/classes/VerificationHelper.md +87 -0
  39. package/docs/reference/index.md +27 -5
  40. package/docs/reference/interfaces/IIdentityComponent.md +500 -6
  41. package/docs/reference/interfaces/IIdentityConnector.md +150 -130
  42. package/docs/reference/interfaces/IIdentityCreateRequest.md +17 -0
  43. package/docs/reference/interfaces/IIdentityCreateResponse.md +11 -0
  44. package/docs/reference/interfaces/IIdentityProfileComponent.md +62 -50
  45. package/docs/reference/interfaces/IIdentityProfileConnector.md +60 -44
  46. package/docs/reference/interfaces/IIdentityProfileGetPublicResponse.md +2 -2
  47. package/docs/reference/interfaces/IIdentityProfileListRequest.md +1 -1
  48. package/docs/reference/interfaces/IIdentityProofCreateRequest.md +43 -0
  49. package/docs/reference/interfaces/IIdentityProofCreateResponse.md +11 -0
  50. package/docs/reference/interfaces/IIdentityProofVerifyRequest.md +23 -0
  51. package/docs/reference/interfaces/IIdentityProofVerifyResponse.md +15 -0
  52. package/docs/reference/interfaces/IIdentityRemoveRequest.md +17 -0
  53. package/docs/reference/interfaces/IIdentityResolveRequest.md +3 -3
  54. package/docs/reference/interfaces/IIdentityResolverComponent.md +29 -0
  55. package/docs/reference/interfaces/IIdentityResolverConnector.md +33 -0
  56. package/docs/reference/interfaces/IIdentityServiceCreateRequest.md +43 -0
  57. package/docs/reference/interfaces/IIdentityServiceCreateResponse.md +11 -0
  58. package/docs/reference/interfaces/IIdentityServiceRemoveRequest.md +23 -0
  59. package/docs/reference/interfaces/IIdentityVerifiableCredentialCreateRequest.md +49 -0
  60. package/docs/reference/interfaces/IIdentityVerifiableCredentialCreateResponse.md +23 -0
  61. package/docs/reference/interfaces/IIdentityVerifiableCredentialRevokeRequest.md +23 -0
  62. package/docs/reference/interfaces/IIdentityVerifiableCredentialUnrevokeRequest.md +23 -0
  63. package/docs/reference/interfaces/IIdentityVerifiableCredentialVerifyRequest.md +17 -0
  64. package/docs/reference/interfaces/IIdentityVerifiableCredentialVerifyResponse.md +23 -0
  65. package/docs/reference/interfaces/IIdentityVerifiablePresentationCreateRequest.md +61 -0
  66. package/docs/reference/interfaces/IIdentityVerifiablePresentationCreateResponse.md +23 -0
  67. package/docs/reference/interfaces/IIdentityVerifiablePresentationVerifyRequest.md +17 -0
  68. package/docs/reference/interfaces/IIdentityVerifiablePresentationVerifyResponse.md +29 -0
  69. package/docs/reference/interfaces/IIdentityVerificationMethodCreateRequest.md +37 -0
  70. package/docs/reference/interfaces/IIdentityVerificationMethodCreateResponse.md +11 -0
  71. package/docs/reference/interfaces/IIdentityVerificationMethodRemoveRequest.md +23 -0
  72. package/docs/reference/variables/IdentityResolverConnectorFactory.md +5 -0
  73. package/locales/en.json +10 -4
  74. package/package.json +10 -10
  75. package/dist/types/models/identityRole.d.ts +0 -21
  76. package/docs/reference/type-aliases/IdentityRole.md +0 -5
  77. package/docs/reference/variables/IdentityRole.md +0 -25
  78. /package/dist/types/models/api/{IIdentityProfileCreateRequest.d.ts → profile/IIdentityProfileCreateRequest.d.ts} +0 -0
  79. /package/dist/types/models/api/{IIdentityProfileGetPublicRequest.d.ts → profile/IIdentityProfileGetPublicRequest.d.ts} +0 -0
  80. /package/dist/types/models/api/{IIdentityProfileGetPublicResponse.d.ts → profile/IIdentityProfileGetPublicResponse.d.ts} +0 -0
  81. /package/dist/types/models/api/{IIdentityProfileGetRequest.d.ts → profile/IIdentityProfileGetRequest.d.ts} +0 -0
  82. /package/dist/types/models/api/{IIdentityProfileGetResponse.d.ts → profile/IIdentityProfileGetResponse.d.ts} +0 -0
  83. /package/dist/types/models/api/{IIdentityProfileListResponse.d.ts → profile/IIdentityProfileListResponse.d.ts} +0 -0
  84. /package/dist/types/models/api/{IIdentityProfileUpdateRequest.d.ts → profile/IIdentityProfileUpdateRequest.d.ts} +0 -0
  85. /package/dist/types/models/api/{IIdentityResolveResponse.d.ts → resolver/IIdentityResolveResponse.d.ts} +0 -0
@@ -8,29 +8,39 @@ Interface describing a contract which provides profile operations.
8
8
 
9
9
  ## Type Parameters
10
10
 
11
- **T** *extends* `IJsonLdDocument` = `IJsonLdDocument`
11
+ ### T
12
12
 
13
- **U** *extends* `IJsonLdDocument` = `IJsonLdDocument`
13
+ `T` *extends* `IJsonLdDocument` = `IJsonLdDocument`
14
+
15
+ ### U
16
+
17
+ `U` *extends* `IJsonLdDocument` = `IJsonLdDocument`
14
18
 
15
19
  ## Methods
16
20
 
17
21
  ### create()
18
22
 
19
- > **create**(`publicProfile`?, `privateProfile`?, `identity`?): `Promise`\<`void`\>
23
+ > **create**(`publicProfile?`, `privateProfile?`, `identity?`): `Promise`\<`void`\>
20
24
 
21
25
  Create the profile properties for an identity.
22
26
 
23
27
  #### Parameters
24
28
 
25
- **publicProfile?**: `T`
29
+ ##### publicProfile?
30
+
31
+ `T`
26
32
 
27
33
  The public profile data as JSON-LD.
28
34
 
29
- **privateProfile?**: `U`
35
+ ##### privateProfile?
36
+
37
+ `U`
30
38
 
31
39
  The private profile data as JSON-LD.
32
40
 
33
- **identity?**: `string`
41
+ ##### identity?
42
+
43
+ `string`
34
44
 
35
45
  The identity to perform the profile operation on.
36
46
 
@@ -44,57 +54,55 @@ Nothing.
44
54
 
45
55
  ### get()
46
56
 
47
- > **get**(`publicPropertyNames`?, `privatePropertyNames`?, `identity`?): `Promise`\<`object`\>
57
+ > **get**(`publicPropertyNames?`, `privatePropertyNames?`, `identity?`): `Promise`\<\{ `identity`: `string`; `publicProfile?`: `Partial`\<`T`\>; `privateProfile?`: `Partial`\<`U`\>; \}\>
48
58
 
49
59
  Get the profile properties for an identity.
50
60
 
51
61
  #### Parameters
52
62
 
53
- **publicPropertyNames?**: keyof `T`[]
63
+ ##### publicPropertyNames?
64
+
65
+ keyof `T`[]
54
66
 
55
67
  The public properties to get for the profile, defaults to all.
56
68
 
57
- **privatePropertyNames?**: keyof `U`[]
69
+ ##### privatePropertyNames?
70
+
71
+ keyof `U`[]
58
72
 
59
73
  The private properties to get for the profile, defaults to all.
60
74
 
61
- **identity?**: `string`
75
+ ##### identity?
76
+
77
+ `string`
62
78
 
63
79
  The identity to perform the profile operation on.
64
80
 
65
81
  #### Returns
66
82
 
67
- `Promise`\<`object`\>
83
+ `Promise`\<\{ `identity`: `string`; `publicProfile?`: `Partial`\<`T`\>; `privateProfile?`: `Partial`\<`U`\>; \}\>
68
84
 
69
85
  The items identity and the properties.
70
86
 
71
- ##### identity
72
-
73
- > **identity**: `string`
74
-
75
- ##### publicProfile?
76
-
77
- > `optional` **publicProfile**: `Partial`\<`T`\>
78
-
79
- ##### privateProfile?
80
-
81
- > `optional` **privateProfile**: `Partial`\<`U`\>
82
-
83
87
  ***
84
88
 
85
89
  ### getPublic()
86
90
 
87
- > **getPublic**(`identity`, `propertyNames`?): `Promise`\<`Partial`\<`T`\>\>
91
+ > **getPublic**(`identity`, `propertyNames?`): `Promise`\<`Partial`\<`T`\>\>
88
92
 
89
93
  Get the public profile properties for an identity.
90
94
 
91
95
  #### Parameters
92
96
 
93
- **identity**: `string`
97
+ ##### identity
98
+
99
+ `string`
94
100
 
95
101
  The identity to perform the profile operation on.
96
102
 
97
- **propertyNames?**: keyof `T`[]
103
+ ##### propertyNames?
104
+
105
+ keyof `T`[]
98
106
 
99
107
  The public properties to get for the profile, defaults to all.
100
108
 
@@ -108,21 +116,27 @@ The items properties.
108
116
 
109
117
  ### update()
110
118
 
111
- > **update**(`publicProfile`?, `privateProfile`?, `identity`?): `Promise`\<`void`\>
119
+ > **update**(`publicProfile?`, `privateProfile?`, `identity?`): `Promise`\<`void`\>
112
120
 
113
121
  Update the profile properties of an identity.
114
122
 
115
123
  #### Parameters
116
124
 
117
- **publicProfile?**: `T`
125
+ ##### publicProfile?
126
+
127
+ `T`
118
128
 
119
129
  The public profile data as JSON-LD.
120
130
 
121
- **privateProfile?**: `U`
131
+ ##### privateProfile?
132
+
133
+ `U`
122
134
 
123
135
  The private profile data as JSON-LD.
124
136
 
125
- **identity?**: `string`
137
+ ##### identity?
138
+
139
+ `string`
126
140
 
127
141
  The identity to perform the profile operation on.
128
142
 
@@ -136,13 +150,15 @@ Nothing.
136
150
 
137
151
  ### remove()
138
152
 
139
- > **remove**(`identity`?): `Promise`\<`void`\>
153
+ > **remove**(`identity?`): `Promise`\<`void`\>
140
154
 
141
155
  Delete the profile for an identity.
142
156
 
143
157
  #### Parameters
144
158
 
145
- **identity?**: `string`
159
+ ##### identity?
160
+
161
+ `string`
146
162
 
147
163
  The identity to perform the profile operation on.
148
164
 
@@ -156,42 +172,38 @@ Nothing.
156
172
 
157
173
  ### list()
158
174
 
159
- > **list**(`publicFilters`?, `publicPropertyNames`?, `cursor`?, `pageSize`?): `Promise`\<`object`\>
175
+ > **list**(`publicFilters?`, `publicPropertyNames?`, `cursor?`, `pageSize?`): `Promise`\<\{ `items`: `object`[]; `cursor?`: `string`; \}\>
160
176
 
161
177
  Get a list of the requested identities.
162
178
 
163
179
  #### Parameters
164
180
 
165
- **publicFilters?**: `object`[]
181
+ ##### publicFilters?
182
+
183
+ `object`[]
166
184
 
167
185
  The filters to apply to the identities public profiles.
168
186
 
169
- **publicPropertyNames?**: keyof `T`[]
187
+ ##### publicPropertyNames?
188
+
189
+ keyof `T`[]
170
190
 
171
191
  The public properties to get for the profile, defaults to all.
172
192
 
173
- **cursor?**: `string`
193
+ ##### cursor?
194
+
195
+ `string`
174
196
 
175
197
  The cursor for paged requests.
176
198
 
177
- **pageSize?**: `number`
199
+ ##### pageSize?
200
+
201
+ `number`
178
202
 
179
203
  The maximum number of items in a page.
180
204
 
181
205
  #### Returns
182
206
 
183
- `Promise`\<`object`\>
207
+ `Promise`\<\{ `items`: `object`[]; `cursor?`: `string`; \}\>
184
208
 
185
209
  The list of items and cursor for paging.
186
-
187
- ##### items
188
-
189
- > **items**: `object`[]
190
-
191
- The identities.
192
-
193
- ##### cursor?
194
-
195
- > `optional` **cursor**: `string`
196
-
197
- An optional cursor, when defined can be used to call find to get more entities.
@@ -8,29 +8,39 @@ Interface describing a contract which provides profile operations.
8
8
 
9
9
  ## Type Parameters
10
10
 
11
- **T** *extends* `IJsonLdDocument` = `IJsonLdDocument`
11
+ ### T
12
12
 
13
- **U** *extends* `IJsonLdDocument` = `IJsonLdDocument`
13
+ `T` *extends* `IJsonLdDocument` = `IJsonLdDocument`
14
+
15
+ ### U
16
+
17
+ `U` *extends* `IJsonLdDocument` = `IJsonLdDocument`
14
18
 
15
19
  ## Methods
16
20
 
17
21
  ### create()
18
22
 
19
- > **create**(`identity`, `publicProfile`?, `privateProfile`?): `Promise`\<`void`\>
23
+ > **create**(`identity`, `publicProfile?`, `privateProfile?`): `Promise`\<`void`\>
20
24
 
21
25
  Create the profile properties for an identity.
22
26
 
23
27
  #### Parameters
24
28
 
25
- **identity**: `string`
29
+ ##### identity
30
+
31
+ `string`
26
32
 
27
33
  The identity of the profile to create.
28
34
 
29
- **publicProfile?**: `T`
35
+ ##### publicProfile?
36
+
37
+ `T`
30
38
 
31
39
  The public profile data as JSON-LD.
32
40
 
33
- **privateProfile?**: `U`
41
+ ##### privateProfile?
42
+
43
+ `U`
34
44
 
35
45
  The private profile data as JSON-LD.
36
46
 
@@ -44,57 +54,61 @@ Nothing.
44
54
 
45
55
  ### get()
46
56
 
47
- > **get**(`identity`, `publicPropertyNames`?, `privatePropertyNames`?): `Promise`\<`object`\>
57
+ > **get**(`identity`, `publicPropertyNames?`, `privatePropertyNames?`): `Promise`\<\{ `publicProfile`: `Partial`\<`T`\>; `privateProfile`: `Partial`\<`U`\>; \}\>
48
58
 
49
59
  Get the profile properties for an identity.
50
60
 
51
61
  #### Parameters
52
62
 
53
- **identity**: `string`
63
+ ##### identity
64
+
65
+ `string`
54
66
 
55
67
  The identity of the item to get.
56
68
 
57
- **publicPropertyNames?**: keyof `T`[]
69
+ ##### publicPropertyNames?
70
+
71
+ keyof `T`[]
58
72
 
59
73
  The public properties to get for the profile, defaults to all.
60
74
 
61
- **privatePropertyNames?**: keyof `U`[]
75
+ ##### privatePropertyNames?
76
+
77
+ keyof `U`[]
62
78
 
63
79
  The private properties to get for the profile, defaults to all.
64
80
 
65
81
  #### Returns
66
82
 
67
- `Promise`\<`object`\>
83
+ `Promise`\<\{ `publicProfile`: `Partial`\<`T`\>; `privateProfile`: `Partial`\<`U`\>; \}\>
68
84
 
69
85
  The identity profile, will only return private data if you have correct permissions.
70
86
 
71
- ##### publicProfile
72
-
73
- > **publicProfile**: `Partial`\<`T`\>
74
-
75
- ##### privateProfile
76
-
77
- > **privateProfile**: `Partial`\<`U`\>
78
-
79
87
  ***
80
88
 
81
89
  ### update()
82
90
 
83
- > **update**(`identity`, `publicProfile`?, `privateProfile`?): `Promise`\<`void`\>
91
+ > **update**(`identity`, `publicProfile?`, `privateProfile?`): `Promise`\<`void`\>
84
92
 
85
93
  Update the profile properties of an identity.
86
94
 
87
95
  #### Parameters
88
96
 
89
- **identity**: `string`
97
+ ##### identity
98
+
99
+ `string`
90
100
 
91
101
  The identity to update.
92
102
 
93
- **publicProfile?**: `T`
103
+ ##### publicProfile?
104
+
105
+ `T`
94
106
 
95
107
  The public profile data as JSON-LD.
96
108
 
97
- **privateProfile?**: `U`
109
+ ##### privateProfile?
110
+
111
+ `U`
98
112
 
99
113
  The private profile data as JSON-LD.
100
114
 
@@ -114,7 +128,9 @@ Delete the profile for an identity.
114
128
 
115
129
  #### Parameters
116
130
 
117
- **identity**: `string`
131
+ ##### identity
132
+
133
+ `string`
118
134
 
119
135
  The identity to delete.
120
136
 
@@ -128,50 +144,50 @@ Nothing.
128
144
 
129
145
  ### list()
130
146
 
131
- > **list**(`publicFilters`?, `privateFilters`?, `publicPropertyNames`?, `privatePropertyNames`?, `cursor`?, `pageSize`?): `Promise`\<`object`\>
147
+ > **list**(`publicFilters?`, `privateFilters?`, `publicPropertyNames?`, `privatePropertyNames?`, `cursor?`, `pageSize?`): `Promise`\<\{ `items`: `object`[]; `cursor?`: `string`; \}\>
132
148
 
133
149
  Get a list of the requested identities.
134
150
 
135
151
  #### Parameters
136
152
 
137
- **publicFilters?**: `object`[]
153
+ ##### publicFilters?
154
+
155
+ `object`[]
138
156
 
139
157
  The filters to apply to the identities public profiles.
140
158
 
141
- **privateFilters?**: `object`[]
159
+ ##### privateFilters?
160
+
161
+ `object`[]
142
162
 
143
163
  The filters to apply to the identities private profiles.
144
164
 
145
- **publicPropertyNames?**: keyof `T`[]
165
+ ##### publicPropertyNames?
166
+
167
+ keyof `T`[]
146
168
 
147
169
  The public properties to get for the profile, defaults to all.
148
170
 
149
- **privatePropertyNames?**: keyof `U`[]
171
+ ##### privatePropertyNames?
172
+
173
+ keyof `U`[]
150
174
 
151
175
  The private properties to get for the profile, defaults to all.
152
176
 
153
- **cursor?**: `string`
177
+ ##### cursor?
178
+
179
+ `string`
154
180
 
155
181
  The cursor for paged requests.
156
182
 
157
- **pageSize?**: `number`
183
+ ##### pageSize?
184
+
185
+ `number`
158
186
 
159
187
  The maximum number of items in a page.
160
188
 
161
189
  #### Returns
162
190
 
163
- `Promise`\<`object`\>
191
+ `Promise`\<\{ `items`: `object`[]; `cursor?`: `string`; \}\>
164
192
 
165
193
  The list of items and cursor for paging.
166
-
167
- ##### items
168
-
169
- > **items**: `object`[]
170
-
171
- The identity profiles.
172
-
173
- ##### cursor?
174
-
175
- > `optional` **cursor**: `string`
176
-
177
- An optional cursor, when defined can be used to call find to get more entities.
@@ -10,9 +10,9 @@ Response to get an identity public profile.
10
10
 
11
11
  The response headers.
12
12
 
13
- #### Content-Type
13
+ #### content-type
14
14
 
15
- > **Content-Type**: `"application/ld+json"`
15
+ > **content-type**: `"application/ld+json"`
16
16
 
17
17
  ***
18
18
 
@@ -30,6 +30,6 @@ The cursor for paged requests.
30
30
 
31
31
  #### pageSize?
32
32
 
33
- > `optional` **pageSize**: `number`
33
+ > `optional` **pageSize**: `string` \| `number`
34
34
 
35
35
  Number of items to return.
@@ -0,0 +1,43 @@
1
+ # Interface: IIdentityProofCreateRequest
2
+
3
+ Request to create a proof.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The path parameters.
12
+
13
+ #### identity
14
+
15
+ > **identity**: `string`
16
+
17
+ The identity to create the proof for.
18
+
19
+ #### verificationMethodId
20
+
21
+ > **verificationMethodId**: `string`
22
+
23
+ The verification method id to use.
24
+
25
+ ***
26
+
27
+ ### body
28
+
29
+ > **body**: `object`
30
+
31
+ The data for the request.
32
+
33
+ #### proofType
34
+
35
+ > **proofType**: `ProofTypes`
36
+
37
+ The type of proof to create.
38
+
39
+ #### document
40
+
41
+ > **document**: `IJsonLdNodeObject`
42
+
43
+ The document to create the proof for.
@@ -0,0 +1,11 @@
1
+ # Interface: IIdentityProofCreateResponse
2
+
3
+ Response to creating a proof.
4
+
5
+ ## Properties
6
+
7
+ ### body
8
+
9
+ > **body**: `IProof`
10
+
11
+ The response payload.
@@ -0,0 +1,23 @@
1
+ # Interface: IIdentityProofVerifyRequest
2
+
3
+ Request to verify a proof.
4
+
5
+ ## Properties
6
+
7
+ ### body
8
+
9
+ > **body**: `object`
10
+
11
+ The data for the request.
12
+
13
+ #### document
14
+
15
+ > **document**: `IJsonLdNodeObject`
16
+
17
+ The document to verify the proof for.
18
+
19
+ #### proof
20
+
21
+ > **proof**: `IProof`
22
+
23
+ The proof to verify.
@@ -0,0 +1,15 @@
1
+ # Interface: IIdentityProofVerifyResponse
2
+
3
+ Response to verifying a proof.
4
+
5
+ ## Properties
6
+
7
+ ### body
8
+
9
+ > **body**: `object`
10
+
11
+ The response payload.
12
+
13
+ #### verified
14
+
15
+ > **verified**: `boolean`
@@ -0,0 +1,17 @@
1
+ # Interface: IIdentityRemoveRequest
2
+
3
+ Request to remove an identity.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The data for the request.
12
+
13
+ #### identity
14
+
15
+ > **identity**: `string`
16
+
17
+ The identity to remove.
@@ -10,8 +10,8 @@ Resolve an identity.
10
10
 
11
11
  The path parameters.
12
12
 
13
- #### id
13
+ #### identity
14
14
 
15
- > **id**: `string`
15
+ > **identity**: `string`
16
16
 
17
- The identity to get the document for.
17
+ The identity to resolve.
@@ -0,0 +1,29 @@
1
+ # Interface: IIdentityResolverComponent
2
+
3
+ Interface describing a contract which provides identity operations.
4
+
5
+ ## Extends
6
+
7
+ - `IComponent`
8
+
9
+ ## Methods
10
+
11
+ ### identityResolve()
12
+
13
+ > **identityResolve**(`identity`): `Promise`\<`IDidDocument`\>
14
+
15
+ Resolve an identity.
16
+
17
+ #### Parameters
18
+
19
+ ##### identity
20
+
21
+ `string`
22
+
23
+ The id of the document to resolve.
24
+
25
+ #### Returns
26
+
27
+ `Promise`\<`IDidDocument`\>
28
+
29
+ The resolved document.
@@ -0,0 +1,33 @@
1
+ # Interface: IIdentityResolverConnector
2
+
3
+ Interface describing an identity connector.
4
+
5
+ ## Extends
6
+
7
+ - `IComponent`
8
+
9
+ ## Methods
10
+
11
+ ### resolveDocument()
12
+
13
+ > **resolveDocument**(`documentId`): `Promise`\<`IDidDocument`\>
14
+
15
+ Resolve a document from its id.
16
+
17
+ #### Parameters
18
+
19
+ ##### documentId
20
+
21
+ `string`
22
+
23
+ The id of the document to resolve.
24
+
25
+ #### Returns
26
+
27
+ `Promise`\<`IDidDocument`\>
28
+
29
+ The resolved document.
30
+
31
+ #### Throws
32
+
33
+ NotFoundError if the id can not be resolved.
@@ -0,0 +1,43 @@
1
+ # Interface: IIdentityServiceCreateRequest
2
+
3
+ Request to create a service.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The path parameters.
12
+
13
+ #### identity
14
+
15
+ > **identity**: `string`
16
+
17
+ The identity to create the service for.
18
+
19
+ ***
20
+
21
+ ### body
22
+
23
+ > **body**: `object`
24
+
25
+ The data for the request.
26
+
27
+ #### serviceId
28
+
29
+ > **serviceId**: `string`
30
+
31
+ The id of the service.
32
+
33
+ #### type
34
+
35
+ > **type**: `string` \| `string`[]
36
+
37
+ The type of the service.
38
+
39
+ #### endpoint
40
+
41
+ > **endpoint**: `string` \| `string`[]
42
+
43
+ The endpoint for the service.
@@ -0,0 +1,11 @@
1
+ # Interface: IIdentityServiceCreateResponse
2
+
3
+ Response to creating a service.
4
+
5
+ ## Properties
6
+
7
+ ### body
8
+
9
+ > **body**: `IDidService`
10
+
11
+ The response payload.