@pdtf/schemas 0.7.0 → 0.7.3

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.
@@ -1,621 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://openid.net/schemas/verified_claims-12.json",
4
- "definitions": {
5
- "date_type": {
6
- "type": "string",
7
- "format": "date"
8
- },
9
- "time_type": {
10
- "type": "string",
11
- "format": "date-time"
12
- },
13
- "document_number": {
14
- "type": "string"
15
- },
16
- "document_details": {
17
- "type": "object",
18
- "properties": {
19
- "type": {
20
- "type": "string"
21
- },
22
- "document_number": {
23
- "$ref": "#/definitions/document_number"
24
- },
25
- "number": {
26
- "$ref": "#/definitions/document_number"
27
- },
28
- "personal_number": {
29
- "type": "string"
30
- },
31
- "serial_number": {
32
- "type": "string"
33
- },
34
- "date_of_issuance": {
35
- "$ref": "#/definitions/date_type"
36
- },
37
- "date_of_expiry": {
38
- "$ref": "#/definitions/date_type"
39
- },
40
- "issuer": {
41
- "type": "object",
42
- "properties": {
43
- "name": {
44
- "type": "string"
45
- },
46
- "formatted": {
47
- "type": "string"
48
- },
49
- "street_address": {
50
- "type": "string"
51
- },
52
- "locality": {
53
- "type": "string"
54
- },
55
- "region": {
56
- "type": "string"
57
- },
58
- "postal_code": {
59
- "type": "string"
60
- },
61
- "country": {
62
- "type": "string"
63
- },
64
- "country_code": {
65
- "type": "string"
66
- },
67
- "jurisdiction": {
68
- "type": "string"
69
- }
70
- }
71
- }
72
- }
73
- },
74
- "validation_method": {
75
- "type": "object",
76
- "properties": {
77
- "type": {
78
- "type": "string"
79
- },
80
- "policy": {
81
- "type": "string"
82
- },
83
- "procedure": {
84
- "type": "string"
85
- },
86
- "status": {
87
- "type": "string"
88
- }
89
- }
90
- },
91
- "verification_method": {
92
- "type": "object",
93
- "properties": {
94
- "type": {
95
- "type": "string"
96
- },
97
- "policy": {
98
- "type": "string"
99
- },
100
- "procedure": {
101
- "type": "string"
102
- },
103
- "status": {
104
- "type": "string"
105
- }
106
- }
107
- },
108
- "evidence": {
109
- "type": "object",
110
- "properties": {
111
- "type": {
112
- "type": "string",
113
- "enum": [
114
- "electronic_signature",
115
- "id_document",
116
- "document",
117
- "electronic_record",
118
- "vouch",
119
- "utility_bill"
120
- ]
121
- },
122
- "attachments": {
123
- "$ref": "#/definitions/attachments"
124
- }
125
- },
126
- "required": ["type"],
127
- "allOf": [
128
- {
129
- "if": {
130
- "properties": {
131
- "type": {
132
- "const": "electronic_signature"
133
- }
134
- }
135
- },
136
- "then": {
137
- "properties": {
138
- "signature_type": {
139
- "type": "string"
140
- },
141
- "issuer": {
142
- "type": "string"
143
- },
144
- "serial_number": {
145
- "type": "string"
146
- },
147
- "created_at": {
148
- "$ref": "#/definitions/time_type"
149
- }
150
- }
151
- },
152
- "else": {}
153
- },
154
- {
155
- "if": {
156
- "properties": {
157
- "type": {
158
- "type": "string",
159
- "pattern": "^(id_)*document$"
160
- }
161
- }
162
- },
163
- "then": {
164
- "properties": {
165
- "validation_method": {
166
- "$ref": "#/definitions/validation_method"
167
- },
168
- "verification_method": {
169
- "$ref": "#/definitions/verification_method"
170
- },
171
- "method": {
172
- "type": "string"
173
- },
174
- "verifier": {
175
- "type": "object",
176
- "properties": {
177
- "organization": {
178
- "type": "string"
179
- },
180
- "txn": {
181
- "type": "string"
182
- }
183
- }
184
- },
185
- "time": {
186
- "$ref": "#/definitions/time_type"
187
- },
188
- "document_details": {
189
- "$ref": "#/definitions/document_details"
190
- },
191
- "document": {
192
- "$ref": "#/definitions/document_details"
193
- }
194
- }
195
- },
196
- "else": {}
197
- },
198
- {
199
- "if": {
200
- "properties": {
201
- "type": {
202
- "const": "electronic_record"
203
- }
204
- }
205
- },
206
- "then": {
207
- "properties": {
208
- "validation_method": {
209
- "$ref": "#/definitions/validation_method"
210
- },
211
- "verification_method": {
212
- "$ref": "#/definitions/verification_method"
213
- },
214
- "verifier": {
215
- "type": "object",
216
- "properties": {
217
- "organization": {
218
- "type": "string"
219
- },
220
- "txn": {
221
- "type": "string"
222
- }
223
- }
224
- },
225
- "time": {
226
- "$ref": "#/definitions/time_type"
227
- },
228
- "record": {
229
- "type": "object",
230
- "properties": {
231
- "type": {
232
- "type": "string"
233
- },
234
- "personal_number": {
235
- "type": "string"
236
- },
237
- "created_at": {
238
- "$ref": "#/definitions/date_type"
239
- },
240
- "date_of_expiry": {
241
- "$ref": "#/definitions/date_type"
242
- },
243
- "source": {
244
- "type": "object",
245
- "properties": {
246
- "name": {
247
- "type": "string"
248
- },
249
- "formatted": {
250
- "type": "string"
251
- },
252
- "street_address": {
253
- "type": "string"
254
- },
255
- "locality": {
256
- "type": "string"
257
- },
258
- "region": {
259
- "type": "string"
260
- },
261
- "postal_code": {
262
- "type": "string"
263
- },
264
- "country": {
265
- "type": "string"
266
- },
267
- "country_code": {
268
- "type": "string"
269
- },
270
- "jurisdiction": {
271
- "type": "string"
272
- }
273
- }
274
- }
275
- }
276
- }
277
- }
278
- },
279
- "else": {}
280
- },
281
- {
282
- "if": {
283
- "properties": {
284
- "type": {
285
- "const": "vouch"
286
- }
287
- }
288
- },
289
- "then": {
290
- "properties": {
291
- "validation_method": {
292
- "$ref": "#/definitions/validation_method"
293
- },
294
- "verification_method": {
295
- "$ref": "#/definitions/verification_method"
296
- },
297
- "verifier": {
298
- "type": "object",
299
- "properties": {
300
- "organization": {
301
- "type": "string"
302
- },
303
- "txn": {
304
- "type": "string"
305
- }
306
- }
307
- },
308
- "time": {
309
- "$ref": "#/definitions/time_type"
310
- },
311
- "attestation": {
312
- "type": "object",
313
- "properties": {
314
- "type": {
315
- "type": "string"
316
- },
317
- "reference_number": {
318
- "type": "string"
319
- },
320
- "personal_number": {
321
- "type": "string"
322
- },
323
- "date_of_issuance": {
324
- "$ref": "#/definitions/date_type"
325
- },
326
- "date_of_expiry": {
327
- "$ref": "#/definitions/date_type"
328
- },
329
- "voucher": {
330
- "type": "object",
331
- "properties": {
332
- "name": {
333
- "type": "string"
334
- },
335
- "birthdate": {
336
- "$ref": "#/definitions/date_type"
337
- },
338
- "formatted": {
339
- "type": "string"
340
- },
341
- "street_address": {
342
- "type": "string"
343
- },
344
- "locality": {
345
- "type": "string"
346
- },
347
- "region": {
348
- "type": "string"
349
- },
350
- "postal_code": {
351
- "type": "string"
352
- },
353
- "country": {
354
- "type": "string"
355
- },
356
- "occupation": {
357
- "type": "string"
358
- },
359
- "organization": {
360
- "type": "string"
361
- }
362
- }
363
- }
364
- }
365
- }
366
- }
367
- },
368
- "else": {}
369
- },
370
- {
371
- "if": {
372
- "properties": {
373
- "type": {
374
- "const": "utility_bill"
375
- }
376
- }
377
- },
378
- "then": {
379
- "properties": {
380
- "provider": {
381
- "type": "object",
382
- "properties": {
383
- "name": {
384
- "type": "string"
385
- },
386
- "formatted": {
387
- "type": "string"
388
- },
389
- "street_address": {
390
- "type": "string"
391
- },
392
- "locality": {
393
- "type": "string"
394
- },
395
- "region": {
396
- "type": "string"
397
- },
398
- "postal_code": {
399
- "type": "string"
400
- },
401
- "country": {
402
- "type": "string"
403
- }
404
- }
405
- },
406
- "date": {
407
- "$ref": "#/definitions/date_type"
408
- }
409
- }
410
- },
411
- "else": {}
412
- }
413
- ]
414
- },
415
- "digest": {
416
- "type": "object",
417
- "properties": {
418
- "alg": {
419
- "type": "string"
420
- },
421
- "value": {
422
- "type": "string",
423
- "contentEncoding": "base64"
424
- }
425
- },
426
- "required": ["alg", "value"]
427
- },
428
- "external_attachment": {
429
- "type": "object",
430
- "properties": {
431
- "desc": {
432
- "type": "string"
433
- },
434
- "digest": {
435
- "$ref": "#/definitions/digest"
436
- },
437
- "url": {
438
- "type": "string",
439
- "format": "uri"
440
- },
441
- "access_token": {
442
- "type": ["string", "null"]
443
- },
444
- "expires_in": {
445
- "type": "integer",
446
- "minimum": 1
447
- }
448
- },
449
- "required": ["digest", "url"]
450
- },
451
- "embedded_attachment": {
452
- "type": "object",
453
- "properties": {
454
- "desc": {
455
- "type": "string"
456
- },
457
- "content_type": {
458
- "type": "string"
459
- },
460
- "content": {
461
- "type": "string",
462
- "contentEncoding": "base64"
463
- }
464
- },
465
- "required": ["content_type", "content"]
466
- },
467
- "attachments": {
468
- "type": "array",
469
- "minItems": 1,
470
- "items": {
471
- "oneOf": [
472
- {
473
- "$ref": "#/definitions/external_attachment"
474
- },
475
- {
476
- "$ref": "#/definitions/embedded_attachment"
477
- }
478
- ]
479
- }
480
- },
481
- "verified_claims_def": {
482
- "type": "object",
483
- "properties": {
484
- "verification": {
485
- "type": "object",
486
- "properties": {
487
- "trust_framework": {
488
- "type": "string"
489
- },
490
- "assurance_level": {
491
- "type": "string"
492
- },
493
- "assurance_process": {
494
- "type": "object",
495
- "properties": {
496
- "policy": {
497
- "type": "string"
498
- },
499
- "procedure": {
500
- "type": "string"
501
- },
502
- "status": {
503
- "type": "string"
504
- }
505
- }
506
- },
507
- "time": {
508
- "$ref": "#/definitions/time_type"
509
- },
510
- "verification_process": {
511
- "type": "string"
512
- },
513
- "evidence": {
514
- "type": "array",
515
- "minItems": 1,
516
- "items": {
517
- "oneOf": [
518
- {
519
- "$ref": "#/definitions/evidence"
520
- }
521
- ]
522
- }
523
- }
524
- },
525
- "required": ["trust_framework"],
526
- "additionalProperties": true
527
- },
528
- "claims": {
529
- "type": "object",
530
- "minProperties": 1
531
- }
532
- },
533
- "required": ["verification", "claims"],
534
- "additionalProperties": false
535
- },
536
- "distributed_claims_available_def": {
537
- "type": "object",
538
- "properties": {},
539
- "additionalProperties": {
540
- "$ref": "#/definitions/verified_claims_def"
541
- }
542
- },
543
- "aggregated_claims": {
544
- "type": "object",
545
- "properties": {
546
- "JWT": {
547
- "type": "string"
548
- }
549
- },
550
- "required": ["JWT"]
551
- },
552
- "distributed_claims": {
553
- "type": "object",
554
- "properties": {
555
- "endpoint": {
556
- "type": "string"
557
- },
558
- "access_token": {
559
- "type": "string"
560
- }
561
- },
562
- "required": ["endpoint", "access_token"]
563
- },
564
- "_claim_sources": {
565
- "anyOf": [
566
- {
567
- "$ref": "#/definitions/aggregated_claims"
568
- },
569
- {
570
- "$ref": "#/definitions/distributed_claims"
571
- }
572
- ]
573
- }
574
- },
575
- "type": "object",
576
- "required": ["verified_claims"],
577
- "properties": {
578
- "verified_claims": {
579
- "anyOf": [
580
- {
581
- "$ref": "#/definitions/verified_claims_def"
582
- },
583
- {
584
- "type": "array",
585
- "items": {
586
- "$ref": "#/definitions/verified_claims_def"
587
- }
588
- }
589
- ]
590
- },
591
- "_claim_names": {
592
- "type": "object",
593
- "properties": {
594
- "verified_claims": {
595
- "anyOf": [
596
- {
597
- "type": "string"
598
- },
599
- {
600
- "type": "array",
601
- "items": {
602
- "type": "string"
603
- }
604
- },
605
- {
606
- "$ref": "#/definitions/distributed_claims_available_def"
607
- }
608
- ]
609
- }
610
- },
611
- "additionalProperties": false
612
- },
613
- "_claim_sources": {
614
- "type": "object",
615
- "properties": {},
616
- "additionalProperties": {
617
- "$ref": "#/definitions/_claim_sources"
618
- }
619
- }
620
- }
621
- }