@inf-monkeys-tech/monkeys 1.1.35 → 1.1.37

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 (56) hide show
  1. package/README.md +4 -0
  2. package/lib/contracts/agent.d.ts +1 -5
  3. package/lib/contracts/agent.d.ts.map +1 -1
  4. package/lib/contracts/agent.js +3 -3
  5. package/lib/contracts/agent.js.map +1 -1
  6. package/lib/contracts/design-board.d.ts +357 -0
  7. package/lib/contracts/design-board.d.ts.map +1 -0
  8. package/lib/contracts/design-board.js +75 -0
  9. package/lib/contracts/design-board.js.map +1 -0
  10. package/lib/contracts/index.d.ts +1 -0
  11. package/lib/contracts/index.d.ts.map +1 -1
  12. package/lib/contracts/index.js +1 -0
  13. package/lib/contracts/index.js.map +1 -1
  14. package/lib/contracts/menu.d.ts +5 -5
  15. package/lib/contracts/tenant.d.ts +1 -25
  16. package/lib/contracts/tenant.d.ts.map +1 -1
  17. package/lib/contracts/tenant.js +0 -4
  18. package/lib/contracts/tenant.js.map +1 -1
  19. package/lib/esm/{chunk-DBIRUF5K.mjs → chunk-5CETMB6U.mjs} +2 -2
  20. package/lib/esm/{chunk-4QMWKKPP.mjs → chunk-NENE42EE.mjs} +56 -3
  21. package/lib/esm/chunk-NENE42EE.mjs.map +1 -0
  22. package/lib/esm/{chunk-NTH4LWR3.mjs → chunk-R7ICFUBP.mjs} +2 -2
  23. package/lib/esm/{chunk-EJJLMGKU.mjs → chunk-T3ZHGLLF.mjs} +2 -2
  24. package/lib/esm/{chunk-RSHMTLT6.mjs → chunk-U33TFV3C.mjs} +7 -3
  25. package/lib/esm/{chunk-RSHMTLT6.mjs.map → chunk-U33TFV3C.mjs.map} +1 -1
  26. package/lib/esm/{chunk-TNA3ZX6I.mjs → chunk-ZSE6AAEE.mjs} +2083 -1973
  27. package/lib/esm/chunk-ZSE6AAEE.mjs.map +1 -0
  28. package/lib/esm/contracts/index.mjs +24 -4
  29. package/lib/esm/index.mjs +30 -6
  30. package/lib/esm/index.mjs.map +1 -1
  31. package/lib/esm/runtime/index.mjs +7 -3
  32. package/lib/esm/schemas/index.mjs +7 -3
  33. package/lib/json-schema/design-board-commit-command.schema.json +408 -0
  34. package/lib/json-schema/design-board-document.schema.json +380 -0
  35. package/lib/json-schema/index.json +2 -0
  36. package/lib/json-schema/tenant-product-config.schema.json +0 -11
  37. package/lib/json-schema/tenant-runtime-config.schema.json +0 -11
  38. package/lib/runtime/design-board.d.ts +4 -0
  39. package/lib/runtime/design-board.d.ts.map +1 -0
  40. package/lib/runtime/design-board.js +57 -0
  41. package/lib/runtime/design-board.js.map +1 -0
  42. package/lib/runtime/index.d.ts +1 -0
  43. package/lib/runtime/index.d.ts.map +1 -1
  44. package/lib/runtime/index.js +1 -0
  45. package/lib/runtime/index.js.map +1 -1
  46. package/lib/schemas/index.d.ts +145 -14
  47. package/lib/schemas/index.d.ts.map +1 -1
  48. package/lib/schemas/index.js +7 -1
  49. package/lib/schemas/index.js.map +1 -1
  50. package/package.json +1 -1
  51. package/test/fixtures/tenant-product-config.public.json +1 -2
  52. package/lib/esm/chunk-4QMWKKPP.mjs.map +0 -1
  53. package/lib/esm/chunk-TNA3ZX6I.mjs.map +0 -1
  54. /package/lib/esm/{chunk-DBIRUF5K.mjs.map → chunk-5CETMB6U.mjs.map} +0 -0
  55. /package/lib/esm/{chunk-NTH4LWR3.mjs.map → chunk-R7ICFUBP.mjs.map} +0 -0
  56. /package/lib/esm/{chunk-EJJLMGKU.mjs.map → chunk-T3ZHGLLF.mjs.map} +0 -0
@@ -0,0 +1,408 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "contract": {
6
+ "type": "string",
7
+ "const": "DesignBoardCommitCommand"
8
+ },
9
+ "schemaVersion": {
10
+ "type": "number",
11
+ "const": 1
12
+ },
13
+ "boardId": {
14
+ "type": "string",
15
+ "minLength": 1,
16
+ "maxLength": 256
17
+ },
18
+ "expectedRevision": {
19
+ "type": "integer",
20
+ "minimum": 0,
21
+ "maximum": 9007199254740991
22
+ },
23
+ "requestId": {
24
+ "type": "string",
25
+ "minLength": 1,
26
+ "maxLength": 256
27
+ },
28
+ "changes": {
29
+ "type": "object",
30
+ "properties": {
31
+ "pages": {
32
+ "maxItems": 200,
33
+ "type": "array",
34
+ "items": {
35
+ "type": "object",
36
+ "properties": {
37
+ "id": {
38
+ "type": "string",
39
+ "minLength": 1,
40
+ "maxLength": 256
41
+ },
42
+ "name": {
43
+ "type": "string",
44
+ "minLength": 1,
45
+ "maxLength": 2000
46
+ },
47
+ "order": {
48
+ "type": "integer",
49
+ "minimum": 0,
50
+ "maximum": 9007199254740991
51
+ },
52
+ "backgroundColor": {
53
+ "type": "string",
54
+ "maxLength": 128
55
+ },
56
+ "backgroundFileRef": {
57
+ "type": "string",
58
+ "pattern": "^file:\\/\\/[A-Za-z0-9][A-Za-z0-9_-]{0,127}$"
59
+ }
60
+ },
61
+ "required": [
62
+ "id",
63
+ "name",
64
+ "order"
65
+ ],
66
+ "additionalProperties": false
67
+ }
68
+ },
69
+ "appState": {
70
+ "type": "object",
71
+ "propertyNames": {
72
+ "type": "string"
73
+ },
74
+ "additionalProperties": {
75
+ "$ref": "#/$defs/__schema0"
76
+ }
77
+ },
78
+ "scenes": {
79
+ "maxItems": 200,
80
+ "type": "array",
81
+ "items": {
82
+ "type": "object",
83
+ "properties": {
84
+ "pageId": {
85
+ "type": "string",
86
+ "minLength": 1,
87
+ "maxLength": 256
88
+ },
89
+ "elements": {
90
+ "maxItems": 20000,
91
+ "type": "array",
92
+ "items": {
93
+ "type": "object",
94
+ "properties": {
95
+ "id": {
96
+ "type": "string",
97
+ "minLength": 1,
98
+ "maxLength": 256
99
+ },
100
+ "type": {
101
+ "type": "string",
102
+ "minLength": 1
103
+ },
104
+ "x": {
105
+ "type": "number"
106
+ },
107
+ "y": {
108
+ "type": "number"
109
+ },
110
+ "width": {
111
+ "type": "number",
112
+ "minimum": 0
113
+ },
114
+ "height": {
115
+ "type": "number",
116
+ "minimum": 0
117
+ }
118
+ },
119
+ "required": [
120
+ "id",
121
+ "type",
122
+ "x",
123
+ "y",
124
+ "width",
125
+ "height"
126
+ ],
127
+ "additionalProperties": {
128
+ "$ref": "#/$defs/__schema0"
129
+ }
130
+ }
131
+ }
132
+ },
133
+ "required": [
134
+ "pageId",
135
+ "elements"
136
+ ],
137
+ "additionalProperties": false
138
+ }
139
+ },
140
+ "nodes": {
141
+ "maxItems": 10000,
142
+ "type": "array",
143
+ "items": {
144
+ "type": "object",
145
+ "properties": {
146
+ "id": {
147
+ "type": "string",
148
+ "minLength": 1,
149
+ "maxLength": 256
150
+ },
151
+ "pageId": {
152
+ "type": "string",
153
+ "minLength": 1,
154
+ "maxLength": 256
155
+ },
156
+ "kind": {
157
+ "type": "string",
158
+ "enum": [
159
+ "workflow",
160
+ "instruction",
161
+ "output",
162
+ "live-image",
163
+ "live-image-workflow",
164
+ "linesheet-slot",
165
+ "linesheet-table",
166
+ "note",
167
+ "other"
168
+ ]
169
+ },
170
+ "title": {
171
+ "type": "string",
172
+ "maxLength": 2000
173
+ },
174
+ "x": {
175
+ "type": "number"
176
+ },
177
+ "y": {
178
+ "type": "number"
179
+ },
180
+ "width": {
181
+ "type": "number",
182
+ "exclusiveMinimum": 0
183
+ },
184
+ "height": {
185
+ "type": "number",
186
+ "exclusiveMinimum": 0
187
+ },
188
+ "props": {
189
+ "type": "object",
190
+ "propertyNames": {
191
+ "type": "string"
192
+ },
193
+ "additionalProperties": {
194
+ "$ref": "#/$defs/__schema0"
195
+ }
196
+ },
197
+ "meta": {
198
+ "type": "object",
199
+ "propertyNames": {
200
+ "type": "string"
201
+ },
202
+ "additionalProperties": {
203
+ "$ref": "#/$defs/__schema0"
204
+ }
205
+ },
206
+ "deleted": {
207
+ "type": "boolean"
208
+ }
209
+ },
210
+ "required": [
211
+ "id",
212
+ "pageId",
213
+ "kind",
214
+ "title",
215
+ "x",
216
+ "y",
217
+ "width",
218
+ "height",
219
+ "props",
220
+ "meta"
221
+ ],
222
+ "additionalProperties": false
223
+ }
224
+ },
225
+ "removedNodeIds": {
226
+ "maxItems": 10000,
227
+ "type": "array",
228
+ "items": {
229
+ "type": "string",
230
+ "minLength": 1,
231
+ "maxLength": 256
232
+ }
233
+ },
234
+ "connections": {
235
+ "maxItems": 20000,
236
+ "type": "array",
237
+ "items": {
238
+ "type": "object",
239
+ "properties": {
240
+ "id": {
241
+ "type": "string",
242
+ "minLength": 1,
243
+ "maxLength": 256
244
+ },
245
+ "pageId": {
246
+ "type": "string",
247
+ "minLength": 1,
248
+ "maxLength": 256
249
+ },
250
+ "from": {
251
+ "type": "string",
252
+ "minLength": 1,
253
+ "maxLength": 256
254
+ },
255
+ "to": {
256
+ "type": "string",
257
+ "minLength": 1,
258
+ "maxLength": 256
259
+ },
260
+ "label": {
261
+ "type": "string",
262
+ "maxLength": 2000
263
+ },
264
+ "kind": {
265
+ "type": "string",
266
+ "minLength": 1,
267
+ "maxLength": 256
268
+ },
269
+ "props": {
270
+ "type": "object",
271
+ "propertyNames": {
272
+ "type": "string"
273
+ },
274
+ "additionalProperties": {
275
+ "$ref": "#/$defs/__schema0"
276
+ }
277
+ },
278
+ "deleted": {
279
+ "type": "boolean"
280
+ }
281
+ },
282
+ "required": [
283
+ "id",
284
+ "pageId",
285
+ "from",
286
+ "to",
287
+ "kind",
288
+ "props"
289
+ ],
290
+ "additionalProperties": false
291
+ }
292
+ },
293
+ "removedConnectionIds": {
294
+ "maxItems": 20000,
295
+ "type": "array",
296
+ "items": {
297
+ "type": "string",
298
+ "minLength": 1,
299
+ "maxLength": 256
300
+ }
301
+ },
302
+ "files": {
303
+ "maxItems": 10000,
304
+ "type": "array",
305
+ "items": {
306
+ "type": "object",
307
+ "properties": {
308
+ "canonicalUri": {
309
+ "type": "string",
310
+ "pattern": "^file:\\/\\/[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?:#[A-Za-z0-9_-]+)?$"
311
+ },
312
+ "fileId": {
313
+ "type": "string",
314
+ "minLength": 1,
315
+ "maxLength": 256
316
+ },
317
+ "mimeType": {
318
+ "type": "string",
319
+ "minLength": 1,
320
+ "maxLength": 128
321
+ },
322
+ "byteSize": {
323
+ "type": "integer",
324
+ "minimum": 0,
325
+ "maximum": 9007199254740991
326
+ },
327
+ "contentHash": {
328
+ "type": "string"
329
+ },
330
+ "role": {
331
+ "type": "string",
332
+ "minLength": 1,
333
+ "maxLength": 256
334
+ }
335
+ },
336
+ "required": [
337
+ "canonicalUri",
338
+ "mimeType",
339
+ "role"
340
+ ],
341
+ "additionalProperties": false
342
+ }
343
+ },
344
+ "removedFileUris": {
345
+ "maxItems": 10000,
346
+ "type": "array",
347
+ "items": {
348
+ "type": "string"
349
+ }
350
+ }
351
+ },
352
+ "required": [
353
+ "scenes",
354
+ "nodes",
355
+ "removedNodeIds",
356
+ "connections",
357
+ "removedConnectionIds",
358
+ "files",
359
+ "removedFileUris"
360
+ ],
361
+ "additionalProperties": false
362
+ }
363
+ },
364
+ "required": [
365
+ "contract",
366
+ "schemaVersion",
367
+ "boardId",
368
+ "expectedRevision",
369
+ "requestId",
370
+ "changes"
371
+ ],
372
+ "additionalProperties": false,
373
+ "$defs": {
374
+ "__schema0": {
375
+ "anyOf": [
376
+ {
377
+ "type": "string"
378
+ },
379
+ {
380
+ "type": "number"
381
+ },
382
+ {
383
+ "type": "boolean"
384
+ },
385
+ {
386
+ "type": "null"
387
+ },
388
+ {
389
+ "type": "array",
390
+ "items": {
391
+ "$ref": "#/$defs/__schema0"
392
+ }
393
+ },
394
+ {
395
+ "type": "object",
396
+ "propertyNames": {
397
+ "type": "string"
398
+ },
399
+ "additionalProperties": {
400
+ "$ref": "#/$defs/__schema0"
401
+ }
402
+ }
403
+ ]
404
+ }
405
+ },
406
+ "$id": "https://schemas.infmonkeys.com/contracts/design-board-commit-command.schema.json",
407
+ "title": "design-board-commit-command"
408
+ }