@builder-builder/builder 0.0.13 → 0.0.15

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 (96) hide show
  1. package/dist/bb.d.ts +3 -1
  2. package/dist/bb.js +6 -1
  3. package/dist/check.d.ts +2 -2
  4. package/dist/cli.d.ts +2 -0
  5. package/dist/cli.js +53 -0
  6. package/dist/codegen/index.d.ts +7 -0
  7. package/dist/codegen/index.js +212 -0
  8. package/dist/codegen/template.d.ts +5 -0
  9. package/dist/codegen/template.js +17 -0
  10. package/dist/entities/builder/builder.d.ts +11 -1
  11. package/dist/entities/builder/builder.js +22 -6
  12. package/dist/entities/collection/collection.d.ts +7 -1
  13. package/dist/entities/collection/collection.js +9 -2
  14. package/dist/entities/collection/config.d.ts +6 -1
  15. package/dist/entities/collection/config.js +9 -2
  16. package/dist/entities/component/component.d.ts +41 -1
  17. package/dist/entities/component/component.js +9 -2
  18. package/dist/entities/component/details.d.ts +11 -2
  19. package/dist/entities/component/details.js +9 -2
  20. package/dist/entities/component/field.d.ts +10 -1
  21. package/dist/entities/component/field.js +13 -3
  22. package/dist/entities/index.d.ts +7 -3
  23. package/dist/entities/index.js +3 -1
  24. package/dist/entities/kind.d.ts +1 -1
  25. package/dist/entities/model/model.d.ts +5 -1
  26. package/dist/entities/model/model.js +10 -3
  27. package/dist/entities/model/models.js +9 -5
  28. package/dist/entities/option/option.d.ts +41 -1
  29. package/dist/entities/option/option.js +9 -2
  30. package/dist/entities/option/select.d.ts +7 -1
  31. package/dist/entities/option/select.js +17 -6
  32. package/dist/entities/option/toggle.d.ts +7 -1
  33. package/dist/entities/option/toggle.js +16 -4
  34. package/dist/entities/option/values.d.ts +6 -0
  35. package/dist/entities/pricing.d.ts +64 -0
  36. package/dist/entities/pricing.js +48 -0
  37. package/dist/entities/serialise.d.ts +632 -8
  38. package/dist/entities/serialise.js +33 -12
  39. package/dist/entities/tags.d.ts +3 -0
  40. package/dist/entities/tags.js +2 -0
  41. package/dist/entities/ui/describe.d.ts +231 -8
  42. package/dist/entities/ui/describe.js +12 -5
  43. package/dist/entities/ui/index.d.ts +2 -0
  44. package/dist/entities/ui/index.js +1 -0
  45. package/dist/entities/ui/input.d.ts +343 -0
  46. package/dist/entities/ui/input.js +51 -0
  47. package/dist/entities/ui/page.d.ts +231 -8
  48. package/dist/entities/ui/page.js +12 -5
  49. package/dist/entities/ui/pages.d.ts +5 -1
  50. package/dist/entities/ui/pages.js +9 -2
  51. package/dist/entities/ui/ui.d.ts +9 -4
  52. package/dist/entities/ui/ui.js +29 -11
  53. package/dist/entities/validated.d.ts +7 -3
  54. package/dist/exception.d.ts +2 -2
  55. package/dist/index.d.ts +3 -3
  56. package/dist/index.js +1 -1
  57. package/dist/instance.d.ts +9 -0
  58. package/dist/instance.js +3 -1
  59. package/dist/mappers/index.d.ts +6 -4
  60. package/dist/mappers/index.js +3 -2
  61. package/dist/mappers/pricing.d.ts +3 -0
  62. package/dist/mappers/pricing.js +101 -0
  63. package/dist/mappers/render/index.d.ts +1 -1
  64. package/dist/mappers/render/pages.d.ts +8 -0
  65. package/dist/mappers/render/pages.js +2 -1
  66. package/dist/mappers/render/render.js +19 -3
  67. package/dist/mappers/resolve.d.ts +4 -4
  68. package/dist/mappers/variants/index.d.ts +2 -1
  69. package/dist/mappers/variants/index.js +2 -1
  70. package/dist/mappers/variants/variants.d.ts +5 -2
  71. package/dist/mappers/variants/variants.js +2 -2
  72. package/dist/validate/brand.d.ts +0 -7
  73. package/dist/validate/brand.js +5 -5
  74. package/dist/validate/builder.d.ts +2 -1
  75. package/dist/validate/builder.js +19 -13
  76. package/dist/validate/errors.d.ts +138 -0
  77. package/dist/validate/errors.js +148 -0
  78. package/dist/validate/expectations.d.ts +3 -10
  79. package/dist/validate/expectations.js +8 -10
  80. package/dist/validate/index.d.ts +10 -14
  81. package/dist/validate/index.js +5 -7
  82. package/dist/validate/instance.d.ts +2 -15
  83. package/dist/validate/instance.js +41 -40
  84. package/dist/validate/model.d.ts +4 -31
  85. package/dist/validate/model.js +157 -176
  86. package/dist/validate/pricing.d.ts +6 -0
  87. package/dist/validate/pricing.js +71 -0
  88. package/dist/validate/resolve.d.ts +3 -15
  89. package/dist/validate/resolve.js +66 -69
  90. package/dist/validate/result.d.ts +1 -7
  91. package/dist/validate/result.js +1 -4
  92. package/dist/validate/ui.d.ts +4 -4
  93. package/dist/validate/ui.js +80 -62
  94. package/dist/validate/variants.d.ts +2 -53
  95. package/dist/validate/variants.js +83 -86
  96. package/package.json +12 -3
@@ -20,6 +20,7 @@ export declare const entitiesMap: {
20
20
  readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
21
21
  readonly isOptional: v.BooleanSchema<undefined>;
22
22
  readonly optionLabels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
23
+ readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
23
24
  }, undefined>, v.ReadonlyAction<{
24
25
  type: "select";
25
26
  readonly options: readonly [string, ...string[]];
@@ -28,6 +29,7 @@ export declare const entitiesMap: {
28
29
  optionLabels: {
29
30
  [x: string]: string;
30
31
  };
32
+ tags?: readonly string[] | undefined;
31
33
  }>]>;
32
34
  };
33
35
  readonly toggle: {
@@ -37,11 +39,13 @@ export declare const entitiesMap: {
37
39
  readonly valueType: v.PicklistSchema<["string", "boolean", "number"], undefined>;
38
40
  readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
39
41
  readonly isOptional: v.BooleanSchema<undefined>;
42
+ readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
40
43
  }, undefined>, v.ReadonlyAction<{
41
44
  type: "toggle";
42
45
  valueType: "string" | "number" | "boolean";
43
46
  defaultValue: string | number | boolean | null;
44
47
  isOptional: boolean;
48
+ tags?: readonly string[] | undefined;
45
49
  }>]>;
46
50
  };
47
51
  readonly uiPage: {
@@ -63,7 +67,7 @@ export declare const entitiesMap: {
63
67
  type: "ref";
64
68
  id: string;
65
69
  }>]>, v.StringSchema<undefined>], undefined>;
66
- readonly paths: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
70
+ readonly inputs: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
67
71
  readonly type: v.LiteralSchema<"parameter", undefined>;
68
72
  readonly id: v.StringSchema<undefined>;
69
73
  readonly name: v.StringSchema<undefined>;
@@ -77,7 +81,182 @@ export declare const entitiesMap: {
77
81
  }, undefined>, v.ReadonlyAction<{
78
82
  type: "ref";
79
83
  id: string;
80
- }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>], undefined>;
84
+ }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
85
+ readonly type: v.LiteralSchema<"parameter", undefined>;
86
+ readonly id: v.StringSchema<undefined>;
87
+ readonly name: v.StringSchema<undefined>;
88
+ }, undefined>, v.ReadonlyAction<{
89
+ type: "parameter";
90
+ id: string;
91
+ name: string;
92
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
93
+ readonly type: v.LiteralSchema<"ref", undefined>;
94
+ readonly id: v.StringSchema<undefined>;
95
+ }, undefined>, v.ReadonlyAction<{
96
+ type: "ref";
97
+ id: string;
98
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
99
+ readonly type: v.LiteralSchema<"input", undefined>;
100
+ readonly path: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
101
+ readonly type: v.LiteralSchema<"parameter", undefined>;
102
+ readonly id: v.StringSchema<undefined>;
103
+ readonly name: v.StringSchema<undefined>;
104
+ }, undefined>, v.ReadonlyAction<{
105
+ type: "parameter";
106
+ id: string;
107
+ name: string;
108
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
109
+ readonly type: v.LiteralSchema<"ref", undefined>;
110
+ readonly id: v.StringSchema<undefined>;
111
+ }, undefined>, v.ReadonlyAction<{
112
+ type: "ref";
113
+ id: string;
114
+ }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>], undefined>;
115
+ readonly displayName: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
116
+ readonly type: v.LiteralSchema<"parameter", undefined>;
117
+ readonly id: v.StringSchema<undefined>;
118
+ readonly name: v.StringSchema<undefined>;
119
+ }, undefined>, v.ReadonlyAction<{
120
+ type: "parameter";
121
+ id: string;
122
+ name: string;
123
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
124
+ readonly type: v.LiteralSchema<"ref", undefined>;
125
+ readonly id: v.StringSchema<undefined>;
126
+ }, undefined>, v.ReadonlyAction<{
127
+ type: "ref";
128
+ id: string;
129
+ }>]>, v.StringSchema<undefined>], undefined>, undefined>;
130
+ readonly kind: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
131
+ readonly type: v.LiteralSchema<"parameter", undefined>;
132
+ readonly id: v.StringSchema<undefined>;
133
+ readonly name: v.StringSchema<undefined>;
134
+ }, undefined>, v.ReadonlyAction<{
135
+ type: "parameter";
136
+ id: string;
137
+ name: string;
138
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
139
+ readonly type: v.LiteralSchema<"ref", undefined>;
140
+ readonly id: v.StringSchema<undefined>;
141
+ }, undefined>, v.ReadonlyAction<{
142
+ type: "ref";
143
+ id: string;
144
+ }>]>, v.StringSchema<undefined>], undefined>, undefined>;
145
+ readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
146
+ readonly type: v.LiteralSchema<"parameter", undefined>;
147
+ readonly id: v.StringSchema<undefined>;
148
+ readonly name: v.StringSchema<undefined>;
149
+ }, undefined>, v.ReadonlyAction<{
150
+ type: "parameter";
151
+ id: string;
152
+ name: string;
153
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
154
+ readonly type: v.LiteralSchema<"ref", undefined>;
155
+ readonly id: v.StringSchema<undefined>;
156
+ }, undefined>, v.ReadonlyAction<{
157
+ type: "ref";
158
+ id: string;
159
+ }>]>, v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
160
+ readonly type: v.LiteralSchema<"parameter", undefined>;
161
+ readonly id: v.StringSchema<undefined>;
162
+ readonly name: v.StringSchema<undefined>;
163
+ }, undefined>, v.ReadonlyAction<{
164
+ type: "parameter";
165
+ id: string;
166
+ name: string;
167
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
168
+ readonly type: v.LiteralSchema<"ref", undefined>;
169
+ readonly id: v.StringSchema<undefined>;
170
+ }, undefined>, v.ReadonlyAction<{
171
+ type: "ref";
172
+ id: string;
173
+ }>]>, v.UnknownSchema], undefined>, undefined>, v.ReadonlyAction<{
174
+ [x: string]: unknown;
175
+ }>]>], undefined>, undefined>;
176
+ readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
177
+ }, undefined>, v.ReadonlyAction<{
178
+ type: "input";
179
+ path: readonly (string | number)[] | Readonly<{
180
+ type: "parameter";
181
+ id: string;
182
+ name: string;
183
+ }> | Readonly<{
184
+ type: "ref";
185
+ id: string;
186
+ }>;
187
+ displayName?: string | Readonly<{
188
+ type: "parameter";
189
+ id: string;
190
+ name: string;
191
+ }> | Readonly<{
192
+ type: "ref";
193
+ id: string;
194
+ }> | undefined;
195
+ kind?: string | Readonly<{
196
+ type: "parameter";
197
+ id: string;
198
+ name: string;
199
+ }> | Readonly<{
200
+ type: "ref";
201
+ id: string;
202
+ }> | undefined;
203
+ metadata?: Readonly<{
204
+ type: "parameter";
205
+ id: string;
206
+ name: string;
207
+ }> | Readonly<{
208
+ type: "ref";
209
+ id: string;
210
+ }> | Readonly<{
211
+ [x: string]: unknown;
212
+ }> | undefined;
213
+ tags?: readonly string[] | undefined;
214
+ }>]>], undefined>, undefined>, v.ReadonlyAction<(Readonly<{
215
+ type: "parameter";
216
+ id: string;
217
+ name: string;
218
+ }> | Readonly<{
219
+ type: "ref";
220
+ id: string;
221
+ }> | Readonly<{
222
+ type: "input";
223
+ path: readonly (string | number)[] | Readonly<{
224
+ type: "parameter";
225
+ id: string;
226
+ name: string;
227
+ }> | Readonly<{
228
+ type: "ref";
229
+ id: string;
230
+ }>;
231
+ displayName?: string | Readonly<{
232
+ type: "parameter";
233
+ id: string;
234
+ name: string;
235
+ }> | Readonly<{
236
+ type: "ref";
237
+ id: string;
238
+ }> | undefined;
239
+ kind?: string | Readonly<{
240
+ type: "parameter";
241
+ id: string;
242
+ name: string;
243
+ }> | Readonly<{
244
+ type: "ref";
245
+ id: string;
246
+ }> | undefined;
247
+ metadata?: Readonly<{
248
+ type: "parameter";
249
+ id: string;
250
+ name: string;
251
+ }> | Readonly<{
252
+ type: "ref";
253
+ id: string;
254
+ }> | Readonly<{
255
+ [x: string]: unknown;
256
+ }> | undefined;
257
+ tags?: readonly string[] | undefined;
258
+ }>)[]>]>], undefined>;
259
+ readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
81
260
  }, undefined>, v.ReadonlyAction<{
82
261
  type: "page";
83
262
  label: string | Readonly<{
@@ -88,14 +267,59 @@ export declare const entitiesMap: {
88
267
  type: "ref";
89
268
  id: string;
90
269
  }>;
91
- paths: readonly (readonly (string | number)[])[] | Readonly<{
270
+ inputs: Readonly<{
92
271
  type: "parameter";
93
272
  id: string;
94
273
  name: string;
95
274
  }> | Readonly<{
96
275
  type: "ref";
97
276
  id: string;
98
- }>;
277
+ }> | readonly (Readonly<{
278
+ type: "parameter";
279
+ id: string;
280
+ name: string;
281
+ }> | Readonly<{
282
+ type: "ref";
283
+ id: string;
284
+ }> | Readonly<{
285
+ type: "input";
286
+ path: readonly (string | number)[] | Readonly<{
287
+ type: "parameter";
288
+ id: string;
289
+ name: string;
290
+ }> | Readonly<{
291
+ type: "ref";
292
+ id: string;
293
+ }>;
294
+ displayName?: string | Readonly<{
295
+ type: "parameter";
296
+ id: string;
297
+ name: string;
298
+ }> | Readonly<{
299
+ type: "ref";
300
+ id: string;
301
+ }> | undefined;
302
+ kind?: string | Readonly<{
303
+ type: "parameter";
304
+ id: string;
305
+ name: string;
306
+ }> | Readonly<{
307
+ type: "ref";
308
+ id: string;
309
+ }> | undefined;
310
+ metadata?: Readonly<{
311
+ type: "parameter";
312
+ id: string;
313
+ name: string;
314
+ }> | Readonly<{
315
+ type: "ref";
316
+ id: string;
317
+ }> | Readonly<{
318
+ [x: string]: unknown;
319
+ }> | undefined;
320
+ tags?: readonly string[] | undefined;
321
+ }>)[];
322
+ tags?: readonly string[] | undefined;
99
323
  }>]>;
100
324
  };
101
325
  readonly uiDescribe: {
@@ -117,7 +341,21 @@ export declare const entitiesMap: {
117
341
  type: "ref";
118
342
  id: string;
119
343
  }>]>, v.StringSchema<undefined>], undefined>;
120
- readonly paths: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
344
+ readonly inputs: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
345
+ readonly type: v.LiteralSchema<"parameter", undefined>;
346
+ readonly id: v.StringSchema<undefined>;
347
+ readonly name: v.StringSchema<undefined>;
348
+ }, undefined>, v.ReadonlyAction<{
349
+ type: "parameter";
350
+ id: string;
351
+ name: string;
352
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
353
+ readonly type: v.LiteralSchema<"ref", undefined>;
354
+ readonly id: v.StringSchema<undefined>;
355
+ }, undefined>, v.ReadonlyAction<{
356
+ type: "ref";
357
+ id: string;
358
+ }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
121
359
  readonly type: v.LiteralSchema<"parameter", undefined>;
122
360
  readonly id: v.StringSchema<undefined>;
123
361
  readonly name: v.StringSchema<undefined>;
@@ -131,7 +369,168 @@ export declare const entitiesMap: {
131
369
  }, undefined>, v.ReadonlyAction<{
132
370
  type: "ref";
133
371
  id: string;
134
- }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>], undefined>;
372
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
373
+ readonly type: v.LiteralSchema<"input", undefined>;
374
+ readonly path: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
375
+ readonly type: v.LiteralSchema<"parameter", undefined>;
376
+ readonly id: v.StringSchema<undefined>;
377
+ readonly name: v.StringSchema<undefined>;
378
+ }, undefined>, v.ReadonlyAction<{
379
+ type: "parameter";
380
+ id: string;
381
+ name: string;
382
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
383
+ readonly type: v.LiteralSchema<"ref", undefined>;
384
+ readonly id: v.StringSchema<undefined>;
385
+ }, undefined>, v.ReadonlyAction<{
386
+ type: "ref";
387
+ id: string;
388
+ }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>], undefined>;
389
+ readonly displayName: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
390
+ readonly type: v.LiteralSchema<"parameter", undefined>;
391
+ readonly id: v.StringSchema<undefined>;
392
+ readonly name: v.StringSchema<undefined>;
393
+ }, undefined>, v.ReadonlyAction<{
394
+ type: "parameter";
395
+ id: string;
396
+ name: string;
397
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
398
+ readonly type: v.LiteralSchema<"ref", undefined>;
399
+ readonly id: v.StringSchema<undefined>;
400
+ }, undefined>, v.ReadonlyAction<{
401
+ type: "ref";
402
+ id: string;
403
+ }>]>, v.StringSchema<undefined>], undefined>, undefined>;
404
+ readonly kind: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
405
+ readonly type: v.LiteralSchema<"parameter", undefined>;
406
+ readonly id: v.StringSchema<undefined>;
407
+ readonly name: v.StringSchema<undefined>;
408
+ }, undefined>, v.ReadonlyAction<{
409
+ type: "parameter";
410
+ id: string;
411
+ name: string;
412
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
413
+ readonly type: v.LiteralSchema<"ref", undefined>;
414
+ readonly id: v.StringSchema<undefined>;
415
+ }, undefined>, v.ReadonlyAction<{
416
+ type: "ref";
417
+ id: string;
418
+ }>]>, v.StringSchema<undefined>], undefined>, undefined>;
419
+ readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
420
+ readonly type: v.LiteralSchema<"parameter", undefined>;
421
+ readonly id: v.StringSchema<undefined>;
422
+ readonly name: v.StringSchema<undefined>;
423
+ }, undefined>, v.ReadonlyAction<{
424
+ type: "parameter";
425
+ id: string;
426
+ name: string;
427
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
428
+ readonly type: v.LiteralSchema<"ref", undefined>;
429
+ readonly id: v.StringSchema<undefined>;
430
+ }, undefined>, v.ReadonlyAction<{
431
+ type: "ref";
432
+ id: string;
433
+ }>]>, v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
434
+ readonly type: v.LiteralSchema<"parameter", undefined>;
435
+ readonly id: v.StringSchema<undefined>;
436
+ readonly name: v.StringSchema<undefined>;
437
+ }, undefined>, v.ReadonlyAction<{
438
+ type: "parameter";
439
+ id: string;
440
+ name: string;
441
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
442
+ readonly type: v.LiteralSchema<"ref", undefined>;
443
+ readonly id: v.StringSchema<undefined>;
444
+ }, undefined>, v.ReadonlyAction<{
445
+ type: "ref";
446
+ id: string;
447
+ }>]>, v.UnknownSchema], undefined>, undefined>, v.ReadonlyAction<{
448
+ [x: string]: unknown;
449
+ }>]>], undefined>, undefined>;
450
+ readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
451
+ }, undefined>, v.ReadonlyAction<{
452
+ type: "input";
453
+ path: readonly (string | number)[] | Readonly<{
454
+ type: "parameter";
455
+ id: string;
456
+ name: string;
457
+ }> | Readonly<{
458
+ type: "ref";
459
+ id: string;
460
+ }>;
461
+ displayName?: string | Readonly<{
462
+ type: "parameter";
463
+ id: string;
464
+ name: string;
465
+ }> | Readonly<{
466
+ type: "ref";
467
+ id: string;
468
+ }> | undefined;
469
+ kind?: string | Readonly<{
470
+ type: "parameter";
471
+ id: string;
472
+ name: string;
473
+ }> | Readonly<{
474
+ type: "ref";
475
+ id: string;
476
+ }> | undefined;
477
+ metadata?: Readonly<{
478
+ type: "parameter";
479
+ id: string;
480
+ name: string;
481
+ }> | Readonly<{
482
+ type: "ref";
483
+ id: string;
484
+ }> | Readonly<{
485
+ [x: string]: unknown;
486
+ }> | undefined;
487
+ tags?: readonly string[] | undefined;
488
+ }>]>], undefined>, undefined>, v.ReadonlyAction<(Readonly<{
489
+ type: "parameter";
490
+ id: string;
491
+ name: string;
492
+ }> | Readonly<{
493
+ type: "ref";
494
+ id: string;
495
+ }> | Readonly<{
496
+ type: "input";
497
+ path: readonly (string | number)[] | Readonly<{
498
+ type: "parameter";
499
+ id: string;
500
+ name: string;
501
+ }> | Readonly<{
502
+ type: "ref";
503
+ id: string;
504
+ }>;
505
+ displayName?: string | Readonly<{
506
+ type: "parameter";
507
+ id: string;
508
+ name: string;
509
+ }> | Readonly<{
510
+ type: "ref";
511
+ id: string;
512
+ }> | undefined;
513
+ kind?: string | Readonly<{
514
+ type: "parameter";
515
+ id: string;
516
+ name: string;
517
+ }> | Readonly<{
518
+ type: "ref";
519
+ id: string;
520
+ }> | undefined;
521
+ metadata?: Readonly<{
522
+ type: "parameter";
523
+ id: string;
524
+ name: string;
525
+ }> | Readonly<{
526
+ type: "ref";
527
+ id: string;
528
+ }> | Readonly<{
529
+ [x: string]: unknown;
530
+ }> | undefined;
531
+ tags?: readonly string[] | undefined;
532
+ }>)[]>]>], undefined>;
533
+ readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
135
534
  }, undefined>, v.ReadonlyAction<{
136
535
  type: "describe";
137
536
  label: string | Readonly<{
@@ -142,20 +541,217 @@ export declare const entitiesMap: {
142
541
  type: "ref";
143
542
  id: string;
144
543
  }>;
145
- paths: readonly (readonly (string | number)[])[] | Readonly<{
544
+ inputs: Readonly<{
146
545
  type: "parameter";
147
546
  id: string;
148
547
  name: string;
149
548
  }> | Readonly<{
150
549
  type: "ref";
151
550
  id: string;
152
- }>;
551
+ }> | readonly (Readonly<{
552
+ type: "parameter";
553
+ id: string;
554
+ name: string;
555
+ }> | Readonly<{
556
+ type: "ref";
557
+ id: string;
558
+ }> | Readonly<{
559
+ type: "input";
560
+ path: readonly (string | number)[] | Readonly<{
561
+ type: "parameter";
562
+ id: string;
563
+ name: string;
564
+ }> | Readonly<{
565
+ type: "ref";
566
+ id: string;
567
+ }>;
568
+ displayName?: string | Readonly<{
569
+ type: "parameter";
570
+ id: string;
571
+ name: string;
572
+ }> | Readonly<{
573
+ type: "ref";
574
+ id: string;
575
+ }> | undefined;
576
+ kind?: string | Readonly<{
577
+ type: "parameter";
578
+ id: string;
579
+ name: string;
580
+ }> | Readonly<{
581
+ type: "ref";
582
+ id: string;
583
+ }> | undefined;
584
+ metadata?: Readonly<{
585
+ type: "parameter";
586
+ id: string;
587
+ name: string;
588
+ }> | Readonly<{
589
+ type: "ref";
590
+ id: string;
591
+ }> | Readonly<{
592
+ [x: string]: unknown;
593
+ }> | undefined;
594
+ tags?: readonly string[] | undefined;
595
+ }>)[];
596
+ tags?: readonly string[] | undefined;
153
597
  }>]>;
154
598
  };
155
599
  readonly uiPages: {
156
600
  readonly runtime: v.InstanceSchema<typeof import("./index.js").BuilderUIPages, undefined>;
157
601
  readonly serialised: v.GenericSchema<import("./index.js").BuilderUIPagesSerialised>;
158
602
  };
603
+ readonly uiInput: {
604
+ readonly runtime: v.InstanceSchema<typeof import("./index.js").BuilderUIInput, undefined>;
605
+ readonly serialised: v.SchemaWithPipe<readonly [v.ObjectSchema<{
606
+ readonly type: v.LiteralSchema<"input", undefined>;
607
+ readonly path: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
608
+ readonly type: v.LiteralSchema<"parameter", undefined>;
609
+ readonly id: v.StringSchema<undefined>;
610
+ readonly name: v.StringSchema<undefined>;
611
+ }, undefined>, v.ReadonlyAction<{
612
+ type: "parameter";
613
+ id: string;
614
+ name: string;
615
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
616
+ readonly type: v.LiteralSchema<"ref", undefined>;
617
+ readonly id: v.StringSchema<undefined>;
618
+ }, undefined>, v.ReadonlyAction<{
619
+ type: "ref";
620
+ id: string;
621
+ }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>], undefined>;
622
+ readonly displayName: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
623
+ readonly type: v.LiteralSchema<"parameter", undefined>;
624
+ readonly id: v.StringSchema<undefined>;
625
+ readonly name: v.StringSchema<undefined>;
626
+ }, undefined>, v.ReadonlyAction<{
627
+ type: "parameter";
628
+ id: string;
629
+ name: string;
630
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
631
+ readonly type: v.LiteralSchema<"ref", undefined>;
632
+ readonly id: v.StringSchema<undefined>;
633
+ }, undefined>, v.ReadonlyAction<{
634
+ type: "ref";
635
+ id: string;
636
+ }>]>, v.StringSchema<undefined>], undefined>, undefined>;
637
+ readonly kind: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
638
+ readonly type: v.LiteralSchema<"parameter", undefined>;
639
+ readonly id: v.StringSchema<undefined>;
640
+ readonly name: v.StringSchema<undefined>;
641
+ }, undefined>, v.ReadonlyAction<{
642
+ type: "parameter";
643
+ id: string;
644
+ name: string;
645
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
646
+ readonly type: v.LiteralSchema<"ref", undefined>;
647
+ readonly id: v.StringSchema<undefined>;
648
+ }, undefined>, v.ReadonlyAction<{
649
+ type: "ref";
650
+ id: string;
651
+ }>]>, v.StringSchema<undefined>], undefined>, undefined>;
652
+ readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
653
+ readonly type: v.LiteralSchema<"parameter", undefined>;
654
+ readonly id: v.StringSchema<undefined>;
655
+ readonly name: v.StringSchema<undefined>;
656
+ }, undefined>, v.ReadonlyAction<{
657
+ type: "parameter";
658
+ id: string;
659
+ name: string;
660
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
661
+ readonly type: v.LiteralSchema<"ref", undefined>;
662
+ readonly id: v.StringSchema<undefined>;
663
+ }, undefined>, v.ReadonlyAction<{
664
+ type: "ref";
665
+ id: string;
666
+ }>]>, v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
667
+ readonly type: v.LiteralSchema<"parameter", undefined>;
668
+ readonly id: v.StringSchema<undefined>;
669
+ readonly name: v.StringSchema<undefined>;
670
+ }, undefined>, v.ReadonlyAction<{
671
+ type: "parameter";
672
+ id: string;
673
+ name: string;
674
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
675
+ readonly type: v.LiteralSchema<"ref", undefined>;
676
+ readonly id: v.StringSchema<undefined>;
677
+ }, undefined>, v.ReadonlyAction<{
678
+ type: "ref";
679
+ id: string;
680
+ }>]>, v.UnknownSchema], undefined>, undefined>, v.ReadonlyAction<{
681
+ [x: string]: unknown;
682
+ }>]>], undefined>, undefined>;
683
+ readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
684
+ }, undefined>, v.ReadonlyAction<{
685
+ type: "input";
686
+ path: readonly (string | number)[] | Readonly<{
687
+ type: "parameter";
688
+ id: string;
689
+ name: string;
690
+ }> | Readonly<{
691
+ type: "ref";
692
+ id: string;
693
+ }>;
694
+ displayName?: string | Readonly<{
695
+ type: "parameter";
696
+ id: string;
697
+ name: string;
698
+ }> | Readonly<{
699
+ type: "ref";
700
+ id: string;
701
+ }> | undefined;
702
+ kind?: string | Readonly<{
703
+ type: "parameter";
704
+ id: string;
705
+ name: string;
706
+ }> | Readonly<{
707
+ type: "ref";
708
+ id: string;
709
+ }> | undefined;
710
+ metadata?: Readonly<{
711
+ type: "parameter";
712
+ id: string;
713
+ name: string;
714
+ }> | Readonly<{
715
+ type: "ref";
716
+ id: string;
717
+ }> | Readonly<{
718
+ [x: string]: unknown;
719
+ }> | undefined;
720
+ tags?: readonly string[] | undefined;
721
+ }>]>;
722
+ };
723
+ readonly pricing: {
724
+ readonly runtime: v.SchemaWithPipe<readonly [v.ObjectSchema<{
725
+ readonly rates: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>, v.ReadonlyAction<{
726
+ [x: string]: {
727
+ [x: string]: number;
728
+ };
729
+ }>]>;
730
+ readonly formula: v.GenericSchema<import("./pricing.js").BuilderPricingExpression>;
731
+ }, undefined>, v.ReadonlyAction<{
732
+ readonly rates: Readonly<{
733
+ [x: string]: {
734
+ [x: string]: number;
735
+ };
736
+ }>;
737
+ formula: import("./pricing.js").BuilderPricingExpression;
738
+ }>]>;
739
+ readonly serialised: v.SchemaWithPipe<readonly [v.ObjectSchema<{
740
+ readonly rates: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>, v.ReadonlyAction<{
741
+ [x: string]: {
742
+ [x: string]: number;
743
+ };
744
+ }>]>;
745
+ readonly formula: v.GenericSchema<import("./pricing.js").BuilderPricingExpression>;
746
+ }, undefined>, v.ReadonlyAction<{
747
+ readonly rates: Readonly<{
748
+ [x: string]: {
749
+ [x: string]: number;
750
+ };
751
+ }>;
752
+ formula: import("./pricing.js").BuilderPricingExpression;
753
+ }>]>;
754
+ };
159
755
  readonly componentDetails: {
160
756
  readonly runtime: v.InstanceSchema<typeof import("./index.js").BuilderComponentDetails, undefined>;
161
757
  readonly serialised: v.SchemaWithPipe<readonly [v.ObjectSchema<{
@@ -178,17 +774,21 @@ export declare const entitiesMap: {
178
774
  readonly name: v.StringSchema<undefined>;
179
775
  readonly valueType: v.PicklistSchema<["string", "boolean", "number"], undefined>;
180
776
  readonly isOptional: v.BooleanSchema<undefined>;
777
+ readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
181
778
  }, undefined>, v.ReadonlyAction<{
182
779
  type: "component-field";
183
780
  name: string;
184
781
  valueType: "string" | "number" | "boolean";
185
782
  isOptional: boolean;
783
+ tags?: readonly string[] | undefined;
186
784
  }>]>, undefined>, v.ReadonlyAction<Readonly<{
187
785
  type: "component-field";
188
786
  name: string;
189
787
  valueType: "string" | "number" | "boolean";
190
788
  isOptional: boolean;
789
+ tags?: readonly string[] | undefined;
191
790
  }>[]>]>], undefined>;
791
+ readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
192
792
  }, undefined>, v.ReadonlyAction<{
193
793
  fields: Readonly<{
194
794
  type: "parameter";
@@ -202,7 +802,9 @@ export declare const entitiesMap: {
202
802
  name: string;
203
803
  valueType: "string" | "number" | "boolean";
204
804
  isOptional: boolean;
805
+ tags?: readonly string[] | undefined;
205
806
  }>[];
807
+ tags?: readonly string[] | undefined;
206
808
  }>]>;
207
809
  };
208
810
  readonly collectionConfig: {
@@ -253,6 +855,7 @@ export declare const entitiesMap: {
253
855
  type: "ref";
254
856
  id: string;
255
857
  }>]>, v.NumberSchema<undefined>], undefined>;
858
+ readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
256
859
  }, undefined>, v.ReadonlyAction<{
257
860
  model: Readonly<{
258
861
  type: "parameter";
@@ -278,6 +881,7 @@ export declare const entitiesMap: {
278
881
  type: "ref";
279
882
  id: string;
280
883
  }>;
884
+ tags?: readonly string[] | undefined;
281
885
  }>]>;
282
886
  };
283
887
  readonly expectations: {
@@ -348,11 +952,13 @@ export declare const entitiesMap: {
348
952
  optionLabels: {
349
953
  [x: string]: string;
350
954
  };
955
+ tags?: readonly string[] | undefined;
351
956
  }>> | Readonly<Readonly<{
352
957
  type: "toggle";
353
958
  valueType: "string" | "number" | "boolean";
354
959
  defaultValue: string | number | boolean | null;
355
960
  isOptional: boolean;
961
+ tags?: readonly string[] | undefined;
356
962
  }>>>>;
357
963
  readonly serialised: v.GenericSchema<import("./when.js").BuilderWhenSerialised<Readonly<Readonly<{
358
964
  type: "select";
@@ -362,11 +968,13 @@ export declare const entitiesMap: {
362
968
  optionLabels: {
363
969
  [x: string]: string;
364
970
  };
971
+ tags?: readonly string[] | undefined;
365
972
  }>> | Readonly<Readonly<{
366
973
  type: "toggle";
367
974
  valueType: "string" | "number" | "boolean";
368
975
  defaultValue: string | number | boolean | null;
369
976
  isOptional: boolean;
977
+ tags?: readonly string[] | undefined;
370
978
  }>>>>;
371
979
  };
372
980
  readonly componentWhen: {
@@ -383,7 +991,9 @@ export declare const entitiesMap: {
383
991
  name: string;
384
992
  valueType: "string" | "number" | "boolean";
385
993
  isOptional: boolean;
994
+ tags?: readonly string[] | undefined;
386
995
  }>[];
996
+ tags?: readonly string[] | undefined;
387
997
  }>>>;
388
998
  readonly serialised: v.GenericSchema<import("./when.js").BuilderWhenSerialised<Readonly<{
389
999
  fields: Readonly<{
@@ -398,7 +1008,9 @@ export declare const entitiesMap: {
398
1008
  name: string;
399
1009
  valueType: "string" | "number" | "boolean";
400
1010
  isOptional: boolean;
1011
+ tags?: readonly string[] | undefined;
401
1012
  }>[];
1013
+ tags?: readonly string[] | undefined;
402
1014
  }>>>;
403
1015
  };
404
1016
  readonly collectionWhen: {
@@ -427,6 +1039,7 @@ export declare const entitiesMap: {
427
1039
  type: "ref";
428
1040
  id: string;
429
1041
  }>;
1042
+ tags?: readonly string[] | undefined;
430
1043
  }>>>;
431
1044
  readonly serialised: v.GenericSchema<import("./when.js").BuilderWhenSerialised<Readonly<{
432
1045
  model: Readonly<{
@@ -453,6 +1066,7 @@ export declare const entitiesMap: {
453
1066
  type: "ref";
454
1067
  id: string;
455
1068
  }>;
1069
+ tags?: readonly string[] | undefined;
456
1070
  }>>>;
457
1071
  };
458
1072
  readonly optionSelectMap: {
@@ -468,11 +1082,13 @@ export declare const entitiesMap: {
468
1082
  optionLabels: {
469
1083
  [x: string]: string;
470
1084
  };
1085
+ tags?: readonly string[] | undefined;
471
1086
  }>> | Readonly<Readonly<{
472
1087
  type: "toggle";
473
1088
  valueType: "string" | "number" | "boolean";
474
1089
  defaultValue: string | number | boolean | null;
475
1090
  isOptional: boolean;
1091
+ tags?: readonly string[] | undefined;
476
1092
  }>>>>;
477
1093
  readonly serialised: v.GenericSchema<import("./when.js").BuilderMatchSelectMap<Readonly<{
478
1094
  type: "parameter";
@@ -486,11 +1102,13 @@ export declare const entitiesMap: {
486
1102
  optionLabels: {
487
1103
  [x: string]: string;
488
1104
  };
1105
+ tags?: readonly string[] | undefined;
489
1106
  }>> | Readonly<Readonly<{
490
1107
  type: "toggle";
491
1108
  valueType: "string" | "number" | "boolean";
492
1109
  defaultValue: string | number | boolean | null;
493
1110
  isOptional: boolean;
1111
+ tags?: readonly string[] | undefined;
494
1112
  }>>>>;
495
1113
  };
496
1114
  readonly componentSelectMap: {
@@ -511,7 +1129,9 @@ export declare const entitiesMap: {
511
1129
  name: string;
512
1130
  valueType: "string" | "number" | "boolean";
513
1131
  isOptional: boolean;
1132
+ tags?: readonly string[] | undefined;
514
1133
  }>[];
1134
+ tags?: readonly string[] | undefined;
515
1135
  }>>>;
516
1136
  readonly serialised: v.GenericSchema<import("./when.js").BuilderMatchSelectMap<Readonly<{
517
1137
  type: "parameter";
@@ -530,7 +1150,9 @@ export declare const entitiesMap: {
530
1150
  name: string;
531
1151
  valueType: "string" | "number" | "boolean";
532
1152
  isOptional: boolean;
1153
+ tags?: readonly string[] | undefined;
533
1154
  }>[];
1155
+ tags?: readonly string[] | undefined;
534
1156
  }>>>;
535
1157
  };
536
1158
  readonly collectionSelectMap: {
@@ -563,6 +1185,7 @@ export declare const entitiesMap: {
563
1185
  type: "ref";
564
1186
  id: string;
565
1187
  }>;
1188
+ tags?: readonly string[] | undefined;
566
1189
  }>>>;
567
1190
  readonly serialised: v.GenericSchema<import("./when.js").BuilderMatchSelectMap<Readonly<{
568
1191
  type: "parameter";
@@ -593,6 +1216,7 @@ export declare const entitiesMap: {
593
1216
  type: "ref";
594
1217
  id: string;
595
1218
  }>;
1219
+ tags?: readonly string[] | undefined;
596
1220
  }>>>;
597
1221
  };
598
1222
  readonly paths: {