@twin.org/immutable-proof-service 0.0.1-next.8 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +193 -208
- package/dist/esm/index.mjs +198 -213
- package/dist/types/entities/immutableProof.d.ts +2 -2
- package/dist/types/immutableProofService.d.ts +11 -25
- package/dist/types/index.d.ts +2 -1
- package/dist/types/models/IImmutableProofServiceConfig.d.ts +2 -7
- package/dist/types/models/IImmutableProofServiceConstructorOptions.d.ts +34 -0
- package/docs/changelog.md +91 -1
- package/docs/open-api/spec.json +709 -732
- package/docs/reference/classes/ImmutableProof.md +6 -6
- package/docs/reference/classes/ImmutableProofService.md +38 -50
- package/docs/reference/functions/generateRestRoutesImmutableProof.md +8 -4
- package/docs/reference/functions/immutableProofCreate.md +9 -3
- package/docs/reference/functions/immutableProofGet.md +9 -3
- package/docs/reference/functions/immutableProofVerify.md +9 -3
- package/docs/reference/index.md +1 -0
- package/docs/reference/interfaces/IImmutableProofServiceConfig.md +3 -17
- package/docs/reference/interfaces/IImmutableProofServiceConstructorOptions.md +75 -0
- package/locales/en.json +1 -1
- package/package.json +20 -20
package/docs/open-api/spec.json
CHANGED
|
@@ -1,733 +1,710 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
"type": "string",
|
|
712
|
-
"description": "The stack trace for the error."
|
|
713
|
-
},
|
|
714
|
-
"inner": {
|
|
715
|
-
"$ref": "#/components/schemas/Error"
|
|
716
|
-
}
|
|
717
|
-
},
|
|
718
|
-
"required": [
|
|
719
|
-
"message",
|
|
720
|
-
"name"
|
|
721
|
-
],
|
|
722
|
-
"description": "The body which contains the error."
|
|
723
|
-
}
|
|
724
|
-
},
|
|
725
|
-
"securitySchemes": {
|
|
726
|
-
"jwtBearerAuthScheme": {
|
|
727
|
-
"type": "http",
|
|
728
|
-
"scheme": "bearer",
|
|
729
|
-
"bearerFormat": "JWT"
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
}
|
|
2
|
+
"openapi": "3.1.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "TWIN - Test Endpoints",
|
|
5
|
+
"description": "REST API for TWIN - Test Endpoints.",
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"license": {
|
|
8
|
+
"name": "Apache 2.0 License",
|
|
9
|
+
"url": "https://opensource.org/licenses/Apache-2.0"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"servers": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://localhost"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"tags": [
|
|
18
|
+
{
|
|
19
|
+
"name": "Immutable Proof",
|
|
20
|
+
"description": "Endpoints which are modelled to access an immutable proof contract."
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"paths": {
|
|
24
|
+
"/immutable-proof": {
|
|
25
|
+
"post": {
|
|
26
|
+
"operationId": "immutableProofCreate",
|
|
27
|
+
"summary": "Create a proof",
|
|
28
|
+
"tags": [
|
|
29
|
+
"Immutable Proof"
|
|
30
|
+
],
|
|
31
|
+
"security": [
|
|
32
|
+
{
|
|
33
|
+
"jwtBearerAuthScheme": []
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"requestBody": {
|
|
37
|
+
"description": "Create a proof.",
|
|
38
|
+
"required": true,
|
|
39
|
+
"content": {
|
|
40
|
+
"application/json": {
|
|
41
|
+
"schema": {
|
|
42
|
+
"$ref": "#/components/schemas/ImmutableProofCreateRequest"
|
|
43
|
+
},
|
|
44
|
+
"examples": {
|
|
45
|
+
"immutableProofCreateRequestExample": {
|
|
46
|
+
"value": {
|
|
47
|
+
"document": {
|
|
48
|
+
"@context": "https://schema.org",
|
|
49
|
+
"type": "Person",
|
|
50
|
+
"name": "John Smith"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"responses": {
|
|
59
|
+
"201": {
|
|
60
|
+
"description": "The rest request ended in created response.",
|
|
61
|
+
"headers": {
|
|
62
|
+
"location": {
|
|
63
|
+
"schema": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"description": "e.g. test:1234567890"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"400": {
|
|
71
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
72
|
+
"content": {
|
|
73
|
+
"application/json": {
|
|
74
|
+
"schema": {
|
|
75
|
+
"$ref": "#/components/schemas/Error"
|
|
76
|
+
},
|
|
77
|
+
"examples": {
|
|
78
|
+
"exampleResponse": {
|
|
79
|
+
"value": {
|
|
80
|
+
"name": "GeneralError",
|
|
81
|
+
"message": "component.error",
|
|
82
|
+
"properties": {
|
|
83
|
+
"foo": "bar"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"401": {
|
|
92
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
93
|
+
"content": {
|
|
94
|
+
"application/json": {
|
|
95
|
+
"schema": {
|
|
96
|
+
"$ref": "#/components/schemas/Error"
|
|
97
|
+
},
|
|
98
|
+
"examples": {
|
|
99
|
+
"exampleResponse": {
|
|
100
|
+
"value": {
|
|
101
|
+
"name": "UnauthorizedError",
|
|
102
|
+
"message": "component.error"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"404": {
|
|
110
|
+
"description": "The resource you tried to access does not exist, see the content for more details.",
|
|
111
|
+
"content": {
|
|
112
|
+
"application/json": {
|
|
113
|
+
"schema": {
|
|
114
|
+
"$ref": "#/components/schemas/NotFoundResponse"
|
|
115
|
+
},
|
|
116
|
+
"examples": {
|
|
117
|
+
"exampleResponse": {
|
|
118
|
+
"value": {
|
|
119
|
+
"name": "NotFoundError",
|
|
120
|
+
"message": "component.error",
|
|
121
|
+
"properties": {
|
|
122
|
+
"notFoundId": "1"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"500": {
|
|
131
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
132
|
+
"content": {
|
|
133
|
+
"application/json": {
|
|
134
|
+
"schema": {
|
|
135
|
+
"$ref": "#/components/schemas/Error"
|
|
136
|
+
},
|
|
137
|
+
"examples": {
|
|
138
|
+
"exampleResponse": {
|
|
139
|
+
"value": {
|
|
140
|
+
"name": "InternalServerError",
|
|
141
|
+
"message": "component.error"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"/immutable-proof/{id}": {
|
|
152
|
+
"get": {
|
|
153
|
+
"operationId": "immutableProofGet",
|
|
154
|
+
"summary": "Get a proof",
|
|
155
|
+
"tags": [
|
|
156
|
+
"Immutable Proof"
|
|
157
|
+
],
|
|
158
|
+
"parameters": [
|
|
159
|
+
{
|
|
160
|
+
"name": "id",
|
|
161
|
+
"description": "The id of the immutable proof to get.",
|
|
162
|
+
"in": "path",
|
|
163
|
+
"required": true,
|
|
164
|
+
"schema": {
|
|
165
|
+
"type": "string"
|
|
166
|
+
},
|
|
167
|
+
"style": "simple",
|
|
168
|
+
"example": "ais:1234567890"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "accept",
|
|
172
|
+
"in": "header",
|
|
173
|
+
"required": true,
|
|
174
|
+
"schema": {
|
|
175
|
+
"type": "string"
|
|
176
|
+
},
|
|
177
|
+
"style": "simple",
|
|
178
|
+
"example": "application/json"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"security": [
|
|
182
|
+
{
|
|
183
|
+
"jwtBearerAuthScheme": []
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"responses": {
|
|
187
|
+
"200": {
|
|
188
|
+
"description": "Response to getting an immutable proof.",
|
|
189
|
+
"content": {
|
|
190
|
+
"application/json": {
|
|
191
|
+
"schema": {
|
|
192
|
+
"$ref": "https://schema.twindev.org/immutable-proof/ImmutableProof"
|
|
193
|
+
},
|
|
194
|
+
"examples": {
|
|
195
|
+
"immutableProofGetResponseExample": {
|
|
196
|
+
"value": {
|
|
197
|
+
"@context": [
|
|
198
|
+
"https://schema.twindev.org/immutable-proof/",
|
|
199
|
+
"https://schema.twindev.org/common/"
|
|
200
|
+
],
|
|
201
|
+
"type": "ImmutableProof",
|
|
202
|
+
"id": "ais:1234567890",
|
|
203
|
+
"nodeIdentity": "node-1",
|
|
204
|
+
"userIdentity": "user-1",
|
|
205
|
+
"proofObjectId": "test:1234567890",
|
|
206
|
+
"proofObjectHash": "EAOKyDN0mYQbBh91eMdVeroxQx1H4GfnRbmt6n/2L/Y=",
|
|
207
|
+
"proof": {
|
|
208
|
+
"@context": "https://www.w3.org/ns/credentials/v2",
|
|
209
|
+
"type": "DataIntegrityProof",
|
|
210
|
+
"cryptosuite": "eddsa-jcs-2022",
|
|
211
|
+
"created": "2024-08-22T11:56:56.272Z",
|
|
212
|
+
"proofPurpose": "assertionMethod",
|
|
213
|
+
"proofValue": "7DdiPPYtxLjCD3wA1po2rv..."
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"application/ld+json": {
|
|
220
|
+
"schema": {
|
|
221
|
+
"$ref": "https://schema.twindev.org/immutable-proof/ImmutableProof"
|
|
222
|
+
},
|
|
223
|
+
"examples": {
|
|
224
|
+
"immutableProofJsonLdGetResponseExample": {
|
|
225
|
+
"value": {
|
|
226
|
+
"@context": [
|
|
227
|
+
"https://schema.twindev.org/immutable-proof/",
|
|
228
|
+
"https://schema.twindev.org/common/"
|
|
229
|
+
],
|
|
230
|
+
"type": "ImmutableProof",
|
|
231
|
+
"id": "ais:1234567890",
|
|
232
|
+
"nodeIdentity": "node-1",
|
|
233
|
+
"userIdentity": "user-1",
|
|
234
|
+
"proofObjectId": "test:1234567890",
|
|
235
|
+
"proofObjectHash": "EAOKyDN0mYQbBh91eMdVeroxQx1H4GfnRbmt6n/2L/Y=",
|
|
236
|
+
"proof": {
|
|
237
|
+
"@context": "https://www.w3.org/ns/credentials/v2",
|
|
238
|
+
"type": "DataIntegrityProof",
|
|
239
|
+
"cryptosuite": "eddsa-jcs-2022",
|
|
240
|
+
"created": "2024-08-22T11:56:56.272Z",
|
|
241
|
+
"proofPurpose": "assertionMethod",
|
|
242
|
+
"proofValue": "7DdiPPYtxLjCD3wA1po2rv..."
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"headers": {
|
|
250
|
+
"content-type": {
|
|
251
|
+
"schema": {
|
|
252
|
+
"type": "string"
|
|
253
|
+
},
|
|
254
|
+
"description": "e.g. application/ld+json"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"400": {
|
|
259
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
260
|
+
"content": {
|
|
261
|
+
"application/json": {
|
|
262
|
+
"schema": {
|
|
263
|
+
"$ref": "#/components/schemas/Error"
|
|
264
|
+
},
|
|
265
|
+
"examples": {
|
|
266
|
+
"exampleResponse": {
|
|
267
|
+
"value": {
|
|
268
|
+
"name": "GeneralError",
|
|
269
|
+
"message": "component.error",
|
|
270
|
+
"properties": {
|
|
271
|
+
"foo": "bar"
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"401": {
|
|
280
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
281
|
+
"content": {
|
|
282
|
+
"application/json": {
|
|
283
|
+
"schema": {
|
|
284
|
+
"$ref": "#/components/schemas/Error"
|
|
285
|
+
},
|
|
286
|
+
"examples": {
|
|
287
|
+
"exampleResponse": {
|
|
288
|
+
"value": {
|
|
289
|
+
"name": "UnauthorizedError",
|
|
290
|
+
"message": "component.error"
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"404": {
|
|
298
|
+
"description": "The resource you tried to access does not exist, see the content for more details.",
|
|
299
|
+
"content": {
|
|
300
|
+
"application/json": {
|
|
301
|
+
"schema": {
|
|
302
|
+
"$ref": "#/components/schemas/NotFoundResponse"
|
|
303
|
+
},
|
|
304
|
+
"examples": {
|
|
305
|
+
"exampleResponse": {
|
|
306
|
+
"value": {
|
|
307
|
+
"name": "NotFoundError",
|
|
308
|
+
"message": "component.error",
|
|
309
|
+
"properties": {
|
|
310
|
+
"notFoundId": "1"
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"500": {
|
|
319
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
320
|
+
"content": {
|
|
321
|
+
"application/json": {
|
|
322
|
+
"schema": {
|
|
323
|
+
"$ref": "#/components/schemas/Error"
|
|
324
|
+
},
|
|
325
|
+
"examples": {
|
|
326
|
+
"exampleResponse": {
|
|
327
|
+
"value": {
|
|
328
|
+
"name": "InternalServerError",
|
|
329
|
+
"message": "component.error"
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"/immutable-proof/{id}/verify": {
|
|
340
|
+
"get": {
|
|
341
|
+
"operationId": "immutableProofVerify",
|
|
342
|
+
"summary": "Verify a proof",
|
|
343
|
+
"tags": [
|
|
344
|
+
"Immutable Proof"
|
|
345
|
+
],
|
|
346
|
+
"parameters": [
|
|
347
|
+
{
|
|
348
|
+
"name": "id",
|
|
349
|
+
"description": "The id of the immutable proof to verify.",
|
|
350
|
+
"in": "path",
|
|
351
|
+
"required": true,
|
|
352
|
+
"schema": {
|
|
353
|
+
"type": "string"
|
|
354
|
+
},
|
|
355
|
+
"style": "simple",
|
|
356
|
+
"example": "ais:1234567890"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "accept",
|
|
360
|
+
"in": "header",
|
|
361
|
+
"required": true,
|
|
362
|
+
"schema": {
|
|
363
|
+
"type": "string"
|
|
364
|
+
},
|
|
365
|
+
"style": "simple"
|
|
366
|
+
}
|
|
367
|
+
],
|
|
368
|
+
"security": [
|
|
369
|
+
{
|
|
370
|
+
"jwtBearerAuthScheme": []
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"responses": {
|
|
374
|
+
"200": {
|
|
375
|
+
"description": "Response to verifying an immutable proof.",
|
|
376
|
+
"content": {
|
|
377
|
+
"application/json": {
|
|
378
|
+
"schema": {
|
|
379
|
+
"$ref": "https://schema.twindev.org/immutable-proof/ImmutableProofVerification"
|
|
380
|
+
},
|
|
381
|
+
"examples": {
|
|
382
|
+
"immutableProofVerifyResponseExample": {
|
|
383
|
+
"value": {
|
|
384
|
+
"@context": "https://schema.twindev.org/immutable-proof/",
|
|
385
|
+
"type": "ImmutableProofVerification",
|
|
386
|
+
"verified": true
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"immutableProofVerifyResponseFailExample": {
|
|
390
|
+
"value": {
|
|
391
|
+
"@context": "https://schema.twindev.org/immutable-proof/",
|
|
392
|
+
"type": "ImmutableProofVerification",
|
|
393
|
+
"verified": false,
|
|
394
|
+
"failure": "proofTypeMismatch"
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
"400": {
|
|
402
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
403
|
+
"content": {
|
|
404
|
+
"application/json": {
|
|
405
|
+
"schema": {
|
|
406
|
+
"$ref": "#/components/schemas/Error"
|
|
407
|
+
},
|
|
408
|
+
"examples": {
|
|
409
|
+
"exampleResponse": {
|
|
410
|
+
"value": {
|
|
411
|
+
"name": "GeneralError",
|
|
412
|
+
"message": "component.error",
|
|
413
|
+
"properties": {
|
|
414
|
+
"foo": "bar"
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
"401": {
|
|
423
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
424
|
+
"content": {
|
|
425
|
+
"application/json": {
|
|
426
|
+
"schema": {
|
|
427
|
+
"$ref": "#/components/schemas/Error"
|
|
428
|
+
},
|
|
429
|
+
"examples": {
|
|
430
|
+
"exampleResponse": {
|
|
431
|
+
"value": {
|
|
432
|
+
"name": "UnauthorizedError",
|
|
433
|
+
"message": "component.error"
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
"404": {
|
|
441
|
+
"description": "The resource you tried to access does not exist, see the content for more details.",
|
|
442
|
+
"content": {
|
|
443
|
+
"application/json": {
|
|
444
|
+
"schema": {
|
|
445
|
+
"$ref": "#/components/schemas/NotFoundResponse"
|
|
446
|
+
},
|
|
447
|
+
"examples": {
|
|
448
|
+
"exampleResponse": {
|
|
449
|
+
"value": {
|
|
450
|
+
"name": "NotFoundError",
|
|
451
|
+
"message": "component.error",
|
|
452
|
+
"properties": {
|
|
453
|
+
"notFoundId": "1"
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
"500": {
|
|
462
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
463
|
+
"content": {
|
|
464
|
+
"application/json": {
|
|
465
|
+
"schema": {
|
|
466
|
+
"$ref": "#/components/schemas/Error"
|
|
467
|
+
},
|
|
468
|
+
"examples": {
|
|
469
|
+
"exampleResponse": {
|
|
470
|
+
"value": {
|
|
471
|
+
"name": "InternalServerError",
|
|
472
|
+
"message": "component.error"
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
"components": {
|
|
484
|
+
"schemas": {
|
|
485
|
+
"DataIntegrityProof": {
|
|
486
|
+
"type": "object",
|
|
487
|
+
"properties": {
|
|
488
|
+
"@context": {
|
|
489
|
+
"anyOf": [
|
|
490
|
+
{
|
|
491
|
+
"type": "string",
|
|
492
|
+
"const": "https://www.w3.org/ns/credentials/v2"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"type": "array",
|
|
496
|
+
"minItems": 1,
|
|
497
|
+
"prefixItems": [
|
|
498
|
+
{
|
|
499
|
+
"type": "string",
|
|
500
|
+
"const": "https://www.w3.org/ns/credentials/v2"
|
|
501
|
+
}
|
|
502
|
+
],
|
|
503
|
+
"items": {
|
|
504
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
],
|
|
508
|
+
"description": "JSON-LD Context."
|
|
509
|
+
},
|
|
510
|
+
"type": {
|
|
511
|
+
"type": "string",
|
|
512
|
+
"const": "DataIntegrityProof",
|
|
513
|
+
"description": "JSON-LD Type."
|
|
514
|
+
},
|
|
515
|
+
"cryptosuite": {
|
|
516
|
+
"anyOf": [
|
|
517
|
+
{
|
|
518
|
+
"$ref": "#/components/schemas/DidCryptoSuites"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"type": "string"
|
|
522
|
+
}
|
|
523
|
+
],
|
|
524
|
+
"description": "An identifier for the cryptographic suite that can be used to verify the proof."
|
|
525
|
+
},
|
|
526
|
+
"id": {
|
|
527
|
+
"type": "string",
|
|
528
|
+
"description": "The id of the proof."
|
|
529
|
+
},
|
|
530
|
+
"proofPurpose": {
|
|
531
|
+
"type": "string",
|
|
532
|
+
"description": "The reason the proof was created."
|
|
533
|
+
},
|
|
534
|
+
"proofValue": {
|
|
535
|
+
"type": "string",
|
|
536
|
+
"description": "Contains the base-encoded binary data necessary to verify the digital proof using the verificationMethod specified."
|
|
537
|
+
},
|
|
538
|
+
"verificationMethod": {
|
|
539
|
+
"type": "string",
|
|
540
|
+
"description": "The verification method of the proof."
|
|
541
|
+
},
|
|
542
|
+
"created": {
|
|
543
|
+
"type": "string",
|
|
544
|
+
"description": "The iso date of when the proof was created."
|
|
545
|
+
},
|
|
546
|
+
"expires": {
|
|
547
|
+
"type": "string",
|
|
548
|
+
"description": "The iso date of when the proof expires."
|
|
549
|
+
},
|
|
550
|
+
"domain": {
|
|
551
|
+
"anyOf": [
|
|
552
|
+
{
|
|
553
|
+
"type": "string"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"type": "array",
|
|
557
|
+
"prefixItems": [
|
|
558
|
+
{
|
|
559
|
+
"type": "string"
|
|
560
|
+
}
|
|
561
|
+
]
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
"description": "One or more security domains in which the proof is meant to be used."
|
|
565
|
+
},
|
|
566
|
+
"challenge": {
|
|
567
|
+
"anyOf": [
|
|
568
|
+
{
|
|
569
|
+
"type": "string"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"type": "array",
|
|
573
|
+
"prefixItems": [
|
|
574
|
+
{
|
|
575
|
+
"type": "string"
|
|
576
|
+
}
|
|
577
|
+
]
|
|
578
|
+
}
|
|
579
|
+
],
|
|
580
|
+
"description": "Provided to mitigate replay attacks on domains."
|
|
581
|
+
},
|
|
582
|
+
"previousProof": {
|
|
583
|
+
"type": "string",
|
|
584
|
+
"description": "Identifies another data integrity proof that MUST verify before the current proof is processed"
|
|
585
|
+
},
|
|
586
|
+
"nonce": {
|
|
587
|
+
"type": "string",
|
|
588
|
+
"description": "Use of this field is to increase privacy by decreasing linkability that is the result of deterministically generated signatures."
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
"required": [
|
|
592
|
+
"type",
|
|
593
|
+
"cryptosuite",
|
|
594
|
+
"proofPurpose"
|
|
595
|
+
],
|
|
596
|
+
"additionalProperties": false,
|
|
597
|
+
"description": "Interface describing a did proof. https://www.w3.org/TR/vc-data-integrity/"
|
|
598
|
+
},
|
|
599
|
+
"DidCryptoSuites": {
|
|
600
|
+
"anyOf": [
|
|
601
|
+
{
|
|
602
|
+
"type": "string",
|
|
603
|
+
"const": "eddsa-jcs-2022",
|
|
604
|
+
"description": "The type for EdDSA crypto suite for JSON Canonicalization Scheme [RFC8785]. https://www.w3.org/TR/vc-di-eddsa/#eddsa-jcs-2022"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"type": "string",
|
|
608
|
+
"const": "eddsa-rdfc-2022",
|
|
609
|
+
"description": "The type for EdDSA crypto suite for RDF Dataset Canonicalization. https://www.w3.org/TR/vc-di-eddsa/#eddsa-rdfc-2022"
|
|
610
|
+
}
|
|
611
|
+
],
|
|
612
|
+
"description": "The types for DID Proof crypto suites."
|
|
613
|
+
},
|
|
614
|
+
"Error": {
|
|
615
|
+
"type": "object",
|
|
616
|
+
"properties": {
|
|
617
|
+
"name": {
|
|
618
|
+
"type": "string",
|
|
619
|
+
"description": "The name for the error."
|
|
620
|
+
},
|
|
621
|
+
"message": {
|
|
622
|
+
"type": "string",
|
|
623
|
+
"description": "The message for the error."
|
|
624
|
+
},
|
|
625
|
+
"source": {
|
|
626
|
+
"type": "string",
|
|
627
|
+
"description": "The source of the error."
|
|
628
|
+
},
|
|
629
|
+
"properties": {
|
|
630
|
+
"type": "object",
|
|
631
|
+
"additionalProperties": {},
|
|
632
|
+
"description": "Any additional information for the error."
|
|
633
|
+
},
|
|
634
|
+
"stack": {
|
|
635
|
+
"type": "string",
|
|
636
|
+
"description": "The stack trace for the error."
|
|
637
|
+
},
|
|
638
|
+
"inner": {
|
|
639
|
+
"$ref": "#/components/schemas/Error"
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
"required": [
|
|
643
|
+
"name",
|
|
644
|
+
"message"
|
|
645
|
+
],
|
|
646
|
+
"additionalProperties": false,
|
|
647
|
+
"description": "Model to describe serialized error."
|
|
648
|
+
},
|
|
649
|
+
"ImmutableProofCreateRequest": {
|
|
650
|
+
"type": "object",
|
|
651
|
+
"properties": {
|
|
652
|
+
"document": {
|
|
653
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
"required": [
|
|
657
|
+
"document"
|
|
658
|
+
],
|
|
659
|
+
"additionalProperties": false,
|
|
660
|
+
"description": "The parameters from the body."
|
|
661
|
+
},
|
|
662
|
+
"NotFoundResponse": {
|
|
663
|
+
"type": "object",
|
|
664
|
+
"additionalProperties": false,
|
|
665
|
+
"properties": {
|
|
666
|
+
"notFoundId": {
|
|
667
|
+
"type": "string",
|
|
668
|
+
"description": "The id if the item that was not found."
|
|
669
|
+
},
|
|
670
|
+
"name": {
|
|
671
|
+
"type": "string",
|
|
672
|
+
"description": "The name for the error."
|
|
673
|
+
},
|
|
674
|
+
"message": {
|
|
675
|
+
"type": "string",
|
|
676
|
+
"description": "The message for the error."
|
|
677
|
+
},
|
|
678
|
+
"source": {
|
|
679
|
+
"type": "string",
|
|
680
|
+
"description": "The source of the error."
|
|
681
|
+
},
|
|
682
|
+
"properties": {
|
|
683
|
+
"type": "object",
|
|
684
|
+
"additionalProperties": {},
|
|
685
|
+
"description": "Any additional information for the error."
|
|
686
|
+
},
|
|
687
|
+
"stack": {
|
|
688
|
+
"type": "string",
|
|
689
|
+
"description": "The stack trace for the error."
|
|
690
|
+
},
|
|
691
|
+
"inner": {
|
|
692
|
+
"$ref": "#/components/schemas/Error"
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
"required": [
|
|
696
|
+
"message",
|
|
697
|
+
"name"
|
|
698
|
+
],
|
|
699
|
+
"description": "The body which contains the error."
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
"securitySchemes": {
|
|
703
|
+
"jwtBearerAuthScheme": {
|
|
704
|
+
"type": "http",
|
|
705
|
+
"scheme": "bearer",
|
|
706
|
+
"bearerFormat": "JWT"
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}
|