@inf-monkeys-tech/monkeys 1.0.35 → 1.0.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 (63) hide show
  1. package/lib/contracts/common.d.ts +2 -1
  2. package/lib/contracts/common.d.ts.map +1 -1
  3. package/lib/contracts/common.js.map +1 -1
  4. package/lib/contracts/index.d.ts +1 -0
  5. package/lib/contracts/index.d.ts.map +1 -1
  6. package/lib/contracts/index.js +1 -0
  7. package/lib/contracts/index.js.map +1 -1
  8. package/lib/contracts/menu.d.ts +790 -0
  9. package/lib/contracts/menu.d.ts.map +1 -0
  10. package/lib/contracts/menu.js +319 -0
  11. package/lib/contracts/menu.js.map +1 -0
  12. package/lib/contracts/page.d.ts +6 -0
  13. package/lib/contracts/page.d.ts.map +1 -1
  14. package/lib/contracts/page.js +6 -0
  15. package/lib/contracts/page.js.map +1 -1
  16. package/lib/contracts/semantic.d.ts +59 -0
  17. package/lib/contracts/semantic.d.ts.map +1 -1
  18. package/lib/contracts/semantic.js +2 -0
  19. package/lib/contracts/semantic.js.map +1 -1
  20. package/lib/contracts/tenant.d.ts +445 -4
  21. package/lib/contracts/tenant.d.ts.map +1 -1
  22. package/lib/contracts/tenant.js +113 -2
  23. package/lib/contracts/tenant.js.map +1 -1
  24. package/lib/esm/contracts/index.mjs +1166 -746
  25. package/lib/esm/contracts/index.mjs.map +1 -1
  26. package/lib/esm/index.mjs +1692 -749
  27. package/lib/esm/index.mjs.map +1 -1
  28. package/lib/esm/runtime/index.mjs +1234 -342
  29. package/lib/esm/runtime/index.mjs.map +1 -1
  30. package/lib/esm/schemas/index.mjs +1158 -746
  31. package/lib/esm/schemas/index.mjs.map +1 -1
  32. package/lib/json-schema/index.json +3 -0
  33. package/lib/json-schema/menu-definition-set.schema.json +411 -0
  34. package/lib/json-schema/menu-definition.schema.json +385 -0
  35. package/lib/json-schema/menu-runtime-bundle.schema.json +541 -0
  36. package/lib/json-schema/page-definition.schema.json +14 -0
  37. package/lib/json-schema/page-runtime-descriptor.schema.json +14 -0
  38. package/lib/json-schema/product-declaration.schema.json +369 -1
  39. package/lib/json-schema/tenant-product-config.schema.json +537 -2
  40. package/lib/json-schema/tenant-runtime-config.schema.json +667 -2
  41. package/lib/runtime/declaration-compiler.d.ts +2 -0
  42. package/lib/runtime/declaration-compiler.d.ts.map +1 -1
  43. package/lib/runtime/declaration-compiler.js +4 -0
  44. package/lib/runtime/declaration-compiler.js.map +1 -1
  45. package/lib/runtime/index.d.ts +1 -0
  46. package/lib/runtime/index.d.ts.map +1 -1
  47. package/lib/runtime/index.js +1 -0
  48. package/lib/runtime/index.js.map +1 -1
  49. package/lib/runtime/menu-compiler.d.ts +58 -0
  50. package/lib/runtime/menu-compiler.d.ts.map +1 -0
  51. package/lib/runtime/menu-compiler.js +436 -0
  52. package/lib/runtime/menu-compiler.js.map +1 -0
  53. package/lib/runtime/tenant-config.d.ts +2 -0
  54. package/lib/runtime/tenant-config.d.ts.map +1 -1
  55. package/lib/runtime/tenant-config.js +1 -0
  56. package/lib/runtime/tenant-config.js.map +1 -1
  57. package/lib/schemas/index.d.ts +477 -3
  58. package/lib/schemas/index.d.ts.map +1 -1
  59. package/lib/schemas/index.js +46 -2
  60. package/lib/schemas/index.js.map +1 -1
  61. package/package.json +1 -1
  62. package/test/fixtures/current-user-menu-profile.v1.json +22 -0
  63. package/test/fixtures/menu-definition.v1.json +41 -0
@@ -33,6 +33,9 @@
33
33
  "expiring-access-grant": "./expiring-access-grant.schema.json",
34
34
  "hotword-body": "./hotword-body.schema.json",
35
35
  "lineage-record": "./lineage-record.schema.json",
36
+ "menu-definition": "./menu-definition.schema.json",
37
+ "menu-definition-set": "./menu-definition-set.schema.json",
38
+ "menu-runtime-bundle": "./menu-runtime-bundle.schema.json",
36
39
  "ontology-definition": "./ontology-definition.schema.json",
37
40
  "overlay-node": "./overlay-node.schema.json",
38
41
  "output-record": "./output-record.schema.json",
@@ -0,0 +1,411 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "anyOf": [
4
+ {
5
+ "type": "string",
6
+ "const": "*"
7
+ },
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "version": {
12
+ "type": "number",
13
+ "const": 1
14
+ },
15
+ "definitions": {
16
+ "maxItems": 128,
17
+ "type": "array",
18
+ "items": {
19
+ "type": "object",
20
+ "properties": {
21
+ "contract": {
22
+ "type": "string",
23
+ "const": "MenuDefinition"
24
+ },
25
+ "version": {
26
+ "type": "number",
27
+ "const": 1
28
+ },
29
+ "applicationId": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "maxLength": 256
33
+ },
34
+ "surface": {
35
+ "type": "string",
36
+ "minLength": 1,
37
+ "maxLength": 256
38
+ },
39
+ "menuId": {
40
+ "type": "string",
41
+ "minLength": 1,
42
+ "maxLength": 256
43
+ },
44
+ "nodes": {
45
+ "maxItems": 1024,
46
+ "type": "array",
47
+ "items": {
48
+ "anyOf": [
49
+ {
50
+ "type": "object",
51
+ "properties": {
52
+ "nodeId": {
53
+ "type": "string",
54
+ "minLength": 1,
55
+ "maxLength": 256
56
+ },
57
+ "parentNodeId": {
58
+ "type": "string",
59
+ "minLength": 1,
60
+ "maxLength": 256
61
+ },
62
+ "order": {
63
+ "type": "integer",
64
+ "minimum": -1000000,
65
+ "maximum": 1000000
66
+ },
67
+ "kind": {
68
+ "type": "string",
69
+ "const": "group"
70
+ },
71
+ "label": {
72
+ "anyOf": [
73
+ {
74
+ "type": "string",
75
+ "minLength": 1
76
+ },
77
+ {
78
+ "type": "object",
79
+ "propertyNames": {
80
+ "type": "string",
81
+ "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
82
+ },
83
+ "additionalProperties": {
84
+ "type": "string",
85
+ "minLength": 1
86
+ }
87
+ }
88
+ ]
89
+ },
90
+ "iconRef": {
91
+ "type": "string",
92
+ "minLength": 1,
93
+ "maxLength": 256
94
+ }
95
+ },
96
+ "required": [
97
+ "nodeId",
98
+ "order",
99
+ "kind"
100
+ ],
101
+ "additionalProperties": false
102
+ },
103
+ {
104
+ "type": "object",
105
+ "properties": {
106
+ "nodeId": {
107
+ "type": "string",
108
+ "minLength": 1,
109
+ "maxLength": 256
110
+ },
111
+ "parentNodeId": {
112
+ "type": "string",
113
+ "minLength": 1,
114
+ "maxLength": 256
115
+ },
116
+ "order": {
117
+ "type": "integer",
118
+ "minimum": -1000000,
119
+ "maximum": 1000000
120
+ },
121
+ "kind": {
122
+ "type": "string",
123
+ "const": "divider"
124
+ }
125
+ },
126
+ "required": [
127
+ "nodeId",
128
+ "order",
129
+ "kind"
130
+ ],
131
+ "additionalProperties": false
132
+ },
133
+ {
134
+ "type": "object",
135
+ "properties": {
136
+ "nodeId": {
137
+ "type": "string",
138
+ "minLength": 1,
139
+ "maxLength": 256
140
+ },
141
+ "parentNodeId": {
142
+ "type": "string",
143
+ "minLength": 1,
144
+ "maxLength": 256
145
+ },
146
+ "order": {
147
+ "type": "integer",
148
+ "minimum": -1000000,
149
+ "maximum": 1000000
150
+ },
151
+ "kind": {
152
+ "type": "string",
153
+ "const": "item"
154
+ },
155
+ "label": {
156
+ "anyOf": [
157
+ {
158
+ "type": "string",
159
+ "minLength": 1
160
+ },
161
+ {
162
+ "type": "object",
163
+ "propertyNames": {
164
+ "type": "string",
165
+ "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
166
+ },
167
+ "additionalProperties": {
168
+ "type": "string",
169
+ "minLength": 1
170
+ }
171
+ }
172
+ ]
173
+ },
174
+ "iconRef": {
175
+ "type": "string",
176
+ "minLength": 1,
177
+ "maxLength": 256
178
+ },
179
+ "tone": {
180
+ "type": "string",
181
+ "enum": [
182
+ "default",
183
+ "danger"
184
+ ]
185
+ },
186
+ "requiredPermission": {
187
+ "type": "string",
188
+ "minLength": 1,
189
+ "maxLength": 256
190
+ },
191
+ "behavior": {
192
+ "anyOf": [
193
+ {
194
+ "type": "object",
195
+ "properties": {
196
+ "kind": {
197
+ "type": "string",
198
+ "const": "navigate"
199
+ },
200
+ "page": {
201
+ "type": "object",
202
+ "properties": {
203
+ "applicationId": {
204
+ "type": "string",
205
+ "minLength": 1,
206
+ "maxLength": 256
207
+ },
208
+ "pageId": {
209
+ "type": "string",
210
+ "minLength": 1,
211
+ "maxLength": 256
212
+ }
213
+ },
214
+ "required": [
215
+ "applicationId",
216
+ "pageId"
217
+ ],
218
+ "additionalProperties": false
219
+ },
220
+ "activationId": {
221
+ "type": "string",
222
+ "minLength": 1,
223
+ "maxLength": 256
224
+ },
225
+ "input": {
226
+ "anyOf": [
227
+ {
228
+ "type": "object",
229
+ "properties": {
230
+ "exposure": {
231
+ "type": "string",
232
+ "const": "client"
233
+ },
234
+ "value": {
235
+ "type": "object",
236
+ "propertyNames": {
237
+ "type": "string"
238
+ },
239
+ "additionalProperties": {
240
+ "$ref": "#/$defs/__schema0"
241
+ }
242
+ }
243
+ },
244
+ "required": [
245
+ "exposure",
246
+ "value"
247
+ ],
248
+ "additionalProperties": false
249
+ },
250
+ {
251
+ "type": "object",
252
+ "properties": {
253
+ "exposure": {
254
+ "type": "string",
255
+ "const": "server"
256
+ },
257
+ "value": {
258
+ "type": "object",
259
+ "propertyNames": {
260
+ "type": "string"
261
+ },
262
+ "additionalProperties": {
263
+ "$ref": "#/$defs/__schema0"
264
+ }
265
+ }
266
+ },
267
+ "required": [
268
+ "exposure",
269
+ "value"
270
+ ],
271
+ "additionalProperties": false
272
+ }
273
+ ]
274
+ }
275
+ },
276
+ "required": [
277
+ "kind",
278
+ "page"
279
+ ],
280
+ "additionalProperties": false
281
+ },
282
+ {
283
+ "type": "object",
284
+ "properties": {
285
+ "kind": {
286
+ "type": "string",
287
+ "const": "action"
288
+ },
289
+ "actionRef": {
290
+ "type": "string",
291
+ "minLength": 1,
292
+ "maxLength": 256
293
+ },
294
+ "input": {
295
+ "type": "object",
296
+ "propertyNames": {
297
+ "type": "string"
298
+ },
299
+ "additionalProperties": {
300
+ "$ref": "#/$defs/__schema0"
301
+ }
302
+ }
303
+ },
304
+ "required": [
305
+ "kind",
306
+ "actionRef"
307
+ ],
308
+ "additionalProperties": false
309
+ }
310
+ ]
311
+ }
312
+ },
313
+ "required": [
314
+ "nodeId",
315
+ "order",
316
+ "kind",
317
+ "label",
318
+ "behavior"
319
+ ],
320
+ "additionalProperties": false
321
+ }
322
+ ]
323
+ }
324
+ },
325
+ "contributions": {
326
+ "default": [],
327
+ "maxItems": 1024,
328
+ "type": "array",
329
+ "items": {
330
+ "type": "object",
331
+ "properties": {
332
+ "providerId": {
333
+ "type": "string",
334
+ "minLength": 1,
335
+ "maxLength": 256
336
+ },
337
+ "parentNodeId": {
338
+ "type": "string",
339
+ "minLength": 1,
340
+ "maxLength": 256
341
+ },
342
+ "order": {
343
+ "type": "integer",
344
+ "minimum": -1000000,
345
+ "maximum": 1000000
346
+ }
347
+ },
348
+ "required": [
349
+ "providerId",
350
+ "order"
351
+ ],
352
+ "additionalProperties": false
353
+ }
354
+ }
355
+ },
356
+ "required": [
357
+ "contract",
358
+ "version",
359
+ "applicationId",
360
+ "surface",
361
+ "menuId",
362
+ "nodes",
363
+ "contributions"
364
+ ],
365
+ "additionalProperties": false
366
+ }
367
+ }
368
+ },
369
+ "required": [
370
+ "version",
371
+ "definitions"
372
+ ],
373
+ "additionalProperties": false
374
+ }
375
+ ],
376
+ "$defs": {
377
+ "__schema0": {
378
+ "anyOf": [
379
+ {
380
+ "type": "string"
381
+ },
382
+ {
383
+ "type": "number"
384
+ },
385
+ {
386
+ "type": "boolean"
387
+ },
388
+ {
389
+ "type": "null"
390
+ },
391
+ {
392
+ "type": "array",
393
+ "items": {
394
+ "$ref": "#/$defs/__schema0"
395
+ }
396
+ },
397
+ {
398
+ "type": "object",
399
+ "propertyNames": {
400
+ "type": "string"
401
+ },
402
+ "additionalProperties": {
403
+ "$ref": "#/$defs/__schema0"
404
+ }
405
+ }
406
+ ]
407
+ }
408
+ },
409
+ "$id": "https://schemas.infmonkeys.com/contracts/menu-definition-set.schema.json",
410
+ "title": "menu-definition-set"
411
+ }