@inf-monkeys-tech/monkeys 1.0.18 → 1.0.20

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 (37) hide show
  1. package/lib/contracts/continuity.d.ts +2 -2
  2. package/lib/contracts/continuity.d.ts.map +1 -1
  3. package/lib/contracts/continuity.js +39 -2
  4. package/lib/contracts/continuity.js.map +1 -1
  5. package/lib/contracts/index.d.ts +1 -0
  6. package/lib/contracts/index.d.ts.map +1 -1
  7. package/lib/contracts/index.js +1 -0
  8. package/lib/contracts/index.js.map +1 -1
  9. package/lib/contracts/tenant.d.ts +8 -0
  10. package/lib/contracts/tenant.d.ts.map +1 -1
  11. package/lib/contracts/tenant.js +1 -0
  12. package/lib/contracts/tenant.js.map +1 -1
  13. package/lib/contracts/workflow-runtime.d.ts +287 -0
  14. package/lib/contracts/workflow-runtime.d.ts.map +1 -0
  15. package/lib/contracts/workflow-runtime.js +198 -0
  16. package/lib/contracts/workflow-runtime.js.map +1 -0
  17. package/lib/esm/contracts/index.mjs +219 -3
  18. package/lib/esm/contracts/index.mjs.map +1 -1
  19. package/lib/esm/index.mjs +224 -4
  20. package/lib/esm/index.mjs.map +1 -1
  21. package/lib/esm/runtime/index.mjs +2 -1
  22. package/lib/esm/runtime/index.mjs.map +1 -1
  23. package/lib/esm/schemas/index.mjs +224 -4
  24. package/lib/esm/schemas/index.mjs.map +1 -1
  25. package/lib/json-schema/application-run.schema.json +0 -1
  26. package/lib/json-schema/index.json +5 -1
  27. package/lib/json-schema/tenant-product-config.schema.json +6 -0
  28. package/lib/json-schema/tenant-runtime-config.schema.json +6 -0
  29. package/lib/json-schema/workflow-catalog-entry.schema.json +238 -0
  30. package/lib/json-schema/workflow-completion-commit.schema.json +1163 -0
  31. package/lib/json-schema/workflow-completion-receipt.schema.json +160 -0
  32. package/lib/json-schema/workflow-publication.schema.json +168 -0
  33. package/lib/schemas/index.d.ts +288 -2
  34. package/lib/schemas/index.d.ts.map +1 -1
  35. package/lib/schemas/index.js +11 -1
  36. package/lib/schemas/index.js.map +1 -1
  37. package/package.json +1 -1
@@ -0,0 +1,1163 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "contract": {
6
+ "type": "string",
7
+ "const": "WorkflowCompletionCommit"
8
+ },
9
+ "commitId": {
10
+ "type": "string",
11
+ "minLength": 1,
12
+ "maxLength": 256
13
+ },
14
+ "run": {
15
+ "type": "object",
16
+ "properties": {
17
+ "contract": {
18
+ "type": "string",
19
+ "const": "ApplicationRun"
20
+ },
21
+ "runId": {
22
+ "type": "string",
23
+ "minLength": 1,
24
+ "maxLength": 256
25
+ },
26
+ "definitionRef": {
27
+ "type": "object",
28
+ "properties": {
29
+ "kind": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "maxLength": 256
33
+ },
34
+ "id": {
35
+ "type": "string",
36
+ "minLength": 1,
37
+ "maxLength": 256
38
+ },
39
+ "version": {
40
+ "anyOf": [
41
+ {
42
+ "type": "integer",
43
+ "exclusiveMinimum": 0,
44
+ "maximum": 9007199254740991
45
+ },
46
+ {
47
+ "type": "string",
48
+ "minLength": 1
49
+ }
50
+ ]
51
+ },
52
+ "ownerRepo": {
53
+ "type": "string",
54
+ "minLength": 1,
55
+ "maxLength": 256
56
+ }
57
+ },
58
+ "required": [
59
+ "kind",
60
+ "id"
61
+ ],
62
+ "additionalProperties": false
63
+ },
64
+ "runtimeLedgerRef": {
65
+ "type": "object",
66
+ "properties": {
67
+ "kind": {
68
+ "type": "string",
69
+ "minLength": 1,
70
+ "maxLength": 256
71
+ },
72
+ "id": {
73
+ "type": "string",
74
+ "minLength": 1,
75
+ "maxLength": 256
76
+ },
77
+ "version": {
78
+ "anyOf": [
79
+ {
80
+ "type": "integer",
81
+ "exclusiveMinimum": 0,
82
+ "maximum": 9007199254740991
83
+ },
84
+ {
85
+ "type": "string",
86
+ "minLength": 1
87
+ }
88
+ ]
89
+ },
90
+ "ownerRepo": {
91
+ "type": "string",
92
+ "minLength": 1,
93
+ "maxLength": 256
94
+ }
95
+ },
96
+ "required": [
97
+ "kind",
98
+ "id"
99
+ ],
100
+ "additionalProperties": false
101
+ },
102
+ "requestId": {
103
+ "type": "string",
104
+ "minLength": 1,
105
+ "maxLength": 256
106
+ },
107
+ "actorRef": {
108
+ "type": "object",
109
+ "properties": {
110
+ "kind": {
111
+ "type": "string",
112
+ "minLength": 1,
113
+ "maxLength": 256
114
+ },
115
+ "id": {
116
+ "type": "string",
117
+ "minLength": 1,
118
+ "maxLength": 256
119
+ },
120
+ "version": {
121
+ "anyOf": [
122
+ {
123
+ "type": "integer",
124
+ "exclusiveMinimum": 0,
125
+ "maximum": 9007199254740991
126
+ },
127
+ {
128
+ "type": "string",
129
+ "minLength": 1
130
+ }
131
+ ]
132
+ },
133
+ "ownerRepo": {
134
+ "type": "string",
135
+ "minLength": 1,
136
+ "maxLength": 256
137
+ }
138
+ },
139
+ "required": [
140
+ "kind",
141
+ "id"
142
+ ],
143
+ "additionalProperties": false
144
+ },
145
+ "status": {
146
+ "type": "string",
147
+ "enum": [
148
+ "PENDING",
149
+ "RUNNING",
150
+ "COMPLETED",
151
+ "FAILED",
152
+ "CANCELLED",
153
+ "EXPIRED"
154
+ ]
155
+ },
156
+ "inputRefs": {
157
+ "default": [],
158
+ "type": "array",
159
+ "items": {
160
+ "type": "object",
161
+ "properties": {
162
+ "kind": {
163
+ "type": "string",
164
+ "minLength": 1,
165
+ "maxLength": 256
166
+ },
167
+ "id": {
168
+ "type": "string",
169
+ "minLength": 1,
170
+ "maxLength": 256
171
+ },
172
+ "version": {
173
+ "anyOf": [
174
+ {
175
+ "type": "integer",
176
+ "exclusiveMinimum": 0,
177
+ "maximum": 9007199254740991
178
+ },
179
+ {
180
+ "type": "string",
181
+ "minLength": 1
182
+ }
183
+ ]
184
+ },
185
+ "ownerRepo": {
186
+ "type": "string",
187
+ "minLength": 1,
188
+ "maxLength": 256
189
+ }
190
+ },
191
+ "required": [
192
+ "kind",
193
+ "id"
194
+ ],
195
+ "additionalProperties": false
196
+ }
197
+ },
198
+ "outputRefs": {
199
+ "default": [],
200
+ "type": "array",
201
+ "items": {
202
+ "type": "object",
203
+ "properties": {
204
+ "kind": {
205
+ "type": "string",
206
+ "minLength": 1,
207
+ "maxLength": 256
208
+ },
209
+ "id": {
210
+ "type": "string",
211
+ "minLength": 1,
212
+ "maxLength": 256
213
+ },
214
+ "version": {
215
+ "anyOf": [
216
+ {
217
+ "type": "integer",
218
+ "exclusiveMinimum": 0,
219
+ "maximum": 9007199254740991
220
+ },
221
+ {
222
+ "type": "string",
223
+ "minLength": 1
224
+ }
225
+ ]
226
+ },
227
+ "ownerRepo": {
228
+ "type": "string",
229
+ "minLength": 1,
230
+ "maxLength": 256
231
+ }
232
+ },
233
+ "required": [
234
+ "kind",
235
+ "id"
236
+ ],
237
+ "additionalProperties": false
238
+ }
239
+ },
240
+ "startedAt": {
241
+ "type": "string",
242
+ "format": "date-time",
243
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
244
+ },
245
+ "completedAt": {
246
+ "type": "string",
247
+ "format": "date-time",
248
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
249
+ },
250
+ "expiresAt": {
251
+ "type": "string",
252
+ "format": "date-time",
253
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
254
+ },
255
+ "metadata": {
256
+ "default": {},
257
+ "type": "object",
258
+ "propertyNames": {
259
+ "type": "string"
260
+ },
261
+ "additionalProperties": {
262
+ "$ref": "#/$defs/__schema0"
263
+ }
264
+ }
265
+ },
266
+ "required": [
267
+ "contract",
268
+ "runId",
269
+ "definitionRef",
270
+ "requestId",
271
+ "actorRef",
272
+ "status",
273
+ "inputRefs",
274
+ "outputRefs",
275
+ "metadata"
276
+ ],
277
+ "additionalProperties": false
278
+ },
279
+ "outputs": {
280
+ "type": "array",
281
+ "items": {
282
+ "type": "object",
283
+ "properties": {
284
+ "contract": {
285
+ "type": "string",
286
+ "const": "OutputRecord"
287
+ },
288
+ "outputId": {
289
+ "type": "string",
290
+ "minLength": 1,
291
+ "maxLength": 256
292
+ },
293
+ "runRef": {
294
+ "type": "object",
295
+ "properties": {
296
+ "kind": {
297
+ "type": "string",
298
+ "minLength": 1,
299
+ "maxLength": 256
300
+ },
301
+ "id": {
302
+ "type": "string",
303
+ "minLength": 1,
304
+ "maxLength": 256
305
+ },
306
+ "version": {
307
+ "anyOf": [
308
+ {
309
+ "type": "integer",
310
+ "exclusiveMinimum": 0,
311
+ "maximum": 9007199254740991
312
+ },
313
+ {
314
+ "type": "string",
315
+ "minLength": 1
316
+ }
317
+ ]
318
+ },
319
+ "ownerRepo": {
320
+ "type": "string",
321
+ "minLength": 1,
322
+ "maxLength": 256
323
+ }
324
+ },
325
+ "required": [
326
+ "kind",
327
+ "id"
328
+ ],
329
+ "additionalProperties": false
330
+ },
331
+ "outputPort": {
332
+ "type": "string",
333
+ "minLength": 1,
334
+ "maxLength": 256
335
+ },
336
+ "value": {
337
+ "$ref": "#/$defs/__schema0"
338
+ },
339
+ "artifactRefs": {
340
+ "default": [],
341
+ "type": "array",
342
+ "items": {
343
+ "type": "object",
344
+ "properties": {
345
+ "kind": {
346
+ "type": "string",
347
+ "minLength": 1,
348
+ "maxLength": 256
349
+ },
350
+ "id": {
351
+ "type": "string",
352
+ "minLength": 1,
353
+ "maxLength": 256
354
+ },
355
+ "version": {
356
+ "anyOf": [
357
+ {
358
+ "type": "integer",
359
+ "exclusiveMinimum": 0,
360
+ "maximum": 9007199254740991
361
+ },
362
+ {
363
+ "type": "string",
364
+ "minLength": 1
365
+ }
366
+ ]
367
+ },
368
+ "ownerRepo": {
369
+ "type": "string",
370
+ "minLength": 1,
371
+ "maxLength": 256
372
+ }
373
+ },
374
+ "required": [
375
+ "kind",
376
+ "id"
377
+ ],
378
+ "additionalProperties": false
379
+ }
380
+ },
381
+ "schemaRef": {
382
+ "type": "string",
383
+ "minLength": 1,
384
+ "maxLength": 256
385
+ },
386
+ "createdAt": {
387
+ "type": "string",
388
+ "format": "date-time",
389
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
390
+ }
391
+ },
392
+ "required": [
393
+ "contract",
394
+ "outputId",
395
+ "runRef",
396
+ "outputPort",
397
+ "artifactRefs",
398
+ "createdAt"
399
+ ],
400
+ "additionalProperties": false
401
+ }
402
+ },
403
+ "artifacts": {
404
+ "type": "array",
405
+ "items": {
406
+ "type": "object",
407
+ "properties": {
408
+ "contract": {
409
+ "type": "string",
410
+ "const": "ArtifactManifest"
411
+ },
412
+ "artifactId": {
413
+ "type": "string",
414
+ "minLength": 1,
415
+ "maxLength": 256
416
+ },
417
+ "kind": {
418
+ "type": "string",
419
+ "minLength": 1,
420
+ "maxLength": 256
421
+ },
422
+ "mimeType": {
423
+ "type": "string",
424
+ "minLength": 1
425
+ },
426
+ "byteSize": {
427
+ "type": "integer",
428
+ "minimum": 0,
429
+ "maximum": 9007199254740991
430
+ },
431
+ "sha256": {
432
+ "type": "string",
433
+ "pattern": "^[a-f0-9]{64}$"
434
+ },
435
+ "storage": {
436
+ "type": "object",
437
+ "properties": {
438
+ "provider": {
439
+ "type": "string",
440
+ "minLength": 1,
441
+ "maxLength": 256
442
+ },
443
+ "bucket": {
444
+ "type": "string",
445
+ "minLength": 1,
446
+ "maxLength": 256
447
+ },
448
+ "key": {
449
+ "type": "string",
450
+ "minLength": 1,
451
+ "maxLength": 256
452
+ },
453
+ "region": {
454
+ "type": "string",
455
+ "minLength": 1,
456
+ "maxLength": 256
457
+ },
458
+ "url": {
459
+ "type": "string",
460
+ "format": "uri"
461
+ },
462
+ "expiresAt": {
463
+ "type": "string",
464
+ "format": "date-time",
465
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
466
+ }
467
+ },
468
+ "required": [
469
+ "provider",
470
+ "key"
471
+ ],
472
+ "additionalProperties": false
473
+ },
474
+ "sourceRef": {
475
+ "type": "object",
476
+ "properties": {
477
+ "kind": {
478
+ "type": "string",
479
+ "minLength": 1,
480
+ "maxLength": 256
481
+ },
482
+ "id": {
483
+ "type": "string",
484
+ "minLength": 1,
485
+ "maxLength": 256
486
+ },
487
+ "version": {
488
+ "anyOf": [
489
+ {
490
+ "type": "integer",
491
+ "exclusiveMinimum": 0,
492
+ "maximum": 9007199254740991
493
+ },
494
+ {
495
+ "type": "string",
496
+ "minLength": 1
497
+ }
498
+ ]
499
+ },
500
+ "ownerRepo": {
501
+ "type": "string",
502
+ "minLength": 1,
503
+ "maxLength": 256
504
+ }
505
+ },
506
+ "required": [
507
+ "kind",
508
+ "id"
509
+ ],
510
+ "additionalProperties": false
511
+ },
512
+ "runRef": {
513
+ "type": "object",
514
+ "properties": {
515
+ "kind": {
516
+ "type": "string",
517
+ "minLength": 1,
518
+ "maxLength": 256
519
+ },
520
+ "id": {
521
+ "type": "string",
522
+ "minLength": 1,
523
+ "maxLength": 256
524
+ },
525
+ "version": {
526
+ "anyOf": [
527
+ {
528
+ "type": "integer",
529
+ "exclusiveMinimum": 0,
530
+ "maximum": 9007199254740991
531
+ },
532
+ {
533
+ "type": "string",
534
+ "minLength": 1
535
+ }
536
+ ]
537
+ },
538
+ "ownerRepo": {
539
+ "type": "string",
540
+ "minLength": 1,
541
+ "maxLength": 256
542
+ }
543
+ },
544
+ "required": [
545
+ "kind",
546
+ "id"
547
+ ],
548
+ "additionalProperties": false
549
+ },
550
+ "outputRef": {
551
+ "type": "object",
552
+ "properties": {
553
+ "kind": {
554
+ "type": "string",
555
+ "minLength": 1,
556
+ "maxLength": 256
557
+ },
558
+ "id": {
559
+ "type": "string",
560
+ "minLength": 1,
561
+ "maxLength": 256
562
+ },
563
+ "version": {
564
+ "anyOf": [
565
+ {
566
+ "type": "integer",
567
+ "exclusiveMinimum": 0,
568
+ "maximum": 9007199254740991
569
+ },
570
+ {
571
+ "type": "string",
572
+ "minLength": 1
573
+ }
574
+ ]
575
+ },
576
+ "ownerRepo": {
577
+ "type": "string",
578
+ "minLength": 1,
579
+ "maxLength": 256
580
+ }
581
+ },
582
+ "required": [
583
+ "kind",
584
+ "id"
585
+ ],
586
+ "additionalProperties": false
587
+ },
588
+ "producer": {
589
+ "type": "object",
590
+ "properties": {
591
+ "service": {
592
+ "type": "string",
593
+ "minLength": 1,
594
+ "maxLength": 256
595
+ },
596
+ "version": {
597
+ "type": "string",
598
+ "minLength": 1,
599
+ "maxLength": 256
600
+ },
601
+ "capabilityRef": {
602
+ "type": "object",
603
+ "properties": {
604
+ "kind": {
605
+ "type": "string",
606
+ "minLength": 1,
607
+ "maxLength": 256
608
+ },
609
+ "id": {
610
+ "type": "string",
611
+ "minLength": 1,
612
+ "maxLength": 256
613
+ },
614
+ "version": {
615
+ "anyOf": [
616
+ {
617
+ "type": "integer",
618
+ "exclusiveMinimum": 0,
619
+ "maximum": 9007199254740991
620
+ },
621
+ {
622
+ "type": "string",
623
+ "minLength": 1
624
+ }
625
+ ]
626
+ },
627
+ "ownerRepo": {
628
+ "type": "string",
629
+ "minLength": 1,
630
+ "maxLength": 256
631
+ }
632
+ },
633
+ "required": [
634
+ "kind",
635
+ "id"
636
+ ],
637
+ "additionalProperties": false
638
+ }
639
+ },
640
+ "required": [
641
+ "service",
642
+ "version"
643
+ ],
644
+ "additionalProperties": false
645
+ },
646
+ "access": {
647
+ "type": "object",
648
+ "properties": {
649
+ "tenantId": {
650
+ "type": "string",
651
+ "minLength": 1,
652
+ "maxLength": 256
653
+ },
654
+ "teamId": {
655
+ "type": "string",
656
+ "minLength": 1,
657
+ "maxLength": 256
658
+ },
659
+ "ownerRef": {
660
+ "type": "object",
661
+ "properties": {
662
+ "kind": {
663
+ "type": "string",
664
+ "minLength": 1,
665
+ "maxLength": 256
666
+ },
667
+ "id": {
668
+ "type": "string",
669
+ "minLength": 1,
670
+ "maxLength": 256
671
+ },
672
+ "version": {
673
+ "anyOf": [
674
+ {
675
+ "type": "integer",
676
+ "exclusiveMinimum": 0,
677
+ "maximum": 9007199254740991
678
+ },
679
+ {
680
+ "type": "string",
681
+ "minLength": 1
682
+ }
683
+ ]
684
+ },
685
+ "ownerRepo": {
686
+ "type": "string",
687
+ "minLength": 1,
688
+ "maxLength": 256
689
+ }
690
+ },
691
+ "required": [
692
+ "kind",
693
+ "id"
694
+ ],
695
+ "additionalProperties": false
696
+ },
697
+ "visibility": {
698
+ "type": "string",
699
+ "enum": [
700
+ "private",
701
+ "team",
702
+ "tenant",
703
+ "public"
704
+ ]
705
+ }
706
+ },
707
+ "required": [
708
+ "visibility"
709
+ ],
710
+ "additionalProperties": false
711
+ },
712
+ "metadata": {
713
+ "default": {},
714
+ "type": "object",
715
+ "propertyNames": {
716
+ "type": "string"
717
+ },
718
+ "additionalProperties": {
719
+ "$ref": "#/$defs/__schema0"
720
+ }
721
+ },
722
+ "createdAt": {
723
+ "type": "string",
724
+ "format": "date-time",
725
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
726
+ }
727
+ },
728
+ "required": [
729
+ "contract",
730
+ "artifactId",
731
+ "kind",
732
+ "mimeType",
733
+ "sha256",
734
+ "storage",
735
+ "runRef",
736
+ "outputRef",
737
+ "producer",
738
+ "access",
739
+ "metadata",
740
+ "createdAt"
741
+ ],
742
+ "additionalProperties": false
743
+ }
744
+ },
745
+ "lineage": {
746
+ "type": "object",
747
+ "properties": {
748
+ "contract": {
749
+ "type": "string",
750
+ "const": "LineageRecord"
751
+ },
752
+ "lineageId": {
753
+ "type": "string",
754
+ "minLength": 1,
755
+ "maxLength": 256
756
+ },
757
+ "subjectRef": {
758
+ "type": "object",
759
+ "properties": {
760
+ "kind": {
761
+ "type": "string",
762
+ "minLength": 1,
763
+ "maxLength": 256
764
+ },
765
+ "id": {
766
+ "type": "string",
767
+ "minLength": 1,
768
+ "maxLength": 256
769
+ },
770
+ "version": {
771
+ "anyOf": [
772
+ {
773
+ "type": "integer",
774
+ "exclusiveMinimum": 0,
775
+ "maximum": 9007199254740991
776
+ },
777
+ {
778
+ "type": "string",
779
+ "minLength": 1
780
+ }
781
+ ]
782
+ },
783
+ "ownerRepo": {
784
+ "type": "string",
785
+ "minLength": 1,
786
+ "maxLength": 256
787
+ }
788
+ },
789
+ "required": [
790
+ "kind",
791
+ "id"
792
+ ],
793
+ "additionalProperties": false
794
+ },
795
+ "sourceRecords": {
796
+ "default": [],
797
+ "type": "array",
798
+ "items": {
799
+ "type": "object",
800
+ "properties": {
801
+ "sourceId": {
802
+ "type": "string",
803
+ "minLength": 1,
804
+ "maxLength": 256
805
+ },
806
+ "recordId": {
807
+ "type": "string",
808
+ "minLength": 1,
809
+ "maxLength": 256
810
+ },
811
+ "recordVersion": {
812
+ "anyOf": [
813
+ {
814
+ "type": "integer",
815
+ "minimum": 0,
816
+ "maximum": 9007199254740991
817
+ },
818
+ {
819
+ "type": "string",
820
+ "minLength": 1,
821
+ "maxLength": 256
822
+ }
823
+ ]
824
+ },
825
+ "hash": {
826
+ "type": "string",
827
+ "pattern": "^[a-f0-9]{64}$"
828
+ }
829
+ },
830
+ "required": [
831
+ "sourceId",
832
+ "recordId",
833
+ "recordVersion",
834
+ "hash"
835
+ ],
836
+ "additionalProperties": false
837
+ }
838
+ },
839
+ "bodyRefs": {
840
+ "default": [],
841
+ "type": "array",
842
+ "items": {
843
+ "type": "object",
844
+ "properties": {
845
+ "kind": {
846
+ "type": "string",
847
+ "minLength": 1,
848
+ "maxLength": 256
849
+ },
850
+ "id": {
851
+ "type": "string",
852
+ "minLength": 1,
853
+ "maxLength": 256
854
+ },
855
+ "version": {
856
+ "anyOf": [
857
+ {
858
+ "type": "integer",
859
+ "exclusiveMinimum": 0,
860
+ "maximum": 9007199254740991
861
+ },
862
+ {
863
+ "type": "string",
864
+ "minLength": 1
865
+ }
866
+ ]
867
+ },
868
+ "ownerRepo": {
869
+ "type": "string",
870
+ "minLength": 1,
871
+ "maxLength": 256
872
+ }
873
+ },
874
+ "required": [
875
+ "kind",
876
+ "id"
877
+ ],
878
+ "additionalProperties": false
879
+ }
880
+ },
881
+ "runRefs": {
882
+ "default": [],
883
+ "type": "array",
884
+ "items": {
885
+ "type": "object",
886
+ "properties": {
887
+ "kind": {
888
+ "type": "string",
889
+ "minLength": 1,
890
+ "maxLength": 256
891
+ },
892
+ "id": {
893
+ "type": "string",
894
+ "minLength": 1,
895
+ "maxLength": 256
896
+ },
897
+ "version": {
898
+ "anyOf": [
899
+ {
900
+ "type": "integer",
901
+ "exclusiveMinimum": 0,
902
+ "maximum": 9007199254740991
903
+ },
904
+ {
905
+ "type": "string",
906
+ "minLength": 1
907
+ }
908
+ ]
909
+ },
910
+ "ownerRepo": {
911
+ "type": "string",
912
+ "minLength": 1,
913
+ "maxLength": 256
914
+ }
915
+ },
916
+ "required": [
917
+ "kind",
918
+ "id"
919
+ ],
920
+ "additionalProperties": false
921
+ }
922
+ },
923
+ "outputRefs": {
924
+ "default": [],
925
+ "type": "array",
926
+ "items": {
927
+ "type": "object",
928
+ "properties": {
929
+ "kind": {
930
+ "type": "string",
931
+ "minLength": 1,
932
+ "maxLength": 256
933
+ },
934
+ "id": {
935
+ "type": "string",
936
+ "minLength": 1,
937
+ "maxLength": 256
938
+ },
939
+ "version": {
940
+ "anyOf": [
941
+ {
942
+ "type": "integer",
943
+ "exclusiveMinimum": 0,
944
+ "maximum": 9007199254740991
945
+ },
946
+ {
947
+ "type": "string",
948
+ "minLength": 1
949
+ }
950
+ ]
951
+ },
952
+ "ownerRepo": {
953
+ "type": "string",
954
+ "minLength": 1,
955
+ "maxLength": 256
956
+ }
957
+ },
958
+ "required": [
959
+ "kind",
960
+ "id"
961
+ ],
962
+ "additionalProperties": false
963
+ }
964
+ },
965
+ "artifactRefs": {
966
+ "default": [],
967
+ "type": "array",
968
+ "items": {
969
+ "type": "object",
970
+ "properties": {
971
+ "kind": {
972
+ "type": "string",
973
+ "minLength": 1,
974
+ "maxLength": 256
975
+ },
976
+ "id": {
977
+ "type": "string",
978
+ "minLength": 1,
979
+ "maxLength": 256
980
+ },
981
+ "version": {
982
+ "anyOf": [
983
+ {
984
+ "type": "integer",
985
+ "exclusiveMinimum": 0,
986
+ "maximum": 9007199254740991
987
+ },
988
+ {
989
+ "type": "string",
990
+ "minLength": 1
991
+ }
992
+ ]
993
+ },
994
+ "ownerRepo": {
995
+ "type": "string",
996
+ "minLength": 1,
997
+ "maxLength": 256
998
+ }
999
+ },
1000
+ "required": [
1001
+ "kind",
1002
+ "id"
1003
+ ],
1004
+ "additionalProperties": false
1005
+ }
1006
+ },
1007
+ "actorRefs": {
1008
+ "default": [],
1009
+ "type": "array",
1010
+ "items": {
1011
+ "type": "object",
1012
+ "properties": {
1013
+ "kind": {
1014
+ "type": "string",
1015
+ "minLength": 1,
1016
+ "maxLength": 256
1017
+ },
1018
+ "id": {
1019
+ "type": "string",
1020
+ "minLength": 1,
1021
+ "maxLength": 256
1022
+ },
1023
+ "version": {
1024
+ "anyOf": [
1025
+ {
1026
+ "type": "integer",
1027
+ "exclusiveMinimum": 0,
1028
+ "maximum": 9007199254740991
1029
+ },
1030
+ {
1031
+ "type": "string",
1032
+ "minLength": 1
1033
+ }
1034
+ ]
1035
+ },
1036
+ "ownerRepo": {
1037
+ "type": "string",
1038
+ "minLength": 1,
1039
+ "maxLength": 256
1040
+ }
1041
+ },
1042
+ "required": [
1043
+ "kind",
1044
+ "id"
1045
+ ],
1046
+ "additionalProperties": false
1047
+ }
1048
+ },
1049
+ "evidenceRefs": {
1050
+ "default": [],
1051
+ "type": "array",
1052
+ "items": {
1053
+ "type": "object",
1054
+ "properties": {
1055
+ "kind": {
1056
+ "type": "string",
1057
+ "minLength": 1,
1058
+ "maxLength": 256
1059
+ },
1060
+ "id": {
1061
+ "type": "string",
1062
+ "minLength": 1,
1063
+ "maxLength": 256
1064
+ },
1065
+ "version": {
1066
+ "anyOf": [
1067
+ {
1068
+ "type": "integer",
1069
+ "exclusiveMinimum": 0,
1070
+ "maximum": 9007199254740991
1071
+ },
1072
+ {
1073
+ "type": "string",
1074
+ "minLength": 1
1075
+ }
1076
+ ]
1077
+ },
1078
+ "ownerRepo": {
1079
+ "type": "string",
1080
+ "minLength": 1,
1081
+ "maxLength": 256
1082
+ }
1083
+ },
1084
+ "required": [
1085
+ "kind",
1086
+ "id"
1087
+ ],
1088
+ "additionalProperties": false
1089
+ }
1090
+ },
1091
+ "recordedAt": {
1092
+ "type": "string",
1093
+ "format": "date-time",
1094
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
1095
+ }
1096
+ },
1097
+ "required": [
1098
+ "contract",
1099
+ "lineageId",
1100
+ "subjectRef",
1101
+ "sourceRecords",
1102
+ "bodyRefs",
1103
+ "runRefs",
1104
+ "outputRefs",
1105
+ "artifactRefs",
1106
+ "actorRefs",
1107
+ "evidenceRefs",
1108
+ "recordedAt"
1109
+ ],
1110
+ "additionalProperties": false
1111
+ },
1112
+ "completedAt": {
1113
+ "type": "string",
1114
+ "format": "date-time",
1115
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
1116
+ }
1117
+ },
1118
+ "required": [
1119
+ "contract",
1120
+ "commitId",
1121
+ "run",
1122
+ "outputs",
1123
+ "artifacts",
1124
+ "lineage",
1125
+ "completedAt"
1126
+ ],
1127
+ "additionalProperties": false,
1128
+ "$defs": {
1129
+ "__schema0": {
1130
+ "anyOf": [
1131
+ {
1132
+ "type": "string"
1133
+ },
1134
+ {
1135
+ "type": "number"
1136
+ },
1137
+ {
1138
+ "type": "boolean"
1139
+ },
1140
+ {
1141
+ "type": "null"
1142
+ },
1143
+ {
1144
+ "type": "array",
1145
+ "items": {
1146
+ "$ref": "#/$defs/__schema0"
1147
+ }
1148
+ },
1149
+ {
1150
+ "type": "object",
1151
+ "propertyNames": {
1152
+ "type": "string"
1153
+ },
1154
+ "additionalProperties": {
1155
+ "$ref": "#/$defs/__schema0"
1156
+ }
1157
+ }
1158
+ ]
1159
+ }
1160
+ },
1161
+ "$id": "https://schemas.infmonkeys.com/contracts/workflow-completion-commit.schema.json",
1162
+ "title": "workflow-completion-commit"
1163
+ }