Project

General

Profile

Files » Draft-2019-12-21-19512-Preservation-API-schema.json

13:29 - Detlef Hühnlein, 12/21/2019 01:33 PM

 
1
{
2
    "$schema": "http:\/\/json-schema.org\/draft-04\/schema#",
3
    "definitions": {
4
        "dsb-OptionalInputsType": {
5
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-core\/v2.0\/cs02\/schema\/oasis-dss-core-schema.json#\/definitions\/dsb-OptionalInputsType"
6
        },
7
        "dsb-AnyType": {
8
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-core\/v2.0\/cs02\/schema\/oasis-dss-core-schema.json#\/definitions\/dsb-AnyType"
9
        },
10
        "dsb-AttachmentReferenceType": {
11
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-core\/v2.0\/cs02\/schema\/oasis-dss-core-schema.json#\/definitions\/dsb-AttachmentReferenceType"
12
        },
13
        "dsb-DigestInfoType": {
14
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-core\/v2.0\/cs02\/schema\/oasis-dss-core-schema.json#\/definitions\/dsb-DigestInfoType"
15
        },
16
        "dsigrw-TransformsType": {
17
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-core\/v2.0\/cs02\/schema\/oasis-dss-core-schema.json#\/definitions\/dsigrw-TransformsType"
18
        },
19
        "dsigrw-TransformType": {
20
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-core\/v2.0\/cs02\/schema\/oasis-dss-core-schema.json#\/definitions\/dsigrw-TransformType"
21
        },
22
        "nsl-NsPrefixMappingType": {
23
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-core\/v2.0\/cs02\/schema\/oasis-dss-core-schema.json#\/definitions\/nsl-NsPrefixMappingType"
24
        },
25
        "dsb-Base64DataType": {
26
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-core\/v2.0\/cs02\/schema\/oasis-dss-core-schema.json#\/definitions\/dsb-Base64DataType"
27
        },
28
        "dsb-OptionalOutputsType": {
29
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-core\/v2.0\/cs02\/schema\/oasis-dss-core-schema.json#\/definitions\/dsb-OptionalOutputsType"
30
        },
31
        "dsb-ResultType": {
32
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-core\/v2.0\/cs02\/schema\/oasis-dss-core-schema.json#\/definitions\/dsb-ResultType"
33
        },
34
        "dsb-InternationalStringType": {
35
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-core\/v2.0\/cs02\/schema\/oasis-dss-core-schema.json#\/definitions\/dsb-InternationalStringType"
36
        },
37
        "md-OperationType": {
38
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-md\/v1.0\/cs02\/schema\/oasis-dss-metadata-schema.json#\/definitions\/md-OperationType"
39
        },
40
        "md-ParameterType": {
41
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-md\/v1.0\/cs02\/schema\/oasis-dss-metadata-schema.json#\/definitions\/md-ParameterType"
42
        },
43
        "md-FormatType": {
44
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-md\/v1.0\/cs02\/schema\/oasis-dss-metadata-schema.json#\/definitions\/md-FormatType"
45
        },
46
        "md-ExtensionType": {
47
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-md\/v1.0\/cs02\/schema\/oasis-dss-metadata-schema.json#\/definitions\/md-ExtensionType"
48
        },
49
        "md-PolicyType": {
50
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-md\/v1.0\/cs02\/schema\/oasis-dss-metadata-schema.json#\/definitions\/md-PolicyType"
51
        },
52
        "md-PolicyByRefType": {
53
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-md\/v1.0\/cs02\/schema\/oasis-dss-metadata-schema.json#\/definitions\/md-PolicyByRefType"
54
        },
55
        "dsigrw-DigestMethodType": {
56
            "$ref": "http:\/\/docs.oasis-open.org\/dss-x\/dss-core\/v2.0\/cs02\/schema\/oasis-dss-core-schema.json#\/definitions\/dsigrw-DigestMethodType"
57
        },
58
        "pres-PreservePOType": {
59
            "type": "object",
60
            "properties": {
61
                "optIn": {
62
                    "$ref": "#\/definitions\/dsb-OptionalInputsType"
63
                },
64
                "reqId": {
65
                    "type": "string"
66
                },
67
                "pro": {
68
                    "type": "string"
69
                },
70
                "po": {
71
                    "type": "array",
72
                    "items": {
73
                        "$ref": "#\/definitions\/pres-POType"
74
                    }
75
                }
76
            },
77
            "required": ["pro"]
78
        },
79
        "pres-POType": {
80
            "type": "object",
81
            "properties": {
82
                "binaryData": {
83
                    "$ref": "#\/definitions\/pres-POType:BinaryData"
84
                },
85
                "xmlData": {
86
                    "$ref": "#\/definitions\/pres-POType:XmlData"
87
                },
88
                "formatId": {
89
                    "type": "string"
90
                },
91
                "mimeType": {
92
                    "type": "string"
93
                },
94
                "pronomId": {
95
                    "type": "string"
96
                },
97
                "id": {
98
                    "type": "string"
99
                },
100
                "relObj": {
101
                    "type": "array",
102
                    "items": {
103
                        "type": "string"
104
                    }
105
                }
106
            },
107
            "minProperties": 1
108
        },
109
        "pres-POType:BinaryData": {
110
            "type": "object",
111
            "properties": {
112
                "value": {
113
                    "$ref": "#\/definitions\/urn:jsonschema:javax:activation:DataHandler"
114
                }
115
            }
116
        },
117
        "pres-POType:XmlData": {
118
            "type": "object",
119
            "properties": {
120
                "b64Content": {
121
                    "type": "string"
122
                }
123
            }
124
        },
125
        "pres-PreservePOResponseType": {
126
            "type": "object",
127
            "properties": {
128
                "optOut": {
129
                    "$ref": "#\/definitions\/dsb-OptionalOutputsType"
130
                },
131
                "result": {
132
                    "$ref": "#\/definitions\/dsb-ResultType"
133
                },
134
                "reqId": {
135
                    "type": "string"
136
                },
137
                "poId": {
138
                    "type": "string"
139
                },
140
                "po": {
141
                    "type": "array",
142
                    "items": {
143
                        "$ref": "#\/definitions\/pres-POType"
144
                    }
145
                }
146
            }
147
        },
148
        "pres-UpdatePOCType": {
149
            "type": "object",
150
            "properties": {
151
                "optIn": {
152
                    "$ref": "#\/definitions\/dsb-OptionalInputsType"
153
                },
154
                "reqId": {
155
                    "type": "string"
156
                },
157
                "poId": {
158
                    "type": "string"
159
                },
160
                "deltaPoc": {
161
                    "type": "array",
162
                    "items": {
163
                        "$ref": "#\/definitions\/pres-POType"
164
                    }
165
                }
166
            },
167
            "required": ["poId", "deltaPoc"]
168
        },
169
        "pres-UpdatePOCResponseType": {
170
            "type": "object",
171
            "properties": {
172
                "optOut": {
173
                    "$ref": "#\/definitions\/dsb-OptionalOutputsType"
174
                },
175
                "result": {
176
                    "$ref": "#\/definitions\/dsb-ResultType"
177
                },
178
                "reqId": {
179
                    "type": "string"
180
                },
181
                "versionId": {
182
                    "type": "string"
183
                }
184
            }
185
        },
186
        "pres-RetrievePOType": {
187
            "type": "object",
188
            "properties": {
189
                "optIn": {
190
                    "$ref": "#\/definitions\/dsb-OptionalInputsType"
191
                },
192
                "reqId": {
193
                    "type": "string"
194
                },
195
                "poId": {
196
                    "type": "string"
197
                },
198
                "versionId": {
199
                    "type": "array",
200
                    "items": {
201
                        "type": "string"
202
                    }
203
                },
204
                "sor": {
205
                    "type": "string"
206
                },
207
                "poFormat": {
208
                    "type": "string"
209
                },
210
                "evFormat": {
211
                    "type": "string"
212
                }
213
            },
214
            "required": ["poId"]
215
        },
216
        "pres-RetrievePOResponseType": {
217
            "type": "object",
218
            "properties": {
219
                "optOut": {
220
                    "$ref": "#\/definitions\/dsb-OptionalOutputsType"
221
                },
222
                "result": {
223
                    "$ref": "#\/definitions\/dsb-ResultType"
224
                },
225
                "reqId": {
226
                    "type": "string"
227
                },
228
                "po": {
229
                    "type": "array",
230
                    "items": {
231
                        "$ref": "#\/definitions\/pres-POType"
232
                    }
233
                }
234
            }
235
        },
236
        "pres-DeletePOType": {
237
            "type": "object",
238
            "properties": {
239
                "optIn": {
240
                    "$ref": "#\/definitions\/dsb-OptionalInputsType"
241
                },
242
                "reqId": {
243
                    "type": "string"
244
                },
245
                "poId": {
246
                    "type": "string"
247
                },
248
                "mod": {
249
                    "type": "string"
250
                },
251
                "crn": {
252
                    "type": "string"
253
                },
254
                "reason": {
255
                    "type": "string"
256
                }
257
            },
258
            "required": ["poId"]
259
        },
260
        "pres-ResponseType": {
261
            "type": "object",
262
            "properties": {
263
                "optOut": {
264
                    "$ref": "#\/definitions\/dsb-OptionalOutputsType"
265
                },
266
                "result": {
267
                    "$ref": "#\/definitions\/dsb-ResultType"
268
                },
269
                "reqId": {
270
                    "type": "string"
271
                }
272
            },
273
            "required": ["result"]
274
        },
275
        "pres-RetrieveTraceType": {
276
            "type": "object",
277
            "properties": {
278
                "optIn": {
279
                    "$ref": "#\/definitions\/dsb-OptionalInputsType"
280
                },
281
                "reqId": {
282
                    "type": "string"
283
                },
284
                "poId": {
285
                    "type": "string"
286
                }
287
            },
288
            "required": ["poId"]
289
        },
290
        "pres-RetrieveTraceResponseType": {
291
            "type": "object",
292
            "properties": {
293
                "optOut": {
294
                    "$ref": "#\/definitions\/dsb-OptionalOutputsType"
295
                },
296
                "result": {
297
                    "$ref": "#\/definitions\/dsb-ResultType"
298
                },
299
                "reqId": {
300
                    "type": "string"
301
                },
302
                "trace": {
303
                    "$ref": "#\/definitions\/pres-TraceType"
304
                }
305
            },
306
            "required": ["trace"]
307
        },
308
        "pres-TraceType": {
309
            "type": "object",
310
            "properties": {
311
                "event": {
312
                    "type": "array",
313
                    "items": {
314
                        "$ref": "#\/definitions\/pres-EventType"
315
                    }
316
                }
317
            }
318
        },
319
        "pres-EventType": {
320
            "type": "object",
321
            "properties": {
322
                "time": {
323
                    "type": "string",
324
                    "format": "date-time"
325
                },
326
                "sub": {
327
                    "type": "string"
328
                },
329
                "op": {
330
                    "type": "string"
331
                },
332
                "obj": {
333
                    "type": "string"
334
                },
335
                "det": {
336
                    "type": "string"
337
                }
338
            },
339
            "required": ["time", "sub", "op"]
340
        },
341
        "pres-ValidateEvidenceType": {
342
            "type": "object",
343
            "properties": {
344
                "optIn": {
345
                    "$ref": "#\/definitions\/dsb-OptionalInputsType"
346
                },
347
                "reqId": {
348
                    "type": "string"
349
                },
350
                "ev": {
351
                    "$ref": "#\/definitions\/pres-EvidenceType"
352
                },
353
                "po": {
354
                    "type": "array",
355
                    "items": {
356
                        "$ref": "#\/definitions\/pres-POType"
357
                    }
358
                }
359
            }
360
        },
361
        "pres-EvidenceType": {
362
            "type": "object",
363
            "properties": {
364
                "binaryData": {
365
                    "$ref": "#\/definitions\/pres-POType:BinaryData"
366
                },
367
                "xmlData": {
368
                    "$ref": "#\/definitions\/pres-POType:XmlData"
369
                },
370
                "formatId": {
371
                    "type": "string"
372
                },
373
                "mimeType": {
374
                    "type": "string"
375
                },
376
                "pronomId": {
377
                    "type": "string"
378
                },
379
                "id": {
380
                    "type": "string"
381
                },
382
                "relObj": {
383
                    "type": "array",
384
                    "items": {
385
                        "type": "string"
386
                    }
387
                },
388
                "poId": {
389
                    "type": "string"
390
                },
391
                "verId": {
392
                    "type": "string"
393
                }
394
            }
395
        },
396
        "pres-ValidateEvidenceResponseType": {
397
            "type": "object",
398
            "properties": {
399
                "optOut": {
400
                    "$ref": "#\/definitions\/dsb-OptionalOutputsType"
401
                },
402
                "result": {
403
                    "$ref": "#\/definitions\/dsb-ResultType"
404
                },
405
                "reqId": {
406
                    "type": "string"
407
                },
408
                "valRep": {
409
                    "$ref": "#\/definitions\/pres-POType"
410
                },
411
                "poe": {
412
                    "type": "string",
413
                    "format": "date-time"
414
                }
415
            }
416
        },
417
        "pres-ProfileType": {
418
            "type": "object",
419
            "properties": {
420
                "pid": {
421
                    "type": "string"
422
                },
423
                "spec": {
424
                    "type": "array",
425
                    "items": {
426
                        "type": "string"
427
                    }
428
                },
429
                "description": {
430
                    "type": "array",
431
                    "items": {
432
                        "$ref": "#\/definitions\/dsb-InternationalStringType"
433
                    }
434
                },
435
                "op": {
436
                    "type": "array",
437
                    "items": {
438
                        "$ref": "#\/definitions\/md-OperationType"
439
                    }
440
                },
441
                "pol": {
442
                    "type": "array",
443
                    "items": {
444
                        "$ref": "#\/definitions\/md-PolicyType"
445
                    }
446
                },
447
                "ext": {
448
                    "type": "array",
449
                    "items": {
450
                        "$ref": "#\/definitions\/md-ExtensionType"
451
                    }
452
                },
453
                "sid": {
454
                    "type": "string"
455
                },
456
                "pvp": {
457
                    "$ref": "#\/definitions\/pres-ProfileValidityPeriodType"
458
                },
459
                "psm": {
460
                    "type": "string"
461
                },
462
                "pg": {
463
                    "type": "array",
464
                    "items": {
465
                        "type": "string"
466
                    }
467
                },
468
                "ef": {
469
                    "type": "array",
470
                    "items": {
471
                        "$ref": "#\/definitions\/md-FormatType"
472
                    }
473
                },
474
                "eed": {
475
                    "type": "string"
476
                },
477
                "perp": {
478
                    "type": "string"
479
                }
480
            },
481
            "required": ["pvp", "psm", "pg", "ef"]
482
        },
483
        "pres-ProfileValidityPeriodType": {
484
            "type": "object",
485
            "properties": {
486
                "vfrom": {
487
                    "type": "string",
488
                    "format": "date-time"
489
                },
490
                "vuntl": {
491
                    "type": "string",
492
                    "format": "date-time"
493
                }
494
            },
495
            "required": ["vfrom"]
496
        },
497
        "pres-RetrieveInfoType": {
498
            "type": "object",
499
            "properties": {
500
                "optIn": {
501
                    "$ref": "#\/definitions\/dsb-OptionalInputsType"
502
                },
503
                "reqId": {
504
                    "type": "string"
505
                },
506
                "pro": {
507
                    "type": "string"
508
                },
509
                "stat": {
510
                    "type": "string"
511
                }
512
            }
513
        },
514
        "pres-RetrieveInfoResponseType": {
515
            "type": "object",
516
            "properties": {
517
                "optOut": {
518
                    "$ref": "#\/definitions\/dsb-OptionalOutputsType"
519
                },
520
                "result": {
521
                    "$ref": "#\/definitions\/dsb-ResultType"
522
                },
523
                "reqId": {
524
                    "type": "string"
525
                },
526
                "pro": {
527
                    "type": "array",
528
                    "items": {
529
                        "$ref": "#\/definitions\/pres-ProfileType"
530
                    }
531
                }
532
            }
533
        },
534
        "pres-SearchType": {
535
            "type": "object",
536
            "properties": {
537
                "optIn": {
538
                    "$ref": "#\/definitions\/dsb-OptionalInputsType"
539
                },
540
                "reqId": {
541
                    "type": "string"
542
                },
543
                "fi": {
544
                    "type": "string"
545
                }
546
            },
547
            "required": ["fi"]
548
        },
549
        "pres-SearchResponseType": {
550
            "type": "object",
551
            "properties": {
552
                "optOut": {
553
                    "$ref": "#\/definitions\/dsb-OptionalOutputsType"
554
                },
555
                "result": {
556
                    "$ref": "#\/definitions\/dsb-ResultType"
557
                },
558
                "reqId": {
559
                    "type": "string"
560
                },
561
                "poId": {
562
                    "type": "array",
563
                    "items": {
564
                        "type": "string"
565
                    }
566
                }
567
            }
568
        },
569
        "pres-DigestListType": {
570
            "type": "object",
571
            "properties": {
572
                "digAlg": {
573
                    "$ref": "#\/definitions\/dsigrw-DigestMethodType"
574
                },
575
                "digVal": {
576
                    "type": "array",
577
                    "items": {
578
                        "type": "string"
579
                    }
580
                },
581
                "ev": {
582
                    "$ref": "#\/definitions\/pres-EvidenceType"
583
                }
584
            },
585
            "required": ["digAlg", "digVal"]
586
        },
587
        "pres-RequestType": {
588
            "type": "object",
589
            "properties": {
590
                "optIn": {
591
                    "$ref": "#\/definitions\/dsb-OptionalInputsType"
592
                },
593
                "reqId": {
594
                    "type": "string"
595
                }
596
            }
597
        }
598
    },
599
    "type": "object",
600
    "properties": {
601
        "presPO": {
602
            "$ref": "#\/definitions\/pres-PreservePOType"
603
        },
604
        "preserveResp": {
605
            "$ref": "#\/definitions\/pres-PreservePOResponseType"
606
        },
607
        "updPoc": {
608
            "$ref": "#\/definitions\/pres-UpdatePOCType"
609
        },
610
        "updPocResp": {
611
            "$ref": "#\/definitions\/pres-UpdatePOCResponseType"
612
        },
613
        "getPO": {
614
            "$ref": "#\/definitions\/pres-RetrievePOType"
615
        },
616
        "getPOResp": {
617
            "$ref": "#\/definitions\/pres-RetrievePOResponseType"
618
        },
619
        "delPO": {
620
            "$ref": "#\/definitions\/pres-DeletePOType"
621
        },
622
        "getResp": {
623
            "$ref": "#\/definitions\/pres-ResponseType"
624
        },
625
        "getTrace": {
626
            "$ref": "#\/definitions\/pres-RetrieveTraceType"
627
        },
628
        "getTraceResp": {
629
            "$ref": "#\/definitions\/pres-RetrieveTraceResponseType"
630
        },
631
        "valEvidence": {
632
            "$ref": "#\/definitions\/pres-ValidateEvidenceType"
633
        },
634
        "valEvidenceResp": {
635
            "$ref": "#\/definitions\/pres-ValidateEvidenceResponseType"
636
        },
637
        "sor": {
638
            "type": "string"
639
        },
640
        "profile": {
641
            "$ref": "#\/definitions\/pres-ProfileType"
642
        },
643
        "stat": {
644
            "type": "string"
645
        },
646
        "retrvInfo": {
647
            "$ref": "#\/definitions\/pres-RetrieveInfoType"
648
        },
649
        "retrvInfoResp": {
650
            "$ref": "#\/definitions\/pres-RetrieveInfoResponseType"
651
        },
652
        "presStoreModel": {
653
            "type": "string"
654
        },
655
        "search": {
656
            "$ref": "#\/definitions\/pres-SearchType"
657
        },
658
        "searchResp": {
659
            "$ref": "#\/definitions\/pres-SearchResponseType"
660
        },
661
        "digestList": {
662
            "$ref": "#\/definitions\/pres-DigestListType"
663
        },
664
        "req": {
665
            "$ref": "#\/definitions\/pres-RequestType"
666
        },
667
        "resp": {
668
            "$ref": "#\/definitions\/pres-ResponseType"
669
        }
670
    }
671
}
(7-7/12)