@inf-monkeys-tech/monkeys 1.1.61 → 1.1.63

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 (84) hide show
  1. package/lib/contracts/agent-data.d.ts +2 -2
  2. package/lib/contracts/agent.d.ts +3 -3
  3. package/lib/contracts/artifact-platform.d.ts +6 -263
  4. package/lib/contracts/artifact-platform.d.ts.map +1 -1
  5. package/lib/contracts/artifact-platform.js +14 -113
  6. package/lib/contracts/artifact-platform.js.map +1 -1
  7. package/lib/contracts/bento-block.d.ts +616 -0
  8. package/lib/contracts/bento-block.d.ts.map +1 -0
  9. package/lib/contracts/bento-block.js +505 -0
  10. package/lib/contracts/bento-block.js.map +1 -0
  11. package/lib/contracts/declarative-control-http.d.ts +5167 -814
  12. package/lib/contracts/declarative-control-http.d.ts.map +1 -1
  13. package/lib/contracts/declarative-control.d.ts +483 -113
  14. package/lib/contracts/declarative-control.d.ts.map +1 -1
  15. package/lib/contracts/declarative-document-import.d.ts +15 -15
  16. package/lib/contracts/declarative-publication-job.d.ts +1104 -208
  17. package/lib/contracts/declarative-publication-job.d.ts.map +1 -1
  18. package/lib/contracts/index.d.ts +1 -0
  19. package/lib/contracts/index.d.ts.map +1 -1
  20. package/lib/contracts/index.js +1 -0
  21. package/lib/contracts/index.js.map +1 -1
  22. package/lib/contracts/menu.d.ts +4 -4
  23. package/lib/contracts/page-expression.d.ts +5 -5
  24. package/lib/contracts/page.d.ts +14 -14
  25. package/lib/contracts/render.d.ts +363 -66
  26. package/lib/contracts/render.d.ts.map +1 -1
  27. package/lib/contracts/render.js +60 -5
  28. package/lib/contracts/render.js.map +1 -1
  29. package/lib/contracts/semantic.d.ts +4 -4
  30. package/lib/contracts/tenant.d.ts +26 -26
  31. package/lib/contracts/trend.d.ts +1 -1
  32. package/lib/contracts/unified-view.d.ts +26 -533
  33. package/lib/contracts/unified-view.d.ts.map +1 -1
  34. package/lib/contracts/unified-view.js +17 -316
  35. package/lib/contracts/unified-view.js.map +1 -1
  36. package/lib/contracts/workflow-definition.d.ts +10 -10
  37. package/lib/esm/{chunk-NKTRUUOP.mjs → chunk-766TRFRH.mjs} +3548 -3406
  38. package/lib/esm/chunk-766TRFRH.mjs.map +1 -0
  39. package/lib/esm/{chunk-DPHV7ES3.mjs → chunk-BTJGKWPM.mjs} +327 -143
  40. package/lib/esm/chunk-BTJGKWPM.mjs.map +1 -0
  41. package/lib/esm/{chunk-7MUE4GTZ.mjs → chunk-MP4OJWJ3.mjs} +2 -2
  42. package/lib/esm/{chunk-43N4Q3U7.mjs → chunk-SDA2NWFB.mjs} +4 -2
  43. package/lib/esm/chunk-SDA2NWFB.mjs.map +1 -0
  44. package/lib/esm/contracts/index.mjs +44 -28
  45. package/lib/esm/index.mjs +54 -36
  46. package/lib/esm/index.mjs.map +1 -1
  47. package/lib/esm/runtime/index.mjs +11 -9
  48. package/lib/esm/schemas/index.mjs +26 -28
  49. package/lib/json-schema/bento-node.schema.json +1446 -0
  50. package/lib/json-schema/index.json +1 -0
  51. package/lib/json-schema/overlay-node.schema.json +1092 -49
  52. package/lib/json-schema/page-runtime-bundle.schema.json +1996 -424
  53. package/lib/json-schema/page.schema.json +24 -0
  54. package/lib/json-schema/render-node.schema.json +1317 -274
  55. package/lib/json-schema/render-tree.schema.json +1686 -114
  56. package/lib/json-schema/view-ontology-record.schema.json +1141 -145
  57. package/lib/runtime/artifact-session.d.ts +5 -10
  58. package/lib/runtime/artifact-session.d.ts.map +1 -1
  59. package/lib/runtime/artifact-session.js +91 -78
  60. package/lib/runtime/artifact-session.js.map +1 -1
  61. package/lib/runtime/bento-render-tree.d.ts +22 -0
  62. package/lib/runtime/bento-render-tree.d.ts.map +1 -0
  63. package/lib/runtime/bento-render-tree.js +194 -0
  64. package/lib/runtime/bento-render-tree.js.map +1 -0
  65. package/lib/runtime/index.d.ts +1 -0
  66. package/lib/runtime/index.d.ts.map +1 -1
  67. package/lib/runtime/index.js +1 -0
  68. package/lib/runtime/index.js.map +1 -1
  69. package/lib/runtime/native-page-composition.d.ts +2 -2
  70. package/lib/runtime/runtime-definition-wire.d.ts +526 -78
  71. package/lib/runtime/runtime-definition-wire.d.ts.map +1 -1
  72. package/lib/runtime/unified-view-compiler.d.ts +12 -16
  73. package/lib/runtime/unified-view-compiler.d.ts.map +1 -1
  74. package/lib/runtime/unified-view-compiler.js +69 -77
  75. package/lib/runtime/unified-view-compiler.js.map +1 -1
  76. package/lib/schemas/index.d.ts +1523 -3082
  77. package/lib/schemas/index.d.ts.map +1 -1
  78. package/lib/schemas/index.js +32 -30
  79. package/lib/schemas/index.js.map +1 -1
  80. package/package.json +2 -2
  81. package/lib/esm/chunk-43N4Q3U7.mjs.map +0 -1
  82. package/lib/esm/chunk-DPHV7ES3.mjs.map +0 -1
  83. package/lib/esm/chunk-NKTRUUOP.mjs.map +0 -1
  84. /package/lib/esm/{chunk-7MUE4GTZ.mjs.map → chunk-MP4OJWJ3.mjs.map} +0 -0
@@ -75,7 +75,8 @@
75
75
  "type": "string",
76
76
  "enum": [
77
77
  "ontology",
78
- "workflow-outputs"
78
+ "workflow-outputs",
79
+ "telemetry"
79
80
  ]
80
81
  },
81
82
  "ontologyId": {
@@ -222,7 +223,8 @@
222
223
  "type": "string",
223
224
  "enum": [
224
225
  "ontology",
225
- "workflow-outputs"
226
+ "workflow-outputs",
227
+ "telemetry"
226
228
  ]
227
229
  },
228
230
  "ontologyId": {
@@ -365,7 +367,8 @@
365
367
  "type": "string",
366
368
  "enum": [
367
369
  "ontology",
368
- "workflow-outputs"
370
+ "workflow-outputs",
371
+ "telemetry"
369
372
  ]
370
373
  },
371
374
  "ontologyId": {
@@ -400,7 +403,10 @@
400
403
  "schema",
401
404
  "cooccurrence",
402
405
  "bipartite-cosine",
403
- "focus-star"
406
+ "focus-star",
407
+ "ontology-relation",
408
+ "record-clustering",
409
+ "field-tag-hub"
404
410
  ]
405
411
  },
406
412
  "maxHops": {
@@ -571,146 +577,8 @@
571
577
  ],
572
578
  "additionalProperties": false
573
579
  },
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
580
+ "root": {
581
+ "$ref": "#/$defs/__schema2"
714
582
  }
715
583
  },
716
584
  "required": [
@@ -719,7 +587,7 @@
719
587
  "viewId",
720
588
  "boundOntologyId",
721
589
  "data",
722
- "ui"
590
+ "root"
723
591
  ],
724
592
  "additionalProperties": false,
725
593
  "$defs": {
@@ -1035,6 +903,1134 @@
1035
903
  }
1036
904
  }
1037
905
  ]
906
+ },
907
+ "__schema2": {
908
+ "anyOf": [
909
+ {
910
+ "type": "object",
911
+ "properties": {
912
+ "id": {
913
+ "type": "string",
914
+ "minLength": 1,
915
+ "maxLength": 256
916
+ },
917
+ "kind": {
918
+ "type": "string",
919
+ "const": "container"
920
+ },
921
+ "layout": {
922
+ "type": "string",
923
+ "enum": [
924
+ "split",
925
+ "grid",
926
+ "stack",
927
+ "tabs"
928
+ ]
929
+ },
930
+ "direction": {
931
+ "type": "string",
932
+ "enum": [
933
+ "horizontal",
934
+ "vertical"
935
+ ]
936
+ },
937
+ "columns": {
938
+ "type": "number",
939
+ "const": 24
940
+ },
941
+ "rowHeight": {
942
+ "type": "integer",
943
+ "minimum": 16,
944
+ "maximum": 240
945
+ },
946
+ "gap": {
947
+ "type": "integer",
948
+ "minimum": 0,
949
+ "maximum": 64
950
+ },
951
+ "chrome": {
952
+ "type": "string",
953
+ "enum": [
954
+ "panel",
955
+ "plain",
956
+ "none"
957
+ ]
958
+ },
959
+ "title": {
960
+ "anyOf": [
961
+ {
962
+ "type": "string",
963
+ "minLength": 1
964
+ },
965
+ {
966
+ "type": "object",
967
+ "propertyNames": {
968
+ "type": "string",
969
+ "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
970
+ },
971
+ "additionalProperties": {
972
+ "type": "string",
973
+ "minLength": 1
974
+ }
975
+ }
976
+ ]
977
+ },
978
+ "description": {
979
+ "type": "string",
980
+ "maxLength": 2048
981
+ },
982
+ "placement": {
983
+ "type": "object",
984
+ "properties": {
985
+ "grid": {
986
+ "type": "object",
987
+ "properties": {
988
+ "x": {
989
+ "type": "integer",
990
+ "minimum": 0,
991
+ "maximum": 23
992
+ },
993
+ "y": {
994
+ "type": "integer",
995
+ "minimum": 0,
996
+ "maximum": 200
997
+ },
998
+ "w": {
999
+ "type": "integer",
1000
+ "minimum": 2,
1001
+ "maximum": 24
1002
+ },
1003
+ "h": {
1004
+ "type": "integer",
1005
+ "minimum": 2,
1006
+ "maximum": 200
1007
+ },
1008
+ "minW": {
1009
+ "type": "integer",
1010
+ "minimum": 2,
1011
+ "maximum": 24
1012
+ },
1013
+ "minH": {
1014
+ "type": "integer",
1015
+ "minimum": 2,
1016
+ "maximum": 200
1017
+ }
1018
+ },
1019
+ "required": [
1020
+ "x",
1021
+ "y",
1022
+ "w",
1023
+ "h"
1024
+ ],
1025
+ "additionalProperties": false
1026
+ },
1027
+ "split": {
1028
+ "type": "object",
1029
+ "properties": {
1030
+ "size": {
1031
+ "anyOf": [
1032
+ {
1033
+ "type": "number",
1034
+ "exclusiveMinimum": 0
1035
+ },
1036
+ {
1037
+ "type": "string",
1038
+ "minLength": 1
1039
+ }
1040
+ ]
1041
+ },
1042
+ "minSize": {
1043
+ "anyOf": [
1044
+ {
1045
+ "type": "number",
1046
+ "exclusiveMinimum": 0
1047
+ },
1048
+ {
1049
+ "type": "string",
1050
+ "minLength": 1
1051
+ }
1052
+ ]
1053
+ },
1054
+ "maxSize": {
1055
+ "anyOf": [
1056
+ {
1057
+ "type": "number",
1058
+ "exclusiveMinimum": 0
1059
+ },
1060
+ {
1061
+ "type": "string",
1062
+ "minLength": 1
1063
+ }
1064
+ ]
1065
+ },
1066
+ "collapsible": {
1067
+ "type": "boolean"
1068
+ },
1069
+ "collapsed": {
1070
+ "type": "boolean"
1071
+ }
1072
+ },
1073
+ "additionalProperties": false
1074
+ },
1075
+ "tab": {
1076
+ "type": "object",
1077
+ "properties": {
1078
+ "label": {
1079
+ "anyOf": [
1080
+ {
1081
+ "type": "string",
1082
+ "minLength": 1
1083
+ },
1084
+ {
1085
+ "type": "object",
1086
+ "propertyNames": {
1087
+ "type": "string",
1088
+ "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
1089
+ },
1090
+ "additionalProperties": {
1091
+ "type": "string",
1092
+ "minLength": 1
1093
+ }
1094
+ }
1095
+ ]
1096
+ },
1097
+ "icon": {
1098
+ "type": "string",
1099
+ "minLength": 1,
1100
+ "maxLength": 256
1101
+ }
1102
+ },
1103
+ "additionalProperties": false
1104
+ }
1105
+ },
1106
+ "additionalProperties": false
1107
+ },
1108
+ "data": {
1109
+ "type": "object",
1110
+ "properties": {
1111
+ "statements": {
1112
+ "type": "object",
1113
+ "propertyNames": {
1114
+ "type": "string",
1115
+ "minLength": 1,
1116
+ "maxLength": 256
1117
+ },
1118
+ "additionalProperties": {
1119
+ "anyOf": [
1120
+ {
1121
+ "type": "object",
1122
+ "properties": {
1123
+ "kind": {
1124
+ "type": "string",
1125
+ "const": "select"
1126
+ },
1127
+ "from": {
1128
+ "type": "object",
1129
+ "properties": {
1130
+ "source": {
1131
+ "default": "ontology",
1132
+ "type": "string",
1133
+ "enum": [
1134
+ "ontology",
1135
+ "workflow-outputs",
1136
+ "telemetry"
1137
+ ]
1138
+ },
1139
+ "ontologyId": {
1140
+ "type": "string",
1141
+ "minLength": 1,
1142
+ "maxLength": 256
1143
+ },
1144
+ "workflowId": {
1145
+ "type": "string",
1146
+ "minLength": 1,
1147
+ "maxLength": 256
1148
+ },
1149
+ "includeSharedSlices": {
1150
+ "type": "boolean"
1151
+ }
1152
+ },
1153
+ "required": [
1154
+ "source",
1155
+ "ontologyId"
1156
+ ],
1157
+ "additionalProperties": false
1158
+ },
1159
+ "select": {
1160
+ "type": "object",
1161
+ "properties": {
1162
+ "baseColumns": {
1163
+ "maxItems": 64,
1164
+ "type": "array",
1165
+ "items": {
1166
+ "type": "string",
1167
+ "minLength": 1,
1168
+ "maxLength": 256
1169
+ }
1170
+ },
1171
+ "propertyColumns": {
1172
+ "maxItems": 128,
1173
+ "type": "array",
1174
+ "items": {
1175
+ "type": "string",
1176
+ "minLength": 1,
1177
+ "maxLength": 256
1178
+ }
1179
+ },
1180
+ "featureColumns": {
1181
+ "maxItems": 256,
1182
+ "type": "array",
1183
+ "items": {
1184
+ "type": "string",
1185
+ "minLength": 1,
1186
+ "maxLength": 256
1187
+ }
1188
+ },
1189
+ "tagGroupColumns": {
1190
+ "maxItems": 128,
1191
+ "type": "array",
1192
+ "items": {
1193
+ "type": "string",
1194
+ "minLength": 1,
1195
+ "maxLength": 256
1196
+ }
1197
+ },
1198
+ "columnOrder": {
1199
+ "maxItems": 512,
1200
+ "type": "array",
1201
+ "items": {
1202
+ "type": "string",
1203
+ "minLength": 1,
1204
+ "maxLength": 256
1205
+ }
1206
+ }
1207
+ },
1208
+ "additionalProperties": false
1209
+ },
1210
+ "where": {
1211
+ "$ref": "#/$defs/__schema0"
1212
+ },
1213
+ "orderBy": {
1214
+ "maxItems": 16,
1215
+ "type": "array",
1216
+ "items": {
1217
+ "type": "object",
1218
+ "properties": {
1219
+ "field": {
1220
+ "type": "string",
1221
+ "minLength": 1,
1222
+ "maxLength": 256
1223
+ },
1224
+ "kind": {
1225
+ "default": "builtin",
1226
+ "type": "string",
1227
+ "enum": [
1228
+ "builtin",
1229
+ "feature"
1230
+ ]
1231
+ },
1232
+ "direction": {
1233
+ "default": "desc",
1234
+ "type": "string",
1235
+ "enum": [
1236
+ "asc",
1237
+ "desc"
1238
+ ]
1239
+ },
1240
+ "nulls": {
1241
+ "type": "string",
1242
+ "enum": [
1243
+ "first",
1244
+ "last"
1245
+ ]
1246
+ }
1247
+ },
1248
+ "required": [
1249
+ "field",
1250
+ "kind",
1251
+ "direction"
1252
+ ],
1253
+ "additionalProperties": false
1254
+ }
1255
+ },
1256
+ "limit": {
1257
+ "type": "integer",
1258
+ "minimum": 1,
1259
+ "maximum": 1000
1260
+ }
1261
+ },
1262
+ "required": [
1263
+ "kind",
1264
+ "from"
1265
+ ],
1266
+ "additionalProperties": false
1267
+ },
1268
+ {
1269
+ "type": "object",
1270
+ "properties": {
1271
+ "kind": {
1272
+ "type": "string",
1273
+ "const": "aggregate"
1274
+ },
1275
+ "from": {
1276
+ "type": "object",
1277
+ "properties": {
1278
+ "source": {
1279
+ "default": "ontology",
1280
+ "type": "string",
1281
+ "enum": [
1282
+ "ontology",
1283
+ "workflow-outputs",
1284
+ "telemetry"
1285
+ ]
1286
+ },
1287
+ "ontologyId": {
1288
+ "type": "string",
1289
+ "minLength": 1,
1290
+ "maxLength": 256
1291
+ },
1292
+ "workflowId": {
1293
+ "type": "string",
1294
+ "minLength": 1,
1295
+ "maxLength": 256
1296
+ },
1297
+ "includeSharedSlices": {
1298
+ "type": "boolean"
1299
+ }
1300
+ },
1301
+ "required": [
1302
+ "source",
1303
+ "ontologyId"
1304
+ ],
1305
+ "additionalProperties": false
1306
+ },
1307
+ "where": {
1308
+ "$ref": "#/$defs/__schema0"
1309
+ },
1310
+ "groupBy": {
1311
+ "maxItems": 16,
1312
+ "type": "array",
1313
+ "items": {
1314
+ "type": "string",
1315
+ "minLength": 1,
1316
+ "maxLength": 256
1317
+ }
1318
+ },
1319
+ "metrics": {
1320
+ "minItems": 1,
1321
+ "maxItems": 32,
1322
+ "type": "array",
1323
+ "items": {
1324
+ "type": "object",
1325
+ "properties": {
1326
+ "alias": {
1327
+ "type": "string",
1328
+ "minLength": 1,
1329
+ "maxLength": 256
1330
+ },
1331
+ "fn": {
1332
+ "type": "string",
1333
+ "enum": [
1334
+ "count",
1335
+ "sum",
1336
+ "avg",
1337
+ "min",
1338
+ "max",
1339
+ "distinct_count",
1340
+ "ratio"
1341
+ ]
1342
+ },
1343
+ "fieldKey": {
1344
+ "type": "string",
1345
+ "minLength": 1,
1346
+ "maxLength": 256
1347
+ }
1348
+ },
1349
+ "required": [
1350
+ "alias",
1351
+ "fn"
1352
+ ],
1353
+ "additionalProperties": false
1354
+ }
1355
+ },
1356
+ "orderBy": {
1357
+ "maxItems": 16,
1358
+ "type": "array",
1359
+ "items": {
1360
+ "type": "object",
1361
+ "properties": {
1362
+ "field": {
1363
+ "type": "string",
1364
+ "minLength": 1,
1365
+ "maxLength": 256
1366
+ },
1367
+ "kind": {
1368
+ "default": "builtin",
1369
+ "type": "string",
1370
+ "enum": [
1371
+ "builtin",
1372
+ "feature"
1373
+ ]
1374
+ },
1375
+ "direction": {
1376
+ "default": "desc",
1377
+ "type": "string",
1378
+ "enum": [
1379
+ "asc",
1380
+ "desc"
1381
+ ]
1382
+ },
1383
+ "nulls": {
1384
+ "type": "string",
1385
+ "enum": [
1386
+ "first",
1387
+ "last"
1388
+ ]
1389
+ }
1390
+ },
1391
+ "required": [
1392
+ "field",
1393
+ "kind",
1394
+ "direction"
1395
+ ],
1396
+ "additionalProperties": false
1397
+ }
1398
+ },
1399
+ "limit": {
1400
+ "type": "integer",
1401
+ "minimum": 1,
1402
+ "maximum": 1000
1403
+ }
1404
+ },
1405
+ "required": [
1406
+ "kind",
1407
+ "from",
1408
+ "metrics"
1409
+ ],
1410
+ "additionalProperties": false
1411
+ },
1412
+ {
1413
+ "type": "object",
1414
+ "properties": {
1415
+ "kind": {
1416
+ "type": "string",
1417
+ "const": "graph"
1418
+ },
1419
+ "from": {
1420
+ "type": "object",
1421
+ "properties": {
1422
+ "source": {
1423
+ "default": "ontology",
1424
+ "type": "string",
1425
+ "enum": [
1426
+ "ontology",
1427
+ "workflow-outputs",
1428
+ "telemetry"
1429
+ ]
1430
+ },
1431
+ "ontologyId": {
1432
+ "type": "string",
1433
+ "minLength": 1,
1434
+ "maxLength": 256
1435
+ },
1436
+ "workflowId": {
1437
+ "type": "string",
1438
+ "minLength": 1,
1439
+ "maxLength": 256
1440
+ },
1441
+ "includeSharedSlices": {
1442
+ "type": "boolean"
1443
+ }
1444
+ },
1445
+ "required": [
1446
+ "source",
1447
+ "ontologyId"
1448
+ ],
1449
+ "additionalProperties": false
1450
+ },
1451
+ "where": {
1452
+ "$ref": "#/$defs/__schema0"
1453
+ },
1454
+ "graph": {
1455
+ "type": "object",
1456
+ "properties": {
1457
+ "graphKind": {
1458
+ "type": "string",
1459
+ "enum": [
1460
+ "schema",
1461
+ "cooccurrence",
1462
+ "bipartite-cosine",
1463
+ "focus-star",
1464
+ "ontology-relation",
1465
+ "record-clustering",
1466
+ "field-tag-hub"
1467
+ ]
1468
+ },
1469
+ "maxHops": {
1470
+ "default": 2,
1471
+ "type": "integer",
1472
+ "minimum": 1,
1473
+ "maximum": 6
1474
+ },
1475
+ "nodeLabelField": {
1476
+ "type": "string",
1477
+ "minLength": 1,
1478
+ "maxLength": 256
1479
+ },
1480
+ "edgeRelationFields": {
1481
+ "maxItems": 32,
1482
+ "type": "array",
1483
+ "items": {
1484
+ "type": "string",
1485
+ "minLength": 1,
1486
+ "maxLength": 256
1487
+ }
1488
+ }
1489
+ },
1490
+ "required": [
1491
+ "graphKind",
1492
+ "maxHops"
1493
+ ],
1494
+ "additionalProperties": false
1495
+ },
1496
+ "limit": {
1497
+ "type": "integer",
1498
+ "minimum": 1,
1499
+ "maximum": 5000
1500
+ }
1501
+ },
1502
+ "required": [
1503
+ "kind",
1504
+ "from",
1505
+ "graph"
1506
+ ],
1507
+ "additionalProperties": false
1508
+ },
1509
+ {
1510
+ "type": "object",
1511
+ "properties": {
1512
+ "kind": {
1513
+ "type": "string",
1514
+ "enum": [
1515
+ "insert",
1516
+ "update",
1517
+ "delete"
1518
+ ]
1519
+ },
1520
+ "ontologyId": {
1521
+ "type": "string",
1522
+ "minLength": 1,
1523
+ "maxLength": 256
1524
+ },
1525
+ "values": {
1526
+ "type": "object",
1527
+ "propertyNames": {
1528
+ "type": "string"
1529
+ },
1530
+ "additionalProperties": {
1531
+ "$ref": "#/$defs/__schema1"
1532
+ }
1533
+ },
1534
+ "where": {
1535
+ "$ref": "#/$defs/__schema0"
1536
+ }
1537
+ },
1538
+ "required": [
1539
+ "kind",
1540
+ "ontologyId"
1541
+ ],
1542
+ "additionalProperties": false
1543
+ },
1544
+ {
1545
+ "type": "object",
1546
+ "properties": {
1547
+ "kind": {
1548
+ "type": "string",
1549
+ "const": "call"
1550
+ },
1551
+ "workflowId": {
1552
+ "type": "string",
1553
+ "minLength": 1,
1554
+ "maxLength": 256
1555
+ },
1556
+ "pageType": {
1557
+ "default": "preview",
1558
+ "type": "string",
1559
+ "enum": [
1560
+ "preview",
1561
+ "process",
1562
+ "log",
1563
+ "chat",
1564
+ "api"
1565
+ ]
1566
+ },
1567
+ "inputMapping": {
1568
+ "type": "object",
1569
+ "propertyNames": {
1570
+ "type": "string"
1571
+ },
1572
+ "additionalProperties": {
1573
+ "$ref": "#/$defs/__schema1"
1574
+ }
1575
+ },
1576
+ "outputStrategy": {
1577
+ "type": "string",
1578
+ "enum": [
1579
+ "default-result-ontology",
1580
+ "domain-ontology",
1581
+ "ledger-only",
1582
+ "column-writeback"
1583
+ ]
1584
+ }
1585
+ },
1586
+ "required": [
1587
+ "kind",
1588
+ "workflowId",
1589
+ "pageType"
1590
+ ],
1591
+ "additionalProperties": false
1592
+ }
1593
+ ]
1594
+ }
1595
+ },
1596
+ "parameters": {
1597
+ "type": "object",
1598
+ "propertyNames": {
1599
+ "type": "string",
1600
+ "minLength": 1,
1601
+ "maxLength": 256
1602
+ },
1603
+ "additionalProperties": {
1604
+ "$ref": "#/$defs/__schema1"
1605
+ }
1606
+ },
1607
+ "cache": {
1608
+ "type": "object",
1609
+ "properties": {
1610
+ "mode": {
1611
+ "default": "realtime",
1612
+ "type": "string",
1613
+ "enum": [
1614
+ "realtime",
1615
+ "cached",
1616
+ "stale-while-revalidate",
1617
+ "materialized"
1618
+ ]
1619
+ },
1620
+ "ttlSeconds": {
1621
+ "type": "integer",
1622
+ "minimum": 1,
1623
+ "maximum": 86400
1624
+ }
1625
+ },
1626
+ "required": [
1627
+ "mode"
1628
+ ],
1629
+ "additionalProperties": false
1630
+ }
1631
+ },
1632
+ "required": [
1633
+ "statements"
1634
+ ],
1635
+ "additionalProperties": false
1636
+ },
1637
+ "wiring": {
1638
+ "maxItems": 128,
1639
+ "type": "array",
1640
+ "items": {
1641
+ "type": "object",
1642
+ "properties": {
1643
+ "sourceNodeId": {
1644
+ "type": "string",
1645
+ "minLength": 1,
1646
+ "maxLength": 256
1647
+ },
1648
+ "event": {
1649
+ "type": "string",
1650
+ "minLength": 1,
1651
+ "maxLength": 256
1652
+ },
1653
+ "targetNodeId": {
1654
+ "type": "string",
1655
+ "minLength": 1,
1656
+ "maxLength": 256
1657
+ },
1658
+ "targetStateKey": {
1659
+ "type": "string",
1660
+ "minLength": 1,
1661
+ "maxLength": 256
1662
+ },
1663
+ "action": {
1664
+ "type": "string",
1665
+ "minLength": 1,
1666
+ "maxLength": 256
1667
+ },
1668
+ "payloadMap": {
1669
+ "type": "object",
1670
+ "propertyNames": {
1671
+ "type": "string"
1672
+ },
1673
+ "additionalProperties": {
1674
+ "$ref": "#/$defs/__schema1"
1675
+ }
1676
+ }
1677
+ },
1678
+ "required": [
1679
+ "sourceNodeId",
1680
+ "event",
1681
+ "action"
1682
+ ],
1683
+ "additionalProperties": false
1684
+ }
1685
+ },
1686
+ "children": {
1687
+ "minItems": 1,
1688
+ "maxItems": 128,
1689
+ "type": "array",
1690
+ "items": {
1691
+ "$ref": "#/$defs/__schema2"
1692
+ }
1693
+ }
1694
+ },
1695
+ "required": [
1696
+ "id",
1697
+ "kind",
1698
+ "layout",
1699
+ "children"
1700
+ ],
1701
+ "additionalProperties": false
1702
+ },
1703
+ {
1704
+ "type": "object",
1705
+ "properties": {
1706
+ "id": {
1707
+ "type": "string",
1708
+ "minLength": 1,
1709
+ "maxLength": 256
1710
+ },
1711
+ "kind": {
1712
+ "type": "string",
1713
+ "const": "leaf"
1714
+ },
1715
+ "chrome": {
1716
+ "type": "string",
1717
+ "enum": [
1718
+ "panel",
1719
+ "plain",
1720
+ "none"
1721
+ ]
1722
+ },
1723
+ "placement": {
1724
+ "type": "object",
1725
+ "properties": {
1726
+ "grid": {
1727
+ "type": "object",
1728
+ "properties": {
1729
+ "x": {
1730
+ "type": "integer",
1731
+ "minimum": 0,
1732
+ "maximum": 23
1733
+ },
1734
+ "y": {
1735
+ "type": "integer",
1736
+ "minimum": 0,
1737
+ "maximum": 200
1738
+ },
1739
+ "w": {
1740
+ "type": "integer",
1741
+ "minimum": 2,
1742
+ "maximum": 24
1743
+ },
1744
+ "h": {
1745
+ "type": "integer",
1746
+ "minimum": 2,
1747
+ "maximum": 200
1748
+ },
1749
+ "minW": {
1750
+ "type": "integer",
1751
+ "minimum": 2,
1752
+ "maximum": 24
1753
+ },
1754
+ "minH": {
1755
+ "type": "integer",
1756
+ "minimum": 2,
1757
+ "maximum": 200
1758
+ }
1759
+ },
1760
+ "required": [
1761
+ "x",
1762
+ "y",
1763
+ "w",
1764
+ "h"
1765
+ ],
1766
+ "additionalProperties": false
1767
+ },
1768
+ "split": {
1769
+ "type": "object",
1770
+ "properties": {
1771
+ "size": {
1772
+ "anyOf": [
1773
+ {
1774
+ "type": "number",
1775
+ "exclusiveMinimum": 0
1776
+ },
1777
+ {
1778
+ "type": "string",
1779
+ "minLength": 1
1780
+ }
1781
+ ]
1782
+ },
1783
+ "minSize": {
1784
+ "anyOf": [
1785
+ {
1786
+ "type": "number",
1787
+ "exclusiveMinimum": 0
1788
+ },
1789
+ {
1790
+ "type": "string",
1791
+ "minLength": 1
1792
+ }
1793
+ ]
1794
+ },
1795
+ "maxSize": {
1796
+ "anyOf": [
1797
+ {
1798
+ "type": "number",
1799
+ "exclusiveMinimum": 0
1800
+ },
1801
+ {
1802
+ "type": "string",
1803
+ "minLength": 1
1804
+ }
1805
+ ]
1806
+ },
1807
+ "collapsible": {
1808
+ "type": "boolean"
1809
+ },
1810
+ "collapsed": {
1811
+ "type": "boolean"
1812
+ }
1813
+ },
1814
+ "additionalProperties": false
1815
+ },
1816
+ "tab": {
1817
+ "type": "object",
1818
+ "properties": {
1819
+ "label": {
1820
+ "anyOf": [
1821
+ {
1822
+ "type": "string",
1823
+ "minLength": 1
1824
+ },
1825
+ {
1826
+ "type": "object",
1827
+ "propertyNames": {
1828
+ "type": "string",
1829
+ "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
1830
+ },
1831
+ "additionalProperties": {
1832
+ "type": "string",
1833
+ "minLength": 1
1834
+ }
1835
+ }
1836
+ ]
1837
+ },
1838
+ "icon": {
1839
+ "type": "string",
1840
+ "minLength": 1,
1841
+ "maxLength": 256
1842
+ }
1843
+ },
1844
+ "additionalProperties": false
1845
+ }
1846
+ },
1847
+ "additionalProperties": false
1848
+ },
1849
+ "block": {
1850
+ "type": "object",
1851
+ "properties": {
1852
+ "type": {
1853
+ "type": "string",
1854
+ "enum": [
1855
+ "nav-sidebar",
1856
+ "top-bar",
1857
+ "table",
1858
+ "gallery",
1859
+ "kanban",
1860
+ "tree",
1861
+ "graph",
1862
+ "boston-matrix",
1863
+ "trend-matrix",
1864
+ "metric-card",
1865
+ "bar-chart",
1866
+ "line-chart",
1867
+ "mixed-chart",
1868
+ "pie-chart",
1869
+ "donut-chart",
1870
+ "radar-chart",
1871
+ "scatter-chart",
1872
+ "word-cloud-chart",
1873
+ "ranking-list",
1874
+ "pivot-table",
1875
+ "filter-bar",
1876
+ "variable-panel",
1877
+ "record-detail",
1878
+ "record-create",
1879
+ "record-history",
1880
+ "markdown",
1881
+ "workflow-form",
1882
+ "workflow-waterfall",
1883
+ "workflow-canvas",
1884
+ "workflow-log",
1885
+ "workflow-chat",
1886
+ "design-board",
1887
+ "linesheet",
1888
+ "review",
1889
+ "work-order-review",
1890
+ "json-editor",
1891
+ "custom"
1892
+ ]
1893
+ },
1894
+ "customType": {
1895
+ "type": "string",
1896
+ "minLength": 1,
1897
+ "maxLength": 256
1898
+ },
1899
+ "title": {
1900
+ "anyOf": [
1901
+ {
1902
+ "type": "string",
1903
+ "minLength": 1
1904
+ },
1905
+ {
1906
+ "type": "object",
1907
+ "propertyNames": {
1908
+ "type": "string",
1909
+ "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
1910
+ },
1911
+ "additionalProperties": {
1912
+ "type": "string",
1913
+ "minLength": 1
1914
+ }
1915
+ }
1916
+ ]
1917
+ },
1918
+ "dataSource": {
1919
+ "anyOf": [
1920
+ {
1921
+ "type": "object",
1922
+ "properties": {
1923
+ "kind": {
1924
+ "type": "string",
1925
+ "const": "statement"
1926
+ },
1927
+ "statementId": {
1928
+ "type": "string",
1929
+ "minLength": 1,
1930
+ "maxLength": 256
1931
+ }
1932
+ },
1933
+ "required": [
1934
+ "kind",
1935
+ "statementId"
1936
+ ],
1937
+ "additionalProperties": false
1938
+ },
1939
+ {
1940
+ "type": "object",
1941
+ "properties": {
1942
+ "kind": {
1943
+ "type": "string",
1944
+ "const": "artifact.body"
1945
+ },
1946
+ "session": {
1947
+ "default": "loro",
1948
+ "type": "string",
1949
+ "enum": [
1950
+ "loro",
1951
+ "aggregate"
1952
+ ]
1953
+ },
1954
+ "slice": {
1955
+ "type": "string",
1956
+ "minLength": 1,
1957
+ "maxLength": 256
1958
+ }
1959
+ },
1960
+ "required": [
1961
+ "kind",
1962
+ "session"
1963
+ ],
1964
+ "additionalProperties": false
1965
+ },
1966
+ {
1967
+ "type": "object",
1968
+ "properties": {
1969
+ "kind": {
1970
+ "type": "string",
1971
+ "const": "record.fields"
1972
+ },
1973
+ "recordRef": {
1974
+ "default": "subject",
1975
+ "type": "string",
1976
+ "minLength": 1,
1977
+ "maxLength": 256
1978
+ }
1979
+ },
1980
+ "required": [
1981
+ "kind",
1982
+ "recordRef"
1983
+ ],
1984
+ "additionalProperties": false
1985
+ },
1986
+ {
1987
+ "type": "object",
1988
+ "properties": {
1989
+ "kind": {
1990
+ "type": "string",
1991
+ "const": "static"
1992
+ }
1993
+ },
1994
+ "required": [
1995
+ "kind"
1996
+ ],
1997
+ "additionalProperties": false
1998
+ }
1999
+ ]
2000
+ },
2001
+ "actionStatementIds": {
2002
+ "maxItems": 16,
2003
+ "type": "array",
2004
+ "items": {
2005
+ "type": "string",
2006
+ "minLength": 1,
2007
+ "maxLength": 256
2008
+ }
2009
+ },
2010
+ "config": {
2011
+ "type": "object",
2012
+ "propertyNames": {
2013
+ "type": "string"
2014
+ },
2015
+ "additionalProperties": {
2016
+ "$ref": "#/$defs/__schema1"
2017
+ }
2018
+ }
2019
+ },
2020
+ "required": [
2021
+ "type"
2022
+ ],
2023
+ "additionalProperties": false
2024
+ }
2025
+ },
2026
+ "required": [
2027
+ "id",
2028
+ "kind",
2029
+ "block"
2030
+ ],
2031
+ "additionalProperties": false
2032
+ }
2033
+ ]
1038
2034
  }
1039
2035
  },
1040
2036
  "$id": "https://schemas.infmonkeys.com/contracts/view-ontology-record.schema.json",