@inf-monkeys-tech/monkeys 1.1.59 → 1.1.60

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 (71) hide show
  1. package/lib/contracts/agent-data.d.ts +53 -0
  2. package/lib/contracts/agent-data.d.ts.map +1 -1
  3. package/lib/contracts/agent-data.js +46 -1
  4. package/lib/contracts/agent-data.js.map +1 -1
  5. package/lib/contracts/declarative-control-http.d.ts +695 -35
  6. package/lib/contracts/declarative-control-http.d.ts.map +1 -1
  7. package/lib/contracts/declarative-control.d.ts +106 -3
  8. package/lib/contracts/declarative-control.d.ts.map +1 -1
  9. package/lib/contracts/declarative-control.js +48 -3
  10. package/lib/contracts/declarative-control.js.map +1 -1
  11. package/lib/contracts/declarative-publication-job.d.ts +176 -8
  12. package/lib/contracts/declarative-publication-job.d.ts.map +1 -1
  13. package/lib/contracts/index.d.ts +1 -0
  14. package/lib/contracts/index.d.ts.map +1 -1
  15. package/lib/contracts/index.js +1 -0
  16. package/lib/contracts/index.js.map +1 -1
  17. package/lib/contracts/render.d.ts +34 -5
  18. package/lib/contracts/render.d.ts.map +1 -1
  19. package/lib/contracts/render.js +11 -1
  20. package/lib/contracts/render.js.map +1 -1
  21. package/lib/contracts/semantic.d.ts +2 -2
  22. package/lib/contracts/unified-view.d.ts +718 -0
  23. package/lib/contracts/unified-view.d.ts.map +1 -0
  24. package/lib/contracts/unified-view.js +362 -0
  25. package/lib/contracts/unified-view.js.map +1 -0
  26. package/lib/esm/{chunk-J6ZVASVX.mjs → chunk-5IWBM5FS.mjs} +4187 -2762
  27. package/lib/esm/chunk-5IWBM5FS.mjs.map +1 -0
  28. package/lib/esm/{chunk-6AX5KAJM.mjs → chunk-L7WP57HT.mjs} +142 -27
  29. package/lib/esm/chunk-L7WP57HT.mjs.map +1 -0
  30. package/lib/esm/{chunk-WYIVUDQH.mjs → chunk-POHBVHPL.mjs} +42 -42
  31. package/lib/esm/chunk-POHBVHPL.mjs.map +1 -0
  32. package/lib/esm/{chunk-VX54ES4K.mjs → chunk-QM3K7CWF.mjs} +220 -6
  33. package/lib/esm/chunk-QM3K7CWF.mjs.map +1 -0
  34. package/lib/esm/contracts/index.mjs +144 -96
  35. package/lib/esm/index.mjs +224 -160
  36. package/lib/esm/index.mjs.map +1 -1
  37. package/lib/esm/runtime/index.mjs +19 -3
  38. package/lib/esm/schemas/index.mjs +110 -72
  39. package/lib/json-schema/index.json +1 -0
  40. package/lib/json-schema/overlay-node.schema.json +67 -46
  41. package/lib/json-schema/page-runtime-bundle.schema.json +157 -64
  42. package/lib/json-schema/page.schema.json +21 -0
  43. package/lib/json-schema/render-node.schema.json +67 -46
  44. package/lib/json-schema/render-tree.schema.json +67 -46
  45. package/lib/json-schema/view-ontology-record.schema.json +1042 -0
  46. package/lib/runtime/declarative-control-compiler.d.ts.map +1 -1
  47. package/lib/runtime/declarative-control-compiler.js +5 -0
  48. package/lib/runtime/declarative-control-compiler.js.map +1 -1
  49. package/lib/runtime/index.d.ts +1 -0
  50. package/lib/runtime/index.d.ts.map +1 -1
  51. package/lib/runtime/index.js +1 -0
  52. package/lib/runtime/index.js.map +1 -1
  53. package/lib/runtime/runtime-definition-wire.d.ts +88 -4
  54. package/lib/runtime/runtime-definition-wire.d.ts.map +1 -1
  55. package/lib/runtime/unified-view-compiler.d.ts +63 -0
  56. package/lib/runtime/unified-view-compiler.d.ts.map +1 -0
  57. package/lib/runtime/unified-view-compiler.js +225 -0
  58. package/lib/runtime/unified-view-compiler.js.map +1 -0
  59. package/lib/schemas/index.d.ts +245 -8
  60. package/lib/schemas/index.d.ts.map +1 -1
  61. package/lib/schemas/index.js +29 -6
  62. package/lib/schemas/index.js.map +1 -1
  63. package/package.json +2 -2
  64. package/lib/esm/chunk-2TZMP3VI.mjs +0 -1080
  65. package/lib/esm/chunk-2TZMP3VI.mjs.map +0 -1
  66. package/lib/esm/chunk-6AX5KAJM.mjs.map +0 -1
  67. package/lib/esm/chunk-J6ZVASVX.mjs.map +0 -1
  68. package/lib/esm/chunk-MEIIFDVZ.mjs +0 -78
  69. package/lib/esm/chunk-MEIIFDVZ.mjs.map +0 -1
  70. package/lib/esm/chunk-VX54ES4K.mjs.map +0 -1
  71. package/lib/esm/chunk-WYIVUDQH.mjs.map +0 -1
@@ -0,0 +1,1042 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "contract": {
6
+ "type": "string",
7
+ "const": "ViewOntologyRecord"
8
+ },
9
+ "schemaVersion": {
10
+ "type": "number",
11
+ "const": 1
12
+ },
13
+ "viewId": {
14
+ "type": "string",
15
+ "minLength": 1,
16
+ "maxLength": 256
17
+ },
18
+ "boundOntologyId": {
19
+ "type": "string",
20
+ "minLength": 1,
21
+ "maxLength": 256
22
+ },
23
+ "name": {
24
+ "anyOf": [
25
+ {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ {
30
+ "type": "object",
31
+ "propertyNames": {
32
+ "type": "string",
33
+ "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
34
+ },
35
+ "additionalProperties": {
36
+ "type": "string",
37
+ "minLength": 1
38
+ }
39
+ }
40
+ ]
41
+ },
42
+ "description": {
43
+ "type": "string",
44
+ "maxLength": 2048
45
+ },
46
+ "parentViewId": {
47
+ "type": "string",
48
+ "minLength": 1,
49
+ "maxLength": 256
50
+ },
51
+ "data": {
52
+ "type": "object",
53
+ "properties": {
54
+ "statements": {
55
+ "type": "object",
56
+ "propertyNames": {
57
+ "type": "string",
58
+ "minLength": 1,
59
+ "maxLength": 256
60
+ },
61
+ "additionalProperties": {
62
+ "anyOf": [
63
+ {
64
+ "type": "object",
65
+ "properties": {
66
+ "kind": {
67
+ "type": "string",
68
+ "const": "select"
69
+ },
70
+ "from": {
71
+ "type": "object",
72
+ "properties": {
73
+ "source": {
74
+ "default": "ontology",
75
+ "type": "string",
76
+ "enum": [
77
+ "ontology",
78
+ "workflow-outputs"
79
+ ]
80
+ },
81
+ "ontologyId": {
82
+ "type": "string",
83
+ "minLength": 1,
84
+ "maxLength": 256
85
+ },
86
+ "workflowId": {
87
+ "type": "string",
88
+ "minLength": 1,
89
+ "maxLength": 256
90
+ },
91
+ "includeSharedSlices": {
92
+ "type": "boolean"
93
+ }
94
+ },
95
+ "required": [
96
+ "source",
97
+ "ontologyId"
98
+ ],
99
+ "additionalProperties": false
100
+ },
101
+ "select": {
102
+ "type": "object",
103
+ "properties": {
104
+ "baseColumns": {
105
+ "maxItems": 64,
106
+ "type": "array",
107
+ "items": {
108
+ "type": "string",
109
+ "minLength": 1,
110
+ "maxLength": 256
111
+ }
112
+ },
113
+ "propertyColumns": {
114
+ "maxItems": 128,
115
+ "type": "array",
116
+ "items": {
117
+ "type": "string",
118
+ "minLength": 1,
119
+ "maxLength": 256
120
+ }
121
+ },
122
+ "featureColumns": {
123
+ "maxItems": 256,
124
+ "type": "array",
125
+ "items": {
126
+ "type": "string",
127
+ "minLength": 1,
128
+ "maxLength": 256
129
+ }
130
+ },
131
+ "tagGroupColumns": {
132
+ "maxItems": 128,
133
+ "type": "array",
134
+ "items": {
135
+ "type": "string",
136
+ "minLength": 1,
137
+ "maxLength": 256
138
+ }
139
+ },
140
+ "columnOrder": {
141
+ "maxItems": 512,
142
+ "type": "array",
143
+ "items": {
144
+ "type": "string",
145
+ "minLength": 1,
146
+ "maxLength": 256
147
+ }
148
+ }
149
+ },
150
+ "additionalProperties": false
151
+ },
152
+ "where": {
153
+ "$ref": "#/$defs/__schema0"
154
+ },
155
+ "orderBy": {
156
+ "maxItems": 16,
157
+ "type": "array",
158
+ "items": {
159
+ "type": "object",
160
+ "properties": {
161
+ "field": {
162
+ "type": "string",
163
+ "minLength": 1,
164
+ "maxLength": 256
165
+ },
166
+ "kind": {
167
+ "default": "builtin",
168
+ "type": "string",
169
+ "enum": [
170
+ "builtin",
171
+ "feature"
172
+ ]
173
+ },
174
+ "direction": {
175
+ "default": "desc",
176
+ "type": "string",
177
+ "enum": [
178
+ "asc",
179
+ "desc"
180
+ ]
181
+ },
182
+ "nulls": {
183
+ "type": "string",
184
+ "enum": [
185
+ "first",
186
+ "last"
187
+ ]
188
+ }
189
+ },
190
+ "required": [
191
+ "field",
192
+ "kind",
193
+ "direction"
194
+ ],
195
+ "additionalProperties": false
196
+ }
197
+ },
198
+ "limit": {
199
+ "type": "integer",
200
+ "minimum": 1,
201
+ "maximum": 1000
202
+ }
203
+ },
204
+ "required": [
205
+ "kind",
206
+ "from"
207
+ ],
208
+ "additionalProperties": false
209
+ },
210
+ {
211
+ "type": "object",
212
+ "properties": {
213
+ "kind": {
214
+ "type": "string",
215
+ "const": "aggregate"
216
+ },
217
+ "from": {
218
+ "type": "object",
219
+ "properties": {
220
+ "source": {
221
+ "default": "ontology",
222
+ "type": "string",
223
+ "enum": [
224
+ "ontology",
225
+ "workflow-outputs"
226
+ ]
227
+ },
228
+ "ontologyId": {
229
+ "type": "string",
230
+ "minLength": 1,
231
+ "maxLength": 256
232
+ },
233
+ "workflowId": {
234
+ "type": "string",
235
+ "minLength": 1,
236
+ "maxLength": 256
237
+ },
238
+ "includeSharedSlices": {
239
+ "type": "boolean"
240
+ }
241
+ },
242
+ "required": [
243
+ "source",
244
+ "ontologyId"
245
+ ],
246
+ "additionalProperties": false
247
+ },
248
+ "where": {
249
+ "$ref": "#/$defs/__schema0"
250
+ },
251
+ "groupBy": {
252
+ "maxItems": 16,
253
+ "type": "array",
254
+ "items": {
255
+ "type": "string",
256
+ "minLength": 1,
257
+ "maxLength": 256
258
+ }
259
+ },
260
+ "metrics": {
261
+ "minItems": 1,
262
+ "maxItems": 32,
263
+ "type": "array",
264
+ "items": {
265
+ "type": "object",
266
+ "properties": {
267
+ "alias": {
268
+ "type": "string",
269
+ "minLength": 1,
270
+ "maxLength": 256
271
+ },
272
+ "fn": {
273
+ "type": "string",
274
+ "enum": [
275
+ "count",
276
+ "sum",
277
+ "avg",
278
+ "min",
279
+ "max",
280
+ "distinct_count",
281
+ "ratio"
282
+ ]
283
+ },
284
+ "fieldKey": {
285
+ "type": "string",
286
+ "minLength": 1,
287
+ "maxLength": 256
288
+ }
289
+ },
290
+ "required": [
291
+ "alias",
292
+ "fn"
293
+ ],
294
+ "additionalProperties": false
295
+ }
296
+ },
297
+ "orderBy": {
298
+ "maxItems": 16,
299
+ "type": "array",
300
+ "items": {
301
+ "type": "object",
302
+ "properties": {
303
+ "field": {
304
+ "type": "string",
305
+ "minLength": 1,
306
+ "maxLength": 256
307
+ },
308
+ "kind": {
309
+ "default": "builtin",
310
+ "type": "string",
311
+ "enum": [
312
+ "builtin",
313
+ "feature"
314
+ ]
315
+ },
316
+ "direction": {
317
+ "default": "desc",
318
+ "type": "string",
319
+ "enum": [
320
+ "asc",
321
+ "desc"
322
+ ]
323
+ },
324
+ "nulls": {
325
+ "type": "string",
326
+ "enum": [
327
+ "first",
328
+ "last"
329
+ ]
330
+ }
331
+ },
332
+ "required": [
333
+ "field",
334
+ "kind",
335
+ "direction"
336
+ ],
337
+ "additionalProperties": false
338
+ }
339
+ },
340
+ "limit": {
341
+ "type": "integer",
342
+ "minimum": 1,
343
+ "maximum": 1000
344
+ }
345
+ },
346
+ "required": [
347
+ "kind",
348
+ "from",
349
+ "metrics"
350
+ ],
351
+ "additionalProperties": false
352
+ },
353
+ {
354
+ "type": "object",
355
+ "properties": {
356
+ "kind": {
357
+ "type": "string",
358
+ "const": "graph"
359
+ },
360
+ "from": {
361
+ "type": "object",
362
+ "properties": {
363
+ "source": {
364
+ "default": "ontology",
365
+ "type": "string",
366
+ "enum": [
367
+ "ontology",
368
+ "workflow-outputs"
369
+ ]
370
+ },
371
+ "ontologyId": {
372
+ "type": "string",
373
+ "minLength": 1,
374
+ "maxLength": 256
375
+ },
376
+ "workflowId": {
377
+ "type": "string",
378
+ "minLength": 1,
379
+ "maxLength": 256
380
+ },
381
+ "includeSharedSlices": {
382
+ "type": "boolean"
383
+ }
384
+ },
385
+ "required": [
386
+ "source",
387
+ "ontologyId"
388
+ ],
389
+ "additionalProperties": false
390
+ },
391
+ "where": {
392
+ "$ref": "#/$defs/__schema0"
393
+ },
394
+ "graph": {
395
+ "type": "object",
396
+ "properties": {
397
+ "graphKind": {
398
+ "type": "string",
399
+ "enum": [
400
+ "schema",
401
+ "cooccurrence",
402
+ "bipartite-cosine",
403
+ "focus-star"
404
+ ]
405
+ },
406
+ "maxHops": {
407
+ "default": 2,
408
+ "type": "integer",
409
+ "minimum": 1,
410
+ "maximum": 6
411
+ },
412
+ "nodeLabelField": {
413
+ "type": "string",
414
+ "minLength": 1,
415
+ "maxLength": 256
416
+ },
417
+ "edgeRelationFields": {
418
+ "maxItems": 32,
419
+ "type": "array",
420
+ "items": {
421
+ "type": "string",
422
+ "minLength": 1,
423
+ "maxLength": 256
424
+ }
425
+ }
426
+ },
427
+ "required": [
428
+ "graphKind",
429
+ "maxHops"
430
+ ],
431
+ "additionalProperties": false
432
+ },
433
+ "limit": {
434
+ "type": "integer",
435
+ "minimum": 1,
436
+ "maximum": 5000
437
+ }
438
+ },
439
+ "required": [
440
+ "kind",
441
+ "from",
442
+ "graph"
443
+ ],
444
+ "additionalProperties": false
445
+ },
446
+ {
447
+ "type": "object",
448
+ "properties": {
449
+ "kind": {
450
+ "type": "string",
451
+ "enum": [
452
+ "insert",
453
+ "update",
454
+ "delete"
455
+ ]
456
+ },
457
+ "ontologyId": {
458
+ "type": "string",
459
+ "minLength": 1,
460
+ "maxLength": 256
461
+ },
462
+ "values": {
463
+ "type": "object",
464
+ "propertyNames": {
465
+ "type": "string"
466
+ },
467
+ "additionalProperties": {
468
+ "$ref": "#/$defs/__schema1"
469
+ }
470
+ },
471
+ "where": {
472
+ "$ref": "#/$defs/__schema0"
473
+ }
474
+ },
475
+ "required": [
476
+ "kind",
477
+ "ontologyId"
478
+ ],
479
+ "additionalProperties": false
480
+ },
481
+ {
482
+ "type": "object",
483
+ "properties": {
484
+ "kind": {
485
+ "type": "string",
486
+ "const": "call"
487
+ },
488
+ "workflowId": {
489
+ "type": "string",
490
+ "minLength": 1,
491
+ "maxLength": 256
492
+ },
493
+ "pageType": {
494
+ "default": "preview",
495
+ "type": "string",
496
+ "enum": [
497
+ "preview",
498
+ "process",
499
+ "log",
500
+ "chat",
501
+ "api"
502
+ ]
503
+ },
504
+ "inputMapping": {
505
+ "type": "object",
506
+ "propertyNames": {
507
+ "type": "string"
508
+ },
509
+ "additionalProperties": {
510
+ "$ref": "#/$defs/__schema1"
511
+ }
512
+ },
513
+ "outputStrategy": {
514
+ "type": "string",
515
+ "enum": [
516
+ "default-result-ontology",
517
+ "domain-ontology",
518
+ "ledger-only",
519
+ "column-writeback"
520
+ ]
521
+ }
522
+ },
523
+ "required": [
524
+ "kind",
525
+ "workflowId",
526
+ "pageType"
527
+ ],
528
+ "additionalProperties": false
529
+ }
530
+ ]
531
+ }
532
+ },
533
+ "parameters": {
534
+ "type": "object",
535
+ "propertyNames": {
536
+ "type": "string",
537
+ "minLength": 1,
538
+ "maxLength": 256
539
+ },
540
+ "additionalProperties": {
541
+ "$ref": "#/$defs/__schema1"
542
+ }
543
+ },
544
+ "cache": {
545
+ "type": "object",
546
+ "properties": {
547
+ "mode": {
548
+ "default": "realtime",
549
+ "type": "string",
550
+ "enum": [
551
+ "realtime",
552
+ "cached",
553
+ "stale-while-revalidate",
554
+ "materialized"
555
+ ]
556
+ },
557
+ "ttlSeconds": {
558
+ "type": "integer",
559
+ "minimum": 1,
560
+ "maximum": 86400
561
+ }
562
+ },
563
+ "required": [
564
+ "mode"
565
+ ],
566
+ "additionalProperties": false
567
+ }
568
+ },
569
+ "required": [
570
+ "statements"
571
+ ],
572
+ "additionalProperties": false
573
+ },
574
+ "ui": {
575
+ "type": "object",
576
+ "properties": {
577
+ "columns": {
578
+ "default": 12,
579
+ "type": "number",
580
+ "const": 12
581
+ },
582
+ "rowHeight": {
583
+ "default": 72,
584
+ "type": "integer",
585
+ "minimum": 24,
586
+ "maximum": 240
587
+ },
588
+ "bentos": {
589
+ "minItems": 1,
590
+ "maxItems": 64,
591
+ "type": "array",
592
+ "items": {
593
+ "type": "object",
594
+ "properties": {
595
+ "bentoId": {
596
+ "type": "string",
597
+ "minLength": 1,
598
+ "maxLength": 256
599
+ },
600
+ "bentoType": {
601
+ "type": "string",
602
+ "enum": [
603
+ "table",
604
+ "card",
605
+ "gallery",
606
+ "record-detail",
607
+ "metric-card",
608
+ "bar-chart",
609
+ "line-chart",
610
+ "pie-chart",
611
+ "pivot-table",
612
+ "boston-matrix",
613
+ "trend-matrix",
614
+ "force-graph",
615
+ "filter-bar",
616
+ "markdown",
617
+ "workflow-form",
618
+ "workflow-waterfall",
619
+ "workflow-canvas",
620
+ "workflow-log",
621
+ "workflow-chat"
622
+ ]
623
+ },
624
+ "title": {
625
+ "anyOf": [
626
+ {
627
+ "type": "string",
628
+ "minLength": 1
629
+ },
630
+ {
631
+ "type": "object",
632
+ "propertyNames": {
633
+ "type": "string",
634
+ "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
635
+ },
636
+ "additionalProperties": {
637
+ "type": "string",
638
+ "minLength": 1
639
+ }
640
+ }
641
+ ]
642
+ },
643
+ "x": {
644
+ "type": "integer",
645
+ "minimum": 0,
646
+ "maximum": 11
647
+ },
648
+ "y": {
649
+ "type": "integer",
650
+ "minimum": 0,
651
+ "maximum": 1000
652
+ },
653
+ "w": {
654
+ "type": "integer",
655
+ "minimum": 1,
656
+ "maximum": 12
657
+ },
658
+ "h": {
659
+ "type": "integer",
660
+ "minimum": 1,
661
+ "maximum": 120
662
+ },
663
+ "statementId": {
664
+ "type": "string",
665
+ "minLength": 1,
666
+ "maxLength": 256
667
+ },
668
+ "actionStatementIds": {
669
+ "maxItems": 16,
670
+ "type": "array",
671
+ "items": {
672
+ "type": "string",
673
+ "minLength": 1,
674
+ "maxLength": 256
675
+ }
676
+ },
677
+ "props": {
678
+ "type": "object",
679
+ "propertyNames": {
680
+ "type": "string"
681
+ },
682
+ "additionalProperties": {
683
+ "$ref": "#/$defs/__schema1"
684
+ }
685
+ },
686
+ "bindings": {
687
+ "type": "object",
688
+ "propertyNames": {
689
+ "type": "string"
690
+ },
691
+ "additionalProperties": {
692
+ "$ref": "#/$defs/__schema1"
693
+ }
694
+ }
695
+ },
696
+ "required": [
697
+ "bentoId",
698
+ "bentoType",
699
+ "x",
700
+ "y",
701
+ "w",
702
+ "h"
703
+ ],
704
+ "additionalProperties": false
705
+ }
706
+ }
707
+ },
708
+ "required": [
709
+ "columns",
710
+ "rowHeight",
711
+ "bentos"
712
+ ],
713
+ "additionalProperties": false
714
+ }
715
+ },
716
+ "required": [
717
+ "contract",
718
+ "schemaVersion",
719
+ "viewId",
720
+ "boundOntologyId",
721
+ "data",
722
+ "ui"
723
+ ],
724
+ "additionalProperties": false,
725
+ "$defs": {
726
+ "__schema0": {
727
+ "anyOf": [
728
+ {
729
+ "type": "object",
730
+ "properties": {
731
+ "op": {
732
+ "type": "string",
733
+ "enum": [
734
+ "and",
735
+ "or",
736
+ "not"
737
+ ]
738
+ },
739
+ "filters": {
740
+ "minItems": 1,
741
+ "maxItems": 64,
742
+ "type": "array",
743
+ "items": {
744
+ "$ref": "#/$defs/__schema0"
745
+ }
746
+ }
747
+ },
748
+ "required": [
749
+ "op",
750
+ "filters"
751
+ ],
752
+ "additionalProperties": false
753
+ },
754
+ {
755
+ "type": "object",
756
+ "properties": {
757
+ "op": {
758
+ "type": "string",
759
+ "const": "field"
760
+ },
761
+ "field": {
762
+ "type": "string",
763
+ "enum": [
764
+ "id",
765
+ "name",
766
+ "status",
767
+ "assetType",
768
+ "creatorUserId",
769
+ "ontologyId",
770
+ "teamId"
771
+ ]
772
+ },
773
+ "cmp": {
774
+ "type": "string",
775
+ "enum": [
776
+ "eq",
777
+ "in",
778
+ "contains",
779
+ "not_contains"
780
+ ]
781
+ },
782
+ "value": {
783
+ "anyOf": [
784
+ {
785
+ "type": "string",
786
+ "minLength": 1
787
+ },
788
+ {
789
+ "minItems": 1,
790
+ "maxItems": 500,
791
+ "type": "array",
792
+ "items": {
793
+ "type": "string",
794
+ "minLength": 1
795
+ }
796
+ }
797
+ ]
798
+ }
799
+ },
800
+ "required": [
801
+ "op",
802
+ "field",
803
+ "value"
804
+ ],
805
+ "additionalProperties": false
806
+ },
807
+ {
808
+ "type": "object",
809
+ "properties": {
810
+ "op": {
811
+ "type": "string",
812
+ "const": "tagGroup"
813
+ },
814
+ "allOf": {
815
+ "minItems": 1,
816
+ "maxItems": 32,
817
+ "type": "array",
818
+ "items": {
819
+ "type": "string",
820
+ "minLength": 1,
821
+ "maxLength": 256
822
+ }
823
+ }
824
+ },
825
+ "required": [
826
+ "op",
827
+ "allOf"
828
+ ],
829
+ "additionalProperties": false
830
+ },
831
+ {
832
+ "type": "object",
833
+ "properties": {
834
+ "op": {
835
+ "type": "string",
836
+ "const": "tags"
837
+ },
838
+ "allOf": {
839
+ "maxItems": 64,
840
+ "type": "array",
841
+ "items": {
842
+ "type": "string",
843
+ "minLength": 1,
844
+ "maxLength": 256
845
+ }
846
+ },
847
+ "anyOf": {
848
+ "maxItems": 32,
849
+ "type": "array",
850
+ "items": {
851
+ "minItems": 1,
852
+ "maxItems": 32,
853
+ "type": "array",
854
+ "items": {
855
+ "type": "string",
856
+ "minLength": 1,
857
+ "maxLength": 256
858
+ }
859
+ }
860
+ },
861
+ "noneOf": {
862
+ "maxItems": 64,
863
+ "type": "array",
864
+ "items": {
865
+ "type": "string",
866
+ "minLength": 1,
867
+ "maxLength": 256
868
+ }
869
+ }
870
+ },
871
+ "required": [
872
+ "op"
873
+ ],
874
+ "additionalProperties": false
875
+ },
876
+ {
877
+ "type": "object",
878
+ "properties": {
879
+ "op": {
880
+ "type": "string",
881
+ "const": "feature"
882
+ },
883
+ "fieldKey": {
884
+ "type": "string",
885
+ "minLength": 1,
886
+ "maxLength": 256
887
+ },
888
+ "cmp": {
889
+ "type": "string",
890
+ "enum": [
891
+ "eq",
892
+ "neq",
893
+ "in",
894
+ "not_in",
895
+ "gt",
896
+ "gte",
897
+ "lt",
898
+ "lte",
899
+ "between",
900
+ "contains",
901
+ "is_empty"
902
+ ]
903
+ },
904
+ "value": {
905
+ "$ref": "#/$defs/__schema1"
906
+ }
907
+ },
908
+ "required": [
909
+ "op",
910
+ "fieldKey"
911
+ ],
912
+ "additionalProperties": false
913
+ },
914
+ {
915
+ "type": "object",
916
+ "properties": {
917
+ "op": {
918
+ "type": "string",
919
+ "const": "featureRelation"
920
+ },
921
+ "fieldKey": {
922
+ "type": "string",
923
+ "minLength": 1,
924
+ "maxLength": 256
925
+ },
926
+ "cmp": {
927
+ "type": "string",
928
+ "enum": [
929
+ "contains_any",
930
+ "contains_all",
931
+ "is_empty"
932
+ ]
933
+ },
934
+ "targetOntologyId": {
935
+ "type": "string",
936
+ "minLength": 1,
937
+ "maxLength": 256
938
+ },
939
+ "hops": {
940
+ "type": "integer",
941
+ "minimum": 1,
942
+ "maximum": 6
943
+ },
944
+ "value": {
945
+ "maxItems": 200,
946
+ "type": "array",
947
+ "items": {
948
+ "type": "object",
949
+ "properties": {
950
+ "ontologyId": {
951
+ "type": "string",
952
+ "minLength": 1,
953
+ "maxLength": 256
954
+ },
955
+ "assetId": {
956
+ "type": "string",
957
+ "minLength": 1,
958
+ "maxLength": 256
959
+ }
960
+ },
961
+ "required": [
962
+ "ontologyId",
963
+ "assetId"
964
+ ],
965
+ "additionalProperties": false
966
+ }
967
+ }
968
+ },
969
+ "required": [
970
+ "op",
971
+ "fieldKey"
972
+ ],
973
+ "additionalProperties": false
974
+ },
975
+ {
976
+ "type": "object",
977
+ "properties": {
978
+ "op": {
979
+ "type": "string",
980
+ "const": "relation"
981
+ },
982
+ "relationKind": {
983
+ "type": "string",
984
+ "minLength": 1,
985
+ "maxLength": 256
986
+ },
987
+ "objectKind": {
988
+ "type": "string",
989
+ "minLength": 1,
990
+ "maxLength": 256
991
+ },
992
+ "objectId": {
993
+ "type": "string",
994
+ "minLength": 1,
995
+ "maxLength": 256
996
+ }
997
+ },
998
+ "required": [
999
+ "op",
1000
+ "relationKind",
1001
+ "objectKind",
1002
+ "objectId"
1003
+ ],
1004
+ "additionalProperties": false
1005
+ }
1006
+ ]
1007
+ },
1008
+ "__schema1": {
1009
+ "anyOf": [
1010
+ {
1011
+ "type": "string"
1012
+ },
1013
+ {
1014
+ "type": "number"
1015
+ },
1016
+ {
1017
+ "type": "boolean"
1018
+ },
1019
+ {
1020
+ "type": "null"
1021
+ },
1022
+ {
1023
+ "type": "array",
1024
+ "items": {
1025
+ "$ref": "#/$defs/__schema1"
1026
+ }
1027
+ },
1028
+ {
1029
+ "type": "object",
1030
+ "propertyNames": {
1031
+ "type": "string"
1032
+ },
1033
+ "additionalProperties": {
1034
+ "$ref": "#/$defs/__schema1"
1035
+ }
1036
+ }
1037
+ ]
1038
+ }
1039
+ },
1040
+ "$id": "https://schemas.infmonkeys.com/contracts/view-ontology-record.schema.json",
1041
+ "title": "view-ontology-record"
1042
+ }