@inf-monkeys-tech/monkeys 1.1.32 → 1.1.33

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 (34) hide show
  1. package/lib/contracts/index.d.ts +1 -0
  2. package/lib/contracts/index.d.ts.map +1 -1
  3. package/lib/contracts/index.js +1 -0
  4. package/lib/contracts/index.js.map +1 -1
  5. package/lib/contracts/workflow-canvas.d.ts +73 -0
  6. package/lib/contracts/workflow-canvas.d.ts.map +1 -0
  7. package/lib/contracts/workflow-canvas.js +33 -0
  8. package/lib/contracts/workflow-canvas.js.map +1 -0
  9. package/lib/contracts/workflow-definition.d.ts +537 -0
  10. package/lib/contracts/workflow-definition.d.ts.map +1 -1
  11. package/lib/contracts/workflow-definition.js +12 -2
  12. package/lib/contracts/workflow-definition.js.map +1 -1
  13. package/lib/esm/{chunk-OL3X34S6.mjs → chunk-AYAQRJZB.mjs} +3 -3
  14. package/lib/esm/{chunk-COMJDE7H.mjs → chunk-DDTXYQDI.mjs} +3 -3
  15. package/lib/esm/{chunk-HLCW3N47.mjs → chunk-J6LASFTW.mjs} +2 -2
  16. package/lib/esm/{chunk-DMDJCNPT.mjs → chunk-KZDXFORL.mjs} +2 -2
  17. package/lib/esm/{chunk-O5YP4QQ7.mjs → chunk-TYFYPXUR.mjs} +2 -2
  18. package/lib/esm/{chunk-BQ77E4VU.mjs → chunk-YNZODMGG.mjs} +378 -334
  19. package/lib/esm/chunk-YNZODMGG.mjs.map +1 -0
  20. package/lib/esm/contracts/index.mjs +12 -4
  21. package/lib/esm/index.mjs +14 -6
  22. package/lib/esm/index.mjs.map +1 -1
  23. package/lib/esm/runtime/index.mjs +3 -3
  24. package/lib/esm/schemas/index.mjs +3 -3
  25. package/lib/json-schema/workflow-definition.schema.json +195 -65
  26. package/lib/schemas/index.d.ts +42 -0
  27. package/lib/schemas/index.d.ts.map +1 -1
  28. package/package.json +1 -1
  29. package/lib/esm/chunk-BQ77E4VU.mjs.map +0 -1
  30. /package/lib/esm/{chunk-OL3X34S6.mjs.map → chunk-AYAQRJZB.mjs.map} +0 -0
  31. /package/lib/esm/{chunk-COMJDE7H.mjs.map → chunk-DDTXYQDI.mjs.map} +0 -0
  32. /package/lib/esm/{chunk-HLCW3N47.mjs.map → chunk-J6LASFTW.mjs.map} +0 -0
  33. /package/lib/esm/{chunk-DMDJCNPT.mjs.map → chunk-KZDXFORL.mjs.map} +0 -0
  34. /package/lib/esm/{chunk-O5YP4QQ7.mjs.map → chunk-TYFYPXUR.mjs.map} +0 -0
@@ -173,6 +173,136 @@
173
173
  },
174
174
  "thumbnail": {
175
175
  "type": "string"
176
+ },
177
+ "canvas": {
178
+ "type": "object",
179
+ "properties": {
180
+ "engine": {
181
+ "type": "string",
182
+ "const": "excalidraw"
183
+ },
184
+ "schemaVersion": {
185
+ "type": "number",
186
+ "const": 1
187
+ },
188
+ "elements": {
189
+ "maxItems": 20000,
190
+ "type": "array",
191
+ "items": {
192
+ "type": "object",
193
+ "properties": {
194
+ "id": {
195
+ "type": "string",
196
+ "minLength": 1
197
+ },
198
+ "type": {
199
+ "type": "string",
200
+ "enum": [
201
+ "rectangle",
202
+ "diamond",
203
+ "ellipse",
204
+ "text",
205
+ "arrow",
206
+ "line",
207
+ "freedraw",
208
+ "image",
209
+ "frame",
210
+ "magicframe",
211
+ "embeddable",
212
+ "iframe"
213
+ ]
214
+ },
215
+ "x": {
216
+ "type": "number"
217
+ },
218
+ "y": {
219
+ "type": "number"
220
+ },
221
+ "width": {
222
+ "type": "number",
223
+ "minimum": 0
224
+ },
225
+ "height": {
226
+ "type": "number",
227
+ "minimum": 0
228
+ },
229
+ "customData": {
230
+ "type": "object",
231
+ "properties": {
232
+ "workflow": {
233
+ "type": "object",
234
+ "properties": {
235
+ "nodeRef": {
236
+ "type": "string",
237
+ "minLength": 1
238
+ },
239
+ "edgeRef": {
240
+ "type": "string",
241
+ "minLength": 1
242
+ }
243
+ },
244
+ "additionalProperties": false
245
+ }
246
+ },
247
+ "additionalProperties": false
248
+ }
249
+ },
250
+ "required": [
251
+ "id",
252
+ "type",
253
+ "x",
254
+ "y",
255
+ "width",
256
+ "height"
257
+ ],
258
+ "additionalProperties": {
259
+ "$ref": "#/$defs/__schema0"
260
+ }
261
+ }
262
+ },
263
+ "files": {
264
+ "type": "object",
265
+ "propertyNames": {
266
+ "type": "string"
267
+ },
268
+ "additionalProperties": {
269
+ "type": "object",
270
+ "properties": {
271
+ "reference": {
272
+ "type": "string",
273
+ "pattern": "^file:\\/\\/[A-Za-z0-9][A-Za-z0-9_-]{0,127}$"
274
+ },
275
+ "mimeType": {
276
+ "type": "string",
277
+ "enum": [
278
+ "image/png",
279
+ "image/jpeg",
280
+ "image/webp",
281
+ "image/gif",
282
+ "image/svg+xml"
283
+ ]
284
+ },
285
+ "created": {
286
+ "type": "number",
287
+ "minimum": 0
288
+ }
289
+ },
290
+ "required": [
291
+ "reference",
292
+ "mimeType",
293
+ "created"
294
+ ],
295
+ "additionalProperties": false
296
+ }
297
+ }
298
+ },
299
+ "required": [
300
+ "engine",
301
+ "schemaVersion",
302
+ "elements",
303
+ "files"
304
+ ],
305
+ "additionalProperties": false
176
306
  }
177
307
  },
178
308
  "additionalProperties": false
@@ -268,7 +398,7 @@
268
398
  "default": [],
269
399
  "type": "array",
270
400
  "items": {
271
- "$ref": "#/$defs/__schema0"
401
+ "$ref": "#/$defs/__schema1"
272
402
  }
273
403
  },
274
404
  "outputs": {
@@ -335,7 +465,7 @@
335
465
  "type": "string"
336
466
  },
337
467
  "additionalProperties": {
338
- "$ref": "#/$defs/__schema1"
468
+ "$ref": "#/$defs/__schema0"
339
469
  }
340
470
  },
341
471
  "configuration": {
@@ -517,7 +647,7 @@
517
647
  "type": "string"
518
648
  },
519
649
  "additionalProperties": {
520
- "$ref": "#/$defs/__schema1"
650
+ "$ref": "#/$defs/__schema0"
521
651
  }
522
652
  },
523
653
  "inputTemplate": {
@@ -526,7 +656,7 @@
526
656
  "type": "string"
527
657
  },
528
658
  "additionalProperties": {
529
- "$ref": "#/$defs/__schema1"
659
+ "$ref": "#/$defs/__schema0"
530
660
  }
531
661
  }
532
662
  },
@@ -661,7 +791,7 @@
661
791
  "maxLength": 256
662
792
  },
663
793
  "configuration": {
664
- "$ref": "#/$defs/__schema1"
794
+ "$ref": "#/$defs/__schema0"
665
795
  }
666
796
  },
667
797
  "required": [
@@ -780,7 +910,7 @@
780
910
  "maxLength": 256
781
911
  },
782
912
  "detailInformation": {
783
- "$ref": "#/$defs/__schema1"
913
+ "$ref": "#/$defs/__schema0"
784
914
  }
785
915
  },
786
916
  "required": [
@@ -913,6 +1043,37 @@
913
1043
  "additionalProperties": false,
914
1044
  "$defs": {
915
1045
  "__schema0": {
1046
+ "anyOf": [
1047
+ {
1048
+ "type": "string"
1049
+ },
1050
+ {
1051
+ "type": "number"
1052
+ },
1053
+ {
1054
+ "type": "boolean"
1055
+ },
1056
+ {
1057
+ "type": "null"
1058
+ },
1059
+ {
1060
+ "type": "array",
1061
+ "items": {
1062
+ "$ref": "#/$defs/__schema0"
1063
+ }
1064
+ },
1065
+ {
1066
+ "type": "object",
1067
+ "propertyNames": {
1068
+ "type": "string"
1069
+ },
1070
+ "additionalProperties": {
1071
+ "$ref": "#/$defs/__schema0"
1072
+ }
1073
+ }
1074
+ ]
1075
+ },
1076
+ "__schema1": {
916
1077
  "type": "object",
917
1078
  "properties": {
918
1079
  "displayName": {
@@ -1073,7 +1234,7 @@
1073
1234
  "type": "string"
1074
1235
  },
1075
1236
  "defaultCustomInput": {
1076
- "$ref": "#/$defs/__schema1"
1237
+ "$ref": "#/$defs/__schema0"
1077
1238
  },
1078
1239
  "descriptionAlert": {
1079
1240
  "type": "boolean"
@@ -1108,7 +1269,7 @@
1108
1269
  ]
1109
1270
  },
1110
1271
  "value": {
1111
- "$ref": "#/$defs/__schema1"
1272
+ "$ref": "#/$defs/__schema0"
1112
1273
  }
1113
1274
  },
1114
1275
  "required": [
@@ -1164,7 +1325,7 @@
1164
1325
  ]
1165
1326
  },
1166
1327
  "value": {
1167
- "$ref": "#/$defs/__schema1"
1328
+ "$ref": "#/$defs/__schema0"
1168
1329
  }
1169
1330
  },
1170
1331
  "required": [
@@ -1282,7 +1443,7 @@
1282
1443
  "identifyAttributes": {
1283
1444
  "type": "array",
1284
1445
  "items": {
1285
- "$ref": "#/$defs/__schema1"
1446
+ "$ref": "#/$defs/__schema0"
1286
1447
  }
1287
1448
  },
1288
1449
  "identifyMaxVariants": {
@@ -1516,23 +1677,23 @@
1516
1677
  "endpoints": {
1517
1678
  "type": "array",
1518
1679
  "items": {
1519
- "$ref": "#/$defs/__schema1"
1680
+ "$ref": "#/$defs/__schema0"
1520
1681
  }
1521
1682
  },
1522
1683
  "examples": {
1523
1684
  "type": "array",
1524
1685
  "items": {
1525
- "$ref": "#/$defs/__schema1"
1686
+ "$ref": "#/$defs/__schema0"
1526
1687
  }
1527
1688
  },
1528
1689
  "extraData": {
1529
- "$ref": "#/$defs/__schema1"
1690
+ "$ref": "#/$defs/__schema0"
1530
1691
  },
1531
1692
  "layer": {
1532
- "$ref": "#/$defs/__schema1"
1693
+ "$ref": "#/$defs/__schema0"
1533
1694
  },
1534
1695
  "map": {
1535
- "$ref": "#/$defs/__schema1"
1696
+ "$ref": "#/$defs/__schema0"
1536
1697
  },
1537
1698
  "multiline": {
1538
1699
  "type": "boolean"
@@ -1540,13 +1701,13 @@
1540
1701
  "options": {
1541
1702
  "type": "array",
1542
1703
  "items": {
1543
- "$ref": "#/$defs/__schema1"
1704
+ "$ref": "#/$defs/__schema0"
1544
1705
  }
1545
1706
  },
1546
1707
  "originalFiles": {
1547
1708
  "type": "array",
1548
1709
  "items": {
1549
- "$ref": "#/$defs/__schema1"
1710
+ "$ref": "#/$defs/__schema0"
1550
1711
  }
1551
1712
  },
1552
1713
  "placeholder": {
@@ -1572,13 +1733,13 @@
1572
1733
  "type": "boolean"
1573
1734
  },
1574
1735
  "promptDictionary": {
1575
- "$ref": "#/$defs/__schema1"
1736
+ "$ref": "#/$defs/__schema0"
1576
1737
  },
1577
1738
  "promptFontSize": {
1578
1739
  "type": "number"
1579
1740
  },
1580
1741
  "promptModeToggle": {
1581
- "$ref": "#/$defs/__schema1"
1742
+ "$ref": "#/$defs/__schema0"
1582
1743
  },
1583
1744
  "requireActiveSelectFilter": {
1584
1745
  "type": "boolean"
@@ -1600,7 +1761,7 @@
1600
1761
  "selectList": {
1601
1762
  "type": "array",
1602
1763
  "items": {
1603
- "$ref": "#/$defs/__schema1"
1764
+ "$ref": "#/$defs/__schema0"
1604
1765
  }
1605
1766
  },
1606
1767
  "selectListDisplayMode": {
@@ -1645,7 +1806,7 @@
1645
1806
  ]
1646
1807
  },
1647
1808
  "visibility": {
1648
- "$ref": "#/$defs/__schema1"
1809
+ "$ref": "#/$defs/__schema0"
1649
1810
  },
1650
1811
  "voiceButtonText": {
1651
1812
  "type": "string"
@@ -1653,7 +1814,7 @@
1653
1814
  "designAnalysisFields": {
1654
1815
  "type": "array",
1655
1816
  "items": {
1656
- "$ref": "#/$defs/__schema1"
1817
+ "$ref": "#/$defs/__schema0"
1657
1818
  }
1658
1819
  },
1659
1820
  "designAnalysisFillStrategy": {
@@ -1674,7 +1835,7 @@
1674
1835
  "additionalProperties": false
1675
1836
  },
1676
1837
  "default": {
1677
- "$ref": "#/$defs/__schema1"
1838
+ "$ref": "#/$defs/__schema0"
1678
1839
  },
1679
1840
  "description": {
1680
1841
  "anyOf": [
@@ -1709,7 +1870,7 @@
1709
1870
  "additionalProperties": {
1710
1871
  "type": "array",
1711
1872
  "items": {
1712
- "$ref": "#/$defs/__schema1"
1873
+ "$ref": "#/$defs/__schema0"
1713
1874
  }
1714
1875
  }
1715
1876
  },
@@ -1721,7 +1882,7 @@
1721
1882
  "additionalProperties": {
1722
1883
  "type": "array",
1723
1884
  "items": {
1724
- "$ref": "#/$defs/__schema1"
1885
+ "$ref": "#/$defs/__schema0"
1725
1886
  }
1726
1887
  }
1727
1888
  }
@@ -1797,7 +1958,7 @@
1797
1958
  "additionalProperties": false
1798
1959
  },
1799
1960
  {
1800
- "$ref": "#/$defs/__schema0"
1961
+ "$ref": "#/$defs/__schema1"
1801
1962
  },
1802
1963
  {
1803
1964
  "type": "object",
@@ -1813,7 +1974,7 @@
1813
1974
  "values": {
1814
1975
  "type": "array",
1815
1976
  "items": {
1816
- "$ref": "#/$defs/__schema0"
1977
+ "$ref": "#/$defs/__schema1"
1817
1978
  }
1818
1979
  }
1819
1980
  },
@@ -1878,7 +2039,7 @@
1878
2039
  "properties": {
1879
2040
  "type": "array",
1880
2041
  "items": {
1881
- "$ref": "#/$defs/__schema0"
2042
+ "$ref": "#/$defs/__schema1"
1882
2043
  }
1883
2044
  },
1884
2045
  "assetType": {
@@ -1913,37 +2074,6 @@
1913
2074
  ],
1914
2075
  "additionalProperties": false
1915
2076
  },
1916
- "__schema1": {
1917
- "anyOf": [
1918
- {
1919
- "type": "string"
1920
- },
1921
- {
1922
- "type": "number"
1923
- },
1924
- {
1925
- "type": "boolean"
1926
- },
1927
- {
1928
- "type": "null"
1929
- },
1930
- {
1931
- "type": "array",
1932
- "items": {
1933
- "$ref": "#/$defs/__schema1"
1934
- }
1935
- },
1936
- {
1937
- "type": "object",
1938
- "propertyNames": {
1939
- "type": "string"
1940
- },
1941
- "additionalProperties": {
1942
- "$ref": "#/$defs/__schema1"
1943
- }
1944
- }
1945
- ]
1946
- },
1947
2077
  "__schema2": {
1948
2078
  "type": "object",
1949
2079
  "properties": {
@@ -2002,7 +2132,7 @@
2002
2132
  "type": "string"
2003
2133
  },
2004
2134
  "additionalProperties": {
2005
- "$ref": "#/$defs/__schema1"
2135
+ "$ref": "#/$defs/__schema0"
2006
2136
  }
2007
2137
  },
2008
2138
  "startDelay": {
@@ -2030,7 +2160,7 @@
2030
2160
  "type": "string"
2031
2161
  },
2032
2162
  "additionalProperties": {
2033
- "$ref": "#/$defs/__schema1"
2163
+ "$ref": "#/$defs/__schema0"
2034
2164
  }
2035
2165
  },
2036
2166
  "loopCondition": {
@@ -2107,7 +2237,7 @@
2107
2237
  "type": "string"
2108
2238
  },
2109
2239
  "additionalProperties": {
2110
- "$ref": "#/$defs/__schema1"
2240
+ "$ref": "#/$defs/__schema0"
2111
2241
  }
2112
2242
  }
2113
2243
  },
@@ -2146,13 +2276,13 @@
2146
2276
  "type": "string"
2147
2277
  },
2148
2278
  "__alias": {
2149
- "$ref": "#/$defs/__schema1"
2279
+ "$ref": "#/$defs/__schema0"
2150
2280
  },
2151
2281
  "callbackFromWorker": {
2152
2282
  "type": "boolean"
2153
2283
  },
2154
2284
  "caseExpression": {
2155
- "$ref": "#/$defs/__schema1"
2285
+ "$ref": "#/$defs/__schema0"
2156
2286
  },
2157
2287
  "caseValueParam": {
2158
2288
  "type": "string"
@@ -2160,7 +2290,7 @@
2160
2290
  "dependencies": {
2161
2291
  "type": "array",
2162
2292
  "items": {
2163
- "$ref": "#/$defs/__schema1"
2293
+ "$ref": "#/$defs/__schema0"
2164
2294
  }
2165
2295
  },
2166
2296
  "description": {
@@ -22930,6 +22930,48 @@ export declare const canonicalContractSchemas: {
22930
22930
  presentation: import("zod").ZodObject<{
22931
22931
  iconUrl: import("zod").ZodOptional<import("zod").ZodString>;
22932
22932
  thumbnail: import("zod").ZodOptional<import("zod").ZodString>;
22933
+ canvas: import("zod").ZodOptional<import("zod").ZodObject<{
22934
+ engine: import("zod").ZodLiteral<"excalidraw">;
22935
+ schemaVersion: import("zod").ZodLiteral<1>;
22936
+ elements: import("zod").ZodArray<import("zod").ZodObject<{
22937
+ id: import("zod").ZodString;
22938
+ type: import("zod").ZodEnum<{
22939
+ image: "image";
22940
+ text: "text";
22941
+ iframe: "iframe";
22942
+ rectangle: "rectangle";
22943
+ diamond: "diamond";
22944
+ ellipse: "ellipse";
22945
+ arrow: "arrow";
22946
+ line: "line";
22947
+ freedraw: "freedraw";
22948
+ frame: "frame";
22949
+ magicframe: "magicframe";
22950
+ embeddable: "embeddable";
22951
+ }>;
22952
+ x: import("zod").ZodNumber;
22953
+ y: import("zod").ZodNumber;
22954
+ width: import("zod").ZodNumber;
22955
+ height: import("zod").ZodNumber;
22956
+ customData: import("zod").ZodOptional<import("zod").ZodObject<{
22957
+ workflow: import("zod").ZodOptional<import("zod").ZodObject<{
22958
+ nodeRef: import("zod").ZodOptional<import("zod").ZodString>;
22959
+ edgeRef: import("zod").ZodOptional<import("zod").ZodString>;
22960
+ }, import("zod/v4/core").$strict>>;
22961
+ }, import("zod/v4/core").$strict>>;
22962
+ }, import("zod/v4/core").$catchall<import("zod").ZodType<import("../contracts/common").JsonValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("../contracts/common").JsonValue, unknown>>>>>;
22963
+ files: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
22964
+ reference: import("zod").ZodString;
22965
+ mimeType: import("zod").ZodEnum<{
22966
+ "image/webp": "image/webp";
22967
+ "image/png": "image/png";
22968
+ "image/jpeg": "image/jpeg";
22969
+ "image/gif": "image/gif";
22970
+ "image/svg+xml": "image/svg+xml";
22971
+ }>;
22972
+ created: import("zod").ZodNumber;
22973
+ }, import("zod/v4/core").$strict>>;
22974
+ }, import("zod/v4/core").$strict>>;
22933
22975
  }, import("zod/v4/core").$strict>;
22934
22976
  ports: import("zod").ZodObject<{
22935
22977
  inputs: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{