@sphereon/ssi-sdk-ext.jwt-service 0.24.1-unstable.88 → 0.24.1-unstable.90
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/agent/JwtService.d.ts.map +1 -1
- package/dist/agent/JwtService.js.map +1 -1
- package/dist/functions/index.d.ts +1 -1
- package/dist/functions/index.d.ts.map +1 -1
- package/dist/functions/index.js +8 -8
- package/dist/functions/index.js.map +1 -1
- package/dist/types/IJwtService.d.ts +2 -2
- package/dist/types/IJwtService.d.ts.map +1 -1
- package/dist/types/IJwtService.js.map +1 -1
- package/package.json +10 -10
- package/plugin.schema.json +789 -590
- package/src/agent/JwtService.ts +4 -7
- package/src/functions/index.ts +221 -227
- package/src/types/IJwtService.ts +16 -20
package/plugin.schema.json
CHANGED
|
@@ -13,171 +13,6 @@
|
|
|
13
13
|
},
|
|
14
14
|
"issuer": {
|
|
15
15
|
"anyOf": [
|
|
16
|
-
{
|
|
17
|
-
"type": "object",
|
|
18
|
-
"properties": {
|
|
19
|
-
"noIssPayloadUpdate": {
|
|
20
|
-
"type": "boolean"
|
|
21
|
-
},
|
|
22
|
-
"noIdentifierInHeader": {
|
|
23
|
-
"type": "boolean"
|
|
24
|
-
},
|
|
25
|
-
"method": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"const": "jwk"
|
|
28
|
-
},
|
|
29
|
-
"identifier": {
|
|
30
|
-
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
31
|
-
},
|
|
32
|
-
"kmsKeyRef": {
|
|
33
|
-
"type": "string"
|
|
34
|
-
},
|
|
35
|
-
"issuer": {
|
|
36
|
-
"type": "string"
|
|
37
|
-
},
|
|
38
|
-
"kid": {
|
|
39
|
-
"type": "string"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"required": [
|
|
43
|
-
"identifier"
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"type": "object",
|
|
48
|
-
"properties": {
|
|
49
|
-
"noIssPayloadUpdate": {
|
|
50
|
-
"type": "boolean"
|
|
51
|
-
},
|
|
52
|
-
"noIdentifierInHeader": {
|
|
53
|
-
"type": "boolean"
|
|
54
|
-
},
|
|
55
|
-
"method": {
|
|
56
|
-
"type": "string",
|
|
57
|
-
"const": "x5c"
|
|
58
|
-
},
|
|
59
|
-
"identifier": {
|
|
60
|
-
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
61
|
-
},
|
|
62
|
-
"kmsKeyRef": {
|
|
63
|
-
"type": "string"
|
|
64
|
-
},
|
|
65
|
-
"issuer": {
|
|
66
|
-
"type": "string"
|
|
67
|
-
},
|
|
68
|
-
"kid": {
|
|
69
|
-
"type": "string"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
"required": [
|
|
73
|
-
"identifier"
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"type": "object",
|
|
78
|
-
"properties": {
|
|
79
|
-
"noIssPayloadUpdate": {
|
|
80
|
-
"type": "boolean"
|
|
81
|
-
},
|
|
82
|
-
"noIdentifierInHeader": {
|
|
83
|
-
"type": "boolean"
|
|
84
|
-
},
|
|
85
|
-
"method": {
|
|
86
|
-
"type": "string",
|
|
87
|
-
"const": "did"
|
|
88
|
-
},
|
|
89
|
-
"identifier": {
|
|
90
|
-
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
91
|
-
},
|
|
92
|
-
"kmsKeyRef": {
|
|
93
|
-
"type": "string"
|
|
94
|
-
},
|
|
95
|
-
"issuer": {
|
|
96
|
-
"type": "string"
|
|
97
|
-
},
|
|
98
|
-
"kid": {
|
|
99
|
-
"type": "string"
|
|
100
|
-
},
|
|
101
|
-
"keyType": {
|
|
102
|
-
"$ref": "#/components/schemas/TKeyType"
|
|
103
|
-
},
|
|
104
|
-
"offlineWhenNoDIDRegistered": {
|
|
105
|
-
"type": "boolean"
|
|
106
|
-
},
|
|
107
|
-
"noVerificationMethodFallback": {
|
|
108
|
-
"type": "boolean"
|
|
109
|
-
},
|
|
110
|
-
"controllerKey": {
|
|
111
|
-
"type": "boolean"
|
|
112
|
-
},
|
|
113
|
-
"vmRelationship": {
|
|
114
|
-
"$ref": "#/components/schemas/DIDDocumentSection"
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
"required": [
|
|
118
|
-
"identifier"
|
|
119
|
-
]
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"type": "object",
|
|
123
|
-
"properties": {
|
|
124
|
-
"noIssPayloadUpdate": {
|
|
125
|
-
"type": "boolean"
|
|
126
|
-
},
|
|
127
|
-
"noIdentifierInHeader": {
|
|
128
|
-
"type": "boolean"
|
|
129
|
-
},
|
|
130
|
-
"method": {
|
|
131
|
-
"type": "string",
|
|
132
|
-
"const": "kid"
|
|
133
|
-
},
|
|
134
|
-
"identifier": {
|
|
135
|
-
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
136
|
-
},
|
|
137
|
-
"kmsKeyRef": {
|
|
138
|
-
"type": "string"
|
|
139
|
-
},
|
|
140
|
-
"issuer": {
|
|
141
|
-
"type": "string"
|
|
142
|
-
},
|
|
143
|
-
"kid": {
|
|
144
|
-
"type": "string"
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
"required": [
|
|
148
|
-
"identifier"
|
|
149
|
-
]
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"type": "object",
|
|
153
|
-
"properties": {
|
|
154
|
-
"noIssPayloadUpdate": {
|
|
155
|
-
"type": "boolean"
|
|
156
|
-
},
|
|
157
|
-
"noIdentifierInHeader": {
|
|
158
|
-
"type": "boolean"
|
|
159
|
-
},
|
|
160
|
-
"method": {
|
|
161
|
-
"type": "string",
|
|
162
|
-
"const": "key"
|
|
163
|
-
},
|
|
164
|
-
"identifier": {
|
|
165
|
-
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
166
|
-
},
|
|
167
|
-
"kmsKeyRef": {
|
|
168
|
-
"type": "string"
|
|
169
|
-
},
|
|
170
|
-
"issuer": {
|
|
171
|
-
"type": "string"
|
|
172
|
-
},
|
|
173
|
-
"kid": {
|
|
174
|
-
"type": "string"
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
"required": [
|
|
178
|
-
"identifier"
|
|
179
|
-
]
|
|
180
|
-
},
|
|
181
16
|
{
|
|
182
17
|
"type": "object",
|
|
183
18
|
"properties": {
|
|
@@ -199,6 +34,9 @@
|
|
|
199
34
|
"method": {
|
|
200
35
|
"$ref": "#/components/schemas/ManagedIdentifierMethod"
|
|
201
36
|
},
|
|
37
|
+
"opts": {
|
|
38
|
+
"$ref": "#/components/schemas/ManagedIdentifierOpts"
|
|
39
|
+
},
|
|
202
40
|
"key": {
|
|
203
41
|
"$ref": "#/components/schemas/IKey"
|
|
204
42
|
},
|
|
@@ -223,6 +61,7 @@
|
|
|
223
61
|
"key",
|
|
224
62
|
"kmsKeyRef",
|
|
225
63
|
"method",
|
|
64
|
+
"opts",
|
|
226
65
|
"x5c"
|
|
227
66
|
]
|
|
228
67
|
},
|
|
@@ -247,6 +86,9 @@
|
|
|
247
86
|
"method": {
|
|
248
87
|
"$ref": "#/components/schemas/ManagedIdentifierMethod"
|
|
249
88
|
},
|
|
89
|
+
"opts": {
|
|
90
|
+
"$ref": "#/components/schemas/ManagedIdentifierOpts"
|
|
91
|
+
},
|
|
250
92
|
"key": {
|
|
251
93
|
"$ref": "#/components/schemas/IKey"
|
|
252
94
|
},
|
|
@@ -285,7 +127,8 @@
|
|
|
285
127
|
"keys",
|
|
286
128
|
"kid",
|
|
287
129
|
"kmsKeyRef",
|
|
288
|
-
"method"
|
|
130
|
+
"method",
|
|
131
|
+
"opts"
|
|
289
132
|
]
|
|
290
133
|
},
|
|
291
134
|
{
|
|
@@ -309,6 +152,9 @@
|
|
|
309
152
|
"method": {
|
|
310
153
|
"$ref": "#/components/schemas/ManagedIdentifierMethod"
|
|
311
154
|
},
|
|
155
|
+
"opts": {
|
|
156
|
+
"$ref": "#/components/schemas/ManagedIdentifierOpts"
|
|
157
|
+
},
|
|
312
158
|
"key": {
|
|
313
159
|
"$ref": "#/components/schemas/IKey"
|
|
314
160
|
},
|
|
@@ -324,7 +170,8 @@
|
|
|
324
170
|
"jwkThumbprint",
|
|
325
171
|
"key",
|
|
326
172
|
"kmsKeyRef",
|
|
327
|
-
"method"
|
|
173
|
+
"method",
|
|
174
|
+
"opts"
|
|
328
175
|
]
|
|
329
176
|
},
|
|
330
177
|
{
|
|
@@ -348,6 +195,9 @@
|
|
|
348
195
|
"method": {
|
|
349
196
|
"$ref": "#/components/schemas/ManagedIdentifierMethod"
|
|
350
197
|
},
|
|
198
|
+
"opts": {
|
|
199
|
+
"$ref": "#/components/schemas/ManagedIdentifierOpts"
|
|
200
|
+
},
|
|
351
201
|
"key": {
|
|
352
202
|
"$ref": "#/components/schemas/IKey"
|
|
353
203
|
},
|
|
@@ -365,7 +215,8 @@
|
|
|
365
215
|
"key",
|
|
366
216
|
"kid",
|
|
367
217
|
"kmsKeyRef",
|
|
368
|
-
"method"
|
|
218
|
+
"method",
|
|
219
|
+
"opts"
|
|
369
220
|
]
|
|
370
221
|
},
|
|
371
222
|
{
|
|
@@ -389,6 +240,9 @@
|
|
|
389
240
|
"method": {
|
|
390
241
|
"$ref": "#/components/schemas/ManagedIdentifierMethod"
|
|
391
242
|
},
|
|
243
|
+
"opts": {
|
|
244
|
+
"$ref": "#/components/schemas/ManagedIdentifierOpts"
|
|
245
|
+
},
|
|
392
246
|
"key": {
|
|
393
247
|
"$ref": "#/components/schemas/IKey"
|
|
394
248
|
},
|
|
@@ -406,84 +260,498 @@
|
|
|
406
260
|
"key",
|
|
407
261
|
"kid",
|
|
408
262
|
"kmsKeyRef",
|
|
409
|
-
"method"
|
|
263
|
+
"method",
|
|
264
|
+
"opts"
|
|
410
265
|
]
|
|
411
|
-
}
|
|
412
|
-
]
|
|
413
|
-
},
|
|
414
|
-
"protectedHeader": {
|
|
415
|
-
"$ref": "#/components/schemas/JwtHeader"
|
|
416
|
-
},
|
|
417
|
-
"payload": {
|
|
418
|
-
"anyOf": [
|
|
419
|
-
{
|
|
420
|
-
"$ref": "#/components/schemas/JwtPayload"
|
|
421
266
|
},
|
|
422
267
|
{
|
|
423
268
|
"type": "object",
|
|
424
269
|
"properties": {
|
|
425
|
-
"
|
|
426
|
-
"type": "
|
|
270
|
+
"noIssPayloadUpdate": {
|
|
271
|
+
"type": "boolean"
|
|
427
272
|
},
|
|
428
|
-
"
|
|
429
|
-
"
|
|
430
|
-
{
|
|
431
|
-
"type": "object",
|
|
432
|
-
"properties": {
|
|
433
|
-
"byteLength": {
|
|
434
|
-
"type": "number"
|
|
435
|
-
}
|
|
436
|
-
},
|
|
437
|
-
"required": [
|
|
438
|
-
"byteLength"
|
|
439
|
-
]
|
|
440
|
-
},
|
|
441
|
-
{}
|
|
442
|
-
]
|
|
273
|
+
"noIdentifierInHeader": {
|
|
274
|
+
"type": "boolean"
|
|
443
275
|
},
|
|
444
|
-
"
|
|
445
|
-
"type": "
|
|
276
|
+
"method": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"const": "jwk"
|
|
446
279
|
},
|
|
447
|
-
"
|
|
448
|
-
"
|
|
280
|
+
"identifier": {
|
|
281
|
+
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
449
282
|
},
|
|
450
|
-
"
|
|
451
|
-
"type": "
|
|
283
|
+
"kmsKeyRef": {
|
|
284
|
+
"type": "string"
|
|
285
|
+
},
|
|
286
|
+
"issuer": {
|
|
287
|
+
"type": "string"
|
|
288
|
+
},
|
|
289
|
+
"kid": {
|
|
290
|
+
"type": "string"
|
|
452
291
|
}
|
|
453
292
|
},
|
|
454
293
|
"required": [
|
|
455
|
-
"
|
|
456
|
-
|
|
457
|
-
"byteLength",
|
|
458
|
-
"byteOffset",
|
|
459
|
-
"length"
|
|
460
|
-
],
|
|
461
|
-
"additionalProperties": {
|
|
462
|
-
"type": "number"
|
|
463
|
-
}
|
|
294
|
+
"identifier"
|
|
295
|
+
]
|
|
464
296
|
},
|
|
465
297
|
{
|
|
466
|
-
"type": "
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
298
|
+
"type": "object",
|
|
299
|
+
"properties": {
|
|
300
|
+
"noIssPayloadUpdate": {
|
|
301
|
+
"type": "boolean"
|
|
302
|
+
},
|
|
303
|
+
"noIdentifierInHeader": {
|
|
304
|
+
"type": "boolean"
|
|
305
|
+
},
|
|
306
|
+
"method": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"const": "x5c"
|
|
309
|
+
},
|
|
310
|
+
"identifier": {
|
|
311
|
+
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
312
|
+
},
|
|
313
|
+
"kmsKeyRef": {
|
|
314
|
+
"type": "string"
|
|
315
|
+
},
|
|
316
|
+
"issuer": {
|
|
317
|
+
"type": "string"
|
|
318
|
+
},
|
|
319
|
+
"kid": {
|
|
320
|
+
"type": "string"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"required": [
|
|
324
|
+
"identifier"
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"type": "object",
|
|
329
|
+
"properties": {
|
|
330
|
+
"noIssPayloadUpdate": {
|
|
331
|
+
"type": "boolean"
|
|
332
|
+
},
|
|
333
|
+
"noIdentifierInHeader": {
|
|
334
|
+
"type": "boolean"
|
|
335
|
+
},
|
|
336
|
+
"method": {
|
|
337
|
+
"type": "string",
|
|
338
|
+
"const": "did"
|
|
339
|
+
},
|
|
340
|
+
"identifier": {
|
|
341
|
+
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
342
|
+
},
|
|
343
|
+
"kmsKeyRef": {
|
|
344
|
+
"type": "string"
|
|
345
|
+
},
|
|
346
|
+
"issuer": {
|
|
347
|
+
"type": "string"
|
|
348
|
+
},
|
|
349
|
+
"kid": {
|
|
350
|
+
"type": "string"
|
|
351
|
+
},
|
|
352
|
+
"keyType": {
|
|
353
|
+
"$ref": "#/components/schemas/TKeyType"
|
|
354
|
+
},
|
|
355
|
+
"offlineWhenNoDIDRegistered": {
|
|
356
|
+
"type": "boolean"
|
|
357
|
+
},
|
|
358
|
+
"noVerificationMethodFallback": {
|
|
359
|
+
"type": "boolean"
|
|
360
|
+
},
|
|
361
|
+
"controllerKey": {
|
|
362
|
+
"type": "boolean"
|
|
363
|
+
},
|
|
364
|
+
"vmRelationship": {
|
|
365
|
+
"$ref": "#/components/schemas/DIDDocumentSection"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"required": [
|
|
369
|
+
"identifier"
|
|
370
|
+
]
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"type": "object",
|
|
374
|
+
"properties": {
|
|
375
|
+
"noIssPayloadUpdate": {
|
|
376
|
+
"type": "boolean"
|
|
377
|
+
},
|
|
378
|
+
"noIdentifierInHeader": {
|
|
379
|
+
"type": "boolean"
|
|
380
|
+
},
|
|
381
|
+
"method": {
|
|
382
|
+
"type": "string",
|
|
383
|
+
"const": "kid"
|
|
384
|
+
},
|
|
385
|
+
"identifier": {
|
|
386
|
+
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
387
|
+
},
|
|
388
|
+
"kmsKeyRef": {
|
|
389
|
+
"type": "string"
|
|
390
|
+
},
|
|
391
|
+
"issuer": {
|
|
392
|
+
"type": "string"
|
|
393
|
+
},
|
|
394
|
+
"kid": {
|
|
395
|
+
"type": "string"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"required": [
|
|
399
|
+
"identifier"
|
|
400
|
+
]
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"type": "object",
|
|
404
|
+
"properties": {
|
|
405
|
+
"noIssPayloadUpdate": {
|
|
406
|
+
"type": "boolean"
|
|
407
|
+
},
|
|
408
|
+
"noIdentifierInHeader": {
|
|
409
|
+
"type": "boolean"
|
|
410
|
+
},
|
|
411
|
+
"method": {
|
|
412
|
+
"type": "string",
|
|
413
|
+
"const": "key"
|
|
414
|
+
},
|
|
415
|
+
"identifier": {
|
|
416
|
+
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
417
|
+
},
|
|
418
|
+
"kmsKeyRef": {
|
|
419
|
+
"type": "string"
|
|
420
|
+
},
|
|
421
|
+
"issuer": {
|
|
422
|
+
"type": "string"
|
|
423
|
+
},
|
|
424
|
+
"kid": {
|
|
425
|
+
"type": "string"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"required": [
|
|
429
|
+
"identifier"
|
|
430
|
+
]
|
|
431
|
+
}
|
|
432
|
+
]
|
|
433
|
+
},
|
|
434
|
+
"protectedHeader": {
|
|
435
|
+
"$ref": "#/components/schemas/JwtHeader"
|
|
436
|
+
},
|
|
437
|
+
"payload": {
|
|
438
|
+
"anyOf": [
|
|
439
|
+
{
|
|
440
|
+
"$ref": "#/components/schemas/JwtPayload"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"type": "object",
|
|
444
|
+
"properties": {
|
|
445
|
+
"BYTES_PER_ELEMENT": {
|
|
446
|
+
"type": "number"
|
|
447
|
+
},
|
|
448
|
+
"buffer": {
|
|
449
|
+
"anyOf": [
|
|
450
|
+
{
|
|
451
|
+
"type": "object",
|
|
452
|
+
"properties": {
|
|
453
|
+
"byteLength": {
|
|
454
|
+
"type": "number"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"required": [
|
|
458
|
+
"byteLength"
|
|
459
|
+
]
|
|
460
|
+
},
|
|
461
|
+
{}
|
|
462
|
+
]
|
|
463
|
+
},
|
|
464
|
+
"byteLength": {
|
|
465
|
+
"type": "number"
|
|
466
|
+
},
|
|
467
|
+
"byteOffset": {
|
|
468
|
+
"type": "number"
|
|
469
|
+
},
|
|
470
|
+
"length": {
|
|
471
|
+
"type": "number"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"required": [
|
|
475
|
+
"BYTES_PER_ELEMENT",
|
|
476
|
+
"buffer",
|
|
477
|
+
"byteLength",
|
|
478
|
+
"byteOffset",
|
|
479
|
+
"length"
|
|
480
|
+
],
|
|
481
|
+
"additionalProperties": {
|
|
482
|
+
"type": "number"
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"type": "string"
|
|
487
|
+
}
|
|
488
|
+
]
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"required": [
|
|
492
|
+
"issuer",
|
|
493
|
+
"protectedHeader",
|
|
494
|
+
"payload"
|
|
495
|
+
]
|
|
496
|
+
},
|
|
497
|
+
"CreateJwsMode": {
|
|
498
|
+
"type": "string",
|
|
499
|
+
"enum": [
|
|
500
|
+
"x5c",
|
|
501
|
+
"kid",
|
|
502
|
+
"jwk",
|
|
503
|
+
"did",
|
|
504
|
+
"auto"
|
|
505
|
+
]
|
|
506
|
+
},
|
|
507
|
+
"JWK": {
|
|
508
|
+
"type": "object",
|
|
509
|
+
"properties": {
|
|
510
|
+
"kty": {
|
|
511
|
+
"type": "string"
|
|
512
|
+
},
|
|
513
|
+
"crv": {
|
|
514
|
+
"type": "string"
|
|
515
|
+
},
|
|
516
|
+
"x": {
|
|
517
|
+
"type": "string"
|
|
518
|
+
},
|
|
519
|
+
"y": {
|
|
520
|
+
"type": "string"
|
|
521
|
+
},
|
|
522
|
+
"e": {
|
|
523
|
+
"type": "string"
|
|
524
|
+
},
|
|
525
|
+
"n": {
|
|
526
|
+
"type": "string"
|
|
527
|
+
},
|
|
528
|
+
"d": {
|
|
529
|
+
"type": "string"
|
|
530
|
+
},
|
|
531
|
+
"dp": {
|
|
532
|
+
"type": "string"
|
|
533
|
+
},
|
|
534
|
+
"dq": {
|
|
535
|
+
"type": "string"
|
|
536
|
+
},
|
|
537
|
+
"ext": {
|
|
538
|
+
"type": "boolean"
|
|
539
|
+
},
|
|
540
|
+
"k": {
|
|
541
|
+
"type": "string"
|
|
542
|
+
},
|
|
543
|
+
"key_ops": {
|
|
544
|
+
"type": "array",
|
|
545
|
+
"items": {
|
|
546
|
+
"type": "string"
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
"kid": {
|
|
550
|
+
"type": "string"
|
|
551
|
+
},
|
|
552
|
+
"oth": {
|
|
553
|
+
"type": "array",
|
|
554
|
+
"items": {
|
|
555
|
+
"type": "object",
|
|
556
|
+
"properties": {
|
|
557
|
+
"d": {
|
|
558
|
+
"type": "string"
|
|
559
|
+
},
|
|
560
|
+
"r": {
|
|
561
|
+
"type": "string"
|
|
562
|
+
},
|
|
563
|
+
"t": {
|
|
564
|
+
"type": "string"
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
"p": {
|
|
570
|
+
"type": "string"
|
|
571
|
+
},
|
|
572
|
+
"q": {
|
|
573
|
+
"type": "string"
|
|
574
|
+
},
|
|
575
|
+
"qi": {
|
|
576
|
+
"type": "string"
|
|
577
|
+
},
|
|
578
|
+
"use": {
|
|
579
|
+
"type": "string"
|
|
580
|
+
},
|
|
581
|
+
"x5c": {
|
|
582
|
+
"type": "array",
|
|
583
|
+
"items": {
|
|
584
|
+
"type": "string"
|
|
585
|
+
},
|
|
586
|
+
"description": "JWK \"x5c\" (X.509 Certificate Chain) Parameter."
|
|
587
|
+
},
|
|
588
|
+
"x5t": {
|
|
589
|
+
"type": "string",
|
|
590
|
+
"description": "JWK \"x5t\" (X.509 Certificate SHA-1 Thumbprint) Parameter."
|
|
591
|
+
},
|
|
592
|
+
"x5t#S256": {
|
|
593
|
+
"type": "string",
|
|
594
|
+
"description": "\"x5t#S256\" (X.509 Certificate SHA-256 Thumbprint) Parameter."
|
|
595
|
+
},
|
|
596
|
+
"x5u": {
|
|
597
|
+
"type": "string",
|
|
598
|
+
"description": "JWK \"x5u\" (X.509 URL) Parameter."
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
"additionalProperties": {},
|
|
602
|
+
"required": [
|
|
603
|
+
"kty"
|
|
604
|
+
]
|
|
605
|
+
},
|
|
606
|
+
"ManagedIdentifierMethod": {
|
|
607
|
+
"type": "string",
|
|
608
|
+
"enum": [
|
|
609
|
+
"did",
|
|
610
|
+
"jwk",
|
|
611
|
+
"x5c",
|
|
612
|
+
"kid",
|
|
613
|
+
"key"
|
|
614
|
+
]
|
|
615
|
+
},
|
|
616
|
+
"ManagedIdentifierOpts": {
|
|
617
|
+
"anyOf": [
|
|
618
|
+
{
|
|
619
|
+
"type": "object",
|
|
620
|
+
"properties": {
|
|
621
|
+
"method": {
|
|
622
|
+
"type": "string",
|
|
623
|
+
"const": "jwk"
|
|
624
|
+
},
|
|
625
|
+
"identifier": {
|
|
626
|
+
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
627
|
+
},
|
|
628
|
+
"kmsKeyRef": {
|
|
629
|
+
"type": "string"
|
|
630
|
+
},
|
|
631
|
+
"issuer": {
|
|
632
|
+
"type": "string"
|
|
633
|
+
},
|
|
634
|
+
"kid": {
|
|
635
|
+
"type": "string"
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
"required": [
|
|
639
|
+
"identifier"
|
|
640
|
+
]
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"type": "object",
|
|
644
|
+
"properties": {
|
|
645
|
+
"method": {
|
|
646
|
+
"type": "string",
|
|
647
|
+
"const": "x5c"
|
|
648
|
+
},
|
|
649
|
+
"identifier": {
|
|
650
|
+
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
651
|
+
},
|
|
652
|
+
"kmsKeyRef": {
|
|
653
|
+
"type": "string"
|
|
654
|
+
},
|
|
655
|
+
"issuer": {
|
|
656
|
+
"type": "string"
|
|
657
|
+
},
|
|
658
|
+
"kid": {
|
|
659
|
+
"type": "string"
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
"required": [
|
|
663
|
+
"identifier"
|
|
664
|
+
]
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"type": "object",
|
|
668
|
+
"properties": {
|
|
669
|
+
"method": {
|
|
670
|
+
"type": "string",
|
|
671
|
+
"const": "did"
|
|
672
|
+
},
|
|
673
|
+
"identifier": {
|
|
674
|
+
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
675
|
+
},
|
|
676
|
+
"kmsKeyRef": {
|
|
677
|
+
"type": "string"
|
|
678
|
+
},
|
|
679
|
+
"issuer": {
|
|
680
|
+
"type": "string"
|
|
681
|
+
},
|
|
682
|
+
"kid": {
|
|
683
|
+
"type": "string"
|
|
684
|
+
},
|
|
685
|
+
"keyType": {
|
|
686
|
+
"$ref": "#/components/schemas/TKeyType"
|
|
687
|
+
},
|
|
688
|
+
"offlineWhenNoDIDRegistered": {
|
|
689
|
+
"type": "boolean"
|
|
690
|
+
},
|
|
691
|
+
"noVerificationMethodFallback": {
|
|
692
|
+
"type": "boolean"
|
|
693
|
+
},
|
|
694
|
+
"controllerKey": {
|
|
695
|
+
"type": "boolean"
|
|
696
|
+
},
|
|
697
|
+
"vmRelationship": {
|
|
698
|
+
"$ref": "#/components/schemas/DIDDocumentSection"
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
"required": [
|
|
702
|
+
"identifier"
|
|
703
|
+
]
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"type": "object",
|
|
707
|
+
"properties": {
|
|
708
|
+
"method": {
|
|
709
|
+
"type": "string",
|
|
710
|
+
"const": "kid"
|
|
711
|
+
},
|
|
712
|
+
"identifier": {
|
|
713
|
+
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
714
|
+
},
|
|
715
|
+
"kmsKeyRef": {
|
|
716
|
+
"type": "string"
|
|
717
|
+
},
|
|
718
|
+
"issuer": {
|
|
719
|
+
"type": "string"
|
|
720
|
+
},
|
|
721
|
+
"kid": {
|
|
722
|
+
"type": "string"
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
"required": [
|
|
726
|
+
"identifier"
|
|
727
|
+
]
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"type": "object",
|
|
731
|
+
"properties": {
|
|
732
|
+
"method": {
|
|
733
|
+
"type": "string",
|
|
734
|
+
"const": "key"
|
|
735
|
+
},
|
|
736
|
+
"identifier": {
|
|
737
|
+
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
738
|
+
},
|
|
739
|
+
"kmsKeyRef": {
|
|
740
|
+
"type": "string"
|
|
741
|
+
},
|
|
742
|
+
"issuer": {
|
|
743
|
+
"type": "string"
|
|
744
|
+
},
|
|
745
|
+
"kid": {
|
|
746
|
+
"type": "string"
|
|
747
|
+
}
|
|
748
|
+
},
|
|
749
|
+
"required": [
|
|
750
|
+
"identifier"
|
|
751
|
+
]
|
|
752
|
+
}
|
|
753
|
+
]
|
|
754
|
+
},
|
|
487
755
|
"ManagedIdentifierType": {
|
|
488
756
|
"anyOf": [
|
|
489
757
|
{
|
|
@@ -660,109 +928,10 @@
|
|
|
660
928
|
"type": "string"
|
|
661
929
|
},
|
|
662
930
|
{
|
|
663
|
-
"type": "object"
|
|
664
|
-
}
|
|
665
|
-
],
|
|
666
|
-
"description": "Represents a service endpoint URL or a map of URLs"
|
|
667
|
-
},
|
|
668
|
-
"JWK": {
|
|
669
|
-
"type": "object",
|
|
670
|
-
"properties": {
|
|
671
|
-
"kty": {
|
|
672
|
-
"type": "string"
|
|
673
|
-
},
|
|
674
|
-
"crv": {
|
|
675
|
-
"type": "string"
|
|
676
|
-
},
|
|
677
|
-
"x": {
|
|
678
|
-
"type": "string"
|
|
679
|
-
},
|
|
680
|
-
"y": {
|
|
681
|
-
"type": "string"
|
|
682
|
-
},
|
|
683
|
-
"e": {
|
|
684
|
-
"type": "string"
|
|
685
|
-
},
|
|
686
|
-
"n": {
|
|
687
|
-
"type": "string"
|
|
688
|
-
},
|
|
689
|
-
"d": {
|
|
690
|
-
"type": "string"
|
|
691
|
-
},
|
|
692
|
-
"dp": {
|
|
693
|
-
"type": "string"
|
|
694
|
-
},
|
|
695
|
-
"dq": {
|
|
696
|
-
"type": "string"
|
|
697
|
-
},
|
|
698
|
-
"ext": {
|
|
699
|
-
"type": "boolean"
|
|
700
|
-
},
|
|
701
|
-
"k": {
|
|
702
|
-
"type": "string"
|
|
703
|
-
},
|
|
704
|
-
"key_ops": {
|
|
705
|
-
"type": "array",
|
|
706
|
-
"items": {
|
|
707
|
-
"type": "string"
|
|
708
|
-
}
|
|
709
|
-
},
|
|
710
|
-
"kid": {
|
|
711
|
-
"type": "string"
|
|
712
|
-
},
|
|
713
|
-
"oth": {
|
|
714
|
-
"type": "array",
|
|
715
|
-
"items": {
|
|
716
|
-
"type": "object",
|
|
717
|
-
"properties": {
|
|
718
|
-
"d": {
|
|
719
|
-
"type": "string"
|
|
720
|
-
},
|
|
721
|
-
"r": {
|
|
722
|
-
"type": "string"
|
|
723
|
-
},
|
|
724
|
-
"t": {
|
|
725
|
-
"type": "string"
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
},
|
|
730
|
-
"p": {
|
|
731
|
-
"type": "string"
|
|
732
|
-
},
|
|
733
|
-
"q": {
|
|
734
|
-
"type": "string"
|
|
735
|
-
},
|
|
736
|
-
"qi": {
|
|
737
|
-
"type": "string"
|
|
738
|
-
},
|
|
739
|
-
"use": {
|
|
740
|
-
"type": "string"
|
|
741
|
-
},
|
|
742
|
-
"x5c": {
|
|
743
|
-
"type": "array",
|
|
744
|
-
"items": {
|
|
745
|
-
"type": "string"
|
|
746
|
-
},
|
|
747
|
-
"description": "JWK \"x5c\" (X.509 Certificate Chain) Parameter."
|
|
748
|
-
},
|
|
749
|
-
"x5t": {
|
|
750
|
-
"type": "string",
|
|
751
|
-
"description": "JWK \"x5t\" (X.509 Certificate SHA-1 Thumbprint) Parameter."
|
|
752
|
-
},
|
|
753
|
-
"x5t#S256": {
|
|
754
|
-
"type": "string",
|
|
755
|
-
"description": "\"x5t#S256\" (X.509 Certificate SHA-256 Thumbprint) Parameter."
|
|
756
|
-
},
|
|
757
|
-
"x5u": {
|
|
758
|
-
"type": "string",
|
|
759
|
-
"description": "JWK \"x5u\" (X.509 URL) Parameter."
|
|
931
|
+
"type": "object"
|
|
760
932
|
}
|
|
761
|
-
|
|
762
|
-
"
|
|
763
|
-
"required": [
|
|
764
|
-
"kty"
|
|
765
|
-
]
|
|
933
|
+
],
|
|
934
|
+
"description": "Represents a service endpoint URL or a map of URLs"
|
|
766
935
|
},
|
|
767
936
|
"DIDDocumentSection": {
|
|
768
937
|
"type": "string",
|
|
@@ -778,16 +947,6 @@
|
|
|
778
947
|
],
|
|
779
948
|
"description": "Refers to a section of a DID document. Either the list of verification methods or services or one of the verification relationships.\n\nSee {@link https://www.w3.org/TR/did-core/#verification-relationships | verification relationships }"
|
|
780
949
|
},
|
|
781
|
-
"ManagedIdentifierMethod": {
|
|
782
|
-
"type": "string",
|
|
783
|
-
"enum": [
|
|
784
|
-
"did",
|
|
785
|
-
"jwk",
|
|
786
|
-
"x5c",
|
|
787
|
-
"kid",
|
|
788
|
-
"key"
|
|
789
|
-
]
|
|
790
|
-
},
|
|
791
950
|
"JwtHeader": {
|
|
792
951
|
"type": "object",
|
|
793
952
|
"properties": {
|
|
@@ -809,245 +968,80 @@
|
|
|
809
968
|
"type": "string"
|
|
810
969
|
}
|
|
811
970
|
}
|
|
812
|
-
},
|
|
813
|
-
"additionalProperties": {}
|
|
814
|
-
},
|
|
815
|
-
"JwtPayload": {
|
|
816
|
-
"type": "object",
|
|
817
|
-
"additionalProperties": {},
|
|
818
|
-
"properties": {
|
|
819
|
-
"iss": {
|
|
820
|
-
"type": "string"
|
|
821
|
-
},
|
|
822
|
-
"sub": {
|
|
823
|
-
"type": "string"
|
|
824
|
-
},
|
|
825
|
-
"aud": {
|
|
826
|
-
"anyOf": [
|
|
827
|
-
{
|
|
828
|
-
"type": "array",
|
|
829
|
-
"items": {
|
|
830
|
-
"type": "string"
|
|
831
|
-
}
|
|
832
|
-
},
|
|
833
|
-
{
|
|
834
|
-
"type": "string"
|
|
835
|
-
}
|
|
836
|
-
]
|
|
837
|
-
},
|
|
838
|
-
"exp": {
|
|
839
|
-
"type": "number"
|
|
840
|
-
},
|
|
841
|
-
"nbf": {
|
|
842
|
-
"type": "number"
|
|
843
|
-
},
|
|
844
|
-
"iat": {
|
|
845
|
-
"type": "number"
|
|
846
|
-
},
|
|
847
|
-
"jti": {
|
|
848
|
-
"type": "string"
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
},
|
|
852
|
-
"JwsCompactResult": {
|
|
853
|
-
"type": "object",
|
|
854
|
-
"properties": {
|
|
855
|
-
"jwt": {
|
|
856
|
-
"$ref": "#/components/schemas/JwsCompact"
|
|
857
|
-
}
|
|
858
|
-
},
|
|
859
|
-
"required": [
|
|
860
|
-
"jwt"
|
|
861
|
-
]
|
|
862
|
-
},
|
|
863
|
-
"JwsCompact": {
|
|
864
|
-
"type": "string"
|
|
865
|
-
},
|
|
866
|
-
"CreateJwsFlattenedArgs": {
|
|
867
|
-
"$ref": "#/components/schemas/CreateJwsJsonArgs"
|
|
868
|
-
},
|
|
869
|
-
"CreateJwsJsonArgs": {
|
|
870
|
-
"type": "object",
|
|
871
|
-
"properties": {
|
|
872
|
-
"unprotectedHeader": {
|
|
873
|
-
"$ref": "#/components/schemas/JwtHeader"
|
|
874
|
-
},
|
|
875
|
-
"existingSignatures": {
|
|
876
|
-
"type": "array",
|
|
877
|
-
"items": {
|
|
878
|
-
"$ref": "#/components/schemas/JwsJsonSignature"
|
|
879
|
-
}
|
|
880
|
-
},
|
|
881
|
-
"mode": {
|
|
882
|
-
"$ref": "#/components/schemas/CreateJwsMode"
|
|
883
|
-
},
|
|
884
|
-
"issuer": {
|
|
885
|
-
"anyOf": [
|
|
886
|
-
{
|
|
887
|
-
"type": "object",
|
|
888
|
-
"properties": {
|
|
889
|
-
"noIssPayloadUpdate": {
|
|
890
|
-
"type": "boolean"
|
|
891
|
-
},
|
|
892
|
-
"noIdentifierInHeader": {
|
|
893
|
-
"type": "boolean"
|
|
894
|
-
},
|
|
895
|
-
"method": {
|
|
896
|
-
"type": "string",
|
|
897
|
-
"const": "jwk"
|
|
898
|
-
},
|
|
899
|
-
"identifier": {
|
|
900
|
-
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
901
|
-
},
|
|
902
|
-
"kmsKeyRef": {
|
|
903
|
-
"type": "string"
|
|
904
|
-
},
|
|
905
|
-
"issuer": {
|
|
906
|
-
"type": "string"
|
|
907
|
-
},
|
|
908
|
-
"kid": {
|
|
909
|
-
"type": "string"
|
|
910
|
-
}
|
|
911
|
-
},
|
|
912
|
-
"required": [
|
|
913
|
-
"identifier"
|
|
914
|
-
]
|
|
915
|
-
},
|
|
916
|
-
{
|
|
917
|
-
"type": "object",
|
|
918
|
-
"properties": {
|
|
919
|
-
"noIssPayloadUpdate": {
|
|
920
|
-
"type": "boolean"
|
|
921
|
-
},
|
|
922
|
-
"noIdentifierInHeader": {
|
|
923
|
-
"type": "boolean"
|
|
924
|
-
},
|
|
925
|
-
"method": {
|
|
926
|
-
"type": "string",
|
|
927
|
-
"const": "x5c"
|
|
928
|
-
},
|
|
929
|
-
"identifier": {
|
|
930
|
-
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
931
|
-
},
|
|
932
|
-
"kmsKeyRef": {
|
|
933
|
-
"type": "string"
|
|
934
|
-
},
|
|
935
|
-
"issuer": {
|
|
936
|
-
"type": "string"
|
|
937
|
-
},
|
|
938
|
-
"kid": {
|
|
939
|
-
"type": "string"
|
|
940
|
-
}
|
|
941
|
-
},
|
|
942
|
-
"required": [
|
|
943
|
-
"identifier"
|
|
944
|
-
]
|
|
945
|
-
},
|
|
946
|
-
{
|
|
947
|
-
"type": "object",
|
|
948
|
-
"properties": {
|
|
949
|
-
"noIssPayloadUpdate": {
|
|
950
|
-
"type": "boolean"
|
|
951
|
-
},
|
|
952
|
-
"noIdentifierInHeader": {
|
|
953
|
-
"type": "boolean"
|
|
954
|
-
},
|
|
955
|
-
"method": {
|
|
956
|
-
"type": "string",
|
|
957
|
-
"const": "did"
|
|
958
|
-
},
|
|
959
|
-
"identifier": {
|
|
960
|
-
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
961
|
-
},
|
|
962
|
-
"kmsKeyRef": {
|
|
963
|
-
"type": "string"
|
|
964
|
-
},
|
|
965
|
-
"issuer": {
|
|
966
|
-
"type": "string"
|
|
967
|
-
},
|
|
968
|
-
"kid": {
|
|
969
|
-
"type": "string"
|
|
970
|
-
},
|
|
971
|
-
"keyType": {
|
|
972
|
-
"$ref": "#/components/schemas/TKeyType"
|
|
973
|
-
},
|
|
974
|
-
"offlineWhenNoDIDRegistered": {
|
|
975
|
-
"type": "boolean"
|
|
976
|
-
},
|
|
977
|
-
"noVerificationMethodFallback": {
|
|
978
|
-
"type": "boolean"
|
|
979
|
-
},
|
|
980
|
-
"controllerKey": {
|
|
981
|
-
"type": "boolean"
|
|
982
|
-
},
|
|
983
|
-
"vmRelationship": {
|
|
984
|
-
"$ref": "#/components/schemas/DIDDocumentSection"
|
|
985
|
-
}
|
|
986
|
-
},
|
|
987
|
-
"required": [
|
|
988
|
-
"identifier"
|
|
989
|
-
]
|
|
990
|
-
},
|
|
991
|
-
{
|
|
992
|
-
"type": "object",
|
|
993
|
-
"properties": {
|
|
994
|
-
"noIssPayloadUpdate": {
|
|
995
|
-
"type": "boolean"
|
|
996
|
-
},
|
|
997
|
-
"noIdentifierInHeader": {
|
|
998
|
-
"type": "boolean"
|
|
999
|
-
},
|
|
1000
|
-
"method": {
|
|
1001
|
-
"type": "string",
|
|
1002
|
-
"const": "kid"
|
|
1003
|
-
},
|
|
1004
|
-
"identifier": {
|
|
1005
|
-
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
1006
|
-
},
|
|
1007
|
-
"kmsKeyRef": {
|
|
1008
|
-
"type": "string"
|
|
1009
|
-
},
|
|
1010
|
-
"issuer": {
|
|
1011
|
-
"type": "string"
|
|
1012
|
-
},
|
|
1013
|
-
"kid": {
|
|
1014
|
-
"type": "string"
|
|
1015
|
-
}
|
|
1016
|
-
},
|
|
1017
|
-
"required": [
|
|
1018
|
-
"identifier"
|
|
1019
|
-
]
|
|
1020
|
-
},
|
|
1021
|
-
{
|
|
1022
|
-
"type": "object",
|
|
1023
|
-
"properties": {
|
|
1024
|
-
"noIssPayloadUpdate": {
|
|
1025
|
-
"type": "boolean"
|
|
1026
|
-
},
|
|
1027
|
-
"noIdentifierInHeader": {
|
|
1028
|
-
"type": "boolean"
|
|
1029
|
-
},
|
|
1030
|
-
"method": {
|
|
1031
|
-
"type": "string",
|
|
1032
|
-
"const": "key"
|
|
1033
|
-
},
|
|
1034
|
-
"identifier": {
|
|
1035
|
-
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
1036
|
-
},
|
|
1037
|
-
"kmsKeyRef": {
|
|
1038
|
-
"type": "string"
|
|
1039
|
-
},
|
|
1040
|
-
"issuer": {
|
|
1041
|
-
"type": "string"
|
|
1042
|
-
},
|
|
1043
|
-
"kid": {
|
|
1044
|
-
"type": "string"
|
|
1045
|
-
}
|
|
1046
|
-
},
|
|
1047
|
-
"required": [
|
|
1048
|
-
"identifier"
|
|
1049
|
-
]
|
|
971
|
+
},
|
|
972
|
+
"additionalProperties": {}
|
|
973
|
+
},
|
|
974
|
+
"JwtPayload": {
|
|
975
|
+
"type": "object",
|
|
976
|
+
"additionalProperties": {},
|
|
977
|
+
"properties": {
|
|
978
|
+
"iss": {
|
|
979
|
+
"type": "string"
|
|
980
|
+
},
|
|
981
|
+
"sub": {
|
|
982
|
+
"type": "string"
|
|
983
|
+
},
|
|
984
|
+
"aud": {
|
|
985
|
+
"anyOf": [
|
|
986
|
+
{
|
|
987
|
+
"type": "array",
|
|
988
|
+
"items": {
|
|
989
|
+
"type": "string"
|
|
990
|
+
}
|
|
1050
991
|
},
|
|
992
|
+
{
|
|
993
|
+
"type": "string"
|
|
994
|
+
}
|
|
995
|
+
]
|
|
996
|
+
},
|
|
997
|
+
"exp": {
|
|
998
|
+
"type": "number"
|
|
999
|
+
},
|
|
1000
|
+
"nbf": {
|
|
1001
|
+
"type": "number"
|
|
1002
|
+
},
|
|
1003
|
+
"iat": {
|
|
1004
|
+
"type": "number"
|
|
1005
|
+
},
|
|
1006
|
+
"jti": {
|
|
1007
|
+
"type": "string"
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
1011
|
+
"JwsCompactResult": {
|
|
1012
|
+
"type": "object",
|
|
1013
|
+
"properties": {
|
|
1014
|
+
"jwt": {
|
|
1015
|
+
"$ref": "#/components/schemas/JwsCompact"
|
|
1016
|
+
}
|
|
1017
|
+
},
|
|
1018
|
+
"required": [
|
|
1019
|
+
"jwt"
|
|
1020
|
+
]
|
|
1021
|
+
},
|
|
1022
|
+
"JwsCompact": {
|
|
1023
|
+
"type": "string"
|
|
1024
|
+
},
|
|
1025
|
+
"CreateJwsFlattenedArgs": {
|
|
1026
|
+
"$ref": "#/components/schemas/CreateJwsJsonArgs"
|
|
1027
|
+
},
|
|
1028
|
+
"CreateJwsJsonArgs": {
|
|
1029
|
+
"type": "object",
|
|
1030
|
+
"properties": {
|
|
1031
|
+
"unprotectedHeader": {
|
|
1032
|
+
"$ref": "#/components/schemas/JwtHeader"
|
|
1033
|
+
},
|
|
1034
|
+
"existingSignatures": {
|
|
1035
|
+
"type": "array",
|
|
1036
|
+
"items": {
|
|
1037
|
+
"$ref": "#/components/schemas/JwsJsonSignature"
|
|
1038
|
+
}
|
|
1039
|
+
},
|
|
1040
|
+
"mode": {
|
|
1041
|
+
"$ref": "#/components/schemas/CreateJwsMode"
|
|
1042
|
+
},
|
|
1043
|
+
"issuer": {
|
|
1044
|
+
"anyOf": [
|
|
1051
1045
|
{
|
|
1052
1046
|
"type": "object",
|
|
1053
1047
|
"properties": {
|
|
@@ -1069,6 +1063,9 @@
|
|
|
1069
1063
|
"method": {
|
|
1070
1064
|
"$ref": "#/components/schemas/ManagedIdentifierMethod"
|
|
1071
1065
|
},
|
|
1066
|
+
"opts": {
|
|
1067
|
+
"$ref": "#/components/schemas/ManagedIdentifierOpts"
|
|
1068
|
+
},
|
|
1072
1069
|
"key": {
|
|
1073
1070
|
"$ref": "#/components/schemas/IKey"
|
|
1074
1071
|
},
|
|
@@ -1093,6 +1090,7 @@
|
|
|
1093
1090
|
"key",
|
|
1094
1091
|
"kmsKeyRef",
|
|
1095
1092
|
"method",
|
|
1093
|
+
"opts",
|
|
1096
1094
|
"x5c"
|
|
1097
1095
|
]
|
|
1098
1096
|
},
|
|
@@ -1117,6 +1115,9 @@
|
|
|
1117
1115
|
"method": {
|
|
1118
1116
|
"$ref": "#/components/schemas/ManagedIdentifierMethod"
|
|
1119
1117
|
},
|
|
1118
|
+
"opts": {
|
|
1119
|
+
"$ref": "#/components/schemas/ManagedIdentifierOpts"
|
|
1120
|
+
},
|
|
1120
1121
|
"key": {
|
|
1121
1122
|
"$ref": "#/components/schemas/IKey"
|
|
1122
1123
|
},
|
|
@@ -1155,7 +1156,8 @@
|
|
|
1155
1156
|
"keys",
|
|
1156
1157
|
"kid",
|
|
1157
1158
|
"kmsKeyRef",
|
|
1158
|
-
"method"
|
|
1159
|
+
"method",
|
|
1160
|
+
"opts"
|
|
1159
1161
|
]
|
|
1160
1162
|
},
|
|
1161
1163
|
{
|
|
@@ -1179,6 +1181,9 @@
|
|
|
1179
1181
|
"method": {
|
|
1180
1182
|
"$ref": "#/components/schemas/ManagedIdentifierMethod"
|
|
1181
1183
|
},
|
|
1184
|
+
"opts": {
|
|
1185
|
+
"$ref": "#/components/schemas/ManagedIdentifierOpts"
|
|
1186
|
+
},
|
|
1182
1187
|
"key": {
|
|
1183
1188
|
"$ref": "#/components/schemas/IKey"
|
|
1184
1189
|
},
|
|
@@ -1194,7 +1199,8 @@
|
|
|
1194
1199
|
"jwkThumbprint",
|
|
1195
1200
|
"key",
|
|
1196
1201
|
"kmsKeyRef",
|
|
1197
|
-
"method"
|
|
1202
|
+
"method",
|
|
1203
|
+
"opts"
|
|
1198
1204
|
]
|
|
1199
1205
|
},
|
|
1200
1206
|
{
|
|
@@ -1218,6 +1224,9 @@
|
|
|
1218
1224
|
"method": {
|
|
1219
1225
|
"$ref": "#/components/schemas/ManagedIdentifierMethod"
|
|
1220
1226
|
},
|
|
1227
|
+
"opts": {
|
|
1228
|
+
"$ref": "#/components/schemas/ManagedIdentifierOpts"
|
|
1229
|
+
},
|
|
1221
1230
|
"key": {
|
|
1222
1231
|
"$ref": "#/components/schemas/IKey"
|
|
1223
1232
|
},
|
|
@@ -1235,7 +1244,8 @@
|
|
|
1235
1244
|
"key",
|
|
1236
1245
|
"kid",
|
|
1237
1246
|
"kmsKeyRef",
|
|
1238
|
-
"method"
|
|
1247
|
+
"method",
|
|
1248
|
+
"opts"
|
|
1239
1249
|
]
|
|
1240
1250
|
},
|
|
1241
1251
|
{
|
|
@@ -1259,6 +1269,9 @@
|
|
|
1259
1269
|
"method": {
|
|
1260
1270
|
"$ref": "#/components/schemas/ManagedIdentifierMethod"
|
|
1261
1271
|
},
|
|
1272
|
+
"opts": {
|
|
1273
|
+
"$ref": "#/components/schemas/ManagedIdentifierOpts"
|
|
1274
|
+
},
|
|
1262
1275
|
"key": {
|
|
1263
1276
|
"$ref": "#/components/schemas/IKey"
|
|
1264
1277
|
},
|
|
@@ -1276,7 +1289,173 @@
|
|
|
1276
1289
|
"key",
|
|
1277
1290
|
"kid",
|
|
1278
1291
|
"kmsKeyRef",
|
|
1279
|
-
"method"
|
|
1292
|
+
"method",
|
|
1293
|
+
"opts"
|
|
1294
|
+
]
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
"type": "object",
|
|
1298
|
+
"properties": {
|
|
1299
|
+
"noIssPayloadUpdate": {
|
|
1300
|
+
"type": "boolean"
|
|
1301
|
+
},
|
|
1302
|
+
"noIdentifierInHeader": {
|
|
1303
|
+
"type": "boolean"
|
|
1304
|
+
},
|
|
1305
|
+
"method": {
|
|
1306
|
+
"type": "string",
|
|
1307
|
+
"const": "jwk"
|
|
1308
|
+
},
|
|
1309
|
+
"identifier": {
|
|
1310
|
+
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
1311
|
+
},
|
|
1312
|
+
"kmsKeyRef": {
|
|
1313
|
+
"type": "string"
|
|
1314
|
+
},
|
|
1315
|
+
"issuer": {
|
|
1316
|
+
"type": "string"
|
|
1317
|
+
},
|
|
1318
|
+
"kid": {
|
|
1319
|
+
"type": "string"
|
|
1320
|
+
}
|
|
1321
|
+
},
|
|
1322
|
+
"required": [
|
|
1323
|
+
"identifier"
|
|
1324
|
+
]
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"type": "object",
|
|
1328
|
+
"properties": {
|
|
1329
|
+
"noIssPayloadUpdate": {
|
|
1330
|
+
"type": "boolean"
|
|
1331
|
+
},
|
|
1332
|
+
"noIdentifierInHeader": {
|
|
1333
|
+
"type": "boolean"
|
|
1334
|
+
},
|
|
1335
|
+
"method": {
|
|
1336
|
+
"type": "string",
|
|
1337
|
+
"const": "x5c"
|
|
1338
|
+
},
|
|
1339
|
+
"identifier": {
|
|
1340
|
+
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
1341
|
+
},
|
|
1342
|
+
"kmsKeyRef": {
|
|
1343
|
+
"type": "string"
|
|
1344
|
+
},
|
|
1345
|
+
"issuer": {
|
|
1346
|
+
"type": "string"
|
|
1347
|
+
},
|
|
1348
|
+
"kid": {
|
|
1349
|
+
"type": "string"
|
|
1350
|
+
}
|
|
1351
|
+
},
|
|
1352
|
+
"required": [
|
|
1353
|
+
"identifier"
|
|
1354
|
+
]
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
"type": "object",
|
|
1358
|
+
"properties": {
|
|
1359
|
+
"noIssPayloadUpdate": {
|
|
1360
|
+
"type": "boolean"
|
|
1361
|
+
},
|
|
1362
|
+
"noIdentifierInHeader": {
|
|
1363
|
+
"type": "boolean"
|
|
1364
|
+
},
|
|
1365
|
+
"method": {
|
|
1366
|
+
"type": "string",
|
|
1367
|
+
"const": "did"
|
|
1368
|
+
},
|
|
1369
|
+
"identifier": {
|
|
1370
|
+
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
1371
|
+
},
|
|
1372
|
+
"kmsKeyRef": {
|
|
1373
|
+
"type": "string"
|
|
1374
|
+
},
|
|
1375
|
+
"issuer": {
|
|
1376
|
+
"type": "string"
|
|
1377
|
+
},
|
|
1378
|
+
"kid": {
|
|
1379
|
+
"type": "string"
|
|
1380
|
+
},
|
|
1381
|
+
"keyType": {
|
|
1382
|
+
"$ref": "#/components/schemas/TKeyType"
|
|
1383
|
+
},
|
|
1384
|
+
"offlineWhenNoDIDRegistered": {
|
|
1385
|
+
"type": "boolean"
|
|
1386
|
+
},
|
|
1387
|
+
"noVerificationMethodFallback": {
|
|
1388
|
+
"type": "boolean"
|
|
1389
|
+
},
|
|
1390
|
+
"controllerKey": {
|
|
1391
|
+
"type": "boolean"
|
|
1392
|
+
},
|
|
1393
|
+
"vmRelationship": {
|
|
1394
|
+
"$ref": "#/components/schemas/DIDDocumentSection"
|
|
1395
|
+
}
|
|
1396
|
+
},
|
|
1397
|
+
"required": [
|
|
1398
|
+
"identifier"
|
|
1399
|
+
]
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
"type": "object",
|
|
1403
|
+
"properties": {
|
|
1404
|
+
"noIssPayloadUpdate": {
|
|
1405
|
+
"type": "boolean"
|
|
1406
|
+
},
|
|
1407
|
+
"noIdentifierInHeader": {
|
|
1408
|
+
"type": "boolean"
|
|
1409
|
+
},
|
|
1410
|
+
"method": {
|
|
1411
|
+
"type": "string",
|
|
1412
|
+
"const": "kid"
|
|
1413
|
+
},
|
|
1414
|
+
"identifier": {
|
|
1415
|
+
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
1416
|
+
},
|
|
1417
|
+
"kmsKeyRef": {
|
|
1418
|
+
"type": "string"
|
|
1419
|
+
},
|
|
1420
|
+
"issuer": {
|
|
1421
|
+
"type": "string"
|
|
1422
|
+
},
|
|
1423
|
+
"kid": {
|
|
1424
|
+
"type": "string"
|
|
1425
|
+
}
|
|
1426
|
+
},
|
|
1427
|
+
"required": [
|
|
1428
|
+
"identifier"
|
|
1429
|
+
]
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
"type": "object",
|
|
1433
|
+
"properties": {
|
|
1434
|
+
"noIssPayloadUpdate": {
|
|
1435
|
+
"type": "boolean"
|
|
1436
|
+
},
|
|
1437
|
+
"noIdentifierInHeader": {
|
|
1438
|
+
"type": "boolean"
|
|
1439
|
+
},
|
|
1440
|
+
"method": {
|
|
1441
|
+
"type": "string",
|
|
1442
|
+
"const": "key"
|
|
1443
|
+
},
|
|
1444
|
+
"identifier": {
|
|
1445
|
+
"$ref": "#/components/schemas/ManagedIdentifierType"
|
|
1446
|
+
},
|
|
1447
|
+
"kmsKeyRef": {
|
|
1448
|
+
"type": "string"
|
|
1449
|
+
},
|
|
1450
|
+
"issuer": {
|
|
1451
|
+
"type": "string"
|
|
1452
|
+
},
|
|
1453
|
+
"kid": {
|
|
1454
|
+
"type": "string"
|
|
1455
|
+
}
|
|
1456
|
+
},
|
|
1457
|
+
"required": [
|
|
1458
|
+
"identifier"
|
|
1280
1459
|
]
|
|
1281
1460
|
}
|
|
1282
1461
|
]
|
|
@@ -1514,6 +1693,9 @@
|
|
|
1514
1693
|
"method": {
|
|
1515
1694
|
"$ref": "#/components/schemas/ManagedIdentifierMethod"
|
|
1516
1695
|
},
|
|
1696
|
+
"opts": {
|
|
1697
|
+
"$ref": "#/components/schemas/ManagedIdentifierOpts"
|
|
1698
|
+
},
|
|
1517
1699
|
"key": {
|
|
1518
1700
|
"$ref": "#/components/schemas/IKey"
|
|
1519
1701
|
},
|
|
@@ -1538,6 +1720,7 @@
|
|
|
1538
1720
|
"key",
|
|
1539
1721
|
"kmsKeyRef",
|
|
1540
1722
|
"method",
|
|
1723
|
+
"opts",
|
|
1541
1724
|
"x5c"
|
|
1542
1725
|
]
|
|
1543
1726
|
},
|
|
@@ -1556,6 +1739,9 @@
|
|
|
1556
1739
|
"method": {
|
|
1557
1740
|
"$ref": "#/components/schemas/ManagedIdentifierMethod"
|
|
1558
1741
|
},
|
|
1742
|
+
"opts": {
|
|
1743
|
+
"$ref": "#/components/schemas/ManagedIdentifierOpts"
|
|
1744
|
+
},
|
|
1559
1745
|
"key": {
|
|
1560
1746
|
"$ref": "#/components/schemas/IKey"
|
|
1561
1747
|
},
|
|
@@ -1594,7 +1780,8 @@
|
|
|
1594
1780
|
"keys",
|
|
1595
1781
|
"kid",
|
|
1596
1782
|
"kmsKeyRef",
|
|
1597
|
-
"method"
|
|
1783
|
+
"method",
|
|
1784
|
+
"opts"
|
|
1598
1785
|
]
|
|
1599
1786
|
},
|
|
1600
1787
|
{
|
|
@@ -1612,6 +1799,9 @@
|
|
|
1612
1799
|
"method": {
|
|
1613
1800
|
"$ref": "#/components/schemas/ManagedIdentifierMethod"
|
|
1614
1801
|
},
|
|
1802
|
+
"opts": {
|
|
1803
|
+
"$ref": "#/components/schemas/ManagedIdentifierOpts"
|
|
1804
|
+
},
|
|
1615
1805
|
"key": {
|
|
1616
1806
|
"$ref": "#/components/schemas/IKey"
|
|
1617
1807
|
},
|
|
@@ -1627,7 +1817,8 @@
|
|
|
1627
1817
|
"jwkThumbprint",
|
|
1628
1818
|
"key",
|
|
1629
1819
|
"kmsKeyRef",
|
|
1630
|
-
"method"
|
|
1820
|
+
"method",
|
|
1821
|
+
"opts"
|
|
1631
1822
|
]
|
|
1632
1823
|
},
|
|
1633
1824
|
{
|
|
@@ -1645,6 +1836,9 @@
|
|
|
1645
1836
|
"method": {
|
|
1646
1837
|
"$ref": "#/components/schemas/ManagedIdentifierMethod"
|
|
1647
1838
|
},
|
|
1839
|
+
"opts": {
|
|
1840
|
+
"$ref": "#/components/schemas/ManagedIdentifierOpts"
|
|
1841
|
+
},
|
|
1648
1842
|
"key": {
|
|
1649
1843
|
"$ref": "#/components/schemas/IKey"
|
|
1650
1844
|
},
|
|
@@ -1662,7 +1856,8 @@
|
|
|
1662
1856
|
"key",
|
|
1663
1857
|
"kid",
|
|
1664
1858
|
"kmsKeyRef",
|
|
1665
|
-
"method"
|
|
1859
|
+
"method",
|
|
1860
|
+
"opts"
|
|
1666
1861
|
]
|
|
1667
1862
|
},
|
|
1668
1863
|
{
|
|
@@ -1680,6 +1875,9 @@
|
|
|
1680
1875
|
"method": {
|
|
1681
1876
|
"$ref": "#/components/schemas/ManagedIdentifierMethod"
|
|
1682
1877
|
},
|
|
1878
|
+
"opts": {
|
|
1879
|
+
"$ref": "#/components/schemas/ManagedIdentifierOpts"
|
|
1880
|
+
},
|
|
1683
1881
|
"key": {
|
|
1684
1882
|
"$ref": "#/components/schemas/IKey"
|
|
1685
1883
|
},
|
|
@@ -1697,7 +1895,8 @@
|
|
|
1697
1895
|
"key",
|
|
1698
1896
|
"kid",
|
|
1699
1897
|
"kmsKeyRef",
|
|
1700
|
-
"method"
|
|
1898
|
+
"method",
|
|
1899
|
+
"opts"
|
|
1701
1900
|
]
|
|
1702
1901
|
}
|
|
1703
1902
|
]
|