@crasi/bisque-spec 0.0.0-stage → 0.3.0

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.
@@ -0,0 +1,1025 @@
1
+ import { z } from "zod";
2
+ import { DraftSchema } from "./schema.js";
3
+ import { AutomationSchema } from "./automation.js";
4
+ export declare const ProposeRequestSchema: z.ZodObject<{
5
+ prompt: z.ZodString;
6
+ context: z.ZodObject<{
7
+ page: z.ZodOptional<z.ZodString>;
8
+ slot: z.ZodOptional<z.ZodString>;
9
+ locale: z.ZodString;
10
+ values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
11
+ }, z.core.$strict>;
12
+ contract: z.ZodObject<{
13
+ app: z.ZodString;
14
+ version: z.ZodString;
15
+ hash: z.ZodString;
16
+ }, z.core.$strict>;
17
+ history: z.ZodDefault<z.ZodArray<z.ZodObject<{
18
+ role: z.ZodEnum<{
19
+ assistant: "assistant";
20
+ user: "user";
21
+ }>;
22
+ text: z.ZodString;
23
+ }, z.core.$strict>>>;
24
+ current: z.ZodOptional<z.ZodObject<{
25
+ kind: z.ZodLiteral<"spec">;
26
+ body: z.ZodDiscriminatedUnion<[z.ZodObject<{
27
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
28
+ data: z.ZodObject<{
29
+ scan: z.ZodString;
30
+ join: z.ZodOptional<z.ZodArray<z.ZodObject<{
31
+ on: z.ZodString;
32
+ to: z.ZodString;
33
+ }, z.core.$strict>>>;
34
+ where: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodString, z.ZodEnum<{
35
+ "!=": "!=";
36
+ "<": "<";
37
+ "<=": "<=";
38
+ "=": "=";
39
+ ">": ">";
40
+ ">=": ">=";
41
+ in: "in";
42
+ match: "match";
43
+ notIn: "notIn";
44
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
45
+ param: z.ZodString;
46
+ }, z.core.$strict>, z.ZodObject<{
47
+ today: z.ZodNumber;
48
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
49
+ param: z.ZodString;
50
+ }, z.core.$strict>, z.ZodObject<{
51
+ today: z.ZodNumber;
52
+ }, z.core.$strict>]>>]>], null>, z.ZodTuple<[z.ZodString, z.ZodEnum<{
53
+ isNull: "isNull";
54
+ notNull: "notNull";
55
+ }>], null>]>>>;
56
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
57
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
58
+ as: z.ZodString;
59
+ sum: z.ZodString;
60
+ }, z.core.$strict>, z.ZodObject<{
61
+ as: z.ZodString;
62
+ avg: z.ZodString;
63
+ }, z.core.$strict>, z.ZodObject<{
64
+ as: z.ZodString;
65
+ min: z.ZodString;
66
+ }, z.core.$strict>, z.ZodObject<{
67
+ as: z.ZodString;
68
+ max: z.ZodString;
69
+ }, z.core.$strict>, z.ZodObject<{
70
+ as: z.ZodString;
71
+ count: z.ZodString;
72
+ }, z.core.$strict>, z.ZodObject<{
73
+ as: z.ZodString;
74
+ countDistinct: z.ZodString;
75
+ }, z.core.$strict>]>>>;
76
+ select: z.ZodOptional<z.ZodArray<z.ZodString>>;
77
+ orderBy: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodEnum<{
78
+ asc: "asc";
79
+ desc: "desc";
80
+ }>], null>>>;
81
+ limit: z.ZodNumber;
82
+ }, z.core.$strict>;
83
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
84
+ bind: z.ZodString;
85
+ }, z.core.$strict>, z.ZodObject<{
86
+ control: z.ZodLiteral<"slider">;
87
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
88
+ min: z.ZodNumber;
89
+ max: z.ZodNumber;
90
+ step: z.ZodOptional<z.ZodNumber>;
91
+ default: z.ZodNumber;
92
+ }, z.core.$strict>, z.ZodObject<{
93
+ control: z.ZodLiteral<"select">;
94
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
95
+ options: z.ZodArray<z.ZodObject<{
96
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
97
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
98
+ }, z.core.$strict>>;
99
+ default: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
100
+ }, z.core.$strict>, z.ZodObject<{
101
+ control: z.ZodLiteral<"toggle">;
102
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
103
+ default: z.ZodBoolean;
104
+ }, z.core.$strict>]>>>;
105
+ onClick: z.ZodOptional<z.ZodObject<{
106
+ navigate: z.ZodString;
107
+ args: z.ZodRecord<z.ZodString, z.ZodType<import("./schema.js").ArgExpr, unknown, z.core.$ZodTypeInternals<import("./schema.js").ArgExpr, unknown>>>;
108
+ }, z.core.$strict>>;
109
+ component: z.ZodLiteral<"sankey">;
110
+ encode: z.ZodObject<{
111
+ source: z.ZodString;
112
+ target: z.ZodString;
113
+ value: z.ZodString;
114
+ label: z.ZodOptional<z.ZodEnum<{
115
+ "share-of-source": "share-of-source";
116
+ "share-of-total": "share-of-total";
117
+ value: "value";
118
+ }>>;
119
+ }, z.core.$strict>;
120
+ otherBucket: z.ZodOptional<z.ZodObject<{
121
+ maxTargets: z.ZodNumber;
122
+ }, z.core.$strict>>;
123
+ }, z.core.$strict>, z.ZodObject<{
124
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
125
+ data: z.ZodObject<{
126
+ scan: z.ZodString;
127
+ join: z.ZodOptional<z.ZodArray<z.ZodObject<{
128
+ on: z.ZodString;
129
+ to: z.ZodString;
130
+ }, z.core.$strict>>>;
131
+ where: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodString, z.ZodEnum<{
132
+ "!=": "!=";
133
+ "<": "<";
134
+ "<=": "<=";
135
+ "=": "=";
136
+ ">": ">";
137
+ ">=": ">=";
138
+ in: "in";
139
+ match: "match";
140
+ notIn: "notIn";
141
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
142
+ param: z.ZodString;
143
+ }, z.core.$strict>, z.ZodObject<{
144
+ today: z.ZodNumber;
145
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
146
+ param: z.ZodString;
147
+ }, z.core.$strict>, z.ZodObject<{
148
+ today: z.ZodNumber;
149
+ }, z.core.$strict>]>>]>], null>, z.ZodTuple<[z.ZodString, z.ZodEnum<{
150
+ isNull: "isNull";
151
+ notNull: "notNull";
152
+ }>], null>]>>>;
153
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
154
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
155
+ as: z.ZodString;
156
+ sum: z.ZodString;
157
+ }, z.core.$strict>, z.ZodObject<{
158
+ as: z.ZodString;
159
+ avg: z.ZodString;
160
+ }, z.core.$strict>, z.ZodObject<{
161
+ as: z.ZodString;
162
+ min: z.ZodString;
163
+ }, z.core.$strict>, z.ZodObject<{
164
+ as: z.ZodString;
165
+ max: z.ZodString;
166
+ }, z.core.$strict>, z.ZodObject<{
167
+ as: z.ZodString;
168
+ count: z.ZodString;
169
+ }, z.core.$strict>, z.ZodObject<{
170
+ as: z.ZodString;
171
+ countDistinct: z.ZodString;
172
+ }, z.core.$strict>]>>>;
173
+ select: z.ZodOptional<z.ZodArray<z.ZodString>>;
174
+ orderBy: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodEnum<{
175
+ asc: "asc";
176
+ desc: "desc";
177
+ }>], null>>>;
178
+ limit: z.ZodNumber;
179
+ }, z.core.$strict>;
180
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
181
+ bind: z.ZodString;
182
+ }, z.core.$strict>, z.ZodObject<{
183
+ control: z.ZodLiteral<"slider">;
184
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
185
+ min: z.ZodNumber;
186
+ max: z.ZodNumber;
187
+ step: z.ZodOptional<z.ZodNumber>;
188
+ default: z.ZodNumber;
189
+ }, z.core.$strict>, z.ZodObject<{
190
+ control: z.ZodLiteral<"select">;
191
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
192
+ options: z.ZodArray<z.ZodObject<{
193
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
194
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
195
+ }, z.core.$strict>>;
196
+ default: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
197
+ }, z.core.$strict>, z.ZodObject<{
198
+ control: z.ZodLiteral<"toggle">;
199
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
200
+ default: z.ZodBoolean;
201
+ }, z.core.$strict>]>>>;
202
+ onClick: z.ZodOptional<z.ZodObject<{
203
+ navigate: z.ZodString;
204
+ args: z.ZodRecord<z.ZodString, z.ZodType<import("./schema.js").ArgExpr, unknown, z.core.$ZodTypeInternals<import("./schema.js").ArgExpr, unknown>>>;
205
+ }, z.core.$strict>>;
206
+ component: z.ZodLiteral<"bar">;
207
+ encode: z.ZodObject<{
208
+ x: z.ZodString;
209
+ y: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
210
+ series: z.ZodOptional<z.ZodString>;
211
+ stacked: z.ZodOptional<z.ZodBoolean>;
212
+ horizontal: z.ZodOptional<z.ZodBoolean>;
213
+ format: z.ZodOptional<z.ZodEnum<{
214
+ date: "date";
215
+ money: "money";
216
+ month: "month";
217
+ number: "number";
218
+ percent: "percent";
219
+ text: "text";
220
+ }>>;
221
+ }, z.core.$strict>;
222
+ otherBucket: z.ZodOptional<z.ZodObject<{
223
+ maxCategories: z.ZodNumber;
224
+ }, z.core.$strict>>;
225
+ }, z.core.$strict>, z.ZodObject<{
226
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
227
+ data: z.ZodObject<{
228
+ scan: z.ZodString;
229
+ join: z.ZodOptional<z.ZodArray<z.ZodObject<{
230
+ on: z.ZodString;
231
+ to: z.ZodString;
232
+ }, z.core.$strict>>>;
233
+ where: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodString, z.ZodEnum<{
234
+ "!=": "!=";
235
+ "<": "<";
236
+ "<=": "<=";
237
+ "=": "=";
238
+ ">": ">";
239
+ ">=": ">=";
240
+ in: "in";
241
+ match: "match";
242
+ notIn: "notIn";
243
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
244
+ param: z.ZodString;
245
+ }, z.core.$strict>, z.ZodObject<{
246
+ today: z.ZodNumber;
247
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
248
+ param: z.ZodString;
249
+ }, z.core.$strict>, z.ZodObject<{
250
+ today: z.ZodNumber;
251
+ }, z.core.$strict>]>>]>], null>, z.ZodTuple<[z.ZodString, z.ZodEnum<{
252
+ isNull: "isNull";
253
+ notNull: "notNull";
254
+ }>], null>]>>>;
255
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
256
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
257
+ as: z.ZodString;
258
+ sum: z.ZodString;
259
+ }, z.core.$strict>, z.ZodObject<{
260
+ as: z.ZodString;
261
+ avg: z.ZodString;
262
+ }, z.core.$strict>, z.ZodObject<{
263
+ as: z.ZodString;
264
+ min: z.ZodString;
265
+ }, z.core.$strict>, z.ZodObject<{
266
+ as: z.ZodString;
267
+ max: z.ZodString;
268
+ }, z.core.$strict>, z.ZodObject<{
269
+ as: z.ZodString;
270
+ count: z.ZodString;
271
+ }, z.core.$strict>, z.ZodObject<{
272
+ as: z.ZodString;
273
+ countDistinct: z.ZodString;
274
+ }, z.core.$strict>]>>>;
275
+ select: z.ZodOptional<z.ZodArray<z.ZodString>>;
276
+ orderBy: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodEnum<{
277
+ asc: "asc";
278
+ desc: "desc";
279
+ }>], null>>>;
280
+ limit: z.ZodNumber;
281
+ }, z.core.$strict>;
282
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
283
+ bind: z.ZodString;
284
+ }, z.core.$strict>, z.ZodObject<{
285
+ control: z.ZodLiteral<"slider">;
286
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
287
+ min: z.ZodNumber;
288
+ max: z.ZodNumber;
289
+ step: z.ZodOptional<z.ZodNumber>;
290
+ default: z.ZodNumber;
291
+ }, z.core.$strict>, z.ZodObject<{
292
+ control: z.ZodLiteral<"select">;
293
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
294
+ options: z.ZodArray<z.ZodObject<{
295
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
296
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
297
+ }, z.core.$strict>>;
298
+ default: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
299
+ }, z.core.$strict>, z.ZodObject<{
300
+ control: z.ZodLiteral<"toggle">;
301
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
302
+ default: z.ZodBoolean;
303
+ }, z.core.$strict>]>>>;
304
+ onClick: z.ZodOptional<z.ZodObject<{
305
+ navigate: z.ZodString;
306
+ args: z.ZodRecord<z.ZodString, z.ZodType<import("./schema.js").ArgExpr, unknown, z.core.$ZodTypeInternals<import("./schema.js").ArgExpr, unknown>>>;
307
+ }, z.core.$strict>>;
308
+ component: z.ZodLiteral<"line">;
309
+ encode: z.ZodObject<{
310
+ x: z.ZodString;
311
+ y: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
312
+ series: z.ZodOptional<z.ZodString>;
313
+ stacked: z.ZodOptional<z.ZodBoolean>;
314
+ horizontal: z.ZodOptional<z.ZodBoolean>;
315
+ format: z.ZodOptional<z.ZodEnum<{
316
+ date: "date";
317
+ money: "money";
318
+ month: "month";
319
+ number: "number";
320
+ percent: "percent";
321
+ text: "text";
322
+ }>>;
323
+ }, z.core.$strict>;
324
+ }, z.core.$strict>, z.ZodObject<{
325
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
326
+ data: z.ZodObject<{
327
+ scan: z.ZodString;
328
+ join: z.ZodOptional<z.ZodArray<z.ZodObject<{
329
+ on: z.ZodString;
330
+ to: z.ZodString;
331
+ }, z.core.$strict>>>;
332
+ where: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodString, z.ZodEnum<{
333
+ "!=": "!=";
334
+ "<": "<";
335
+ "<=": "<=";
336
+ "=": "=";
337
+ ">": ">";
338
+ ">=": ">=";
339
+ in: "in";
340
+ match: "match";
341
+ notIn: "notIn";
342
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
343
+ param: z.ZodString;
344
+ }, z.core.$strict>, z.ZodObject<{
345
+ today: z.ZodNumber;
346
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
347
+ param: z.ZodString;
348
+ }, z.core.$strict>, z.ZodObject<{
349
+ today: z.ZodNumber;
350
+ }, z.core.$strict>]>>]>], null>, z.ZodTuple<[z.ZodString, z.ZodEnum<{
351
+ isNull: "isNull";
352
+ notNull: "notNull";
353
+ }>], null>]>>>;
354
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
355
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
356
+ as: z.ZodString;
357
+ sum: z.ZodString;
358
+ }, z.core.$strict>, z.ZodObject<{
359
+ as: z.ZodString;
360
+ avg: z.ZodString;
361
+ }, z.core.$strict>, z.ZodObject<{
362
+ as: z.ZodString;
363
+ min: z.ZodString;
364
+ }, z.core.$strict>, z.ZodObject<{
365
+ as: z.ZodString;
366
+ max: z.ZodString;
367
+ }, z.core.$strict>, z.ZodObject<{
368
+ as: z.ZodString;
369
+ count: z.ZodString;
370
+ }, z.core.$strict>, z.ZodObject<{
371
+ as: z.ZodString;
372
+ countDistinct: z.ZodString;
373
+ }, z.core.$strict>]>>>;
374
+ select: z.ZodOptional<z.ZodArray<z.ZodString>>;
375
+ orderBy: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodEnum<{
376
+ asc: "asc";
377
+ desc: "desc";
378
+ }>], null>>>;
379
+ limit: z.ZodNumber;
380
+ }, z.core.$strict>;
381
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
382
+ bind: z.ZodString;
383
+ }, z.core.$strict>, z.ZodObject<{
384
+ control: z.ZodLiteral<"slider">;
385
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
386
+ min: z.ZodNumber;
387
+ max: z.ZodNumber;
388
+ step: z.ZodOptional<z.ZodNumber>;
389
+ default: z.ZodNumber;
390
+ }, z.core.$strict>, z.ZodObject<{
391
+ control: z.ZodLiteral<"select">;
392
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
393
+ options: z.ZodArray<z.ZodObject<{
394
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
395
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
396
+ }, z.core.$strict>>;
397
+ default: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
398
+ }, z.core.$strict>, z.ZodObject<{
399
+ control: z.ZodLiteral<"toggle">;
400
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
401
+ default: z.ZodBoolean;
402
+ }, z.core.$strict>]>>>;
403
+ onClick: z.ZodOptional<z.ZodObject<{
404
+ navigate: z.ZodString;
405
+ args: z.ZodRecord<z.ZodString, z.ZodType<import("./schema.js").ArgExpr, unknown, z.core.$ZodTypeInternals<import("./schema.js").ArgExpr, unknown>>>;
406
+ }, z.core.$strict>>;
407
+ component: z.ZodLiteral<"area">;
408
+ encode: z.ZodObject<{
409
+ x: z.ZodString;
410
+ y: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
411
+ series: z.ZodOptional<z.ZodString>;
412
+ stacked: z.ZodOptional<z.ZodBoolean>;
413
+ horizontal: z.ZodOptional<z.ZodBoolean>;
414
+ format: z.ZodOptional<z.ZodEnum<{
415
+ date: "date";
416
+ money: "money";
417
+ month: "month";
418
+ number: "number";
419
+ percent: "percent";
420
+ text: "text";
421
+ }>>;
422
+ }, z.core.$strict>;
423
+ }, z.core.$strict>, z.ZodObject<{
424
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
425
+ data: z.ZodObject<{
426
+ scan: z.ZodString;
427
+ join: z.ZodOptional<z.ZodArray<z.ZodObject<{
428
+ on: z.ZodString;
429
+ to: z.ZodString;
430
+ }, z.core.$strict>>>;
431
+ where: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodString, z.ZodEnum<{
432
+ "!=": "!=";
433
+ "<": "<";
434
+ "<=": "<=";
435
+ "=": "=";
436
+ ">": ">";
437
+ ">=": ">=";
438
+ in: "in";
439
+ match: "match";
440
+ notIn: "notIn";
441
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
442
+ param: z.ZodString;
443
+ }, z.core.$strict>, z.ZodObject<{
444
+ today: z.ZodNumber;
445
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
446
+ param: z.ZodString;
447
+ }, z.core.$strict>, z.ZodObject<{
448
+ today: z.ZodNumber;
449
+ }, z.core.$strict>]>>]>], null>, z.ZodTuple<[z.ZodString, z.ZodEnum<{
450
+ isNull: "isNull";
451
+ notNull: "notNull";
452
+ }>], null>]>>>;
453
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
454
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
455
+ as: z.ZodString;
456
+ sum: z.ZodString;
457
+ }, z.core.$strict>, z.ZodObject<{
458
+ as: z.ZodString;
459
+ avg: z.ZodString;
460
+ }, z.core.$strict>, z.ZodObject<{
461
+ as: z.ZodString;
462
+ min: z.ZodString;
463
+ }, z.core.$strict>, z.ZodObject<{
464
+ as: z.ZodString;
465
+ max: z.ZodString;
466
+ }, z.core.$strict>, z.ZodObject<{
467
+ as: z.ZodString;
468
+ count: z.ZodString;
469
+ }, z.core.$strict>, z.ZodObject<{
470
+ as: z.ZodString;
471
+ countDistinct: z.ZodString;
472
+ }, z.core.$strict>]>>>;
473
+ select: z.ZodOptional<z.ZodArray<z.ZodString>>;
474
+ orderBy: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodEnum<{
475
+ asc: "asc";
476
+ desc: "desc";
477
+ }>], null>>>;
478
+ limit: z.ZodNumber;
479
+ }, z.core.$strict>;
480
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
481
+ bind: z.ZodString;
482
+ }, z.core.$strict>, z.ZodObject<{
483
+ control: z.ZodLiteral<"slider">;
484
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
485
+ min: z.ZodNumber;
486
+ max: z.ZodNumber;
487
+ step: z.ZodOptional<z.ZodNumber>;
488
+ default: z.ZodNumber;
489
+ }, z.core.$strict>, z.ZodObject<{
490
+ control: z.ZodLiteral<"select">;
491
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
492
+ options: z.ZodArray<z.ZodObject<{
493
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
494
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
495
+ }, z.core.$strict>>;
496
+ default: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
497
+ }, z.core.$strict>, z.ZodObject<{
498
+ control: z.ZodLiteral<"toggle">;
499
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
500
+ default: z.ZodBoolean;
501
+ }, z.core.$strict>]>>>;
502
+ onClick: z.ZodOptional<z.ZodObject<{
503
+ navigate: z.ZodString;
504
+ args: z.ZodRecord<z.ZodString, z.ZodType<import("./schema.js").ArgExpr, unknown, z.core.$ZodTypeInternals<import("./schema.js").ArgExpr, unknown>>>;
505
+ }, z.core.$strict>>;
506
+ component: z.ZodLiteral<"table">;
507
+ encode: z.ZodObject<{
508
+ columns: z.ZodArray<z.ZodObject<{
509
+ field: z.ZodString;
510
+ label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
511
+ format: z.ZodOptional<z.ZodEnum<{
512
+ date: "date";
513
+ money: "money";
514
+ month: "month";
515
+ number: "number";
516
+ percent: "percent";
517
+ text: "text";
518
+ }>>;
519
+ }, z.core.$strict>>;
520
+ }, z.core.$strict>;
521
+ }, z.core.$strict>, z.ZodObject<{
522
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
523
+ data: z.ZodObject<{
524
+ scan: z.ZodString;
525
+ join: z.ZodOptional<z.ZodArray<z.ZodObject<{
526
+ on: z.ZodString;
527
+ to: z.ZodString;
528
+ }, z.core.$strict>>>;
529
+ where: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodString, z.ZodEnum<{
530
+ "!=": "!=";
531
+ "<": "<";
532
+ "<=": "<=";
533
+ "=": "=";
534
+ ">": ">";
535
+ ">=": ">=";
536
+ in: "in";
537
+ match: "match";
538
+ notIn: "notIn";
539
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
540
+ param: z.ZodString;
541
+ }, z.core.$strict>, z.ZodObject<{
542
+ today: z.ZodNumber;
543
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
544
+ param: z.ZodString;
545
+ }, z.core.$strict>, z.ZodObject<{
546
+ today: z.ZodNumber;
547
+ }, z.core.$strict>]>>]>], null>, z.ZodTuple<[z.ZodString, z.ZodEnum<{
548
+ isNull: "isNull";
549
+ notNull: "notNull";
550
+ }>], null>]>>>;
551
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
552
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
553
+ as: z.ZodString;
554
+ sum: z.ZodString;
555
+ }, z.core.$strict>, z.ZodObject<{
556
+ as: z.ZodString;
557
+ avg: z.ZodString;
558
+ }, z.core.$strict>, z.ZodObject<{
559
+ as: z.ZodString;
560
+ min: z.ZodString;
561
+ }, z.core.$strict>, z.ZodObject<{
562
+ as: z.ZodString;
563
+ max: z.ZodString;
564
+ }, z.core.$strict>, z.ZodObject<{
565
+ as: z.ZodString;
566
+ count: z.ZodString;
567
+ }, z.core.$strict>, z.ZodObject<{
568
+ as: z.ZodString;
569
+ countDistinct: z.ZodString;
570
+ }, z.core.$strict>]>>>;
571
+ select: z.ZodOptional<z.ZodArray<z.ZodString>>;
572
+ orderBy: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodEnum<{
573
+ asc: "asc";
574
+ desc: "desc";
575
+ }>], null>>>;
576
+ limit: z.ZodNumber;
577
+ }, z.core.$strict>;
578
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
579
+ bind: z.ZodString;
580
+ }, z.core.$strict>, z.ZodObject<{
581
+ control: z.ZodLiteral<"slider">;
582
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
583
+ min: z.ZodNumber;
584
+ max: z.ZodNumber;
585
+ step: z.ZodOptional<z.ZodNumber>;
586
+ default: z.ZodNumber;
587
+ }, z.core.$strict>, z.ZodObject<{
588
+ control: z.ZodLiteral<"select">;
589
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
590
+ options: z.ZodArray<z.ZodObject<{
591
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
592
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
593
+ }, z.core.$strict>>;
594
+ default: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
595
+ }, z.core.$strict>, z.ZodObject<{
596
+ control: z.ZodLiteral<"toggle">;
597
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
598
+ default: z.ZodBoolean;
599
+ }, z.core.$strict>]>>>;
600
+ onClick: z.ZodOptional<z.ZodObject<{
601
+ navigate: z.ZodString;
602
+ args: z.ZodRecord<z.ZodString, z.ZodType<import("./schema.js").ArgExpr, unknown, z.core.$ZodTypeInternals<import("./schema.js").ArgExpr, unknown>>>;
603
+ }, z.core.$strict>>;
604
+ component: z.ZodLiteral<"kpi">;
605
+ encode: z.ZodObject<{
606
+ value: z.ZodString;
607
+ format: z.ZodOptional<z.ZodEnum<{
608
+ date: "date";
609
+ money: "money";
610
+ month: "month";
611
+ number: "number";
612
+ percent: "percent";
613
+ text: "text";
614
+ }>>;
615
+ label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
616
+ }, z.core.$strict>;
617
+ }, z.core.$strict>, z.ZodObject<{
618
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
619
+ data: z.ZodObject<{
620
+ scan: z.ZodString;
621
+ join: z.ZodOptional<z.ZodArray<z.ZodObject<{
622
+ on: z.ZodString;
623
+ to: z.ZodString;
624
+ }, z.core.$strict>>>;
625
+ where: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodString, z.ZodEnum<{
626
+ "!=": "!=";
627
+ "<": "<";
628
+ "<=": "<=";
629
+ "=": "=";
630
+ ">": ">";
631
+ ">=": ">=";
632
+ in: "in";
633
+ match: "match";
634
+ notIn: "notIn";
635
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
636
+ param: z.ZodString;
637
+ }, z.core.$strict>, z.ZodObject<{
638
+ today: z.ZodNumber;
639
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
640
+ param: z.ZodString;
641
+ }, z.core.$strict>, z.ZodObject<{
642
+ today: z.ZodNumber;
643
+ }, z.core.$strict>]>>]>], null>, z.ZodTuple<[z.ZodString, z.ZodEnum<{
644
+ isNull: "isNull";
645
+ notNull: "notNull";
646
+ }>], null>]>>>;
647
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
648
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
649
+ as: z.ZodString;
650
+ sum: z.ZodString;
651
+ }, z.core.$strict>, z.ZodObject<{
652
+ as: z.ZodString;
653
+ avg: z.ZodString;
654
+ }, z.core.$strict>, z.ZodObject<{
655
+ as: z.ZodString;
656
+ min: z.ZodString;
657
+ }, z.core.$strict>, z.ZodObject<{
658
+ as: z.ZodString;
659
+ max: z.ZodString;
660
+ }, z.core.$strict>, z.ZodObject<{
661
+ as: z.ZodString;
662
+ count: z.ZodString;
663
+ }, z.core.$strict>, z.ZodObject<{
664
+ as: z.ZodString;
665
+ countDistinct: z.ZodString;
666
+ }, z.core.$strict>]>>>;
667
+ select: z.ZodOptional<z.ZodArray<z.ZodString>>;
668
+ orderBy: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodEnum<{
669
+ asc: "asc";
670
+ desc: "desc";
671
+ }>], null>>>;
672
+ limit: z.ZodNumber;
673
+ }, z.core.$strict>;
674
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
675
+ bind: z.ZodString;
676
+ }, z.core.$strict>, z.ZodObject<{
677
+ control: z.ZodLiteral<"slider">;
678
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
679
+ min: z.ZodNumber;
680
+ max: z.ZodNumber;
681
+ step: z.ZodOptional<z.ZodNumber>;
682
+ default: z.ZodNumber;
683
+ }, z.core.$strict>, z.ZodObject<{
684
+ control: z.ZodLiteral<"select">;
685
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
686
+ options: z.ZodArray<z.ZodObject<{
687
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
688
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
689
+ }, z.core.$strict>>;
690
+ default: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
691
+ }, z.core.$strict>, z.ZodObject<{
692
+ control: z.ZodLiteral<"toggle">;
693
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
694
+ default: z.ZodBoolean;
695
+ }, z.core.$strict>]>>>;
696
+ onClick: z.ZodOptional<z.ZodObject<{
697
+ navigate: z.ZodString;
698
+ args: z.ZodRecord<z.ZodString, z.ZodType<import("./schema.js").ArgExpr, unknown, z.core.$ZodTypeInternals<import("./schema.js").ArgExpr, unknown>>>;
699
+ }, z.core.$strict>>;
700
+ component: z.ZodLiteral<"grid">;
701
+ encode: z.ZodObject<{
702
+ rowKey: z.ZodString;
703
+ columns: z.ZodArray<z.ZodObject<{
704
+ field: z.ZodString;
705
+ label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
706
+ format: z.ZodOptional<z.ZodEnum<{
707
+ date: "date";
708
+ money: "money";
709
+ month: "month";
710
+ number: "number";
711
+ percent: "percent";
712
+ text: "text";
713
+ }>>;
714
+ edit: z.ZodOptional<z.ZodObject<{
715
+ intent: z.ZodString;
716
+ value: z.ZodString;
717
+ args: z.ZodRecord<z.ZodString, z.ZodType<import("./schema.js").ArgExpr, unknown, z.core.$ZodTypeInternals<import("./schema.js").ArgExpr, unknown>>>;
718
+ }, z.core.$strict>>;
719
+ }, z.core.$strict>>;
720
+ }, z.core.$strict>;
721
+ }, z.core.$strict>, z.ZodObject<{
722
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
723
+ data: z.ZodObject<{
724
+ scan: z.ZodString;
725
+ join: z.ZodOptional<z.ZodArray<z.ZodObject<{
726
+ on: z.ZodString;
727
+ to: z.ZodString;
728
+ }, z.core.$strict>>>;
729
+ where: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodString, z.ZodEnum<{
730
+ "!=": "!=";
731
+ "<": "<";
732
+ "<=": "<=";
733
+ "=": "=";
734
+ ">": ">";
735
+ ">=": ">=";
736
+ in: "in";
737
+ match: "match";
738
+ notIn: "notIn";
739
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
740
+ param: z.ZodString;
741
+ }, z.core.$strict>, z.ZodObject<{
742
+ today: z.ZodNumber;
743
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
744
+ param: z.ZodString;
745
+ }, z.core.$strict>, z.ZodObject<{
746
+ today: z.ZodNumber;
747
+ }, z.core.$strict>]>>]>], null>, z.ZodTuple<[z.ZodString, z.ZodEnum<{
748
+ isNull: "isNull";
749
+ notNull: "notNull";
750
+ }>], null>]>>>;
751
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
752
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
753
+ as: z.ZodString;
754
+ sum: z.ZodString;
755
+ }, z.core.$strict>, z.ZodObject<{
756
+ as: z.ZodString;
757
+ avg: z.ZodString;
758
+ }, z.core.$strict>, z.ZodObject<{
759
+ as: z.ZodString;
760
+ min: z.ZodString;
761
+ }, z.core.$strict>, z.ZodObject<{
762
+ as: z.ZodString;
763
+ max: z.ZodString;
764
+ }, z.core.$strict>, z.ZodObject<{
765
+ as: z.ZodString;
766
+ count: z.ZodString;
767
+ }, z.core.$strict>, z.ZodObject<{
768
+ as: z.ZodString;
769
+ countDistinct: z.ZodString;
770
+ }, z.core.$strict>]>>>;
771
+ select: z.ZodOptional<z.ZodArray<z.ZodString>>;
772
+ orderBy: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodEnum<{
773
+ asc: "asc";
774
+ desc: "desc";
775
+ }>], null>>>;
776
+ limit: z.ZodNumber;
777
+ }, z.core.$strict>;
778
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
779
+ bind: z.ZodString;
780
+ }, z.core.$strict>, z.ZodObject<{
781
+ control: z.ZodLiteral<"slider">;
782
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
783
+ min: z.ZodNumber;
784
+ max: z.ZodNumber;
785
+ step: z.ZodOptional<z.ZodNumber>;
786
+ default: z.ZodNumber;
787
+ }, z.core.$strict>, z.ZodObject<{
788
+ control: z.ZodLiteral<"select">;
789
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
790
+ options: z.ZodArray<z.ZodObject<{
791
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
792
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
793
+ }, z.core.$strict>>;
794
+ default: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
795
+ }, z.core.$strict>, z.ZodObject<{
796
+ control: z.ZodLiteral<"toggle">;
797
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
798
+ default: z.ZodBoolean;
799
+ }, z.core.$strict>]>>>;
800
+ onClick: z.ZodOptional<z.ZodObject<{
801
+ navigate: z.ZodString;
802
+ args: z.ZodRecord<z.ZodString, z.ZodType<import("./schema.js").ArgExpr, unknown, z.core.$ZodTypeInternals<import("./schema.js").ArgExpr, unknown>>>;
803
+ }, z.core.$strict>>;
804
+ component: z.ZodLiteral<"actionTable">;
805
+ encode: z.ZodObject<{
806
+ rowKey: z.ZodString;
807
+ columns: z.ZodArray<z.ZodObject<{
808
+ field: z.ZodString;
809
+ label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
810
+ format: z.ZodOptional<z.ZodEnum<{
811
+ date: "date";
812
+ money: "money";
813
+ month: "month";
814
+ number: "number";
815
+ percent: "percent";
816
+ text: "text";
817
+ }>>;
818
+ }, z.core.$strict>>;
819
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
820
+ name: z.ZodString;
821
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
822
+ type: z.ZodEnum<{
823
+ number: "number";
824
+ text: "text";
825
+ }>;
826
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
827
+ min: z.ZodOptional<z.ZodNumber>;
828
+ max: z.ZodOptional<z.ZodNumber>;
829
+ }, z.core.$strict>>>;
830
+ action: z.ZodObject<{
831
+ intent: z.ZodString;
832
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
833
+ args: z.ZodRecord<z.ZodString, z.ZodType<import("./schema.js").ArgExpr, unknown, z.core.$ZodTypeInternals<import("./schema.js").ArgExpr, unknown>>>;
834
+ }, z.core.$strict>;
835
+ }, z.core.$strict>;
836
+ }, z.core.$strict>], "component">;
837
+ manifest: z.ZodObject<{
838
+ reads: z.ZodArray<z.ZodString>;
839
+ acts: z.ZodArray<z.ZodString>;
840
+ contributes: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
841
+ }, z.core.$strict>;
842
+ placement: z.ZodObject<{
843
+ slot: z.ZodString;
844
+ label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
845
+ }, z.core.$strict>;
846
+ }, z.core.$strict>>;
847
+ sharedValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
848
+ theme: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
849
+ automations: z.ZodOptional<z.ZodBoolean>;
850
+ currentAutomation: z.ZodOptional<z.ZodObject<{
851
+ kind: z.ZodLiteral<"automation">;
852
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
853
+ schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
854
+ every: z.ZodLiteral<"hour">;
855
+ }, z.core.$strict>, z.ZodObject<{
856
+ every: z.ZodLiteral<"day">;
857
+ at: z.ZodOptional<z.ZodNumber>;
858
+ }, z.core.$strict>, z.ZodObject<{
859
+ every: z.ZodLiteral<"weekday">;
860
+ at: z.ZodOptional<z.ZodNumber>;
861
+ }, z.core.$strict>, z.ZodObject<{
862
+ every: z.ZodLiteral<"week">;
863
+ on: z.ZodEnum<{
864
+ fri: "fri";
865
+ mon: "mon";
866
+ sat: "sat";
867
+ sun: "sun";
868
+ thu: "thu";
869
+ tue: "tue";
870
+ wed: "wed";
871
+ }>;
872
+ at: z.ZodOptional<z.ZodNumber>;
873
+ }, z.core.$strict>, z.ZodObject<{
874
+ every: z.ZodLiteral<"month">;
875
+ day: z.ZodNumber;
876
+ at: z.ZodOptional<z.ZodNumber>;
877
+ }, z.core.$strict>], "every">;
878
+ data: z.ZodObject<{
879
+ scan: z.ZodString;
880
+ join: z.ZodOptional<z.ZodArray<z.ZodObject<{
881
+ on: z.ZodString;
882
+ to: z.ZodString;
883
+ }, z.core.$strict>>>;
884
+ where: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodTuple<[z.ZodString, z.ZodEnum<{
885
+ "!=": "!=";
886
+ "<": "<";
887
+ "<=": "<=";
888
+ "=": "=";
889
+ ">": ">";
890
+ ">=": ">=";
891
+ in: "in";
892
+ match: "match";
893
+ notIn: "notIn";
894
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
895
+ param: z.ZodString;
896
+ }, z.core.$strict>, z.ZodObject<{
897
+ today: z.ZodNumber;
898
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodObject<{
899
+ param: z.ZodString;
900
+ }, z.core.$strict>, z.ZodObject<{
901
+ today: z.ZodNumber;
902
+ }, z.core.$strict>]>>]>], null>, z.ZodTuple<[z.ZodString, z.ZodEnum<{
903
+ isNull: "isNull";
904
+ notNull: "notNull";
905
+ }>], null>]>>>;
906
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
907
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
908
+ as: z.ZodString;
909
+ sum: z.ZodString;
910
+ }, z.core.$strict>, z.ZodObject<{
911
+ as: z.ZodString;
912
+ avg: z.ZodString;
913
+ }, z.core.$strict>, z.ZodObject<{
914
+ as: z.ZodString;
915
+ min: z.ZodString;
916
+ }, z.core.$strict>, z.ZodObject<{
917
+ as: z.ZodString;
918
+ max: z.ZodString;
919
+ }, z.core.$strict>, z.ZodObject<{
920
+ as: z.ZodString;
921
+ count: z.ZodString;
922
+ }, z.core.$strict>, z.ZodObject<{
923
+ as: z.ZodString;
924
+ countDistinct: z.ZodString;
925
+ }, z.core.$strict>]>>>;
926
+ select: z.ZodOptional<z.ZodArray<z.ZodString>>;
927
+ orderBy: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodEnum<{
928
+ asc: "asc";
929
+ desc: "desc";
930
+ }>], null>>>;
931
+ limit: z.ZodNumber;
932
+ }, z.core.$strict>;
933
+ when: z.ZodEnum<{
934
+ always: "always";
935
+ rows: "rows";
936
+ }>;
937
+ repeat: z.ZodEnum<{
938
+ all: "all";
939
+ new: "new";
940
+ }>;
941
+ key: z.ZodOptional<z.ZodString>;
942
+ columns: z.ZodArray<z.ZodObject<{
943
+ field: z.ZodString;
944
+ label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
945
+ format: z.ZodOptional<z.ZodEnum<{
946
+ date: "date";
947
+ money: "money";
948
+ month: "month";
949
+ number: "number";
950
+ percent: "percent";
951
+ text: "text";
952
+ }>>;
953
+ }, z.core.$strict>>;
954
+ then: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
955
+ notify: z.ZodString;
956
+ }, z.core.$strict>, z.ZodObject<{
957
+ intent: z.ZodString;
958
+ args: z.ZodRecord<z.ZodString, z.ZodType<import("./schema.js").ArgExpr, unknown, z.core.$ZodTypeInternals<import("./schema.js").ArgExpr, unknown>>>;
959
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
960
+ notify: z.ZodString;
961
+ }, z.core.$strict>, z.ZodObject<{
962
+ intent: z.ZodString;
963
+ args: z.ZodRecord<z.ZodString, z.ZodType<import("./schema.js").ArgExpr, unknown, z.core.$ZodTypeInternals<import("./schema.js").ArgExpr, unknown>>>;
964
+ }, z.core.$strict>]>>]>;
965
+ manifest: z.ZodObject<{
966
+ reads: z.ZodArray<z.ZodString>;
967
+ acts: z.ZodArray<z.ZodString>;
968
+ channels: z.ZodArray<z.ZodString>;
969
+ }, z.core.$strict>;
970
+ }, z.core.$strict>>;
971
+ }, z.core.$strict>;
972
+ export type ProposeRequest = z.input<typeof ProposeRequestSchema>;
973
+ export type ProposeResponse = {
974
+ type: "proposal";
975
+ proposalId: string;
976
+ draft: z.infer<typeof DraftSchema>;
977
+ repaired: boolean;
978
+ note?: string;
979
+ } | {
980
+ type: "theme";
981
+ proposalId: string;
982
+ tokens: Record<string, string>;
983
+ repaired: boolean;
984
+ note?: string;
985
+ } | {
986
+ type: "automation";
987
+ proposalId: string;
988
+ automation: z.infer<typeof AutomationSchema>;
989
+ repaired: boolean;
990
+ note?: string;
991
+ } | {
992
+ type: "ask";
993
+ question: string;
994
+ options: string[];
995
+ } | {
996
+ type: "answer";
997
+ text: string;
998
+ } | {
999
+ type: "limit";
1000
+ message: string;
1001
+ capability: string;
1002
+ nearest?: string;
1003
+ } | {
1004
+ type: "error";
1005
+ message: string;
1006
+ problems?: {
1007
+ path: string;
1008
+ message: string;
1009
+ }[];
1010
+ };
1011
+ export type DiagnosticsResponse = {
1012
+ type: "ok";
1013
+ note?: string;
1014
+ } | Extract<ProposeResponse, {
1015
+ type: "proposal" | "error";
1016
+ }>;
1017
+ export declare const PushRequestSchema: z.ZodObject<{
1018
+ manifest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1019
+ review: z.ZodObject<{
1020
+ contractHash: z.ZodString;
1021
+ signer: z.ZodString;
1022
+ signedAt: z.ZodString;
1023
+ }, z.core.$loose>;
1024
+ }, z.core.$strict>;
1025
+ export type PushRequest = z.infer<typeof PushRequestSchema>;