@bsv/vsc 0.2.0-beta.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.
Files changed (64) hide show
  1. package/LICENSE +58 -0
  2. package/README.md +107 -0
  3. package/artifacts/context-0.1.0.jsonld +127 -0
  4. package/artifacts/disclosure-0.1.0.schema.json +526 -0
  5. package/artifacts/epcis/NOTICE.md +11 -0
  6. package/artifacts/epcis/epcis-context-2.0.1.jsonld +593 -0
  7. package/artifacts/epcis/epcis-json-schema-2.0.1.json +2352 -0
  8. package/artifacts/epcis/query-schema-2.0.1.json +968 -0
  9. package/artifacts/external/NOTICE.md +3 -0
  10. package/artifacts/external/dpp-external-passport-1.context.jsonld +8 -0
  11. package/artifacts/external/dpp-external-passport-1.schema.json +158 -0
  12. package/artifacts/profile-0.1.0.json +100 -0
  13. package/artifacts/seal-0.1.0.schema.json +535 -0
  14. package/artifacts/w3c/NOTICE.md +3 -0
  15. package/artifacts/w3c/credentials-v2.jsonld +340 -0
  16. package/dist/context.d.ts +9 -0
  17. package/dist/context.d.ts.map +1 -0
  18. package/dist/context.js +50 -0
  19. package/dist/context.js.map +1 -0
  20. package/dist/crypto.d.ts +50 -0
  21. package/dist/crypto.d.ts.map +1 -0
  22. package/dist/crypto.js +141 -0
  23. package/dist/crypto.js.map +1 -0
  24. package/dist/did-web.d.ts +9 -0
  25. package/dist/did-web.d.ts.map +1 -0
  26. package/dist/did-web.js +66 -0
  27. package/dist/did-web.js.map +1 -0
  28. package/dist/epcis-source.d.ts +251 -0
  29. package/dist/epcis-source.d.ts.map +1 -0
  30. package/dist/epcis-source.js +573 -0
  31. package/dist/epcis-source.js.map +1 -0
  32. package/dist/epcis.d.ts +51 -0
  33. package/dist/epcis.d.ts.map +1 -0
  34. package/dist/epcis.js +171 -0
  35. package/dist/epcis.js.map +1 -0
  36. package/dist/exchange.d.ts +175 -0
  37. package/dist/exchange.d.ts.map +1 -0
  38. package/dist/exchange.js +491 -0
  39. package/dist/exchange.js.map +1 -0
  40. package/dist/index.d.ts +10 -0
  41. package/dist/index.d.ts.map +1 -0
  42. package/dist/index.js +10 -0
  43. package/dist/index.js.map +1 -0
  44. package/dist/jcs.d.ts +25 -0
  45. package/dist/jcs.d.ts.map +1 -0
  46. package/dist/jcs.js +67 -0
  47. package/dist/jcs.js.map +1 -0
  48. package/dist/schema.d.ts +414 -0
  49. package/dist/schema.d.ts.map +1 -0
  50. package/dist/schema.js +537 -0
  51. package/dist/schema.js.map +1 -0
  52. package/dist/types.d.ts +159 -0
  53. package/dist/types.d.ts.map +1 -0
  54. package/dist/types.js +2 -0
  55. package/dist/types.js.map +1 -0
  56. package/dist/validation.d.ts +22 -0
  57. package/dist/validation.d.ts.map +1 -0
  58. package/dist/validation.js +147 -0
  59. package/dist/validation.js.map +1 -0
  60. package/dist/verification.d.ts +10 -0
  61. package/dist/verification.d.ts.map +1 -0
  62. package/dist/verification.js +350 -0
  63. package/dist/verification.js.map +1 -0
  64. package/package.json +68 -0
@@ -0,0 +1,2352 @@
1
+ {
2
+ "$id": "https://ref.gs1.org/standards/epcis/2.0.1/epcis-json-schema.json",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "type": "object",
5
+ "required": [
6
+ "type"
7
+ ],
8
+ "properties": {
9
+ "type": {
10
+ "type": "string"
11
+ }
12
+ },
13
+ "allOf": [
14
+ {
15
+ "if": {
16
+ "type": "object",
17
+ "properties": {
18
+ "type": {
19
+ "enum": [
20
+ "EPCISDocument"
21
+ ]
22
+ }
23
+ }
24
+ },
25
+ "then": {
26
+ "$ref": "#/definitions/epcisDocument"
27
+ }
28
+ },
29
+ {
30
+ "if": {
31
+ "type": "object",
32
+ "properties": {
33
+ "type": {
34
+ "enum": [
35
+ "EPCISQueryDocument"
36
+ ]
37
+ }
38
+ }
39
+ },
40
+ "then": {
41
+ "$ref": "#/definitions/epcisQueryDocument"
42
+ }
43
+ },
44
+ {
45
+ "if": {
46
+ "type": "object",
47
+ "properties": {
48
+ "type": {
49
+ "enum": [
50
+ "ObjectEvent"
51
+ ]
52
+ }
53
+ }
54
+ },
55
+ "then": {
56
+ "allOf": [
57
+ {
58
+ "$ref": "#/definitions/ObjectEvent"
59
+ },
60
+ {
61
+ "$ref": "#/definitions/required-ld-context"
62
+ }
63
+ ]
64
+ }
65
+ },
66
+ {
67
+ "if": {
68
+ "type": "object",
69
+ "properties": {
70
+ "type": {
71
+ "enum": [
72
+ "AggregationEvent"
73
+ ]
74
+ }
75
+ }
76
+ },
77
+ "then": {
78
+ "allOf": [
79
+ {
80
+ "$ref": "#/definitions/AggregationEvent"
81
+ },
82
+ {
83
+ "$ref": "#/definitions/required-ld-context"
84
+ }
85
+ ]
86
+ }
87
+ },
88
+ {
89
+ "if": {
90
+ "type": "object",
91
+ "properties": {
92
+ "type": {
93
+ "enum": [
94
+ "AssociationEvent"
95
+ ]
96
+ }
97
+ }
98
+ },
99
+ "then": {
100
+ "allOf": [
101
+ {
102
+ "$ref": "#/definitions/AssociationEvent"
103
+ },
104
+ {
105
+ "$ref": "#/definitions/required-ld-context"
106
+ }
107
+ ]
108
+ }
109
+ },
110
+ {
111
+ "if": {
112
+ "type": "object",
113
+ "properties": {
114
+ "type": {
115
+ "enum": [
116
+ "TransformationEvent"
117
+ ]
118
+ }
119
+ }
120
+ },
121
+ "then": {
122
+ "allOf": [
123
+ {
124
+ "$ref": "#/definitions/TransformationEvent"
125
+ },
126
+ {
127
+ "$ref": "#/definitions/required-ld-context"
128
+ }
129
+ ]
130
+ }
131
+ },
132
+ {
133
+ "if": {
134
+ "type": "object",
135
+ "properties": {
136
+ "type": {
137
+ "enum": [
138
+ "TransactionEvent"
139
+ ]
140
+ }
141
+ }
142
+ },
143
+ "then": {
144
+ "allOf": [
145
+ {
146
+ "$ref": "#/definitions/TransactionEvent"
147
+ },
148
+ {
149
+ "$ref": "#/definitions/required-ld-context"
150
+ }
151
+ ]
152
+ }
153
+ },
154
+ {
155
+ "if": {
156
+ "not": {
157
+ "type": "object",
158
+ "properties": {
159
+ "type": {
160
+ "enum": [
161
+ "AssociationEvent",
162
+ "ObjectEvent",
163
+ "AggregationEvent",
164
+ "TransactionEvent",
165
+ "TransformationEvent",
166
+ "EPCISQueryDocument",
167
+ "EPCISDocument"
168
+ ]
169
+ }
170
+ }
171
+ }
172
+ },
173
+ "then": {
174
+ "allOf": [
175
+ {
176
+ "$ref": "#/definitions/Extended-Event"
177
+ },
178
+ {
179
+ "$ref": "#/definitions/required-ld-context"
180
+ }
181
+ ]
182
+ }
183
+ }
184
+ ],
185
+ "definitions": {
186
+ "vocabulary": {
187
+ "type": "object",
188
+ "properties": {
189
+ "type": {
190
+ "$ref": "#/definitions/uri"
191
+ },
192
+ "vocabularyElementList": {
193
+ "type": "array",
194
+ "items": {
195
+ "$ref": "#/definitions/vocabularyElement"
196
+ }
197
+ }
198
+ },
199
+ "required": [
200
+ "type"
201
+ ]
202
+ },
203
+ "vocabularyElement": {
204
+ "type": "object",
205
+ "properties": {
206
+ "id": {
207
+ "$ref": "#/definitions/uri"
208
+ },
209
+ "attributes": {
210
+ "type": "array",
211
+ "items": {
212
+ "$ref": "#/definitions/attribute"
213
+ }
214
+ },
215
+ "children": {
216
+ "type": "array",
217
+ "items": {
218
+ "$ref": "#/definitions/uri"
219
+ }
220
+ }
221
+ },
222
+ "required": [
223
+ "id"
224
+ ]
225
+ },
226
+ "attribute": {
227
+ "type": "object",
228
+ "properties": {
229
+ "id": {
230
+ "$ref": "#/definitions/uri"
231
+ },
232
+ "attribute": {
233
+ "anyOf": [
234
+ {
235
+ "type": "number"
236
+ },
237
+ {
238
+ "type": "string"
239
+ },
240
+ {
241
+ "type": "object"
242
+ }
243
+ ]
244
+ }
245
+ },
246
+ "required": [
247
+ "id"
248
+ ]
249
+ },
250
+ "eventList": {
251
+ "type": "array",
252
+ "items": {
253
+ "$ref": "#/definitions/EPCIS-Document-Event"
254
+ }
255
+ },
256
+ "vocabularyList": {
257
+ "type": "array",
258
+ "items": {
259
+ "$ref": "#/definitions/vocabulary"
260
+ }
261
+ },
262
+ "resultsBody": {
263
+ "type": "object",
264
+ "properties": {
265
+ "eventList": {
266
+ "$ref": "#/definitions/eventList"
267
+ },
268
+ "vocabularyList": {
269
+ "$ref": "#/definitions/vocabularyList"
270
+ }
271
+ },
272
+ "required": [
273
+ "eventList"
274
+ ],
275
+ "propertyNames": {
276
+ "anyOf": [
277
+ {
278
+ "type": "string",
279
+ "enum": [
280
+ "eventList",
281
+ "vocabularyList"
282
+ ]
283
+ },
284
+ {
285
+ "$ref": "#/definitions/vocab-uri"
286
+ }
287
+ ]
288
+ }
289
+ },
290
+ "queryResults": {
291
+ "type": "object",
292
+ "properties": {
293
+ "queryName": {
294
+ "type": "string"
295
+ },
296
+ "subscriptionID": {
297
+ "type": "string"
298
+ },
299
+ "resultsBody": {
300
+ "$ref": "#/definitions/resultsBody"
301
+ }
302
+ },
303
+ "required": [
304
+ "queryName",
305
+ "resultsBody"
306
+ ],
307
+ "propertyNames": {
308
+ "anyOf": [
309
+ {
310
+ "type": "string",
311
+ "enum": [
312
+ "queryName",
313
+ "subscriptionID",
314
+ "resultsBody"
315
+ ]
316
+ },
317
+ {
318
+ "$ref": "#/definitions/vocab-uri"
319
+ }
320
+ ]
321
+ }
322
+ },
323
+ "epcisQueryDocumentBody": {
324
+ "type": "object",
325
+ "properties": {
326
+ "queryResults": {
327
+ "$ref": "#/definitions/queryResults"
328
+ }
329
+ },
330
+ "required": [
331
+ "queryResults"
332
+ ],
333
+ "propertyNames": {
334
+ "anyOf": [
335
+ {
336
+ "type": "string",
337
+ "enum": [
338
+ "queryResults"
339
+ ]
340
+ },
341
+ {
342
+ "$ref": "#/definitions/vocab-uri"
343
+ }
344
+ ]
345
+ }
346
+ },
347
+ "epcisHeader": {
348
+ "type": "object",
349
+ "properties": {
350
+ "epcisMasterData": {
351
+ "type": "object",
352
+ "properties": {
353
+ "vocabularyList": {
354
+ "type": "array",
355
+ "items": {
356
+ "$ref": "#/definitions/vocabulary"
357
+ }
358
+ }
359
+ }
360
+ }
361
+ },
362
+ "propertyNames": {
363
+ "anyOf": [
364
+ {
365
+ "type": "string",
366
+ "enum": [
367
+ "epcisMasterData"
368
+ ]
369
+ },
370
+ {
371
+ "$ref": "#/definitions/vocab-uri"
372
+ }
373
+ ]
374
+ }
375
+ },
376
+ "epcisDocument": {
377
+ "type": "object",
378
+ "properties": {
379
+ "id": {
380
+ "$ref": "#/definitions/id"
381
+ },
382
+ "type": {
383
+ "type": "string",
384
+ "enum": [
385
+ "EPCISDocument"
386
+ ]
387
+ },
388
+ "@context": {
389
+ "$ref": "#/definitions/@context"
390
+ },
391
+ "schemaVersion": {
392
+ "$ref": "#/definitions/version"
393
+ },
394
+ "creationDate": {
395
+ "$ref": "#/definitions/time"
396
+ },
397
+ "instanceIdentifier": {
398
+ "type": "string"
399
+ },
400
+ "sender": {
401
+ "type": "string"
402
+ },
403
+ "receiver": {
404
+ "type": "string"
405
+ },
406
+ "epcisHeader": {
407
+ "$ref": "#/definitions/epcisHeader"
408
+ },
409
+ "epcisBody": {
410
+ "type": "object",
411
+ "properties": {
412
+ "eventList": {
413
+ "$ref": "#/definitions/eventList"
414
+ }
415
+ },
416
+ "required": [
417
+ "eventList"
418
+ ]
419
+ }
420
+ },
421
+ "required": [
422
+ "@context",
423
+ "type",
424
+ "schemaVersion",
425
+ "creationDate",
426
+ "epcisBody"
427
+ ],
428
+ "propertyNames": {
429
+ "anyOf": [
430
+ {
431
+ "type": "string",
432
+ "enum": [
433
+ "@context",
434
+ "id",
435
+ "type",
436
+ "schemaVersion",
437
+ "creationDate",
438
+ "instanceIdentifier",
439
+ "sender",
440
+ "receiver",
441
+ "epcisHeader",
442
+ "epcisBody"
443
+ ]
444
+ },
445
+ {
446
+ "$ref": "#/definitions/vocab-uri"
447
+ }
448
+ ]
449
+ }
450
+ },
451
+ "epcisQueryDocument": {
452
+ "type": "object",
453
+ "properties": {
454
+ "@context": {
455
+ "$ref": "#/definitions/@context"
456
+ },
457
+ "id": {
458
+ "$ref": "#/definitions/id"
459
+ },
460
+ "type": {
461
+ "type": "string",
462
+ "enum": [
463
+ "EPCISQueryDocument"
464
+ ]
465
+ },
466
+ "schemaVersion": {
467
+ "$ref": "#/definitions/version"
468
+ },
469
+ "creationDate": {
470
+ "$ref": "#/definitions/time"
471
+ },
472
+ "epcisBody": {
473
+ "$ref": "#/definitions/epcisQueryDocumentBody"
474
+ }
475
+ },
476
+ "required": [
477
+ "@context",
478
+ "type",
479
+ "epcisBody"
480
+ ],
481
+ "propertyNames": {
482
+ "anyOf": [
483
+ {
484
+ "type": "string",
485
+ "enum": [
486
+ "@context",
487
+ "id",
488
+ "type",
489
+ "schemaVersion",
490
+ "creationDate",
491
+ "epcisBody"
492
+ ]
493
+ },
494
+ {
495
+ "$ref": "#/definitions/vocab-uri"
496
+ }
497
+ ]
498
+ }
499
+ },
500
+ "EPCIS-Document": {
501
+ "oneOf": [
502
+ {
503
+ "$ref": "#/definitions/epcisDocument"
504
+ },
505
+ {
506
+ "$ref": "#/definitions/epcisQueryDocument"
507
+ }
508
+ ]
509
+ },
510
+ "uri": {
511
+ "type": "string",
512
+ "format": "uri"
513
+ },
514
+ "time": {
515
+ "type": "string",
516
+ "format": "date-time"
517
+ },
518
+ "decimal": {
519
+ "type": "number"
520
+ },
521
+ "boolean": {
522
+ "type": "boolean"
523
+ },
524
+ "hexBinary": {
525
+ "type": "string",
526
+ "pattern": "^[A-Fa-f0-9]+$"
527
+ },
528
+ "string": {
529
+ "type": "string"
530
+ },
531
+ "action": {
532
+ "type": "string",
533
+ "enum": [
534
+ "OBSERVE",
535
+ "ADD",
536
+ "DELETE"
537
+ ]
538
+ },
539
+ "eventType": {
540
+ "anyOf": [
541
+ {
542
+ "type": "string",
543
+ "enum": [
544
+ "ObjectEvent",
545
+ "AggregationEvent",
546
+ "AssociationEvent",
547
+ "TransformationEvent",
548
+ "TransactionEvent"
549
+ ]
550
+ },
551
+ {
552
+ "type": "string",
553
+ "format": "uri"
554
+ }
555
+ ]
556
+ },
557
+ "persistentDisposition": {
558
+ "allOf": [
559
+ {
560
+ "type": "object",
561
+ "properties": {
562
+ "set": {
563
+ "type": "array",
564
+ "items": {
565
+ "$ref": "#/definitions/disposition"
566
+ },
567
+ "minItems": 1,
568
+ "uniqueItems": true
569
+ },
570
+ "unset": {
571
+ "type": "array",
572
+ "items": {
573
+ "$ref": "#/definitions/disposition"
574
+ },
575
+ "minItems": 1,
576
+ "uniqueItems": true
577
+ }
578
+ },
579
+ "additionalProperties": false
580
+ },
581
+ {
582
+ "anyOf": [
583
+ {
584
+ "type": "object",
585
+ "required": [
586
+ "set"
587
+ ]
588
+ },
589
+ {
590
+ "type": "object",
591
+ "required": [
592
+ "unset"
593
+ ]
594
+ }
595
+ ]
596
+ }
597
+ ]
598
+ },
599
+ "epcList": {
600
+ "type": "array",
601
+ "items": {
602
+ "$ref": "#/definitions/uri"
603
+ },
604
+ "uniqueItems": true
605
+ },
606
+ "quantityList": {
607
+ "type": "array",
608
+ "items": {
609
+ "$ref": "#/definitions/quantityElement"
610
+ }
611
+ },
612
+ "uom": {
613
+ "type": "string",
614
+ "pattern": "^[A-Z0-9]{2,3}$"
615
+ },
616
+ "eventID": {
617
+ "$ref": "#/definitions/uri"
618
+ },
619
+ "certificationInfo": {
620
+ "anyOf": [
621
+ {
622
+ "type": "array",
623
+ "items": {
624
+ "$ref": "#/definitions/uri"
625
+ }
626
+ },
627
+ {
628
+ "$ref": "#/definitions/uri"
629
+ }
630
+ ]
631
+ },
632
+ "errorDeclaration": {
633
+ "type": "object",
634
+ "properties": {
635
+ "declarationTime": {
636
+ "$ref": "#/definitions/time"
637
+ },
638
+ "reason": {
639
+ "$ref": "#/definitions/error-reason"
640
+ },
641
+ "correctiveEventIDs": {
642
+ "type": "array",
643
+ "items": {
644
+ "$ref": "#/definitions/eventID"
645
+ }
646
+ }
647
+ },
648
+ "required": [
649
+ "declarationTime"
650
+ ],
651
+ "propertyNames": {
652
+ "anyOf": [
653
+ {
654
+ "$ref": "#/definitions/vocab-uri"
655
+ },
656
+ {
657
+ "type": "string",
658
+ "enum": [
659
+ "declarationTime",
660
+ "reason",
661
+ "correctiveEventIDs"
662
+ ]
663
+ }
664
+ ]
665
+ }
666
+ },
667
+ "quantityElement": {
668
+ "type": "object",
669
+ "properties": {
670
+ "epcClass": {
671
+ "$ref": "#/definitions/uri"
672
+ },
673
+ "quantity": {
674
+ "$ref": "#/definitions/decimal"
675
+ },
676
+ "uom": {
677
+ "$ref": "#/definitions/uom"
678
+ }
679
+ },
680
+ "required": [
681
+ "epcClass"
682
+ ],
683
+ "additionalProperties": false
684
+ },
685
+ "bizTransaction": {
686
+ "type": "object",
687
+ "properties": {
688
+ "type": {
689
+ "$ref": "#/definitions/bizTransaction-type"
690
+ },
691
+ "bizTransaction": {
692
+ "$ref": "#/definitions/uri"
693
+ }
694
+ },
695
+ "required": [
696
+ "bizTransaction"
697
+ ],
698
+ "additionalProperties": false
699
+ },
700
+ "readPoint": {
701
+ "type": "object",
702
+ "properties": {
703
+ "id": {
704
+ "$ref": "#/definitions/uri"
705
+ }
706
+ },
707
+ "required": [
708
+ "id"
709
+ ]
710
+ },
711
+ "bizLocation": {
712
+ "type": "object",
713
+ "properties": {
714
+ "id": {
715
+ "$ref": "#/definitions/uri"
716
+ }
717
+ },
718
+ "required": [
719
+ "id"
720
+ ]
721
+ },
722
+ "source": {
723
+ "type": "object",
724
+ "properties": {
725
+ "type": {
726
+ "$ref": "#/definitions/source-dest-type"
727
+ },
728
+ "source": {
729
+ "$ref": "#/definitions/uri"
730
+ }
731
+ },
732
+ "required": [
733
+ "type",
734
+ "source"
735
+ ],
736
+ "additionalProperties": false
737
+ },
738
+ "destination": {
739
+ "type": "object",
740
+ "properties": {
741
+ "type": {
742
+ "$ref": "#/definitions/source-dest-type"
743
+ },
744
+ "destination": {
745
+ "$ref": "#/definitions/uri"
746
+ }
747
+ },
748
+ "required": [
749
+ "type",
750
+ "destination"
751
+ ],
752
+ "additionalProperties": false
753
+ },
754
+ "sensorElement": {
755
+ "type": "object",
756
+ "properties": {
757
+ "sensorMetadata": {
758
+ "$ref": "#/definitions/sensorMetadata"
759
+ },
760
+ "sensorReport": {
761
+ "$ref": "#/definitions/sensorReportList"
762
+ }
763
+ },
764
+ "required": [
765
+ "sensorReport"
766
+ ],
767
+ "propertyNames": {
768
+ "anyOf": [
769
+ {
770
+ "$ref": "#/definitions/vocab-uri"
771
+ },
772
+ {
773
+ "type": "string",
774
+ "enum": [
775
+ "sensorMetadata",
776
+ "sensorReport"
777
+ ]
778
+ }
779
+ ]
780
+ }
781
+ },
782
+ "sensorReportList": {
783
+ "type": "array",
784
+ "items": {
785
+ "$ref": "#/definitions/sensorReport"
786
+ },
787
+ "minItems": 1
788
+ },
789
+ "sensorReport": {
790
+ "type": "object",
791
+ "properties": {
792
+ "type": {
793
+ "$ref": "#/definitions/measurementType"
794
+ },
795
+ "exception": {
796
+ "$ref": "#/definitions/sensorAlertType"
797
+ },
798
+ "deviceID": {
799
+ "$ref": "#/definitions/uri"
800
+ },
801
+ "deviceMetadata": {
802
+ "$ref": "#/definitions/uri"
803
+ },
804
+ "rawData": {
805
+ "$ref": "#/definitions/uri"
806
+ },
807
+ "dataProcessingMethod": {
808
+ "$ref": "#/definitions/uri"
809
+ },
810
+ "bizRules": {
811
+ "$ref": "#/definitions/uri"
812
+ },
813
+ "time": {
814
+ "$ref": "#/definitions/time"
815
+ },
816
+ "microorganism": {
817
+ "$ref": "#/definitions/uri"
818
+ },
819
+ "chemicalSubstance": {
820
+ "$ref": "#/definitions/uri"
821
+ },
822
+ "coordinateReferenceSystem": {
823
+ "$ref": "#/definitions/uri"
824
+ },
825
+ "value": {
826
+ "$ref": "#/definitions/decimal"
827
+ },
828
+ "component": {
829
+ "$ref": "#/definitions/component"
830
+ },
831
+ "stringValue": {
832
+ "$ref": "#/definitions/string"
833
+ },
834
+ "booleanValue": {
835
+ "$ref": "#/definitions/boolean"
836
+ },
837
+ "hexBinaryValue": {
838
+ "$ref": "#/definitions/hexBinary"
839
+ },
840
+ "uriValue": {
841
+ "$ref": "#/definitions/uri"
842
+ },
843
+ "minValue": {
844
+ "$ref": "#/definitions/decimal"
845
+ },
846
+ "maxValue": {
847
+ "$ref": "#/definitions/decimal"
848
+ },
849
+ "meanValue": {
850
+ "$ref": "#/definitions/decimal"
851
+ },
852
+ "sDev": {
853
+ "$ref": "#/definitions/decimal"
854
+ },
855
+ "percRank": {
856
+ "$ref": "#/definitions/decimal"
857
+ },
858
+ "percValue": {
859
+ "$ref": "#/definitions/decimal"
860
+ },
861
+ "uom": {
862
+ "$ref": "#/definitions/string"
863
+ }
864
+ },
865
+ "required": [
866
+ "type"
867
+ ],
868
+ "propertyNames": {
869
+ "anyOf": [
870
+ {
871
+ "$ref": "#/definitions/vocab-uri"
872
+ },
873
+ {
874
+ "type": "string",
875
+ "enum": [
876
+ "type",
877
+ "exception",
878
+ "deviceID",
879
+ "deviceMetadata",
880
+ "rawData",
881
+ "dataProcessingMethod",
882
+ "bizRules",
883
+ "time",
884
+ "microorganism",
885
+ "chemicalSubstance",
886
+ "coordinateReferenceSystem",
887
+ "value",
888
+ "component",
889
+ "stringValue",
890
+ "booleanValue",
891
+ "hexBinaryValue",
892
+ "uriValue",
893
+ "minValue",
894
+ "maxValue",
895
+ "meanValue",
896
+ "sDev",
897
+ "percRank",
898
+ "percValue",
899
+ "uom"
900
+ ]
901
+ }
902
+ ]
903
+ }
904
+ },
905
+ "sensorMetadata": {
906
+ "type": "object",
907
+ "properties": {
908
+ "time": {
909
+ "$ref": "#/definitions/time"
910
+ },
911
+ "deviceID": {
912
+ "$ref": "#/definitions/uri"
913
+ },
914
+ "deviceMetadata": {
915
+ "$ref": "#/definitions/uri"
916
+ },
917
+ "rawData": {
918
+ "$ref": "#/definitions/uri"
919
+ },
920
+ "startTime": {
921
+ "$ref": "#/definitions/time"
922
+ },
923
+ "endTime": {
924
+ "$ref": "#/definitions/time"
925
+ },
926
+ "dataProcessingMethod": {
927
+ "$ref": "#/definitions/uri"
928
+ },
929
+ "bizRules": {
930
+ "$ref": "#/definitions/uri"
931
+ }
932
+ },
933
+ "propertyNames": {
934
+ "anyOf": [
935
+ {
936
+ "$ref": "#/definitions/vocab-uri"
937
+ },
938
+ {
939
+ "type": "string",
940
+ "enum": [
941
+ "time",
942
+ "deviceID",
943
+ "deviceMetadata",
944
+ "rawData",
945
+ "startTime",
946
+ "endTime",
947
+ "dataProcessingMethod",
948
+ "bizRules"
949
+ ]
950
+ }
951
+ ]
952
+ }
953
+ },
954
+ "ilmd": {
955
+ "type": "object",
956
+ "propertyNames": {
957
+ "type": "string",
958
+ "format": "uri"
959
+ }
960
+ },
961
+ "Event": {
962
+ "type": "object",
963
+ "properties": {
964
+ "@context": {
965
+ "$ref": "#/definitions/@context"
966
+ },
967
+ "eventTime": {
968
+ "$ref": "#/definitions/time"
969
+ },
970
+ "recordTime": {
971
+ "$ref": "#/definitions/time"
972
+ },
973
+ "eventTimeZoneOffset": {
974
+ "type": "string",
975
+ "pattern": "^([+]|[-])((0[0-9]|1[0-3]):([0-5][0-9])|14:00)$"
976
+ },
977
+ "eventID": {
978
+ "$ref": "#/definitions/eventID"
979
+ },
980
+ "certificationInfo": {
981
+ "$ref": "#/definitions/certificationInfo"
982
+ },
983
+ "errorDeclaration": {
984
+ "$ref": "#/definitions/errorDeclaration"
985
+ }
986
+ },
987
+ "required": [
988
+ "eventTime",
989
+ "eventTimeZoneOffset"
990
+ ]
991
+ },
992
+ "common-event-properties": {
993
+ "anyOf": [
994
+ {
995
+ "type": "string",
996
+ "enum": [
997
+ "@context",
998
+ "type",
999
+ "eventTime",
1000
+ "recordTime",
1001
+ "eventTimeZoneOffset",
1002
+ "eventID",
1003
+ "certificationInfo",
1004
+ "errorDeclaration"
1005
+ ]
1006
+ },
1007
+ {
1008
+ "$ref": "#/definitions/vocab-uri"
1009
+ }
1010
+ ]
1011
+ },
1012
+ "Extended-Event": {
1013
+ "allOf": [
1014
+ {
1015
+ "$ref": "#/definitions/Event"
1016
+ },
1017
+ {
1018
+ "type": "object",
1019
+ "properties": {
1020
+ "type": {
1021
+ "$ref": "#/definitions/vocab-uri"
1022
+ }
1023
+ },
1024
+ "required": [
1025
+ "type"
1026
+ ]
1027
+ }
1028
+ ]
1029
+ },
1030
+ "disposition": {
1031
+ "anyOf": [
1032
+ {
1033
+ "$ref": "#/definitions/vocab-other-uri"
1034
+ },
1035
+ {
1036
+ "type": "string",
1037
+ "enum": [
1038
+ "active",
1039
+ "container_closed",
1040
+ "damaged",
1041
+ "destroyed",
1042
+ "dispensed",
1043
+ "disposed",
1044
+ "encoded",
1045
+ "expired",
1046
+ "in_progress",
1047
+ "in_transit",
1048
+ "inactive",
1049
+ "no_pedigree_match",
1050
+ "non_sellable_other",
1051
+ "partially_dispensed",
1052
+ "recalled",
1053
+ "reserved",
1054
+ "retail_sold",
1055
+ "returned",
1056
+ "sellable_accessible",
1057
+ "sellable_not_accessible",
1058
+ "stolen",
1059
+ "unknown",
1060
+ "available",
1061
+ "completeness_verified",
1062
+ "completeness_inferred",
1063
+ "conformant",
1064
+ "container_open",
1065
+ "mismatch_instance",
1066
+ "mismatch_class",
1067
+ "mismatch_quantity",
1068
+ "needs_replacement",
1069
+ "non_conformant",
1070
+ "unavailable"
1071
+ ]
1072
+ }
1073
+ ]
1074
+ },
1075
+ "@context": {
1076
+ "anyOf": [
1077
+ {
1078
+ "type": "string",
1079
+ "format": "uri"
1080
+ },
1081
+ {
1082
+ "type": "object"
1083
+ },
1084
+ {
1085
+ "type": "array",
1086
+ "uniqueItems": true,
1087
+ "items": {
1088
+ "anyOf": [
1089
+ {
1090
+ "type": "string",
1091
+ "format": "uri"
1092
+ },
1093
+ {
1094
+ "type": "object"
1095
+ }
1096
+ ]
1097
+ }
1098
+ }
1099
+ ]
1100
+ },
1101
+ "vocab-uri": {
1102
+ "type": "string",
1103
+ "format": "uri"
1104
+ },
1105
+ "vocab-other-uri": {
1106
+ "type": "string",
1107
+ "format": "uri",
1108
+ "pattern": "^(?!(urn:epcglobal:cbv|https?:\\/\\/ns\\.gs1\\.org/cbv\\/))"
1109
+ },
1110
+ "vocab-nonGS1WebVoc-uri": {
1111
+ "type": "string",
1112
+ "format": "uri",
1113
+ "pattern": "^(?!(https?:\\/\\/gs1\\.org\\/voc\\/|https?:\\/\\/www\\.gs1\\.org\\/voc\\/))"
1114
+ },
1115
+ "required-ld-context": {
1116
+ "type": "object",
1117
+ "required": [
1118
+ "@context"
1119
+ ]
1120
+ },
1121
+ "version": {
1122
+ "type": "string",
1123
+ "pattern": "^\\d+(\\.\\d+)*$"
1124
+ },
1125
+ "id": {
1126
+ "type": "string",
1127
+ "format": "uri"
1128
+ },
1129
+ "error-reason": {
1130
+ "anyOf": [
1131
+ {
1132
+ "$ref": "#/definitions/vocab-other-uri"
1133
+ },
1134
+ {
1135
+ "type": "string",
1136
+ "enum": [
1137
+ "did_not_occur",
1138
+ "incorrect_data"
1139
+ ]
1140
+ }
1141
+ ]
1142
+ },
1143
+ "bizTransaction-type": {
1144
+ "anyOf": [
1145
+ {
1146
+ "$ref": "#/definitions/vocab-other-uri"
1147
+ },
1148
+ {
1149
+ "type": "string",
1150
+ "enum": [
1151
+ "bol",
1152
+ "cert",
1153
+ "desadv",
1154
+ "inv",
1155
+ "pedigree",
1156
+ "po",
1157
+ "poc",
1158
+ "prodorder",
1159
+ "recadv",
1160
+ "rma",
1161
+ "testprd",
1162
+ "testres",
1163
+ "upevt"
1164
+ ]
1165
+ }
1166
+ ]
1167
+ },
1168
+ "source-dest-type": {
1169
+ "anyOf": [
1170
+ {
1171
+ "$ref": "#/definitions/vocab-other-uri"
1172
+ },
1173
+ {
1174
+ "type": "string",
1175
+ "enum": [
1176
+ "owning_party",
1177
+ "possessing_party",
1178
+ "location"
1179
+ ]
1180
+ }
1181
+ ]
1182
+ },
1183
+ "measurementType": {
1184
+ "anyOf": [
1185
+ {
1186
+ "$ref": "#/definitions/vocab-nonGS1WebVoc-uri"
1187
+ },
1188
+ {
1189
+ "type": "string",
1190
+ "enum": [
1191
+ "AbsoluteHumidity",
1192
+ "AbsorbedDose",
1193
+ "AbsorbedDoseRate",
1194
+ "Acceleration",
1195
+ "Radioactivity",
1196
+ "Altitude",
1197
+ "AmountOfSubstance",
1198
+ "AmountOfSubstancePerUnitVolume",
1199
+ "Angle",
1200
+ "AngularAcceleration",
1201
+ "AngularMomentum",
1202
+ "AngularVelocity",
1203
+ "Area",
1204
+ "Capacitance",
1205
+ "Conductance",
1206
+ "Conductivity",
1207
+ "Count",
1208
+ "Density",
1209
+ "Dimensionless",
1210
+ "DoseEquivalent",
1211
+ "DoseEquivalentRate",
1212
+ "DynamicViscosity",
1213
+ "ElectricCharge",
1214
+ "ElectricCurrent",
1215
+ "ElectricCurrentDensity",
1216
+ "ElectricFieldStrength",
1217
+ "Energy",
1218
+ "Exposure",
1219
+ "Force",
1220
+ "Frequency",
1221
+ "Illuminance",
1222
+ "Inductance",
1223
+ "Irradiance",
1224
+ "KinematicViscosity",
1225
+ "Length",
1226
+ "LinearMomentum",
1227
+ "Luminance",
1228
+ "LuminousFlux",
1229
+ "LuminousIntensity",
1230
+ "MagneticFlux",
1231
+ "MagneticFluxDensity",
1232
+ "MagneticVectorPotential",
1233
+ "Mass",
1234
+ "MassConcentration",
1235
+ "MassFlowRate",
1236
+ "MassPerAreaTime",
1237
+ "MemoryCapacity",
1238
+ "MolalityOfSolute",
1239
+ "MolarEnergy",
1240
+ "MolarMass",
1241
+ "MolarVolume",
1242
+ "Power",
1243
+ "Pressure",
1244
+ "RadiantFlux",
1245
+ "RadiantIntensity",
1246
+ "RelativeHumidity",
1247
+ "Resistance",
1248
+ "Resistivity",
1249
+ "SolidAngle",
1250
+ "SpecificVolume",
1251
+ "Speed",
1252
+ "SurfaceDensity",
1253
+ "SurfaceTension",
1254
+ "Temperature",
1255
+ "Time",
1256
+ "Torque",
1257
+ "Voltage",
1258
+ "Volume",
1259
+ "VolumeFlowRate",
1260
+ "VolumeFraction",
1261
+ "VolumetricFlux",
1262
+ "Wavenumber"
1263
+ ]
1264
+ }
1265
+ ]
1266
+ },
1267
+ "sensorAlertType": {
1268
+ "anyOf": [
1269
+ {
1270
+ "$ref": "#/definitions/vocab-nonGS1WebVoc-uri"
1271
+ },
1272
+ {
1273
+ "type": "string",
1274
+ "enum": [
1275
+ "ALARM_CONDITION",
1276
+ "ERROR_CONDITION"
1277
+ ]
1278
+ }
1279
+ ]
1280
+ },
1281
+ "component": {
1282
+ "anyOf": [
1283
+ {
1284
+ "$ref": "#/definitions/vocab-other-uri"
1285
+ },
1286
+ {
1287
+ "type": "string",
1288
+ "enum": [
1289
+ "x",
1290
+ "y",
1291
+ "z",
1292
+ "axial_distance",
1293
+ "azimuth",
1294
+ "height",
1295
+ "spherical_radius",
1296
+ "polar_angle",
1297
+ "elevation_angle",
1298
+ "easting",
1299
+ "northing",
1300
+ "latitude",
1301
+ "longitude",
1302
+ "altitude"
1303
+ ]
1304
+ }
1305
+ ]
1306
+ },
1307
+ "EPCIS-Document-Event": {
1308
+ "type": "object",
1309
+ "required": [
1310
+ "type"
1311
+ ],
1312
+ "allOf": [
1313
+ {
1314
+ "if": {
1315
+ "type": "object",
1316
+ "properties": {
1317
+ "type": {
1318
+ "enum": [
1319
+ "ObjectEvent"
1320
+ ]
1321
+ }
1322
+ }
1323
+ },
1324
+ "then": {
1325
+ "$ref": "#/definitions/ObjectEvent"
1326
+ }
1327
+ },
1328
+ {
1329
+ "if": {
1330
+ "type": "object",
1331
+ "properties": {
1332
+ "type": {
1333
+ "enum": [
1334
+ "AggregationEvent"
1335
+ ]
1336
+ }
1337
+ }
1338
+ },
1339
+ "then": {
1340
+ "$ref": "#/definitions/AggregationEvent"
1341
+ }
1342
+ },
1343
+ {
1344
+ "if": {
1345
+ "type": "object",
1346
+ "properties": {
1347
+ "type": {
1348
+ "enum": [
1349
+ "TransactionEvent"
1350
+ ]
1351
+ }
1352
+ }
1353
+ },
1354
+ "then": {
1355
+ "$ref": "#/definitions/TransactionEvent"
1356
+ }
1357
+ },
1358
+ {
1359
+ "if": {
1360
+ "properties": {
1361
+ "type": {
1362
+ "enum": [
1363
+ "TransformationEvent"
1364
+ ]
1365
+ }
1366
+ }
1367
+ },
1368
+ "then": {
1369
+ "$ref": "#/definitions/TransformationEvent"
1370
+ }
1371
+ },
1372
+ {
1373
+ "if": {
1374
+ "type": "object",
1375
+ "properties": {
1376
+ "type": {
1377
+ "enum": [
1378
+ "AssociationEvent"
1379
+ ]
1380
+ }
1381
+ }
1382
+ },
1383
+ "then": {
1384
+ "$ref": "#/definitions/AssociationEvent"
1385
+ }
1386
+ },
1387
+ {
1388
+ "if": {
1389
+ "not": {
1390
+ "type": "object",
1391
+ "properties": {
1392
+ "type": {
1393
+ "enum": [
1394
+ "AssociationEvent",
1395
+ "ObjectEvent",
1396
+ "AggregationEvent",
1397
+ "TransactionEvent",
1398
+ "TransformationEvent"
1399
+ ]
1400
+ }
1401
+ }
1402
+ }
1403
+ },
1404
+ "then": {
1405
+ "$ref": "#/definitions/Extended-Event"
1406
+ }
1407
+ }
1408
+ ],
1409
+ "properties": {
1410
+ "type": {
1411
+ "type": "string"
1412
+ }
1413
+ }
1414
+ },
1415
+ "ObjectEvent": {
1416
+ "allOf": [
1417
+ {
1418
+ "$ref": "#/definitions/Event"
1419
+ },
1420
+ {
1421
+ "type": "object",
1422
+ "properties": {
1423
+ "type": {
1424
+ "type": "string",
1425
+ "enum": [
1426
+ "ObjectEvent"
1427
+ ]
1428
+ },
1429
+ "epcList": {
1430
+ "$ref": "#/definitions/epcList"
1431
+ },
1432
+ "quantityList": {
1433
+ "$ref": "#/definitions/quantityList"
1434
+ },
1435
+ "action": {
1436
+ "$ref": "#/definitions/action"
1437
+ },
1438
+ "bizStep": {
1439
+ "$ref": "#/definitions/bizStep"
1440
+ },
1441
+ "disposition": {
1442
+ "$ref": "#/definitions/disposition"
1443
+ },
1444
+ "persistentDisposition": {
1445
+ "$ref": "#/definitions/persistentDisposition"
1446
+ },
1447
+ "readPoint": {
1448
+ "$ref": "#/definitions/readPoint"
1449
+ },
1450
+ "bizLocation": {
1451
+ "$ref": "#/definitions/bizLocation"
1452
+ },
1453
+ "bizTransactionList": {
1454
+ "type": "array",
1455
+ "items": {
1456
+ "$ref": "#/definitions/bizTransaction"
1457
+ }
1458
+ },
1459
+ "sourceList": {
1460
+ "type": "array",
1461
+ "items": {
1462
+ "$ref": "#/definitions/source"
1463
+ }
1464
+ },
1465
+ "destinationList": {
1466
+ "type": "array",
1467
+ "items": {
1468
+ "$ref": "#/definitions/destination"
1469
+ }
1470
+ },
1471
+ "sensorElementList": {
1472
+ "type": "array",
1473
+ "items": {
1474
+ "$ref": "#/definitions/sensorElement"
1475
+ }
1476
+ },
1477
+ "ilmd": {
1478
+ "$ref": "#/definitions/ilmd"
1479
+ }
1480
+ },
1481
+ "required": [
1482
+ "type",
1483
+ "action"
1484
+ ],
1485
+ "propertyNames": {
1486
+ "anyOf": [
1487
+ {
1488
+ "$ref": "#/definitions/common-event-properties"
1489
+ },
1490
+ {
1491
+ "type": "string",
1492
+ "enum": [
1493
+ "action",
1494
+ "epcList",
1495
+ "quantityList",
1496
+ "bizStep",
1497
+ "disposition",
1498
+ "persistentDisposition",
1499
+ "readPoint",
1500
+ "bizLocation",
1501
+ "bizTransactionList",
1502
+ "sourceList",
1503
+ "destinationList",
1504
+ "sensorElementList",
1505
+ "ilmd"
1506
+ ]
1507
+ }
1508
+ ]
1509
+ }
1510
+ },
1511
+ {
1512
+ "anyOf": [
1513
+ {
1514
+ "type": "object",
1515
+ "properties": {
1516
+ "epcList": {
1517
+ "type": "array",
1518
+ "minItems": 0,
1519
+ "items": {
1520
+ "$ref": "#/definitions/id"
1521
+ }
1522
+ }
1523
+ },
1524
+ "required": [
1525
+ "epcList"
1526
+ ]
1527
+ },
1528
+ {
1529
+ "type": "object",
1530
+ "properties": {
1531
+ "quantityList": {
1532
+ "type": "array",
1533
+ "minItems": 1,
1534
+ "items": {
1535
+ "$ref": "#/definitions/quantityElement"
1536
+ }
1537
+ }
1538
+ },
1539
+ "required": [
1540
+ "quantityList"
1541
+ ]
1542
+ },
1543
+ {
1544
+ "allOf": [
1545
+ {
1546
+ "type": "object",
1547
+ "properties": {
1548
+ "sensorElementList": {
1549
+ "type": "array",
1550
+ "items": {
1551
+ "$ref": "#/definitions/sensorElement"
1552
+ },
1553
+ "minItems": 1
1554
+ }
1555
+ },
1556
+ "required": [
1557
+ "sensorElementList"
1558
+ ]
1559
+ },
1560
+ {
1561
+ "type": "object",
1562
+ "properties": {
1563
+ "readPoint": {
1564
+ "$ref": "#/definitions/readPoint"
1565
+ }
1566
+ },
1567
+ "required": [
1568
+ "readPoint"
1569
+ ]
1570
+ }
1571
+ ]
1572
+ }
1573
+ ]
1574
+ },
1575
+ {
1576
+ "anyOf": [
1577
+ {
1578
+ "type": "object",
1579
+ "properties": {
1580
+ "ilmd": {
1581
+ "not": {}
1582
+ },
1583
+ "action": {
1584
+ "type": "string",
1585
+ "pattern": "^OBSERVE$"
1586
+ }
1587
+ }
1588
+ },
1589
+ {
1590
+ "type": "object",
1591
+ "properties": {
1592
+ "ilmd": {
1593
+ "not": {}
1594
+ },
1595
+ "action": {
1596
+ "type": "string",
1597
+ "pattern": "^DELETE$"
1598
+ }
1599
+ }
1600
+ },
1601
+ {
1602
+ "type": "object",
1603
+ "properties": {
1604
+ "action": {
1605
+ "type": "string",
1606
+ "pattern": "^ADD$"
1607
+ }
1608
+ }
1609
+ }
1610
+ ]
1611
+ }
1612
+ ]
1613
+ },
1614
+ "bizStep": {
1615
+ "anyOf": [
1616
+ {
1617
+ "$ref": "#/definitions/vocab-other-uri"
1618
+ },
1619
+ {
1620
+ "type": "string",
1621
+ "enum": [
1622
+ "accepting",
1623
+ "arriving",
1624
+ "assembling",
1625
+ "collecting",
1626
+ "commissioning",
1627
+ "consigning",
1628
+ "creating_class_instance",
1629
+ "cycle_counting",
1630
+ "decommissioning",
1631
+ "departing",
1632
+ "destroying",
1633
+ "disassembling",
1634
+ "dispensing",
1635
+ "encoding",
1636
+ "entering_exiting",
1637
+ "holding",
1638
+ "inspecting",
1639
+ "installing",
1640
+ "killing",
1641
+ "loading",
1642
+ "other",
1643
+ "packing",
1644
+ "picking",
1645
+ "receiving",
1646
+ "removing",
1647
+ "repackaging",
1648
+ "repairing",
1649
+ "replacing",
1650
+ "reserving",
1651
+ "retail_selling",
1652
+ "shipping",
1653
+ "staging_outbound",
1654
+ "stock_taking",
1655
+ "stocking",
1656
+ "storing",
1657
+ "transporting",
1658
+ "unloading",
1659
+ "unpacking",
1660
+ "void_shipping",
1661
+ "sensor_reporting",
1662
+ "sampling"
1663
+ ]
1664
+ }
1665
+ ]
1666
+ },
1667
+ "AggregationEvent": {
1668
+ "allOf": [
1669
+ {
1670
+ "$ref": "#/definitions/Event"
1671
+ },
1672
+ {
1673
+ "type": "object",
1674
+ "properties": {
1675
+ "type": {
1676
+ "type": "string",
1677
+ "enum": [
1678
+ "AggregationEvent"
1679
+ ]
1680
+ },
1681
+ "parentID": {
1682
+ "$ref": "#/definitions/uri"
1683
+ },
1684
+ "childEPCs": {
1685
+ "type": "array",
1686
+ "items": {
1687
+ "$ref": "#/definitions/uri"
1688
+ }
1689
+ },
1690
+ "childQuantityList": {
1691
+ "type": "array",
1692
+ "items": {
1693
+ "$ref": "#/definitions/quantityElement"
1694
+ }
1695
+ },
1696
+ "action": {
1697
+ "$ref": "#/definitions/action"
1698
+ },
1699
+ "bizStep": {
1700
+ "$ref": "#/definitions/bizStep"
1701
+ },
1702
+ "disposition": {
1703
+ "$ref": "#/definitions/disposition"
1704
+ },
1705
+ "readPoint": {
1706
+ "$ref": "#/definitions/readPoint"
1707
+ },
1708
+ "bizLocation": {
1709
+ "$ref": "#/definitions/bizLocation"
1710
+ },
1711
+ "bizTransactionList": {
1712
+ "type": "array",
1713
+ "items": {
1714
+ "$ref": "#/definitions/bizTransaction"
1715
+ }
1716
+ },
1717
+ "sourceList": {
1718
+ "type": "array",
1719
+ "items": {
1720
+ "$ref": "#/definitions/source"
1721
+ }
1722
+ },
1723
+ "destinationList": {
1724
+ "type": "array",
1725
+ "items": {
1726
+ "$ref": "#/definitions/destination"
1727
+ }
1728
+ },
1729
+ "sensorElementList": {
1730
+ "type": "array",
1731
+ "items": {
1732
+ "$ref": "#/definitions/sensorElement"
1733
+ }
1734
+ }
1735
+ },
1736
+ "required": [
1737
+ "type",
1738
+ "action"
1739
+ ],
1740
+ "propertyNames": {
1741
+ "anyOf": [
1742
+ {
1743
+ "$ref": "#/definitions/common-event-properties"
1744
+ },
1745
+ {
1746
+ "type": "string",
1747
+ "enum": [
1748
+ "parentID",
1749
+ "childEPCs",
1750
+ "childQuantityList",
1751
+ "action",
1752
+ "bizStep",
1753
+ "disposition",
1754
+ "persistentDisposition",
1755
+ "readPoint",
1756
+ "bizLocation",
1757
+ "bizTransactionList",
1758
+ "sourceList",
1759
+ "destinationList",
1760
+ "sensorElementList"
1761
+ ]
1762
+ }
1763
+ ]
1764
+ }
1765
+ },
1766
+ {
1767
+ "anyOf": [
1768
+ {
1769
+ "type": "object",
1770
+ "properties": {
1771
+ "childEPCs": {
1772
+ "type": "array",
1773
+ "minItems": 1,
1774
+ "items": {
1775
+ "$ref": "#/definitions/id"
1776
+ }
1777
+ }
1778
+ },
1779
+ "required": [
1780
+ "childEPCs"
1781
+ ]
1782
+ },
1783
+ {
1784
+ "type": "object",
1785
+ "properties": {
1786
+ "childQuantityList": {
1787
+ "type": "array",
1788
+ "minItems": 1,
1789
+ "items": {
1790
+ "$ref": "#/definitions/quantityElement"
1791
+ }
1792
+ }
1793
+ },
1794
+ "required": [
1795
+ "childQuantityList"
1796
+ ]
1797
+ },
1798
+ {
1799
+ "type": "object",
1800
+ "properties": {
1801
+ "action": {
1802
+ "type": "string",
1803
+ "pattern": "^DELETE$"
1804
+ }
1805
+ }
1806
+ }
1807
+ ]
1808
+ }
1809
+ ]
1810
+ },
1811
+ "TransactionEvent": {
1812
+ "allOf": [
1813
+ {
1814
+ "$ref": "#/definitions/Event"
1815
+ },
1816
+ {
1817
+ "type": "object",
1818
+ "properties": {
1819
+ "type": {
1820
+ "type": "string",
1821
+ "enum": [
1822
+ "TransactionEvent"
1823
+ ]
1824
+ },
1825
+ "bizTransactionList": {
1826
+ "type": "array",
1827
+ "items": {
1828
+ "$ref": "#/definitions/bizTransaction"
1829
+ },
1830
+ "minItems": 1
1831
+ },
1832
+ "parentID": {
1833
+ "$ref": "#/definitions/uri"
1834
+ },
1835
+ "epcList": {
1836
+ "type": "array",
1837
+ "items": {
1838
+ "$ref": "#/definitions/uri"
1839
+ }
1840
+ },
1841
+ "quantityList": {
1842
+ "type": "array",
1843
+ "items": {
1844
+ "$ref": "#/definitions/quantityElement"
1845
+ }
1846
+ },
1847
+ "action": {
1848
+ "$ref": "#/definitions/action"
1849
+ },
1850
+ "bizStep": {
1851
+ "$ref": "#/definitions/bizStep"
1852
+ },
1853
+ "disposition": {
1854
+ "$ref": "#/definitions/disposition"
1855
+ },
1856
+ "readPoint": {
1857
+ "$ref": "#/definitions/readPoint"
1858
+ },
1859
+ "bizLocation": {
1860
+ "$ref": "#/definitions/bizLocation"
1861
+ },
1862
+ "sourceList": {
1863
+ "type": "array",
1864
+ "items": {
1865
+ "$ref": "#/definitions/source"
1866
+ }
1867
+ },
1868
+ "destinationList": {
1869
+ "type": "array",
1870
+ "items": {
1871
+ "$ref": "#/definitions/destination"
1872
+ }
1873
+ },
1874
+ "sensorElementList": {
1875
+ "type": "array",
1876
+ "items": {
1877
+ "$ref": "#/definitions/sensorElement"
1878
+ }
1879
+ }
1880
+ },
1881
+ "required": [
1882
+ "type",
1883
+ "bizTransactionList",
1884
+ "action"
1885
+ ],
1886
+ "propertyNames": {
1887
+ "anyOf": [
1888
+ {
1889
+ "$ref": "#/definitions/common-event-properties"
1890
+ },
1891
+ {
1892
+ "type": "string",
1893
+ "enum": [
1894
+ "bizTransactionList",
1895
+ "parentID",
1896
+ "epcList",
1897
+ "quantityList",
1898
+ "action",
1899
+ "bizStep",
1900
+ "disposition",
1901
+ "persistentDisposition",
1902
+ "readPoint",
1903
+ "bizLocation",
1904
+ "sourceList",
1905
+ "destinationList",
1906
+ "sensorElementList"
1907
+ ]
1908
+ }
1909
+ ]
1910
+ }
1911
+ },
1912
+ {
1913
+ "anyOf": [
1914
+ {
1915
+ "type": "object",
1916
+ "properties": {
1917
+ "epcList": {
1918
+ "type": "array",
1919
+ "minItems": 0,
1920
+ "items": {
1921
+ "$ref": "#/definitions/id"
1922
+ }
1923
+ }
1924
+ },
1925
+ "required": [
1926
+ "epcList"
1927
+ ]
1928
+ },
1929
+ {
1930
+ "type": "object",
1931
+ "properties": {
1932
+ "quantityList": {
1933
+ "type": "array",
1934
+ "minItems": 1,
1935
+ "items": {
1936
+ "$ref": "#/definitions/quantityElement"
1937
+ }
1938
+ }
1939
+ },
1940
+ "required": [
1941
+ "quantityList"
1942
+ ]
1943
+ },
1944
+ {
1945
+ "type": "object",
1946
+ "properties": {
1947
+ "action": {
1948
+ "type": "string",
1949
+ "pattern": "^DELETE$"
1950
+ }
1951
+ }
1952
+ }
1953
+ ]
1954
+ }
1955
+ ]
1956
+ },
1957
+ "TransformationEvent": {
1958
+ "allOf": [
1959
+ {
1960
+ "$ref": "#/definitions/Event"
1961
+ },
1962
+ {
1963
+ "type": "object",
1964
+ "properties": {
1965
+ "type": {
1966
+ "type": "string",
1967
+ "enum": [
1968
+ "TransformationEvent"
1969
+ ]
1970
+ },
1971
+ "inputEPCList": {
1972
+ "$ref": "#/definitions/epcList"
1973
+ },
1974
+ "inputQuantityList": {
1975
+ "$ref": "#/definitions/quantityList"
1976
+ },
1977
+ "outputEPCList": {
1978
+ "$ref": "#/definitions/epcList"
1979
+ },
1980
+ "outputQuantityList": {
1981
+ "$ref": "#/definitions/quantityList"
1982
+ },
1983
+ "transformationID": {
1984
+ "$ref": "#/definitions/uri"
1985
+ },
1986
+ "bizStep": {
1987
+ "$ref": "#/definitions/bizStep"
1988
+ },
1989
+ "disposition": {
1990
+ "$ref": "#/definitions/disposition"
1991
+ },
1992
+ "persistentDisposition": {
1993
+ "$ref": "#/definitions/persistentDisposition"
1994
+ },
1995
+ "readPoint": {
1996
+ "$ref": "#/definitions/readPoint"
1997
+ },
1998
+ "bizLocation": {
1999
+ "$ref": "#/definitions/bizLocation"
2000
+ },
2001
+ "bizTransactionList": {
2002
+ "type": "array",
2003
+ "items": {
2004
+ "$ref": "#/definitions/bizTransaction"
2005
+ }
2006
+ },
2007
+ "sourceList": {
2008
+ "type": "array",
2009
+ "items": {
2010
+ "$ref": "#/definitions/source"
2011
+ }
2012
+ },
2013
+ "destinationList": {
2014
+ "type": "array",
2015
+ "items": {
2016
+ "$ref": "#/definitions/destination"
2017
+ }
2018
+ },
2019
+ "sensorElementList": {
2020
+ "type": "array",
2021
+ "items": {
2022
+ "$ref": "#/definitions/sensorElement"
2023
+ }
2024
+ },
2025
+ "ilmd": {
2026
+ "$ref": "#/definitions/ilmd"
2027
+ }
2028
+ },
2029
+ "required": [
2030
+ "type"
2031
+ ],
2032
+ "propertyNames": {
2033
+ "anyOf": [
2034
+ {
2035
+ "$ref": "#/definitions/common-event-properties"
2036
+ },
2037
+ {
2038
+ "type": "string",
2039
+ "enum": [
2040
+ "inputEPCList",
2041
+ "inputQuantityList",
2042
+ "outputEPCList",
2043
+ "outputQuantityList",
2044
+ "transformationID",
2045
+ "bizStep",
2046
+ "disposition",
2047
+ "persistentDisposition",
2048
+ "readPoint",
2049
+ "bizLocation",
2050
+ "bizTransactionList",
2051
+ "sourceList",
2052
+ "destinationList",
2053
+ "sensorElementList",
2054
+ "ilmd"
2055
+ ]
2056
+ }
2057
+ ]
2058
+ }
2059
+ },
2060
+ {
2061
+ "anyOf": [
2062
+ {
2063
+ "allOf": [
2064
+ {
2065
+ "anyOf": [
2066
+ {
2067
+ "type": "object",
2068
+ "properties": {
2069
+ "inputEPCList": {
2070
+ "type": "array",
2071
+ "minItems": 1,
2072
+ "items": {
2073
+ "type": "string"
2074
+ }
2075
+ }
2076
+ },
2077
+ "required": [
2078
+ "inputEPCList"
2079
+ ]
2080
+ },
2081
+ {
2082
+ "type": "object",
2083
+ "properties": {
2084
+ "inputQuantityList": {
2085
+ "type": "array",
2086
+ "minItems": 1,
2087
+ "items": {
2088
+ "type": "object"
2089
+ }
2090
+ }
2091
+ },
2092
+ "required": [
2093
+ "inputQuantityList"
2094
+ ]
2095
+ }
2096
+ ]
2097
+ },
2098
+ {
2099
+ "anyOf": [
2100
+ {
2101
+ "type": "object",
2102
+ "properties": {
2103
+ "outputEPCList": {
2104
+ "type": "array",
2105
+ "minItems": 1,
2106
+ "items": {
2107
+ "type": "string"
2108
+ }
2109
+ }
2110
+ },
2111
+ "required": [
2112
+ "outputEPCList"
2113
+ ]
2114
+ },
2115
+ {
2116
+ "type": "object",
2117
+ "properties": {
2118
+ "outputQuantityList": {
2119
+ "type": "array",
2120
+ "minItems": 1,
2121
+ "items": {
2122
+ "type": "object"
2123
+ }
2124
+ }
2125
+ },
2126
+ "required": [
2127
+ "outputQuantityList"
2128
+ ]
2129
+ }
2130
+ ]
2131
+ }
2132
+ ]
2133
+ },
2134
+ {
2135
+ "anyOf": [
2136
+ {
2137
+ "type": "object",
2138
+ "properties": {
2139
+ "inputEPCList": {
2140
+ "type": "array",
2141
+ "minItems": 1,
2142
+ "items": {
2143
+ "type": "string"
2144
+ }
2145
+ }
2146
+ },
2147
+ "required": [
2148
+ "inputEPCList"
2149
+ ]
2150
+ },
2151
+ {
2152
+ "type": "object",
2153
+ "properties": {
2154
+ "inputQuantityList": {
2155
+ "type": "array",
2156
+ "minItems": 1,
2157
+ "items": {
2158
+ "type": "object"
2159
+ }
2160
+ }
2161
+ },
2162
+ "required": [
2163
+ "inputQuantityList"
2164
+ ]
2165
+ },
2166
+ {
2167
+ "type": "object",
2168
+ "properties": {
2169
+ "outputEPCList": {
2170
+ "type": "array",
2171
+ "minItems": 1,
2172
+ "items": {
2173
+ "type": "string"
2174
+ }
2175
+ }
2176
+ },
2177
+ "required": [
2178
+ "outputEPCList"
2179
+ ]
2180
+ },
2181
+ {
2182
+ "type": "object",
2183
+ "properties": {
2184
+ "outputQuantityList": {
2185
+ "type": "array",
2186
+ "minItems": 1,
2187
+ "items": {
2188
+ "type": "object"
2189
+ }
2190
+ }
2191
+ },
2192
+ "required": [
2193
+ "outputQuantityList"
2194
+ ]
2195
+ }
2196
+ ],
2197
+ "type": "object",
2198
+ "required": [
2199
+ "transformationID"
2200
+ ]
2201
+ }
2202
+ ]
2203
+ }
2204
+ ]
2205
+ },
2206
+ "AssociationEvent": {
2207
+ "allOf": [
2208
+ {
2209
+ "$ref": "#/definitions/Event"
2210
+ },
2211
+ {
2212
+ "type": "object",
2213
+ "properties": {
2214
+ "type": {
2215
+ "type": "string",
2216
+ "enum": [
2217
+ "AssociationEvent"
2218
+ ]
2219
+ },
2220
+ "parentID": {
2221
+ "$ref": "#/definitions/uri"
2222
+ },
2223
+ "childEPCs": {
2224
+ "type": "array",
2225
+ "items": {
2226
+ "$ref": "#/definitions/uri"
2227
+ }
2228
+ },
2229
+ "childQuantityList": {
2230
+ "type": "array",
2231
+ "items": {
2232
+ "$ref": "#/definitions/quantityElement"
2233
+ }
2234
+ },
2235
+ "action": {
2236
+ "$ref": "#/definitions/action"
2237
+ },
2238
+ "bizStep": {
2239
+ "$ref": "#/definitions/bizStep"
2240
+ },
2241
+ "disposition": {
2242
+ "$ref": "#/definitions/disposition"
2243
+ },
2244
+ "readPoint": {
2245
+ "$ref": "#/definitions/readPoint"
2246
+ },
2247
+ "bizLocation": {
2248
+ "$ref": "#/definitions/bizLocation"
2249
+ },
2250
+ "bizTransactionList": {
2251
+ "type": "array",
2252
+ "items": {
2253
+ "$ref": "#/definitions/bizTransaction"
2254
+ }
2255
+ },
2256
+ "sourceList": {
2257
+ "type": "array",
2258
+ "items": {
2259
+ "$ref": "#/definitions/source"
2260
+ }
2261
+ },
2262
+ "destinationList": {
2263
+ "type": "array",
2264
+ "items": {
2265
+ "$ref": "#/definitions/destination"
2266
+ }
2267
+ },
2268
+ "sensorElementList": {
2269
+ "type": "array",
2270
+ "items": {
2271
+ "$ref": "#/definitions/sensorElement"
2272
+ }
2273
+ }
2274
+ },
2275
+ "required": [
2276
+ "type",
2277
+ "action",
2278
+ "parentID"
2279
+ ],
2280
+ "propertyNames": {
2281
+ "anyOf": [
2282
+ {
2283
+ "$ref": "#/definitions/common-event-properties"
2284
+ },
2285
+ {
2286
+ "type": "string",
2287
+ "enum": [
2288
+ "parentID",
2289
+ "childEPCs",
2290
+ "childQuantityList",
2291
+ "action",
2292
+ "bizStep",
2293
+ "disposition",
2294
+ "persistentDisposition",
2295
+ "readPoint",
2296
+ "bizLocation",
2297
+ "bizTransactionList",
2298
+ "sourceList",
2299
+ "destinationList",
2300
+ "sensorElementList"
2301
+ ]
2302
+ }
2303
+ ]
2304
+ }
2305
+ },
2306
+ {
2307
+ "anyOf": [
2308
+ {
2309
+ "type": "object",
2310
+ "properties": {
2311
+ "childEPCs": {
2312
+ "type": "array",
2313
+ "minItems": 1,
2314
+ "items": {
2315
+ "$ref": "#/definitions/id"
2316
+ }
2317
+ }
2318
+ },
2319
+ "required": [
2320
+ "childEPCs"
2321
+ ]
2322
+ },
2323
+ {
2324
+ "type": "object",
2325
+ "properties": {
2326
+ "childQuantityList": {
2327
+ "type": "array",
2328
+ "minItems": 1,
2329
+ "items": {
2330
+ "$ref": "#/definitions/quantityElement"
2331
+ }
2332
+ }
2333
+ },
2334
+ "required": [
2335
+ "childQuantityList"
2336
+ ]
2337
+ },
2338
+ {
2339
+ "type": "object",
2340
+ "properties": {
2341
+ "action": {
2342
+ "type": "string",
2343
+ "pattern": "^DELETE$"
2344
+ }
2345
+ }
2346
+ }
2347
+ ]
2348
+ }
2349
+ ]
2350
+ }
2351
+ }
2352
+ }