@twin.org/identity-models 0.0.1-next.3 → 0.0.1-next.31
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 +36 -11
- package/dist/types/models/IIdentityComponent.d.ts +127 -5
- package/dist/types/models/IIdentityConnector.d.ts +21 -32
- 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/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/{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 +1 -1
- package/docs/reference/classes/DocumentHelper.md +119 -5
- package/docs/reference/classes/VerificationHelper.md +83 -0
- package/docs/reference/index.md +26 -5
- package/docs/reference/interfaces/IIdentityComponent.md +472 -6
- package/docs/reference/interfaces/IIdentityConnector.md +137 -141
- package/docs/reference/interfaces/IIdentityCreateRequest.md +17 -0
- package/docs/reference/interfaces/IIdentityCreateResponse.md +11 -0
- package/docs/reference/interfaces/IIdentityProfileComponent.md +52 -44
- package/docs/reference/interfaces/IIdentityProfileConnector.md +52 -40
- package/docs/reference/interfaces/IIdentityProfileGetPublicResponse.md +2 -2
- 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/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 +4 -30
- 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/{IIdentityProfileListRequest.d.ts → profile/IIdentityProfileListRequest.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
|
@@ -22,15 +22,21 @@ Create the profile properties for an identity.
|
|
|
22
22
|
|
|
23
23
|
#### Parameters
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
##### publicProfile?
|
|
26
|
+
|
|
27
|
+
`T`
|
|
26
28
|
|
|
27
29
|
The public profile data as JSON-LD.
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
##### privateProfile?
|
|
32
|
+
|
|
33
|
+
`U`
|
|
30
34
|
|
|
31
35
|
The private profile data as JSON-LD.
|
|
32
36
|
|
|
33
|
-
|
|
37
|
+
##### identity?
|
|
38
|
+
|
|
39
|
+
`string`
|
|
34
40
|
|
|
35
41
|
The identity to perform the profile operation on.
|
|
36
42
|
|
|
@@ -44,42 +50,36 @@ Nothing.
|
|
|
44
50
|
|
|
45
51
|
### get()
|
|
46
52
|
|
|
47
|
-
> **get**(`publicPropertyNames`?, `privatePropertyNames`?, `identity`?): `Promise`\<`
|
|
53
|
+
> **get**(`publicPropertyNames`?, `privatePropertyNames`?, `identity`?): `Promise`\<\{ `identity`: `string`; `publicProfile`: `Partial`\<`T`\>; `privateProfile`: `Partial`\<`U`\>; \}\>
|
|
48
54
|
|
|
49
55
|
Get the profile properties for an identity.
|
|
50
56
|
|
|
51
57
|
#### Parameters
|
|
52
58
|
|
|
53
|
-
|
|
59
|
+
##### publicPropertyNames?
|
|
60
|
+
|
|
61
|
+
keyof `T`[]
|
|
54
62
|
|
|
55
63
|
The public properties to get for the profile, defaults to all.
|
|
56
64
|
|
|
57
|
-
|
|
65
|
+
##### privatePropertyNames?
|
|
66
|
+
|
|
67
|
+
keyof `U`[]
|
|
58
68
|
|
|
59
69
|
The private properties to get for the profile, defaults to all.
|
|
60
70
|
|
|
61
|
-
|
|
71
|
+
##### identity?
|
|
72
|
+
|
|
73
|
+
`string`
|
|
62
74
|
|
|
63
75
|
The identity to perform the profile operation on.
|
|
64
76
|
|
|
65
77
|
#### Returns
|
|
66
78
|
|
|
67
|
-
`Promise`\<`
|
|
79
|
+
`Promise`\<\{ `identity`: `string`; `publicProfile`: `Partial`\<`T`\>; `privateProfile`: `Partial`\<`U`\>; \}\>
|
|
68
80
|
|
|
69
81
|
The items identity and the properties.
|
|
70
82
|
|
|
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
83
|
***
|
|
84
84
|
|
|
85
85
|
### getPublic()
|
|
@@ -90,11 +90,15 @@ Get the public profile properties for an identity.
|
|
|
90
90
|
|
|
91
91
|
#### Parameters
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
##### identity
|
|
94
|
+
|
|
95
|
+
`string`
|
|
94
96
|
|
|
95
97
|
The identity to perform the profile operation on.
|
|
96
98
|
|
|
97
|
-
|
|
99
|
+
##### propertyNames?
|
|
100
|
+
|
|
101
|
+
keyof `T`[]
|
|
98
102
|
|
|
99
103
|
The public properties to get for the profile, defaults to all.
|
|
100
104
|
|
|
@@ -114,15 +118,21 @@ Update the profile properties of an identity.
|
|
|
114
118
|
|
|
115
119
|
#### Parameters
|
|
116
120
|
|
|
117
|
-
|
|
121
|
+
##### publicProfile?
|
|
122
|
+
|
|
123
|
+
`T`
|
|
118
124
|
|
|
119
125
|
The public profile data as JSON-LD.
|
|
120
126
|
|
|
121
|
-
|
|
127
|
+
##### privateProfile?
|
|
128
|
+
|
|
129
|
+
`U`
|
|
122
130
|
|
|
123
131
|
The private profile data as JSON-LD.
|
|
124
132
|
|
|
125
|
-
|
|
133
|
+
##### identity?
|
|
134
|
+
|
|
135
|
+
`string`
|
|
126
136
|
|
|
127
137
|
The identity to perform the profile operation on.
|
|
128
138
|
|
|
@@ -142,7 +152,9 @@ Delete the profile for an identity.
|
|
|
142
152
|
|
|
143
153
|
#### Parameters
|
|
144
154
|
|
|
145
|
-
|
|
155
|
+
##### identity?
|
|
156
|
+
|
|
157
|
+
`string`
|
|
146
158
|
|
|
147
159
|
The identity to perform the profile operation on.
|
|
148
160
|
|
|
@@ -156,42 +168,38 @@ Nothing.
|
|
|
156
168
|
|
|
157
169
|
### list()
|
|
158
170
|
|
|
159
|
-
> **list**(`publicFilters`?, `publicPropertyNames`?, `cursor`?, `pageSize`?): `Promise
|
|
171
|
+
> **list**(`publicFilters`?, `publicPropertyNames`?, `cursor`?, `pageSize`?): `Promise`\<\{ `items`: `object`[]; `cursor`: `string`; \}\>
|
|
160
172
|
|
|
161
173
|
Get a list of the requested identities.
|
|
162
174
|
|
|
163
175
|
#### Parameters
|
|
164
176
|
|
|
165
|
-
|
|
177
|
+
##### publicFilters?
|
|
178
|
+
|
|
179
|
+
`object`[]
|
|
166
180
|
|
|
167
181
|
The filters to apply to the identities public profiles.
|
|
168
182
|
|
|
169
|
-
|
|
183
|
+
##### publicPropertyNames?
|
|
184
|
+
|
|
185
|
+
keyof `T`[]
|
|
170
186
|
|
|
171
187
|
The public properties to get for the profile, defaults to all.
|
|
172
188
|
|
|
173
|
-
|
|
189
|
+
##### cursor?
|
|
190
|
+
|
|
191
|
+
`string`
|
|
174
192
|
|
|
175
193
|
The cursor for paged requests.
|
|
176
194
|
|
|
177
|
-
|
|
195
|
+
##### pageSize?
|
|
196
|
+
|
|
197
|
+
`number`
|
|
178
198
|
|
|
179
199
|
The maximum number of items in a page.
|
|
180
200
|
|
|
181
201
|
#### Returns
|
|
182
202
|
|
|
183
|
-
`Promise
|
|
203
|
+
`Promise`\<\{ `items`: `object`[]; `cursor`: `string`; \}\>
|
|
184
204
|
|
|
185
205
|
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.
|
|
@@ -22,15 +22,21 @@ Create the profile properties for an identity.
|
|
|
22
22
|
|
|
23
23
|
#### Parameters
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
##### identity
|
|
26
|
+
|
|
27
|
+
`string`
|
|
26
28
|
|
|
27
29
|
The identity of the profile to create.
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
##### publicProfile?
|
|
32
|
+
|
|
33
|
+
`T`
|
|
30
34
|
|
|
31
35
|
The public profile data as JSON-LD.
|
|
32
36
|
|
|
33
|
-
|
|
37
|
+
##### privateProfile?
|
|
38
|
+
|
|
39
|
+
`U`
|
|
34
40
|
|
|
35
41
|
The private profile data as JSON-LD.
|
|
36
42
|
|
|
@@ -44,38 +50,36 @@ Nothing.
|
|
|
44
50
|
|
|
45
51
|
### get()
|
|
46
52
|
|
|
47
|
-
> **get**(`identity`, `publicPropertyNames`?, `privatePropertyNames`?): `Promise`\<`
|
|
53
|
+
> **get**(`identity`, `publicPropertyNames`?, `privatePropertyNames`?): `Promise`\<\{ `publicProfile`: `Partial`\<`T`\>; `privateProfile`: `Partial`\<`U`\>; \}\>
|
|
48
54
|
|
|
49
55
|
Get the profile properties for an identity.
|
|
50
56
|
|
|
51
57
|
#### Parameters
|
|
52
58
|
|
|
53
|
-
|
|
59
|
+
##### identity
|
|
60
|
+
|
|
61
|
+
`string`
|
|
54
62
|
|
|
55
63
|
The identity of the item to get.
|
|
56
64
|
|
|
57
|
-
|
|
65
|
+
##### publicPropertyNames?
|
|
66
|
+
|
|
67
|
+
keyof `T`[]
|
|
58
68
|
|
|
59
69
|
The public properties to get for the profile, defaults to all.
|
|
60
70
|
|
|
61
|
-
|
|
71
|
+
##### privatePropertyNames?
|
|
72
|
+
|
|
73
|
+
keyof `U`[]
|
|
62
74
|
|
|
63
75
|
The private properties to get for the profile, defaults to all.
|
|
64
76
|
|
|
65
77
|
#### Returns
|
|
66
78
|
|
|
67
|
-
`Promise`\<`
|
|
79
|
+
`Promise`\<\{ `publicProfile`: `Partial`\<`T`\>; `privateProfile`: `Partial`\<`U`\>; \}\>
|
|
68
80
|
|
|
69
81
|
The identity profile, will only return private data if you have correct permissions.
|
|
70
82
|
|
|
71
|
-
##### publicProfile
|
|
72
|
-
|
|
73
|
-
> **publicProfile**: `Partial`\<`T`\>
|
|
74
|
-
|
|
75
|
-
##### privateProfile
|
|
76
|
-
|
|
77
|
-
> **privateProfile**: `Partial`\<`U`\>
|
|
78
|
-
|
|
79
83
|
***
|
|
80
84
|
|
|
81
85
|
### update()
|
|
@@ -86,15 +90,21 @@ Update the profile properties of an identity.
|
|
|
86
90
|
|
|
87
91
|
#### Parameters
|
|
88
92
|
|
|
89
|
-
|
|
93
|
+
##### identity
|
|
94
|
+
|
|
95
|
+
`string`
|
|
90
96
|
|
|
91
97
|
The identity to update.
|
|
92
98
|
|
|
93
|
-
|
|
99
|
+
##### publicProfile?
|
|
100
|
+
|
|
101
|
+
`T`
|
|
94
102
|
|
|
95
103
|
The public profile data as JSON-LD.
|
|
96
104
|
|
|
97
|
-
|
|
105
|
+
##### privateProfile?
|
|
106
|
+
|
|
107
|
+
`U`
|
|
98
108
|
|
|
99
109
|
The private profile data as JSON-LD.
|
|
100
110
|
|
|
@@ -114,7 +124,9 @@ Delete the profile for an identity.
|
|
|
114
124
|
|
|
115
125
|
#### Parameters
|
|
116
126
|
|
|
117
|
-
|
|
127
|
+
##### identity
|
|
128
|
+
|
|
129
|
+
`string`
|
|
118
130
|
|
|
119
131
|
The identity to delete.
|
|
120
132
|
|
|
@@ -128,50 +140,50 @@ Nothing.
|
|
|
128
140
|
|
|
129
141
|
### list()
|
|
130
142
|
|
|
131
|
-
> **list**(`publicFilters`?, `privateFilters`?, `publicPropertyNames`?, `privatePropertyNames`?, `cursor`?, `pageSize`?): `Promise
|
|
143
|
+
> **list**(`publicFilters`?, `privateFilters`?, `publicPropertyNames`?, `privatePropertyNames`?, `cursor`?, `pageSize`?): `Promise`\<\{ `items`: `object`[]; `cursor`: `string`; \}\>
|
|
132
144
|
|
|
133
145
|
Get a list of the requested identities.
|
|
134
146
|
|
|
135
147
|
#### Parameters
|
|
136
148
|
|
|
137
|
-
|
|
149
|
+
##### publicFilters?
|
|
150
|
+
|
|
151
|
+
`object`[]
|
|
138
152
|
|
|
139
153
|
The filters to apply to the identities public profiles.
|
|
140
154
|
|
|
141
|
-
|
|
155
|
+
##### privateFilters?
|
|
156
|
+
|
|
157
|
+
`object`[]
|
|
142
158
|
|
|
143
159
|
The filters to apply to the identities private profiles.
|
|
144
160
|
|
|
145
|
-
|
|
161
|
+
##### publicPropertyNames?
|
|
162
|
+
|
|
163
|
+
keyof `T`[]
|
|
146
164
|
|
|
147
165
|
The public properties to get for the profile, defaults to all.
|
|
148
166
|
|
|
149
|
-
|
|
167
|
+
##### privatePropertyNames?
|
|
168
|
+
|
|
169
|
+
keyof `U`[]
|
|
150
170
|
|
|
151
171
|
The private properties to get for the profile, defaults to all.
|
|
152
172
|
|
|
153
|
-
|
|
173
|
+
##### cursor?
|
|
174
|
+
|
|
175
|
+
`string`
|
|
154
176
|
|
|
155
177
|
The cursor for paged requests.
|
|
156
178
|
|
|
157
|
-
|
|
179
|
+
##### pageSize?
|
|
180
|
+
|
|
181
|
+
`number`
|
|
158
182
|
|
|
159
183
|
The maximum number of items in a page.
|
|
160
184
|
|
|
161
185
|
#### Returns
|
|
162
186
|
|
|
163
|
-
`Promise
|
|
187
|
+
`Promise`\<\{ `items`: `object`[]; `cursor`: `string`; \}\>
|
|
164
188
|
|
|
165
189
|
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,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,23 @@
|
|
|
1
|
+
# Interface: IIdentityServiceRemoveRequest
|
|
2
|
+
|
|
3
|
+
Request to remove 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 remove the service from.
|
|
18
|
+
|
|
19
|
+
#### serviceId
|
|
20
|
+
|
|
21
|
+
> **serviceId**: `string`
|
|
22
|
+
|
|
23
|
+
The service to remove.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Interface: IIdentityVerifiableCredentialCreateRequest
|
|
2
|
+
|
|
3
|
+
Request to create a verifiable credential.
|
|
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 verification credential 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
|
+
#### credentialId?
|
|
34
|
+
|
|
35
|
+
> `optional` **credentialId**: `string`
|
|
36
|
+
|
|
37
|
+
The id of the credential.
|
|
38
|
+
|
|
39
|
+
#### subject
|
|
40
|
+
|
|
41
|
+
> **subject**: `IJsonLdNodeObject`
|
|
42
|
+
|
|
43
|
+
The credential subject to store in the verifiable credential.
|
|
44
|
+
|
|
45
|
+
#### revocationIndex?
|
|
46
|
+
|
|
47
|
+
> `optional` **revocationIndex**: `number`
|
|
48
|
+
|
|
49
|
+
The bitmap revocation index of the credential, if undefined will not have revocation status.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Interface: IIdentityVerifiableCredentialCreateResponse
|
|
2
|
+
|
|
3
|
+
Response to creating a verifiable credential.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### body
|
|
8
|
+
|
|
9
|
+
> **body**: `object`
|
|
10
|
+
|
|
11
|
+
The response payload.
|
|
12
|
+
|
|
13
|
+
#### verifiableCredential
|
|
14
|
+
|
|
15
|
+
> **verifiableCredential**: `IDidVerifiableCredential`
|
|
16
|
+
|
|
17
|
+
The verifiable credential that was created.
|
|
18
|
+
|
|
19
|
+
#### jwt
|
|
20
|
+
|
|
21
|
+
> **jwt**: `string`
|
|
22
|
+
|
|
23
|
+
The JWT token for the verifiable credential.
|