@inf-monkeys-tech/monkeys 1.1.52 → 1.1.54

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 (86) hide show
  1. package/lib/contracts/action-program-http.d.ts +202 -0
  2. package/lib/contracts/action-program-http.d.ts.map +1 -1
  3. package/lib/contracts/declarative-control-http.d.ts +44345 -12496
  4. package/lib/contracts/declarative-control-http.d.ts.map +1 -1
  5. package/lib/contracts/declarative-control-http.js +37 -4
  6. package/lib/contracts/declarative-control-http.js.map +1 -1
  7. package/lib/contracts/declarative-control.d.ts +1738 -246
  8. package/lib/contracts/declarative-control.d.ts.map +1 -1
  9. package/lib/contracts/declarative-control.js +166 -20
  10. package/lib/contracts/declarative-control.js.map +1 -1
  11. package/lib/contracts/declarative-document-import.d.ts +640 -10
  12. package/lib/contracts/declarative-document-import.d.ts.map +1 -1
  13. package/lib/contracts/declarative-publication-job.d.ts +3318 -578
  14. package/lib/contracts/declarative-publication-job.d.ts.map +1 -1
  15. package/lib/contracts/menu.d.ts +329 -0
  16. package/lib/contracts/menu.d.ts.map +1 -1
  17. package/lib/contracts/page-expression.d.ts +1 -0
  18. package/lib/contracts/page-expression.d.ts.map +1 -1
  19. package/lib/contracts/page-expression.js +1 -1
  20. package/lib/contracts/page-expression.js.map +1 -1
  21. package/lib/contracts/page.d.ts +989 -0
  22. package/lib/contracts/page.d.ts.map +1 -1
  23. package/lib/contracts/page.js +24 -1
  24. package/lib/contracts/page.js.map +1 -1
  25. package/lib/contracts/semantic.d.ts +329 -0
  26. package/lib/contracts/semantic.d.ts.map +1 -1
  27. package/lib/contracts/tenant.d.ts +1645 -0
  28. package/lib/contracts/tenant.d.ts.map +1 -1
  29. package/lib/esm/{chunk-EMZG7H6M.mjs → chunk-66A4GGOV.mjs} +2 -2
  30. package/lib/esm/{chunk-LQ72DLZI.mjs → chunk-DIIMDX7F.mjs} +220 -23
  31. package/lib/esm/chunk-DIIMDX7F.mjs.map +1 -0
  32. package/lib/esm/{chunk-E46Y3E7E.mjs → chunk-E6YPJ4DR.mjs} +2 -2
  33. package/lib/esm/{chunk-TFNKWLY6.mjs → chunk-ITGLKSCE.mjs} +295 -13
  34. package/lib/esm/chunk-ITGLKSCE.mjs.map +1 -0
  35. package/lib/esm/{chunk-BNFELJET.mjs → chunk-RMZW3SVL.mjs} +3 -3
  36. package/lib/esm/{chunk-CB4WTYNQ.mjs → chunk-TROZIHS4.mjs} +2 -2
  37. package/lib/esm/contracts/index.mjs +28 -4
  38. package/lib/esm/index.mjs +48 -6
  39. package/lib/esm/index.mjs.map +1 -1
  40. package/lib/esm/runtime/index.mjs +21 -3
  41. package/lib/esm/schemas/index.mjs +3 -3
  42. package/lib/json-schema/declarative-route-owner-index.schema.json +10 -2
  43. package/lib/json-schema/navigation-runtime-bundle.schema.json +21 -1
  44. package/lib/json-schema/navigation.schema.json +21 -1
  45. package/lib/json-schema/overlay-node.schema.json +2 -1
  46. package/lib/json-schema/page-definition.schema.json +1739 -3
  47. package/lib/json-schema/page-release.schema.json +80 -6
  48. package/lib/json-schema/page-runtime-bundle.schema.json +2453 -372
  49. package/lib/json-schema/page-runtime-descriptor.schema.json +1739 -3
  50. package/lib/json-schema/page.schema.json +958 -215
  51. package/lib/json-schema/product-declaration.schema.json +1736 -0
  52. package/lib/json-schema/render-node.schema.json +2 -1
  53. package/lib/json-schema/render-tree.schema.json +2 -1
  54. package/lib/json-schema/tenant-product-config.schema.json +1736 -0
  55. package/lib/json-schema/tenant-runtime-config.schema.json +1736 -0
  56. package/lib/runtime/declarative-control-compiler.d.ts +5 -0
  57. package/lib/runtime/declarative-control-compiler.d.ts.map +1 -1
  58. package/lib/runtime/declarative-control-compiler.js +105 -12
  59. package/lib/runtime/declarative-control-compiler.js.map +1 -1
  60. package/lib/runtime/index.d.ts +2 -0
  61. package/lib/runtime/index.d.ts.map +1 -1
  62. package/lib/runtime/index.js +2 -0
  63. package/lib/runtime/index.js.map +1 -1
  64. package/lib/runtime/native-page-composition.d.ts +319 -0
  65. package/lib/runtime/native-page-composition.d.ts.map +1 -0
  66. package/lib/runtime/native-page-composition.js +19 -0
  67. package/lib/runtime/native-page-composition.js.map +1 -0
  68. package/lib/runtime/page-composition.js +1 -1
  69. package/lib/runtime/page-composition.js.map +1 -1
  70. package/lib/runtime/page-expression.d.ts +1 -1
  71. package/lib/runtime/page-expression.d.ts.map +1 -1
  72. package/lib/runtime/page-mount.d.ts +26 -0
  73. package/lib/runtime/page-mount.d.ts.map +1 -0
  74. package/lib/runtime/page-mount.js +203 -0
  75. package/lib/runtime/page-mount.js.map +1 -0
  76. package/lib/runtime/runtime-definition-wire.d.ts +6759 -357
  77. package/lib/runtime/runtime-definition-wire.d.ts.map +1 -1
  78. package/lib/schemas/index.d.ts +2544 -349
  79. package/lib/schemas/index.d.ts.map +1 -1
  80. package/package.json +2 -2
  81. package/lib/esm/chunk-LQ72DLZI.mjs.map +0 -1
  82. package/lib/esm/chunk-TFNKWLY6.mjs.map +0 -1
  83. /package/lib/esm/{chunk-EMZG7H6M.mjs.map → chunk-66A4GGOV.mjs.map} +0 -0
  84. /package/lib/esm/{chunk-E46Y3E7E.mjs.map → chunk-E6YPJ4DR.mjs.map} +0 -0
  85. /package/lib/esm/{chunk-BNFELJET.mjs.map → chunk-RMZW3SVL.mjs.map} +0 -0
  86. /package/lib/esm/{chunk-CB4WTYNQ.mjs.map → chunk-TROZIHS4.mjs.map} +0 -0
@@ -7,8 +7,16 @@
7
7
  "const": "Page"
8
8
  },
9
9
  "schemaVersion": {
10
- "type": "number",
11
- "const": 1
10
+ "anyOf": [
11
+ {
12
+ "type": "number",
13
+ "const": 1
14
+ },
15
+ {
16
+ "type": "number",
17
+ "const": 2
18
+ }
19
+ ]
12
20
  },
13
21
  "pageId": {
14
22
  "type": "string",
@@ -125,63 +133,666 @@
125
133
  }
126
134
  }
127
135
  },
128
- "required": [
129
- "defaultLocale",
130
- "values"
131
- ],
132
- "additionalProperties": false
133
- },
134
- "description": {
135
- "type": "object",
136
- "properties": {
137
- "defaultLocale": {
136
+ "required": [
137
+ "defaultLocale",
138
+ "values"
139
+ ],
140
+ "additionalProperties": false
141
+ },
142
+ "description": {
143
+ "type": "object",
144
+ "properties": {
145
+ "defaultLocale": {
146
+ "type": "string",
147
+ "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
148
+ },
149
+ "values": {
150
+ "type": "object",
151
+ "propertyNames": {
152
+ "type": "string",
153
+ "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
154
+ },
155
+ "additionalProperties": {
156
+ "type": "string",
157
+ "minLength": 1
158
+ }
159
+ }
160
+ },
161
+ "required": [
162
+ "defaultLocale",
163
+ "values"
164
+ ],
165
+ "additionalProperties": false
166
+ },
167
+ "tags": {
168
+ "default": [],
169
+ "type": "array",
170
+ "items": {
171
+ "type": "string",
172
+ "minLength": 1,
173
+ "maxLength": 256
174
+ }
175
+ }
176
+ },
177
+ "required": [
178
+ "name",
179
+ "tags"
180
+ ],
181
+ "additionalProperties": false
182
+ },
183
+ "surface": {
184
+ "type": "string",
185
+ "enum": [
186
+ "studio",
187
+ "kernel"
188
+ ]
189
+ },
190
+ "route": {
191
+ "type": "string",
192
+ "pattern": "^\\/(?!\\/)"
193
+ },
194
+ "usage": {
195
+ "type": "string",
196
+ "enum": [
197
+ "route",
198
+ "embedded",
199
+ "both"
200
+ ]
201
+ },
202
+ "parametersSchema": {
203
+ "type": "string",
204
+ "minLength": 1,
205
+ "maxLength": 256
206
+ },
207
+ "parameterBindings": {
208
+ "type": "object",
209
+ "propertyNames": {
210
+ "type": "string",
211
+ "minLength": 1,
212
+ "maxLength": 256
213
+ },
214
+ "additionalProperties": {
215
+ "anyOf": [
216
+ {
217
+ "type": "object",
218
+ "properties": {
219
+ "kind": {
220
+ "type": "string",
221
+ "const": "query-parameter"
222
+ },
223
+ "name": {
224
+ "type": "string",
225
+ "minLength": 1,
226
+ "maxLength": 256
227
+ },
228
+ "codec": {
229
+ "type": "string",
230
+ "enum": [
231
+ "string",
232
+ "integer",
233
+ "boolean",
234
+ "json",
235
+ "page-state"
236
+ ]
237
+ }
238
+ },
239
+ "required": [
240
+ "kind",
241
+ "name"
242
+ ],
243
+ "additionalProperties": false
244
+ },
245
+ {
246
+ "type": "object",
247
+ "properties": {
248
+ "kind": {
249
+ "type": "string",
250
+ "const": "route-parameter"
251
+ },
252
+ "name": {
253
+ "type": "string",
254
+ "minLength": 1,
255
+ "maxLength": 256
256
+ },
257
+ "codec": {
258
+ "type": "string",
259
+ "enum": [
260
+ "string",
261
+ "integer",
262
+ "boolean"
263
+ ]
264
+ }
265
+ },
266
+ "required": [
267
+ "kind",
268
+ "name"
269
+ ],
270
+ "additionalProperties": false
271
+ },
272
+ {
273
+ "type": "object",
274
+ "properties": {
275
+ "kind": {
276
+ "type": "string",
277
+ "const": "constant"
278
+ },
279
+ "value": {
280
+ "anyOf": [
281
+ {
282
+ "type": "string"
283
+ },
284
+ {
285
+ "type": "number"
286
+ },
287
+ {
288
+ "type": "boolean"
289
+ },
290
+ {
291
+ "type": "null"
292
+ }
293
+ ]
294
+ }
295
+ },
296
+ "required": [
297
+ "kind",
298
+ "value"
299
+ ],
300
+ "additionalProperties": false
301
+ },
302
+ {
303
+ "type": "object",
304
+ "properties": {
305
+ "kind": {
306
+ "type": "string",
307
+ "const": "identity"
308
+ },
309
+ "name": {
310
+ "type": "string",
311
+ "enum": [
312
+ "tenantId",
313
+ "teamId",
314
+ "userId"
315
+ ]
316
+ }
317
+ },
318
+ "required": [
319
+ "kind",
320
+ "name"
321
+ ],
322
+ "additionalProperties": false
323
+ }
324
+ ]
325
+ }
326
+ },
327
+ "outputs": {
328
+ "maxItems": 32,
329
+ "type": "array",
330
+ "items": {
331
+ "type": "object",
332
+ "properties": {
333
+ "name": {
334
+ "type": "string",
335
+ "minLength": 1,
336
+ "maxLength": 256
337
+ },
338
+ "nodeId": {
339
+ "type": "string",
340
+ "minLength": 1,
341
+ "maxLength": 256
342
+ },
343
+ "port": {
344
+ "type": "string",
345
+ "minLength": 1,
346
+ "maxLength": 256
347
+ },
348
+ "phase": {
349
+ "type": "string",
350
+ "enum": [
351
+ "intent",
352
+ "success"
353
+ ]
354
+ }
355
+ },
356
+ "required": [
357
+ "name",
358
+ "nodeId",
359
+ "port"
360
+ ],
361
+ "additionalProperties": false
362
+ }
363
+ },
364
+ "mounts": {
365
+ "maxItems": 16,
366
+ "type": "array",
367
+ "items": {
368
+ "type": "object",
369
+ "properties": {
370
+ "mountId": {
371
+ "type": "string",
372
+ "minLength": 1,
373
+ "maxLength": 256
374
+ },
375
+ "target": {
376
+ "type": "object",
377
+ "properties": {
378
+ "kind": {
379
+ "type": "string",
380
+ "const": "page"
381
+ },
382
+ "id": {
383
+ "type": "string",
384
+ "minLength": 1,
385
+ "maxLength": 256
386
+ }
387
+ },
388
+ "required": [
389
+ "kind",
390
+ "id"
391
+ ],
392
+ "additionalProperties": false
393
+ },
394
+ "slot": {
395
+ "type": "string",
396
+ "minLength": 1,
397
+ "maxLength": 256
398
+ },
399
+ "presentation": {
400
+ "type": "string",
401
+ "enum": [
402
+ "inline",
403
+ "panel",
404
+ "drawer",
405
+ "modal",
406
+ "fullscreen"
407
+ ]
408
+ },
409
+ "inputs": {
410
+ "type": "object",
411
+ "propertyNames": {
412
+ "type": "string",
413
+ "minLength": 1,
414
+ "maxLength": 256
415
+ },
416
+ "additionalProperties": {
417
+ "anyOf": [
418
+ {
419
+ "type": "object",
420
+ "properties": {
421
+ "kind": {
422
+ "type": "string",
423
+ "const": "page-parameter"
424
+ },
425
+ "name": {
426
+ "type": "string",
427
+ "minLength": 1,
428
+ "maxLength": 256
429
+ }
430
+ },
431
+ "required": [
432
+ "kind",
433
+ "name"
434
+ ],
435
+ "additionalProperties": false
436
+ },
437
+ {
438
+ "type": "object",
439
+ "properties": {
440
+ "kind": {
441
+ "type": "string",
442
+ "const": "scope-field"
443
+ },
444
+ "path": {
445
+ "type": "string",
446
+ "minLength": 1,
447
+ "maxLength": 4096,
448
+ "pattern": "^[A-Za-z0-9_.-]+$"
449
+ }
450
+ },
451
+ "required": [
452
+ "kind",
453
+ "path"
454
+ ],
455
+ "additionalProperties": false
456
+ },
457
+ {
458
+ "type": "object",
459
+ "properties": {
460
+ "kind": {
461
+ "type": "string",
462
+ "const": "binding-field"
463
+ },
464
+ "bindingId": {
465
+ "type": "string",
466
+ "minLength": 1,
467
+ "maxLength": 256
468
+ },
469
+ "path": {
470
+ "type": "string",
471
+ "pattern": "^[A-Za-z0-9_.-]+$"
472
+ }
473
+ },
474
+ "required": [
475
+ "kind",
476
+ "bindingId",
477
+ "path"
478
+ ],
479
+ "additionalProperties": false
480
+ },
481
+ {
482
+ "type": "object",
483
+ "properties": {
484
+ "kind": {
485
+ "type": "string",
486
+ "const": "constant"
487
+ },
488
+ "value": {
489
+ "anyOf": [
490
+ {
491
+ "type": "string"
492
+ },
493
+ {
494
+ "type": "number"
495
+ },
496
+ {
497
+ "type": "boolean"
498
+ },
499
+ {
500
+ "type": "null"
501
+ }
502
+ ]
503
+ }
504
+ },
505
+ "required": [
506
+ "kind",
507
+ "value"
508
+ ],
509
+ "additionalProperties": false
510
+ },
511
+ {
512
+ "type": "object",
513
+ "properties": {
514
+ "kind": {
515
+ "type": "string",
516
+ "const": "route-parameter"
517
+ },
518
+ "name": {
519
+ "type": "string",
520
+ "minLength": 1,
521
+ "maxLength": 256
522
+ }
523
+ },
524
+ "required": [
525
+ "kind",
526
+ "name"
527
+ ],
528
+ "additionalProperties": false
529
+ },
530
+ {
531
+ "type": "object",
532
+ "properties": {
533
+ "kind": {
534
+ "type": "string",
535
+ "const": "query-parameter"
536
+ },
537
+ "name": {
538
+ "type": "string",
539
+ "minLength": 1,
540
+ "maxLength": 256
541
+ }
542
+ },
543
+ "required": [
544
+ "kind",
545
+ "name"
546
+ ],
547
+ "additionalProperties": false
548
+ },
549
+ {
550
+ "type": "object",
551
+ "properties": {
552
+ "kind": {
553
+ "type": "string",
554
+ "const": "identity"
555
+ },
556
+ "name": {
557
+ "type": "string",
558
+ "enum": [
559
+ "tenantId",
560
+ "teamId",
561
+ "userId"
562
+ ]
563
+ }
564
+ },
565
+ "required": [
566
+ "kind",
567
+ "name"
568
+ ],
569
+ "additionalProperties": false
570
+ },
571
+ {
572
+ "type": "object",
573
+ "properties": {
574
+ "kind": {
575
+ "type": "string",
576
+ "const": "intent-field"
577
+ },
578
+ "path": {
579
+ "type": "string",
580
+ "pattern": "^[A-Za-z0-9_.-]+$"
581
+ }
582
+ },
583
+ "required": [
584
+ "kind",
585
+ "path"
586
+ ],
587
+ "additionalProperties": false
588
+ },
589
+ {
590
+ "type": "object",
591
+ "properties": {
592
+ "kind": {
593
+ "type": "string",
594
+ "const": "page-state"
595
+ },
596
+ "stateId": {
597
+ "type": "string",
598
+ "minLength": 1,
599
+ "maxLength": 256
600
+ }
601
+ },
602
+ "required": [
603
+ "kind",
604
+ "stateId"
605
+ ],
606
+ "additionalProperties": false
607
+ }
608
+ ]
609
+ }
610
+ },
611
+ "instanceKey": {
612
+ "maxItems": 16,
613
+ "type": "array",
614
+ "items": {
615
+ "type": "string",
616
+ "minLength": 1,
617
+ "maxLength": 256
618
+ }
619
+ },
620
+ "route": {
621
+ "type": "object",
622
+ "properties": {
623
+ "path": {
624
+ "type": "string",
625
+ "minLength": 1,
626
+ "maxLength": 512,
627
+ "pattern": "^[A-Za-z0-9:_-]+(?:\\/[A-Za-z0-9:_-]+)*$"
628
+ },
629
+ "pathParameters": {
630
+ "type": "object",
631
+ "propertyNames": {
632
+ "type": "string",
633
+ "minLength": 1,
634
+ "maxLength": 256
635
+ },
636
+ "additionalProperties": {
637
+ "type": "string",
638
+ "minLength": 1,
639
+ "maxLength": 256
640
+ }
641
+ },
642
+ "query": {
643
+ "type": "object",
644
+ "propertyNames": {
645
+ "type": "string",
646
+ "minLength": 1,
647
+ "maxLength": 256
648
+ },
649
+ "additionalProperties": {
650
+ "type": "object",
651
+ "properties": {
652
+ "parameter": {
653
+ "type": "string",
654
+ "minLength": 1,
655
+ "maxLength": 256
656
+ },
657
+ "type": {
658
+ "type": "string",
659
+ "enum": [
660
+ "string",
661
+ "integer",
662
+ "boolean",
663
+ "json"
664
+ ]
665
+ }
666
+ },
667
+ "required": [
668
+ "parameter",
669
+ "type"
670
+ ],
671
+ "additionalProperties": false
672
+ }
673
+ }
674
+ },
675
+ "required": [
676
+ "path",
677
+ "pathParameters",
678
+ "query"
679
+ ],
680
+ "additionalProperties": false
681
+ },
682
+ "activeWhen": {
683
+ "$ref": "#/$defs/__schema0"
684
+ },
685
+ "consumeStateIds": {
686
+ "maxItems": 32,
687
+ "type": "array",
688
+ "items": {
689
+ "type": "string",
690
+ "minLength": 1,
691
+ "maxLength": 256
692
+ }
693
+ },
694
+ "on": {
695
+ "type": "object",
696
+ "propertyNames": {
138
697
  "type": "string",
139
- "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
698
+ "minLength": 1,
699
+ "maxLength": 256
140
700
  },
141
- "values": {
142
- "type": "object",
143
- "propertyNames": {
144
- "type": "string",
145
- "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
146
- },
147
- "additionalProperties": {
148
- "type": "string",
149
- "minLength": 1
150
- }
701
+ "additionalProperties": {
702
+ "anyOf": [
703
+ {
704
+ "type": "object",
705
+ "properties": {
706
+ "kind": {
707
+ "type": "string",
708
+ "const": "close"
709
+ }
710
+ },
711
+ "required": [
712
+ "kind"
713
+ ],
714
+ "additionalProperties": false
715
+ },
716
+ {
717
+ "type": "object",
718
+ "properties": {
719
+ "kind": {
720
+ "type": "string",
721
+ "const": "refresh"
722
+ },
723
+ "bindingIds": {
724
+ "minItems": 1,
725
+ "maxItems": 128,
726
+ "type": "array",
727
+ "items": {
728
+ "type": "string",
729
+ "minLength": 1,
730
+ "maxLength": 256
731
+ }
732
+ }
733
+ },
734
+ "required": [
735
+ "kind",
736
+ "bindingIds"
737
+ ],
738
+ "additionalProperties": false
739
+ },
740
+ {
741
+ "type": "object",
742
+ "properties": {
743
+ "kind": {
744
+ "type": "string",
745
+ "const": "state"
746
+ },
747
+ "stateId": {
748
+ "type": "string",
749
+ "minLength": 1,
750
+ "maxLength": 256
751
+ },
752
+ "path": {
753
+ "maxItems": 16,
754
+ "type": "array",
755
+ "items": {
756
+ "type": "string",
757
+ "minLength": 1,
758
+ "maxLength": 256
759
+ }
760
+ }
761
+ },
762
+ "required": [
763
+ "kind",
764
+ "stateId",
765
+ "path"
766
+ ],
767
+ "additionalProperties": false
768
+ }
769
+ ]
151
770
  }
152
771
  },
153
- "required": [
154
- "defaultLocale",
155
- "values"
156
- ],
157
- "additionalProperties": false
158
- },
159
- "tags": {
160
- "default": [],
161
- "type": "array",
162
- "items": {
772
+ "backgroundQueryPolicy": {
773
+ "default": "when-active",
163
774
  "type": "string",
164
- "minLength": 1,
165
- "maxLength": 256
775
+ "enum": [
776
+ "when-active",
777
+ "always"
778
+ ]
166
779
  }
167
- }
168
- },
169
- "required": [
170
- "name",
171
- "tags"
172
- ],
173
- "additionalProperties": false
174
- },
175
- "surface": {
176
- "type": "string",
177
- "enum": [
178
- "studio",
179
- "kernel"
180
- ]
780
+ },
781
+ "required": [
782
+ "mountId",
783
+ "target",
784
+ "slot",
785
+ "presentation",
786
+ "inputs",
787
+ "on",
788
+ "backgroundQueryPolicy"
789
+ ],
790
+ "additionalProperties": false
791
+ }
181
792
  },
182
- "route": {
793
+ "stateRetention": {
183
794
  "type": "string",
184
- "pattern": "^\\/(?!\\/)"
795
+ "const": "mounted-while-child-active"
185
796
  },
186
797
  "routeSpace": {
187
798
  "type": "string",
@@ -292,7 +903,7 @@
292
903
  "maxLength": 256
293
904
  },
294
905
  "body": {
295
- "$ref": "#/$defs/__schema0"
906
+ "$ref": "#/$defs/__schema1"
296
907
  },
297
908
  "initialQueryPolicy": {
298
909
  "type": "string",
@@ -318,10 +929,10 @@
318
929
  "maxLength": 256
319
930
  },
320
931
  "initialValue": {
321
- "$ref": "#/$defs/__schema2"
932
+ "$ref": "#/$defs/__schema3"
322
933
  },
323
934
  "defaultValue": {
324
- "$ref": "#/$defs/__schema1"
935
+ "$ref": "#/$defs/__schema2"
325
936
  },
326
937
  "persistence": {
327
938
  "type": "string",
@@ -526,7 +1137,7 @@
526
1137
  "maxLength": 256
527
1138
  },
528
1139
  "activation": {
529
- "$ref": "#/$defs/__schema3"
1140
+ "$ref": "#/$defs/__schema0"
530
1141
  },
531
1142
  "pathParameters": {
532
1143
  "type": "object",
@@ -3783,7 +4394,6 @@
3783
4394
  "tenantScope",
3784
4395
  "identity",
3785
4396
  "surface",
3786
- "route",
3787
4397
  "lifecycle",
3788
4398
  "body",
3789
4399
  "access",
@@ -3793,6 +4403,129 @@
3793
4403
  "additionalProperties": false,
3794
4404
  "$defs": {
3795
4405
  "__schema0": {
4406
+ "type": "object",
4407
+ "properties": {
4408
+ "operator": {
4409
+ "type": "string",
4410
+ "enum": [
4411
+ "all",
4412
+ "any"
4413
+ ]
4414
+ },
4415
+ "conditions": {
4416
+ "minItems": 1,
4417
+ "type": "array",
4418
+ "items": {
4419
+ "anyOf": [
4420
+ {
4421
+ "anyOf": [
4422
+ {
4423
+ "type": "object",
4424
+ "properties": {
4425
+ "stateId": {
4426
+ "type": "string",
4427
+ "minLength": 1,
4428
+ "maxLength": 256
4429
+ },
4430
+ "predicate": {
4431
+ "type": "string",
4432
+ "const": "equals"
4433
+ },
4434
+ "value": {
4435
+ "anyOf": [
4436
+ {
4437
+ "type": "string"
4438
+ },
4439
+ {
4440
+ "type": "number"
4441
+ },
4442
+ {
4443
+ "type": "boolean"
4444
+ },
4445
+ {
4446
+ "type": "null"
4447
+ }
4448
+ ]
4449
+ }
4450
+ },
4451
+ "required": [
4452
+ "stateId",
4453
+ "predicate",
4454
+ "value"
4455
+ ],
4456
+ "additionalProperties": false
4457
+ },
4458
+ {
4459
+ "type": "object",
4460
+ "properties": {
4461
+ "stateId": {
4462
+ "type": "string",
4463
+ "minLength": 1,
4464
+ "maxLength": 256
4465
+ },
4466
+ "predicate": {
4467
+ "type": "string",
4468
+ "const": "not-equals"
4469
+ },
4470
+ "value": {
4471
+ "anyOf": [
4472
+ {
4473
+ "type": "string"
4474
+ },
4475
+ {
4476
+ "type": "number"
4477
+ },
4478
+ {
4479
+ "type": "boolean"
4480
+ },
4481
+ {
4482
+ "type": "null"
4483
+ }
4484
+ ]
4485
+ }
4486
+ },
4487
+ "required": [
4488
+ "stateId",
4489
+ "predicate",
4490
+ "value"
4491
+ ],
4492
+ "additionalProperties": false
4493
+ },
4494
+ {
4495
+ "type": "object",
4496
+ "properties": {
4497
+ "stateId": {
4498
+ "type": "string",
4499
+ "minLength": 1,
4500
+ "maxLength": 256
4501
+ },
4502
+ "predicate": {
4503
+ "type": "string",
4504
+ "const": "truthy"
4505
+ }
4506
+ },
4507
+ "required": [
4508
+ "stateId",
4509
+ "predicate"
4510
+ ],
4511
+ "additionalProperties": false
4512
+ }
4513
+ ]
4514
+ },
4515
+ {
4516
+ "$ref": "#/$defs/__schema0"
4517
+ }
4518
+ ]
4519
+ }
4520
+ }
4521
+ },
4522
+ "required": [
4523
+ "operator",
4524
+ "conditions"
4525
+ ],
4526
+ "additionalProperties": false
4527
+ },
4528
+ "__schema1": {
3796
4529
  "type": "object",
3797
4530
  "properties": {
3798
4531
  "id": {
@@ -3831,7 +4564,7 @@
3831
4564
  "type": "string"
3832
4565
  },
3833
4566
  "additionalProperties": {
3834
- "$ref": "#/$defs/__schema1"
4567
+ "$ref": "#/$defs/__schema2"
3835
4568
  }
3836
4569
  },
3837
4570
  "bindings": {
@@ -3851,7 +4584,7 @@
3851
4584
  }
3852
4585
  },
3853
4586
  "expression": {
3854
- "$ref": "#/$defs/__schema2"
4587
+ "$ref": "#/$defs/__schema3"
3855
4588
  },
3856
4589
  "valueType": {
3857
4590
  "type": "string",
@@ -3878,7 +4611,7 @@
3878
4611
  "type": "string"
3879
4612
  },
3880
4613
  "additionalProperties": {
3881
- "$ref": "#/$defs/__schema1"
4614
+ "$ref": "#/$defs/__schema2"
3882
4615
  }
3883
4616
  },
3884
4617
  "style": {
@@ -5965,16 +6698,16 @@
5965
6698
  "additionalProperties": false
5966
6699
  },
5967
6700
  "activeWhen": {
5968
- "$ref": "#/$defs/__schema3"
6701
+ "$ref": "#/$defs/__schema0"
5969
6702
  },
5970
6703
  "loadingWhen": {
5971
- "$ref": "#/$defs/__schema2"
6704
+ "$ref": "#/$defs/__schema3"
5972
6705
  },
5973
6706
  "repeat": {
5974
6707
  "type": "object",
5975
6708
  "properties": {
5976
6709
  "source": {
5977
- "$ref": "#/$defs/__schema2"
6710
+ "$ref": "#/$defs/__schema3"
5978
6711
  },
5979
6712
  "keyPath": {
5980
6713
  "minItems": 1,
@@ -6017,6 +6750,25 @@
6017
6750
  },
6018
6751
  "additionalProperties": {
6019
6752
  "anyOf": [
6753
+ {
6754
+ "type": "object",
6755
+ "properties": {
6756
+ "kind": {
6757
+ "type": "string",
6758
+ "const": "page-parameter"
6759
+ },
6760
+ "name": {
6761
+ "type": "string",
6762
+ "minLength": 1,
6763
+ "maxLength": 256
6764
+ }
6765
+ },
6766
+ "required": [
6767
+ "kind",
6768
+ "name"
6769
+ ],
6770
+ "additionalProperties": false
6771
+ },
6020
6772
  {
6021
6773
  "type": "object",
6022
6774
  "properties": {
@@ -6203,10 +6955,10 @@
6203
6955
  "maxLength": 256
6204
6956
  },
6205
6957
  "value": {
6206
- "$ref": "#/$defs/__schema2"
6958
+ "$ref": "#/$defs/__schema3"
6207
6959
  },
6208
6960
  "when": {
6209
- "$ref": "#/$defs/__schema2"
6961
+ "$ref": "#/$defs/__schema3"
6210
6962
  }
6211
6963
  },
6212
6964
  "required": [
@@ -6217,7 +6969,7 @@
6217
6969
  }
6218
6970
  },
6219
6971
  "queryWhen": {
6220
- "$ref": "#/$defs/__schema3"
6972
+ "$ref": "#/$defs/__schema0"
6221
6973
  },
6222
6974
  "loadTiming": {
6223
6975
  "type": "string",
@@ -6303,7 +7055,7 @@
6303
7055
  "maximum": 300000
6304
7056
  },
6305
7057
  "when": {
6306
- "$ref": "#/$defs/__schema2"
7058
+ "$ref": "#/$defs/__schema3"
6307
7059
  }
6308
7060
  },
6309
7061
  "required": [
@@ -6327,7 +7079,7 @@
6327
7079
  "type": "object",
6328
7080
  "properties": {
6329
7081
  "expression": {
6330
- "$ref": "#/$defs/__schema2"
7082
+ "$ref": "#/$defs/__schema3"
6331
7083
  }
6332
7084
  },
6333
7085
  "required": [
@@ -6589,7 +7341,7 @@
6589
7341
  "type": "object",
6590
7342
  "properties": {
6591
7343
  "expression": {
6592
- "$ref": "#/$defs/__schema2"
7344
+ "$ref": "#/$defs/__schema3"
6593
7345
  }
6594
7346
  },
6595
7347
  "required": [
@@ -6676,7 +7428,7 @@
6676
7428
  "maxLength": 256
6677
7429
  },
6678
7430
  "when": {
6679
- "$ref": "#/$defs/__schema2"
7431
+ "$ref": "#/$defs/__schema3"
6680
7432
  },
6681
7433
  "fileInputs": {
6682
7434
  "minItems": 1,
@@ -6825,6 +7577,25 @@
6825
7577
  },
6826
7578
  "additionalProperties": {
6827
7579
  "anyOf": [
7580
+ {
7581
+ "type": "object",
7582
+ "properties": {
7583
+ "kind": {
7584
+ "type": "string",
7585
+ "const": "page-parameter"
7586
+ },
7587
+ "name": {
7588
+ "type": "string",
7589
+ "minLength": 1,
7590
+ "maxLength": 256
7591
+ }
7592
+ },
7593
+ "required": [
7594
+ "kind",
7595
+ "name"
7596
+ ],
7597
+ "additionalProperties": false
7598
+ },
6828
7599
  {
6829
7600
  "type": "object",
6830
7601
  "properties": {
@@ -7004,7 +7775,7 @@
7004
7775
  "const": "expression"
7005
7776
  },
7006
7777
  "expression": {
7007
- "$ref": "#/$defs/__schema2"
7778
+ "$ref": "#/$defs/__schema3"
7008
7779
  }
7009
7780
  },
7010
7781
  "required": [
@@ -7806,7 +8577,7 @@
7806
8577
  "const": "constant"
7807
8578
  },
7808
8579
  "value": {
7809
- "$ref": "#/$defs/__schema1"
8580
+ "$ref": "#/$defs/__schema2"
7810
8581
  }
7811
8582
  },
7812
8583
  "required": [
@@ -8156,6 +8927,25 @@
8156
8927
  },
8157
8928
  "additionalProperties": {
8158
8929
  "anyOf": [
8930
+ {
8931
+ "type": "object",
8932
+ "properties": {
8933
+ "kind": {
8934
+ "type": "string",
8935
+ "const": "page-parameter"
8936
+ },
8937
+ "name": {
8938
+ "type": "string",
8939
+ "minLength": 1,
8940
+ "maxLength": 256
8941
+ }
8942
+ },
8943
+ "required": [
8944
+ "kind",
8945
+ "name"
8946
+ ],
8947
+ "additionalProperties": false
8948
+ },
8159
8949
  {
8160
8950
  "type": "object",
8161
8951
  "properties": {
@@ -8335,7 +9125,7 @@
8335
9125
  "const": "expression"
8336
9126
  },
8337
9127
  "expression": {
8338
- "$ref": "#/$defs/__schema2"
9128
+ "$ref": "#/$defs/__schema3"
8339
9129
  }
8340
9130
  },
8341
9131
  "required": [
@@ -8363,6 +9153,25 @@
8363
9153
  },
8364
9154
  "additionalProperties": {
8365
9155
  "anyOf": [
9156
+ {
9157
+ "type": "object",
9158
+ "properties": {
9159
+ "kind": {
9160
+ "type": "string",
9161
+ "const": "page-parameter"
9162
+ },
9163
+ "name": {
9164
+ "type": "string",
9165
+ "minLength": 1,
9166
+ "maxLength": 256
9167
+ }
9168
+ },
9169
+ "required": [
9170
+ "kind",
9171
+ "name"
9172
+ ],
9173
+ "additionalProperties": false
9174
+ },
8366
9175
  {
8367
9176
  "type": "object",
8368
9177
  "properties": {
@@ -8542,7 +9351,7 @@
8542
9351
  "const": "expression"
8543
9352
  },
8544
9353
  "expression": {
8545
- "$ref": "#/$defs/__schema2"
9354
+ "$ref": "#/$defs/__schema3"
8546
9355
  }
8547
9356
  },
8548
9357
  "required": [
@@ -9009,7 +9818,7 @@
9009
9818
  "additionalProperties": false
9010
9819
  },
9011
9820
  "when": {
9012
- "$ref": "#/$defs/__schema2"
9821
+ "$ref": "#/$defs/__schema3"
9013
9822
  },
9014
9823
  "concurrencyKeyPath": {
9015
9824
  "minItems": 1,
@@ -9119,7 +9928,7 @@
9119
9928
  "const": "expression"
9120
9929
  },
9121
9930
  "expression": {
9122
- "$ref": "#/$defs/__schema2"
9931
+ "$ref": "#/$defs/__schema3"
9123
9932
  }
9124
9933
  },
9125
9934
  "required": [
@@ -9271,7 +10080,7 @@
9271
10080
  "maxLength": 256
9272
10081
  },
9273
10082
  "expression": {
9274
- "$ref": "#/$defs/__schema2"
10083
+ "$ref": "#/$defs/__schema3"
9275
10084
  }
9276
10085
  },
9277
10086
  "required": [
@@ -9284,7 +10093,7 @@
9284
10093
  "children": {
9285
10094
  "type": "array",
9286
10095
  "items": {
9287
- "$ref": "#/$defs/__schema0"
10096
+ "$ref": "#/$defs/__schema1"
9288
10097
  }
9289
10098
  }
9290
10099
  },
@@ -9294,7 +10103,7 @@
9294
10103
  ],
9295
10104
  "additionalProperties": false
9296
10105
  },
9297
- "__schema1": {
10106
+ "__schema2": {
9298
10107
  "anyOf": [
9299
10108
  {
9300
10109
  "type": "string"
@@ -9311,7 +10120,7 @@
9311
10120
  {
9312
10121
  "type": "array",
9313
10122
  "items": {
9314
- "$ref": "#/$defs/__schema1"
10123
+ "$ref": "#/$defs/__schema2"
9315
10124
  }
9316
10125
  },
9317
10126
  {
@@ -9320,12 +10129,12 @@
9320
10129
  "type": "string"
9321
10130
  },
9322
10131
  "additionalProperties": {
9323
- "$ref": "#/$defs/__schema1"
10132
+ "$ref": "#/$defs/__schema2"
9324
10133
  }
9325
10134
  }
9326
10135
  ]
9327
10136
  },
9328
- "__schema2": {
10137
+ "__schema3": {
9329
10138
  "anyOf": [
9330
10139
  {
9331
10140
  "type": "object",
@@ -9335,7 +10144,7 @@
9335
10144
  "const": "literal"
9336
10145
  },
9337
10146
  "value": {
9338
- "$ref": "#/$defs/__schema1"
10147
+ "$ref": "#/$defs/__schema2"
9339
10148
  }
9340
10149
  },
9341
10150
  "required": [
@@ -9361,7 +10170,8 @@
9361
10170
  "scope",
9362
10171
  "intent",
9363
10172
  "result",
9364
- "actions"
10173
+ "actions",
10174
+ "parameters"
9365
10175
  ]
9366
10176
  },
9367
10177
  "path": {
@@ -9431,7 +10241,7 @@
9431
10241
  "maxItems": 32,
9432
10242
  "type": "array",
9433
10243
  "items": {
9434
- "$ref": "#/$defs/__schema2"
10244
+ "$ref": "#/$defs/__schema3"
9435
10245
  }
9436
10246
  }
9437
10247
  },
@@ -9450,13 +10260,13 @@
9450
10260
  "const": "conditional"
9451
10261
  },
9452
10262
  "condition": {
9453
- "$ref": "#/$defs/__schema2"
10263
+ "$ref": "#/$defs/__schema3"
9454
10264
  },
9455
10265
  "then": {
9456
- "$ref": "#/$defs/__schema2"
10266
+ "$ref": "#/$defs/__schema3"
9457
10267
  },
9458
10268
  "else": {
9459
- "$ref": "#/$defs/__schema2"
10269
+ "$ref": "#/$defs/__schema3"
9460
10270
  }
9461
10271
  },
9462
10272
  "required": [
@@ -9482,7 +10292,7 @@
9482
10292
  "maxLength": 256
9483
10293
  },
9484
10294
  "additionalProperties": {
9485
- "$ref": "#/$defs/__schema2"
10295
+ "$ref": "#/$defs/__schema3"
9486
10296
  }
9487
10297
  }
9488
10298
  },
@@ -9503,7 +10313,7 @@
9503
10313
  "maxItems": 1000,
9504
10314
  "type": "array",
9505
10315
  "items": {
9506
- "$ref": "#/$defs/__schema2"
10316
+ "$ref": "#/$defs/__schema3"
9507
10317
  }
9508
10318
  }
9509
10319
  },
@@ -9521,10 +10331,10 @@
9521
10331
  "const": "map"
9522
10332
  },
9523
10333
  "source": {
9524
- "$ref": "#/$defs/__schema2"
10334
+ "$ref": "#/$defs/__schema3"
9525
10335
  },
9526
10336
  "value": {
9527
- "$ref": "#/$defs/__schema2"
10337
+ "$ref": "#/$defs/__schema3"
9528
10338
  }
9529
10339
  },
9530
10340
  "required": [
@@ -9542,10 +10352,10 @@
9542
10352
  "const": "filter"
9543
10353
  },
9544
10354
  "source": {
9545
- "$ref": "#/$defs/__schema2"
10355
+ "$ref": "#/$defs/__schema3"
9546
10356
  },
9547
10357
  "value": {
9548
- "$ref": "#/$defs/__schema2"
10358
+ "$ref": "#/$defs/__schema3"
9549
10359
  }
9550
10360
  },
9551
10361
  "required": [
@@ -9563,10 +10373,10 @@
9563
10373
  "const": "sum"
9564
10374
  },
9565
10375
  "source": {
9566
- "$ref": "#/$defs/__schema2"
10376
+ "$ref": "#/$defs/__schema3"
9567
10377
  },
9568
10378
  "value": {
9569
- "$ref": "#/$defs/__schema2"
10379
+ "$ref": "#/$defs/__schema3"
9570
10380
  }
9571
10381
  },
9572
10382
  "required": [
@@ -9577,131 +10387,64 @@
9577
10387
  "additionalProperties": false
9578
10388
  }
9579
10389
  ]
10390
+ }
10391
+ },
10392
+ "allOf": [
10393
+ {
10394
+ "if": {
10395
+ "properties": {
10396
+ "schemaVersion": {
10397
+ "const": 1
10398
+ }
10399
+ }
10400
+ },
10401
+ "then": {
10402
+ "required": [
10403
+ "route"
10404
+ ],
10405
+ "properties": {
10406
+ "usage": false,
10407
+ "parametersSchema": false,
10408
+ "parametersSchemaRevisionRef": false,
10409
+ "parameterBindings": false,
10410
+ "mounts": false,
10411
+ "outputs": false,
10412
+ "stateRetention": false
10413
+ }
10414
+ }
9580
10415
  },
9581
- "__schema3": {
9582
- "type": "object",
9583
- "properties": {
9584
- "operator": {
9585
- "type": "string",
9586
- "enum": [
9587
- "all",
9588
- "any"
9589
- ]
9590
- },
9591
- "conditions": {
9592
- "minItems": 1,
9593
- "type": "array",
9594
- "items": {
9595
- "anyOf": [
9596
- {
9597
- "anyOf": [
9598
- {
9599
- "type": "object",
9600
- "properties": {
9601
- "stateId": {
9602
- "type": "string",
9603
- "minLength": 1,
9604
- "maxLength": 256
9605
- },
9606
- "predicate": {
9607
- "type": "string",
9608
- "const": "equals"
9609
- },
9610
- "value": {
9611
- "anyOf": [
9612
- {
9613
- "type": "string"
9614
- },
9615
- {
9616
- "type": "number"
9617
- },
9618
- {
9619
- "type": "boolean"
9620
- },
9621
- {
9622
- "type": "null"
9623
- }
9624
- ]
9625
- }
9626
- },
9627
- "required": [
9628
- "stateId",
9629
- "predicate",
9630
- "value"
9631
- ],
9632
- "additionalProperties": false
9633
- },
9634
- {
9635
- "type": "object",
9636
- "properties": {
9637
- "stateId": {
9638
- "type": "string",
9639
- "minLength": 1,
9640
- "maxLength": 256
9641
- },
9642
- "predicate": {
9643
- "type": "string",
9644
- "const": "not-equals"
9645
- },
9646
- "value": {
9647
- "anyOf": [
9648
- {
9649
- "type": "string"
9650
- },
9651
- {
9652
- "type": "number"
9653
- },
9654
- {
9655
- "type": "boolean"
9656
- },
9657
- {
9658
- "type": "null"
9659
- }
9660
- ]
9661
- }
9662
- },
9663
- "required": [
9664
- "stateId",
9665
- "predicate",
9666
- "value"
9667
- ],
9668
- "additionalProperties": false
9669
- },
9670
- {
9671
- "type": "object",
9672
- "properties": {
9673
- "stateId": {
9674
- "type": "string",
9675
- "minLength": 1,
9676
- "maxLength": 256
9677
- },
9678
- "predicate": {
9679
- "type": "string",
9680
- "const": "truthy"
9681
- }
9682
- },
9683
- "required": [
9684
- "stateId",
9685
- "predicate"
9686
- ],
9687
- "additionalProperties": false
9688
- }
9689
- ]
9690
- },
9691
- {
9692
- "$ref": "#/$defs/__schema3"
9693
- }
9694
- ]
10416
+ {
10417
+ "if": {
10418
+ "properties": {
10419
+ "schemaVersion": {
10420
+ "const": 2
9695
10421
  }
9696
10422
  }
9697
10423
  },
9698
- "required": [
9699
- "operator",
9700
- "conditions"
9701
- ],
9702
- "additionalProperties": false
10424
+ "then": {
10425
+ "required": [
10426
+ "usage"
10427
+ ],
10428
+ "if": {
10429
+ "properties": {
10430
+ "usage": {
10431
+ "const": "embedded"
10432
+ }
10433
+ }
10434
+ },
10435
+ "then": {
10436
+ "properties": {
10437
+ "route": false
10438
+ }
10439
+ },
10440
+ "else": {
10441
+ "required": [
10442
+ "route"
10443
+ ]
10444
+ }
10445
+ }
9703
10446
  }
9704
- },
10447
+ ],
9705
10448
  "$id": "https://schemas.infmonkeys.com/contracts/page.schema.json",
9706
10449
  "title": "page"
9707
10450
  }