@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.
- package/dist/cjs/index.cjs +150 -21
- package/dist/esm/index.mjs +150 -22
- package/dist/types/factories/identityResolverConnectorFactory.d.ts +6 -0
- package/dist/types/index.d.ts +37 -11
- package/dist/types/models/IIdentityComponent.d.ts +134 -5
- package/dist/types/models/IIdentityConnector.d.ts +25 -29
- package/dist/types/models/IIdentityResolverComponent.d.ts +13 -0
- package/dist/types/models/IIdentityResolverConnector.d.ts +14 -0
- package/dist/types/models/api/identity/IIdentityCreateRequest.d.ts +14 -0
- package/dist/types/models/api/identity/IIdentityCreateResponse.d.ts +10 -0
- package/dist/types/models/api/identity/IIdentityProofCreateRequest.d.ts +33 -0
- package/dist/types/models/api/identity/IIdentityProofCreateResponse.d.ts +10 -0
- package/dist/types/models/api/identity/IIdentityProofVerifyRequest.d.ts +20 -0
- package/dist/types/models/api/identity/IIdentityProofVerifyResponse.d.ts +11 -0
- package/dist/types/models/api/identity/IIdentityRemoveRequest.d.ts +14 -0
- package/dist/types/models/api/identity/IIdentityServiceCreateRequest.d.ts +31 -0
- package/dist/types/models/api/identity/IIdentityServiceCreateResponse.d.ts +10 -0
- package/dist/types/models/api/identity/IIdentityServiceRemoveRequest.d.ts +18 -0
- package/dist/types/models/api/identity/IIdentityVerifiableCredentialCreateRequest.d.ts +36 -0
- package/dist/types/models/api/identity/IIdentityVerifiableCredentialCreateResponse.d.ts +19 -0
- package/dist/types/models/api/identity/IIdentityVerifiableCredentialRevokeRequest.d.ts +18 -0
- package/dist/types/models/api/identity/IIdentityVerifiableCredentialUnrevokeRequest.d.ts +18 -0
- package/dist/types/models/api/identity/IIdentityVerifiableCredentialVerifyRequest.d.ts +14 -0
- package/dist/types/models/api/identity/IIdentityVerifiableCredentialVerifyResponse.d.ts +19 -0
- package/dist/types/models/api/identity/IIdentityVerifiablePresentationCreateRequest.d.ts +45 -0
- package/dist/types/models/api/identity/IIdentityVerifiablePresentationCreateResponse.d.ts +19 -0
- package/dist/types/models/api/identity/IIdentityVerifiablePresentationVerifyRequest.d.ts +14 -0
- package/dist/types/models/api/identity/IIdentityVerifiablePresentationVerifyResponse.d.ts +23 -0
- package/dist/types/models/api/identity/IIdentityVerificationMethodCreateRequest.d.ts +28 -0
- package/dist/types/models/api/identity/IIdentityVerificationMethodCreateResponse.d.ts +10 -0
- package/dist/types/models/api/identity/IIdentityVerificationMethodRemoveRequest.d.ts +18 -0
- package/dist/types/models/api/{IIdentityProfileListRequest.d.ts → profile/IIdentityProfileListRequest.d.ts} +1 -1
- package/dist/types/models/api/{IIdentityResolveRequest.d.ts → resolver/IIdentityResolveRequest.d.ts} +2 -2
- package/dist/types/utils/documentHelper.d.ts +33 -2
- package/dist/types/utils/verificationHelper.d.ts +29 -0
- package/docs/changelog.md +152 -1
- package/docs/reference/classes/DocumentHelper.md +122 -8
- package/docs/reference/classes/VerificationHelper.md +87 -0
- package/docs/reference/index.md +27 -5
- package/docs/reference/interfaces/IIdentityComponent.md +500 -6
- package/docs/reference/interfaces/IIdentityConnector.md +150 -130
- package/docs/reference/interfaces/IIdentityCreateRequest.md +17 -0
- package/docs/reference/interfaces/IIdentityCreateResponse.md +11 -0
- package/docs/reference/interfaces/IIdentityProfileComponent.md +62 -50
- package/docs/reference/interfaces/IIdentityProfileConnector.md +60 -44
- package/docs/reference/interfaces/IIdentityProfileGetPublicResponse.md +2 -2
- package/docs/reference/interfaces/IIdentityProfileListRequest.md +1 -1
- package/docs/reference/interfaces/IIdentityProofCreateRequest.md +43 -0
- package/docs/reference/interfaces/IIdentityProofCreateResponse.md +11 -0
- package/docs/reference/interfaces/IIdentityProofVerifyRequest.md +23 -0
- package/docs/reference/interfaces/IIdentityProofVerifyResponse.md +15 -0
- package/docs/reference/interfaces/IIdentityRemoveRequest.md +17 -0
- package/docs/reference/interfaces/IIdentityResolveRequest.md +3 -3
- package/docs/reference/interfaces/IIdentityResolverComponent.md +29 -0
- package/docs/reference/interfaces/IIdentityResolverConnector.md +33 -0
- package/docs/reference/interfaces/IIdentityServiceCreateRequest.md +43 -0
- package/docs/reference/interfaces/IIdentityServiceCreateResponse.md +11 -0
- package/docs/reference/interfaces/IIdentityServiceRemoveRequest.md +23 -0
- package/docs/reference/interfaces/IIdentityVerifiableCredentialCreateRequest.md +49 -0
- package/docs/reference/interfaces/IIdentityVerifiableCredentialCreateResponse.md +23 -0
- package/docs/reference/interfaces/IIdentityVerifiableCredentialRevokeRequest.md +23 -0
- package/docs/reference/interfaces/IIdentityVerifiableCredentialUnrevokeRequest.md +23 -0
- package/docs/reference/interfaces/IIdentityVerifiableCredentialVerifyRequest.md +17 -0
- package/docs/reference/interfaces/IIdentityVerifiableCredentialVerifyResponse.md +23 -0
- package/docs/reference/interfaces/IIdentityVerifiablePresentationCreateRequest.md +61 -0
- package/docs/reference/interfaces/IIdentityVerifiablePresentationCreateResponse.md +23 -0
- package/docs/reference/interfaces/IIdentityVerifiablePresentationVerifyRequest.md +17 -0
- package/docs/reference/interfaces/IIdentityVerifiablePresentationVerifyResponse.md +29 -0
- package/docs/reference/interfaces/IIdentityVerificationMethodCreateRequest.md +37 -0
- package/docs/reference/interfaces/IIdentityVerificationMethodCreateResponse.md +11 -0
- package/docs/reference/interfaces/IIdentityVerificationMethodRemoveRequest.md +23 -0
- package/docs/reference/variables/IdentityResolverConnectorFactory.md +5 -0
- package/locales/en.json +10 -4
- package/package.json +10 -10
- package/dist/types/models/identityRole.d.ts +0 -21
- package/docs/reference/type-aliases/IdentityRole.md +0 -5
- package/docs/reference/variables/IdentityRole.md +0 -25
- /package/dist/types/models/api/{IIdentityProfileCreateRequest.d.ts → profile/IIdentityProfileCreateRequest.d.ts} +0 -0
- /package/dist/types/models/api/{IIdentityProfileGetPublicRequest.d.ts → profile/IIdentityProfileGetPublicRequest.d.ts} +0 -0
- /package/dist/types/models/api/{IIdentityProfileGetPublicResponse.d.ts → profile/IIdentityProfileGetPublicResponse.d.ts} +0 -0
- /package/dist/types/models/api/{IIdentityProfileGetRequest.d.ts → profile/IIdentityProfileGetRequest.d.ts} +0 -0
- /package/dist/types/models/api/{IIdentityProfileGetResponse.d.ts → profile/IIdentityProfileGetResponse.d.ts} +0 -0
- /package/dist/types/models/api/{IIdentityProfileListResponse.d.ts → profile/IIdentityProfileListResponse.d.ts} +0 -0
- /package/dist/types/models/api/{IIdentityProfileUpdateRequest.d.ts → profile/IIdentityProfileUpdateRequest.d.ts} +0 -0
- /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
|
-
|
|
11
|
+
### T
|
|
12
12
|
|
|
13
|
-
|
|
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
|
|
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
|
-
|
|
29
|
+
##### publicProfile?
|
|
30
|
+
|
|
31
|
+
`T`
|
|
26
32
|
|
|
27
33
|
The public profile data as JSON-LD.
|
|
28
34
|
|
|
29
|
-
|
|
35
|
+
##### privateProfile?
|
|
36
|
+
|
|
37
|
+
`U`
|
|
30
38
|
|
|
31
39
|
The private profile data as JSON-LD.
|
|
32
40
|
|
|
33
|
-
|
|
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
|
|
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
|
-
|
|
63
|
+
##### publicPropertyNames?
|
|
64
|
+
|
|
65
|
+
keyof `T`[]
|
|
54
66
|
|
|
55
67
|
The public properties to get for the profile, defaults to all.
|
|
56
68
|
|
|
57
|
-
|
|
69
|
+
##### privatePropertyNames?
|
|
70
|
+
|
|
71
|
+
keyof `U`[]
|
|
58
72
|
|
|
59
73
|
The private properties to get for the profile, defaults to all.
|
|
60
74
|
|
|
61
|
-
|
|
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`\<`
|
|
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
|
|
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
|
-
|
|
97
|
+
##### identity
|
|
98
|
+
|
|
99
|
+
`string`
|
|
94
100
|
|
|
95
101
|
The identity to perform the profile operation on.
|
|
96
102
|
|
|
97
|
-
|
|
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
|
|
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
|
-
|
|
125
|
+
##### publicProfile?
|
|
126
|
+
|
|
127
|
+
`T`
|
|
118
128
|
|
|
119
129
|
The public profile data as JSON-LD.
|
|
120
130
|
|
|
121
|
-
|
|
131
|
+
##### privateProfile?
|
|
132
|
+
|
|
133
|
+
`U`
|
|
122
134
|
|
|
123
135
|
The private profile data as JSON-LD.
|
|
124
136
|
|
|
125
|
-
|
|
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
|
|
153
|
+
> **remove**(`identity?`): `Promise`\<`void`\>
|
|
140
154
|
|
|
141
155
|
Delete the profile for an identity.
|
|
142
156
|
|
|
143
157
|
#### Parameters
|
|
144
158
|
|
|
145
|
-
|
|
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
|
|
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
|
-
|
|
181
|
+
##### publicFilters?
|
|
182
|
+
|
|
183
|
+
`object`[]
|
|
166
184
|
|
|
167
185
|
The filters to apply to the identities public profiles.
|
|
168
186
|
|
|
169
|
-
|
|
187
|
+
##### publicPropertyNames?
|
|
188
|
+
|
|
189
|
+
keyof `T`[]
|
|
170
190
|
|
|
171
191
|
The public properties to get for the profile, defaults to all.
|
|
172
192
|
|
|
173
|
-
|
|
193
|
+
##### cursor?
|
|
194
|
+
|
|
195
|
+
`string`
|
|
174
196
|
|
|
175
197
|
The cursor for paged requests.
|
|
176
198
|
|
|
177
|
-
|
|
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
|
|
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
|
-
|
|
11
|
+
### T
|
|
12
12
|
|
|
13
|
-
|
|
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
|
|
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
|
-
|
|
29
|
+
##### identity
|
|
30
|
+
|
|
31
|
+
`string`
|
|
26
32
|
|
|
27
33
|
The identity of the profile to create.
|
|
28
34
|
|
|
29
|
-
|
|
35
|
+
##### publicProfile?
|
|
36
|
+
|
|
37
|
+
`T`
|
|
30
38
|
|
|
31
39
|
The public profile data as JSON-LD.
|
|
32
40
|
|
|
33
|
-
|
|
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
|
|
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
|
-
|
|
63
|
+
##### identity
|
|
64
|
+
|
|
65
|
+
`string`
|
|
54
66
|
|
|
55
67
|
The identity of the item to get.
|
|
56
68
|
|
|
57
|
-
|
|
69
|
+
##### publicPropertyNames?
|
|
70
|
+
|
|
71
|
+
keyof `T`[]
|
|
58
72
|
|
|
59
73
|
The public properties to get for the profile, defaults to all.
|
|
60
74
|
|
|
61
|
-
|
|
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`\<`
|
|
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
|
|
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
|
-
|
|
97
|
+
##### identity
|
|
98
|
+
|
|
99
|
+
`string`
|
|
90
100
|
|
|
91
101
|
The identity to update.
|
|
92
102
|
|
|
93
|
-
|
|
103
|
+
##### publicProfile?
|
|
104
|
+
|
|
105
|
+
`T`
|
|
94
106
|
|
|
95
107
|
The public profile data as JSON-LD.
|
|
96
108
|
|
|
97
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
153
|
+
##### publicFilters?
|
|
154
|
+
|
|
155
|
+
`object`[]
|
|
138
156
|
|
|
139
157
|
The filters to apply to the identities public profiles.
|
|
140
158
|
|
|
141
|
-
|
|
159
|
+
##### privateFilters?
|
|
160
|
+
|
|
161
|
+
`object`[]
|
|
142
162
|
|
|
143
163
|
The filters to apply to the identities private profiles.
|
|
144
164
|
|
|
145
|
-
|
|
165
|
+
##### publicPropertyNames?
|
|
166
|
+
|
|
167
|
+
keyof `T`[]
|
|
146
168
|
|
|
147
169
|
The public properties to get for the profile, defaults to all.
|
|
148
170
|
|
|
149
|
-
|
|
171
|
+
##### privatePropertyNames?
|
|
172
|
+
|
|
173
|
+
keyof `U`[]
|
|
150
174
|
|
|
151
175
|
The private properties to get for the profile, defaults to all.
|
|
152
176
|
|
|
153
|
-
|
|
177
|
+
##### cursor?
|
|
178
|
+
|
|
179
|
+
`string`
|
|
154
180
|
|
|
155
181
|
The cursor for paged requests.
|
|
156
182
|
|
|
157
|
-
|
|
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
|
|
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.
|
|
@@ -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,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,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.
|
|
@@ -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.
|