@builder-builder/builder 0.0.20 → 0.0.22

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 (125) hide show
  1. package/README.md +33 -24
  2. package/dist/bb.d.ts +10 -11
  3. package/dist/bb.js +25 -2
  4. package/dist/client/client.d.ts +7 -0
  5. package/dist/client/client.js +19 -0
  6. package/dist/client/index.d.ts +4 -0
  7. package/dist/client/index.js +2 -0
  8. package/dist/client/schema.d.ts +396 -0
  9. package/dist/client/schema.js +13 -0
  10. package/dist/entities/builder/bind.d.ts +1 -1
  11. package/dist/entities/builder/builder.js +1 -1
  12. package/dist/entities/collection/collection.d.ts +689 -1
  13. package/dist/entities/collection/collection.js +5 -2
  14. package/dist/entities/collection/config.d.ts +189 -0
  15. package/dist/entities/collection/config.js +12 -2
  16. package/dist/entities/collection/expectation.d.ts +1 -1
  17. package/dist/entities/collection/index.d.ts +2 -2
  18. package/dist/entities/collection/index.js +2 -2
  19. package/dist/entities/collection/when.d.ts +1 -1
  20. package/dist/entities/component/component.d.ts +61 -7
  21. package/dist/entities/component/component.js +5 -2
  22. package/dist/entities/component/config.d.ts +10 -0
  23. package/dist/entities/component/config.js +19 -2
  24. package/dist/entities/component/field.js +1 -1
  25. package/dist/entities/component/index.d.ts +2 -2
  26. package/dist/entities/component/index.js +2 -2
  27. package/dist/entities/component/when.d.ts +1 -1
  28. package/dist/entities/expectation.d.ts +4 -0
  29. package/dist/entities/expectation.js +3 -1
  30. package/dist/entities/index.d.ts +15 -13
  31. package/dist/entities/index.js +11 -10
  32. package/dist/entities/kind.d.ts +10 -7
  33. package/dist/entities/kind.js +39 -5
  34. package/dist/entities/model/bind.d.ts +1 -1
  35. package/dist/entities/model/methods.d.ts +4 -4
  36. package/dist/entities/model/model.js +1 -1
  37. package/dist/entities/option/index.d.ts +3 -3
  38. package/dist/entities/option/index.js +3 -3
  39. package/dist/entities/option/option.d.ts +85 -7
  40. package/dist/entities/option/option.js +5 -2
  41. package/dist/entities/option/select.d.ts +10 -0
  42. package/dist/entities/option/select.js +12 -1
  43. package/dist/entities/option/toggle.d.ts +7 -0
  44. package/dist/entities/option/toggle.js +12 -1
  45. package/dist/entities/option/when.d.ts +1 -1
  46. package/dist/{paths.d.ts → entities/paths.d.ts} +2 -0
  47. package/dist/{paths.js → entities/paths.js} +3 -0
  48. package/dist/entities/pricing/index.d.ts +1 -1
  49. package/dist/entities/pricing/index.js +1 -1
  50. package/dist/entities/pricing/pricing.js +1 -1
  51. package/dist/entities/pricing/rates.d.ts +5 -0
  52. package/dist/entities/pricing/rates.js +3 -1
  53. package/dist/entities/references.d.ts +723 -6
  54. package/dist/entities/references.js +7 -1
  55. package/dist/entities/serialise.d.ts +48 -42
  56. package/dist/entities/serialise.js +9 -3
  57. package/dist/entities/ui/describe.d.ts +15 -0
  58. package/dist/entities/ui/describe.js +11 -2
  59. package/dist/entities/ui/index.d.ts +4 -4
  60. package/dist/entities/ui/index.js +4 -4
  61. package/dist/entities/ui/input.d.ts +11 -1
  62. package/dist/entities/ui/input.js +4 -2
  63. package/dist/entities/ui/page.d.ts +15 -0
  64. package/dist/entities/ui/page.js +11 -2
  65. package/dist/entities/ui/pages.d.ts +132 -0
  66. package/dist/entities/ui/pages.js +12 -2
  67. package/dist/entities/ui/ui.d.ts +1 -1
  68. package/dist/entities/ui/ui.js +2 -2
  69. package/dist/entities/ui/uis.js +1 -1
  70. package/dist/entities/validated.d.ts +26 -18
  71. package/dist/entities/when.d.ts +4 -3
  72. package/dist/entities/when.js +22 -2
  73. package/dist/environment.d.ts +2 -2
  74. package/dist/{validate → errors}/errors.d.ts +57 -35
  75. package/dist/{validate → errors}/errors.js +40 -5
  76. package/dist/errors/exception.d.ts +5 -0
  77. package/dist/{exception.js → errors/exception.js} +0 -3
  78. package/dist/errors/index.d.ts +4 -0
  79. package/dist/errors/index.js +3 -0
  80. package/dist/index.d.ts +14 -14
  81. package/dist/index.js +3 -2
  82. package/dist/instance.d.ts +7 -7
  83. package/dist/instance.js +4 -4
  84. package/dist/mappers/instance.js +1 -1
  85. package/dist/mappers/order.d.ts +4 -4
  86. package/dist/mappers/order.js +1 -1
  87. package/dist/mappers/price.js +18 -18
  88. package/dist/mappers/render/render.js +1 -1
  89. package/dist/mappers/resolve.d.ts +1 -2
  90. package/dist/mappers/resolve.js +3 -20
  91. package/dist/mappers/variants/option-graph.d.ts +1 -2
  92. package/dist/mappers/variants/option-graph.js +2 -3
  93. package/dist/mappers/variants/variants.d.ts +2 -2
  94. package/dist/mappers/variants/variants.js +1 -1
  95. package/dist/private.d.ts +1 -2
  96. package/dist/private.js +1 -2
  97. package/dist/references.js +1 -1
  98. package/dist/validate/brand.js +1 -2
  99. package/dist/validate/builder.d.ts +2 -3
  100. package/dist/validate/builder.js +2 -3
  101. package/dist/validate/expectations.d.ts +1 -1
  102. package/dist/validate/index.d.ts +4 -2
  103. package/dist/validate/index.js +1 -0
  104. package/dist/validate/instance.d.ts +2 -3
  105. package/dist/validate/instance.js +1 -2
  106. package/dist/validate/model.d.ts +2 -3
  107. package/dist/validate/model.js +39 -44
  108. package/dist/validate/paths.d.ts +2 -3
  109. package/dist/validate/paths.js +1 -1
  110. package/dist/validate/pricing.d.ts +2 -3
  111. package/dist/validate/pricing.js +2 -3
  112. package/dist/validate/resolve.d.ts +1 -1
  113. package/dist/validate/resolve.js +1 -1
  114. package/dist/validate/ui.d.ts +2 -3
  115. package/dist/validate/ui.js +13 -4
  116. package/dist/validate/variants.d.ts +4 -5
  117. package/dist/validate/variants.js +4 -5
  118. package/package.json +17 -5
  119. package/dist/exception.d.ts +0 -13
  120. package/dist/validate/result.d.ts +0 -2
  121. package/dist/validate/result.js +0 -1
  122. /package/dist/{serialisable.d.ts → entities/serialisable.d.ts} +0 -0
  123. /package/dist/{serialisable.js → entities/serialisable.js} +0 -0
  124. /package/dist/{check.d.ts → errors/check.d.ts} +0 -0
  125. /package/dist/{check.js → errors/check.js} +0 -0
@@ -1,6 +1,723 @@
1
- import type { BuilderEntitySerialised } from './kind.js';
2
- export type BuilderReference = {
3
- readonly id: string;
4
- readonly serialised: BuilderEntitySerialised;
5
- };
6
- export type BuilderReferences = ReadonlyArray<BuilderReference>;
1
+ import * as v from 'valibot';
2
+ export declare const BuilderReferenceSchema: v.ObjectSchema<{
3
+ readonly id: v.StringSchema<undefined>;
4
+ readonly serialised: v.GenericSchema<string | number | boolean | readonly (string | number)[] | readonly (readonly (string | number)[])[] | import("./index.js").BuilderSerialised | import("./index.js").BuilderModelSerialised | Readonly<{
5
+ type: "select";
6
+ readonly options: readonly [string, ...string[]];
7
+ defaultValue: string | null;
8
+ isOptional: boolean;
9
+ optionLabels: {
10
+ [x: string]: string;
11
+ };
12
+ tags?: readonly string[] | undefined;
13
+ }> | Readonly<{
14
+ type: "toggle";
15
+ valueType: "string" | "number" | "boolean";
16
+ defaultValue: string | number | boolean | null;
17
+ isOptional: boolean;
18
+ tags?: readonly string[] | undefined;
19
+ }> | import("./when.js").BuilderMatchSelectMap<Readonly<{
20
+ type: "parameter";
21
+ id: string;
22
+ name: string;
23
+ }> | Readonly<Readonly<{
24
+ type: "select";
25
+ readonly options: readonly [string, ...string[]];
26
+ defaultValue: string | null;
27
+ isOptional: boolean;
28
+ optionLabels: {
29
+ [x: string]: string;
30
+ };
31
+ tags?: readonly string[] | undefined;
32
+ }>> | Readonly<Readonly<{
33
+ type: "toggle";
34
+ valueType: "string" | "number" | "boolean";
35
+ defaultValue: string | number | boolean | null;
36
+ isOptional: boolean;
37
+ tags?: readonly string[] | undefined;
38
+ }>>> | import("./when.js").BuilderWhenSerialised<Readonly<Readonly<{
39
+ type: "select";
40
+ readonly options: readonly [string, ...string[]];
41
+ defaultValue: string | null;
42
+ isOptional: boolean;
43
+ optionLabels: {
44
+ [x: string]: string;
45
+ };
46
+ tags?: readonly string[] | undefined;
47
+ }>> | Readonly<Readonly<{
48
+ type: "toggle";
49
+ valueType: "string" | "number" | "boolean";
50
+ defaultValue: string | number | boolean | null;
51
+ isOptional: boolean;
52
+ tags?: readonly string[] | undefined;
53
+ }>>> | Readonly<{
54
+ fields: Readonly<{
55
+ type: "parameter";
56
+ id: string;
57
+ name: string;
58
+ }> | Readonly<{
59
+ type: "ref";
60
+ id: string;
61
+ }> | readonly Readonly<{
62
+ type: "component-field";
63
+ name: string;
64
+ valueType: "string" | "number" | "boolean";
65
+ isOptional: boolean;
66
+ tags?: readonly string[] | undefined;
67
+ }>[];
68
+ tags?: readonly string[] | undefined;
69
+ }> | import("./when.js").BuilderMatchSelectMap<Readonly<{
70
+ type: "parameter";
71
+ id: string;
72
+ name: string;
73
+ }> | Readonly<{
74
+ fields: Readonly<{
75
+ type: "parameter";
76
+ id: string;
77
+ name: string;
78
+ }> | Readonly<{
79
+ type: "ref";
80
+ id: string;
81
+ }> | readonly Readonly<{
82
+ type: "component-field";
83
+ name: string;
84
+ valueType: "string" | "number" | "boolean";
85
+ isOptional: boolean;
86
+ tags?: readonly string[] | undefined;
87
+ }>[];
88
+ tags?: readonly string[] | undefined;
89
+ }>> | import("./when.js").BuilderWhenSerialised<Readonly<{
90
+ fields: Readonly<{
91
+ type: "parameter";
92
+ id: string;
93
+ name: string;
94
+ }> | Readonly<{
95
+ type: "ref";
96
+ id: string;
97
+ }> | readonly Readonly<{
98
+ type: "component-field";
99
+ name: string;
100
+ valueType: "string" | "number" | "boolean";
101
+ isOptional: boolean;
102
+ tags?: readonly string[] | undefined;
103
+ }>[];
104
+ tags?: readonly string[] | undefined;
105
+ }>> | Readonly<{
106
+ model: Readonly<{
107
+ type: "parameter";
108
+ id: string;
109
+ name: string;
110
+ }> | Readonly<{
111
+ type: "ref";
112
+ id: string;
113
+ }> | import("./index.js").BuilderModelSerialised;
114
+ min: number | Readonly<{
115
+ type: "parameter";
116
+ id: string;
117
+ name: string;
118
+ }> | Readonly<{
119
+ type: "ref";
120
+ id: string;
121
+ }>;
122
+ max: number | Readonly<{
123
+ type: "parameter";
124
+ id: string;
125
+ name: string;
126
+ }> | Readonly<{
127
+ type: "ref";
128
+ id: string;
129
+ }>;
130
+ tags?: readonly string[] | undefined;
131
+ }> | import("./when.js").BuilderMatchSelectMap<Readonly<{
132
+ type: "parameter";
133
+ id: string;
134
+ name: string;
135
+ }> | Readonly<{
136
+ model: Readonly<{
137
+ type: "parameter";
138
+ id: string;
139
+ name: string;
140
+ }> | Readonly<{
141
+ type: "ref";
142
+ id: string;
143
+ }> | import("./index.js").BuilderModelSerialised;
144
+ min: number | Readonly<{
145
+ type: "parameter";
146
+ id: string;
147
+ name: string;
148
+ }> | Readonly<{
149
+ type: "ref";
150
+ id: string;
151
+ }>;
152
+ max: number | Readonly<{
153
+ type: "parameter";
154
+ id: string;
155
+ name: string;
156
+ }> | Readonly<{
157
+ type: "ref";
158
+ id: string;
159
+ }>;
160
+ tags?: readonly string[] | undefined;
161
+ }>> | import("./when.js").BuilderWhenSerialised<Readonly<{
162
+ model: Readonly<{
163
+ type: "parameter";
164
+ id: string;
165
+ name: string;
166
+ }> | Readonly<{
167
+ type: "ref";
168
+ id: string;
169
+ }> | import("./index.js").BuilderModelSerialised;
170
+ min: number | Readonly<{
171
+ type: "parameter";
172
+ id: string;
173
+ name: string;
174
+ }> | Readonly<{
175
+ type: "ref";
176
+ id: string;
177
+ }>;
178
+ max: number | Readonly<{
179
+ type: "parameter";
180
+ id: string;
181
+ name: string;
182
+ }> | Readonly<{
183
+ type: "ref";
184
+ id: string;
185
+ }>;
186
+ tags?: readonly string[] | undefined;
187
+ }>> | import("./index.js").BuilderUISerialised | Readonly<{
188
+ type: "input";
189
+ path: readonly (string | number)[] | Readonly<{
190
+ type: "parameter";
191
+ id: string;
192
+ name: string;
193
+ }> | Readonly<{
194
+ type: "ref";
195
+ id: string;
196
+ }>;
197
+ displayName?: string | Readonly<{
198
+ type: "parameter";
199
+ id: string;
200
+ name: string;
201
+ }> | Readonly<{
202
+ type: "ref";
203
+ id: string;
204
+ }> | undefined;
205
+ kind?: string | Readonly<{
206
+ type: "parameter";
207
+ id: string;
208
+ name: string;
209
+ }> | Readonly<{
210
+ type: "ref";
211
+ id: string;
212
+ }> | undefined;
213
+ metadata?: Readonly<{
214
+ type: "parameter";
215
+ id: string;
216
+ name: string;
217
+ }> | Readonly<{
218
+ type: "ref";
219
+ id: string;
220
+ }> | Readonly<{
221
+ [x: string]: unknown;
222
+ }> | undefined;
223
+ tags?: readonly string[] | undefined;
224
+ }> | Readonly<{
225
+ type: "page";
226
+ label: string | Readonly<{
227
+ type: "parameter";
228
+ id: string;
229
+ name: string;
230
+ }> | Readonly<{
231
+ type: "ref";
232
+ id: string;
233
+ }>;
234
+ inputs: Readonly<{
235
+ type: "parameter";
236
+ id: string;
237
+ name: string;
238
+ }> | Readonly<{
239
+ type: "ref";
240
+ id: string;
241
+ }> | readonly (Readonly<{
242
+ type: "parameter";
243
+ id: string;
244
+ name: string;
245
+ }> | Readonly<{
246
+ type: "ref";
247
+ id: string;
248
+ }> | Readonly<{
249
+ type: "input";
250
+ path: readonly (string | number)[] | Readonly<{
251
+ type: "parameter";
252
+ id: string;
253
+ name: string;
254
+ }> | Readonly<{
255
+ type: "ref";
256
+ id: string;
257
+ }>;
258
+ displayName?: string | Readonly<{
259
+ type: "parameter";
260
+ id: string;
261
+ name: string;
262
+ }> | Readonly<{
263
+ type: "ref";
264
+ id: string;
265
+ }> | undefined;
266
+ kind?: string | Readonly<{
267
+ type: "parameter";
268
+ id: string;
269
+ name: string;
270
+ }> | Readonly<{
271
+ type: "ref";
272
+ id: string;
273
+ }> | undefined;
274
+ metadata?: Readonly<{
275
+ type: "parameter";
276
+ id: string;
277
+ name: string;
278
+ }> | Readonly<{
279
+ type: "ref";
280
+ id: string;
281
+ }> | Readonly<{
282
+ [x: string]: unknown;
283
+ }> | undefined;
284
+ tags?: readonly string[] | undefined;
285
+ }>)[];
286
+ tags?: readonly string[] | undefined;
287
+ }> | Readonly<{
288
+ type: "describe";
289
+ label: string | Readonly<{
290
+ type: "parameter";
291
+ id: string;
292
+ name: string;
293
+ }> | Readonly<{
294
+ type: "ref";
295
+ id: string;
296
+ }>;
297
+ inputs: Readonly<{
298
+ type: "parameter";
299
+ id: string;
300
+ name: string;
301
+ }> | Readonly<{
302
+ type: "ref";
303
+ id: string;
304
+ }> | readonly (Readonly<{
305
+ type: "parameter";
306
+ id: string;
307
+ name: string;
308
+ }> | Readonly<{
309
+ type: "ref";
310
+ id: string;
311
+ }> | Readonly<{
312
+ type: "input";
313
+ path: readonly (string | number)[] | Readonly<{
314
+ type: "parameter";
315
+ id: string;
316
+ name: string;
317
+ }> | Readonly<{
318
+ type: "ref";
319
+ id: string;
320
+ }>;
321
+ displayName?: string | Readonly<{
322
+ type: "parameter";
323
+ id: string;
324
+ name: string;
325
+ }> | Readonly<{
326
+ type: "ref";
327
+ id: string;
328
+ }> | undefined;
329
+ kind?: string | Readonly<{
330
+ type: "parameter";
331
+ id: string;
332
+ name: string;
333
+ }> | Readonly<{
334
+ type: "ref";
335
+ id: string;
336
+ }> | undefined;
337
+ metadata?: Readonly<{
338
+ type: "parameter";
339
+ id: string;
340
+ name: string;
341
+ }> | Readonly<{
342
+ type: "ref";
343
+ id: string;
344
+ }> | Readonly<{
345
+ [x: string]: unknown;
346
+ }> | undefined;
347
+ tags?: readonly string[] | undefined;
348
+ }>)[];
349
+ tags?: readonly string[] | undefined;
350
+ }> | import("./index.js").BuilderUIPagesSerialised | readonly (Readonly<{
351
+ type: "parameter";
352
+ id: string;
353
+ name: string;
354
+ }> | Readonly<{
355
+ type: "ref";
356
+ id: string;
357
+ }> | import("./index.js").BuilderUIItemSerialised)[] | import("./index.js").BuilderPricingSerialised | import("./index.js").BuilderRates | readonly Readonly<{
358
+ name: string;
359
+ kind: "option" | "component" | "collection";
360
+ }>[]>;
361
+ }, undefined>;
362
+ export type BuilderReference = v.InferOutput<typeof BuilderReferenceSchema>;
363
+ export declare const BuilderReferencesSchema: v.ArraySchema<v.ObjectSchema<{
364
+ readonly id: v.StringSchema<undefined>;
365
+ readonly serialised: v.GenericSchema<string | number | boolean | readonly (string | number)[] | readonly (readonly (string | number)[])[] | import("./index.js").BuilderSerialised | import("./index.js").BuilderModelSerialised | Readonly<{
366
+ type: "select";
367
+ readonly options: readonly [string, ...string[]];
368
+ defaultValue: string | null;
369
+ isOptional: boolean;
370
+ optionLabels: {
371
+ [x: string]: string;
372
+ };
373
+ tags?: readonly string[] | undefined;
374
+ }> | Readonly<{
375
+ type: "toggle";
376
+ valueType: "string" | "number" | "boolean";
377
+ defaultValue: string | number | boolean | null;
378
+ isOptional: boolean;
379
+ tags?: readonly string[] | undefined;
380
+ }> | import("./when.js").BuilderMatchSelectMap<Readonly<{
381
+ type: "parameter";
382
+ id: string;
383
+ name: string;
384
+ }> | Readonly<Readonly<{
385
+ type: "select";
386
+ readonly options: readonly [string, ...string[]];
387
+ defaultValue: string | null;
388
+ isOptional: boolean;
389
+ optionLabels: {
390
+ [x: string]: string;
391
+ };
392
+ tags?: readonly string[] | undefined;
393
+ }>> | Readonly<Readonly<{
394
+ type: "toggle";
395
+ valueType: "string" | "number" | "boolean";
396
+ defaultValue: string | number | boolean | null;
397
+ isOptional: boolean;
398
+ tags?: readonly string[] | undefined;
399
+ }>>> | import("./when.js").BuilderWhenSerialised<Readonly<Readonly<{
400
+ type: "select";
401
+ readonly options: readonly [string, ...string[]];
402
+ defaultValue: string | null;
403
+ isOptional: boolean;
404
+ optionLabels: {
405
+ [x: string]: string;
406
+ };
407
+ tags?: readonly string[] | undefined;
408
+ }>> | Readonly<Readonly<{
409
+ type: "toggle";
410
+ valueType: "string" | "number" | "boolean";
411
+ defaultValue: string | number | boolean | null;
412
+ isOptional: boolean;
413
+ tags?: readonly string[] | undefined;
414
+ }>>> | Readonly<{
415
+ fields: Readonly<{
416
+ type: "parameter";
417
+ id: string;
418
+ name: string;
419
+ }> | Readonly<{
420
+ type: "ref";
421
+ id: string;
422
+ }> | readonly Readonly<{
423
+ type: "component-field";
424
+ name: string;
425
+ valueType: "string" | "number" | "boolean";
426
+ isOptional: boolean;
427
+ tags?: readonly string[] | undefined;
428
+ }>[];
429
+ tags?: readonly string[] | undefined;
430
+ }> | import("./when.js").BuilderMatchSelectMap<Readonly<{
431
+ type: "parameter";
432
+ id: string;
433
+ name: string;
434
+ }> | Readonly<{
435
+ fields: Readonly<{
436
+ type: "parameter";
437
+ id: string;
438
+ name: string;
439
+ }> | Readonly<{
440
+ type: "ref";
441
+ id: string;
442
+ }> | readonly Readonly<{
443
+ type: "component-field";
444
+ name: string;
445
+ valueType: "string" | "number" | "boolean";
446
+ isOptional: boolean;
447
+ tags?: readonly string[] | undefined;
448
+ }>[];
449
+ tags?: readonly string[] | undefined;
450
+ }>> | import("./when.js").BuilderWhenSerialised<Readonly<{
451
+ fields: Readonly<{
452
+ type: "parameter";
453
+ id: string;
454
+ name: string;
455
+ }> | Readonly<{
456
+ type: "ref";
457
+ id: string;
458
+ }> | readonly Readonly<{
459
+ type: "component-field";
460
+ name: string;
461
+ valueType: "string" | "number" | "boolean";
462
+ isOptional: boolean;
463
+ tags?: readonly string[] | undefined;
464
+ }>[];
465
+ tags?: readonly string[] | undefined;
466
+ }>> | Readonly<{
467
+ model: Readonly<{
468
+ type: "parameter";
469
+ id: string;
470
+ name: string;
471
+ }> | Readonly<{
472
+ type: "ref";
473
+ id: string;
474
+ }> | import("./index.js").BuilderModelSerialised;
475
+ min: number | Readonly<{
476
+ type: "parameter";
477
+ id: string;
478
+ name: string;
479
+ }> | Readonly<{
480
+ type: "ref";
481
+ id: string;
482
+ }>;
483
+ max: number | Readonly<{
484
+ type: "parameter";
485
+ id: string;
486
+ name: string;
487
+ }> | Readonly<{
488
+ type: "ref";
489
+ id: string;
490
+ }>;
491
+ tags?: readonly string[] | undefined;
492
+ }> | import("./when.js").BuilderMatchSelectMap<Readonly<{
493
+ type: "parameter";
494
+ id: string;
495
+ name: string;
496
+ }> | Readonly<{
497
+ model: Readonly<{
498
+ type: "parameter";
499
+ id: string;
500
+ name: string;
501
+ }> | Readonly<{
502
+ type: "ref";
503
+ id: string;
504
+ }> | import("./index.js").BuilderModelSerialised;
505
+ min: number | Readonly<{
506
+ type: "parameter";
507
+ id: string;
508
+ name: string;
509
+ }> | Readonly<{
510
+ type: "ref";
511
+ id: string;
512
+ }>;
513
+ max: number | Readonly<{
514
+ type: "parameter";
515
+ id: string;
516
+ name: string;
517
+ }> | Readonly<{
518
+ type: "ref";
519
+ id: string;
520
+ }>;
521
+ tags?: readonly string[] | undefined;
522
+ }>> | import("./when.js").BuilderWhenSerialised<Readonly<{
523
+ model: Readonly<{
524
+ type: "parameter";
525
+ id: string;
526
+ name: string;
527
+ }> | Readonly<{
528
+ type: "ref";
529
+ id: string;
530
+ }> | import("./index.js").BuilderModelSerialised;
531
+ min: number | Readonly<{
532
+ type: "parameter";
533
+ id: string;
534
+ name: string;
535
+ }> | Readonly<{
536
+ type: "ref";
537
+ id: string;
538
+ }>;
539
+ max: number | Readonly<{
540
+ type: "parameter";
541
+ id: string;
542
+ name: string;
543
+ }> | Readonly<{
544
+ type: "ref";
545
+ id: string;
546
+ }>;
547
+ tags?: readonly string[] | undefined;
548
+ }>> | import("./index.js").BuilderUISerialised | Readonly<{
549
+ type: "input";
550
+ path: readonly (string | number)[] | Readonly<{
551
+ type: "parameter";
552
+ id: string;
553
+ name: string;
554
+ }> | Readonly<{
555
+ type: "ref";
556
+ id: string;
557
+ }>;
558
+ displayName?: string | Readonly<{
559
+ type: "parameter";
560
+ id: string;
561
+ name: string;
562
+ }> | Readonly<{
563
+ type: "ref";
564
+ id: string;
565
+ }> | undefined;
566
+ kind?: string | Readonly<{
567
+ type: "parameter";
568
+ id: string;
569
+ name: string;
570
+ }> | Readonly<{
571
+ type: "ref";
572
+ id: string;
573
+ }> | undefined;
574
+ metadata?: Readonly<{
575
+ type: "parameter";
576
+ id: string;
577
+ name: string;
578
+ }> | Readonly<{
579
+ type: "ref";
580
+ id: string;
581
+ }> | Readonly<{
582
+ [x: string]: unknown;
583
+ }> | undefined;
584
+ tags?: readonly string[] | undefined;
585
+ }> | Readonly<{
586
+ type: "page";
587
+ label: string | Readonly<{
588
+ type: "parameter";
589
+ id: string;
590
+ name: string;
591
+ }> | Readonly<{
592
+ type: "ref";
593
+ id: string;
594
+ }>;
595
+ inputs: Readonly<{
596
+ type: "parameter";
597
+ id: string;
598
+ name: string;
599
+ }> | Readonly<{
600
+ type: "ref";
601
+ id: string;
602
+ }> | readonly (Readonly<{
603
+ type: "parameter";
604
+ id: string;
605
+ name: string;
606
+ }> | Readonly<{
607
+ type: "ref";
608
+ id: string;
609
+ }> | Readonly<{
610
+ type: "input";
611
+ path: readonly (string | number)[] | Readonly<{
612
+ type: "parameter";
613
+ id: string;
614
+ name: string;
615
+ }> | Readonly<{
616
+ type: "ref";
617
+ id: string;
618
+ }>;
619
+ displayName?: string | Readonly<{
620
+ type: "parameter";
621
+ id: string;
622
+ name: string;
623
+ }> | Readonly<{
624
+ type: "ref";
625
+ id: string;
626
+ }> | undefined;
627
+ kind?: string | Readonly<{
628
+ type: "parameter";
629
+ id: string;
630
+ name: string;
631
+ }> | Readonly<{
632
+ type: "ref";
633
+ id: string;
634
+ }> | undefined;
635
+ metadata?: Readonly<{
636
+ type: "parameter";
637
+ id: string;
638
+ name: string;
639
+ }> | Readonly<{
640
+ type: "ref";
641
+ id: string;
642
+ }> | Readonly<{
643
+ [x: string]: unknown;
644
+ }> | undefined;
645
+ tags?: readonly string[] | undefined;
646
+ }>)[];
647
+ tags?: readonly string[] | undefined;
648
+ }> | Readonly<{
649
+ type: "describe";
650
+ label: string | Readonly<{
651
+ type: "parameter";
652
+ id: string;
653
+ name: string;
654
+ }> | Readonly<{
655
+ type: "ref";
656
+ id: string;
657
+ }>;
658
+ inputs: Readonly<{
659
+ type: "parameter";
660
+ id: string;
661
+ name: string;
662
+ }> | Readonly<{
663
+ type: "ref";
664
+ id: string;
665
+ }> | readonly (Readonly<{
666
+ type: "parameter";
667
+ id: string;
668
+ name: string;
669
+ }> | Readonly<{
670
+ type: "ref";
671
+ id: string;
672
+ }> | Readonly<{
673
+ type: "input";
674
+ path: readonly (string | number)[] | Readonly<{
675
+ type: "parameter";
676
+ id: string;
677
+ name: string;
678
+ }> | Readonly<{
679
+ type: "ref";
680
+ id: string;
681
+ }>;
682
+ displayName?: string | Readonly<{
683
+ type: "parameter";
684
+ id: string;
685
+ name: string;
686
+ }> | Readonly<{
687
+ type: "ref";
688
+ id: string;
689
+ }> | undefined;
690
+ kind?: string | Readonly<{
691
+ type: "parameter";
692
+ id: string;
693
+ name: string;
694
+ }> | Readonly<{
695
+ type: "ref";
696
+ id: string;
697
+ }> | undefined;
698
+ metadata?: Readonly<{
699
+ type: "parameter";
700
+ id: string;
701
+ name: string;
702
+ }> | Readonly<{
703
+ type: "ref";
704
+ id: string;
705
+ }> | Readonly<{
706
+ [x: string]: unknown;
707
+ }> | undefined;
708
+ tags?: readonly string[] | undefined;
709
+ }>)[];
710
+ tags?: readonly string[] | undefined;
711
+ }> | import("./index.js").BuilderUIPagesSerialised | readonly (Readonly<{
712
+ type: "parameter";
713
+ id: string;
714
+ name: string;
715
+ }> | Readonly<{
716
+ type: "ref";
717
+ id: string;
718
+ }> | import("./index.js").BuilderUIItemSerialised)[] | import("./index.js").BuilderPricingSerialised | import("./index.js").BuilderRates | readonly Readonly<{
719
+ name: string;
720
+ kind: "option" | "component" | "collection";
721
+ }>[]>;
722
+ }, undefined>, undefined>;
723
+ export type BuilderReferences = v.InferOutput<typeof BuilderReferencesSchema>;