@builder-builder/builder 0.0.12 → 0.0.14

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 (66) hide show
  1. package/dist/cli.d.ts +2 -0
  2. package/dist/cli.js +53 -0
  3. package/dist/codegen/index.d.ts +7 -0
  4. package/dist/codegen/index.js +212 -0
  5. package/dist/codegen/template.d.ts +5 -0
  6. package/dist/codegen/template.js +17 -0
  7. package/dist/entities/index.d.ts +3 -3
  8. package/dist/entities/index.js +1 -1
  9. package/dist/entities/kind.d.ts +1 -1
  10. package/dist/entities/serialise.d.ts +554 -8
  11. package/dist/entities/serialise.js +5 -3
  12. package/dist/entities/ui/describe.d.ts +222 -8
  13. package/dist/entities/ui/describe.js +5 -5
  14. package/dist/entities/ui/index.d.ts +2 -0
  15. package/dist/entities/ui/index.js +1 -0
  16. package/dist/entities/ui/input.d.ts +334 -0
  17. package/dist/entities/ui/input.js +39 -0
  18. package/dist/entities/ui/page.d.ts +222 -8
  19. package/dist/entities/ui/page.js +5 -5
  20. package/dist/entities/ui/ui.d.ts +3 -3
  21. package/dist/entities/ui/ui.js +7 -4
  22. package/dist/entities/validated.d.ts +23 -21
  23. package/dist/entities/when.d.ts +2 -2
  24. package/dist/index.d.ts +3 -3
  25. package/dist/index.js +1 -1
  26. package/dist/mappers/index.d.ts +3 -2
  27. package/dist/mappers/index.js +1 -1
  28. package/dist/mappers/instance.js +10 -6
  29. package/dist/mappers/order.js +5 -2
  30. package/dist/mappers/render/index.d.ts +1 -1
  31. package/dist/mappers/render/pages.d.ts +8 -0
  32. package/dist/mappers/render/pages.js +2 -1
  33. package/dist/mappers/render/render.js +31 -54
  34. package/dist/mappers/resolve.d.ts +13 -4
  35. package/dist/mappers/resolve.js +73 -16
  36. package/dist/mappers/variants/index.d.ts +2 -1
  37. package/dist/mappers/variants/index.js +2 -1
  38. package/dist/mappers/variants/option-graph.d.ts +2 -2
  39. package/dist/mappers/variants/option-graph.js +6 -3
  40. package/dist/mappers/variants/variants.d.ts +5 -2
  41. package/dist/mappers/variants/variants.js +11 -7
  42. package/dist/paths.d.ts +0 -1
  43. package/dist/paths.js +0 -8
  44. package/dist/validate/brand.d.ts +0 -7
  45. package/dist/validate/brand.js +12 -6
  46. package/dist/validate/builder.d.ts +2 -1
  47. package/dist/validate/builder.js +14 -12
  48. package/dist/validate/errors.d.ts +130 -0
  49. package/dist/validate/errors.js +141 -0
  50. package/dist/validate/expectations.d.ts +3 -10
  51. package/dist/validate/expectations.js +8 -10
  52. package/dist/validate/index.d.ts +8 -14
  53. package/dist/validate/index.js +4 -7
  54. package/dist/validate/instance.d.ts +2 -15
  55. package/dist/validate/instance.js +42 -40
  56. package/dist/validate/model.d.ts +4 -31
  57. package/dist/validate/model.js +157 -173
  58. package/dist/validate/resolve.d.ts +3 -15
  59. package/dist/validate/resolve.js +66 -71
  60. package/dist/validate/result.d.ts +1 -7
  61. package/dist/validate/result.js +1 -4
  62. package/dist/validate/ui.d.ts +4 -4
  63. package/dist/validate/ui.js +80 -62
  64. package/dist/validate/variants.d.ts +2 -53
  65. package/dist/validate/variants.js +83 -86
  66. package/package.json +14 -3
@@ -1,15 +1,15 @@
1
- import type { BuilderPaths } from '../../paths';
2
1
  import type { Paramable } from '../../references';
2
+ import type { BuilderUIInputs } from './input';
3
3
  import * as v from 'valibot';
4
4
  export declare const BuilderDescriptionItemSchema: v.SchemaWithPipe<readonly [v.TupleSchema<[v.StringSchema<undefined>, v.StringSchema<undefined>], undefined>, v.ReadonlyAction<[string, string]>]>;
5
5
  export type BuilderDescriptionItem = v.InferOutput<typeof BuilderDescriptionItemSchema>;
6
6
  export declare const BuilderDescriptionSchema: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.TupleSchema<[v.StringSchema<undefined>, v.StringSchema<undefined>], undefined>, v.ReadonlyAction<[string, string]>]>, undefined>, v.ReadonlyAction<(readonly [string, string])[]>]>;
7
7
  export type BuilderDescription = v.InferOutput<typeof BuilderDescriptionSchema>;
8
- export declare class BuilderUIDescribe<const Label extends Paramable<string> = Paramable<string>, const Paths extends Paramable<BuilderPaths> = Paramable<BuilderPaths>> {
8
+ export declare class BuilderUIDescribe<const Label extends Paramable<string> = Paramable<string>, const Inputs extends Paramable<BuilderUIInputs> = Paramable<BuilderUIInputs>> {
9
9
  readonly type: "describe";
10
10
  readonly label: Label;
11
- readonly paths: Paths;
12
- constructor(label: Label, paths: Paths);
11
+ readonly inputs: Inputs;
12
+ constructor(label: Label, inputs: Inputs);
13
13
  }
14
14
  export declare const BuilderUIDescribeSchema: v.InstanceSchema<typeof BuilderUIDescribe, undefined>;
15
15
  export declare const BuilderUIDescribeSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
@@ -29,7 +29,7 @@ export declare const BuilderUIDescribeSerialisedSchema: v.SchemaWithPipe<readonl
29
29
  type: "ref";
30
30
  id: string;
31
31
  }>]>, v.StringSchema<undefined>], undefined>;
32
- readonly paths: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
32
+ readonly inputs: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
33
33
  readonly type: v.LiteralSchema<"parameter", undefined>;
34
34
  readonly id: v.StringSchema<undefined>;
35
35
  readonly name: v.StringSchema<undefined>;
@@ -43,7 +43,178 @@ export declare const BuilderUIDescribeSerialisedSchema: v.SchemaWithPipe<readonl
43
43
  }, undefined>, v.ReadonlyAction<{
44
44
  type: "ref";
45
45
  id: string;
46
- }>]>, 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>;
46
+ }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
47
+ readonly type: v.LiteralSchema<"parameter", undefined>;
48
+ readonly id: v.StringSchema<undefined>;
49
+ readonly name: v.StringSchema<undefined>;
50
+ }, undefined>, v.ReadonlyAction<{
51
+ type: "parameter";
52
+ id: string;
53
+ name: string;
54
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
55
+ readonly type: v.LiteralSchema<"ref", undefined>;
56
+ readonly id: v.StringSchema<undefined>;
57
+ }, undefined>, v.ReadonlyAction<{
58
+ type: "ref";
59
+ id: string;
60
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
61
+ readonly type: v.LiteralSchema<"input", undefined>;
62
+ readonly path: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
63
+ readonly type: v.LiteralSchema<"parameter", undefined>;
64
+ readonly id: v.StringSchema<undefined>;
65
+ readonly name: v.StringSchema<undefined>;
66
+ }, undefined>, v.ReadonlyAction<{
67
+ type: "parameter";
68
+ id: string;
69
+ name: string;
70
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
71
+ readonly type: v.LiteralSchema<"ref", undefined>;
72
+ readonly id: v.StringSchema<undefined>;
73
+ }, undefined>, v.ReadonlyAction<{
74
+ type: "ref";
75
+ id: string;
76
+ }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>], undefined>;
77
+ readonly displayName: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
78
+ readonly type: v.LiteralSchema<"parameter", undefined>;
79
+ readonly id: v.StringSchema<undefined>;
80
+ readonly name: v.StringSchema<undefined>;
81
+ }, undefined>, v.ReadonlyAction<{
82
+ type: "parameter";
83
+ id: string;
84
+ name: string;
85
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
86
+ readonly type: v.LiteralSchema<"ref", undefined>;
87
+ readonly id: v.StringSchema<undefined>;
88
+ }, undefined>, v.ReadonlyAction<{
89
+ type: "ref";
90
+ id: string;
91
+ }>]>, v.StringSchema<undefined>], undefined>, undefined>;
92
+ readonly kind: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
93
+ readonly type: v.LiteralSchema<"parameter", undefined>;
94
+ readonly id: v.StringSchema<undefined>;
95
+ readonly name: v.StringSchema<undefined>;
96
+ }, undefined>, v.ReadonlyAction<{
97
+ type: "parameter";
98
+ id: string;
99
+ name: string;
100
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
101
+ readonly type: v.LiteralSchema<"ref", undefined>;
102
+ readonly id: v.StringSchema<undefined>;
103
+ }, undefined>, v.ReadonlyAction<{
104
+ type: "ref";
105
+ id: string;
106
+ }>]>, v.StringSchema<undefined>], undefined>, undefined>;
107
+ readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
108
+ readonly type: v.LiteralSchema<"parameter", undefined>;
109
+ readonly id: v.StringSchema<undefined>;
110
+ readonly name: v.StringSchema<undefined>;
111
+ }, undefined>, v.ReadonlyAction<{
112
+ type: "parameter";
113
+ id: string;
114
+ name: string;
115
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
116
+ readonly type: v.LiteralSchema<"ref", undefined>;
117
+ readonly id: v.StringSchema<undefined>;
118
+ }, undefined>, v.ReadonlyAction<{
119
+ type: "ref";
120
+ id: string;
121
+ }>]>, v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
122
+ readonly type: v.LiteralSchema<"parameter", undefined>;
123
+ readonly id: v.StringSchema<undefined>;
124
+ readonly name: v.StringSchema<undefined>;
125
+ }, undefined>, v.ReadonlyAction<{
126
+ type: "parameter";
127
+ id: string;
128
+ name: string;
129
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
130
+ readonly type: v.LiteralSchema<"ref", undefined>;
131
+ readonly id: v.StringSchema<undefined>;
132
+ }, undefined>, v.ReadonlyAction<{
133
+ type: "ref";
134
+ id: string;
135
+ }>]>, v.UnknownSchema], undefined>, undefined>, v.ReadonlyAction<{
136
+ [x: string]: unknown;
137
+ }>]>], undefined>, undefined>;
138
+ }, undefined>, v.ReadonlyAction<{
139
+ type: "input";
140
+ path: readonly (string | number)[] | Readonly<{
141
+ type: "parameter";
142
+ id: string;
143
+ name: string;
144
+ }> | Readonly<{
145
+ type: "ref";
146
+ id: string;
147
+ }>;
148
+ displayName?: string | Readonly<{
149
+ type: "parameter";
150
+ id: string;
151
+ name: string;
152
+ }> | Readonly<{
153
+ type: "ref";
154
+ id: string;
155
+ }> | undefined;
156
+ kind?: string | Readonly<{
157
+ type: "parameter";
158
+ id: string;
159
+ name: string;
160
+ }> | Readonly<{
161
+ type: "ref";
162
+ id: string;
163
+ }> | undefined;
164
+ metadata?: Readonly<{
165
+ type: "parameter";
166
+ id: string;
167
+ name: string;
168
+ }> | Readonly<{
169
+ type: "ref";
170
+ id: string;
171
+ }> | Readonly<{
172
+ [x: string]: unknown;
173
+ }> | undefined;
174
+ }>]>], undefined>, undefined>, v.ReadonlyAction<(Readonly<{
175
+ type: "parameter";
176
+ id: string;
177
+ name: string;
178
+ }> | Readonly<{
179
+ type: "ref";
180
+ id: string;
181
+ }> | Readonly<{
182
+ type: "input";
183
+ path: readonly (string | number)[] | Readonly<{
184
+ type: "parameter";
185
+ id: string;
186
+ name: string;
187
+ }> | Readonly<{
188
+ type: "ref";
189
+ id: string;
190
+ }>;
191
+ displayName?: string | Readonly<{
192
+ type: "parameter";
193
+ id: string;
194
+ name: string;
195
+ }> | Readonly<{
196
+ type: "ref";
197
+ id: string;
198
+ }> | undefined;
199
+ kind?: string | Readonly<{
200
+ type: "parameter";
201
+ id: string;
202
+ name: string;
203
+ }> | Readonly<{
204
+ type: "ref";
205
+ id: string;
206
+ }> | undefined;
207
+ metadata?: Readonly<{
208
+ type: "parameter";
209
+ id: string;
210
+ name: string;
211
+ }> | Readonly<{
212
+ type: "ref";
213
+ id: string;
214
+ }> | Readonly<{
215
+ [x: string]: unknown;
216
+ }> | undefined;
217
+ }>)[]>]>], undefined>;
47
218
  }, undefined>, v.ReadonlyAction<{
48
219
  type: "describe";
49
220
  label: string | Readonly<{
@@ -54,13 +225,56 @@ export declare const BuilderUIDescribeSerialisedSchema: v.SchemaWithPipe<readonl
54
225
  type: "ref";
55
226
  id: string;
56
227
  }>;
57
- paths: readonly (readonly (string | number)[])[] | Readonly<{
228
+ inputs: Readonly<{
58
229
  type: "parameter";
59
230
  id: string;
60
231
  name: string;
61
232
  }> | Readonly<{
62
233
  type: "ref";
63
234
  id: string;
64
- }>;
235
+ }> | readonly (Readonly<{
236
+ type: "parameter";
237
+ id: string;
238
+ name: string;
239
+ }> | Readonly<{
240
+ type: "ref";
241
+ id: string;
242
+ }> | Readonly<{
243
+ type: "input";
244
+ path: readonly (string | number)[] | Readonly<{
245
+ type: "parameter";
246
+ id: string;
247
+ name: string;
248
+ }> | Readonly<{
249
+ type: "ref";
250
+ id: string;
251
+ }>;
252
+ displayName?: string | Readonly<{
253
+ type: "parameter";
254
+ id: string;
255
+ name: string;
256
+ }> | Readonly<{
257
+ type: "ref";
258
+ id: string;
259
+ }> | undefined;
260
+ kind?: string | Readonly<{
261
+ type: "parameter";
262
+ id: string;
263
+ name: string;
264
+ }> | Readonly<{
265
+ type: "ref";
266
+ id: string;
267
+ }> | undefined;
268
+ metadata?: Readonly<{
269
+ type: "parameter";
270
+ id: string;
271
+ name: string;
272
+ }> | Readonly<{
273
+ type: "ref";
274
+ id: string;
275
+ }> | Readonly<{
276
+ [x: string]: unknown;
277
+ }> | undefined;
278
+ }>)[];
65
279
  }>]>;
66
280
  export type BuilderUIDescribeSerialised = v.InferOutput<typeof BuilderUIDescribeSerialisedSchema>;
@@ -1,21 +1,21 @@
1
1
  import * as v from 'valibot';
2
- import { BuilderPathsSchema } from '../../paths.js';
3
2
  import { paramable } from '../../references.js';
4
3
  import { serialisable } from '../../serialisable.js';
4
+ import { BuilderUIInputsSerialisedSchema } from './input.js';
5
5
  export const BuilderDescriptionItemSchema = v.pipe(v.tuple([v.string(), v.string()]), v.readonly());
6
6
  export const BuilderDescriptionSchema = v.pipe(v.array(BuilderDescriptionItemSchema), v.readonly());
7
7
  export class BuilderUIDescribe {
8
8
  type = 'describe';
9
9
  label;
10
- paths;
11
- constructor(label, paths) {
10
+ inputs;
11
+ constructor(label, inputs) {
12
12
  this.label = label;
13
- this.paths = paths;
13
+ this.inputs = inputs;
14
14
  }
15
15
  }
16
16
  export const BuilderUIDescribeSchema = v.instance(BuilderUIDescribe);
17
17
  export const BuilderUIDescribeSerialisedSchema = serialisable(v.object({
18
18
  type: v.literal('describe'),
19
19
  label: paramable(v.string()),
20
- paths: paramable(BuilderPathsSchema)
20
+ inputs: paramable(BuilderUIInputsSerialisedSchema)
21
21
  }));
@@ -1,8 +1,10 @@
1
1
  export type { BuilderDescription, BuilderDescriptionItem, BuilderUIDescribeSerialised } from './describe';
2
+ export type { BuilderUIInputMetadata, BuilderUIInputMetadataSerialised, BuilderUIInputs, BuilderUIInputsSerialised, BuilderUIInputSerialised } from './input';
2
3
  export type { BuilderUIPageSerialised } from './page';
3
4
  export type { BuilderUIItem, BuilderUIItems, BuilderUIItemSerialised, BuilderUIItemsSerialised, BuilderUIPagesSerialised } from './pages';
4
5
  export type { BuilderUIs, BuilderUIsSerialised, BuilderUISerialised } from './ui';
5
6
  export { BuilderDescriptionItemSchema, BuilderDescriptionSchema, BuilderUIDescribe, BuilderUIDescribeSchema, BuilderUIDescribeSerialisedSchema } from './describe.js';
7
+ export { BuilderUIInput, BuilderUIInputMetadataSchema, BuilderUIInputSchema, BuilderUIInputSerialisedSchema, BuilderUIInputsSerialisedSchema, input } from './input.js';
6
8
  export { BuilderUIPage, BuilderUIPageSchema, BuilderUIPageSerialisedSchema } from './page.js';
7
9
  export { BuilderUIItemSerialisedSchema, BuilderUIItemsSerialisedSchema, BuilderUIPages, BuilderUIPagesSchema, BuilderUIPagesSerialisedSchema } from './pages.js';
8
10
  export { BuilderUI, BuilderUISchema, BuilderUISerialisedSchema } from './ui.js';
@@ -1,4 +1,5 @@
1
1
  export { BuilderDescriptionItemSchema, BuilderDescriptionSchema, BuilderUIDescribe, BuilderUIDescribeSchema, BuilderUIDescribeSerialisedSchema } from './describe.js';
2
+ export { BuilderUIInput, BuilderUIInputMetadataSchema, BuilderUIInputSchema, BuilderUIInputSerialisedSchema, BuilderUIInputsSerialisedSchema, input } from './input.js';
2
3
  export { BuilderUIPage, BuilderUIPageSchema, BuilderUIPageSerialisedSchema } from './page.js';
3
4
  export { BuilderUIItemSerialisedSchema, BuilderUIItemsSerialisedSchema, BuilderUIPages, BuilderUIPagesSchema, BuilderUIPagesSerialisedSchema } from './pages.js';
4
5
  export { BuilderUI, BuilderUISchema, BuilderUISerialisedSchema } from './ui.js';
@@ -0,0 +1,334 @@
1
+ import type { BuilderPath } from '../../paths';
2
+ import type { Paramable, ParamableSerialised } from '../../references';
3
+ import type { BuilderModelGeneric, BuilderModelStateOf } from '../model/model';
4
+ import type { BuilderModelState } from '../model/state';
5
+ import type { BuilderValidPath } from '../when';
6
+ import * as v from 'valibot';
7
+ export type BuilderUIInputMetadata = Paramable<Record<string, Paramable<unknown>>>;
8
+ export type BuilderUIInputMetadataSerialised = ParamableSerialised<Record<string, ParamableSerialised<unknown>>>;
9
+ export declare class BuilderUIInput<const Path extends Paramable<BuilderPath> = Paramable<BuilderPath>, const DisplayName extends Paramable<string> = Paramable<string>, const Kind extends Paramable<string> = Paramable<string>, const Metadata extends BuilderUIInputMetadata = BuilderUIInputMetadata> {
10
+ readonly type: "input";
11
+ readonly path: Path;
12
+ readonly displayName?: DisplayName;
13
+ readonly kind?: Kind;
14
+ readonly metadata?: Metadata;
15
+ constructor(path: Path, displayName?: DisplayName, kind?: Kind, metadata?: Metadata);
16
+ display<const NewDisplayName extends Paramable<string>>(displayName: NewDisplayName): BuilderUIInput<Path, NewDisplayName, Kind, Metadata>;
17
+ as<const NewKind extends Paramable<string>>(kind: NewKind): BuilderUIInput<Path, DisplayName, NewKind, Metadata>;
18
+ meta<const NewMetadata extends BuilderUIInputMetadata>(metadata: NewMetadata): BuilderUIInput<Path, DisplayName, Kind, NewMetadata>;
19
+ }
20
+ export declare function input<const Path extends Paramable<BuilderPath>>(path: Path): BuilderUIInput<Path>;
21
+ export declare const BuilderUIInputSchema: v.InstanceSchema<typeof BuilderUIInput, undefined>;
22
+ export declare const BuilderUIInputMetadataSchema: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
23
+ readonly type: v.LiteralSchema<"parameter", undefined>;
24
+ readonly id: v.StringSchema<undefined>;
25
+ readonly name: v.StringSchema<undefined>;
26
+ }, undefined>, v.ReadonlyAction<{
27
+ type: "parameter";
28
+ id: string;
29
+ name: string;
30
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
31
+ readonly type: v.LiteralSchema<"ref", undefined>;
32
+ readonly id: v.StringSchema<undefined>;
33
+ }, undefined>, v.ReadonlyAction<{
34
+ type: "ref";
35
+ id: string;
36
+ }>]>, v.UnknownSchema], undefined>, undefined>, v.ReadonlyAction<{
37
+ [x: string]: unknown;
38
+ }>]>;
39
+ export declare const BuilderUIInputSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
40
+ readonly type: v.LiteralSchema<"input", undefined>;
41
+ readonly path: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
42
+ readonly type: v.LiteralSchema<"parameter", undefined>;
43
+ readonly id: v.StringSchema<undefined>;
44
+ readonly name: v.StringSchema<undefined>;
45
+ }, undefined>, v.ReadonlyAction<{
46
+ type: "parameter";
47
+ id: string;
48
+ name: string;
49
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
50
+ readonly type: v.LiteralSchema<"ref", undefined>;
51
+ readonly id: v.StringSchema<undefined>;
52
+ }, undefined>, v.ReadonlyAction<{
53
+ type: "ref";
54
+ id: string;
55
+ }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>], undefined>;
56
+ readonly displayName: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
57
+ readonly type: v.LiteralSchema<"parameter", undefined>;
58
+ readonly id: v.StringSchema<undefined>;
59
+ readonly name: v.StringSchema<undefined>;
60
+ }, undefined>, v.ReadonlyAction<{
61
+ type: "parameter";
62
+ id: string;
63
+ name: string;
64
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
65
+ readonly type: v.LiteralSchema<"ref", undefined>;
66
+ readonly id: v.StringSchema<undefined>;
67
+ }, undefined>, v.ReadonlyAction<{
68
+ type: "ref";
69
+ id: string;
70
+ }>]>, v.StringSchema<undefined>], undefined>, undefined>;
71
+ readonly kind: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
72
+ readonly type: v.LiteralSchema<"parameter", undefined>;
73
+ readonly id: v.StringSchema<undefined>;
74
+ readonly name: v.StringSchema<undefined>;
75
+ }, undefined>, v.ReadonlyAction<{
76
+ type: "parameter";
77
+ id: string;
78
+ name: string;
79
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
80
+ readonly type: v.LiteralSchema<"ref", undefined>;
81
+ readonly id: v.StringSchema<undefined>;
82
+ }, undefined>, v.ReadonlyAction<{
83
+ type: "ref";
84
+ id: string;
85
+ }>]>, v.StringSchema<undefined>], undefined>, undefined>;
86
+ readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
87
+ readonly type: v.LiteralSchema<"parameter", undefined>;
88
+ readonly id: v.StringSchema<undefined>;
89
+ readonly name: v.StringSchema<undefined>;
90
+ }, undefined>, v.ReadonlyAction<{
91
+ type: "parameter";
92
+ id: string;
93
+ name: string;
94
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
95
+ readonly type: v.LiteralSchema<"ref", undefined>;
96
+ readonly id: v.StringSchema<undefined>;
97
+ }, undefined>, v.ReadonlyAction<{
98
+ type: "ref";
99
+ id: string;
100
+ }>]>, v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, 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.UnknownSchema], undefined>, undefined>, v.ReadonlyAction<{
115
+ [x: string]: unknown;
116
+ }>]>], undefined>, undefined>;
117
+ }, undefined>, v.ReadonlyAction<{
118
+ type: "input";
119
+ path: readonly (string | number)[] | Readonly<{
120
+ type: "parameter";
121
+ id: string;
122
+ name: string;
123
+ }> | Readonly<{
124
+ type: "ref";
125
+ id: string;
126
+ }>;
127
+ displayName?: string | Readonly<{
128
+ type: "parameter";
129
+ id: string;
130
+ name: string;
131
+ }> | Readonly<{
132
+ type: "ref";
133
+ id: string;
134
+ }> | undefined;
135
+ kind?: string | Readonly<{
136
+ type: "parameter";
137
+ id: string;
138
+ name: string;
139
+ }> | Readonly<{
140
+ type: "ref";
141
+ id: string;
142
+ }> | undefined;
143
+ metadata?: Readonly<{
144
+ type: "parameter";
145
+ id: string;
146
+ name: string;
147
+ }> | Readonly<{
148
+ type: "ref";
149
+ id: string;
150
+ }> | Readonly<{
151
+ [x: string]: unknown;
152
+ }> | undefined;
153
+ }>]>;
154
+ export type BuilderUIInputSerialised = v.InferOutput<typeof BuilderUIInputSerialisedSchema>;
155
+ export declare const BuilderUIInputsSerialisedSchema: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
156
+ readonly type: v.LiteralSchema<"parameter", undefined>;
157
+ readonly id: v.StringSchema<undefined>;
158
+ readonly name: v.StringSchema<undefined>;
159
+ }, undefined>, v.ReadonlyAction<{
160
+ type: "parameter";
161
+ id: string;
162
+ name: string;
163
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
164
+ readonly type: v.LiteralSchema<"ref", undefined>;
165
+ readonly id: v.StringSchema<undefined>;
166
+ }, undefined>, v.ReadonlyAction<{
167
+ type: "ref";
168
+ id: string;
169
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
170
+ readonly type: v.LiteralSchema<"input", undefined>;
171
+ readonly path: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
172
+ readonly type: v.LiteralSchema<"parameter", undefined>;
173
+ readonly id: v.StringSchema<undefined>;
174
+ readonly name: v.StringSchema<undefined>;
175
+ }, undefined>, v.ReadonlyAction<{
176
+ type: "parameter";
177
+ id: string;
178
+ name: string;
179
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
180
+ readonly type: v.LiteralSchema<"ref", undefined>;
181
+ readonly id: v.StringSchema<undefined>;
182
+ }, undefined>, v.ReadonlyAction<{
183
+ type: "ref";
184
+ id: string;
185
+ }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>], undefined>;
186
+ readonly displayName: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
187
+ readonly type: v.LiteralSchema<"parameter", undefined>;
188
+ readonly id: v.StringSchema<undefined>;
189
+ readonly name: v.StringSchema<undefined>;
190
+ }, undefined>, v.ReadonlyAction<{
191
+ type: "parameter";
192
+ id: string;
193
+ name: string;
194
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
195
+ readonly type: v.LiteralSchema<"ref", undefined>;
196
+ readonly id: v.StringSchema<undefined>;
197
+ }, undefined>, v.ReadonlyAction<{
198
+ type: "ref";
199
+ id: string;
200
+ }>]>, v.StringSchema<undefined>], undefined>, undefined>;
201
+ readonly kind: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
202
+ readonly type: v.LiteralSchema<"parameter", undefined>;
203
+ readonly id: v.StringSchema<undefined>;
204
+ readonly name: v.StringSchema<undefined>;
205
+ }, undefined>, v.ReadonlyAction<{
206
+ type: "parameter";
207
+ id: string;
208
+ name: string;
209
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
210
+ readonly type: v.LiteralSchema<"ref", undefined>;
211
+ readonly id: v.StringSchema<undefined>;
212
+ }, undefined>, v.ReadonlyAction<{
213
+ type: "ref";
214
+ id: string;
215
+ }>]>, v.StringSchema<undefined>], undefined>, undefined>;
216
+ readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
217
+ readonly type: v.LiteralSchema<"parameter", undefined>;
218
+ readonly id: v.StringSchema<undefined>;
219
+ readonly name: v.StringSchema<undefined>;
220
+ }, undefined>, v.ReadonlyAction<{
221
+ type: "parameter";
222
+ id: string;
223
+ name: string;
224
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
225
+ readonly type: v.LiteralSchema<"ref", undefined>;
226
+ readonly id: v.StringSchema<undefined>;
227
+ }, undefined>, v.ReadonlyAction<{
228
+ type: "ref";
229
+ id: string;
230
+ }>]>, v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
231
+ readonly type: v.LiteralSchema<"parameter", undefined>;
232
+ readonly id: v.StringSchema<undefined>;
233
+ readonly name: v.StringSchema<undefined>;
234
+ }, undefined>, v.ReadonlyAction<{
235
+ type: "parameter";
236
+ id: string;
237
+ name: string;
238
+ }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
239
+ readonly type: v.LiteralSchema<"ref", undefined>;
240
+ readonly id: v.StringSchema<undefined>;
241
+ }, undefined>, v.ReadonlyAction<{
242
+ type: "ref";
243
+ id: string;
244
+ }>]>, v.UnknownSchema], undefined>, undefined>, v.ReadonlyAction<{
245
+ [x: string]: unknown;
246
+ }>]>], undefined>, undefined>;
247
+ }, undefined>, v.ReadonlyAction<{
248
+ type: "input";
249
+ path: readonly (string | number)[] | Readonly<{
250
+ type: "parameter";
251
+ id: string;
252
+ name: string;
253
+ }> | Readonly<{
254
+ type: "ref";
255
+ id: string;
256
+ }>;
257
+ displayName?: string | Readonly<{
258
+ type: "parameter";
259
+ id: string;
260
+ name: string;
261
+ }> | Readonly<{
262
+ type: "ref";
263
+ id: string;
264
+ }> | undefined;
265
+ kind?: string | Readonly<{
266
+ type: "parameter";
267
+ id: string;
268
+ name: string;
269
+ }> | Readonly<{
270
+ type: "ref";
271
+ id: string;
272
+ }> | undefined;
273
+ metadata?: Readonly<{
274
+ type: "parameter";
275
+ id: string;
276
+ name: string;
277
+ }> | Readonly<{
278
+ type: "ref";
279
+ id: string;
280
+ }> | Readonly<{
281
+ [x: string]: unknown;
282
+ }> | undefined;
283
+ }>]>], undefined>, undefined>, v.ReadonlyAction<(Readonly<{
284
+ type: "parameter";
285
+ id: string;
286
+ name: string;
287
+ }> | Readonly<{
288
+ type: "ref";
289
+ id: string;
290
+ }> | Readonly<{
291
+ type: "input";
292
+ path: readonly (string | number)[] | Readonly<{
293
+ type: "parameter";
294
+ id: string;
295
+ name: string;
296
+ }> | Readonly<{
297
+ type: "ref";
298
+ id: string;
299
+ }>;
300
+ displayName?: string | Readonly<{
301
+ type: "parameter";
302
+ id: string;
303
+ name: string;
304
+ }> | Readonly<{
305
+ type: "ref";
306
+ id: string;
307
+ }> | undefined;
308
+ kind?: string | Readonly<{
309
+ type: "parameter";
310
+ id: string;
311
+ name: string;
312
+ }> | Readonly<{
313
+ type: "ref";
314
+ id: string;
315
+ }> | undefined;
316
+ metadata?: Readonly<{
317
+ type: "parameter";
318
+ id: string;
319
+ name: string;
320
+ }> | Readonly<{
321
+ type: "ref";
322
+ id: string;
323
+ }> | Readonly<{
324
+ [x: string]: unknown;
325
+ }> | undefined;
326
+ }>)[]>]>;
327
+ export type BuilderUIInputsSerialised = v.InferOutput<typeof BuilderUIInputsSerialisedSchema>;
328
+ export type BuilderUIInputs = ReadonlyArray<Paramable<BuilderUIInput>>;
329
+ export type BuilderUIValidInput<State extends BuilderModelState> = {
330
+ readonly type: 'input';
331
+ readonly path: Paramable<Readonly<BuilderValidPath<State>>>;
332
+ };
333
+ export type BuilderUIValidInputs<State extends BuilderModelState> = ReadonlyArray<Paramable<BuilderUIValidInput<State>>>;
334
+ export type BuilderUIValidInputsOf<Input extends Paramable<BuilderModelGeneric>> = BuilderUIValidInputs<BuilderModelStateOf<Input>>;