@inf-monkeys-tech/monkeys 1.1.17 → 1.1.18

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