@builder-builder/builder 0.0.24 → 0.0.26

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 (120) hide show
  1. package/dist/client/client.d.ts +3 -1
  2. package/dist/client/client.js +29 -20
  3. package/dist/client/index.d.ts +1 -4
  4. package/dist/client/index.js +1 -2
  5. package/dist/client/public.d.ts +4 -0
  6. package/dist/client/public.js +2 -0
  7. package/dist/client/schema.d.ts +26 -18
  8. package/dist/client/schema.js +7 -1
  9. package/dist/entities/builder/builder.js +2 -1
  10. package/dist/entities/collection/collection.d.ts +2 -2
  11. package/dist/entities/collection/collection.js +2 -1
  12. package/dist/entities/collection/config.d.ts +21 -21
  13. package/dist/entities/collection/config.js +4 -3
  14. package/dist/entities/component/component.d.ts +32 -32
  15. package/dist/entities/component/component.js +2 -1
  16. package/dist/entities/component/config.d.ts +13 -13
  17. package/dist/entities/component/config.js +1 -1
  18. package/dist/entities/component/field.d.ts +4 -4
  19. package/dist/entities/component/field.js +4 -3
  20. package/dist/entities/expectation.d.ts +3 -3
  21. package/dist/entities/expectation.js +2 -1
  22. package/dist/entities/index.d.ts +1 -1
  23. package/dist/entities/kind.d.ts +4 -4
  24. package/dist/entities/kind.js +44 -4
  25. package/dist/entities/model/models.d.ts +3 -3
  26. package/dist/entities/option/config.d.ts +4 -4
  27. package/dist/entities/option/option.d.ts +24 -24
  28. package/dist/entities/option/option.js +2 -1
  29. package/dist/entities/option/select.d.ts +2 -2
  30. package/dist/entities/option/select.js +12 -9
  31. package/dist/entities/option/toggle.d.ts +2 -2
  32. package/dist/entities/option/toggle.js +5 -4
  33. package/dist/entities/paths.d.ts +4 -4
  34. package/dist/entities/paths.js +2 -1
  35. package/dist/entities/pricing/expression.js +5 -4
  36. package/dist/entities/pricing/rates.d.ts +1 -1
  37. package/dist/entities/pricing/rates.js +2 -1
  38. package/dist/entities/references.d.ts +2 -2
  39. package/dist/entities/references.js +2 -1
  40. package/dist/entities/serialise.d.ts +204 -116
  41. package/dist/entities/serialise.js +4 -3
  42. package/dist/entities/tags.d.ts +1 -1
  43. package/dist/entities/tags.js +2 -1
  44. package/dist/entities/ui/describe.d.ts +79 -35
  45. package/dist/entities/ui/describe.js +5 -4
  46. package/dist/entities/ui/input.d.ts +93 -49
  47. package/dist/entities/ui/input.js +5 -4
  48. package/dist/entities/ui/page.d.ts +77 -33
  49. package/dist/entities/ui/page.js +4 -3
  50. package/dist/entities/ui/pages.d.ts +5 -5
  51. package/dist/entities/ui/pages.js +5 -4
  52. package/dist/entities/validated.d.ts +1 -0
  53. package/dist/entities/when.d.ts +16 -16
  54. package/dist/entities/when.js +2 -2
  55. package/dist/errors/check.d.ts +2 -3
  56. package/dist/errors/check.js +5 -10
  57. package/dist/errors/errors.d.ts +241 -158
  58. package/dist/errors/errors.js +149 -173
  59. package/dist/errors/exception.d.ts +6 -4
  60. package/dist/errors/exception.js +11 -66
  61. package/dist/errors/index.d.ts +2 -4
  62. package/dist/errors/index.js +2 -2
  63. package/dist/errors/public.d.ts +2 -0
  64. package/dist/errors/public.js +1 -0
  65. package/dist/index.d.ts +4 -36
  66. package/dist/index.js +4 -19
  67. package/dist/instance.d.ts +7 -7
  68. package/dist/instance.js +4 -4
  69. package/dist/mappers/index.d.ts +1 -1
  70. package/dist/mappers/price.js +2 -3
  71. package/dist/mappers/render/collection.d.ts +9 -0
  72. package/dist/mappers/render/collection.js +27 -0
  73. package/dist/mappers/render/compose.d.ts +5 -0
  74. package/dist/mappers/render/compose.js +15 -0
  75. package/dist/mappers/render/description.d.ts +3 -0
  76. package/dist/mappers/render/description.js +17 -0
  77. package/dist/mappers/render/index.d.ts +3 -1
  78. package/dist/mappers/render/option.d.ts +20 -0
  79. package/dist/mappers/render/option.js +25 -0
  80. package/dist/mappers/render/page.d.ts +11 -0
  81. package/dist/mappers/render/page.js +11 -0
  82. package/dist/mappers/render/paths.d.ts +3 -0
  83. package/dist/mappers/render/paths.js +21 -0
  84. package/dist/mappers/render/render.d.ts +1 -1
  85. package/dist/mappers/render/render.js +33 -98
  86. package/dist/mappers/resolve.d.ts +2 -1
  87. package/dist/mappers/resolve.js +26 -25
  88. package/dist/mappers/variants/option-graph.js +11 -4
  89. package/dist/mappers/variants/variants.js +7 -6
  90. package/dist/primitive.d.ts +5 -0
  91. package/dist/primitive.js +6 -1
  92. package/dist/public.d.ts +37 -0
  93. package/dist/public.js +19 -0
  94. package/dist/references.d.ts +6 -6
  95. package/dist/references.js +3 -2
  96. package/dist/validate/brand.js +2 -4
  97. package/dist/validate/builder.d.ts +2 -2
  98. package/dist/validate/builder.js +3 -3
  99. package/dist/validate/expectations.d.ts +2 -2
  100. package/dist/validate/expectations.js +1 -1
  101. package/dist/validate/index.d.ts +0 -1
  102. package/dist/validate/instance.d.ts +2 -2
  103. package/dist/validate/instance.js +6 -6
  104. package/dist/validate/model.d.ts +4 -4
  105. package/dist/validate/model.js +129 -101
  106. package/dist/validate/paths.d.ts +2 -2
  107. package/dist/validate/paths.js +47 -25
  108. package/dist/validate/pricing.d.ts +4 -4
  109. package/dist/validate/pricing.js +30 -18
  110. package/dist/validate/resolve.d.ts +4 -3
  111. package/dist/validate/resolve.js +88 -63
  112. package/dist/validate/ui.d.ts +4 -4
  113. package/dist/validate/ui.js +17 -16
  114. package/dist/validate/variants.d.ts +2 -2
  115. package/dist/validate/variants.js +16 -16
  116. package/package.json +11 -7
  117. package/dist/mappers/render/pages.d.ts +0 -24
  118. package/dist/mappers/render/pages.js +0 -2
  119. package/dist/private.d.ts +0 -3
  120. package/dist/private.js +0 -3
@@ -1,5 +1,6 @@
1
1
  import * as v from 'valibot';
2
2
  import { check } from '../errors/index.js';
3
+ import { BooleanSchema, NumberSchema, StringSchema } from '../primitive.js';
3
4
  import { BuilderParameterSchema, BuilderRefSchema, isParamable } from '../references.js';
4
5
  import { BuilderSchema, BuilderSerialisedSchema } from './builder/index.js';
5
6
  import { BuilderCollectionConfigSchema, BuilderCollectionConfigSerialisedSchema, BuilderCollectionSchema, BuilderCollectionSelectMapSerialisedSchema, BuilderCollectionWhenSerialisedSchema } from './collection/index.js';
@@ -62,9 +63,9 @@ export const entitiesMap = {
62
63
  },
63
64
  paths: { runtime: BuilderPathsSchema, serialised: BuilderPathsSchema },
64
65
  path: { runtime: BuilderPathSchema, serialised: BuilderPathSchema },
65
- number: { runtime: v.number(), serialised: v.number() },
66
- string: { runtime: v.string(), serialised: v.string() },
67
- boolean: { runtime: v.boolean(), serialised: v.boolean() }
66
+ number: { runtime: NumberSchema, serialised: NumberSchema },
67
+ string: { runtime: StringSchema, serialised: StringSchema },
68
+ boolean: { runtime: BooleanSchema, serialised: BooleanSchema }
68
69
  };
69
70
  export const validateNumber = createEntityValidator('number', entitiesMap.number.serialised);
70
71
  export const validateString = createEntityValidator('string', entitiesMap.string.serialised);
@@ -1,3 +1,3 @@
1
1
  import * as v from 'valibot';
2
- export declare const BuilderTagsSchema: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>;
2
+ export declare const BuilderTagsSchema: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.ReadonlyAction<string[]>]>;
3
3
  export type BuilderTags = v.InferOutput<typeof BuilderTagsSchema>;
@@ -1,2 +1,3 @@
1
1
  import * as v from 'valibot';
2
- export const BuilderTagsSchema = v.pipe(v.array(v.string()), v.readonly());
2
+ import { NameSchema } from '../primitive.js';
3
+ export const BuilderTagsSchema = v.pipe(v.array(NameSchema), v.readonly());
@@ -2,9 +2,9 @@ import type { Paramable } from '../../references';
2
2
  import type { BuilderTags } from '../tags';
3
3
  import type { BuilderUIInputs } from './input';
4
4
  import * as v from 'valibot';
5
- export declare const BuilderDescriptionItemSchema: v.SchemaWithPipe<readonly [v.TupleSchema<[v.StringSchema<undefined>, v.StringSchema<undefined>], undefined>, v.ReadonlyAction<[string, string]>]>;
5
+ export declare const BuilderDescriptionItemSchema: v.SchemaWithPipe<readonly [v.TupleSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, v.ReadonlyAction<[string, string]>]>;
6
6
  export type BuilderDescriptionItem = v.InferOutput<typeof BuilderDescriptionItemSchema>;
7
- 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
+ export declare const BuilderDescriptionSchema: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.TupleSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, v.ReadonlyAction<[string, string]>]>, undefined>, v.ReadonlyAction<(readonly [string, string])[]>]>;
8
8
  export type BuilderDescription = v.InferOutput<typeof BuilderDescriptionSchema>;
9
9
  export declare class BuilderUIDescribe<const Label extends Paramable<string> = Paramable<string>, const Inputs extends Paramable<BuilderUIInputs> = Paramable<BuilderUIInputs>> {
10
10
  readonly type: "describe";
@@ -19,44 +19,44 @@ export declare const BuilderUIDescribeSerialisedSchema: v.SchemaWithPipe<readonl
19
19
  readonly type: v.LiteralSchema<"describe", undefined>;
20
20
  readonly label: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
21
21
  readonly type: v.LiteralSchema<"parameter", undefined>;
22
- readonly id: v.StringSchema<undefined>;
23
- readonly name: v.StringSchema<undefined>;
22
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
23
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
24
24
  }, undefined>, v.ReadonlyAction<{
25
25
  type: "parameter";
26
26
  id: string;
27
27
  name: string;
28
28
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
29
29
  readonly type: v.LiteralSchema<"ref", undefined>;
30
- readonly id: v.StringSchema<undefined>;
30
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
31
31
  }, undefined>, v.ReadonlyAction<{
32
32
  type: "ref";
33
33
  id: string;
34
- }>]>, v.StringSchema<undefined>], undefined>;
34
+ }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>;
35
35
  readonly inputs: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
36
36
  readonly type: v.LiteralSchema<"parameter", undefined>;
37
- readonly id: v.StringSchema<undefined>;
38
- readonly name: v.StringSchema<undefined>;
37
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
38
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
39
39
  }, undefined>, v.ReadonlyAction<{
40
40
  type: "parameter";
41
41
  id: string;
42
42
  name: string;
43
43
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
44
44
  readonly type: v.LiteralSchema<"ref", undefined>;
45
- readonly id: v.StringSchema<undefined>;
45
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
46
46
  }, undefined>, v.ReadonlyAction<{
47
47
  type: "ref";
48
48
  id: string;
49
49
  }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
50
50
  readonly type: v.LiteralSchema<"parameter", undefined>;
51
- readonly id: v.StringSchema<undefined>;
52
- readonly name: v.StringSchema<undefined>;
51
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
52
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
53
53
  }, undefined>, v.ReadonlyAction<{
54
54
  type: "parameter";
55
55
  id: string;
56
56
  name: string;
57
57
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
58
58
  readonly type: v.LiteralSchema<"ref", undefined>;
59
- readonly id: v.StringSchema<undefined>;
59
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
60
60
  }, undefined>, v.ReadonlyAction<{
61
61
  type: "ref";
62
62
  id: string;
@@ -64,81 +64,81 @@ export declare const BuilderUIDescribeSerialisedSchema: v.SchemaWithPipe<readonl
64
64
  readonly type: v.LiteralSchema<"input", undefined>;
65
65
  readonly path: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
66
66
  readonly type: v.LiteralSchema<"parameter", undefined>;
67
- readonly id: v.StringSchema<undefined>;
68
- readonly name: v.StringSchema<undefined>;
67
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
68
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
69
69
  }, undefined>, v.ReadonlyAction<{
70
70
  type: "parameter";
71
71
  id: string;
72
72
  name: string;
73
73
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
74
74
  readonly type: v.LiteralSchema<"ref", undefined>;
75
- readonly id: v.StringSchema<undefined>;
75
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
76
76
  }, undefined>, v.ReadonlyAction<{
77
77
  type: "ref";
78
78
  id: string;
79
- }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>], undefined>;
79
+ }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>], undefined>;
80
80
  readonly displayName: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
81
81
  readonly type: v.LiteralSchema<"parameter", undefined>;
82
- readonly id: v.StringSchema<undefined>;
83
- readonly name: v.StringSchema<undefined>;
82
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
83
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
84
84
  }, undefined>, v.ReadonlyAction<{
85
85
  type: "parameter";
86
86
  id: string;
87
87
  name: string;
88
88
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
89
89
  readonly type: v.LiteralSchema<"ref", undefined>;
90
- readonly id: v.StringSchema<undefined>;
90
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
91
91
  }, undefined>, v.ReadonlyAction<{
92
92
  type: "ref";
93
93
  id: string;
94
- }>]>, v.StringSchema<undefined>], undefined>, undefined>;
94
+ }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
95
95
  readonly kind: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
96
96
  readonly type: v.LiteralSchema<"parameter", undefined>;
97
- readonly id: v.StringSchema<undefined>;
98
- readonly name: v.StringSchema<undefined>;
97
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
98
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
99
99
  }, undefined>, v.ReadonlyAction<{
100
100
  type: "parameter";
101
101
  id: string;
102
102
  name: string;
103
103
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
104
104
  readonly type: v.LiteralSchema<"ref", undefined>;
105
- readonly id: v.StringSchema<undefined>;
105
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
106
106
  }, undefined>, v.ReadonlyAction<{
107
107
  type: "ref";
108
108
  id: string;
109
- }>]>, v.StringSchema<undefined>], undefined>, undefined>;
109
+ }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
110
110
  readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
111
111
  readonly type: v.LiteralSchema<"parameter", undefined>;
112
- readonly id: v.StringSchema<undefined>;
113
- readonly name: v.StringSchema<undefined>;
112
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
113
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
114
114
  }, undefined>, v.ReadonlyAction<{
115
115
  type: "parameter";
116
116
  id: string;
117
117
  name: string;
118
118
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
119
119
  readonly type: v.LiteralSchema<"ref", undefined>;
120
- readonly id: v.StringSchema<undefined>;
120
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
121
121
  }, undefined>, v.ReadonlyAction<{
122
122
  type: "ref";
123
123
  id: string;
124
- }>]>, v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
124
+ }>]>, v.SchemaWithPipe<readonly [v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
125
125
  readonly type: v.LiteralSchema<"parameter", undefined>;
126
- readonly id: v.StringSchema<undefined>;
127
- readonly name: v.StringSchema<undefined>;
126
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
127
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
128
128
  }, undefined>, v.ReadonlyAction<{
129
129
  type: "parameter";
130
130
  id: string;
131
131
  name: string;
132
132
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
133
133
  readonly type: v.LiteralSchema<"ref", undefined>;
134
- readonly id: v.StringSchema<undefined>;
134
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
135
135
  }, undefined>, v.ReadonlyAction<{
136
136
  type: "ref";
137
137
  id: string;
138
138
  }>]>, v.UnknownSchema], undefined>, undefined>, v.ReadonlyAction<{
139
139
  [x: string]: unknown;
140
140
  }>]>], undefined>, undefined>;
141
- readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
141
+ readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
142
142
  }, undefined>, v.ReadonlyAction<{
143
143
  type: "input";
144
144
  path: readonly (string | number)[] | Readonly<{
@@ -176,7 +176,51 @@ export declare const BuilderUIDescribeSerialisedSchema: v.SchemaWithPipe<readonl
176
176
  [x: string]: unknown;
177
177
  }> | undefined;
178
178
  tags?: readonly string[] | undefined;
179
- }>]>], undefined>, undefined>, v.ReadonlyAction<(Readonly<{
179
+ }>]>], undefined>, undefined>, v.MinLengthAction<(Readonly<{
180
+ type: "parameter";
181
+ id: string;
182
+ name: string;
183
+ }> | Readonly<{
184
+ type: "ref";
185
+ id: string;
186
+ }> | Readonly<{
187
+ type: "input";
188
+ path: readonly (string | number)[] | Readonly<{
189
+ type: "parameter";
190
+ id: string;
191
+ name: string;
192
+ }> | Readonly<{
193
+ type: "ref";
194
+ id: string;
195
+ }>;
196
+ displayName?: string | Readonly<{
197
+ type: "parameter";
198
+ id: string;
199
+ name: string;
200
+ }> | Readonly<{
201
+ type: "ref";
202
+ id: string;
203
+ }> | undefined;
204
+ kind?: string | Readonly<{
205
+ type: "parameter";
206
+ id: string;
207
+ name: string;
208
+ }> | Readonly<{
209
+ type: "ref";
210
+ id: string;
211
+ }> | undefined;
212
+ metadata?: Readonly<{
213
+ type: "parameter";
214
+ id: string;
215
+ name: string;
216
+ }> | Readonly<{
217
+ type: "ref";
218
+ id: string;
219
+ }> | Readonly<{
220
+ [x: string]: unknown;
221
+ }> | undefined;
222
+ tags?: readonly string[] | undefined;
223
+ }>)[], 1, undefined>, v.ReadonlyAction<(Readonly<{
180
224
  type: "parameter";
181
225
  id: string;
182
226
  name: string;
@@ -221,7 +265,7 @@ export declare const BuilderUIDescribeSerialisedSchema: v.SchemaWithPipe<readonl
221
265
  }> | undefined;
222
266
  tags?: readonly string[] | undefined;
223
267
  }>)[]>]>], undefined>;
224
- readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
268
+ readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
225
269
  }, undefined>, v.ReadonlyAction<{
226
270
  type: "describe";
227
271
  label: string | Readonly<{
@@ -287,7 +331,7 @@ export declare const BuilderUIDescribeSerialisedSchema: v.SchemaWithPipe<readonl
287
331
  tags?: readonly string[] | undefined;
288
332
  }>]>;
289
333
  export type BuilderUIDescribeSerialised = v.InferOutput<typeof BuilderUIDescribeSerialisedSchema>;
290
- export declare const validateUIDescribe: (input: unknown, references?: import("..").BuilderReferences, errors?: import("../../errors").BuilderValidateErrors) => import("..").ValidationResult<{
334
+ export declare const validateUIDescribe: (input: unknown, references?: import("..").BuilderReferences, errors?: import("../../errors").BuilderErrorsScope) => import("..").ValidationResult<{
291
335
  readonly type: "describe";
292
336
  readonly label: string;
293
337
  readonly inputs: readonly {
@@ -1,10 +1,11 @@
1
1
  import * as v from 'valibot';
2
+ import { NameSchema } from '../../primitive.js';
2
3
  import { isParamable, paramable } from '../../references.js';
3
4
  import { createEntityValidator } from '../kind.js';
4
5
  import { serialisable } from '../serialisable.js';
5
6
  import { BuilderTagsSchema } from '../tags.js';
6
7
  import { BuilderUIInputsSerialisedSchema } from './input.js';
7
- export const BuilderDescriptionItemSchema = v.pipe(v.tuple([v.string(), v.string()]), v.readonly());
8
+ export const BuilderDescriptionItemSchema = v.pipe(v.tuple([NameSchema, NameSchema]), v.readonly());
8
9
  export const BuilderDescriptionSchema = v.pipe(v.array(BuilderDescriptionItemSchema), v.readonly());
9
10
  export class BuilderUIDescribe {
10
11
  type = 'describe';
@@ -23,15 +24,15 @@ export class BuilderUIDescribe {
23
24
  export const BuilderUIDescribeSchema = v.instance(BuilderUIDescribe);
24
25
  export const BuilderUIDescribeSerialisedSchema = serialisable(v.object({
25
26
  type: v.literal('describe'),
26
- label: paramable(v.string()),
27
+ label: paramable(NameSchema),
27
28
  inputs: paramable(BuilderUIInputsSerialisedSchema),
28
29
  tags: v.optional(BuilderTagsSchema)
29
30
  }));
30
31
  export const validateUIDescribe = createEntityValidator('uiDescribe', BuilderUIDescribeSerialisedSchema, (input, errors) => {
31
32
  if (!isParamable(input.label) && input.label.length === 0) {
32
- errors.emptyLabel();
33
+ errors.entityEmptyLabel();
33
34
  }
34
35
  if (!isParamable(input.inputs) && input.inputs.length === 0) {
35
- errors.emptyInputs();
36
+ errors.entityEmptyInputs();
36
37
  }
37
38
  });
@@ -22,17 +22,17 @@ export declare class BuilderUIInput<const Path extends Paramable<BuilderPath> =
22
22
  }
23
23
  export declare function input<const Path extends Paramable<BuilderPath>>(path: Path): BuilderUIInput<Path>;
24
24
  export declare const BuilderUIInputSchema: v.InstanceSchema<typeof BuilderUIInput, undefined>;
25
- export declare const BuilderUIInputMetadataSchema: v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
25
+ export declare const BuilderUIInputMetadataSchema: v.SchemaWithPipe<readonly [v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
26
26
  readonly type: v.LiteralSchema<"parameter", undefined>;
27
- readonly id: v.StringSchema<undefined>;
28
- readonly name: v.StringSchema<undefined>;
27
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
28
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
29
29
  }, undefined>, v.ReadonlyAction<{
30
30
  type: "parameter";
31
31
  id: string;
32
32
  name: string;
33
33
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
34
34
  readonly type: v.LiteralSchema<"ref", undefined>;
35
- readonly id: v.StringSchema<undefined>;
35
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
36
36
  }, undefined>, v.ReadonlyAction<{
37
37
  type: "ref";
38
38
  id: string;
@@ -43,81 +43,81 @@ export declare const BuilderUIInputSerialisedSchema: v.SchemaWithPipe<readonly [
43
43
  readonly type: v.LiteralSchema<"input", undefined>;
44
44
  readonly path: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
45
45
  readonly type: v.LiteralSchema<"parameter", undefined>;
46
- readonly id: v.StringSchema<undefined>;
47
- readonly name: v.StringSchema<undefined>;
46
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
47
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
48
48
  }, undefined>, v.ReadonlyAction<{
49
49
  type: "parameter";
50
50
  id: string;
51
51
  name: string;
52
52
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
53
53
  readonly type: v.LiteralSchema<"ref", undefined>;
54
- readonly id: v.StringSchema<undefined>;
54
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
55
55
  }, undefined>, v.ReadonlyAction<{
56
56
  type: "ref";
57
57
  id: string;
58
- }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>], undefined>;
58
+ }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>], undefined>;
59
59
  readonly displayName: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
60
60
  readonly type: v.LiteralSchema<"parameter", undefined>;
61
- readonly id: v.StringSchema<undefined>;
62
- readonly name: v.StringSchema<undefined>;
61
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
62
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
63
63
  }, undefined>, v.ReadonlyAction<{
64
64
  type: "parameter";
65
65
  id: string;
66
66
  name: string;
67
67
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
68
68
  readonly type: v.LiteralSchema<"ref", undefined>;
69
- readonly id: v.StringSchema<undefined>;
69
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
70
70
  }, undefined>, v.ReadonlyAction<{
71
71
  type: "ref";
72
72
  id: string;
73
- }>]>, v.StringSchema<undefined>], undefined>, undefined>;
73
+ }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
74
74
  readonly kind: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
75
75
  readonly type: v.LiteralSchema<"parameter", undefined>;
76
- readonly id: v.StringSchema<undefined>;
77
- readonly name: v.StringSchema<undefined>;
76
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
77
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
78
78
  }, undefined>, v.ReadonlyAction<{
79
79
  type: "parameter";
80
80
  id: string;
81
81
  name: string;
82
82
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
83
83
  readonly type: v.LiteralSchema<"ref", undefined>;
84
- readonly id: v.StringSchema<undefined>;
84
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
85
85
  }, undefined>, v.ReadonlyAction<{
86
86
  type: "ref";
87
87
  id: string;
88
- }>]>, v.StringSchema<undefined>], undefined>, undefined>;
88
+ }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
89
89
  readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
90
90
  readonly type: v.LiteralSchema<"parameter", undefined>;
91
- readonly id: v.StringSchema<undefined>;
92
- readonly name: v.StringSchema<undefined>;
91
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
92
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
93
93
  }, undefined>, v.ReadonlyAction<{
94
94
  type: "parameter";
95
95
  id: string;
96
96
  name: string;
97
97
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
98
98
  readonly type: v.LiteralSchema<"ref", undefined>;
99
- readonly id: v.StringSchema<undefined>;
99
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
100
100
  }, undefined>, v.ReadonlyAction<{
101
101
  type: "ref";
102
102
  id: string;
103
- }>]>, v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
103
+ }>]>, v.SchemaWithPipe<readonly [v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
104
104
  readonly type: v.LiteralSchema<"parameter", undefined>;
105
- readonly id: v.StringSchema<undefined>;
106
- readonly name: v.StringSchema<undefined>;
105
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
106
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
107
107
  }, undefined>, v.ReadonlyAction<{
108
108
  type: "parameter";
109
109
  id: string;
110
110
  name: string;
111
111
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
112
112
  readonly type: v.LiteralSchema<"ref", undefined>;
113
- readonly id: v.StringSchema<undefined>;
113
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
114
114
  }, undefined>, v.ReadonlyAction<{
115
115
  type: "ref";
116
116
  id: string;
117
117
  }>]>, v.UnknownSchema], undefined>, undefined>, v.ReadonlyAction<{
118
118
  [x: string]: unknown;
119
119
  }>]>], undefined>, undefined>;
120
- readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
120
+ readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
121
121
  }, undefined>, v.ReadonlyAction<{
122
122
  type: "input";
123
123
  path: readonly (string | number)[] | Readonly<{
@@ -159,15 +159,15 @@ export declare const BuilderUIInputSerialisedSchema: v.SchemaWithPipe<readonly [
159
159
  export type BuilderUIInputSerialised = v.InferOutput<typeof BuilderUIInputSerialisedSchema>;
160
160
  export declare const BuilderUIInputsSerialisedSchema: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
161
161
  readonly type: v.LiteralSchema<"parameter", undefined>;
162
- readonly id: v.StringSchema<undefined>;
163
- readonly name: v.StringSchema<undefined>;
162
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
163
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
164
164
  }, undefined>, v.ReadonlyAction<{
165
165
  type: "parameter";
166
166
  id: string;
167
167
  name: string;
168
168
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
169
169
  readonly type: v.LiteralSchema<"ref", undefined>;
170
- readonly id: v.StringSchema<undefined>;
170
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
171
171
  }, undefined>, v.ReadonlyAction<{
172
172
  type: "ref";
173
173
  id: string;
@@ -175,81 +175,81 @@ export declare const BuilderUIInputsSerialisedSchema: v.SchemaWithPipe<readonly
175
175
  readonly type: v.LiteralSchema<"input", undefined>;
176
176
  readonly path: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
177
177
  readonly type: v.LiteralSchema<"parameter", undefined>;
178
- readonly id: v.StringSchema<undefined>;
179
- readonly name: v.StringSchema<undefined>;
178
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
179
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
180
180
  }, undefined>, v.ReadonlyAction<{
181
181
  type: "parameter";
182
182
  id: string;
183
183
  name: string;
184
184
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
185
185
  readonly type: v.LiteralSchema<"ref", undefined>;
186
- readonly id: v.StringSchema<undefined>;
186
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
187
187
  }, undefined>, v.ReadonlyAction<{
188
188
  type: "ref";
189
189
  id: string;
190
- }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>], undefined>;
190
+ }>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>], undefined>;
191
191
  readonly displayName: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
192
192
  readonly type: v.LiteralSchema<"parameter", undefined>;
193
- readonly id: v.StringSchema<undefined>;
194
- readonly name: v.StringSchema<undefined>;
193
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
194
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
195
195
  }, undefined>, v.ReadonlyAction<{
196
196
  type: "parameter";
197
197
  id: string;
198
198
  name: string;
199
199
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
200
200
  readonly type: v.LiteralSchema<"ref", undefined>;
201
- readonly id: v.StringSchema<undefined>;
201
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
202
202
  }, undefined>, v.ReadonlyAction<{
203
203
  type: "ref";
204
204
  id: string;
205
- }>]>, v.StringSchema<undefined>], undefined>, undefined>;
205
+ }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
206
206
  readonly kind: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
207
207
  readonly type: v.LiteralSchema<"parameter", undefined>;
208
- readonly id: v.StringSchema<undefined>;
209
- readonly name: v.StringSchema<undefined>;
208
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
209
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
210
210
  }, undefined>, v.ReadonlyAction<{
211
211
  type: "parameter";
212
212
  id: string;
213
213
  name: string;
214
214
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
215
215
  readonly type: v.LiteralSchema<"ref", undefined>;
216
- readonly id: v.StringSchema<undefined>;
216
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
217
217
  }, undefined>, v.ReadonlyAction<{
218
218
  type: "ref";
219
219
  id: string;
220
- }>]>, v.StringSchema<undefined>], undefined>, undefined>;
220
+ }>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>], undefined>, undefined>;
221
221
  readonly metadata: v.OptionalSchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
222
222
  readonly type: v.LiteralSchema<"parameter", undefined>;
223
- readonly id: v.StringSchema<undefined>;
224
- readonly name: v.StringSchema<undefined>;
223
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
224
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
225
225
  }, undefined>, v.ReadonlyAction<{
226
226
  type: "parameter";
227
227
  id: string;
228
228
  name: string;
229
229
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
230
230
  readonly type: v.LiteralSchema<"ref", undefined>;
231
- readonly id: v.StringSchema<undefined>;
231
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
232
232
  }, undefined>, v.ReadonlyAction<{
233
233
  type: "ref";
234
234
  id: string;
235
- }>]>, v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
235
+ }>]>, v.SchemaWithPipe<readonly [v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
236
236
  readonly type: v.LiteralSchema<"parameter", undefined>;
237
- readonly id: v.StringSchema<undefined>;
238
- readonly name: v.StringSchema<undefined>;
237
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
238
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
239
239
  }, undefined>, v.ReadonlyAction<{
240
240
  type: "parameter";
241
241
  id: string;
242
242
  name: string;
243
243
  }>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
244
244
  readonly type: v.LiteralSchema<"ref", undefined>;
245
- readonly id: v.StringSchema<undefined>;
245
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
246
246
  }, undefined>, v.ReadonlyAction<{
247
247
  type: "ref";
248
248
  id: string;
249
249
  }>]>, v.UnknownSchema], undefined>, undefined>, v.ReadonlyAction<{
250
250
  [x: string]: unknown;
251
251
  }>]>], undefined>, undefined>;
252
- readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
252
+ readonly tags: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.ReadonlyAction<string[]>]>, undefined>;
253
253
  }, undefined>, v.ReadonlyAction<{
254
254
  type: "input";
255
255
  path: readonly (string | number)[] | Readonly<{
@@ -287,7 +287,51 @@ export declare const BuilderUIInputsSerialisedSchema: v.SchemaWithPipe<readonly
287
287
  [x: string]: unknown;
288
288
  }> | undefined;
289
289
  tags?: readonly string[] | undefined;
290
- }>]>], undefined>, undefined>, v.ReadonlyAction<(Readonly<{
290
+ }>]>], undefined>, undefined>, v.MinLengthAction<(Readonly<{
291
+ type: "parameter";
292
+ id: string;
293
+ name: string;
294
+ }> | Readonly<{
295
+ type: "ref";
296
+ id: string;
297
+ }> | Readonly<{
298
+ type: "input";
299
+ path: readonly (string | number)[] | Readonly<{
300
+ type: "parameter";
301
+ id: string;
302
+ name: string;
303
+ }> | Readonly<{
304
+ type: "ref";
305
+ id: string;
306
+ }>;
307
+ displayName?: string | Readonly<{
308
+ type: "parameter";
309
+ id: string;
310
+ name: string;
311
+ }> | Readonly<{
312
+ type: "ref";
313
+ id: string;
314
+ }> | undefined;
315
+ kind?: string | Readonly<{
316
+ type: "parameter";
317
+ id: string;
318
+ name: string;
319
+ }> | Readonly<{
320
+ type: "ref";
321
+ id: string;
322
+ }> | undefined;
323
+ metadata?: Readonly<{
324
+ type: "parameter";
325
+ id: string;
326
+ name: string;
327
+ }> | Readonly<{
328
+ type: "ref";
329
+ id: string;
330
+ }> | Readonly<{
331
+ [x: string]: unknown;
332
+ }> | undefined;
333
+ tags?: readonly string[] | undefined;
334
+ }>)[], 1, undefined>, v.ReadonlyAction<(Readonly<{
291
335
  type: "parameter";
292
336
  id: string;
293
337
  name: string;
@@ -333,7 +377,7 @@ export declare const BuilderUIInputsSerialisedSchema: v.SchemaWithPipe<readonly
333
377
  tags?: readonly string[] | undefined;
334
378
  }>)[]>]>;
335
379
  export type BuilderUIInputsSerialised = v.InferOutput<typeof BuilderUIInputsSerialisedSchema>;
336
- export declare const validateUIInput: (input: unknown, references?: import("..").BuilderReferences, errors?: import("../../errors").BuilderValidateErrors) => import("..").ValidationResult<{
380
+ export declare const validateUIInput: (input: unknown, references?: import("..").BuilderReferences, errors?: import("../../errors").BuilderErrorsScope) => import("..").ValidationResult<{
337
381
  readonly type: "input";
338
382
  readonly path: readonly (string | number)[];
339
383
  readonly displayName?: string | undefined;