@adminiumjs/manifest 0.3.0 → 0.3.1

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 (51) hide show
  1. package/dist/add-ons.d.ts +63 -0
  2. package/dist/add-ons.d.ts.map +1 -0
  3. package/dist/add-ons.js +100 -0
  4. package/dist/add-ons.js.map +1 -0
  5. package/dist/documents.d.ts +100 -0
  6. package/dist/documents.d.ts.map +1 -0
  7. package/dist/documents.js +148 -0
  8. package/dist/documents.js.map +1 -0
  9. package/dist/formula.d.ts +124 -0
  10. package/dist/formula.d.ts.map +1 -0
  11. package/dist/formula.js +428 -0
  12. package/dist/formula.js.map +1 -0
  13. package/dist/index.d.ts +10 -4
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +10 -4
  16. package/dist/index.js.map +1 -1
  17. package/dist/outbox.d.ts +354 -9
  18. package/dist/outbox.d.ts.map +1 -1
  19. package/dist/outbox.js +212 -8
  20. package/dist/outbox.js.map +1 -1
  21. package/dist/plan-model.d.ts +1 -1
  22. package/dist/plan-model.d.ts.map +1 -1
  23. package/dist/public-access.d.ts +48 -7
  24. package/dist/public-access.d.ts.map +1 -1
  25. package/dist/public-access.js +234 -28
  26. package/dist/public-access.js.map +1 -1
  27. package/dist/refs.d.ts +17 -0
  28. package/dist/refs.d.ts.map +1 -1
  29. package/dist/refs.js +12 -0
  30. package/dist/refs.js.map +1 -1
  31. package/dist/sample.d.ts +49 -1
  32. package/dist/sample.d.ts.map +1 -1
  33. package/dist/sample.js +39 -2
  34. package/dist/sample.js.map +1 -1
  35. package/dist/schema.d.ts +2461 -136
  36. package/dist/schema.d.ts.map +1 -1
  37. package/dist/schema.js +518 -26
  38. package/dist/schema.js.map +1 -1
  39. package/dist/shapes.d.ts +97 -0
  40. package/dist/shapes.d.ts.map +1 -0
  41. package/dist/shapes.js +190 -0
  42. package/dist/shapes.js.map +1 -0
  43. package/dist/states.d.ts +134 -0
  44. package/dist/states.d.ts.map +1 -0
  45. package/dist/states.js +244 -0
  46. package/dist/states.js.map +1 -0
  47. package/dist/validate.d.ts +14 -0
  48. package/dist/validate.d.ts.map +1 -1
  49. package/dist/validate.js +29 -2
  50. package/dist/validate.js.map +1 -1
  51. package/package.json +2 -2
package/dist/schema.d.ts CHANGED
@@ -10,10 +10,13 @@
10
10
  */
11
11
  import { i18nMessageSchema, type AddOnBlock, type I18nMessage } from '@adminium/add-on-contracts';
12
12
  import { z } from 'zod';
13
+ import { type AddOnNeeds } from './add-ons.js';
13
14
  import { bookingSchema } from './booking.js';
15
+ import { type AppDocument } from './documents.js';
14
16
  import { emailTemplateSchema, outboxSchema } from './outbox.js';
15
17
  import { publicAccessSchema, publicKeysSchema, type PublicAccess } from './public-access.js';
16
18
  import { type RoleShape } from './roles.js';
19
+ import { type States } from './states.js';
17
20
  import { labelsSchema } from './refs.js';
18
21
  import { compareSemver } from './semver.js';
19
22
  export { compareSemver };
@@ -114,11 +117,11 @@ export declare const identitySchema: z.ZodObject<{
114
117
  export declare const RESERVED_KEYS: readonly ["apps", "add-on", "add-ons", "dashboard", "demo", "index", "search"];
115
118
  export declare const MANIFEST_CAPABILITIES: readonly ["hosted-only", "offline-required", "receipt-printer", "barcode-scanner", "payments", "file-storage", "email-delivery", "realtime", "outbound-http", "oauth-connect"];
116
119
  export declare const capabilitySchema: z.ZodEnum<{
120
+ payments: "payments";
117
121
  "hosted-only": "hosted-only";
118
122
  "offline-required": "offline-required";
119
123
  "receipt-printer": "receipt-printer";
120
124
  "barcode-scanner": "barcode-scanner";
121
- payments: "payments";
122
125
  "file-storage": "file-storage";
123
126
  "email-delivery": "email-delivery";
124
127
  realtime: "realtime";
@@ -137,11 +140,11 @@ export declare const compatibilitySchema: z.ZodObject<{
137
140
  sqlite: "sqlite";
138
141
  }>>>;
139
142
  requires: z.ZodOptional<z.ZodArray<z.ZodEnum<{
143
+ payments: "payments";
140
144
  "hosted-only": "hosted-only";
141
145
  "offline-required": "offline-required";
142
146
  "receipt-printer": "receipt-printer";
143
147
  "barcode-scanner": "barcode-scanner";
144
- payments: "payments";
145
148
  "file-storage": "file-storage";
146
149
  "email-delivery": "email-delivery";
147
150
  realtime: "realtime";
@@ -158,20 +161,76 @@ export declare const COLUMN_SEMANTICS: readonly ["name", "money", "image", "emai
158
161
  export declare const COLUMN_ROLES: readonly ["pk", "created_at", "updated_at"];
159
162
  export { labelsSchema };
160
163
  /**
161
- * The rules an app asks Adminium to keep on a column (written as column-rule
162
- * overrides at install). The first five are the rules an operator can set in
163
- * the column inspector; the rest are the ones Adminium DECIDES for a public
164
- * write, so a browser never picks a price, a number or a code:
164
+ * What a stamp writes:
165
165
  *
166
- * - `copy`: take the value from the linked row (`via` is this table's
167
- * foreign-key column, `from` a column of the row it points at).
168
- * - `sequence`: the next number in this column's own counter.
169
- * - `code`: a short random code (Crockford base 32), unique in the column.
170
- * - `rollup`: a total over child rows, kept in step as they change.
171
- * - `venueLocal`: a wall time with no zone is read in the venue's zone.
172
- * - `personal`: whether the column is personal data, overriding the guess
173
- * Adminium makes from its name.
166
+ * - `now` (a timestamptz), `today` (a date, on the venue's calendar),
167
+ * `user-name`, `user-id`;
168
+ * - `byOrigin`: one value for a public write, another for staff — or, with no
169
+ * `staff`, whatever the staff writer chose (a desk records how a client
170
+ * approved; the portal always says "portal");
171
+ * - `copy`: another column of the same row as it stands at that moment (a
172
+ * client's first answer, kept when they edit it later);
173
+ * - `claim`: a column of the signed-in person's own row (their email, their
174
+ * name) on a public write; on a staff write, `staff` says what instead;
175
+ * - `addDays`: a date so many days after another (`due_on` = `issued_on` +
176
+ * the terms' days, `map` giving each term its days);
177
+ * - `hashOf`: a fingerprint — SHA-256 over the named columns, child rows and
178
+ * a linked row's text, in a canonical form anyone can recompute.
174
179
  */
180
+ export declare const stampSetSchema: z.ZodUnion<readonly [z.ZodEnum<{
181
+ today: "today";
182
+ now: "now";
183
+ "user-name": "user-name";
184
+ "user-id": "user-id";
185
+ }>, z.ZodObject<{
186
+ byOrigin: z.ZodObject<{
187
+ public: z.ZodString;
188
+ staff: z.ZodOptional<z.ZodString>;
189
+ }, z.core.$strict>;
190
+ }, z.core.$strict>, z.ZodObject<{
191
+ claim: z.ZodString;
192
+ staff: z.ZodOptional<z.ZodEnum<{
193
+ "user-name": "user-name";
194
+ "user-id": "user-id";
195
+ }>>;
196
+ }, z.core.$strict>, z.ZodObject<{
197
+ copy: z.ZodString;
198
+ }, z.core.$strict>, z.ZodObject<{
199
+ addDays: z.ZodObject<{
200
+ date: z.ZodString;
201
+ days: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
202
+ map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
203
+ }, z.core.$strict>;
204
+ }, z.core.$strict>, z.ZodObject<{
205
+ hashOf: z.ZodObject<{
206
+ columns: z.ZodArray<z.ZodString>;
207
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
208
+ table: z.ZodString;
209
+ via: z.ZodString;
210
+ columns: z.ZodArray<z.ZodString>;
211
+ orderBy: z.ZodOptional<z.ZodString>;
212
+ }, z.core.$strict>>>;
213
+ linked: z.ZodOptional<z.ZodArray<z.ZodObject<{
214
+ via: z.ZodString;
215
+ table: z.ZodString;
216
+ columns: z.ZodArray<z.ZodString>;
217
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
218
+ table: z.ZodString;
219
+ via: z.ZodString;
220
+ columns: z.ZodArray<z.ZodString>;
221
+ orderBy: z.ZodOptional<z.ZodString>;
222
+ }, z.core.$strict>>>;
223
+ }, z.core.$strict>>>;
224
+ }, z.core.$strict>;
225
+ }, z.core.$strict>]>;
226
+ /** When a stamp is written: on create, when a column changes to a value, or when a column is first filled. */
227
+ export declare const stampTriggerSchema: z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
228
+ column: z.ZodString;
229
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
230
+ }, z.core.$strict>, z.ZodObject<{
231
+ column: z.ZodString;
232
+ filled: z.ZodLiteral<true>;
233
+ }, z.core.$strict>]>;
175
234
  export declare const columnRulesSchema: z.ZodObject<{
176
235
  options: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
177
236
  list: z.ZodString;
@@ -206,13 +265,48 @@ export declare const columnRulesSchema: z.ZodObject<{
206
265
  always: "always";
207
266
  }>>;
208
267
  }, z.core.$strict>>;
268
+ default: z.ZodOptional<z.ZodObject<{
269
+ from: z.ZodUnion<readonly [z.ZodLiteral<"connection.currency">, z.ZodUnion<readonly [z.ZodObject<{
270
+ table: z.ZodString;
271
+ column: z.ZodString;
272
+ }, z.core.$strict>, z.ZodObject<{
273
+ addOn: z.ZodString;
274
+ setting: z.ZodString;
275
+ }, z.core.$strict>]>]>;
276
+ }, z.core.$strict>>;
209
277
  sequence: z.ZodOptional<z.ZodObject<{
210
278
  start: z.ZodOptional<z.ZodNumber>;
279
+ gapless: z.ZodOptional<z.ZodLiteral<true>>;
280
+ startSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
281
+ table: z.ZodString;
282
+ column: z.ZodString;
283
+ }, z.core.$strict>, z.ZodObject<{
284
+ addOn: z.ZodString;
285
+ setting: z.ZodString;
286
+ }, z.core.$strict>]>>;
287
+ scope: z.ZodOptional<z.ZodString>;
288
+ }, z.core.$strict>>;
289
+ format: z.ZodOptional<z.ZodObject<{
290
+ from: z.ZodString;
291
+ prefix: z.ZodOptional<z.ZodString>;
292
+ prefixSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
293
+ table: z.ZodString;
294
+ column: z.ZodString;
295
+ }, z.core.$strict>, z.ZodObject<{
296
+ addOn: z.ZodString;
297
+ setting: z.ZodString;
298
+ }, z.core.$strict>]>>;
299
+ pad: z.ZodOptional<z.ZodNumber>;
211
300
  }, z.core.$strict>>;
212
301
  code: z.ZodOptional<z.ZodObject<{
213
302
  prefix: z.ZodOptional<z.ZodString>;
214
303
  length: z.ZodNumber;
215
304
  }, z.core.$strict>>;
305
+ formula: z.ZodOptional<z.ZodType<import("./formula.js").FormulaExpr, unknown, z.core.$ZodTypeInternals<import("./formula.js").FormulaExpr, unknown>>>;
306
+ normalize: z.ZodOptional<z.ZodEnum<{
307
+ trim: "trim";
308
+ email: "email";
309
+ }>>;
216
310
  rollup: z.ZodOptional<z.ZodObject<{
217
311
  from: z.ZodString;
218
312
  via: z.ZodString;
@@ -232,22 +326,72 @@ export declare const columnRulesSchema: z.ZodObject<{
232
326
  }, z.core.$strict>>;
233
327
  stamp: z.ZodOptional<z.ZodObject<{
234
328
  set: z.ZodUnion<readonly [z.ZodEnum<{
329
+ today: "today";
235
330
  now: "now";
236
331
  "user-name": "user-name";
237
332
  "user-id": "user-id";
238
333
  }>, z.ZodObject<{
239
334
  byOrigin: z.ZodObject<{
240
335
  public: z.ZodString;
241
- staff: z.ZodString;
336
+ staff: z.ZodOptional<z.ZodString>;
337
+ }, z.core.$strict>;
338
+ }, z.core.$strict>, z.ZodObject<{
339
+ claim: z.ZodString;
340
+ staff: z.ZodOptional<z.ZodEnum<{
341
+ "user-name": "user-name";
342
+ "user-id": "user-id";
343
+ }>>;
344
+ }, z.core.$strict>, z.ZodObject<{
345
+ copy: z.ZodString;
346
+ }, z.core.$strict>, z.ZodObject<{
347
+ addDays: z.ZodObject<{
348
+ date: z.ZodString;
349
+ days: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
350
+ map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
351
+ }, z.core.$strict>;
352
+ }, z.core.$strict>, z.ZodObject<{
353
+ hashOf: z.ZodObject<{
354
+ columns: z.ZodArray<z.ZodString>;
355
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
356
+ table: z.ZodString;
357
+ via: z.ZodString;
358
+ columns: z.ZodArray<z.ZodString>;
359
+ orderBy: z.ZodOptional<z.ZodString>;
360
+ }, z.core.$strict>>>;
361
+ linked: z.ZodOptional<z.ZodArray<z.ZodObject<{
362
+ via: z.ZodString;
363
+ table: z.ZodString;
364
+ columns: z.ZodArray<z.ZodString>;
365
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
366
+ table: z.ZodString;
367
+ via: z.ZodString;
368
+ columns: z.ZodArray<z.ZodString>;
369
+ orderBy: z.ZodOptional<z.ZodString>;
370
+ }, z.core.$strict>>>;
371
+ }, z.core.$strict>>>;
242
372
  }, z.core.$strict>;
243
373
  }, z.core.$strict>]>;
244
- on: z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
374
+ on: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
245
375
  column: z.ZodString;
246
376
  values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
247
- }, z.core.$strict>]>;
377
+ }, z.core.$strict>, z.ZodObject<{
378
+ column: z.ZodString;
379
+ filled: z.ZodLiteral<true>;
380
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
381
+ column: z.ZodString;
382
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
383
+ }, z.core.$strict>, z.ZodObject<{
384
+ column: z.ZodString;
385
+ filled: z.ZodLiteral<true>;
386
+ }, z.core.$strict>]>>]>;
248
387
  }, z.core.$strict>>;
249
388
  venueLocal: z.ZodOptional<z.ZodLiteral<true>>;
250
389
  personal: z.ZodOptional<z.ZodBoolean>;
390
+ notAfter: z.ZodOptional<z.ZodLiteral<"today">>;
391
+ notBefore: z.ZodOptional<z.ZodObject<{
392
+ column: z.ZodString;
393
+ via: z.ZodOptional<z.ZodString>;
394
+ }, z.core.$strict>>;
251
395
  }, z.core.$strict>;
252
396
  export type ColumnRules = z.infer<typeof columnRulesSchema>;
253
397
  /**
@@ -324,18 +468,18 @@ export declare const requiredColumnSchema: z.ZodObject<{
324
468
  money: "money";
325
469
  float: "float";
326
470
  bool: "bool";
471
+ id: "id";
327
472
  timestamptz: "timestamptz";
328
473
  fk: "fk";
329
474
  text: "text";
330
- id: "id";
331
475
  json: "json";
332
476
  uuid: "uuid";
333
477
  blob: "blob";
334
478
  }>;
335
479
  semantic: z.ZodOptional<z.ZodEnum<{
336
480
  money: "money";
337
- email: "email";
338
481
  name: "name";
482
+ email: "email";
339
483
  image: "image";
340
484
  avatar: "avatar";
341
485
  "geo-lat": "geo-lat";
@@ -351,6 +495,7 @@ export declare const requiredColumnSchema: z.ZodObject<{
351
495
  references: z.ZodOptional<z.ZodString>;
352
496
  default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
353
497
  maxLength: z.ZodOptional<z.ZodNumber>;
498
+ scale: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"currency">]>>;
354
499
  unique: z.ZodOptional<z.ZodLiteral<true>>;
355
500
  rules: z.ZodOptional<z.ZodObject<{
356
501
  options: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -386,13 +531,48 @@ export declare const requiredColumnSchema: z.ZodObject<{
386
531
  always: "always";
387
532
  }>>;
388
533
  }, z.core.$strict>>;
534
+ default: z.ZodOptional<z.ZodObject<{
535
+ from: z.ZodUnion<readonly [z.ZodLiteral<"connection.currency">, z.ZodUnion<readonly [z.ZodObject<{
536
+ table: z.ZodString;
537
+ column: z.ZodString;
538
+ }, z.core.$strict>, z.ZodObject<{
539
+ addOn: z.ZodString;
540
+ setting: z.ZodString;
541
+ }, z.core.$strict>]>]>;
542
+ }, z.core.$strict>>;
389
543
  sequence: z.ZodOptional<z.ZodObject<{
390
544
  start: z.ZodOptional<z.ZodNumber>;
545
+ gapless: z.ZodOptional<z.ZodLiteral<true>>;
546
+ startSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
547
+ table: z.ZodString;
548
+ column: z.ZodString;
549
+ }, z.core.$strict>, z.ZodObject<{
550
+ addOn: z.ZodString;
551
+ setting: z.ZodString;
552
+ }, z.core.$strict>]>>;
553
+ scope: z.ZodOptional<z.ZodString>;
554
+ }, z.core.$strict>>;
555
+ format: z.ZodOptional<z.ZodObject<{
556
+ from: z.ZodString;
557
+ prefix: z.ZodOptional<z.ZodString>;
558
+ prefixSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
559
+ table: z.ZodString;
560
+ column: z.ZodString;
561
+ }, z.core.$strict>, z.ZodObject<{
562
+ addOn: z.ZodString;
563
+ setting: z.ZodString;
564
+ }, z.core.$strict>]>>;
565
+ pad: z.ZodOptional<z.ZodNumber>;
391
566
  }, z.core.$strict>>;
392
567
  code: z.ZodOptional<z.ZodObject<{
393
568
  prefix: z.ZodOptional<z.ZodString>;
394
569
  length: z.ZodNumber;
395
570
  }, z.core.$strict>>;
571
+ formula: z.ZodOptional<z.ZodType<import("./formula.js").FormulaExpr, unknown, z.core.$ZodTypeInternals<import("./formula.js").FormulaExpr, unknown>>>;
572
+ normalize: z.ZodOptional<z.ZodEnum<{
573
+ trim: "trim";
574
+ email: "email";
575
+ }>>;
396
576
  rollup: z.ZodOptional<z.ZodObject<{
397
577
  from: z.ZodString;
398
578
  via: z.ZodString;
@@ -412,22 +592,72 @@ export declare const requiredColumnSchema: z.ZodObject<{
412
592
  }, z.core.$strict>>;
413
593
  stamp: z.ZodOptional<z.ZodObject<{
414
594
  set: z.ZodUnion<readonly [z.ZodEnum<{
595
+ today: "today";
415
596
  now: "now";
416
597
  "user-name": "user-name";
417
598
  "user-id": "user-id";
418
599
  }>, z.ZodObject<{
419
600
  byOrigin: z.ZodObject<{
420
601
  public: z.ZodString;
421
- staff: z.ZodString;
602
+ staff: z.ZodOptional<z.ZodString>;
603
+ }, z.core.$strict>;
604
+ }, z.core.$strict>, z.ZodObject<{
605
+ claim: z.ZodString;
606
+ staff: z.ZodOptional<z.ZodEnum<{
607
+ "user-name": "user-name";
608
+ "user-id": "user-id";
609
+ }>>;
610
+ }, z.core.$strict>, z.ZodObject<{
611
+ copy: z.ZodString;
612
+ }, z.core.$strict>, z.ZodObject<{
613
+ addDays: z.ZodObject<{
614
+ date: z.ZodString;
615
+ days: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
616
+ map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
617
+ }, z.core.$strict>;
618
+ }, z.core.$strict>, z.ZodObject<{
619
+ hashOf: z.ZodObject<{
620
+ columns: z.ZodArray<z.ZodString>;
621
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
622
+ table: z.ZodString;
623
+ via: z.ZodString;
624
+ columns: z.ZodArray<z.ZodString>;
625
+ orderBy: z.ZodOptional<z.ZodString>;
626
+ }, z.core.$strict>>>;
627
+ linked: z.ZodOptional<z.ZodArray<z.ZodObject<{
628
+ via: z.ZodString;
629
+ table: z.ZodString;
630
+ columns: z.ZodArray<z.ZodString>;
631
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
632
+ table: z.ZodString;
633
+ via: z.ZodString;
634
+ columns: z.ZodArray<z.ZodString>;
635
+ orderBy: z.ZodOptional<z.ZodString>;
636
+ }, z.core.$strict>>>;
637
+ }, z.core.$strict>>>;
422
638
  }, z.core.$strict>;
423
639
  }, z.core.$strict>]>;
424
- on: z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
640
+ on: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
425
641
  column: z.ZodString;
426
642
  values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
427
- }, z.core.$strict>]>;
643
+ }, z.core.$strict>, z.ZodObject<{
644
+ column: z.ZodString;
645
+ filled: z.ZodLiteral<true>;
646
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
647
+ column: z.ZodString;
648
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
649
+ }, z.core.$strict>, z.ZodObject<{
650
+ column: z.ZodString;
651
+ filled: z.ZodLiteral<true>;
652
+ }, z.core.$strict>]>>]>;
428
653
  }, z.core.$strict>>;
429
654
  venueLocal: z.ZodOptional<z.ZodLiteral<true>>;
430
655
  personal: z.ZodOptional<z.ZodBoolean>;
656
+ notAfter: z.ZodOptional<z.ZodLiteral<"today">>;
657
+ notBefore: z.ZodOptional<z.ZodObject<{
658
+ column: z.ZodString;
659
+ via: z.ZodOptional<z.ZodString>;
660
+ }, z.core.$strict>>;
431
661
  }, z.core.$strict>>;
432
662
  label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
433
663
  }, z.core.$strict>;
@@ -444,18 +674,18 @@ export declare const requiredTableSchema: z.ZodObject<{
444
674
  money: "money";
445
675
  float: "float";
446
676
  bool: "bool";
677
+ id: "id";
447
678
  timestamptz: "timestamptz";
448
679
  fk: "fk";
449
680
  text: "text";
450
- id: "id";
451
681
  json: "json";
452
682
  uuid: "uuid";
453
683
  blob: "blob";
454
684
  }>;
455
685
  semantic: z.ZodOptional<z.ZodEnum<{
456
686
  money: "money";
457
- email: "email";
458
687
  name: "name";
688
+ email: "email";
459
689
  image: "image";
460
690
  avatar: "avatar";
461
691
  "geo-lat": "geo-lat";
@@ -471,6 +701,7 @@ export declare const requiredTableSchema: z.ZodObject<{
471
701
  references: z.ZodOptional<z.ZodString>;
472
702
  default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
473
703
  maxLength: z.ZodOptional<z.ZodNumber>;
704
+ scale: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"currency">]>>;
474
705
  unique: z.ZodOptional<z.ZodLiteral<true>>;
475
706
  rules: z.ZodOptional<z.ZodObject<{
476
707
  options: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -506,13 +737,48 @@ export declare const requiredTableSchema: z.ZodObject<{
506
737
  always: "always";
507
738
  }>>;
508
739
  }, z.core.$strict>>;
740
+ default: z.ZodOptional<z.ZodObject<{
741
+ from: z.ZodUnion<readonly [z.ZodLiteral<"connection.currency">, z.ZodUnion<readonly [z.ZodObject<{
742
+ table: z.ZodString;
743
+ column: z.ZodString;
744
+ }, z.core.$strict>, z.ZodObject<{
745
+ addOn: z.ZodString;
746
+ setting: z.ZodString;
747
+ }, z.core.$strict>]>]>;
748
+ }, z.core.$strict>>;
509
749
  sequence: z.ZodOptional<z.ZodObject<{
510
750
  start: z.ZodOptional<z.ZodNumber>;
751
+ gapless: z.ZodOptional<z.ZodLiteral<true>>;
752
+ startSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
753
+ table: z.ZodString;
754
+ column: z.ZodString;
755
+ }, z.core.$strict>, z.ZodObject<{
756
+ addOn: z.ZodString;
757
+ setting: z.ZodString;
758
+ }, z.core.$strict>]>>;
759
+ scope: z.ZodOptional<z.ZodString>;
760
+ }, z.core.$strict>>;
761
+ format: z.ZodOptional<z.ZodObject<{
762
+ from: z.ZodString;
763
+ prefix: z.ZodOptional<z.ZodString>;
764
+ prefixSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
765
+ table: z.ZodString;
766
+ column: z.ZodString;
767
+ }, z.core.$strict>, z.ZodObject<{
768
+ addOn: z.ZodString;
769
+ setting: z.ZodString;
770
+ }, z.core.$strict>]>>;
771
+ pad: z.ZodOptional<z.ZodNumber>;
511
772
  }, z.core.$strict>>;
512
773
  code: z.ZodOptional<z.ZodObject<{
513
774
  prefix: z.ZodOptional<z.ZodString>;
514
775
  length: z.ZodNumber;
515
776
  }, z.core.$strict>>;
777
+ formula: z.ZodOptional<z.ZodType<import("./formula.js").FormulaExpr, unknown, z.core.$ZodTypeInternals<import("./formula.js").FormulaExpr, unknown>>>;
778
+ normalize: z.ZodOptional<z.ZodEnum<{
779
+ trim: "trim";
780
+ email: "email";
781
+ }>>;
516
782
  rollup: z.ZodOptional<z.ZodObject<{
517
783
  from: z.ZodString;
518
784
  via: z.ZodString;
@@ -532,22 +798,72 @@ export declare const requiredTableSchema: z.ZodObject<{
532
798
  }, z.core.$strict>>;
533
799
  stamp: z.ZodOptional<z.ZodObject<{
534
800
  set: z.ZodUnion<readonly [z.ZodEnum<{
801
+ today: "today";
535
802
  now: "now";
536
803
  "user-name": "user-name";
537
804
  "user-id": "user-id";
538
805
  }>, z.ZodObject<{
539
806
  byOrigin: z.ZodObject<{
540
807
  public: z.ZodString;
541
- staff: z.ZodString;
808
+ staff: z.ZodOptional<z.ZodString>;
809
+ }, z.core.$strict>;
810
+ }, z.core.$strict>, z.ZodObject<{
811
+ claim: z.ZodString;
812
+ staff: z.ZodOptional<z.ZodEnum<{
813
+ "user-name": "user-name";
814
+ "user-id": "user-id";
815
+ }>>;
816
+ }, z.core.$strict>, z.ZodObject<{
817
+ copy: z.ZodString;
818
+ }, z.core.$strict>, z.ZodObject<{
819
+ addDays: z.ZodObject<{
820
+ date: z.ZodString;
821
+ days: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
822
+ map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
823
+ }, z.core.$strict>;
824
+ }, z.core.$strict>, z.ZodObject<{
825
+ hashOf: z.ZodObject<{
826
+ columns: z.ZodArray<z.ZodString>;
827
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
828
+ table: z.ZodString;
829
+ via: z.ZodString;
830
+ columns: z.ZodArray<z.ZodString>;
831
+ orderBy: z.ZodOptional<z.ZodString>;
832
+ }, z.core.$strict>>>;
833
+ linked: z.ZodOptional<z.ZodArray<z.ZodObject<{
834
+ via: z.ZodString;
835
+ table: z.ZodString;
836
+ columns: z.ZodArray<z.ZodString>;
837
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
838
+ table: z.ZodString;
839
+ via: z.ZodString;
840
+ columns: z.ZodArray<z.ZodString>;
841
+ orderBy: z.ZodOptional<z.ZodString>;
842
+ }, z.core.$strict>>>;
843
+ }, z.core.$strict>>>;
542
844
  }, z.core.$strict>;
543
845
  }, z.core.$strict>]>;
544
- on: z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
846
+ on: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
545
847
  column: z.ZodString;
546
848
  values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
547
- }, z.core.$strict>]>;
849
+ }, z.core.$strict>, z.ZodObject<{
850
+ column: z.ZodString;
851
+ filled: z.ZodLiteral<true>;
852
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
853
+ column: z.ZodString;
854
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
855
+ }, z.core.$strict>, z.ZodObject<{
856
+ column: z.ZodString;
857
+ filled: z.ZodLiteral<true>;
858
+ }, z.core.$strict>]>>]>;
548
859
  }, z.core.$strict>>;
549
860
  venueLocal: z.ZodOptional<z.ZodLiteral<true>>;
550
861
  personal: z.ZodOptional<z.ZodBoolean>;
862
+ notAfter: z.ZodOptional<z.ZodLiteral<"today">>;
863
+ notBefore: z.ZodOptional<z.ZodObject<{
864
+ column: z.ZodString;
865
+ via: z.ZodOptional<z.ZodString>;
866
+ }, z.core.$strict>>;
551
867
  }, z.core.$strict>>;
552
868
  label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
553
869
  }, z.core.$strict>>;
@@ -660,6 +976,48 @@ export declare const requiredTableSchema: z.ZodObject<{
660
976
  }, z.core.$strict>;
661
977
  }, z.core.$strict>>;
662
978
  }, z.core.$strict>>;
979
+ states: z.ZodOptional<z.ZodObject<{
980
+ column: z.ZodString;
981
+ initial: z.ZodString;
982
+ moves: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
983
+ to: z.ZodString;
984
+ requires: z.ZodOptional<z.ZodObject<{
985
+ children: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
986
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
987
+ column: z.ZodString;
988
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
989
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
990
+ isNull: z.ZodOptional<z.ZodBoolean>;
991
+ gt: z.ZodOptional<z.ZodNumber>;
992
+ gte: z.ZodOptional<z.ZodNumber>;
993
+ lt: z.ZodOptional<z.ZodNumber>;
994
+ lte: z.ZodOptional<z.ZodNumber>;
995
+ }, z.core.$strict>>>;
996
+ }, z.core.$strict>>;
997
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
998
+ }, z.core.$strict>]>>>;
999
+ lock: z.ZodOptional<z.ZodObject<{
1000
+ when: z.ZodArray<z.ZodString>;
1001
+ except: z.ZodOptional<z.ZodArray<z.ZodString>>;
1002
+ }, z.core.$strict>>;
1003
+ children: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1004
+ via: z.ZodString;
1005
+ lock: z.ZodOptional<z.ZodLiteral<true>>;
1006
+ parentIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1007
+ clearOnCreate: z.ZodOptional<z.ZodArray<z.ZodString>>;
1008
+ }, z.core.$strict>>>;
1009
+ lockedWhenReferencedBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
1010
+ table: z.ZodString;
1011
+ via: z.ZodString;
1012
+ in: z.ZodArray<z.ZodString>;
1013
+ }, z.core.$strict>>>;
1014
+ noDelete: z.ZodOptional<z.ZodObject<{
1015
+ when: z.ZodUnion<readonly [z.ZodLiteral<"numbered">, z.ZodArray<z.ZodString>]>;
1016
+ }, z.core.$strict>>;
1017
+ onlyLater: z.ZodOptional<z.ZodArray<z.ZodString>>;
1018
+ }, z.core.$strict>>;
1019
+ builtOn: z.ZodOptional<z.ZodString>;
1020
+ part: z.ZodOptional<z.ZodString>;
663
1021
  label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
664
1022
  labelPlural: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
665
1023
  keyField: z.ZodOptional<z.ZodString>;
@@ -678,18 +1036,18 @@ export declare const requiredSchemaSchema: z.ZodObject<{
678
1036
  money: "money";
679
1037
  float: "float";
680
1038
  bool: "bool";
1039
+ id: "id";
681
1040
  timestamptz: "timestamptz";
682
1041
  fk: "fk";
683
1042
  text: "text";
684
- id: "id";
685
1043
  json: "json";
686
1044
  uuid: "uuid";
687
1045
  blob: "blob";
688
1046
  }>;
689
1047
  semantic: z.ZodOptional<z.ZodEnum<{
690
1048
  money: "money";
691
- email: "email";
692
1049
  name: "name";
1050
+ email: "email";
693
1051
  image: "image";
694
1052
  avatar: "avatar";
695
1053
  "geo-lat": "geo-lat";
@@ -705,6 +1063,7 @@ export declare const requiredSchemaSchema: z.ZodObject<{
705
1063
  references: z.ZodOptional<z.ZodString>;
706
1064
  default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
707
1065
  maxLength: z.ZodOptional<z.ZodNumber>;
1066
+ scale: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"currency">]>>;
708
1067
  unique: z.ZodOptional<z.ZodLiteral<true>>;
709
1068
  rules: z.ZodOptional<z.ZodObject<{
710
1069
  options: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -740,13 +1099,48 @@ export declare const requiredSchemaSchema: z.ZodObject<{
740
1099
  always: "always";
741
1100
  }>>;
742
1101
  }, z.core.$strict>>;
1102
+ default: z.ZodOptional<z.ZodObject<{
1103
+ from: z.ZodUnion<readonly [z.ZodLiteral<"connection.currency">, z.ZodUnion<readonly [z.ZodObject<{
1104
+ table: z.ZodString;
1105
+ column: z.ZodString;
1106
+ }, z.core.$strict>, z.ZodObject<{
1107
+ addOn: z.ZodString;
1108
+ setting: z.ZodString;
1109
+ }, z.core.$strict>]>]>;
1110
+ }, z.core.$strict>>;
743
1111
  sequence: z.ZodOptional<z.ZodObject<{
744
1112
  start: z.ZodOptional<z.ZodNumber>;
1113
+ gapless: z.ZodOptional<z.ZodLiteral<true>>;
1114
+ startSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1115
+ table: z.ZodString;
1116
+ column: z.ZodString;
1117
+ }, z.core.$strict>, z.ZodObject<{
1118
+ addOn: z.ZodString;
1119
+ setting: z.ZodString;
1120
+ }, z.core.$strict>]>>;
1121
+ scope: z.ZodOptional<z.ZodString>;
1122
+ }, z.core.$strict>>;
1123
+ format: z.ZodOptional<z.ZodObject<{
1124
+ from: z.ZodString;
1125
+ prefix: z.ZodOptional<z.ZodString>;
1126
+ prefixSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1127
+ table: z.ZodString;
1128
+ column: z.ZodString;
1129
+ }, z.core.$strict>, z.ZodObject<{
1130
+ addOn: z.ZodString;
1131
+ setting: z.ZodString;
1132
+ }, z.core.$strict>]>>;
1133
+ pad: z.ZodOptional<z.ZodNumber>;
745
1134
  }, z.core.$strict>>;
746
1135
  code: z.ZodOptional<z.ZodObject<{
747
1136
  prefix: z.ZodOptional<z.ZodString>;
748
1137
  length: z.ZodNumber;
749
1138
  }, z.core.$strict>>;
1139
+ formula: z.ZodOptional<z.ZodType<import("./formula.js").FormulaExpr, unknown, z.core.$ZodTypeInternals<import("./formula.js").FormulaExpr, unknown>>>;
1140
+ normalize: z.ZodOptional<z.ZodEnum<{
1141
+ trim: "trim";
1142
+ email: "email";
1143
+ }>>;
750
1144
  rollup: z.ZodOptional<z.ZodObject<{
751
1145
  from: z.ZodString;
752
1146
  via: z.ZodString;
@@ -766,22 +1160,72 @@ export declare const requiredSchemaSchema: z.ZodObject<{
766
1160
  }, z.core.$strict>>;
767
1161
  stamp: z.ZodOptional<z.ZodObject<{
768
1162
  set: z.ZodUnion<readonly [z.ZodEnum<{
1163
+ today: "today";
769
1164
  now: "now";
770
1165
  "user-name": "user-name";
771
1166
  "user-id": "user-id";
772
1167
  }>, z.ZodObject<{
773
1168
  byOrigin: z.ZodObject<{
774
1169
  public: z.ZodString;
775
- staff: z.ZodString;
1170
+ staff: z.ZodOptional<z.ZodString>;
1171
+ }, z.core.$strict>;
1172
+ }, z.core.$strict>, z.ZodObject<{
1173
+ claim: z.ZodString;
1174
+ staff: z.ZodOptional<z.ZodEnum<{
1175
+ "user-name": "user-name";
1176
+ "user-id": "user-id";
1177
+ }>>;
1178
+ }, z.core.$strict>, z.ZodObject<{
1179
+ copy: z.ZodString;
1180
+ }, z.core.$strict>, z.ZodObject<{
1181
+ addDays: z.ZodObject<{
1182
+ date: z.ZodString;
1183
+ days: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1184
+ map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1185
+ }, z.core.$strict>;
1186
+ }, z.core.$strict>, z.ZodObject<{
1187
+ hashOf: z.ZodObject<{
1188
+ columns: z.ZodArray<z.ZodString>;
1189
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
1190
+ table: z.ZodString;
1191
+ via: z.ZodString;
1192
+ columns: z.ZodArray<z.ZodString>;
1193
+ orderBy: z.ZodOptional<z.ZodString>;
1194
+ }, z.core.$strict>>>;
1195
+ linked: z.ZodOptional<z.ZodArray<z.ZodObject<{
1196
+ via: z.ZodString;
1197
+ table: z.ZodString;
1198
+ columns: z.ZodArray<z.ZodString>;
1199
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
1200
+ table: z.ZodString;
1201
+ via: z.ZodString;
1202
+ columns: z.ZodArray<z.ZodString>;
1203
+ orderBy: z.ZodOptional<z.ZodString>;
1204
+ }, z.core.$strict>>>;
1205
+ }, z.core.$strict>>>;
776
1206
  }, z.core.$strict>;
777
1207
  }, z.core.$strict>]>;
778
- on: z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
1208
+ on: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
779
1209
  column: z.ZodString;
780
1210
  values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
781
- }, z.core.$strict>]>;
1211
+ }, z.core.$strict>, z.ZodObject<{
1212
+ column: z.ZodString;
1213
+ filled: z.ZodLiteral<true>;
1214
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
1215
+ column: z.ZodString;
1216
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1217
+ }, z.core.$strict>, z.ZodObject<{
1218
+ column: z.ZodString;
1219
+ filled: z.ZodLiteral<true>;
1220
+ }, z.core.$strict>]>>]>;
782
1221
  }, z.core.$strict>>;
783
1222
  venueLocal: z.ZodOptional<z.ZodLiteral<true>>;
784
1223
  personal: z.ZodOptional<z.ZodBoolean>;
1224
+ notAfter: z.ZodOptional<z.ZodLiteral<"today">>;
1225
+ notBefore: z.ZodOptional<z.ZodObject<{
1226
+ column: z.ZodString;
1227
+ via: z.ZodOptional<z.ZodString>;
1228
+ }, z.core.$strict>>;
785
1229
  }, z.core.$strict>>;
786
1230
  label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
787
1231
  }, z.core.$strict>>;
@@ -826,80 +1270,923 @@ export declare const requiredSchemaSchema: z.ZodObject<{
826
1270
  kind: z.ZodString;
827
1271
  countWhere: z.ZodObject<{
828
1272
  column: z.ZodString;
829
- values: z.ZodArray<z.ZodString>;
830
- }, z.core.$strict>;
831
- eligible: z.ZodObject<{
832
- table: z.ZodString;
833
- resource: z.ZodString;
834
- kind: z.ZodString;
835
- order: z.ZodOptional<z.ZodObject<{
1273
+ values: z.ZodArray<z.ZodString>;
1274
+ }, z.core.$strict>;
1275
+ eligible: z.ZodObject<{
1276
+ table: z.ZodString;
1277
+ resource: z.ZodString;
1278
+ kind: z.ZodString;
1279
+ order: z.ZodOptional<z.ZodObject<{
1280
+ table: z.ZodString;
1281
+ column: z.ZodString;
1282
+ active: z.ZodOptional<z.ZodString>;
1283
+ public: z.ZodOptional<z.ZodString>;
1284
+ }, z.core.$strict>>;
1285
+ }, z.core.$strict>;
1286
+ hours: z.ZodObject<{
1287
+ practice: z.ZodObject<{
1288
+ weekday: z.ZodString;
1289
+ opens: z.ZodString;
1290
+ closes: z.ZodString;
1291
+ breakStart: z.ZodOptional<z.ZodString>;
1292
+ breakEnd: z.ZodOptional<z.ZodString>;
1293
+ table: z.ZodString;
1294
+ open: z.ZodOptional<z.ZodString>;
1295
+ }, z.core.$strict>;
1296
+ own: z.ZodOptional<z.ZodObject<{
1297
+ weekday: z.ZodString;
1298
+ opens: z.ZodString;
1299
+ closes: z.ZodString;
1300
+ breakStart: z.ZodOptional<z.ZodString>;
1301
+ breakEnd: z.ZodOptional<z.ZodString>;
1302
+ table: z.ZodString;
1303
+ resource: z.ZodString;
1304
+ }, z.core.$strict>>;
1305
+ }, z.core.$strict>;
1306
+ closures: z.ZodOptional<z.ZodObject<{
1307
+ table: z.ZodString;
1308
+ from: z.ZodString;
1309
+ to: z.ZodString;
1310
+ resource: z.ZodOptional<z.ZodString>;
1311
+ active: z.ZodOptional<z.ZodString>;
1312
+ }, z.core.$strict>>;
1313
+ grid: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1314
+ table: z.ZodString;
1315
+ column: z.ZodString;
1316
+ }, z.core.$strict>]>;
1317
+ windowDays: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1318
+ table: z.ZodString;
1319
+ column: z.ZodString;
1320
+ }, z.core.$strict>]>>;
1321
+ noticeMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1322
+ table: z.ZodString;
1323
+ column: z.ZodString;
1324
+ }, z.core.$strict>]>>;
1325
+ cancel: z.ZodOptional<z.ZodObject<{
1326
+ hours: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1327
+ table: z.ZodString;
1328
+ column: z.ZodString;
1329
+ }, z.core.$strict>]>;
1330
+ mode: z.ZodEnum<{
1331
+ refuse: "refuse";
1332
+ flag: "flag";
1333
+ }>;
1334
+ flag: z.ZodOptional<z.ZodString>;
1335
+ when: z.ZodObject<{
1336
+ column: z.ZodString;
1337
+ to: z.ZodString;
1338
+ }, z.core.$strict>;
1339
+ }, z.core.$strict>>;
1340
+ }, z.core.$strict>>;
1341
+ states: z.ZodOptional<z.ZodObject<{
1342
+ column: z.ZodString;
1343
+ initial: z.ZodString;
1344
+ moves: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1345
+ to: z.ZodString;
1346
+ requires: z.ZodOptional<z.ZodObject<{
1347
+ children: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1348
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
1349
+ column: z.ZodString;
1350
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1351
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1352
+ isNull: z.ZodOptional<z.ZodBoolean>;
1353
+ gt: z.ZodOptional<z.ZodNumber>;
1354
+ gte: z.ZodOptional<z.ZodNumber>;
1355
+ lt: z.ZodOptional<z.ZodNumber>;
1356
+ lte: z.ZodOptional<z.ZodNumber>;
1357
+ }, z.core.$strict>>>;
1358
+ }, z.core.$strict>>;
1359
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1360
+ }, z.core.$strict>]>>>;
1361
+ lock: z.ZodOptional<z.ZodObject<{
1362
+ when: z.ZodArray<z.ZodString>;
1363
+ except: z.ZodOptional<z.ZodArray<z.ZodString>>;
1364
+ }, z.core.$strict>>;
1365
+ children: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1366
+ via: z.ZodString;
1367
+ lock: z.ZodOptional<z.ZodLiteral<true>>;
1368
+ parentIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1369
+ clearOnCreate: z.ZodOptional<z.ZodArray<z.ZodString>>;
1370
+ }, z.core.$strict>>>;
1371
+ lockedWhenReferencedBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
1372
+ table: z.ZodString;
1373
+ via: z.ZodString;
1374
+ in: z.ZodArray<z.ZodString>;
1375
+ }, z.core.$strict>>>;
1376
+ noDelete: z.ZodOptional<z.ZodObject<{
1377
+ when: z.ZodUnion<readonly [z.ZodLiteral<"numbered">, z.ZodArray<z.ZodString>]>;
1378
+ }, z.core.$strict>>;
1379
+ onlyLater: z.ZodOptional<z.ZodArray<z.ZodString>>;
1380
+ }, z.core.$strict>>;
1381
+ builtOn: z.ZodOptional<z.ZodString>;
1382
+ part: z.ZodOptional<z.ZodString>;
1383
+ label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1384
+ labelPlural: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1385
+ keyField: z.ZodOptional<z.ZodString>;
1386
+ }, z.core.$strict>>;
1387
+ prefixed: z.ZodOptional<z.ZodLiteral<true>>;
1388
+ }, z.core.$strict>;
1389
+ /**
1390
+ * One part of a shape: its columns and the rules on them, and the table's
1391
+ * states. A column's `references` names another part of the same shape
1392
+ * (`document`), or a part of another of the add-on's shapes
1393
+ * (`quote@1/document`).
1394
+ */
1395
+ export declare const shapePartSchema: z.ZodObject<{
1396
+ columns: z.ZodArray<z.ZodObject<{
1397
+ ref: z.ZodString;
1398
+ type: z.ZodEnum<{
1399
+ bigint: "bigint";
1400
+ int: "int";
1401
+ date: "date";
1402
+ enum: "enum";
1403
+ decimal: "decimal";
1404
+ money: "money";
1405
+ float: "float";
1406
+ bool: "bool";
1407
+ id: "id";
1408
+ timestamptz: "timestamptz";
1409
+ fk: "fk";
1410
+ text: "text";
1411
+ json: "json";
1412
+ uuid: "uuid";
1413
+ blob: "blob";
1414
+ }>;
1415
+ semantic: z.ZodOptional<z.ZodEnum<{
1416
+ money: "money";
1417
+ name: "name";
1418
+ email: "email";
1419
+ image: "image";
1420
+ avatar: "avatar";
1421
+ "geo-lat": "geo-lat";
1422
+ "geo-lng": "geo-lng";
1423
+ }>>;
1424
+ role: z.ZodOptional<z.ZodEnum<{
1425
+ pk: "pk";
1426
+ created_at: "created_at";
1427
+ updated_at: "updated_at";
1428
+ }>>;
1429
+ nullable: z.ZodOptional<z.ZodBoolean>;
1430
+ enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
1431
+ references: z.ZodOptional<z.ZodString>;
1432
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1433
+ maxLength: z.ZodOptional<z.ZodNumber>;
1434
+ scale: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"currency">]>>;
1435
+ unique: z.ZodOptional<z.ZodLiteral<true>>;
1436
+ rules: z.ZodOptional<z.ZodObject<{
1437
+ options: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1438
+ list: z.ZodString;
1439
+ }, z.core.$strict>, z.ZodObject<{
1440
+ values: z.ZodArray<z.ZodObject<{
1441
+ value: z.ZodString;
1442
+ label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1443
+ tone: z.ZodOptional<z.ZodString>;
1444
+ }, z.core.$strict>>;
1445
+ }, z.core.$strict>]>>;
1446
+ enumLabels: z.ZodOptional<z.ZodObject<{
1447
+ labels: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1448
+ tones: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1449
+ }, z.core.$strict>>;
1450
+ required: z.ZodOptional<z.ZodLiteral<true>>;
1451
+ validation: z.ZodOptional<z.ZodObject<{
1452
+ format: z.ZodOptional<z.ZodEnum<{
1453
+ email: "email";
1454
+ phone: "phone";
1455
+ url: "url";
1456
+ }>>;
1457
+ min: z.ZodOptional<z.ZodNumber>;
1458
+ max: z.ZodOptional<z.ZodNumber>;
1459
+ minLength: z.ZodOptional<z.ZodNumber>;
1460
+ maxLength: z.ZodOptional<z.ZodNumber>;
1461
+ }, z.core.$strict>>;
1462
+ copy: z.ZodOptional<z.ZodObject<{
1463
+ via: z.ZodString;
1464
+ from: z.ZodString;
1465
+ mode: z.ZodOptional<z.ZodEnum<{
1466
+ default: "default";
1467
+ always: "always";
1468
+ }>>;
1469
+ }, z.core.$strict>>;
1470
+ default: z.ZodOptional<z.ZodObject<{
1471
+ from: z.ZodUnion<readonly [z.ZodLiteral<"connection.currency">, z.ZodUnion<readonly [z.ZodObject<{
1472
+ table: z.ZodString;
1473
+ column: z.ZodString;
1474
+ }, z.core.$strict>, z.ZodObject<{
1475
+ addOn: z.ZodString;
1476
+ setting: z.ZodString;
1477
+ }, z.core.$strict>]>]>;
1478
+ }, z.core.$strict>>;
1479
+ sequence: z.ZodOptional<z.ZodObject<{
1480
+ start: z.ZodOptional<z.ZodNumber>;
1481
+ gapless: z.ZodOptional<z.ZodLiteral<true>>;
1482
+ startSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1483
+ table: z.ZodString;
1484
+ column: z.ZodString;
1485
+ }, z.core.$strict>, z.ZodObject<{
1486
+ addOn: z.ZodString;
1487
+ setting: z.ZodString;
1488
+ }, z.core.$strict>]>>;
1489
+ scope: z.ZodOptional<z.ZodString>;
1490
+ }, z.core.$strict>>;
1491
+ format: z.ZodOptional<z.ZodObject<{
1492
+ from: z.ZodString;
1493
+ prefix: z.ZodOptional<z.ZodString>;
1494
+ prefixSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1495
+ table: z.ZodString;
1496
+ column: z.ZodString;
1497
+ }, z.core.$strict>, z.ZodObject<{
1498
+ addOn: z.ZodString;
1499
+ setting: z.ZodString;
1500
+ }, z.core.$strict>]>>;
1501
+ pad: z.ZodOptional<z.ZodNumber>;
1502
+ }, z.core.$strict>>;
1503
+ code: z.ZodOptional<z.ZodObject<{
1504
+ prefix: z.ZodOptional<z.ZodString>;
1505
+ length: z.ZodNumber;
1506
+ }, z.core.$strict>>;
1507
+ formula: z.ZodOptional<z.ZodType<import("./formula.js").FormulaExpr, unknown, z.core.$ZodTypeInternals<import("./formula.js").FormulaExpr, unknown>>>;
1508
+ normalize: z.ZodOptional<z.ZodEnum<{
1509
+ trim: "trim";
1510
+ email: "email";
1511
+ }>>;
1512
+ rollup: z.ZodOptional<z.ZodObject<{
1513
+ from: z.ZodString;
1514
+ via: z.ZodString;
1515
+ sum: z.ZodString;
1516
+ times: z.ZodOptional<z.ZodString>;
1517
+ unlessSet: z.ZodOptional<z.ZodString>;
1518
+ where: z.ZodOptional<z.ZodObject<{
1519
+ column: z.ZodString;
1520
+ eq: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1521
+ }, z.core.$strict>>;
1522
+ balance: z.ZodOptional<z.ZodObject<{
1523
+ column: z.ZodString;
1524
+ of: z.ZodString;
1525
+ minus: z.ZodOptional<z.ZodArray<z.ZodString>>;
1526
+ }, z.core.$strict>>;
1527
+ cap: z.ZodOptional<z.ZodLiteral<true>>;
1528
+ }, z.core.$strict>>;
1529
+ stamp: z.ZodOptional<z.ZodObject<{
1530
+ set: z.ZodUnion<readonly [z.ZodEnum<{
1531
+ today: "today";
1532
+ now: "now";
1533
+ "user-name": "user-name";
1534
+ "user-id": "user-id";
1535
+ }>, z.ZodObject<{
1536
+ byOrigin: z.ZodObject<{
1537
+ public: z.ZodString;
1538
+ staff: z.ZodOptional<z.ZodString>;
1539
+ }, z.core.$strict>;
1540
+ }, z.core.$strict>, z.ZodObject<{
1541
+ claim: z.ZodString;
1542
+ staff: z.ZodOptional<z.ZodEnum<{
1543
+ "user-name": "user-name";
1544
+ "user-id": "user-id";
1545
+ }>>;
1546
+ }, z.core.$strict>, z.ZodObject<{
1547
+ copy: z.ZodString;
1548
+ }, z.core.$strict>, z.ZodObject<{
1549
+ addDays: z.ZodObject<{
1550
+ date: z.ZodString;
1551
+ days: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1552
+ map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1553
+ }, z.core.$strict>;
1554
+ }, z.core.$strict>, z.ZodObject<{
1555
+ hashOf: z.ZodObject<{
1556
+ columns: z.ZodArray<z.ZodString>;
1557
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
1558
+ table: z.ZodString;
1559
+ via: z.ZodString;
1560
+ columns: z.ZodArray<z.ZodString>;
1561
+ orderBy: z.ZodOptional<z.ZodString>;
1562
+ }, z.core.$strict>>>;
1563
+ linked: z.ZodOptional<z.ZodArray<z.ZodObject<{
1564
+ via: z.ZodString;
1565
+ table: z.ZodString;
1566
+ columns: z.ZodArray<z.ZodString>;
1567
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
1568
+ table: z.ZodString;
1569
+ via: z.ZodString;
1570
+ columns: z.ZodArray<z.ZodString>;
1571
+ orderBy: z.ZodOptional<z.ZodString>;
1572
+ }, z.core.$strict>>>;
1573
+ }, z.core.$strict>>>;
1574
+ }, z.core.$strict>;
1575
+ }, z.core.$strict>]>;
1576
+ on: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
1577
+ column: z.ZodString;
1578
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1579
+ }, z.core.$strict>, z.ZodObject<{
1580
+ column: z.ZodString;
1581
+ filled: z.ZodLiteral<true>;
1582
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
1583
+ column: z.ZodString;
1584
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1585
+ }, z.core.$strict>, z.ZodObject<{
1586
+ column: z.ZodString;
1587
+ filled: z.ZodLiteral<true>;
1588
+ }, z.core.$strict>]>>]>;
1589
+ }, z.core.$strict>>;
1590
+ venueLocal: z.ZodOptional<z.ZodLiteral<true>>;
1591
+ personal: z.ZodOptional<z.ZodBoolean>;
1592
+ notAfter: z.ZodOptional<z.ZodLiteral<"today">>;
1593
+ notBefore: z.ZodOptional<z.ZodObject<{
1594
+ column: z.ZodString;
1595
+ via: z.ZodOptional<z.ZodString>;
1596
+ }, z.core.$strict>>;
1597
+ }, z.core.$strict>>;
1598
+ label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1599
+ }, z.core.$strict>>;
1600
+ states: z.ZodOptional<z.ZodObject<{
1601
+ column: z.ZodString;
1602
+ initial: z.ZodString;
1603
+ moves: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1604
+ to: z.ZodString;
1605
+ requires: z.ZodOptional<z.ZodObject<{
1606
+ children: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1607
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
1608
+ column: z.ZodString;
1609
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1610
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1611
+ isNull: z.ZodOptional<z.ZodBoolean>;
1612
+ gt: z.ZodOptional<z.ZodNumber>;
1613
+ gte: z.ZodOptional<z.ZodNumber>;
1614
+ lt: z.ZodOptional<z.ZodNumber>;
1615
+ lte: z.ZodOptional<z.ZodNumber>;
1616
+ }, z.core.$strict>>>;
1617
+ }, z.core.$strict>>;
1618
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1619
+ }, z.core.$strict>]>>>;
1620
+ lock: z.ZodOptional<z.ZodObject<{
1621
+ when: z.ZodArray<z.ZodString>;
1622
+ except: z.ZodOptional<z.ZodArray<z.ZodString>>;
1623
+ }, z.core.$strict>>;
1624
+ children: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1625
+ via: z.ZodString;
1626
+ lock: z.ZodOptional<z.ZodLiteral<true>>;
1627
+ parentIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1628
+ clearOnCreate: z.ZodOptional<z.ZodArray<z.ZodString>>;
1629
+ }, z.core.$strict>>>;
1630
+ lockedWhenReferencedBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
1631
+ table: z.ZodString;
1632
+ via: z.ZodString;
1633
+ in: z.ZodArray<z.ZodString>;
1634
+ }, z.core.$strict>>>;
1635
+ noDelete: z.ZodOptional<z.ZodObject<{
1636
+ when: z.ZodUnion<readonly [z.ZodLiteral<"numbered">, z.ZodArray<z.ZodString>]>;
1637
+ }, z.core.$strict>>;
1638
+ onlyLater: z.ZodOptional<z.ZodArray<z.ZodString>>;
1639
+ }, z.core.$strict>>;
1640
+ }, z.core.$strict>;
1641
+ /**
1642
+ * A shape an add-on defines for apps to build their tables on (see
1643
+ * `shapes.ts`): named parts, the document profiles made for an app's tables
1644
+ * at install (in part and column names), and the messages it sends.
1645
+ */
1646
+ export declare const shapeDefinitionSchema: z.ZodObject<{
1647
+ name: z.ZodString;
1648
+ version: z.ZodNumber;
1649
+ parts: z.ZodRecord<z.ZodString, z.ZodObject<{
1650
+ columns: z.ZodArray<z.ZodObject<{
1651
+ ref: z.ZodString;
1652
+ type: z.ZodEnum<{
1653
+ bigint: "bigint";
1654
+ int: "int";
1655
+ date: "date";
1656
+ enum: "enum";
1657
+ decimal: "decimal";
1658
+ money: "money";
1659
+ float: "float";
1660
+ bool: "bool";
1661
+ id: "id";
1662
+ timestamptz: "timestamptz";
1663
+ fk: "fk";
1664
+ text: "text";
1665
+ json: "json";
1666
+ uuid: "uuid";
1667
+ blob: "blob";
1668
+ }>;
1669
+ semantic: z.ZodOptional<z.ZodEnum<{
1670
+ money: "money";
1671
+ name: "name";
1672
+ email: "email";
1673
+ image: "image";
1674
+ avatar: "avatar";
1675
+ "geo-lat": "geo-lat";
1676
+ "geo-lng": "geo-lng";
1677
+ }>>;
1678
+ role: z.ZodOptional<z.ZodEnum<{
1679
+ pk: "pk";
1680
+ created_at: "created_at";
1681
+ updated_at: "updated_at";
1682
+ }>>;
1683
+ nullable: z.ZodOptional<z.ZodBoolean>;
1684
+ enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
1685
+ references: z.ZodOptional<z.ZodString>;
1686
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1687
+ maxLength: z.ZodOptional<z.ZodNumber>;
1688
+ scale: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"currency">]>>;
1689
+ unique: z.ZodOptional<z.ZodLiteral<true>>;
1690
+ rules: z.ZodOptional<z.ZodObject<{
1691
+ options: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1692
+ list: z.ZodString;
1693
+ }, z.core.$strict>, z.ZodObject<{
1694
+ values: z.ZodArray<z.ZodObject<{
1695
+ value: z.ZodString;
1696
+ label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1697
+ tone: z.ZodOptional<z.ZodString>;
1698
+ }, z.core.$strict>>;
1699
+ }, z.core.$strict>]>>;
1700
+ enumLabels: z.ZodOptional<z.ZodObject<{
1701
+ labels: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1702
+ tones: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1703
+ }, z.core.$strict>>;
1704
+ required: z.ZodOptional<z.ZodLiteral<true>>;
1705
+ validation: z.ZodOptional<z.ZodObject<{
1706
+ format: z.ZodOptional<z.ZodEnum<{
1707
+ email: "email";
1708
+ phone: "phone";
1709
+ url: "url";
1710
+ }>>;
1711
+ min: z.ZodOptional<z.ZodNumber>;
1712
+ max: z.ZodOptional<z.ZodNumber>;
1713
+ minLength: z.ZodOptional<z.ZodNumber>;
1714
+ maxLength: z.ZodOptional<z.ZodNumber>;
1715
+ }, z.core.$strict>>;
1716
+ copy: z.ZodOptional<z.ZodObject<{
1717
+ via: z.ZodString;
1718
+ from: z.ZodString;
1719
+ mode: z.ZodOptional<z.ZodEnum<{
1720
+ default: "default";
1721
+ always: "always";
1722
+ }>>;
1723
+ }, z.core.$strict>>;
1724
+ default: z.ZodOptional<z.ZodObject<{
1725
+ from: z.ZodUnion<readonly [z.ZodLiteral<"connection.currency">, z.ZodUnion<readonly [z.ZodObject<{
1726
+ table: z.ZodString;
1727
+ column: z.ZodString;
1728
+ }, z.core.$strict>, z.ZodObject<{
1729
+ addOn: z.ZodString;
1730
+ setting: z.ZodString;
1731
+ }, z.core.$strict>]>]>;
1732
+ }, z.core.$strict>>;
1733
+ sequence: z.ZodOptional<z.ZodObject<{
1734
+ start: z.ZodOptional<z.ZodNumber>;
1735
+ gapless: z.ZodOptional<z.ZodLiteral<true>>;
1736
+ startSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1737
+ table: z.ZodString;
1738
+ column: z.ZodString;
1739
+ }, z.core.$strict>, z.ZodObject<{
1740
+ addOn: z.ZodString;
1741
+ setting: z.ZodString;
1742
+ }, z.core.$strict>]>>;
1743
+ scope: z.ZodOptional<z.ZodString>;
1744
+ }, z.core.$strict>>;
1745
+ format: z.ZodOptional<z.ZodObject<{
1746
+ from: z.ZodString;
1747
+ prefix: z.ZodOptional<z.ZodString>;
1748
+ prefixSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1749
+ table: z.ZodString;
1750
+ column: z.ZodString;
1751
+ }, z.core.$strict>, z.ZodObject<{
1752
+ addOn: z.ZodString;
1753
+ setting: z.ZodString;
1754
+ }, z.core.$strict>]>>;
1755
+ pad: z.ZodOptional<z.ZodNumber>;
1756
+ }, z.core.$strict>>;
1757
+ code: z.ZodOptional<z.ZodObject<{
1758
+ prefix: z.ZodOptional<z.ZodString>;
1759
+ length: z.ZodNumber;
1760
+ }, z.core.$strict>>;
1761
+ formula: z.ZodOptional<z.ZodType<import("./formula.js").FormulaExpr, unknown, z.core.$ZodTypeInternals<import("./formula.js").FormulaExpr, unknown>>>;
1762
+ normalize: z.ZodOptional<z.ZodEnum<{
1763
+ trim: "trim";
1764
+ email: "email";
1765
+ }>>;
1766
+ rollup: z.ZodOptional<z.ZodObject<{
1767
+ from: z.ZodString;
1768
+ via: z.ZodString;
1769
+ sum: z.ZodString;
1770
+ times: z.ZodOptional<z.ZodString>;
1771
+ unlessSet: z.ZodOptional<z.ZodString>;
1772
+ where: z.ZodOptional<z.ZodObject<{
1773
+ column: z.ZodString;
1774
+ eq: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1775
+ }, z.core.$strict>>;
1776
+ balance: z.ZodOptional<z.ZodObject<{
1777
+ column: z.ZodString;
1778
+ of: z.ZodString;
1779
+ minus: z.ZodOptional<z.ZodArray<z.ZodString>>;
1780
+ }, z.core.$strict>>;
1781
+ cap: z.ZodOptional<z.ZodLiteral<true>>;
1782
+ }, z.core.$strict>>;
1783
+ stamp: z.ZodOptional<z.ZodObject<{
1784
+ set: z.ZodUnion<readonly [z.ZodEnum<{
1785
+ today: "today";
1786
+ now: "now";
1787
+ "user-name": "user-name";
1788
+ "user-id": "user-id";
1789
+ }>, z.ZodObject<{
1790
+ byOrigin: z.ZodObject<{
1791
+ public: z.ZodString;
1792
+ staff: z.ZodOptional<z.ZodString>;
1793
+ }, z.core.$strict>;
1794
+ }, z.core.$strict>, z.ZodObject<{
1795
+ claim: z.ZodString;
1796
+ staff: z.ZodOptional<z.ZodEnum<{
1797
+ "user-name": "user-name";
1798
+ "user-id": "user-id";
1799
+ }>>;
1800
+ }, z.core.$strict>, z.ZodObject<{
1801
+ copy: z.ZodString;
1802
+ }, z.core.$strict>, z.ZodObject<{
1803
+ addDays: z.ZodObject<{
1804
+ date: z.ZodString;
1805
+ days: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1806
+ map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1807
+ }, z.core.$strict>;
1808
+ }, z.core.$strict>, z.ZodObject<{
1809
+ hashOf: z.ZodObject<{
1810
+ columns: z.ZodArray<z.ZodString>;
1811
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
1812
+ table: z.ZodString;
1813
+ via: z.ZodString;
1814
+ columns: z.ZodArray<z.ZodString>;
1815
+ orderBy: z.ZodOptional<z.ZodString>;
1816
+ }, z.core.$strict>>>;
1817
+ linked: z.ZodOptional<z.ZodArray<z.ZodObject<{
1818
+ via: z.ZodString;
1819
+ table: z.ZodString;
1820
+ columns: z.ZodArray<z.ZodString>;
1821
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
1822
+ table: z.ZodString;
1823
+ via: z.ZodString;
1824
+ columns: z.ZodArray<z.ZodString>;
1825
+ orderBy: z.ZodOptional<z.ZodString>;
1826
+ }, z.core.$strict>>>;
1827
+ }, z.core.$strict>>>;
1828
+ }, z.core.$strict>;
1829
+ }, z.core.$strict>]>;
1830
+ on: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
1831
+ column: z.ZodString;
1832
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1833
+ }, z.core.$strict>, z.ZodObject<{
1834
+ column: z.ZodString;
1835
+ filled: z.ZodLiteral<true>;
1836
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
1837
+ column: z.ZodString;
1838
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1839
+ }, z.core.$strict>, z.ZodObject<{
1840
+ column: z.ZodString;
1841
+ filled: z.ZodLiteral<true>;
1842
+ }, z.core.$strict>]>>]>;
1843
+ }, z.core.$strict>>;
1844
+ venueLocal: z.ZodOptional<z.ZodLiteral<true>>;
1845
+ personal: z.ZodOptional<z.ZodBoolean>;
1846
+ notAfter: z.ZodOptional<z.ZodLiteral<"today">>;
1847
+ notBefore: z.ZodOptional<z.ZodObject<{
1848
+ column: z.ZodString;
1849
+ via: z.ZodOptional<z.ZodString>;
1850
+ }, z.core.$strict>>;
1851
+ }, z.core.$strict>>;
1852
+ label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1853
+ }, z.core.$strict>>;
1854
+ states: z.ZodOptional<z.ZodObject<{
1855
+ column: z.ZodString;
1856
+ initial: z.ZodString;
1857
+ moves: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1858
+ to: z.ZodString;
1859
+ requires: z.ZodOptional<z.ZodObject<{
1860
+ children: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1861
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
1862
+ column: z.ZodString;
1863
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1864
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1865
+ isNull: z.ZodOptional<z.ZodBoolean>;
1866
+ gt: z.ZodOptional<z.ZodNumber>;
1867
+ gte: z.ZodOptional<z.ZodNumber>;
1868
+ lt: z.ZodOptional<z.ZodNumber>;
1869
+ lte: z.ZodOptional<z.ZodNumber>;
1870
+ }, z.core.$strict>>>;
1871
+ }, z.core.$strict>>;
1872
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1873
+ }, z.core.$strict>]>>>;
1874
+ lock: z.ZodOptional<z.ZodObject<{
1875
+ when: z.ZodArray<z.ZodString>;
1876
+ except: z.ZodOptional<z.ZodArray<z.ZodString>>;
1877
+ }, z.core.$strict>>;
1878
+ children: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1879
+ via: z.ZodString;
1880
+ lock: z.ZodOptional<z.ZodLiteral<true>>;
1881
+ parentIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
1882
+ clearOnCreate: z.ZodOptional<z.ZodArray<z.ZodString>>;
1883
+ }, z.core.$strict>>>;
1884
+ lockedWhenReferencedBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
1885
+ table: z.ZodString;
1886
+ via: z.ZodString;
1887
+ in: z.ZodArray<z.ZodString>;
1888
+ }, z.core.$strict>>>;
1889
+ noDelete: z.ZodOptional<z.ZodObject<{
1890
+ when: z.ZodUnion<readonly [z.ZodLiteral<"numbered">, z.ZodArray<z.ZodString>]>;
1891
+ }, z.core.$strict>>;
1892
+ onlyLater: z.ZodOptional<z.ZodArray<z.ZodString>>;
1893
+ }, z.core.$strict>>;
1894
+ }, z.core.$strict>>;
1895
+ documentProfiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
1896
+ kind: z.ZodString;
1897
+ name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
1898
+ mapping: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
1899
+ column: z.ZodString;
1900
+ }, z.core.$strict>, z.ZodObject<{
1901
+ via: z.ZodString;
1902
+ column: z.ZodString;
1903
+ }, z.core.$strict>, z.ZodObject<{
1904
+ collection: z.ZodObject<{
1905
+ table: z.ZodString;
1906
+ via: z.ZodString;
1907
+ orderBy: z.ZodOptional<z.ZodString>;
1908
+ columns: z.ZodRecord<z.ZodString, z.ZodString>;
1909
+ }, z.core.$strict>;
1910
+ }, z.core.$strict>]>>;
1911
+ statement: z.ZodOptional<z.ZodObject<{
1912
+ documents: z.ZodObject<{
1913
+ table: z.ZodString;
1914
+ via: z.ZodString;
1915
+ date: z.ZodString;
1916
+ amount: z.ZodString;
1917
+ number: z.ZodOptional<z.ZodString>;
1918
+ where: z.ZodOptional<z.ZodObject<{
1919
+ column: z.ZodString;
1920
+ in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1921
+ }, z.core.$strict>>;
1922
+ unless: z.ZodOptional<z.ZodString>;
1923
+ }, z.core.$strict>;
1924
+ payments: z.ZodObject<{
1925
+ table: z.ZodString;
1926
+ via: z.ZodString;
1927
+ date: z.ZodString;
1928
+ amount: z.ZodString;
1929
+ number: z.ZodOptional<z.ZodString>;
1930
+ where: z.ZodOptional<z.ZodObject<{
1931
+ column: z.ZodString;
1932
+ in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1933
+ }, z.core.$strict>>;
1934
+ unless: z.ZodOptional<z.ZodString>;
1935
+ }, z.core.$strict>;
1936
+ }, z.core.$strict>>;
1937
+ part: z.ZodString;
1938
+ }, z.core.$strict>>>;
1939
+ outbox: z.ZodOptional<z.ZodObject<{
1940
+ producers: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1941
+ onCreate: z.ZodObject<{
1942
+ table: z.ZodString;
1943
+ via: z.ZodOptional<z.ZodString>;
1944
+ where: z.ZodOptional<z.ZodObject<{
1945
+ column: z.ZodString;
1946
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1947
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1948
+ isNull: z.ZodOptional<z.ZodBoolean>;
1949
+ }, z.core.$strict>>;
1950
+ }, z.core.$strict>;
1951
+ kind: z.ZodString;
1952
+ link: z.ZodString;
1953
+ gate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodObject<{
1954
+ setting: z.ZodObject<{
1955
+ table: z.ZodString;
1956
+ column: z.ZodString;
1957
+ }, z.core.$strict>;
1958
+ }, z.core.$strict>]>>;
1959
+ optIn: z.ZodOptional<z.ZodLiteral<true>>;
1960
+ hold: z.ZodOptional<z.ZodLiteral<true>>;
1961
+ due: z.ZodOptional<z.ZodObject<{
1962
+ date: z.ZodString;
1963
+ days: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1964
+ byColumn: z.ZodString;
1965
+ values: z.ZodRecord<z.ZodString, z.ZodNumber>;
1966
+ }, z.core.$strict>, z.ZodObject<{
1967
+ setting: z.ZodUnion<readonly [z.ZodObject<{
1968
+ table: z.ZodString;
1969
+ column: z.ZodString;
1970
+ }, z.core.$strict>, z.ZodObject<{
1971
+ addOn: z.ZodString;
1972
+ setting: z.ZodString;
1973
+ }, z.core.$strict>]>;
1974
+ byColumn: z.ZodOptional<z.ZodString>;
1975
+ index: z.ZodOptional<z.ZodNumber>;
1976
+ }, z.core.$strict>]>;
1977
+ at: z.ZodOptional<z.ZodString>;
1978
+ }, z.core.$strict>>;
1979
+ supersede: z.ZodOptional<z.ZodString>;
1980
+ dropWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
1981
+ column: z.ZodString;
1982
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1983
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1984
+ isNull: z.ZodOptional<z.ZodBoolean>;
1985
+ lte: z.ZodOptional<z.ZodNumber>;
1986
+ gte: z.ZodOptional<z.ZodNumber>;
1987
+ reason: z.ZodEnum<{
1988
+ void: "void";
1989
+ paid: "paid";
1990
+ "no-longer-needed": "no-longer-needed";
1991
+ }>;
1992
+ }, z.core.$strict>>>;
1993
+ recipient: z.ZodOptional<z.ZodObject<{
1994
+ setting: z.ZodUnion<readonly [z.ZodObject<{
836
1995
  table: z.ZodString;
837
1996
  column: z.ZodString;
838
- active: z.ZodOptional<z.ZodString>;
839
- public: z.ZodOptional<z.ZodString>;
1997
+ }, z.core.$strict>, z.ZodObject<{
1998
+ addOn: z.ZodString;
1999
+ setting: z.ZodString;
2000
+ }, z.core.$strict>]>;
2001
+ }, z.core.$strict>>;
2002
+ batchMinutes: z.ZodOptional<z.ZodNumber>;
2003
+ onSent: z.ZodOptional<z.ZodObject<{
2004
+ table: z.ZodString;
2005
+ via: z.ZodOptional<z.ZodString>;
2006
+ set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
2007
+ }, z.core.$strict>>;
2008
+ }, z.core.$strict>, z.ZodObject<{
2009
+ onChange: z.ZodObject<{
2010
+ table: z.ZodString;
2011
+ via: z.ZodOptional<z.ZodString>;
2012
+ column: z.ZodString;
2013
+ to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
2014
+ where: z.ZodOptional<z.ZodObject<{
2015
+ column: z.ZodString;
2016
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2017
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
2018
+ isNull: z.ZodOptional<z.ZodBoolean>;
840
2019
  }, z.core.$strict>>;
841
2020
  }, z.core.$strict>;
842
- hours: z.ZodObject<{
843
- practice: z.ZodObject<{
844
- weekday: z.ZodString;
845
- opens: z.ZodString;
846
- closes: z.ZodString;
847
- breakStart: z.ZodOptional<z.ZodString>;
848
- breakEnd: z.ZodOptional<z.ZodString>;
2021
+ kind: z.ZodString;
2022
+ link: z.ZodString;
2023
+ gate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodObject<{
2024
+ setting: z.ZodObject<{
849
2025
  table: z.ZodString;
850
- open: z.ZodOptional<z.ZodString>;
2026
+ column: z.ZodString;
851
2027
  }, z.core.$strict>;
852
- own: z.ZodOptional<z.ZodObject<{
853
- weekday: z.ZodString;
854
- opens: z.ZodString;
855
- closes: z.ZodString;
856
- breakStart: z.ZodOptional<z.ZodString>;
857
- breakEnd: z.ZodOptional<z.ZodString>;
858
- table: z.ZodString;
859
- resource: z.ZodString;
860
- }, z.core.$strict>>;
861
- }, z.core.$strict>;
862
- closures: z.ZodOptional<z.ZodObject<{
863
- table: z.ZodString;
864
- from: z.ZodString;
865
- to: z.ZodString;
866
- resource: z.ZodOptional<z.ZodString>;
867
- active: z.ZodOptional<z.ZodString>;
2028
+ }, z.core.$strict>]>>;
2029
+ optIn: z.ZodOptional<z.ZodLiteral<true>>;
2030
+ hold: z.ZodOptional<z.ZodLiteral<true>>;
2031
+ due: z.ZodOptional<z.ZodObject<{
2032
+ date: z.ZodString;
2033
+ days: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2034
+ byColumn: z.ZodString;
2035
+ values: z.ZodRecord<z.ZodString, z.ZodNumber>;
2036
+ }, z.core.$strict>, z.ZodObject<{
2037
+ setting: z.ZodUnion<readonly [z.ZodObject<{
2038
+ table: z.ZodString;
2039
+ column: z.ZodString;
2040
+ }, z.core.$strict>, z.ZodObject<{
2041
+ addOn: z.ZodString;
2042
+ setting: z.ZodString;
2043
+ }, z.core.$strict>]>;
2044
+ byColumn: z.ZodOptional<z.ZodString>;
2045
+ index: z.ZodOptional<z.ZodNumber>;
2046
+ }, z.core.$strict>]>;
2047
+ at: z.ZodOptional<z.ZodString>;
868
2048
  }, z.core.$strict>>;
869
- grid: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
870
- table: z.ZodString;
2049
+ supersede: z.ZodOptional<z.ZodString>;
2050
+ dropWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
871
2051
  column: z.ZodString;
872
- }, z.core.$strict>]>;
873
- windowDays: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2052
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2053
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
2054
+ isNull: z.ZodOptional<z.ZodBoolean>;
2055
+ lte: z.ZodOptional<z.ZodNumber>;
2056
+ gte: z.ZodOptional<z.ZodNumber>;
2057
+ reason: z.ZodEnum<{
2058
+ void: "void";
2059
+ paid: "paid";
2060
+ "no-longer-needed": "no-longer-needed";
2061
+ }>;
2062
+ }, z.core.$strict>>>;
2063
+ recipient: z.ZodOptional<z.ZodObject<{
2064
+ setting: z.ZodUnion<readonly [z.ZodObject<{
2065
+ table: z.ZodString;
2066
+ column: z.ZodString;
2067
+ }, z.core.$strict>, z.ZodObject<{
2068
+ addOn: z.ZodString;
2069
+ setting: z.ZodString;
2070
+ }, z.core.$strict>]>;
2071
+ }, z.core.$strict>>;
2072
+ batchMinutes: z.ZodOptional<z.ZodNumber>;
2073
+ onSent: z.ZodOptional<z.ZodObject<{
874
2074
  table: z.ZodString;
875
- column: z.ZodString;
876
- }, z.core.$strict>]>>;
877
- noticeMinutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2075
+ via: z.ZodOptional<z.ZodString>;
2076
+ set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
2077
+ }, z.core.$strict>>;
2078
+ }, z.core.$strict>, z.ZodObject<{
2079
+ before: z.ZodObject<{
878
2080
  table: z.ZodString;
879
- column: z.ZodString;
880
- }, z.core.$strict>]>>;
881
- cancel: z.ZodOptional<z.ZodObject<{
882
- hours: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2081
+ at: z.ZodString;
2082
+ lead: z.ZodObject<{
2083
+ via: z.ZodString;
2084
+ table: z.ZodString;
2085
+ column: z.ZodString;
2086
+ fallback: z.ZodOptional<z.ZodObject<{
2087
+ table: z.ZodString;
2088
+ column: z.ZodString;
2089
+ }, z.core.$strict>>;
2090
+ max: z.ZodNumber;
2091
+ }, z.core.$strict>;
2092
+ where: z.ZodOptional<z.ZodObject<{
2093
+ column: z.ZodString;
2094
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2095
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
2096
+ isNull: z.ZodOptional<z.ZodBoolean>;
2097
+ }, z.core.$strict>>;
2098
+ }, z.core.$strict>;
2099
+ kind: z.ZodString;
2100
+ link: z.ZodString;
2101
+ gate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodObject<{
2102
+ setting: z.ZodObject<{
883
2103
  table: z.ZodString;
884
2104
  column: z.ZodString;
2105
+ }, z.core.$strict>;
2106
+ }, z.core.$strict>]>>;
2107
+ optIn: z.ZodOptional<z.ZodLiteral<true>>;
2108
+ hold: z.ZodOptional<z.ZodLiteral<true>>;
2109
+ due: z.ZodOptional<z.ZodObject<{
2110
+ date: z.ZodString;
2111
+ days: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2112
+ byColumn: z.ZodString;
2113
+ values: z.ZodRecord<z.ZodString, z.ZodNumber>;
2114
+ }, z.core.$strict>, z.ZodObject<{
2115
+ setting: z.ZodUnion<readonly [z.ZodObject<{
2116
+ table: z.ZodString;
2117
+ column: z.ZodString;
2118
+ }, z.core.$strict>, z.ZodObject<{
2119
+ addOn: z.ZodString;
2120
+ setting: z.ZodString;
2121
+ }, z.core.$strict>]>;
2122
+ byColumn: z.ZodOptional<z.ZodString>;
2123
+ index: z.ZodOptional<z.ZodNumber>;
885
2124
  }, z.core.$strict>]>;
886
- mode: z.ZodEnum<{
887
- refuse: "refuse";
888
- flag: "flag";
2125
+ at: z.ZodOptional<z.ZodString>;
2126
+ }, z.core.$strict>>;
2127
+ supersede: z.ZodOptional<z.ZodString>;
2128
+ dropWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
2129
+ column: z.ZodString;
2130
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2131
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
2132
+ isNull: z.ZodOptional<z.ZodBoolean>;
2133
+ lte: z.ZodOptional<z.ZodNumber>;
2134
+ gte: z.ZodOptional<z.ZodNumber>;
2135
+ reason: z.ZodEnum<{
2136
+ void: "void";
2137
+ paid: "paid";
2138
+ "no-longer-needed": "no-longer-needed";
889
2139
  }>;
890
- flag: z.ZodOptional<z.ZodString>;
891
- when: z.ZodObject<{
2140
+ }, z.core.$strict>>>;
2141
+ recipient: z.ZodOptional<z.ZodObject<{
2142
+ setting: z.ZodUnion<readonly [z.ZodObject<{
2143
+ table: z.ZodString;
892
2144
  column: z.ZodString;
893
- to: z.ZodString;
894
- }, z.core.$strict>;
2145
+ }, z.core.$strict>, z.ZodObject<{
2146
+ addOn: z.ZodString;
2147
+ setting: z.ZodString;
2148
+ }, z.core.$strict>]>;
895
2149
  }, z.core.$strict>>;
896
- }, z.core.$strict>>;
897
- label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
898
- labelPlural: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
899
- keyField: z.ZodOptional<z.ZodString>;
2150
+ batchMinutes: z.ZodOptional<z.ZodNumber>;
2151
+ onSent: z.ZodOptional<z.ZodObject<{
2152
+ table: z.ZodString;
2153
+ via: z.ZodOptional<z.ZodString>;
2154
+ set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
2155
+ }, z.core.$strict>>;
2156
+ }, z.core.$strict>]>>;
2157
+ templates: z.ZodOptional<z.ZodArray<z.ZodObject<{
2158
+ name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
2159
+ attach: z.ZodOptional<z.ZodObject<{
2160
+ kind: z.ZodString;
2161
+ link: z.ZodString;
2162
+ }, z.core.$strict>>;
2163
+ vars: z.ZodOptional<z.ZodArray<z.ZodString>>;
2164
+ locales: z.ZodRecord<z.ZodString, z.ZodObject<{
2165
+ subject: z.ZodString;
2166
+ preheader: z.ZodOptional<z.ZodString>;
2167
+ blocks: z.ZodArray<z.ZodObject<{
2168
+ block: z.ZodString;
2169
+ id: z.ZodOptional<z.ZodString>;
2170
+ label: z.ZodOptional<z.ZodString>;
2171
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2172
+ }, z.core.$strict>>;
2173
+ footer: z.ZodOptional<z.ZodString>;
2174
+ }, z.core.$strict>>;
2175
+ kind: z.ZodString;
2176
+ }, z.core.$strict>>>;
900
2177
  }, z.core.$strict>>;
901
- prefixed: z.ZodOptional<z.ZodLiteral<true>>;
902
2178
  }, z.core.$strict>;
2179
+ export type ShapeDefinition = z.infer<typeof shapeDefinitionSchema>;
2180
+ /**
2181
+ * Everything wrong inside an add-on's shapes: each part is checked as the
2182
+ * app's tables are, with the parts of all its shapes as the tables (another
2183
+ * shape's part as `<name>@<version>/<part>`), and its rules may read only the
2184
+ * add-on's own settings.
2185
+ */
2186
+ export declare function shapeDefinitionIssues(addOn: string, settings: readonly string[], shapes: readonly ShapeDefinition[]): {
2187
+ path: (string | number)[];
2188
+ message: string;
2189
+ }[];
903
2190
  export declare const pageNavSchema: z.ZodObject<{
904
2191
  group: z.ZodString;
905
2192
  icon: z.ZodString;
@@ -920,6 +2207,7 @@ export declare const pageSchema: z.ZodObject<{
920
2207
  bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
921
2208
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
922
2209
  titles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2210
+ feature: z.ZodOptional<z.ZodString>;
923
2211
  }, z.core.$strict>;
924
2212
  export declare const roleSchema: z.ZodObject<{
925
2213
  key: z.ZodString;
@@ -1061,8 +2349,8 @@ export declare const frontendSchema: z.ZodObject<{
1061
2349
  }, z.core.$strict>>>;
1062
2350
  routes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1063
2351
  placement: z.ZodOptional<z.ZodEnum<{
1064
- internal: "internal";
1065
2352
  external: "external";
2353
+ internal: "internal";
1066
2354
  }>>;
1067
2355
  enabled: z.ZodOptional<z.ZodBoolean>;
1068
2356
  }, z.core.$strict>;
@@ -1114,12 +2402,25 @@ export declare function appReferenceIssues(m: {
1114
2402
  roles?: readonly RoleShape[] | undefined;
1115
2403
  outbox?: z.infer<typeof outboxSchema> | undefined;
1116
2404
  emailTemplates?: readonly z.infer<typeof emailTemplateSchema>[] | undefined;
2405
+ addOns?: AddOnNeeds | undefined;
2406
+ documents?: readonly AppDocument[] | undefined;
2407
+ pages?: readonly {
2408
+ feature?: string | undefined;
2409
+ }[] | undefined;
2410
+ },
2411
+ /**
2412
+ * When the tables are an add-on's shape rather than an app's: the add-on's
2413
+ * own key and setting keys, which its rules may read, and no roles to name.
2414
+ */
2415
+ shapeOf?: {
2416
+ addOn: string;
2417
+ settings: readonly string[];
1117
2418
  }): {
1118
2419
  path: (string | number)[];
1119
2420
  message: string;
1120
2421
  }[];
1121
2422
  /** What `appReferenceIssues` reads of a table. */
1122
- interface RequiredTableShape {
2423
+ export interface RequiredTableShape {
1123
2424
  ref: string;
1124
2425
  columns: readonly {
1125
2426
  ref: string;
@@ -1133,6 +2434,8 @@ interface RequiredTableShape {
1133
2434
  }[];
1134
2435
  capacity?: z.infer<typeof capacitySchema> | undefined;
1135
2436
  booking?: z.infer<typeof bookingSchema> | undefined;
2437
+ states?: States | undefined;
2438
+ builtOn?: string | undefined;
1136
2439
  }
1137
2440
  export declare const appManifestSchema: z.ZodObject<{
1138
2441
  compatibility: z.ZodObject<{
@@ -1144,11 +2447,11 @@ export declare const appManifestSchema: z.ZodObject<{
1144
2447
  sqlite: "sqlite";
1145
2448
  }>>>;
1146
2449
  requires: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2450
+ payments: "payments";
1147
2451
  "hosted-only": "hosted-only";
1148
2452
  "offline-required": "offline-required";
1149
2453
  "receipt-printer": "receipt-printer";
1150
2454
  "barcode-scanner": "barcode-scanner";
1151
- payments: "payments";
1152
2455
  "file-storage": "file-storage";
1153
2456
  "email-delivery": "email-delivery";
1154
2457
  realtime: "realtime";
@@ -1171,18 +2474,18 @@ export declare const appManifestSchema: z.ZodObject<{
1171
2474
  money: "money";
1172
2475
  float: "float";
1173
2476
  bool: "bool";
2477
+ id: "id";
1174
2478
  timestamptz: "timestamptz";
1175
2479
  fk: "fk";
1176
2480
  text: "text";
1177
- id: "id";
1178
2481
  json: "json";
1179
2482
  uuid: "uuid";
1180
2483
  blob: "blob";
1181
2484
  }>;
1182
2485
  semantic: z.ZodOptional<z.ZodEnum<{
1183
2486
  money: "money";
1184
- email: "email";
1185
2487
  name: "name";
2488
+ email: "email";
1186
2489
  image: "image";
1187
2490
  avatar: "avatar";
1188
2491
  "geo-lat": "geo-lat";
@@ -1198,6 +2501,7 @@ export declare const appManifestSchema: z.ZodObject<{
1198
2501
  references: z.ZodOptional<z.ZodString>;
1199
2502
  default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1200
2503
  maxLength: z.ZodOptional<z.ZodNumber>;
2504
+ scale: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"currency">]>>;
1201
2505
  unique: z.ZodOptional<z.ZodLiteral<true>>;
1202
2506
  rules: z.ZodOptional<z.ZodObject<{
1203
2507
  options: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -1233,13 +2537,48 @@ export declare const appManifestSchema: z.ZodObject<{
1233
2537
  always: "always";
1234
2538
  }>>;
1235
2539
  }, z.core.$strict>>;
2540
+ default: z.ZodOptional<z.ZodObject<{
2541
+ from: z.ZodUnion<readonly [z.ZodLiteral<"connection.currency">, z.ZodUnion<readonly [z.ZodObject<{
2542
+ table: z.ZodString;
2543
+ column: z.ZodString;
2544
+ }, z.core.$strict>, z.ZodObject<{
2545
+ addOn: z.ZodString;
2546
+ setting: z.ZodString;
2547
+ }, z.core.$strict>]>]>;
2548
+ }, z.core.$strict>>;
1236
2549
  sequence: z.ZodOptional<z.ZodObject<{
1237
2550
  start: z.ZodOptional<z.ZodNumber>;
2551
+ gapless: z.ZodOptional<z.ZodLiteral<true>>;
2552
+ startSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2553
+ table: z.ZodString;
2554
+ column: z.ZodString;
2555
+ }, z.core.$strict>, z.ZodObject<{
2556
+ addOn: z.ZodString;
2557
+ setting: z.ZodString;
2558
+ }, z.core.$strict>]>>;
2559
+ scope: z.ZodOptional<z.ZodString>;
2560
+ }, z.core.$strict>>;
2561
+ format: z.ZodOptional<z.ZodObject<{
2562
+ from: z.ZodString;
2563
+ prefix: z.ZodOptional<z.ZodString>;
2564
+ prefixSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2565
+ table: z.ZodString;
2566
+ column: z.ZodString;
2567
+ }, z.core.$strict>, z.ZodObject<{
2568
+ addOn: z.ZodString;
2569
+ setting: z.ZodString;
2570
+ }, z.core.$strict>]>>;
2571
+ pad: z.ZodOptional<z.ZodNumber>;
1238
2572
  }, z.core.$strict>>;
1239
2573
  code: z.ZodOptional<z.ZodObject<{
1240
2574
  prefix: z.ZodOptional<z.ZodString>;
1241
2575
  length: z.ZodNumber;
1242
2576
  }, z.core.$strict>>;
2577
+ formula: z.ZodOptional<z.ZodType<import("./formula.js").FormulaExpr, unknown, z.core.$ZodTypeInternals<import("./formula.js").FormulaExpr, unknown>>>;
2578
+ normalize: z.ZodOptional<z.ZodEnum<{
2579
+ trim: "trim";
2580
+ email: "email";
2581
+ }>>;
1243
2582
  rollup: z.ZodOptional<z.ZodObject<{
1244
2583
  from: z.ZodString;
1245
2584
  via: z.ZodString;
@@ -1259,22 +2598,72 @@ export declare const appManifestSchema: z.ZodObject<{
1259
2598
  }, z.core.$strict>>;
1260
2599
  stamp: z.ZodOptional<z.ZodObject<{
1261
2600
  set: z.ZodUnion<readonly [z.ZodEnum<{
2601
+ today: "today";
1262
2602
  now: "now";
1263
2603
  "user-name": "user-name";
1264
2604
  "user-id": "user-id";
1265
2605
  }>, z.ZodObject<{
1266
2606
  byOrigin: z.ZodObject<{
1267
2607
  public: z.ZodString;
1268
- staff: z.ZodString;
2608
+ staff: z.ZodOptional<z.ZodString>;
2609
+ }, z.core.$strict>;
2610
+ }, z.core.$strict>, z.ZodObject<{
2611
+ claim: z.ZodString;
2612
+ staff: z.ZodOptional<z.ZodEnum<{
2613
+ "user-name": "user-name";
2614
+ "user-id": "user-id";
2615
+ }>>;
2616
+ }, z.core.$strict>, z.ZodObject<{
2617
+ copy: z.ZodString;
2618
+ }, z.core.$strict>, z.ZodObject<{
2619
+ addDays: z.ZodObject<{
2620
+ date: z.ZodString;
2621
+ days: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
2622
+ map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2623
+ }, z.core.$strict>;
2624
+ }, z.core.$strict>, z.ZodObject<{
2625
+ hashOf: z.ZodObject<{
2626
+ columns: z.ZodArray<z.ZodString>;
2627
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
2628
+ table: z.ZodString;
2629
+ via: z.ZodString;
2630
+ columns: z.ZodArray<z.ZodString>;
2631
+ orderBy: z.ZodOptional<z.ZodString>;
2632
+ }, z.core.$strict>>>;
2633
+ linked: z.ZodOptional<z.ZodArray<z.ZodObject<{
2634
+ via: z.ZodString;
2635
+ table: z.ZodString;
2636
+ columns: z.ZodArray<z.ZodString>;
2637
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
2638
+ table: z.ZodString;
2639
+ via: z.ZodString;
2640
+ columns: z.ZodArray<z.ZodString>;
2641
+ orderBy: z.ZodOptional<z.ZodString>;
2642
+ }, z.core.$strict>>>;
2643
+ }, z.core.$strict>>>;
1269
2644
  }, z.core.$strict>;
1270
2645
  }, z.core.$strict>]>;
1271
- on: z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
2646
+ on: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
1272
2647
  column: z.ZodString;
1273
2648
  values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1274
- }, z.core.$strict>]>;
2649
+ }, z.core.$strict>, z.ZodObject<{
2650
+ column: z.ZodString;
2651
+ filled: z.ZodLiteral<true>;
2652
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
2653
+ column: z.ZodString;
2654
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2655
+ }, z.core.$strict>, z.ZodObject<{
2656
+ column: z.ZodString;
2657
+ filled: z.ZodLiteral<true>;
2658
+ }, z.core.$strict>]>>]>;
1275
2659
  }, z.core.$strict>>;
1276
2660
  venueLocal: z.ZodOptional<z.ZodLiteral<true>>;
1277
2661
  personal: z.ZodOptional<z.ZodBoolean>;
2662
+ notAfter: z.ZodOptional<z.ZodLiteral<"today">>;
2663
+ notBefore: z.ZodOptional<z.ZodObject<{
2664
+ column: z.ZodString;
2665
+ via: z.ZodOptional<z.ZodString>;
2666
+ }, z.core.$strict>>;
1278
2667
  }, z.core.$strict>>;
1279
2668
  label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1280
2669
  }, z.core.$strict>>;
@@ -1387,6 +2776,48 @@ export declare const appManifestSchema: z.ZodObject<{
1387
2776
  }, z.core.$strict>;
1388
2777
  }, z.core.$strict>>;
1389
2778
  }, z.core.$strict>>;
2779
+ states: z.ZodOptional<z.ZodObject<{
2780
+ column: z.ZodString;
2781
+ initial: z.ZodString;
2782
+ moves: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2783
+ to: z.ZodString;
2784
+ requires: z.ZodOptional<z.ZodObject<{
2785
+ children: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2786
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
2787
+ column: z.ZodString;
2788
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2789
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
2790
+ isNull: z.ZodOptional<z.ZodBoolean>;
2791
+ gt: z.ZodOptional<z.ZodNumber>;
2792
+ gte: z.ZodOptional<z.ZodNumber>;
2793
+ lt: z.ZodOptional<z.ZodNumber>;
2794
+ lte: z.ZodOptional<z.ZodNumber>;
2795
+ }, z.core.$strict>>>;
2796
+ }, z.core.$strict>>;
2797
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2798
+ }, z.core.$strict>]>>>;
2799
+ lock: z.ZodOptional<z.ZodObject<{
2800
+ when: z.ZodArray<z.ZodString>;
2801
+ except: z.ZodOptional<z.ZodArray<z.ZodString>>;
2802
+ }, z.core.$strict>>;
2803
+ children: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2804
+ via: z.ZodString;
2805
+ lock: z.ZodOptional<z.ZodLiteral<true>>;
2806
+ parentIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
2807
+ clearOnCreate: z.ZodOptional<z.ZodArray<z.ZodString>>;
2808
+ }, z.core.$strict>>>;
2809
+ lockedWhenReferencedBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
2810
+ table: z.ZodString;
2811
+ via: z.ZodString;
2812
+ in: z.ZodArray<z.ZodString>;
2813
+ }, z.core.$strict>>>;
2814
+ noDelete: z.ZodOptional<z.ZodObject<{
2815
+ when: z.ZodUnion<readonly [z.ZodLiteral<"numbered">, z.ZodArray<z.ZodString>]>;
2816
+ }, z.core.$strict>>;
2817
+ onlyLater: z.ZodOptional<z.ZodArray<z.ZodString>>;
2818
+ }, z.core.$strict>>;
2819
+ builtOn: z.ZodOptional<z.ZodString>;
2820
+ part: z.ZodOptional<z.ZodString>;
1390
2821
  label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1391
2822
  labelPlural: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1392
2823
  keyField: z.ZodOptional<z.ZodString>;
@@ -1408,6 +2839,7 @@ export declare const appManifestSchema: z.ZodObject<{
1408
2839
  bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1409
2840
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1410
2841
  titles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2842
+ feature: z.ZodOptional<z.ZodString>;
1411
2843
  }, z.core.$strict>>;
1412
2844
  roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
1413
2845
  key: z.ZodString;
@@ -1519,11 +2951,11 @@ export declare const appManifestSchema: z.ZodObject<{
1519
2951
  entry: z.ZodString;
1520
2952
  }, z.core.$strict>>>;
1521
2953
  capabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2954
+ payments: "payments";
1522
2955
  "hosted-only": "hosted-only";
1523
2956
  "offline-required": "offline-required";
1524
2957
  "receipt-printer": "receipt-printer";
1525
2958
  "barcode-scanner": "barcode-scanner";
1526
- payments: "payments";
1527
2959
  "file-storage": "file-storage";
1528
2960
  "email-delivery": "email-delivery";
1529
2961
  realtime: "realtime";
@@ -1547,8 +2979,8 @@ export declare const appManifestSchema: z.ZodObject<{
1547
2979
  }, z.core.$strict>>>;
1548
2980
  routes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1549
2981
  placement: z.ZodOptional<z.ZodEnum<{
1550
- internal: "internal";
1551
2982
  external: "external";
2983
+ internal: "internal";
1552
2984
  }>>;
1553
2985
  enabled: z.ZodOptional<z.ZodBoolean>;
1554
2986
  }, z.core.$strict>>;
@@ -1597,11 +3029,19 @@ export declare const appManifestSchema: z.ZodObject<{
1597
3029
  days: z.ZodOptional<z.ZodNumber>;
1598
3030
  }, z.core.$strict>]>]>>>;
1599
3031
  defaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1600
- claim: z.ZodOptional<z.ZodObject<{
3032
+ claim: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1601
3033
  match: z.ZodArray<z.ZodString>;
1602
3034
  verify: z.ZodOptional<z.ZodLiteral<"email-code">>;
1603
3035
  email: z.ZodOptional<z.ZodString>;
1604
- }, z.core.$strict>>;
3036
+ }, z.core.$strict>, z.ZodObject<{
3037
+ verify: z.ZodLiteral<"email-link">;
3038
+ email: z.ZodString;
3039
+ }, z.core.$strict>, z.ZodObject<{
3040
+ by: z.ZodLiteral<"token">;
3041
+ column: z.ZodString;
3042
+ expires: z.ZodOptional<z.ZodString>;
3043
+ stopped: z.ZodOptional<z.ZodString>;
3044
+ }, z.core.$strict>]>>;
1605
3045
  claimedBy: z.ZodOptional<z.ZodObject<{
1606
3046
  table: z.ZodString;
1607
3047
  column: z.ZodString;
@@ -1611,13 +3051,20 @@ export declare const appManifestSchema: z.ZodObject<{
1611
3051
  lookup: "lookup";
1612
3052
  verified: "verified";
1613
3053
  }>>;
3054
+ visibleWith: z.ZodOptional<z.ZodObject<{
3055
+ table: z.ZodString;
3056
+ via: z.ZodString;
3057
+ }, z.core.$strict>>;
3058
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
3059
+ documents: z.ZodOptional<z.ZodArray<z.ZodString>>;
1614
3060
  sensitive: z.ZodOptional<z.ZodBoolean>;
1615
3061
  reason: z.ZodOptional<z.ZodString>;
1616
3062
  onClaim: z.ZodOptional<z.ZodObject<{
1617
3063
  clear: z.ZodArray<z.ZodString>;
1618
3064
  }, z.core.$strict>>;
1619
3065
  writableValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>>;
1620
- writableWhen: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodLiteral<"from-now">, z.ZodObject<{
3066
+ requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
3067
+ writableWhen: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>, z.ZodLiteral<"from-now">, z.ZodLiteral<"from-today">, z.ZodLiteral<"before-today">, z.ZodObject<{
1621
3068
  within: z.ZodNumber;
1622
3069
  }, z.core.$strict>]>>>;
1623
3070
  humanCheck: z.ZodOptional<z.ZodLiteral<true>>;
@@ -1667,9 +3114,9 @@ export declare const appManifestSchema: z.ZodObject<{
1667
3114
  }, z.core.$strict>>;
1668
3115
  }, z.core.$strict>>>;
1669
3116
  publicKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1670
- requiresStaff: z.ZodObject<{
3117
+ requiresStaff: z.ZodOptional<z.ZodObject<{
1671
3118
  role: z.ZodString;
1672
- }, z.core.$strict>;
3119
+ }, z.core.$strict>>;
1673
3120
  enabledBy: z.ZodOptional<z.ZodObject<{
1674
3121
  table: z.ZodString;
1675
3122
  column: z.ZodString;
@@ -1685,6 +3132,12 @@ export declare const appManifestSchema: z.ZodObject<{
1685
3132
  due: z.ZodOptional<z.ZodString>;
1686
3133
  sentAt: z.ZodOptional<z.ZodString>;
1687
3134
  error: z.ZodOptional<z.ZodString>;
3135
+ skipReason: z.ZodOptional<z.ZodString>;
3136
+ subjectOverride: z.ZodOptional<z.ZodString>;
3137
+ bodyOverride: z.ZodOptional<z.ZodString>;
3138
+ approvedBy: z.ZodOptional<z.ZodString>;
3139
+ effectAt: z.ZodOptional<z.ZodString>;
3140
+ effectError: z.ZodOptional<z.ZodString>;
1688
3141
  }, z.core.$strict>;
1689
3142
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1690
3143
  recipient: z.ZodObject<{
@@ -1715,6 +3168,7 @@ export declare const appManifestSchema: z.ZodObject<{
1715
3168
  producers: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1716
3169
  onCreate: z.ZodObject<{
1717
3170
  table: z.ZodString;
3171
+ via: z.ZodOptional<z.ZodString>;
1718
3172
  where: z.ZodOptional<z.ZodObject<{
1719
3173
  column: z.ZodString;
1720
3174
  eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
@@ -1724,11 +3178,65 @@ export declare const appManifestSchema: z.ZodObject<{
1724
3178
  }, z.core.$strict>;
1725
3179
  kind: z.ZodString;
1726
3180
  link: z.ZodString;
1727
- gate: z.ZodOptional<z.ZodLiteral<"enabled">>;
3181
+ gate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodObject<{
3182
+ setting: z.ZodObject<{
3183
+ table: z.ZodString;
3184
+ column: z.ZodString;
3185
+ }, z.core.$strict>;
3186
+ }, z.core.$strict>]>>;
1728
3187
  optIn: z.ZodOptional<z.ZodLiteral<true>>;
3188
+ hold: z.ZodOptional<z.ZodLiteral<true>>;
3189
+ due: z.ZodOptional<z.ZodObject<{
3190
+ date: z.ZodString;
3191
+ days: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3192
+ byColumn: z.ZodString;
3193
+ values: z.ZodRecord<z.ZodString, z.ZodNumber>;
3194
+ }, z.core.$strict>, z.ZodObject<{
3195
+ setting: z.ZodUnion<readonly [z.ZodObject<{
3196
+ table: z.ZodString;
3197
+ column: z.ZodString;
3198
+ }, z.core.$strict>, z.ZodObject<{
3199
+ addOn: z.ZodString;
3200
+ setting: z.ZodString;
3201
+ }, z.core.$strict>]>;
3202
+ byColumn: z.ZodOptional<z.ZodString>;
3203
+ index: z.ZodOptional<z.ZodNumber>;
3204
+ }, z.core.$strict>]>;
3205
+ at: z.ZodOptional<z.ZodString>;
3206
+ }, z.core.$strict>>;
3207
+ supersede: z.ZodOptional<z.ZodString>;
3208
+ dropWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
3209
+ column: z.ZodString;
3210
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3211
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3212
+ isNull: z.ZodOptional<z.ZodBoolean>;
3213
+ lte: z.ZodOptional<z.ZodNumber>;
3214
+ gte: z.ZodOptional<z.ZodNumber>;
3215
+ reason: z.ZodEnum<{
3216
+ void: "void";
3217
+ paid: "paid";
3218
+ "no-longer-needed": "no-longer-needed";
3219
+ }>;
3220
+ }, z.core.$strict>>>;
3221
+ recipient: z.ZodOptional<z.ZodObject<{
3222
+ setting: z.ZodUnion<readonly [z.ZodObject<{
3223
+ table: z.ZodString;
3224
+ column: z.ZodString;
3225
+ }, z.core.$strict>, z.ZodObject<{
3226
+ addOn: z.ZodString;
3227
+ setting: z.ZodString;
3228
+ }, z.core.$strict>]>;
3229
+ }, z.core.$strict>>;
3230
+ batchMinutes: z.ZodOptional<z.ZodNumber>;
3231
+ onSent: z.ZodOptional<z.ZodObject<{
3232
+ table: z.ZodString;
3233
+ via: z.ZodOptional<z.ZodString>;
3234
+ set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
3235
+ }, z.core.$strict>>;
1729
3236
  }, z.core.$strict>, z.ZodObject<{
1730
3237
  onChange: z.ZodObject<{
1731
3238
  table: z.ZodString;
3239
+ via: z.ZodOptional<z.ZodString>;
1732
3240
  column: z.ZodString;
1733
3241
  to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
1734
3242
  where: z.ZodOptional<z.ZodObject<{
@@ -1740,8 +3248,61 @@ export declare const appManifestSchema: z.ZodObject<{
1740
3248
  }, z.core.$strict>;
1741
3249
  kind: z.ZodString;
1742
3250
  link: z.ZodString;
1743
- gate: z.ZodOptional<z.ZodLiteral<"enabled">>;
3251
+ gate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodObject<{
3252
+ setting: z.ZodObject<{
3253
+ table: z.ZodString;
3254
+ column: z.ZodString;
3255
+ }, z.core.$strict>;
3256
+ }, z.core.$strict>]>>;
1744
3257
  optIn: z.ZodOptional<z.ZodLiteral<true>>;
3258
+ hold: z.ZodOptional<z.ZodLiteral<true>>;
3259
+ due: z.ZodOptional<z.ZodObject<{
3260
+ date: z.ZodString;
3261
+ days: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3262
+ byColumn: z.ZodString;
3263
+ values: z.ZodRecord<z.ZodString, z.ZodNumber>;
3264
+ }, z.core.$strict>, z.ZodObject<{
3265
+ setting: z.ZodUnion<readonly [z.ZodObject<{
3266
+ table: z.ZodString;
3267
+ column: z.ZodString;
3268
+ }, z.core.$strict>, z.ZodObject<{
3269
+ addOn: z.ZodString;
3270
+ setting: z.ZodString;
3271
+ }, z.core.$strict>]>;
3272
+ byColumn: z.ZodOptional<z.ZodString>;
3273
+ index: z.ZodOptional<z.ZodNumber>;
3274
+ }, z.core.$strict>]>;
3275
+ at: z.ZodOptional<z.ZodString>;
3276
+ }, z.core.$strict>>;
3277
+ supersede: z.ZodOptional<z.ZodString>;
3278
+ dropWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
3279
+ column: z.ZodString;
3280
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3281
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3282
+ isNull: z.ZodOptional<z.ZodBoolean>;
3283
+ lte: z.ZodOptional<z.ZodNumber>;
3284
+ gte: z.ZodOptional<z.ZodNumber>;
3285
+ reason: z.ZodEnum<{
3286
+ void: "void";
3287
+ paid: "paid";
3288
+ "no-longer-needed": "no-longer-needed";
3289
+ }>;
3290
+ }, z.core.$strict>>>;
3291
+ recipient: z.ZodOptional<z.ZodObject<{
3292
+ setting: z.ZodUnion<readonly [z.ZodObject<{
3293
+ table: z.ZodString;
3294
+ column: z.ZodString;
3295
+ }, z.core.$strict>, z.ZodObject<{
3296
+ addOn: z.ZodString;
3297
+ setting: z.ZodString;
3298
+ }, z.core.$strict>]>;
3299
+ }, z.core.$strict>>;
3300
+ batchMinutes: z.ZodOptional<z.ZodNumber>;
3301
+ onSent: z.ZodOptional<z.ZodObject<{
3302
+ table: z.ZodString;
3303
+ via: z.ZodOptional<z.ZodString>;
3304
+ set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
3305
+ }, z.core.$strict>>;
1745
3306
  }, z.core.$strict>, z.ZodObject<{
1746
3307
  before: z.ZodObject<{
1747
3308
  table: z.ZodString;
@@ -1765,13 +3326,70 @@ export declare const appManifestSchema: z.ZodObject<{
1765
3326
  }, z.core.$strict>;
1766
3327
  kind: z.ZodString;
1767
3328
  link: z.ZodString;
1768
- gate: z.ZodOptional<z.ZodLiteral<"enabled">>;
3329
+ gate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodObject<{
3330
+ setting: z.ZodObject<{
3331
+ table: z.ZodString;
3332
+ column: z.ZodString;
3333
+ }, z.core.$strict>;
3334
+ }, z.core.$strict>]>>;
1769
3335
  optIn: z.ZodOptional<z.ZodLiteral<true>>;
3336
+ hold: z.ZodOptional<z.ZodLiteral<true>>;
3337
+ due: z.ZodOptional<z.ZodObject<{
3338
+ date: z.ZodString;
3339
+ days: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3340
+ byColumn: z.ZodString;
3341
+ values: z.ZodRecord<z.ZodString, z.ZodNumber>;
3342
+ }, z.core.$strict>, z.ZodObject<{
3343
+ setting: z.ZodUnion<readonly [z.ZodObject<{
3344
+ table: z.ZodString;
3345
+ column: z.ZodString;
3346
+ }, z.core.$strict>, z.ZodObject<{
3347
+ addOn: z.ZodString;
3348
+ setting: z.ZodString;
3349
+ }, z.core.$strict>]>;
3350
+ byColumn: z.ZodOptional<z.ZodString>;
3351
+ index: z.ZodOptional<z.ZodNumber>;
3352
+ }, z.core.$strict>]>;
3353
+ at: z.ZodOptional<z.ZodString>;
3354
+ }, z.core.$strict>>;
3355
+ supersede: z.ZodOptional<z.ZodString>;
3356
+ dropWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
3357
+ column: z.ZodString;
3358
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3359
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3360
+ isNull: z.ZodOptional<z.ZodBoolean>;
3361
+ lte: z.ZodOptional<z.ZodNumber>;
3362
+ gte: z.ZodOptional<z.ZodNumber>;
3363
+ reason: z.ZodEnum<{
3364
+ void: "void";
3365
+ paid: "paid";
3366
+ "no-longer-needed": "no-longer-needed";
3367
+ }>;
3368
+ }, z.core.$strict>>>;
3369
+ recipient: z.ZodOptional<z.ZodObject<{
3370
+ setting: z.ZodUnion<readonly [z.ZodObject<{
3371
+ table: z.ZodString;
3372
+ column: z.ZodString;
3373
+ }, z.core.$strict>, z.ZodObject<{
3374
+ addOn: z.ZodString;
3375
+ setting: z.ZodString;
3376
+ }, z.core.$strict>]>;
3377
+ }, z.core.$strict>>;
3378
+ batchMinutes: z.ZodOptional<z.ZodNumber>;
3379
+ onSent: z.ZodOptional<z.ZodObject<{
3380
+ table: z.ZodString;
3381
+ via: z.ZodOptional<z.ZodString>;
3382
+ set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
3383
+ }, z.core.$strict>>;
1770
3384
  }, z.core.$strict>]>>>;
1771
3385
  }, z.core.$strict>>;
1772
3386
  emailTemplates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1773
3387
  key: z.ZodString;
1774
3388
  name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
3389
+ attach: z.ZodOptional<z.ZodObject<{
3390
+ kind: z.ZodString;
3391
+ link: z.ZodString;
3392
+ }, z.core.$strict>>;
1775
3393
  vars: z.ZodOptional<z.ZodArray<z.ZodString>>;
1776
3394
  locales: z.ZodRecord<z.ZodString, z.ZodObject<{
1777
3395
  subject: z.ZodString;
@@ -1788,6 +3406,70 @@ export declare const appManifestSchema: z.ZodObject<{
1788
3406
  sampleData: z.ZodOptional<z.ZodObject<{
1789
3407
  file: z.ZodString;
1790
3408
  }, z.core.$strict>>;
3409
+ addOns: z.ZodOptional<z.ZodObject<{
3410
+ requires: z.ZodOptional<z.ZodArray<z.ZodObject<{
3411
+ key: z.ZodString;
3412
+ range: z.ZodString;
3413
+ reason: z.ZodRecord<z.ZodString, z.ZodString>;
3414
+ }, z.core.$strict>>>;
3415
+ suggests: z.ZodOptional<z.ZodArray<z.ZodObject<{
3416
+ key: z.ZodString;
3417
+ range: z.ZodString;
3418
+ reason: z.ZodRecord<z.ZodString, z.ZodString>;
3419
+ checked: z.ZodOptional<z.ZodBoolean>;
3420
+ }, z.core.$strict>>>;
3421
+ features: z.ZodOptional<z.ZodArray<z.ZodObject<{
3422
+ id: z.ZodString;
3423
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
3424
+ requires: z.ZodArray<z.ZodString>;
3425
+ }, z.core.$strict>>>;
3426
+ }, z.core.$strict>>;
3427
+ documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
3428
+ kind: z.ZodString;
3429
+ addOn: z.ZodString;
3430
+ table: z.ZodString;
3431
+ name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
3432
+ mapping: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
3433
+ column: z.ZodString;
3434
+ }, z.core.$strict>, z.ZodObject<{
3435
+ via: z.ZodString;
3436
+ column: z.ZodString;
3437
+ }, z.core.$strict>, z.ZodObject<{
3438
+ collection: z.ZodObject<{
3439
+ table: z.ZodString;
3440
+ via: z.ZodString;
3441
+ orderBy: z.ZodOptional<z.ZodString>;
3442
+ columns: z.ZodRecord<z.ZodString, z.ZodString>;
3443
+ }, z.core.$strict>;
3444
+ }, z.core.$strict>]>>;
3445
+ statement: z.ZodOptional<z.ZodObject<{
3446
+ documents: z.ZodObject<{
3447
+ table: z.ZodString;
3448
+ via: z.ZodString;
3449
+ date: z.ZodString;
3450
+ amount: z.ZodString;
3451
+ number: z.ZodOptional<z.ZodString>;
3452
+ where: z.ZodOptional<z.ZodObject<{
3453
+ column: z.ZodString;
3454
+ in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3455
+ }, z.core.$strict>>;
3456
+ unless: z.ZodOptional<z.ZodString>;
3457
+ }, z.core.$strict>;
3458
+ payments: z.ZodObject<{
3459
+ table: z.ZodString;
3460
+ via: z.ZodString;
3461
+ date: z.ZodString;
3462
+ amount: z.ZodString;
3463
+ number: z.ZodOptional<z.ZodString>;
3464
+ where: z.ZodOptional<z.ZodObject<{
3465
+ column: z.ZodString;
3466
+ in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3467
+ }, z.core.$strict>>;
3468
+ unless: z.ZodOptional<z.ZodString>;
3469
+ }, z.core.$strict>;
3470
+ }, z.core.$strict>>;
3471
+ feature: z.ZodOptional<z.ZodString>;
3472
+ }, z.core.$strict>>>;
1791
3473
  categories: z.ZodArray<z.ZodEnum<{
1792
3474
  commerce: "commerce";
1793
3475
  hospitality: "hospitality";
@@ -1844,11 +3526,11 @@ export declare const addOnManifestSchema: z.ZodObject<{
1844
3526
  sqlite: "sqlite";
1845
3527
  }>>>;
1846
3528
  requires: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3529
+ payments: "payments";
1847
3530
  "hosted-only": "hosted-only";
1848
3531
  "offline-required": "offline-required";
1849
3532
  "receipt-printer": "receipt-printer";
1850
3533
  "barcode-scanner": "barcode-scanner";
1851
- payments: "payments";
1852
3534
  "file-storage": "file-storage";
1853
3535
  "email-delivery": "email-delivery";
1854
3536
  realtime: "realtime";
@@ -1945,6 +3627,10 @@ export declare const addOnManifestSchema: z.ZodObject<{
1945
3627
  order: z.ZodNumber;
1946
3628
  }, z.core.$strict>>>;
1947
3629
  hostApi: z.ZodOptional<z.ZodLiteral<1>>;
3630
+ shapes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3631
+ name: z.ZodString;
3632
+ version: z.ZodNumber;
3633
+ }, z.core.$loose>>>;
1948
3634
  }, z.core.$strict>;
1949
3635
  requiredSchema: z.ZodOptional<z.ZodObject<{
1950
3636
  tables: z.ZodArray<z.ZodObject<{
@@ -1960,18 +3646,18 @@ export declare const addOnManifestSchema: z.ZodObject<{
1960
3646
  money: "money";
1961
3647
  float: "float";
1962
3648
  bool: "bool";
3649
+ id: "id";
1963
3650
  timestamptz: "timestamptz";
1964
3651
  fk: "fk";
1965
3652
  text: "text";
1966
- id: "id";
1967
3653
  json: "json";
1968
3654
  uuid: "uuid";
1969
3655
  blob: "blob";
1970
3656
  }>;
1971
3657
  semantic: z.ZodOptional<z.ZodEnum<{
1972
3658
  money: "money";
1973
- email: "email";
1974
3659
  name: "name";
3660
+ email: "email";
1975
3661
  image: "image";
1976
3662
  avatar: "avatar";
1977
3663
  "geo-lat": "geo-lat";
@@ -1987,6 +3673,7 @@ export declare const addOnManifestSchema: z.ZodObject<{
1987
3673
  references: z.ZodOptional<z.ZodString>;
1988
3674
  default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1989
3675
  maxLength: z.ZodOptional<z.ZodNumber>;
3676
+ scale: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"currency">]>>;
1990
3677
  unique: z.ZodOptional<z.ZodLiteral<true>>;
1991
3678
  rules: z.ZodOptional<z.ZodObject<{
1992
3679
  options: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -2022,13 +3709,48 @@ export declare const addOnManifestSchema: z.ZodObject<{
2022
3709
  always: "always";
2023
3710
  }>>;
2024
3711
  }, z.core.$strict>>;
3712
+ default: z.ZodOptional<z.ZodObject<{
3713
+ from: z.ZodUnion<readonly [z.ZodLiteral<"connection.currency">, z.ZodUnion<readonly [z.ZodObject<{
3714
+ table: z.ZodString;
3715
+ column: z.ZodString;
3716
+ }, z.core.$strict>, z.ZodObject<{
3717
+ addOn: z.ZodString;
3718
+ setting: z.ZodString;
3719
+ }, z.core.$strict>]>]>;
3720
+ }, z.core.$strict>>;
2025
3721
  sequence: z.ZodOptional<z.ZodObject<{
2026
3722
  start: z.ZodOptional<z.ZodNumber>;
3723
+ gapless: z.ZodOptional<z.ZodLiteral<true>>;
3724
+ startSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
3725
+ table: z.ZodString;
3726
+ column: z.ZodString;
3727
+ }, z.core.$strict>, z.ZodObject<{
3728
+ addOn: z.ZodString;
3729
+ setting: z.ZodString;
3730
+ }, z.core.$strict>]>>;
3731
+ scope: z.ZodOptional<z.ZodString>;
3732
+ }, z.core.$strict>>;
3733
+ format: z.ZodOptional<z.ZodObject<{
3734
+ from: z.ZodString;
3735
+ prefix: z.ZodOptional<z.ZodString>;
3736
+ prefixSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
3737
+ table: z.ZodString;
3738
+ column: z.ZodString;
3739
+ }, z.core.$strict>, z.ZodObject<{
3740
+ addOn: z.ZodString;
3741
+ setting: z.ZodString;
3742
+ }, z.core.$strict>]>>;
3743
+ pad: z.ZodOptional<z.ZodNumber>;
2027
3744
  }, z.core.$strict>>;
2028
3745
  code: z.ZodOptional<z.ZodObject<{
2029
3746
  prefix: z.ZodOptional<z.ZodString>;
2030
3747
  length: z.ZodNumber;
2031
3748
  }, z.core.$strict>>;
3749
+ formula: z.ZodOptional<z.ZodType<import("./formula.js").FormulaExpr, unknown, z.core.$ZodTypeInternals<import("./formula.js").FormulaExpr, unknown>>>;
3750
+ normalize: z.ZodOptional<z.ZodEnum<{
3751
+ trim: "trim";
3752
+ email: "email";
3753
+ }>>;
2032
3754
  rollup: z.ZodOptional<z.ZodObject<{
2033
3755
  from: z.ZodString;
2034
3756
  via: z.ZodString;
@@ -2048,22 +3770,72 @@ export declare const addOnManifestSchema: z.ZodObject<{
2048
3770
  }, z.core.$strict>>;
2049
3771
  stamp: z.ZodOptional<z.ZodObject<{
2050
3772
  set: z.ZodUnion<readonly [z.ZodEnum<{
3773
+ today: "today";
2051
3774
  now: "now";
2052
3775
  "user-name": "user-name";
2053
3776
  "user-id": "user-id";
2054
3777
  }>, z.ZodObject<{
2055
3778
  byOrigin: z.ZodObject<{
2056
3779
  public: z.ZodString;
2057
- staff: z.ZodString;
3780
+ staff: z.ZodOptional<z.ZodString>;
3781
+ }, z.core.$strict>;
3782
+ }, z.core.$strict>, z.ZodObject<{
3783
+ claim: z.ZodString;
3784
+ staff: z.ZodOptional<z.ZodEnum<{
3785
+ "user-name": "user-name";
3786
+ "user-id": "user-id";
3787
+ }>>;
3788
+ }, z.core.$strict>, z.ZodObject<{
3789
+ copy: z.ZodString;
3790
+ }, z.core.$strict>, z.ZodObject<{
3791
+ addDays: z.ZodObject<{
3792
+ date: z.ZodString;
3793
+ days: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
3794
+ map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3795
+ }, z.core.$strict>;
3796
+ }, z.core.$strict>, z.ZodObject<{
3797
+ hashOf: z.ZodObject<{
3798
+ columns: z.ZodArray<z.ZodString>;
3799
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
3800
+ table: z.ZodString;
3801
+ via: z.ZodString;
3802
+ columns: z.ZodArray<z.ZodString>;
3803
+ orderBy: z.ZodOptional<z.ZodString>;
3804
+ }, z.core.$strict>>>;
3805
+ linked: z.ZodOptional<z.ZodArray<z.ZodObject<{
3806
+ via: z.ZodString;
3807
+ table: z.ZodString;
3808
+ columns: z.ZodArray<z.ZodString>;
3809
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
3810
+ table: z.ZodString;
3811
+ via: z.ZodString;
3812
+ columns: z.ZodArray<z.ZodString>;
3813
+ orderBy: z.ZodOptional<z.ZodString>;
3814
+ }, z.core.$strict>>>;
3815
+ }, z.core.$strict>>>;
2058
3816
  }, z.core.$strict>;
2059
3817
  }, z.core.$strict>]>;
2060
- on: z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
3818
+ on: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
2061
3819
  column: z.ZodString;
2062
3820
  values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2063
- }, z.core.$strict>]>;
3821
+ }, z.core.$strict>, z.ZodObject<{
3822
+ column: z.ZodString;
3823
+ filled: z.ZodLiteral<true>;
3824
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
3825
+ column: z.ZodString;
3826
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3827
+ }, z.core.$strict>, z.ZodObject<{
3828
+ column: z.ZodString;
3829
+ filled: z.ZodLiteral<true>;
3830
+ }, z.core.$strict>]>>]>;
2064
3831
  }, z.core.$strict>>;
2065
3832
  venueLocal: z.ZodOptional<z.ZodLiteral<true>>;
2066
3833
  personal: z.ZodOptional<z.ZodBoolean>;
3834
+ notAfter: z.ZodOptional<z.ZodLiteral<"today">>;
3835
+ notBefore: z.ZodOptional<z.ZodObject<{
3836
+ column: z.ZodString;
3837
+ via: z.ZodOptional<z.ZodString>;
3838
+ }, z.core.$strict>>;
2067
3839
  }, z.core.$strict>>;
2068
3840
  label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2069
3841
  }, z.core.$strict>>;
@@ -2176,6 +3948,48 @@ export declare const addOnManifestSchema: z.ZodObject<{
2176
3948
  }, z.core.$strict>;
2177
3949
  }, z.core.$strict>>;
2178
3950
  }, z.core.$strict>>;
3951
+ states: z.ZodOptional<z.ZodObject<{
3952
+ column: z.ZodString;
3953
+ initial: z.ZodString;
3954
+ moves: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3955
+ to: z.ZodString;
3956
+ requires: z.ZodOptional<z.ZodObject<{
3957
+ children: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3958
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
3959
+ column: z.ZodString;
3960
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3961
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3962
+ isNull: z.ZodOptional<z.ZodBoolean>;
3963
+ gt: z.ZodOptional<z.ZodNumber>;
3964
+ gte: z.ZodOptional<z.ZodNumber>;
3965
+ lt: z.ZodOptional<z.ZodNumber>;
3966
+ lte: z.ZodOptional<z.ZodNumber>;
3967
+ }, z.core.$strict>>>;
3968
+ }, z.core.$strict>>;
3969
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
3970
+ }, z.core.$strict>]>>>;
3971
+ lock: z.ZodOptional<z.ZodObject<{
3972
+ when: z.ZodArray<z.ZodString>;
3973
+ except: z.ZodOptional<z.ZodArray<z.ZodString>>;
3974
+ }, z.core.$strict>>;
3975
+ children: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3976
+ via: z.ZodString;
3977
+ lock: z.ZodOptional<z.ZodLiteral<true>>;
3978
+ parentIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
3979
+ clearOnCreate: z.ZodOptional<z.ZodArray<z.ZodString>>;
3980
+ }, z.core.$strict>>>;
3981
+ lockedWhenReferencedBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
3982
+ table: z.ZodString;
3983
+ via: z.ZodString;
3984
+ in: z.ZodArray<z.ZodString>;
3985
+ }, z.core.$strict>>>;
3986
+ noDelete: z.ZodOptional<z.ZodObject<{
3987
+ when: z.ZodUnion<readonly [z.ZodLiteral<"numbered">, z.ZodArray<z.ZodString>]>;
3988
+ }, z.core.$strict>>;
3989
+ onlyLater: z.ZodOptional<z.ZodArray<z.ZodString>>;
3990
+ }, z.core.$strict>>;
3991
+ builtOn: z.ZodOptional<z.ZodString>;
3992
+ part: z.ZodOptional<z.ZodString>;
2179
3993
  label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2180
3994
  labelPlural: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2181
3995
  keyField: z.ZodOptional<z.ZodString>;
@@ -2272,11 +4086,11 @@ export declare const addOnManifestSchema: z.ZodObject<{
2272
4086
  }, z.core.$strict>>;
2273
4087
  }, z.core.$strict>], "type">>>;
2274
4088
  capabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4089
+ payments: "payments";
2275
4090
  "hosted-only": "hosted-only";
2276
4091
  "offline-required": "offline-required";
2277
4092
  "receipt-printer": "receipt-printer";
2278
4093
  "barcode-scanner": "barcode-scanner";
2279
- payments: "payments";
2280
4094
  "file-storage": "file-storage";
2281
4095
  "email-delivery": "email-delivery";
2282
4096
  realtime: "realtime";
@@ -2317,11 +4131,11 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2317
4131
  sqlite: "sqlite";
2318
4132
  }>>>;
2319
4133
  requires: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4134
+ payments: "payments";
2320
4135
  "hosted-only": "hosted-only";
2321
4136
  "offline-required": "offline-required";
2322
4137
  "receipt-printer": "receipt-printer";
2323
4138
  "barcode-scanner": "barcode-scanner";
2324
- payments: "payments";
2325
4139
  "file-storage": "file-storage";
2326
4140
  "email-delivery": "email-delivery";
2327
4141
  realtime: "realtime";
@@ -2344,18 +4158,18 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2344
4158
  money: "money";
2345
4159
  float: "float";
2346
4160
  bool: "bool";
4161
+ id: "id";
2347
4162
  timestamptz: "timestamptz";
2348
4163
  fk: "fk";
2349
4164
  text: "text";
2350
- id: "id";
2351
4165
  json: "json";
2352
4166
  uuid: "uuid";
2353
4167
  blob: "blob";
2354
4168
  }>;
2355
4169
  semantic: z.ZodOptional<z.ZodEnum<{
2356
4170
  money: "money";
2357
- email: "email";
2358
4171
  name: "name";
4172
+ email: "email";
2359
4173
  image: "image";
2360
4174
  avatar: "avatar";
2361
4175
  "geo-lat": "geo-lat";
@@ -2371,6 +4185,7 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2371
4185
  references: z.ZodOptional<z.ZodString>;
2372
4186
  default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2373
4187
  maxLength: z.ZodOptional<z.ZodNumber>;
4188
+ scale: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"currency">]>>;
2374
4189
  unique: z.ZodOptional<z.ZodLiteral<true>>;
2375
4190
  rules: z.ZodOptional<z.ZodObject<{
2376
4191
  options: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -2406,13 +4221,48 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2406
4221
  always: "always";
2407
4222
  }>>;
2408
4223
  }, z.core.$strict>>;
4224
+ default: z.ZodOptional<z.ZodObject<{
4225
+ from: z.ZodUnion<readonly [z.ZodLiteral<"connection.currency">, z.ZodUnion<readonly [z.ZodObject<{
4226
+ table: z.ZodString;
4227
+ column: z.ZodString;
4228
+ }, z.core.$strict>, z.ZodObject<{
4229
+ addOn: z.ZodString;
4230
+ setting: z.ZodString;
4231
+ }, z.core.$strict>]>]>;
4232
+ }, z.core.$strict>>;
2409
4233
  sequence: z.ZodOptional<z.ZodObject<{
2410
4234
  start: z.ZodOptional<z.ZodNumber>;
4235
+ gapless: z.ZodOptional<z.ZodLiteral<true>>;
4236
+ startSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
4237
+ table: z.ZodString;
4238
+ column: z.ZodString;
4239
+ }, z.core.$strict>, z.ZodObject<{
4240
+ addOn: z.ZodString;
4241
+ setting: z.ZodString;
4242
+ }, z.core.$strict>]>>;
4243
+ scope: z.ZodOptional<z.ZodString>;
4244
+ }, z.core.$strict>>;
4245
+ format: z.ZodOptional<z.ZodObject<{
4246
+ from: z.ZodString;
4247
+ prefix: z.ZodOptional<z.ZodString>;
4248
+ prefixSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
4249
+ table: z.ZodString;
4250
+ column: z.ZodString;
4251
+ }, z.core.$strict>, z.ZodObject<{
4252
+ addOn: z.ZodString;
4253
+ setting: z.ZodString;
4254
+ }, z.core.$strict>]>>;
4255
+ pad: z.ZodOptional<z.ZodNumber>;
2411
4256
  }, z.core.$strict>>;
2412
4257
  code: z.ZodOptional<z.ZodObject<{
2413
4258
  prefix: z.ZodOptional<z.ZodString>;
2414
4259
  length: z.ZodNumber;
2415
4260
  }, z.core.$strict>>;
4261
+ formula: z.ZodOptional<z.ZodType<import("./formula.js").FormulaExpr, unknown, z.core.$ZodTypeInternals<import("./formula.js").FormulaExpr, unknown>>>;
4262
+ normalize: z.ZodOptional<z.ZodEnum<{
4263
+ trim: "trim";
4264
+ email: "email";
4265
+ }>>;
2416
4266
  rollup: z.ZodOptional<z.ZodObject<{
2417
4267
  from: z.ZodString;
2418
4268
  via: z.ZodString;
@@ -2432,22 +4282,72 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2432
4282
  }, z.core.$strict>>;
2433
4283
  stamp: z.ZodOptional<z.ZodObject<{
2434
4284
  set: z.ZodUnion<readonly [z.ZodEnum<{
4285
+ today: "today";
2435
4286
  now: "now";
2436
4287
  "user-name": "user-name";
2437
4288
  "user-id": "user-id";
2438
4289
  }>, z.ZodObject<{
2439
4290
  byOrigin: z.ZodObject<{
2440
4291
  public: z.ZodString;
2441
- staff: z.ZodString;
4292
+ staff: z.ZodOptional<z.ZodString>;
4293
+ }, z.core.$strict>;
4294
+ }, z.core.$strict>, z.ZodObject<{
4295
+ claim: z.ZodString;
4296
+ staff: z.ZodOptional<z.ZodEnum<{
4297
+ "user-name": "user-name";
4298
+ "user-id": "user-id";
4299
+ }>>;
4300
+ }, z.core.$strict>, z.ZodObject<{
4301
+ copy: z.ZodString;
4302
+ }, z.core.$strict>, z.ZodObject<{
4303
+ addDays: z.ZodObject<{
4304
+ date: z.ZodString;
4305
+ days: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
4306
+ map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
4307
+ }, z.core.$strict>;
4308
+ }, z.core.$strict>, z.ZodObject<{
4309
+ hashOf: z.ZodObject<{
4310
+ columns: z.ZodArray<z.ZodString>;
4311
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
4312
+ table: z.ZodString;
4313
+ via: z.ZodString;
4314
+ columns: z.ZodArray<z.ZodString>;
4315
+ orderBy: z.ZodOptional<z.ZodString>;
4316
+ }, z.core.$strict>>>;
4317
+ linked: z.ZodOptional<z.ZodArray<z.ZodObject<{
4318
+ via: z.ZodString;
4319
+ table: z.ZodString;
4320
+ columns: z.ZodArray<z.ZodString>;
4321
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
4322
+ table: z.ZodString;
4323
+ via: z.ZodString;
4324
+ columns: z.ZodArray<z.ZodString>;
4325
+ orderBy: z.ZodOptional<z.ZodString>;
4326
+ }, z.core.$strict>>>;
4327
+ }, z.core.$strict>>>;
2442
4328
  }, z.core.$strict>;
2443
4329
  }, z.core.$strict>]>;
2444
- on: z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
4330
+ on: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
2445
4331
  column: z.ZodString;
2446
4332
  values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2447
- }, z.core.$strict>]>;
4333
+ }, z.core.$strict>, z.ZodObject<{
4334
+ column: z.ZodString;
4335
+ filled: z.ZodLiteral<true>;
4336
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
4337
+ column: z.ZodString;
4338
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
4339
+ }, z.core.$strict>, z.ZodObject<{
4340
+ column: z.ZodString;
4341
+ filled: z.ZodLiteral<true>;
4342
+ }, z.core.$strict>]>>]>;
2448
4343
  }, z.core.$strict>>;
2449
4344
  venueLocal: z.ZodOptional<z.ZodLiteral<true>>;
2450
4345
  personal: z.ZodOptional<z.ZodBoolean>;
4346
+ notAfter: z.ZodOptional<z.ZodLiteral<"today">>;
4347
+ notBefore: z.ZodOptional<z.ZodObject<{
4348
+ column: z.ZodString;
4349
+ via: z.ZodOptional<z.ZodString>;
4350
+ }, z.core.$strict>>;
2451
4351
  }, z.core.$strict>>;
2452
4352
  label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2453
4353
  }, z.core.$strict>>;
@@ -2560,6 +4460,48 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2560
4460
  }, z.core.$strict>;
2561
4461
  }, z.core.$strict>>;
2562
4462
  }, z.core.$strict>>;
4463
+ states: z.ZodOptional<z.ZodObject<{
4464
+ column: z.ZodString;
4465
+ initial: z.ZodString;
4466
+ moves: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
4467
+ to: z.ZodString;
4468
+ requires: z.ZodOptional<z.ZodObject<{
4469
+ children: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
4470
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
4471
+ column: z.ZodString;
4472
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
4473
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4474
+ isNull: z.ZodOptional<z.ZodBoolean>;
4475
+ gt: z.ZodOptional<z.ZodNumber>;
4476
+ gte: z.ZodOptional<z.ZodNumber>;
4477
+ lt: z.ZodOptional<z.ZodNumber>;
4478
+ lte: z.ZodOptional<z.ZodNumber>;
4479
+ }, z.core.$strict>>>;
4480
+ }, z.core.$strict>>;
4481
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
4482
+ }, z.core.$strict>]>>>;
4483
+ lock: z.ZodOptional<z.ZodObject<{
4484
+ when: z.ZodArray<z.ZodString>;
4485
+ except: z.ZodOptional<z.ZodArray<z.ZodString>>;
4486
+ }, z.core.$strict>>;
4487
+ children: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4488
+ via: z.ZodString;
4489
+ lock: z.ZodOptional<z.ZodLiteral<true>>;
4490
+ parentIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
4491
+ clearOnCreate: z.ZodOptional<z.ZodArray<z.ZodString>>;
4492
+ }, z.core.$strict>>>;
4493
+ lockedWhenReferencedBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
4494
+ table: z.ZodString;
4495
+ via: z.ZodString;
4496
+ in: z.ZodArray<z.ZodString>;
4497
+ }, z.core.$strict>>>;
4498
+ noDelete: z.ZodOptional<z.ZodObject<{
4499
+ when: z.ZodUnion<readonly [z.ZodLiteral<"numbered">, z.ZodArray<z.ZodString>]>;
4500
+ }, z.core.$strict>>;
4501
+ onlyLater: z.ZodOptional<z.ZodArray<z.ZodString>>;
4502
+ }, z.core.$strict>>;
4503
+ builtOn: z.ZodOptional<z.ZodString>;
4504
+ part: z.ZodOptional<z.ZodString>;
2563
4505
  label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2564
4506
  labelPlural: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2565
4507
  keyField: z.ZodOptional<z.ZodString>;
@@ -2581,6 +4523,7 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2581
4523
  bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2582
4524
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2583
4525
  titles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4526
+ feature: z.ZodOptional<z.ZodString>;
2584
4527
  }, z.core.$strict>>;
2585
4528
  roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
2586
4529
  key: z.ZodString;
@@ -2692,11 +4635,11 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2692
4635
  entry: z.ZodString;
2693
4636
  }, z.core.$strict>>>;
2694
4637
  capabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4638
+ payments: "payments";
2695
4639
  "hosted-only": "hosted-only";
2696
4640
  "offline-required": "offline-required";
2697
4641
  "receipt-printer": "receipt-printer";
2698
4642
  "barcode-scanner": "barcode-scanner";
2699
- payments: "payments";
2700
4643
  "file-storage": "file-storage";
2701
4644
  "email-delivery": "email-delivery";
2702
4645
  realtime: "realtime";
@@ -2720,8 +4663,8 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2720
4663
  }, z.core.$strict>>>;
2721
4664
  routes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2722
4665
  placement: z.ZodOptional<z.ZodEnum<{
2723
- internal: "internal";
2724
4666
  external: "external";
4667
+ internal: "internal";
2725
4668
  }>>;
2726
4669
  enabled: z.ZodOptional<z.ZodBoolean>;
2727
4670
  }, z.core.$strict>>;
@@ -2770,11 +4713,19 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2770
4713
  days: z.ZodOptional<z.ZodNumber>;
2771
4714
  }, z.core.$strict>]>]>>>;
2772
4715
  defaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
2773
- claim: z.ZodOptional<z.ZodObject<{
4716
+ claim: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2774
4717
  match: z.ZodArray<z.ZodString>;
2775
4718
  verify: z.ZodOptional<z.ZodLiteral<"email-code">>;
2776
4719
  email: z.ZodOptional<z.ZodString>;
2777
- }, z.core.$strict>>;
4720
+ }, z.core.$strict>, z.ZodObject<{
4721
+ verify: z.ZodLiteral<"email-link">;
4722
+ email: z.ZodString;
4723
+ }, z.core.$strict>, z.ZodObject<{
4724
+ by: z.ZodLiteral<"token">;
4725
+ column: z.ZodString;
4726
+ expires: z.ZodOptional<z.ZodString>;
4727
+ stopped: z.ZodOptional<z.ZodString>;
4728
+ }, z.core.$strict>]>>;
2778
4729
  claimedBy: z.ZodOptional<z.ZodObject<{
2779
4730
  table: z.ZodString;
2780
4731
  column: z.ZodString;
@@ -2784,13 +4735,20 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2784
4735
  lookup: "lookup";
2785
4736
  verified: "verified";
2786
4737
  }>>;
4738
+ visibleWith: z.ZodOptional<z.ZodObject<{
4739
+ table: z.ZodString;
4740
+ via: z.ZodString;
4741
+ }, z.core.$strict>>;
4742
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
4743
+ documents: z.ZodOptional<z.ZodArray<z.ZodString>>;
2787
4744
  sensitive: z.ZodOptional<z.ZodBoolean>;
2788
4745
  reason: z.ZodOptional<z.ZodString>;
2789
4746
  onClaim: z.ZodOptional<z.ZodObject<{
2790
4747
  clear: z.ZodArray<z.ZodString>;
2791
4748
  }, z.core.$strict>>;
2792
4749
  writableValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>>;
2793
- writableWhen: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodLiteral<"from-now">, z.ZodObject<{
4750
+ requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
4751
+ writableWhen: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>, z.ZodLiteral<"from-now">, z.ZodLiteral<"from-today">, z.ZodLiteral<"before-today">, z.ZodObject<{
2794
4752
  within: z.ZodNumber;
2795
4753
  }, z.core.$strict>]>>>;
2796
4754
  humanCheck: z.ZodOptional<z.ZodLiteral<true>>;
@@ -2840,9 +4798,9 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2840
4798
  }, z.core.$strict>>;
2841
4799
  }, z.core.$strict>>>;
2842
4800
  publicKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2843
- requiresStaff: z.ZodObject<{
4801
+ requiresStaff: z.ZodOptional<z.ZodObject<{
2844
4802
  role: z.ZodString;
2845
- }, z.core.$strict>;
4803
+ }, z.core.$strict>>;
2846
4804
  enabledBy: z.ZodOptional<z.ZodObject<{
2847
4805
  table: z.ZodString;
2848
4806
  column: z.ZodString;
@@ -2858,6 +4816,12 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2858
4816
  due: z.ZodOptional<z.ZodString>;
2859
4817
  sentAt: z.ZodOptional<z.ZodString>;
2860
4818
  error: z.ZodOptional<z.ZodString>;
4819
+ skipReason: z.ZodOptional<z.ZodString>;
4820
+ subjectOverride: z.ZodOptional<z.ZodString>;
4821
+ bodyOverride: z.ZodOptional<z.ZodString>;
4822
+ approvedBy: z.ZodOptional<z.ZodString>;
4823
+ effectAt: z.ZodOptional<z.ZodString>;
4824
+ effectError: z.ZodOptional<z.ZodString>;
2861
4825
  }, z.core.$strict>;
2862
4826
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2863
4827
  recipient: z.ZodObject<{
@@ -2888,6 +4852,7 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2888
4852
  producers: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2889
4853
  onCreate: z.ZodObject<{
2890
4854
  table: z.ZodString;
4855
+ via: z.ZodOptional<z.ZodString>;
2891
4856
  where: z.ZodOptional<z.ZodObject<{
2892
4857
  column: z.ZodString;
2893
4858
  eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
@@ -2897,11 +4862,65 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2897
4862
  }, z.core.$strict>;
2898
4863
  kind: z.ZodString;
2899
4864
  link: z.ZodString;
2900
- gate: z.ZodOptional<z.ZodLiteral<"enabled">>;
4865
+ gate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodObject<{
4866
+ setting: z.ZodObject<{
4867
+ table: z.ZodString;
4868
+ column: z.ZodString;
4869
+ }, z.core.$strict>;
4870
+ }, z.core.$strict>]>>;
2901
4871
  optIn: z.ZodOptional<z.ZodLiteral<true>>;
4872
+ hold: z.ZodOptional<z.ZodLiteral<true>>;
4873
+ due: z.ZodOptional<z.ZodObject<{
4874
+ date: z.ZodString;
4875
+ days: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
4876
+ byColumn: z.ZodString;
4877
+ values: z.ZodRecord<z.ZodString, z.ZodNumber>;
4878
+ }, z.core.$strict>, z.ZodObject<{
4879
+ setting: z.ZodUnion<readonly [z.ZodObject<{
4880
+ table: z.ZodString;
4881
+ column: z.ZodString;
4882
+ }, z.core.$strict>, z.ZodObject<{
4883
+ addOn: z.ZodString;
4884
+ setting: z.ZodString;
4885
+ }, z.core.$strict>]>;
4886
+ byColumn: z.ZodOptional<z.ZodString>;
4887
+ index: z.ZodOptional<z.ZodNumber>;
4888
+ }, z.core.$strict>]>;
4889
+ at: z.ZodOptional<z.ZodString>;
4890
+ }, z.core.$strict>>;
4891
+ supersede: z.ZodOptional<z.ZodString>;
4892
+ dropWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
4893
+ column: z.ZodString;
4894
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
4895
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4896
+ isNull: z.ZodOptional<z.ZodBoolean>;
4897
+ lte: z.ZodOptional<z.ZodNumber>;
4898
+ gte: z.ZodOptional<z.ZodNumber>;
4899
+ reason: z.ZodEnum<{
4900
+ void: "void";
4901
+ paid: "paid";
4902
+ "no-longer-needed": "no-longer-needed";
4903
+ }>;
4904
+ }, z.core.$strict>>>;
4905
+ recipient: z.ZodOptional<z.ZodObject<{
4906
+ setting: z.ZodUnion<readonly [z.ZodObject<{
4907
+ table: z.ZodString;
4908
+ column: z.ZodString;
4909
+ }, z.core.$strict>, z.ZodObject<{
4910
+ addOn: z.ZodString;
4911
+ setting: z.ZodString;
4912
+ }, z.core.$strict>]>;
4913
+ }, z.core.$strict>>;
4914
+ batchMinutes: z.ZodOptional<z.ZodNumber>;
4915
+ onSent: z.ZodOptional<z.ZodObject<{
4916
+ table: z.ZodString;
4917
+ via: z.ZodOptional<z.ZodString>;
4918
+ set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
4919
+ }, z.core.$strict>>;
2902
4920
  }, z.core.$strict>, z.ZodObject<{
2903
4921
  onChange: z.ZodObject<{
2904
4922
  table: z.ZodString;
4923
+ via: z.ZodOptional<z.ZodString>;
2905
4924
  column: z.ZodString;
2906
4925
  to: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
2907
4926
  where: z.ZodOptional<z.ZodObject<{
@@ -2913,8 +4932,61 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2913
4932
  }, z.core.$strict>;
2914
4933
  kind: z.ZodString;
2915
4934
  link: z.ZodString;
2916
- gate: z.ZodOptional<z.ZodLiteral<"enabled">>;
4935
+ gate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodObject<{
4936
+ setting: z.ZodObject<{
4937
+ table: z.ZodString;
4938
+ column: z.ZodString;
4939
+ }, z.core.$strict>;
4940
+ }, z.core.$strict>]>>;
2917
4941
  optIn: z.ZodOptional<z.ZodLiteral<true>>;
4942
+ hold: z.ZodOptional<z.ZodLiteral<true>>;
4943
+ due: z.ZodOptional<z.ZodObject<{
4944
+ date: z.ZodString;
4945
+ days: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
4946
+ byColumn: z.ZodString;
4947
+ values: z.ZodRecord<z.ZodString, z.ZodNumber>;
4948
+ }, z.core.$strict>, z.ZodObject<{
4949
+ setting: z.ZodUnion<readonly [z.ZodObject<{
4950
+ table: z.ZodString;
4951
+ column: z.ZodString;
4952
+ }, z.core.$strict>, z.ZodObject<{
4953
+ addOn: z.ZodString;
4954
+ setting: z.ZodString;
4955
+ }, z.core.$strict>]>;
4956
+ byColumn: z.ZodOptional<z.ZodString>;
4957
+ index: z.ZodOptional<z.ZodNumber>;
4958
+ }, z.core.$strict>]>;
4959
+ at: z.ZodOptional<z.ZodString>;
4960
+ }, z.core.$strict>>;
4961
+ supersede: z.ZodOptional<z.ZodString>;
4962
+ dropWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
4963
+ column: z.ZodString;
4964
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
4965
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4966
+ isNull: z.ZodOptional<z.ZodBoolean>;
4967
+ lte: z.ZodOptional<z.ZodNumber>;
4968
+ gte: z.ZodOptional<z.ZodNumber>;
4969
+ reason: z.ZodEnum<{
4970
+ void: "void";
4971
+ paid: "paid";
4972
+ "no-longer-needed": "no-longer-needed";
4973
+ }>;
4974
+ }, z.core.$strict>>>;
4975
+ recipient: z.ZodOptional<z.ZodObject<{
4976
+ setting: z.ZodUnion<readonly [z.ZodObject<{
4977
+ table: z.ZodString;
4978
+ column: z.ZodString;
4979
+ }, z.core.$strict>, z.ZodObject<{
4980
+ addOn: z.ZodString;
4981
+ setting: z.ZodString;
4982
+ }, z.core.$strict>]>;
4983
+ }, z.core.$strict>>;
4984
+ batchMinutes: z.ZodOptional<z.ZodNumber>;
4985
+ onSent: z.ZodOptional<z.ZodObject<{
4986
+ table: z.ZodString;
4987
+ via: z.ZodOptional<z.ZodString>;
4988
+ set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
4989
+ }, z.core.$strict>>;
2918
4990
  }, z.core.$strict>, z.ZodObject<{
2919
4991
  before: z.ZodObject<{
2920
4992
  table: z.ZodString;
@@ -2938,13 +5010,70 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2938
5010
  }, z.core.$strict>;
2939
5011
  kind: z.ZodString;
2940
5012
  link: z.ZodString;
2941
- gate: z.ZodOptional<z.ZodLiteral<"enabled">>;
5013
+ gate: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodObject<{
5014
+ setting: z.ZodObject<{
5015
+ table: z.ZodString;
5016
+ column: z.ZodString;
5017
+ }, z.core.$strict>;
5018
+ }, z.core.$strict>]>>;
2942
5019
  optIn: z.ZodOptional<z.ZodLiteral<true>>;
5020
+ hold: z.ZodOptional<z.ZodLiteral<true>>;
5021
+ due: z.ZodOptional<z.ZodObject<{
5022
+ date: z.ZodString;
5023
+ days: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
5024
+ byColumn: z.ZodString;
5025
+ values: z.ZodRecord<z.ZodString, z.ZodNumber>;
5026
+ }, z.core.$strict>, z.ZodObject<{
5027
+ setting: z.ZodUnion<readonly [z.ZodObject<{
5028
+ table: z.ZodString;
5029
+ column: z.ZodString;
5030
+ }, z.core.$strict>, z.ZodObject<{
5031
+ addOn: z.ZodString;
5032
+ setting: z.ZodString;
5033
+ }, z.core.$strict>]>;
5034
+ byColumn: z.ZodOptional<z.ZodString>;
5035
+ index: z.ZodOptional<z.ZodNumber>;
5036
+ }, z.core.$strict>]>;
5037
+ at: z.ZodOptional<z.ZodString>;
5038
+ }, z.core.$strict>>;
5039
+ supersede: z.ZodOptional<z.ZodString>;
5040
+ dropWhen: z.ZodOptional<z.ZodArray<z.ZodObject<{
5041
+ column: z.ZodString;
5042
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
5043
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
5044
+ isNull: z.ZodOptional<z.ZodBoolean>;
5045
+ lte: z.ZodOptional<z.ZodNumber>;
5046
+ gte: z.ZodOptional<z.ZodNumber>;
5047
+ reason: z.ZodEnum<{
5048
+ void: "void";
5049
+ paid: "paid";
5050
+ "no-longer-needed": "no-longer-needed";
5051
+ }>;
5052
+ }, z.core.$strict>>>;
5053
+ recipient: z.ZodOptional<z.ZodObject<{
5054
+ setting: z.ZodUnion<readonly [z.ZodObject<{
5055
+ table: z.ZodString;
5056
+ column: z.ZodString;
5057
+ }, z.core.$strict>, z.ZodObject<{
5058
+ addOn: z.ZodString;
5059
+ setting: z.ZodString;
5060
+ }, z.core.$strict>]>;
5061
+ }, z.core.$strict>>;
5062
+ batchMinutes: z.ZodOptional<z.ZodNumber>;
5063
+ onSent: z.ZodOptional<z.ZodObject<{
5064
+ table: z.ZodString;
5065
+ via: z.ZodOptional<z.ZodString>;
5066
+ set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodNull]>>;
5067
+ }, z.core.$strict>>;
2943
5068
  }, z.core.$strict>]>>>;
2944
5069
  }, z.core.$strict>>;
2945
5070
  emailTemplates: z.ZodOptional<z.ZodArray<z.ZodObject<{
2946
5071
  key: z.ZodString;
2947
5072
  name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
5073
+ attach: z.ZodOptional<z.ZodObject<{
5074
+ kind: z.ZodString;
5075
+ link: z.ZodString;
5076
+ }, z.core.$strict>>;
2948
5077
  vars: z.ZodOptional<z.ZodArray<z.ZodString>>;
2949
5078
  locales: z.ZodRecord<z.ZodString, z.ZodObject<{
2950
5079
  subject: z.ZodString;
@@ -2961,6 +5090,70 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
2961
5090
  sampleData: z.ZodOptional<z.ZodObject<{
2962
5091
  file: z.ZodString;
2963
5092
  }, z.core.$strict>>;
5093
+ addOns: z.ZodOptional<z.ZodObject<{
5094
+ requires: z.ZodOptional<z.ZodArray<z.ZodObject<{
5095
+ key: z.ZodString;
5096
+ range: z.ZodString;
5097
+ reason: z.ZodRecord<z.ZodString, z.ZodString>;
5098
+ }, z.core.$strict>>>;
5099
+ suggests: z.ZodOptional<z.ZodArray<z.ZodObject<{
5100
+ key: z.ZodString;
5101
+ range: z.ZodString;
5102
+ reason: z.ZodRecord<z.ZodString, z.ZodString>;
5103
+ checked: z.ZodOptional<z.ZodBoolean>;
5104
+ }, z.core.$strict>>>;
5105
+ features: z.ZodOptional<z.ZodArray<z.ZodObject<{
5106
+ id: z.ZodString;
5107
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
5108
+ requires: z.ZodArray<z.ZodString>;
5109
+ }, z.core.$strict>>>;
5110
+ }, z.core.$strict>>;
5111
+ documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
5112
+ kind: z.ZodString;
5113
+ addOn: z.ZodString;
5114
+ table: z.ZodString;
5115
+ name: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
5116
+ mapping: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
5117
+ column: z.ZodString;
5118
+ }, z.core.$strict>, z.ZodObject<{
5119
+ via: z.ZodString;
5120
+ column: z.ZodString;
5121
+ }, z.core.$strict>, z.ZodObject<{
5122
+ collection: z.ZodObject<{
5123
+ table: z.ZodString;
5124
+ via: z.ZodString;
5125
+ orderBy: z.ZodOptional<z.ZodString>;
5126
+ columns: z.ZodRecord<z.ZodString, z.ZodString>;
5127
+ }, z.core.$strict>;
5128
+ }, z.core.$strict>]>>;
5129
+ statement: z.ZodOptional<z.ZodObject<{
5130
+ documents: z.ZodObject<{
5131
+ table: z.ZodString;
5132
+ via: z.ZodString;
5133
+ date: z.ZodString;
5134
+ amount: z.ZodString;
5135
+ number: z.ZodOptional<z.ZodString>;
5136
+ where: z.ZodOptional<z.ZodObject<{
5137
+ column: z.ZodString;
5138
+ in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
5139
+ }, z.core.$strict>>;
5140
+ unless: z.ZodOptional<z.ZodString>;
5141
+ }, z.core.$strict>;
5142
+ payments: z.ZodObject<{
5143
+ table: z.ZodString;
5144
+ via: z.ZodString;
5145
+ date: z.ZodString;
5146
+ amount: z.ZodString;
5147
+ number: z.ZodOptional<z.ZodString>;
5148
+ where: z.ZodOptional<z.ZodObject<{
5149
+ column: z.ZodString;
5150
+ in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
5151
+ }, z.core.$strict>>;
5152
+ unless: z.ZodOptional<z.ZodString>;
5153
+ }, z.core.$strict>;
5154
+ }, z.core.$strict>>;
5155
+ feature: z.ZodOptional<z.ZodString>;
5156
+ }, z.core.$strict>>>;
2964
5157
  categories: z.ZodArray<z.ZodEnum<{
2965
5158
  commerce: "commerce";
2966
5159
  hospitality: "hospitality";
@@ -3000,11 +5193,11 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
3000
5193
  sqlite: "sqlite";
3001
5194
  }>>>;
3002
5195
  requires: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5196
+ payments: "payments";
3003
5197
  "hosted-only": "hosted-only";
3004
5198
  "offline-required": "offline-required";
3005
5199
  "receipt-printer": "receipt-printer";
3006
5200
  "barcode-scanner": "barcode-scanner";
3007
- payments: "payments";
3008
5201
  "file-storage": "file-storage";
3009
5202
  "email-delivery": "email-delivery";
3010
5203
  realtime: "realtime";
@@ -3101,6 +5294,10 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
3101
5294
  order: z.ZodNumber;
3102
5295
  }, z.core.$strict>>>;
3103
5296
  hostApi: z.ZodOptional<z.ZodLiteral<1>>;
5297
+ shapes: z.ZodOptional<z.ZodArray<z.ZodObject<{
5298
+ name: z.ZodString;
5299
+ version: z.ZodNumber;
5300
+ }, z.core.$loose>>>;
3104
5301
  }, z.core.$strict>;
3105
5302
  requiredSchema: z.ZodOptional<z.ZodObject<{
3106
5303
  tables: z.ZodArray<z.ZodObject<{
@@ -3116,18 +5313,18 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
3116
5313
  money: "money";
3117
5314
  float: "float";
3118
5315
  bool: "bool";
5316
+ id: "id";
3119
5317
  timestamptz: "timestamptz";
3120
5318
  fk: "fk";
3121
5319
  text: "text";
3122
- id: "id";
3123
5320
  json: "json";
3124
5321
  uuid: "uuid";
3125
5322
  blob: "blob";
3126
5323
  }>;
3127
5324
  semantic: z.ZodOptional<z.ZodEnum<{
3128
5325
  money: "money";
3129
- email: "email";
3130
5326
  name: "name";
5327
+ email: "email";
3131
5328
  image: "image";
3132
5329
  avatar: "avatar";
3133
5330
  "geo-lat": "geo-lat";
@@ -3143,6 +5340,7 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
3143
5340
  references: z.ZodOptional<z.ZodString>;
3144
5341
  default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3145
5342
  maxLength: z.ZodOptional<z.ZodNumber>;
5343
+ scale: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"currency">]>>;
3146
5344
  unique: z.ZodOptional<z.ZodLiteral<true>>;
3147
5345
  rules: z.ZodOptional<z.ZodObject<{
3148
5346
  options: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
@@ -3178,13 +5376,48 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
3178
5376
  always: "always";
3179
5377
  }>>;
3180
5378
  }, z.core.$strict>>;
5379
+ default: z.ZodOptional<z.ZodObject<{
5380
+ from: z.ZodUnion<readonly [z.ZodLiteral<"connection.currency">, z.ZodUnion<readonly [z.ZodObject<{
5381
+ table: z.ZodString;
5382
+ column: z.ZodString;
5383
+ }, z.core.$strict>, z.ZodObject<{
5384
+ addOn: z.ZodString;
5385
+ setting: z.ZodString;
5386
+ }, z.core.$strict>]>]>;
5387
+ }, z.core.$strict>>;
3181
5388
  sequence: z.ZodOptional<z.ZodObject<{
3182
5389
  start: z.ZodOptional<z.ZodNumber>;
5390
+ gapless: z.ZodOptional<z.ZodLiteral<true>>;
5391
+ startSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
5392
+ table: z.ZodString;
5393
+ column: z.ZodString;
5394
+ }, z.core.$strict>, z.ZodObject<{
5395
+ addOn: z.ZodString;
5396
+ setting: z.ZodString;
5397
+ }, z.core.$strict>]>>;
5398
+ scope: z.ZodOptional<z.ZodString>;
5399
+ }, z.core.$strict>>;
5400
+ format: z.ZodOptional<z.ZodObject<{
5401
+ from: z.ZodString;
5402
+ prefix: z.ZodOptional<z.ZodString>;
5403
+ prefixSetting: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
5404
+ table: z.ZodString;
5405
+ column: z.ZodString;
5406
+ }, z.core.$strict>, z.ZodObject<{
5407
+ addOn: z.ZodString;
5408
+ setting: z.ZodString;
5409
+ }, z.core.$strict>]>>;
5410
+ pad: z.ZodOptional<z.ZodNumber>;
3183
5411
  }, z.core.$strict>>;
3184
5412
  code: z.ZodOptional<z.ZodObject<{
3185
5413
  prefix: z.ZodOptional<z.ZodString>;
3186
5414
  length: z.ZodNumber;
3187
5415
  }, z.core.$strict>>;
5416
+ formula: z.ZodOptional<z.ZodType<import("./formula.js").FormulaExpr, unknown, z.core.$ZodTypeInternals<import("./formula.js").FormulaExpr, unknown>>>;
5417
+ normalize: z.ZodOptional<z.ZodEnum<{
5418
+ trim: "trim";
5419
+ email: "email";
5420
+ }>>;
3188
5421
  rollup: z.ZodOptional<z.ZodObject<{
3189
5422
  from: z.ZodString;
3190
5423
  via: z.ZodString;
@@ -3204,22 +5437,72 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
3204
5437
  }, z.core.$strict>>;
3205
5438
  stamp: z.ZodOptional<z.ZodObject<{
3206
5439
  set: z.ZodUnion<readonly [z.ZodEnum<{
5440
+ today: "today";
3207
5441
  now: "now";
3208
5442
  "user-name": "user-name";
3209
5443
  "user-id": "user-id";
3210
5444
  }>, z.ZodObject<{
3211
5445
  byOrigin: z.ZodObject<{
3212
5446
  public: z.ZodString;
3213
- staff: z.ZodString;
5447
+ staff: z.ZodOptional<z.ZodString>;
5448
+ }, z.core.$strict>;
5449
+ }, z.core.$strict>, z.ZodObject<{
5450
+ claim: z.ZodString;
5451
+ staff: z.ZodOptional<z.ZodEnum<{
5452
+ "user-name": "user-name";
5453
+ "user-id": "user-id";
5454
+ }>>;
5455
+ }, z.core.$strict>, z.ZodObject<{
5456
+ copy: z.ZodString;
5457
+ }, z.core.$strict>, z.ZodObject<{
5458
+ addDays: z.ZodObject<{
5459
+ date: z.ZodString;
5460
+ days: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
5461
+ map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
5462
+ }, z.core.$strict>;
5463
+ }, z.core.$strict>, z.ZodObject<{
5464
+ hashOf: z.ZodObject<{
5465
+ columns: z.ZodArray<z.ZodString>;
5466
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
5467
+ table: z.ZodString;
5468
+ via: z.ZodString;
5469
+ columns: z.ZodArray<z.ZodString>;
5470
+ orderBy: z.ZodOptional<z.ZodString>;
5471
+ }, z.core.$strict>>>;
5472
+ linked: z.ZodOptional<z.ZodArray<z.ZodObject<{
5473
+ via: z.ZodString;
5474
+ table: z.ZodString;
5475
+ columns: z.ZodArray<z.ZodString>;
5476
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
5477
+ table: z.ZodString;
5478
+ via: z.ZodString;
5479
+ columns: z.ZodArray<z.ZodString>;
5480
+ orderBy: z.ZodOptional<z.ZodString>;
5481
+ }, z.core.$strict>>>;
5482
+ }, z.core.$strict>>>;
3214
5483
  }, z.core.$strict>;
3215
5484
  }, z.core.$strict>]>;
3216
- on: z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
5485
+ on: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
3217
5486
  column: z.ZodString;
3218
5487
  values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3219
- }, z.core.$strict>]>;
5488
+ }, z.core.$strict>, z.ZodObject<{
5489
+ column: z.ZodString;
5490
+ filled: z.ZodLiteral<true>;
5491
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"create">, z.ZodObject<{
5492
+ column: z.ZodString;
5493
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
5494
+ }, z.core.$strict>, z.ZodObject<{
5495
+ column: z.ZodString;
5496
+ filled: z.ZodLiteral<true>;
5497
+ }, z.core.$strict>]>>]>;
3220
5498
  }, z.core.$strict>>;
3221
5499
  venueLocal: z.ZodOptional<z.ZodLiteral<true>>;
3222
5500
  personal: z.ZodOptional<z.ZodBoolean>;
5501
+ notAfter: z.ZodOptional<z.ZodLiteral<"today">>;
5502
+ notBefore: z.ZodOptional<z.ZodObject<{
5503
+ column: z.ZodString;
5504
+ via: z.ZodOptional<z.ZodString>;
5505
+ }, z.core.$strict>>;
3223
5506
  }, z.core.$strict>>;
3224
5507
  label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3225
5508
  }, z.core.$strict>>;
@@ -3332,6 +5615,48 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
3332
5615
  }, z.core.$strict>;
3333
5616
  }, z.core.$strict>>;
3334
5617
  }, z.core.$strict>>;
5618
+ states: z.ZodOptional<z.ZodObject<{
5619
+ column: z.ZodString;
5620
+ initial: z.ZodString;
5621
+ moves: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
5622
+ to: z.ZodString;
5623
+ requires: z.ZodOptional<z.ZodObject<{
5624
+ children: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
5625
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
5626
+ column: z.ZodString;
5627
+ eq: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
5628
+ in: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
5629
+ isNull: z.ZodOptional<z.ZodBoolean>;
5630
+ gt: z.ZodOptional<z.ZodNumber>;
5631
+ gte: z.ZodOptional<z.ZodNumber>;
5632
+ lt: z.ZodOptional<z.ZodNumber>;
5633
+ lte: z.ZodOptional<z.ZodNumber>;
5634
+ }, z.core.$strict>>>;
5635
+ }, z.core.$strict>>;
5636
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
5637
+ }, z.core.$strict>]>>>;
5638
+ lock: z.ZodOptional<z.ZodObject<{
5639
+ when: z.ZodArray<z.ZodString>;
5640
+ except: z.ZodOptional<z.ZodArray<z.ZodString>>;
5641
+ }, z.core.$strict>>;
5642
+ children: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5643
+ via: z.ZodString;
5644
+ lock: z.ZodOptional<z.ZodLiteral<true>>;
5645
+ parentIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
5646
+ clearOnCreate: z.ZodOptional<z.ZodArray<z.ZodString>>;
5647
+ }, z.core.$strict>>>;
5648
+ lockedWhenReferencedBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
5649
+ table: z.ZodString;
5650
+ via: z.ZodString;
5651
+ in: z.ZodArray<z.ZodString>;
5652
+ }, z.core.$strict>>>;
5653
+ noDelete: z.ZodOptional<z.ZodObject<{
5654
+ when: z.ZodUnion<readonly [z.ZodLiteral<"numbered">, z.ZodArray<z.ZodString>]>;
5655
+ }, z.core.$strict>>;
5656
+ onlyLater: z.ZodOptional<z.ZodArray<z.ZodString>>;
5657
+ }, z.core.$strict>>;
5658
+ builtOn: z.ZodOptional<z.ZodString>;
5659
+ part: z.ZodOptional<z.ZodString>;
3335
5660
  label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3336
5661
  labelPlural: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3337
5662
  keyField: z.ZodOptional<z.ZodString>;
@@ -3428,11 +5753,11 @@ export declare const manifestSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.
3428
5753
  }, z.core.$strict>>;
3429
5754
  }, z.core.$strict>], "type">>>;
3430
5755
  capabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5756
+ payments: "payments";
3431
5757
  "hosted-only": "hosted-only";
3432
5758
  "offline-required": "offline-required";
3433
5759
  "receipt-printer": "receipt-printer";
3434
5760
  "barcode-scanner": "barcode-scanner";
3435
- payments: "payments";
3436
5761
  "file-storage": "file-storage";
3437
5762
  "email-delivery": "email-delivery";
3438
5763
  realtime: "realtime";