@adminiumjs/manifest 0.3.27 → 0.3.28

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 (78) hide show
  1. package/dist/app-grants.d.ts +134 -0
  2. package/dist/app-grants.d.ts.map +1 -0
  3. package/dist/app-grants.js +263 -0
  4. package/dist/app-grants.js.map +1 -0
  5. package/dist/automations.d.ts +2172 -56
  6. package/dist/automations.d.ts.map +1 -1
  7. package/dist/automations.js +438 -25
  8. package/dist/automations.js.map +1 -1
  9. package/dist/compose.d.ts.map +1 -1
  10. package/dist/compose.js +3 -0
  11. package/dist/compose.js.map +1 -1
  12. package/dist/documents.d.ts +1 -0
  13. package/dist/documents.d.ts.map +1 -1
  14. package/dist/documents.js +2 -0
  15. package/dist/documents.js.map +1 -1
  16. package/dist/index.d.ts +11 -5
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +10 -4
  19. package/dist/index.js.map +1 -1
  20. package/dist/ledgers.d.ts.map +1 -1
  21. package/dist/ledgers.js +2 -0
  22. package/dist/ledgers.js.map +1 -1
  23. package/dist/modules.d.ts +93 -0
  24. package/dist/modules.d.ts.map +1 -0
  25. package/dist/modules.js +489 -0
  26. package/dist/modules.js.map +1 -0
  27. package/dist/occupies.d.ts +50 -0
  28. package/dist/occupies.d.ts.map +1 -0
  29. package/dist/occupies.js +123 -0
  30. package/dist/occupies.js.map +1 -0
  31. package/dist/outbox.d.ts +223 -17
  32. package/dist/outbox.d.ts.map +1 -1
  33. package/dist/outbox.js +125 -13
  34. package/dist/outbox.js.map +1 -1
  35. package/dist/page-board.d.ts +144 -0
  36. package/dist/page-board.d.ts.map +1 -0
  37. package/dist/page-board.js +280 -0
  38. package/dist/page-board.js.map +1 -0
  39. package/dist/public-access.d.ts +6 -0
  40. package/dist/public-access.d.ts.map +1 -1
  41. package/dist/public-access.js +74 -0
  42. package/dist/public-access.js.map +1 -1
  43. package/dist/rail.d.ts +50 -0
  44. package/dist/rail.d.ts.map +1 -0
  45. package/dist/rail.js +122 -0
  46. package/dist/rail.js.map +1 -0
  47. package/dist/roles.d.ts +647 -1
  48. package/dist/roles.d.ts.map +1 -1
  49. package/dist/roles.js +459 -3
  50. package/dist/roles.js.map +1 -1
  51. package/dist/sample.d.ts +62 -0
  52. package/dist/sample.d.ts.map +1 -1
  53. package/dist/sample.js +203 -4
  54. package/dist/sample.js.map +1 -1
  55. package/dist/schema.d.ts +4277 -169
  56. package/dist/schema.d.ts.map +1 -1
  57. package/dist/schema.js +539 -40
  58. package/dist/schema.js.map +1 -1
  59. package/dist/shapes.d.ts +3 -2
  60. package/dist/shapes.d.ts.map +1 -1
  61. package/dist/shapes.js +76 -7
  62. package/dist/shapes.js.map +1 -1
  63. package/dist/state-actions.d.ts +4 -0
  64. package/dist/state-actions.d.ts.map +1 -1
  65. package/dist/state-actions.js +7 -0
  66. package/dist/state-actions.js.map +1 -1
  67. package/dist/states.d.ts +20 -1
  68. package/dist/states.d.ts.map +1 -1
  69. package/dist/states.js +47 -5
  70. package/dist/states.js.map +1 -1
  71. package/dist/validate.d.ts.map +1 -1
  72. package/dist/validate.js +41 -0
  73. package/dist/validate.js.map +1 -1
  74. package/dist/words.d.ts +1 -1
  75. package/dist/words.d.ts.map +1 -1
  76. package/dist/words.js +328 -1
  77. package/dist/words.js.map +1 -1
  78. package/package.json +2 -2
@@ -22,7 +22,9 @@
22
22
  import { z } from 'zod';
23
23
  import { type ReferenceIssue } from './refs.js';
24
24
  /** The most rules one manifest ships, and the most steps one rule holds. */
25
- export declare const MANIFEST_AUTOMATIONS_MAX = 12;
25
+ export declare const MANIFEST_AUTOMATIONS_MAX = 24;
26
+ /** How many a manifest could ship before: one with more says so, so a server that reads only these refuses it by its version. */
27
+ export declare const MANIFEST_AUTOMATIONS_FIRST_MAX = 12;
26
28
  export declare const AUTOMATION_NODES_MAX = 40;
27
29
  export declare const AUTOMATION_CONDITION_OPS: readonly ["is", "is_not", "contains", "gt", "lt", "is_empty", "not_empty", "within_next", "within_last", "more_than_ago", "more_than_ahead"];
28
30
  export declare const manifestConditionSchema: z.ZodObject<{
@@ -57,6 +59,10 @@ export declare const manifestConditionSchema: z.ZodObject<{
57
59
  hours: "hours";
58
60
  days: "days";
59
61
  }>;
62
+ setting: z.ZodOptional<z.ZodObject<{
63
+ table: z.ZodString;
64
+ column: z.ZodString;
65
+ }, z.core.$strict>>;
60
66
  }, z.core.$strict>]>>;
61
67
  }, z.core.$strict>>;
62
68
  }, z.core.$strict>;
@@ -81,6 +87,10 @@ export declare const manifestConditionSchema: z.ZodObject<{
81
87
  hours: "hours";
82
88
  days: "days";
83
89
  }>;
90
+ setting: z.ZodOptional<z.ZodObject<{
91
+ table: z.ZodString;
92
+ column: z.ZodString;
93
+ }, z.core.$strict>>;
84
94
  }, z.core.$strict>]>>;
85
95
  }, z.core.$strict>;
86
96
  export type ManifestCondition = z.infer<typeof manifestConditionSchema>;
@@ -125,6 +135,10 @@ export declare const manifestTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject
125
135
  hours: "hours";
126
136
  days: "days";
127
137
  }>;
138
+ setting: z.ZodOptional<z.ZodObject<{
139
+ table: z.ZodString;
140
+ column: z.ZodString;
141
+ }, z.core.$strict>>;
128
142
  }, z.core.$strict>]>>;
129
143
  }, z.core.$strict>>;
130
144
  }, z.core.$strict>;
@@ -149,6 +163,10 @@ export declare const manifestTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject
149
163
  hours: "hours";
150
164
  days: "days";
151
165
  }>;
166
+ setting: z.ZodOptional<z.ZodObject<{
167
+ table: z.ZodString;
168
+ column: z.ZodString;
169
+ }, z.core.$strict>>;
152
170
  }, z.core.$strict>]>>;
153
171
  }, z.core.$strict>>>;
154
172
  }, z.core.$strict>, z.ZodObject<{
@@ -206,6 +224,10 @@ export declare const manifestTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject
206
224
  hours: "hours";
207
225
  days: "days";
208
226
  }>;
227
+ setting: z.ZodOptional<z.ZodObject<{
228
+ table: z.ZodString;
229
+ column: z.ZodString;
230
+ }, z.core.$strict>>;
209
231
  }, z.core.$strict>]>>;
210
232
  }, z.core.$strict>>;
211
233
  }, z.core.$strict>;
@@ -230,37 +252,218 @@ export declare const manifestTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject
230
252
  hours: "hours";
231
253
  days: "days";
232
254
  }>;
255
+ setting: z.ZodOptional<z.ZodObject<{
256
+ table: z.ZodString;
257
+ column: z.ZodString;
258
+ }, z.core.$strict>>;
233
259
  }, z.core.$strict>]>>;
234
260
  }, z.core.$strict>>;
235
- once: z.ZodBoolean;
261
+ once: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"per-spell">]>;
236
262
  }, z.core.$strict>>;
237
263
  }, z.core.$strict>], "kind">;
238
264
  export type ManifestTrigger = z.infer<typeof manifestTriggerSchema>;
265
+ /**
266
+ * A value a step writes: text, which may carry `{{record.<column>}}`; the
267
+ * moment it runs; what a column of the app's settings row holds when it runs
268
+ * (`setting`); or a day so many days after a date of the record, or after
269
+ * now, on the business's calendar (`daysAfter`), the days read from a
270
+ * whole-number setting when it holds some.
271
+ */
272
+ declare const writeValue: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
273
+ now: z.ZodLiteral<true>;
274
+ }, z.core.$strict>, z.ZodObject<{
275
+ setting: z.ZodObject<{
276
+ table: z.ZodString;
277
+ column: z.ZodString;
278
+ }, z.core.$strict>;
279
+ }, z.core.$strict>, z.ZodObject<{
280
+ daysAfter: z.ZodObject<{
281
+ column: z.ZodOptional<z.ZodString>;
282
+ now: z.ZodOptional<z.ZodLiteral<true>>;
283
+ days: z.ZodNumber;
284
+ setting: z.ZodOptional<z.ZodObject<{
285
+ table: z.ZodString;
286
+ column: z.ZodString;
287
+ }, z.core.$strict>>;
288
+ at: z.ZodOptional<z.ZodString>;
289
+ }, z.core.$strict>;
290
+ }, z.core.$strict>]>;
291
+ export type ManifestWriteValue = z.infer<typeof writeValue>;
239
292
  export declare const manifestActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
240
293
  kind: z.ZodLiteral<"email">;
241
294
  templateKey: z.ZodString;
242
- to: z.ZodObject<{
295
+ to: z.ZodUnion<readonly [z.ZodObject<{
243
296
  kind: z.ZodLiteral<"field">;
244
297
  column: z.ZodString;
245
- }, z.core.$strict>;
298
+ }, z.core.$strict>, z.ZodObject<{
299
+ kind: z.ZodLiteral<"staff">;
300
+ column: z.ZodString;
301
+ }, z.core.$strict>, z.ZodObject<{
302
+ kind: z.ZodLiteral<"listed">;
303
+ table: z.ZodString;
304
+ }, z.core.$strict>]>;
305
+ replyTo: z.ZodOptional<z.ZodObject<{
306
+ staff: z.ZodString;
307
+ }, z.core.$strict>>;
246
308
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
247
309
  }, z.core.$strict>, z.ZodObject<{
248
310
  kind: z.ZodLiteral<"notification">;
249
- to: z.ZodObject<{
311
+ to: z.ZodUnion<readonly [z.ZodObject<{
250
312
  roles: z.ZodArray<z.ZodString>;
251
- }, z.core.$strict>;
313
+ }, z.core.$strict>, z.ZodObject<{
314
+ listed: z.ZodString;
315
+ }, z.core.$strict>, z.ZodObject<{
316
+ column: z.ZodString;
317
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
318
+ else: z.ZodOptional<z.ZodObject<{
319
+ roles: z.ZodArray<z.ZodString>;
320
+ }, z.core.$strict>>;
321
+ }, z.core.$strict>]>;
252
322
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
253
323
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
324
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
254
325
  }, z.core.$strict>, z.ZodObject<{
255
326
  kind: z.ZodLiteral<"record.create">;
256
327
  table: z.ZodString;
257
328
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
258
329
  now: z.ZodLiteral<true>;
330
+ }, z.core.$strict>, z.ZodObject<{
331
+ setting: z.ZodObject<{
332
+ table: z.ZodString;
333
+ column: z.ZodString;
334
+ }, z.core.$strict>;
335
+ }, z.core.$strict>, z.ZodObject<{
336
+ daysAfter: z.ZodObject<{
337
+ column: z.ZodOptional<z.ZodString>;
338
+ now: z.ZodOptional<z.ZodLiteral<true>>;
339
+ days: z.ZodNumber;
340
+ setting: z.ZodOptional<z.ZodObject<{
341
+ table: z.ZodString;
342
+ column: z.ZodString;
343
+ }, z.core.$strict>>;
344
+ at: z.ZodOptional<z.ZodString>;
345
+ }, z.core.$strict>;
259
346
  }, z.core.$strict>]>>;
347
+ name: z.ZodOptional<z.ZodString>;
348
+ }, z.core.$strict>, z.ZodObject<{
349
+ kind: z.ZodLiteral<"digest">;
350
+ templateKey: z.ZodString;
351
+ to: z.ZodObject<{
352
+ roles: z.ZodArray<z.ZodString>;
353
+ }, z.core.$strict>;
354
+ sections: z.ZodArray<z.ZodObject<{
355
+ key: z.ZodString;
356
+ table: z.ZodString;
357
+ owner: z.ZodString;
358
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
359
+ left: z.ZodUnion<readonly [z.ZodObject<{
360
+ field: z.ZodString;
361
+ }, z.core.$strict>, z.ZodObject<{
362
+ count: z.ZodObject<{
363
+ table: z.ZodString;
364
+ matchColumn: z.ZodString;
365
+ equalsField: z.ZodString;
366
+ where: z.ZodOptional<z.ZodObject<{
367
+ left: z.ZodObject<{
368
+ field: z.ZodString;
369
+ }, z.core.$strict>;
370
+ op: z.ZodEnum<{
371
+ is: "is";
372
+ is_not: "is_not";
373
+ contains: "contains";
374
+ gt: "gt";
375
+ lt: "lt";
376
+ is_empty: "is_empty";
377
+ not_empty: "not_empty";
378
+ within_next: "within_next";
379
+ within_last: "within_last";
380
+ more_than_ago: "more_than_ago";
381
+ more_than_ahead: "more_than_ahead";
382
+ }>;
383
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
384
+ amount: z.ZodNumber;
385
+ unit: z.ZodEnum<{
386
+ minutes: "minutes";
387
+ hours: "hours";
388
+ days: "days";
389
+ }>;
390
+ setting: z.ZodOptional<z.ZodObject<{
391
+ table: z.ZodString;
392
+ column: z.ZodString;
393
+ }, z.core.$strict>>;
394
+ }, z.core.$strict>]>>;
395
+ }, z.core.$strict>>;
396
+ }, z.core.$strict>;
397
+ }, z.core.$strict>]>;
398
+ op: z.ZodEnum<{
399
+ is: "is";
400
+ is_not: "is_not";
401
+ contains: "contains";
402
+ gt: "gt";
403
+ lt: "lt";
404
+ is_empty: "is_empty";
405
+ not_empty: "not_empty";
406
+ within_next: "within_next";
407
+ within_last: "within_last";
408
+ more_than_ago: "more_than_ago";
409
+ more_than_ahead: "more_than_ahead";
410
+ }>;
411
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
412
+ amount: z.ZodNumber;
413
+ unit: z.ZodEnum<{
414
+ minutes: "minutes";
415
+ hours: "hours";
416
+ days: "days";
417
+ }>;
418
+ setting: z.ZodOptional<z.ZodObject<{
419
+ table: z.ZodString;
420
+ column: z.ZodString;
421
+ }, z.core.$strict>>;
422
+ }, z.core.$strict>]>>;
423
+ }, z.core.$strict>>>;
424
+ orderBy: z.ZodOptional<z.ZodObject<{
425
+ column: z.ZodString;
426
+ dir: z.ZodOptional<z.ZodEnum<{
427
+ asc: "asc";
428
+ desc: "desc";
429
+ }>>;
430
+ }, z.core.$strict>>;
431
+ limit: z.ZodOptional<z.ZodNumber>;
432
+ reach: z.ZodOptional<z.ZodEnum<{
433
+ own: "own";
434
+ team: "team";
435
+ }>>;
436
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
437
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
438
+ target: z.ZodOptional<z.ZodObject<{
439
+ table: z.ZodString;
440
+ owner: z.ZodString;
441
+ column: z.ZodString;
442
+ year: z.ZodOptional<z.ZodString>;
443
+ of: z.ZodString;
444
+ }, z.core.$strict>>;
445
+ }, z.core.$strict>>;
446
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
260
447
  }, z.core.$strict>, z.ZodObject<{
261
448
  kind: z.ZodLiteral<"record.update">;
262
449
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
263
450
  now: z.ZodLiteral<true>;
451
+ }, z.core.$strict>, z.ZodObject<{
452
+ setting: z.ZodObject<{
453
+ table: z.ZodString;
454
+ column: z.ZodString;
455
+ }, z.core.$strict>;
456
+ }, z.core.$strict>, z.ZodObject<{
457
+ daysAfter: z.ZodObject<{
458
+ column: z.ZodOptional<z.ZodString>;
459
+ now: z.ZodOptional<z.ZodLiteral<true>>;
460
+ days: z.ZodNumber;
461
+ setting: z.ZodOptional<z.ZodObject<{
462
+ table: z.ZodString;
463
+ column: z.ZodString;
464
+ }, z.core.$strict>>;
465
+ at: z.ZodOptional<z.ZodString>;
466
+ }, z.core.$strict>;
264
467
  }, z.core.$strict>]>>;
265
468
  }, z.core.$strict>, z.ZodObject<{
266
469
  kind: z.ZodLiteral<"add-on.step">;
@@ -280,28 +483,178 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
280
483
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
281
484
  kind: z.ZodLiteral<"email">;
282
485
  templateKey: z.ZodString;
283
- to: z.ZodObject<{
486
+ to: z.ZodUnion<readonly [z.ZodObject<{
284
487
  kind: z.ZodLiteral<"field">;
285
488
  column: z.ZodString;
286
- }, z.core.$strict>;
489
+ }, z.core.$strict>, z.ZodObject<{
490
+ kind: z.ZodLiteral<"staff">;
491
+ column: z.ZodString;
492
+ }, z.core.$strict>, z.ZodObject<{
493
+ kind: z.ZodLiteral<"listed">;
494
+ table: z.ZodString;
495
+ }, z.core.$strict>]>;
496
+ replyTo: z.ZodOptional<z.ZodObject<{
497
+ staff: z.ZodString;
498
+ }, z.core.$strict>>;
287
499
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
288
500
  }, z.core.$strict>, z.ZodObject<{
289
501
  kind: z.ZodLiteral<"notification">;
290
- to: z.ZodObject<{
502
+ to: z.ZodUnion<readonly [z.ZodObject<{
291
503
  roles: z.ZodArray<z.ZodString>;
292
- }, z.core.$strict>;
504
+ }, z.core.$strict>, z.ZodObject<{
505
+ listed: z.ZodString;
506
+ }, z.core.$strict>, z.ZodObject<{
507
+ column: z.ZodString;
508
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
509
+ else: z.ZodOptional<z.ZodObject<{
510
+ roles: z.ZodArray<z.ZodString>;
511
+ }, z.core.$strict>>;
512
+ }, z.core.$strict>]>;
293
513
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
294
514
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
515
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
295
516
  }, z.core.$strict>, z.ZodObject<{
296
517
  kind: z.ZodLiteral<"record.create">;
297
518
  table: z.ZodString;
298
519
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
299
520
  now: z.ZodLiteral<true>;
521
+ }, z.core.$strict>, z.ZodObject<{
522
+ setting: z.ZodObject<{
523
+ table: z.ZodString;
524
+ column: z.ZodString;
525
+ }, z.core.$strict>;
526
+ }, z.core.$strict>, z.ZodObject<{
527
+ daysAfter: z.ZodObject<{
528
+ column: z.ZodOptional<z.ZodString>;
529
+ now: z.ZodOptional<z.ZodLiteral<true>>;
530
+ days: z.ZodNumber;
531
+ setting: z.ZodOptional<z.ZodObject<{
532
+ table: z.ZodString;
533
+ column: z.ZodString;
534
+ }, z.core.$strict>>;
535
+ at: z.ZodOptional<z.ZodString>;
536
+ }, z.core.$strict>;
300
537
  }, z.core.$strict>]>>;
538
+ name: z.ZodOptional<z.ZodString>;
539
+ }, z.core.$strict>, z.ZodObject<{
540
+ kind: z.ZodLiteral<"digest">;
541
+ templateKey: z.ZodString;
542
+ to: z.ZodObject<{
543
+ roles: z.ZodArray<z.ZodString>;
544
+ }, z.core.$strict>;
545
+ sections: z.ZodArray<z.ZodObject<{
546
+ key: z.ZodString;
547
+ table: z.ZodString;
548
+ owner: z.ZodString;
549
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
550
+ left: z.ZodUnion<readonly [z.ZodObject<{
551
+ field: z.ZodString;
552
+ }, z.core.$strict>, z.ZodObject<{
553
+ count: z.ZodObject<{
554
+ table: z.ZodString;
555
+ matchColumn: z.ZodString;
556
+ equalsField: z.ZodString;
557
+ where: z.ZodOptional<z.ZodObject<{
558
+ left: z.ZodObject<{
559
+ field: z.ZodString;
560
+ }, z.core.$strict>;
561
+ op: z.ZodEnum<{
562
+ is: "is";
563
+ is_not: "is_not";
564
+ contains: "contains";
565
+ gt: "gt";
566
+ lt: "lt";
567
+ is_empty: "is_empty";
568
+ not_empty: "not_empty";
569
+ within_next: "within_next";
570
+ within_last: "within_last";
571
+ more_than_ago: "more_than_ago";
572
+ more_than_ahead: "more_than_ahead";
573
+ }>;
574
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
575
+ amount: z.ZodNumber;
576
+ unit: z.ZodEnum<{
577
+ minutes: "minutes";
578
+ hours: "hours";
579
+ days: "days";
580
+ }>;
581
+ setting: z.ZodOptional<z.ZodObject<{
582
+ table: z.ZodString;
583
+ column: z.ZodString;
584
+ }, z.core.$strict>>;
585
+ }, z.core.$strict>]>>;
586
+ }, z.core.$strict>>;
587
+ }, z.core.$strict>;
588
+ }, z.core.$strict>]>;
589
+ op: z.ZodEnum<{
590
+ is: "is";
591
+ is_not: "is_not";
592
+ contains: "contains";
593
+ gt: "gt";
594
+ lt: "lt";
595
+ is_empty: "is_empty";
596
+ not_empty: "not_empty";
597
+ within_next: "within_next";
598
+ within_last: "within_last";
599
+ more_than_ago: "more_than_ago";
600
+ more_than_ahead: "more_than_ahead";
601
+ }>;
602
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
603
+ amount: z.ZodNumber;
604
+ unit: z.ZodEnum<{
605
+ minutes: "minutes";
606
+ hours: "hours";
607
+ days: "days";
608
+ }>;
609
+ setting: z.ZodOptional<z.ZodObject<{
610
+ table: z.ZodString;
611
+ column: z.ZodString;
612
+ }, z.core.$strict>>;
613
+ }, z.core.$strict>]>>;
614
+ }, z.core.$strict>>>;
615
+ orderBy: z.ZodOptional<z.ZodObject<{
616
+ column: z.ZodString;
617
+ dir: z.ZodOptional<z.ZodEnum<{
618
+ asc: "asc";
619
+ desc: "desc";
620
+ }>>;
621
+ }, z.core.$strict>>;
622
+ limit: z.ZodOptional<z.ZodNumber>;
623
+ reach: z.ZodOptional<z.ZodEnum<{
624
+ own: "own";
625
+ team: "team";
626
+ }>>;
627
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
628
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
629
+ target: z.ZodOptional<z.ZodObject<{
630
+ table: z.ZodString;
631
+ owner: z.ZodString;
632
+ column: z.ZodString;
633
+ year: z.ZodOptional<z.ZodString>;
634
+ of: z.ZodString;
635
+ }, z.core.$strict>>;
636
+ }, z.core.$strict>>;
637
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
301
638
  }, z.core.$strict>, z.ZodObject<{
302
639
  kind: z.ZodLiteral<"record.update">;
303
640
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
304
641
  now: z.ZodLiteral<true>;
642
+ }, z.core.$strict>, z.ZodObject<{
643
+ setting: z.ZodObject<{
644
+ table: z.ZodString;
645
+ column: z.ZodString;
646
+ }, z.core.$strict>;
647
+ }, z.core.$strict>, z.ZodObject<{
648
+ daysAfter: z.ZodObject<{
649
+ column: z.ZodOptional<z.ZodString>;
650
+ now: z.ZodOptional<z.ZodLiteral<true>>;
651
+ days: z.ZodNumber;
652
+ setting: z.ZodOptional<z.ZodObject<{
653
+ table: z.ZodString;
654
+ column: z.ZodString;
655
+ }, z.core.$strict>>;
656
+ at: z.ZodOptional<z.ZodString>;
657
+ }, z.core.$strict>;
305
658
  }, z.core.$strict>]>>;
306
659
  }, z.core.$strict>, z.ZodObject<{
307
660
  kind: z.ZodLiteral<"add-on.step">;
@@ -347,6 +700,10 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
347
700
  hours: "hours";
348
701
  days: "days";
349
702
  }>;
703
+ setting: z.ZodOptional<z.ZodObject<{
704
+ table: z.ZodString;
705
+ column: z.ZodString;
706
+ }, z.core.$strict>>;
350
707
  }, z.core.$strict>]>>;
351
708
  }, z.core.$strict>>;
352
709
  }, z.core.$strict>;
@@ -371,6 +728,10 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
371
728
  hours: "hours";
372
729
  days: "days";
373
730
  }>;
731
+ setting: z.ZodOptional<z.ZodObject<{
732
+ table: z.ZodString;
733
+ column: z.ZodString;
734
+ }, z.core.$strict>>;
374
735
  }, z.core.$strict>]>>;
375
736
  }, z.core.$strict>;
376
737
  id: z.ZodString;
@@ -426,6 +787,10 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
426
787
  hours: "hours";
427
788
  days: "days";
428
789
  }>;
790
+ setting: z.ZodOptional<z.ZodObject<{
791
+ table: z.ZodString;
792
+ column: z.ZodString;
793
+ }, z.core.$strict>>;
429
794
  }, z.core.$strict>]>>;
430
795
  }, z.core.$strict>>;
431
796
  }, z.core.$strict>;
@@ -450,6 +815,10 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
450
815
  hours: "hours";
451
816
  days: "days";
452
817
  }>;
818
+ setting: z.ZodOptional<z.ZodObject<{
819
+ table: z.ZodString;
820
+ column: z.ZodString;
821
+ }, z.core.$strict>>;
453
822
  }, z.core.$strict>]>>;
454
823
  }, z.core.$strict>;
455
824
  branches: z.ZodTuple<[z.ZodObject<{
@@ -461,28 +830,178 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
461
830
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
462
831
  kind: z.ZodLiteral<"email">;
463
832
  templateKey: z.ZodString;
464
- to: z.ZodObject<{
833
+ to: z.ZodUnion<readonly [z.ZodObject<{
465
834
  kind: z.ZodLiteral<"field">;
466
835
  column: z.ZodString;
467
- }, z.core.$strict>;
836
+ }, z.core.$strict>, z.ZodObject<{
837
+ kind: z.ZodLiteral<"staff">;
838
+ column: z.ZodString;
839
+ }, z.core.$strict>, z.ZodObject<{
840
+ kind: z.ZodLiteral<"listed">;
841
+ table: z.ZodString;
842
+ }, z.core.$strict>]>;
843
+ replyTo: z.ZodOptional<z.ZodObject<{
844
+ staff: z.ZodString;
845
+ }, z.core.$strict>>;
468
846
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
469
847
  }, z.core.$strict>, z.ZodObject<{
470
848
  kind: z.ZodLiteral<"notification">;
471
- to: z.ZodObject<{
849
+ to: z.ZodUnion<readonly [z.ZodObject<{
472
850
  roles: z.ZodArray<z.ZodString>;
473
- }, z.core.$strict>;
851
+ }, z.core.$strict>, z.ZodObject<{
852
+ listed: z.ZodString;
853
+ }, z.core.$strict>, z.ZodObject<{
854
+ column: z.ZodString;
855
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
856
+ else: z.ZodOptional<z.ZodObject<{
857
+ roles: z.ZodArray<z.ZodString>;
858
+ }, z.core.$strict>>;
859
+ }, z.core.$strict>]>;
474
860
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
475
861
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
862
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
476
863
  }, z.core.$strict>, z.ZodObject<{
477
864
  kind: z.ZodLiteral<"record.create">;
478
865
  table: z.ZodString;
479
866
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
480
867
  now: z.ZodLiteral<true>;
868
+ }, z.core.$strict>, z.ZodObject<{
869
+ setting: z.ZodObject<{
870
+ table: z.ZodString;
871
+ column: z.ZodString;
872
+ }, z.core.$strict>;
873
+ }, z.core.$strict>, z.ZodObject<{
874
+ daysAfter: z.ZodObject<{
875
+ column: z.ZodOptional<z.ZodString>;
876
+ now: z.ZodOptional<z.ZodLiteral<true>>;
877
+ days: z.ZodNumber;
878
+ setting: z.ZodOptional<z.ZodObject<{
879
+ table: z.ZodString;
880
+ column: z.ZodString;
881
+ }, z.core.$strict>>;
882
+ at: z.ZodOptional<z.ZodString>;
883
+ }, z.core.$strict>;
481
884
  }, z.core.$strict>]>>;
885
+ name: z.ZodOptional<z.ZodString>;
886
+ }, z.core.$strict>, z.ZodObject<{
887
+ kind: z.ZodLiteral<"digest">;
888
+ templateKey: z.ZodString;
889
+ to: z.ZodObject<{
890
+ roles: z.ZodArray<z.ZodString>;
891
+ }, z.core.$strict>;
892
+ sections: z.ZodArray<z.ZodObject<{
893
+ key: z.ZodString;
894
+ table: z.ZodString;
895
+ owner: z.ZodString;
896
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
897
+ left: z.ZodUnion<readonly [z.ZodObject<{
898
+ field: z.ZodString;
899
+ }, z.core.$strict>, z.ZodObject<{
900
+ count: z.ZodObject<{
901
+ table: z.ZodString;
902
+ matchColumn: z.ZodString;
903
+ equalsField: z.ZodString;
904
+ where: z.ZodOptional<z.ZodObject<{
905
+ left: z.ZodObject<{
906
+ field: z.ZodString;
907
+ }, z.core.$strict>;
908
+ op: z.ZodEnum<{
909
+ is: "is";
910
+ is_not: "is_not";
911
+ contains: "contains";
912
+ gt: "gt";
913
+ lt: "lt";
914
+ is_empty: "is_empty";
915
+ not_empty: "not_empty";
916
+ within_next: "within_next";
917
+ within_last: "within_last";
918
+ more_than_ago: "more_than_ago";
919
+ more_than_ahead: "more_than_ahead";
920
+ }>;
921
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
922
+ amount: z.ZodNumber;
923
+ unit: z.ZodEnum<{
924
+ minutes: "minutes";
925
+ hours: "hours";
926
+ days: "days";
927
+ }>;
928
+ setting: z.ZodOptional<z.ZodObject<{
929
+ table: z.ZodString;
930
+ column: z.ZodString;
931
+ }, z.core.$strict>>;
932
+ }, z.core.$strict>]>>;
933
+ }, z.core.$strict>>;
934
+ }, z.core.$strict>;
935
+ }, z.core.$strict>]>;
936
+ op: z.ZodEnum<{
937
+ is: "is";
938
+ is_not: "is_not";
939
+ contains: "contains";
940
+ gt: "gt";
941
+ lt: "lt";
942
+ is_empty: "is_empty";
943
+ not_empty: "not_empty";
944
+ within_next: "within_next";
945
+ within_last: "within_last";
946
+ more_than_ago: "more_than_ago";
947
+ more_than_ahead: "more_than_ahead";
948
+ }>;
949
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
950
+ amount: z.ZodNumber;
951
+ unit: z.ZodEnum<{
952
+ minutes: "minutes";
953
+ hours: "hours";
954
+ days: "days";
955
+ }>;
956
+ setting: z.ZodOptional<z.ZodObject<{
957
+ table: z.ZodString;
958
+ column: z.ZodString;
959
+ }, z.core.$strict>>;
960
+ }, z.core.$strict>]>>;
961
+ }, z.core.$strict>>>;
962
+ orderBy: z.ZodOptional<z.ZodObject<{
963
+ column: z.ZodString;
964
+ dir: z.ZodOptional<z.ZodEnum<{
965
+ asc: "asc";
966
+ desc: "desc";
967
+ }>>;
968
+ }, z.core.$strict>>;
969
+ limit: z.ZodOptional<z.ZodNumber>;
970
+ reach: z.ZodOptional<z.ZodEnum<{
971
+ own: "own";
972
+ team: "team";
973
+ }>>;
974
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
975
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
976
+ target: z.ZodOptional<z.ZodObject<{
977
+ table: z.ZodString;
978
+ owner: z.ZodString;
979
+ column: z.ZodString;
980
+ year: z.ZodOptional<z.ZodString>;
981
+ of: z.ZodString;
982
+ }, z.core.$strict>>;
983
+ }, z.core.$strict>>;
984
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
482
985
  }, z.core.$strict>, z.ZodObject<{
483
986
  kind: z.ZodLiteral<"record.update">;
484
987
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
485
988
  now: z.ZodLiteral<true>;
989
+ }, z.core.$strict>, z.ZodObject<{
990
+ setting: z.ZodObject<{
991
+ table: z.ZodString;
992
+ column: z.ZodString;
993
+ }, z.core.$strict>;
994
+ }, z.core.$strict>, z.ZodObject<{
995
+ daysAfter: z.ZodObject<{
996
+ column: z.ZodOptional<z.ZodString>;
997
+ now: z.ZodOptional<z.ZodLiteral<true>>;
998
+ days: z.ZodNumber;
999
+ setting: z.ZodOptional<z.ZodObject<{
1000
+ table: z.ZodString;
1001
+ column: z.ZodString;
1002
+ }, z.core.$strict>>;
1003
+ at: z.ZodOptional<z.ZodString>;
1004
+ }, z.core.$strict>;
486
1005
  }, z.core.$strict>]>>;
487
1006
  }, z.core.$strict>, z.ZodObject<{
488
1007
  kind: z.ZodLiteral<"add-on.step">;
@@ -528,6 +1047,10 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
528
1047
  hours: "hours";
529
1048
  days: "days";
530
1049
  }>;
1050
+ setting: z.ZodOptional<z.ZodObject<{
1051
+ table: z.ZodString;
1052
+ column: z.ZodString;
1053
+ }, z.core.$strict>>;
531
1054
  }, z.core.$strict>]>>;
532
1055
  }, z.core.$strict>>;
533
1056
  }, z.core.$strict>;
@@ -552,6 +1075,10 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
552
1075
  hours: "hours";
553
1076
  days: "days";
554
1077
  }>;
1078
+ setting: z.ZodOptional<z.ZodObject<{
1079
+ table: z.ZodString;
1080
+ column: z.ZodString;
1081
+ }, z.core.$strict>>;
555
1082
  }, z.core.$strict>]>>;
556
1083
  }, z.core.$strict>;
557
1084
  id: z.ZodString;
@@ -583,28 +1110,178 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
583
1110
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
584
1111
  kind: z.ZodLiteral<"email">;
585
1112
  templateKey: z.ZodString;
586
- to: z.ZodObject<{
1113
+ to: z.ZodUnion<readonly [z.ZodObject<{
587
1114
  kind: z.ZodLiteral<"field">;
588
1115
  column: z.ZodString;
589
- }, z.core.$strict>;
1116
+ }, z.core.$strict>, z.ZodObject<{
1117
+ kind: z.ZodLiteral<"staff">;
1118
+ column: z.ZodString;
1119
+ }, z.core.$strict>, z.ZodObject<{
1120
+ kind: z.ZodLiteral<"listed">;
1121
+ table: z.ZodString;
1122
+ }, z.core.$strict>]>;
1123
+ replyTo: z.ZodOptional<z.ZodObject<{
1124
+ staff: z.ZodString;
1125
+ }, z.core.$strict>>;
590
1126
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
591
1127
  }, z.core.$strict>, z.ZodObject<{
592
1128
  kind: z.ZodLiteral<"notification">;
593
- to: z.ZodObject<{
1129
+ to: z.ZodUnion<readonly [z.ZodObject<{
594
1130
  roles: z.ZodArray<z.ZodString>;
595
- }, z.core.$strict>;
1131
+ }, z.core.$strict>, z.ZodObject<{
1132
+ listed: z.ZodString;
1133
+ }, z.core.$strict>, z.ZodObject<{
1134
+ column: z.ZodString;
1135
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
1136
+ else: z.ZodOptional<z.ZodObject<{
1137
+ roles: z.ZodArray<z.ZodString>;
1138
+ }, z.core.$strict>>;
1139
+ }, z.core.$strict>]>;
596
1140
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
597
1141
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1142
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
598
1143
  }, z.core.$strict>, z.ZodObject<{
599
1144
  kind: z.ZodLiteral<"record.create">;
600
1145
  table: z.ZodString;
601
1146
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
602
1147
  now: z.ZodLiteral<true>;
1148
+ }, z.core.$strict>, z.ZodObject<{
1149
+ setting: z.ZodObject<{
1150
+ table: z.ZodString;
1151
+ column: z.ZodString;
1152
+ }, z.core.$strict>;
1153
+ }, z.core.$strict>, z.ZodObject<{
1154
+ daysAfter: z.ZodObject<{
1155
+ column: z.ZodOptional<z.ZodString>;
1156
+ now: z.ZodOptional<z.ZodLiteral<true>>;
1157
+ days: z.ZodNumber;
1158
+ setting: z.ZodOptional<z.ZodObject<{
1159
+ table: z.ZodString;
1160
+ column: z.ZodString;
1161
+ }, z.core.$strict>>;
1162
+ at: z.ZodOptional<z.ZodString>;
1163
+ }, z.core.$strict>;
603
1164
  }, z.core.$strict>]>>;
1165
+ name: z.ZodOptional<z.ZodString>;
1166
+ }, z.core.$strict>, z.ZodObject<{
1167
+ kind: z.ZodLiteral<"digest">;
1168
+ templateKey: z.ZodString;
1169
+ to: z.ZodObject<{
1170
+ roles: z.ZodArray<z.ZodString>;
1171
+ }, z.core.$strict>;
1172
+ sections: z.ZodArray<z.ZodObject<{
1173
+ key: z.ZodString;
1174
+ table: z.ZodString;
1175
+ owner: z.ZodString;
1176
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
1177
+ left: z.ZodUnion<readonly [z.ZodObject<{
1178
+ field: z.ZodString;
1179
+ }, z.core.$strict>, z.ZodObject<{
1180
+ count: z.ZodObject<{
1181
+ table: z.ZodString;
1182
+ matchColumn: z.ZodString;
1183
+ equalsField: z.ZodString;
1184
+ where: z.ZodOptional<z.ZodObject<{
1185
+ left: z.ZodObject<{
1186
+ field: z.ZodString;
1187
+ }, z.core.$strict>;
1188
+ op: z.ZodEnum<{
1189
+ is: "is";
1190
+ is_not: "is_not";
1191
+ contains: "contains";
1192
+ gt: "gt";
1193
+ lt: "lt";
1194
+ is_empty: "is_empty";
1195
+ not_empty: "not_empty";
1196
+ within_next: "within_next";
1197
+ within_last: "within_last";
1198
+ more_than_ago: "more_than_ago";
1199
+ more_than_ahead: "more_than_ahead";
1200
+ }>;
1201
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
1202
+ amount: z.ZodNumber;
1203
+ unit: z.ZodEnum<{
1204
+ minutes: "minutes";
1205
+ hours: "hours";
1206
+ days: "days";
1207
+ }>;
1208
+ setting: z.ZodOptional<z.ZodObject<{
1209
+ table: z.ZodString;
1210
+ column: z.ZodString;
1211
+ }, z.core.$strict>>;
1212
+ }, z.core.$strict>]>>;
1213
+ }, z.core.$strict>>;
1214
+ }, z.core.$strict>;
1215
+ }, z.core.$strict>]>;
1216
+ op: z.ZodEnum<{
1217
+ is: "is";
1218
+ is_not: "is_not";
1219
+ contains: "contains";
1220
+ gt: "gt";
1221
+ lt: "lt";
1222
+ is_empty: "is_empty";
1223
+ not_empty: "not_empty";
1224
+ within_next: "within_next";
1225
+ within_last: "within_last";
1226
+ more_than_ago: "more_than_ago";
1227
+ more_than_ahead: "more_than_ahead";
1228
+ }>;
1229
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
1230
+ amount: z.ZodNumber;
1231
+ unit: z.ZodEnum<{
1232
+ minutes: "minutes";
1233
+ hours: "hours";
1234
+ days: "days";
1235
+ }>;
1236
+ setting: z.ZodOptional<z.ZodObject<{
1237
+ table: z.ZodString;
1238
+ column: z.ZodString;
1239
+ }, z.core.$strict>>;
1240
+ }, z.core.$strict>]>>;
1241
+ }, z.core.$strict>>>;
1242
+ orderBy: z.ZodOptional<z.ZodObject<{
1243
+ column: z.ZodString;
1244
+ dir: z.ZodOptional<z.ZodEnum<{
1245
+ asc: "asc";
1246
+ desc: "desc";
1247
+ }>>;
1248
+ }, z.core.$strict>>;
1249
+ limit: z.ZodOptional<z.ZodNumber>;
1250
+ reach: z.ZodOptional<z.ZodEnum<{
1251
+ own: "own";
1252
+ team: "team";
1253
+ }>>;
1254
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
1255
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
1256
+ target: z.ZodOptional<z.ZodObject<{
1257
+ table: z.ZodString;
1258
+ owner: z.ZodString;
1259
+ column: z.ZodString;
1260
+ year: z.ZodOptional<z.ZodString>;
1261
+ of: z.ZodString;
1262
+ }, z.core.$strict>>;
1263
+ }, z.core.$strict>>;
1264
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
604
1265
  }, z.core.$strict>, z.ZodObject<{
605
1266
  kind: z.ZodLiteral<"record.update">;
606
1267
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
607
1268
  now: z.ZodLiteral<true>;
1269
+ }, z.core.$strict>, z.ZodObject<{
1270
+ setting: z.ZodObject<{
1271
+ table: z.ZodString;
1272
+ column: z.ZodString;
1273
+ }, z.core.$strict>;
1274
+ }, z.core.$strict>, z.ZodObject<{
1275
+ daysAfter: z.ZodObject<{
1276
+ column: z.ZodOptional<z.ZodString>;
1277
+ now: z.ZodOptional<z.ZodLiteral<true>>;
1278
+ days: z.ZodNumber;
1279
+ setting: z.ZodOptional<z.ZodObject<{
1280
+ table: z.ZodString;
1281
+ column: z.ZodString;
1282
+ }, z.core.$strict>>;
1283
+ at: z.ZodOptional<z.ZodString>;
1284
+ }, z.core.$strict>;
608
1285
  }, z.core.$strict>]>>;
609
1286
  }, z.core.$strict>, z.ZodObject<{
610
1287
  kind: z.ZodLiteral<"add-on.step">;
@@ -650,6 +1327,10 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
650
1327
  hours: "hours";
651
1328
  days: "days";
652
1329
  }>;
1330
+ setting: z.ZodOptional<z.ZodObject<{
1331
+ table: z.ZodString;
1332
+ column: z.ZodString;
1333
+ }, z.core.$strict>>;
653
1334
  }, z.core.$strict>]>>;
654
1335
  }, z.core.$strict>>;
655
1336
  }, z.core.$strict>;
@@ -674,6 +1355,10 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
674
1355
  hours: "hours";
675
1356
  days: "days";
676
1357
  }>;
1358
+ setting: z.ZodOptional<z.ZodObject<{
1359
+ table: z.ZodString;
1360
+ column: z.ZodString;
1361
+ }, z.core.$strict>>;
677
1362
  }, z.core.$strict>]>>;
678
1363
  }, z.core.$strict>;
679
1364
  id: z.ZodString;
@@ -715,28 +1400,178 @@ export declare const manifestGraphSchema: z.ZodObject<{
715
1400
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
716
1401
  kind: z.ZodLiteral<"email">;
717
1402
  templateKey: z.ZodString;
718
- to: z.ZodObject<{
1403
+ to: z.ZodUnion<readonly [z.ZodObject<{
719
1404
  kind: z.ZodLiteral<"field">;
720
1405
  column: z.ZodString;
721
- }, z.core.$strict>;
1406
+ }, z.core.$strict>, z.ZodObject<{
1407
+ kind: z.ZodLiteral<"staff">;
1408
+ column: z.ZodString;
1409
+ }, z.core.$strict>, z.ZodObject<{
1410
+ kind: z.ZodLiteral<"listed">;
1411
+ table: z.ZodString;
1412
+ }, z.core.$strict>]>;
1413
+ replyTo: z.ZodOptional<z.ZodObject<{
1414
+ staff: z.ZodString;
1415
+ }, z.core.$strict>>;
722
1416
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
723
1417
  }, z.core.$strict>, z.ZodObject<{
724
1418
  kind: z.ZodLiteral<"notification">;
725
- to: z.ZodObject<{
1419
+ to: z.ZodUnion<readonly [z.ZodObject<{
726
1420
  roles: z.ZodArray<z.ZodString>;
727
- }, z.core.$strict>;
1421
+ }, z.core.$strict>, z.ZodObject<{
1422
+ listed: z.ZodString;
1423
+ }, z.core.$strict>, z.ZodObject<{
1424
+ column: z.ZodString;
1425
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
1426
+ else: z.ZodOptional<z.ZodObject<{
1427
+ roles: z.ZodArray<z.ZodString>;
1428
+ }, z.core.$strict>>;
1429
+ }, z.core.$strict>]>;
728
1430
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
729
1431
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1432
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
730
1433
  }, z.core.$strict>, z.ZodObject<{
731
1434
  kind: z.ZodLiteral<"record.create">;
732
1435
  table: z.ZodString;
733
1436
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
734
1437
  now: z.ZodLiteral<true>;
1438
+ }, z.core.$strict>, z.ZodObject<{
1439
+ setting: z.ZodObject<{
1440
+ table: z.ZodString;
1441
+ column: z.ZodString;
1442
+ }, z.core.$strict>;
1443
+ }, z.core.$strict>, z.ZodObject<{
1444
+ daysAfter: z.ZodObject<{
1445
+ column: z.ZodOptional<z.ZodString>;
1446
+ now: z.ZodOptional<z.ZodLiteral<true>>;
1447
+ days: z.ZodNumber;
1448
+ setting: z.ZodOptional<z.ZodObject<{
1449
+ table: z.ZodString;
1450
+ column: z.ZodString;
1451
+ }, z.core.$strict>>;
1452
+ at: z.ZodOptional<z.ZodString>;
1453
+ }, z.core.$strict>;
735
1454
  }, z.core.$strict>]>>;
1455
+ name: z.ZodOptional<z.ZodString>;
1456
+ }, z.core.$strict>, z.ZodObject<{
1457
+ kind: z.ZodLiteral<"digest">;
1458
+ templateKey: z.ZodString;
1459
+ to: z.ZodObject<{
1460
+ roles: z.ZodArray<z.ZodString>;
1461
+ }, z.core.$strict>;
1462
+ sections: z.ZodArray<z.ZodObject<{
1463
+ key: z.ZodString;
1464
+ table: z.ZodString;
1465
+ owner: z.ZodString;
1466
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
1467
+ left: z.ZodUnion<readonly [z.ZodObject<{
1468
+ field: z.ZodString;
1469
+ }, z.core.$strict>, z.ZodObject<{
1470
+ count: z.ZodObject<{
1471
+ table: z.ZodString;
1472
+ matchColumn: z.ZodString;
1473
+ equalsField: z.ZodString;
1474
+ where: z.ZodOptional<z.ZodObject<{
1475
+ left: z.ZodObject<{
1476
+ field: z.ZodString;
1477
+ }, z.core.$strict>;
1478
+ op: z.ZodEnum<{
1479
+ is: "is";
1480
+ is_not: "is_not";
1481
+ contains: "contains";
1482
+ gt: "gt";
1483
+ lt: "lt";
1484
+ is_empty: "is_empty";
1485
+ not_empty: "not_empty";
1486
+ within_next: "within_next";
1487
+ within_last: "within_last";
1488
+ more_than_ago: "more_than_ago";
1489
+ more_than_ahead: "more_than_ahead";
1490
+ }>;
1491
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
1492
+ amount: z.ZodNumber;
1493
+ unit: z.ZodEnum<{
1494
+ minutes: "minutes";
1495
+ hours: "hours";
1496
+ days: "days";
1497
+ }>;
1498
+ setting: z.ZodOptional<z.ZodObject<{
1499
+ table: z.ZodString;
1500
+ column: z.ZodString;
1501
+ }, z.core.$strict>>;
1502
+ }, z.core.$strict>]>>;
1503
+ }, z.core.$strict>>;
1504
+ }, z.core.$strict>;
1505
+ }, z.core.$strict>]>;
1506
+ op: z.ZodEnum<{
1507
+ is: "is";
1508
+ is_not: "is_not";
1509
+ contains: "contains";
1510
+ gt: "gt";
1511
+ lt: "lt";
1512
+ is_empty: "is_empty";
1513
+ not_empty: "not_empty";
1514
+ within_next: "within_next";
1515
+ within_last: "within_last";
1516
+ more_than_ago: "more_than_ago";
1517
+ more_than_ahead: "more_than_ahead";
1518
+ }>;
1519
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
1520
+ amount: z.ZodNumber;
1521
+ unit: z.ZodEnum<{
1522
+ minutes: "minutes";
1523
+ hours: "hours";
1524
+ days: "days";
1525
+ }>;
1526
+ setting: z.ZodOptional<z.ZodObject<{
1527
+ table: z.ZodString;
1528
+ column: z.ZodString;
1529
+ }, z.core.$strict>>;
1530
+ }, z.core.$strict>]>>;
1531
+ }, z.core.$strict>>>;
1532
+ orderBy: z.ZodOptional<z.ZodObject<{
1533
+ column: z.ZodString;
1534
+ dir: z.ZodOptional<z.ZodEnum<{
1535
+ asc: "asc";
1536
+ desc: "desc";
1537
+ }>>;
1538
+ }, z.core.$strict>>;
1539
+ limit: z.ZodOptional<z.ZodNumber>;
1540
+ reach: z.ZodOptional<z.ZodEnum<{
1541
+ own: "own";
1542
+ team: "team";
1543
+ }>>;
1544
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
1545
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
1546
+ target: z.ZodOptional<z.ZodObject<{
1547
+ table: z.ZodString;
1548
+ owner: z.ZodString;
1549
+ column: z.ZodString;
1550
+ year: z.ZodOptional<z.ZodString>;
1551
+ of: z.ZodString;
1552
+ }, z.core.$strict>>;
1553
+ }, z.core.$strict>>;
1554
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
736
1555
  }, z.core.$strict>, z.ZodObject<{
737
1556
  kind: z.ZodLiteral<"record.update">;
738
1557
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
739
1558
  now: z.ZodLiteral<true>;
1559
+ }, z.core.$strict>, z.ZodObject<{
1560
+ setting: z.ZodObject<{
1561
+ table: z.ZodString;
1562
+ column: z.ZodString;
1563
+ }, z.core.$strict>;
1564
+ }, z.core.$strict>, z.ZodObject<{
1565
+ daysAfter: z.ZodObject<{
1566
+ column: z.ZodOptional<z.ZodString>;
1567
+ now: z.ZodOptional<z.ZodLiteral<true>>;
1568
+ days: z.ZodNumber;
1569
+ setting: z.ZodOptional<z.ZodObject<{
1570
+ table: z.ZodString;
1571
+ column: z.ZodString;
1572
+ }, z.core.$strict>>;
1573
+ at: z.ZodOptional<z.ZodString>;
1574
+ }, z.core.$strict>;
740
1575
  }, z.core.$strict>]>>;
741
1576
  }, z.core.$strict>, z.ZodObject<{
742
1577
  kind: z.ZodLiteral<"add-on.step">;
@@ -782,6 +1617,10 @@ export declare const manifestGraphSchema: z.ZodObject<{
782
1617
  hours: "hours";
783
1618
  days: "days";
784
1619
  }>;
1620
+ setting: z.ZodOptional<z.ZodObject<{
1621
+ table: z.ZodString;
1622
+ column: z.ZodString;
1623
+ }, z.core.$strict>>;
785
1624
  }, z.core.$strict>]>>;
786
1625
  }, z.core.$strict>>;
787
1626
  }, z.core.$strict>;
@@ -806,6 +1645,10 @@ export declare const manifestGraphSchema: z.ZodObject<{
806
1645
  hours: "hours";
807
1646
  days: "days";
808
1647
  }>;
1648
+ setting: z.ZodOptional<z.ZodObject<{
1649
+ table: z.ZodString;
1650
+ column: z.ZodString;
1651
+ }, z.core.$strict>>;
809
1652
  }, z.core.$strict>]>>;
810
1653
  }, z.core.$strict>;
811
1654
  id: z.ZodString;
@@ -861,6 +1704,10 @@ export declare const manifestGraphSchema: z.ZodObject<{
861
1704
  hours: "hours";
862
1705
  days: "days";
863
1706
  }>;
1707
+ setting: z.ZodOptional<z.ZodObject<{
1708
+ table: z.ZodString;
1709
+ column: z.ZodString;
1710
+ }, z.core.$strict>>;
864
1711
  }, z.core.$strict>]>>;
865
1712
  }, z.core.$strict>>;
866
1713
  }, z.core.$strict>;
@@ -885,6 +1732,10 @@ export declare const manifestGraphSchema: z.ZodObject<{
885
1732
  hours: "hours";
886
1733
  days: "days";
887
1734
  }>;
1735
+ setting: z.ZodOptional<z.ZodObject<{
1736
+ table: z.ZodString;
1737
+ column: z.ZodString;
1738
+ }, z.core.$strict>>;
888
1739
  }, z.core.$strict>]>>;
889
1740
  }, z.core.$strict>;
890
1741
  branches: z.ZodTuple<[z.ZodObject<{
@@ -896,28 +1747,175 @@ export declare const manifestGraphSchema: z.ZodObject<{
896
1747
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
897
1748
  kind: z.ZodLiteral<"email">;
898
1749
  templateKey: z.ZodString;
899
- to: z.ZodObject<{
1750
+ to: z.ZodUnion<readonly [z.ZodObject<{
900
1751
  kind: z.ZodLiteral<"field">;
901
1752
  column: z.ZodString;
902
- }, z.core.$strict>;
1753
+ }, z.core.$strict>, z.ZodObject<{
1754
+ kind: z.ZodLiteral<"staff">;
1755
+ column: z.ZodString;
1756
+ }, z.core.$strict>, z.ZodObject<{
1757
+ kind: z.ZodLiteral<"listed">;
1758
+ table: z.ZodString;
1759
+ }, z.core.$strict>]>;
1760
+ replyTo: z.ZodOptional<z.ZodObject<{
1761
+ staff: z.ZodString;
1762
+ }, z.core.$strict>>;
903
1763
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
904
1764
  }, z.core.$strict>, z.ZodObject<{
905
1765
  kind: z.ZodLiteral<"notification">;
906
- to: z.ZodObject<{
1766
+ to: z.ZodUnion<readonly [z.ZodObject<{
907
1767
  roles: z.ZodArray<z.ZodString>;
908
- }, z.core.$strict>;
1768
+ }, z.core.$strict>, z.ZodObject<{
1769
+ listed: z.ZodString;
1770
+ }, z.core.$strict>, z.ZodObject<{
1771
+ column: z.ZodString;
1772
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
1773
+ else: z.ZodOptional<z.ZodObject<{
1774
+ roles: z.ZodArray<z.ZodString>;
1775
+ }, z.core.$strict>>;
1776
+ }, z.core.$strict>]>;
909
1777
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
910
1778
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1779
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
911
1780
  }, z.core.$strict>, z.ZodObject<{
912
1781
  kind: z.ZodLiteral<"record.create">;
913
1782
  table: z.ZodString;
914
1783
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
915
1784
  now: z.ZodLiteral<true>;
1785
+ }, z.core.$strict>, z.ZodObject<{
1786
+ setting: z.ZodObject<{
1787
+ table: z.ZodString;
1788
+ column: z.ZodString;
1789
+ }, z.core.$strict>;
1790
+ }, z.core.$strict>, z.ZodObject<{
1791
+ daysAfter: z.ZodObject<{
1792
+ column: z.ZodOptional<z.ZodString>;
1793
+ now: z.ZodOptional<z.ZodLiteral<true>>;
1794
+ days: z.ZodNumber;
1795
+ setting: z.ZodOptional<z.ZodObject<{
1796
+ table: z.ZodString;
1797
+ column: z.ZodString;
1798
+ }, z.core.$strict>>;
1799
+ at: z.ZodOptional<z.ZodString>;
1800
+ }, z.core.$strict>;
916
1801
  }, z.core.$strict>]>>;
1802
+ name: z.ZodOptional<z.ZodString>;
1803
+ }, z.core.$strict>, z.ZodObject<{
1804
+ kind: z.ZodLiteral<"digest">;
1805
+ templateKey: z.ZodString;
1806
+ to: z.ZodObject<{
1807
+ roles: z.ZodArray<z.ZodString>;
1808
+ }, z.core.$strict>;
1809
+ sections: z.ZodArray<z.ZodObject<{
1810
+ key: z.ZodString;
1811
+ table: z.ZodString;
1812
+ owner: z.ZodString;
1813
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
1814
+ left: z.ZodUnion<readonly [z.ZodObject<{
1815
+ field: z.ZodString;
1816
+ }, z.core.$strict>, z.ZodObject<{
1817
+ count: z.ZodObject<{
1818
+ table: z.ZodString;
1819
+ matchColumn: z.ZodString;
1820
+ equalsField: z.ZodString;
1821
+ where: z.ZodOptional<z.ZodObject<{
1822
+ left: z.ZodObject<{
1823
+ field: z.ZodString;
1824
+ }, z.core.$strict>;
1825
+ op: z.ZodEnum<{
1826
+ is: "is";
1827
+ is_not: "is_not";
1828
+ contains: "contains";
1829
+ gt: "gt";
1830
+ lt: "lt";
1831
+ is_empty: "is_empty";
1832
+ not_empty: "not_empty";
1833
+ within_next: "within_next";
1834
+ within_last: "within_last";
1835
+ more_than_ago: "more_than_ago";
1836
+ more_than_ahead: "more_than_ahead";
1837
+ }>;
1838
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
1839
+ amount: z.ZodNumber;
1840
+ unit: z.ZodEnum<{
1841
+ minutes: "minutes";
1842
+ hours: "hours";
1843
+ days: "days";
1844
+ }>;
1845
+ setting: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strict>>;
1846
+ }, z.core.$strict>]>>;
1847
+ }, z.core.$strict>>;
1848
+ }, z.core.$strict>;
1849
+ }, z.core.$strict>]>;
1850
+ op: z.ZodEnum<{
1851
+ is: "is";
1852
+ is_not: "is_not";
1853
+ contains: "contains";
1854
+ gt: "gt";
1855
+ lt: "lt";
1856
+ is_empty: "is_empty";
1857
+ not_empty: "not_empty";
1858
+ within_next: "within_next";
1859
+ within_last: "within_last";
1860
+ more_than_ago: "more_than_ago";
1861
+ more_than_ahead: "more_than_ahead";
1862
+ }>;
1863
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
1864
+ amount: z.ZodNumber;
1865
+ unit: z.ZodEnum<{
1866
+ minutes: "minutes";
1867
+ hours: "hours";
1868
+ days: "days";
1869
+ }>;
1870
+ setting: z.ZodOptional<z.ZodObject<{
1871
+ table: z.ZodString;
1872
+ column: z.ZodString;
1873
+ }, z.core.$strict>>;
1874
+ }, z.core.$strict>]>>;
1875
+ }, z.core.$strict>>>;
1876
+ orderBy: z.ZodOptional<z.ZodObject<{
1877
+ column: z.ZodString;
1878
+ dir: z.ZodOptional<z.ZodEnum<{
1879
+ asc: "asc";
1880
+ desc: "desc";
1881
+ }>>;
1882
+ }, z.core.$strict>>;
1883
+ limit: z.ZodOptional<z.ZodNumber>;
1884
+ reach: z.ZodOptional<z.ZodEnum<{
1885
+ own: "own";
1886
+ team: "team";
1887
+ }>>;
1888
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
1889
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
1890
+ target: z.ZodOptional<z.ZodObject<{
1891
+ table: z.ZodString;
1892
+ owner: z.ZodString;
1893
+ column: z.ZodString;
1894
+ year: z.ZodOptional<z.ZodString>;
1895
+ of: z.ZodString;
1896
+ }, z.core.$strict>>;
1897
+ }, z.core.$strict>>;
1898
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
917
1899
  }, z.core.$strict>, z.ZodObject<{
918
1900
  kind: z.ZodLiteral<"record.update">;
919
1901
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
920
1902
  now: z.ZodLiteral<true>;
1903
+ }, z.core.$strict>, z.ZodObject<{
1904
+ setting: z.ZodObject<{
1905
+ table: z.ZodString;
1906
+ column: z.ZodString;
1907
+ }, z.core.$strict>;
1908
+ }, z.core.$strict>, z.ZodObject<{
1909
+ daysAfter: z.ZodObject<{
1910
+ column: z.ZodOptional<z.ZodString>;
1911
+ now: z.ZodOptional<z.ZodLiteral<true>>;
1912
+ days: z.ZodNumber;
1913
+ setting: z.ZodOptional<z.ZodObject<{
1914
+ table: z.ZodString;
1915
+ column: z.ZodString;
1916
+ }, z.core.$strict>>;
1917
+ at: z.ZodOptional<z.ZodString>;
1918
+ }, z.core.$strict>;
921
1919
  }, z.core.$strict>]>>;
922
1920
  }, z.core.$strict>, z.ZodObject<{
923
1921
  kind: z.ZodLiteral<"add-on.step">;
@@ -963,6 +1961,10 @@ export declare const manifestGraphSchema: z.ZodObject<{
963
1961
  hours: "hours";
964
1962
  days: "days";
965
1963
  }>;
1964
+ setting: z.ZodOptional<z.ZodObject<{
1965
+ table: z.ZodString;
1966
+ column: z.ZodString;
1967
+ }, z.core.$strict>>;
966
1968
  }, z.core.$strict>]>>;
967
1969
  }, z.core.$strict>>;
968
1970
  }, z.core.$strict>;
@@ -987,6 +1989,10 @@ export declare const manifestGraphSchema: z.ZodObject<{
987
1989
  hours: "hours";
988
1990
  days: "days";
989
1991
  }>;
1992
+ setting: z.ZodOptional<z.ZodObject<{
1993
+ table: z.ZodString;
1994
+ column: z.ZodString;
1995
+ }, z.core.$strict>>;
990
1996
  }, z.core.$strict>]>>;
991
1997
  }, z.core.$strict>;
992
1998
  id: z.ZodString;
@@ -1018,28 +2024,175 @@ export declare const manifestGraphSchema: z.ZodObject<{
1018
2024
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1019
2025
  kind: z.ZodLiteral<"email">;
1020
2026
  templateKey: z.ZodString;
1021
- to: z.ZodObject<{
2027
+ to: z.ZodUnion<readonly [z.ZodObject<{
1022
2028
  kind: z.ZodLiteral<"field">;
1023
2029
  column: z.ZodString;
1024
- }, z.core.$strict>;
2030
+ }, z.core.$strict>, z.ZodObject<{
2031
+ kind: z.ZodLiteral<"staff">;
2032
+ column: z.ZodString;
2033
+ }, z.core.$strict>, z.ZodObject<{
2034
+ kind: z.ZodLiteral<"listed">;
2035
+ table: z.ZodString;
2036
+ }, z.core.$strict>]>;
2037
+ replyTo: z.ZodOptional<z.ZodObject<{
2038
+ staff: z.ZodString;
2039
+ }, z.core.$strict>>;
1025
2040
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1026
2041
  }, z.core.$strict>, z.ZodObject<{
1027
2042
  kind: z.ZodLiteral<"notification">;
1028
- to: z.ZodObject<{
2043
+ to: z.ZodUnion<readonly [z.ZodObject<{
1029
2044
  roles: z.ZodArray<z.ZodString>;
1030
- }, z.core.$strict>;
2045
+ }, z.core.$strict>, z.ZodObject<{
2046
+ listed: z.ZodString;
2047
+ }, z.core.$strict>, z.ZodObject<{
2048
+ column: z.ZodString;
2049
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
2050
+ else: z.ZodOptional<z.ZodObject<{
2051
+ roles: z.ZodArray<z.ZodString>;
2052
+ }, z.core.$strict>>;
2053
+ }, z.core.$strict>]>;
1031
2054
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
1032
2055
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2056
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
1033
2057
  }, z.core.$strict>, z.ZodObject<{
1034
2058
  kind: z.ZodLiteral<"record.create">;
1035
2059
  table: z.ZodString;
1036
2060
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1037
2061
  now: z.ZodLiteral<true>;
2062
+ }, z.core.$strict>, z.ZodObject<{
2063
+ setting: z.ZodObject<{
2064
+ table: z.ZodString;
2065
+ column: z.ZodString;
2066
+ }, z.core.$strict>;
2067
+ }, z.core.$strict>, z.ZodObject<{
2068
+ daysAfter: z.ZodObject<{
2069
+ column: z.ZodOptional<z.ZodString>;
2070
+ now: z.ZodOptional<z.ZodLiteral<true>>;
2071
+ days: z.ZodNumber;
2072
+ setting: z.ZodOptional<z.ZodObject<{
2073
+ table: z.ZodString;
2074
+ column: z.ZodString;
2075
+ }, z.core.$strict>>;
2076
+ at: z.ZodOptional<z.ZodString>;
2077
+ }, z.core.$strict>;
1038
2078
  }, z.core.$strict>]>>;
2079
+ name: z.ZodOptional<z.ZodString>;
2080
+ }, z.core.$strict>, z.ZodObject<{
2081
+ kind: z.ZodLiteral<"digest">;
2082
+ templateKey: z.ZodString;
2083
+ to: z.ZodObject<{
2084
+ roles: z.ZodArray<z.ZodString>;
2085
+ }, z.core.$strict>;
2086
+ sections: z.ZodArray<z.ZodObject<{
2087
+ key: z.ZodString;
2088
+ table: z.ZodString;
2089
+ owner: z.ZodString;
2090
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
2091
+ left: z.ZodUnion<readonly [z.ZodObject<{
2092
+ field: z.ZodString;
2093
+ }, z.core.$strict>, z.ZodObject<{
2094
+ count: z.ZodObject<{
2095
+ table: z.ZodString;
2096
+ matchColumn: z.ZodString;
2097
+ equalsField: z.ZodString;
2098
+ where: z.ZodOptional<z.ZodObject<{
2099
+ left: z.ZodObject<{
2100
+ field: z.ZodString;
2101
+ }, z.core.$strict>;
2102
+ op: z.ZodEnum<{
2103
+ is: "is";
2104
+ is_not: "is_not";
2105
+ contains: "contains";
2106
+ gt: "gt";
2107
+ lt: "lt";
2108
+ is_empty: "is_empty";
2109
+ not_empty: "not_empty";
2110
+ within_next: "within_next";
2111
+ within_last: "within_last";
2112
+ more_than_ago: "more_than_ago";
2113
+ more_than_ahead: "more_than_ahead";
2114
+ }>;
2115
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
2116
+ amount: z.ZodNumber;
2117
+ unit: z.ZodEnum<{
2118
+ minutes: "minutes";
2119
+ hours: "hours";
2120
+ days: "days";
2121
+ }>;
2122
+ setting: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strict>>;
2123
+ }, z.core.$strict>]>>;
2124
+ }, z.core.$strict>>;
2125
+ }, z.core.$strict>;
2126
+ }, z.core.$strict>]>;
2127
+ op: z.ZodEnum<{
2128
+ is: "is";
2129
+ is_not: "is_not";
2130
+ contains: "contains";
2131
+ gt: "gt";
2132
+ lt: "lt";
2133
+ is_empty: "is_empty";
2134
+ not_empty: "not_empty";
2135
+ within_next: "within_next";
2136
+ within_last: "within_last";
2137
+ more_than_ago: "more_than_ago";
2138
+ more_than_ahead: "more_than_ahead";
2139
+ }>;
2140
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
2141
+ amount: z.ZodNumber;
2142
+ unit: z.ZodEnum<{
2143
+ minutes: "minutes";
2144
+ hours: "hours";
2145
+ days: "days";
2146
+ }>;
2147
+ setting: z.ZodOptional<z.ZodObject<{
2148
+ table: z.ZodString;
2149
+ column: z.ZodString;
2150
+ }, z.core.$strict>>;
2151
+ }, z.core.$strict>]>>;
2152
+ }, z.core.$strict>>>;
2153
+ orderBy: z.ZodOptional<z.ZodObject<{
2154
+ column: z.ZodString;
2155
+ dir: z.ZodOptional<z.ZodEnum<{
2156
+ asc: "asc";
2157
+ desc: "desc";
2158
+ }>>;
2159
+ }, z.core.$strict>>;
2160
+ limit: z.ZodOptional<z.ZodNumber>;
2161
+ reach: z.ZodOptional<z.ZodEnum<{
2162
+ own: "own";
2163
+ team: "team";
2164
+ }>>;
2165
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
2166
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
2167
+ target: z.ZodOptional<z.ZodObject<{
2168
+ table: z.ZodString;
2169
+ owner: z.ZodString;
2170
+ column: z.ZodString;
2171
+ year: z.ZodOptional<z.ZodString>;
2172
+ of: z.ZodString;
2173
+ }, z.core.$strict>>;
2174
+ }, z.core.$strict>>;
2175
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
1039
2176
  }, z.core.$strict>, z.ZodObject<{
1040
2177
  kind: z.ZodLiteral<"record.update">;
1041
2178
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1042
2179
  now: z.ZodLiteral<true>;
2180
+ }, z.core.$strict>, z.ZodObject<{
2181
+ setting: z.ZodObject<{
2182
+ table: z.ZodString;
2183
+ column: z.ZodString;
2184
+ }, z.core.$strict>;
2185
+ }, z.core.$strict>, z.ZodObject<{
2186
+ daysAfter: z.ZodObject<{
2187
+ column: z.ZodOptional<z.ZodString>;
2188
+ now: z.ZodOptional<z.ZodLiteral<true>>;
2189
+ days: z.ZodNumber;
2190
+ setting: z.ZodOptional<z.ZodObject<{
2191
+ table: z.ZodString;
2192
+ column: z.ZodString;
2193
+ }, z.core.$strict>>;
2194
+ at: z.ZodOptional<z.ZodString>;
2195
+ }, z.core.$strict>;
1043
2196
  }, z.core.$strict>]>>;
1044
2197
  }, z.core.$strict>, z.ZodObject<{
1045
2198
  kind: z.ZodLiteral<"add-on.step">;
@@ -1085,6 +2238,10 @@ export declare const manifestGraphSchema: z.ZodObject<{
1085
2238
  hours: "hours";
1086
2239
  days: "days";
1087
2240
  }>;
2241
+ setting: z.ZodOptional<z.ZodObject<{
2242
+ table: z.ZodString;
2243
+ column: z.ZodString;
2244
+ }, z.core.$strict>>;
1088
2245
  }, z.core.$strict>]>>;
1089
2246
  }, z.core.$strict>>;
1090
2247
  }, z.core.$strict>;
@@ -1109,6 +2266,10 @@ export declare const manifestGraphSchema: z.ZodObject<{
1109
2266
  hours: "hours";
1110
2267
  days: "days";
1111
2268
  }>;
2269
+ setting: z.ZodOptional<z.ZodObject<{
2270
+ table: z.ZodString;
2271
+ column: z.ZodString;
2272
+ }, z.core.$strict>>;
1112
2273
  }, z.core.$strict>]>>;
1113
2274
  }, z.core.$strict>;
1114
2275
  id: z.ZodString;
@@ -1183,6 +2344,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1183
2344
  hours: "hours";
1184
2345
  days: "days";
1185
2346
  }>;
2347
+ setting: z.ZodOptional<z.ZodObject<{
2348
+ table: z.ZodString;
2349
+ column: z.ZodString;
2350
+ }, z.core.$strict>>;
1186
2351
  }, z.core.$strict>]>>;
1187
2352
  }, z.core.$strict>>;
1188
2353
  }, z.core.$strict>;
@@ -1207,6 +2372,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1207
2372
  hours: "hours";
1208
2373
  days: "days";
1209
2374
  }>;
2375
+ setting: z.ZodOptional<z.ZodObject<{
2376
+ table: z.ZodString;
2377
+ column: z.ZodString;
2378
+ }, z.core.$strict>>;
1210
2379
  }, z.core.$strict>]>>;
1211
2380
  }, z.core.$strict>>>;
1212
2381
  }, z.core.$strict>, z.ZodObject<{
@@ -1264,6 +2433,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1264
2433
  hours: "hours";
1265
2434
  days: "days";
1266
2435
  }>;
2436
+ setting: z.ZodOptional<z.ZodObject<{
2437
+ table: z.ZodString;
2438
+ column: z.ZodString;
2439
+ }, z.core.$strict>>;
1267
2440
  }, z.core.$strict>]>>;
1268
2441
  }, z.core.$strict>>;
1269
2442
  }, z.core.$strict>;
@@ -1288,9 +2461,13 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1288
2461
  hours: "hours";
1289
2462
  days: "days";
1290
2463
  }>;
2464
+ setting: z.ZodOptional<z.ZodObject<{
2465
+ table: z.ZodString;
2466
+ column: z.ZodString;
2467
+ }, z.core.$strict>>;
1291
2468
  }, z.core.$strict>]>>;
1292
2469
  }, z.core.$strict>>;
1293
- once: z.ZodBoolean;
2470
+ once: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"per-spell">]>;
1294
2471
  }, z.core.$strict>>;
1295
2472
  }, z.core.$strict>], "kind">;
1296
2473
  graph: z.ZodObject<{
@@ -1306,28 +2483,178 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1306
2483
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1307
2484
  kind: z.ZodLiteral<"email">;
1308
2485
  templateKey: z.ZodString;
1309
- to: z.ZodObject<{
2486
+ to: z.ZodUnion<readonly [z.ZodObject<{
1310
2487
  kind: z.ZodLiteral<"field">;
1311
2488
  column: z.ZodString;
1312
- }, z.core.$strict>;
2489
+ }, z.core.$strict>, z.ZodObject<{
2490
+ kind: z.ZodLiteral<"staff">;
2491
+ column: z.ZodString;
2492
+ }, z.core.$strict>, z.ZodObject<{
2493
+ kind: z.ZodLiteral<"listed">;
2494
+ table: z.ZodString;
2495
+ }, z.core.$strict>]>;
2496
+ replyTo: z.ZodOptional<z.ZodObject<{
2497
+ staff: z.ZodString;
2498
+ }, z.core.$strict>>;
1313
2499
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1314
2500
  }, z.core.$strict>, z.ZodObject<{
1315
2501
  kind: z.ZodLiteral<"notification">;
1316
- to: z.ZodObject<{
2502
+ to: z.ZodUnion<readonly [z.ZodObject<{
1317
2503
  roles: z.ZodArray<z.ZodString>;
1318
- }, z.core.$strict>;
2504
+ }, z.core.$strict>, z.ZodObject<{
2505
+ listed: z.ZodString;
2506
+ }, z.core.$strict>, z.ZodObject<{
2507
+ column: z.ZodString;
2508
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
2509
+ else: z.ZodOptional<z.ZodObject<{
2510
+ roles: z.ZodArray<z.ZodString>;
2511
+ }, z.core.$strict>>;
2512
+ }, z.core.$strict>]>;
1319
2513
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
1320
2514
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2515
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
1321
2516
  }, z.core.$strict>, z.ZodObject<{
1322
2517
  kind: z.ZodLiteral<"record.create">;
1323
2518
  table: z.ZodString;
1324
2519
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1325
2520
  now: z.ZodLiteral<true>;
2521
+ }, z.core.$strict>, z.ZodObject<{
2522
+ setting: z.ZodObject<{
2523
+ table: z.ZodString;
2524
+ column: z.ZodString;
2525
+ }, z.core.$strict>;
2526
+ }, z.core.$strict>, z.ZodObject<{
2527
+ daysAfter: z.ZodObject<{
2528
+ column: z.ZodOptional<z.ZodString>;
2529
+ now: z.ZodOptional<z.ZodLiteral<true>>;
2530
+ days: z.ZodNumber;
2531
+ setting: z.ZodOptional<z.ZodObject<{
2532
+ table: z.ZodString;
2533
+ column: z.ZodString;
2534
+ }, z.core.$strict>>;
2535
+ at: z.ZodOptional<z.ZodString>;
2536
+ }, z.core.$strict>;
1326
2537
  }, z.core.$strict>]>>;
2538
+ name: z.ZodOptional<z.ZodString>;
2539
+ }, z.core.$strict>, z.ZodObject<{
2540
+ kind: z.ZodLiteral<"digest">;
2541
+ templateKey: z.ZodString;
2542
+ to: z.ZodObject<{
2543
+ roles: z.ZodArray<z.ZodString>;
2544
+ }, z.core.$strict>;
2545
+ sections: z.ZodArray<z.ZodObject<{
2546
+ key: z.ZodString;
2547
+ table: z.ZodString;
2548
+ owner: z.ZodString;
2549
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
2550
+ left: z.ZodUnion<readonly [z.ZodObject<{
2551
+ field: z.ZodString;
2552
+ }, z.core.$strict>, z.ZodObject<{
2553
+ count: z.ZodObject<{
2554
+ table: z.ZodString;
2555
+ matchColumn: z.ZodString;
2556
+ equalsField: z.ZodString;
2557
+ where: z.ZodOptional<z.ZodObject<{
2558
+ left: z.ZodObject<{
2559
+ field: z.ZodString;
2560
+ }, z.core.$strict>;
2561
+ op: z.ZodEnum<{
2562
+ is: "is";
2563
+ is_not: "is_not";
2564
+ contains: "contains";
2565
+ gt: "gt";
2566
+ lt: "lt";
2567
+ is_empty: "is_empty";
2568
+ not_empty: "not_empty";
2569
+ within_next: "within_next";
2570
+ within_last: "within_last";
2571
+ more_than_ago: "more_than_ago";
2572
+ more_than_ahead: "more_than_ahead";
2573
+ }>;
2574
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
2575
+ amount: z.ZodNumber;
2576
+ unit: z.ZodEnum<{
2577
+ minutes: "minutes";
2578
+ hours: "hours";
2579
+ days: "days";
2580
+ }>;
2581
+ setting: z.ZodOptional<z.ZodObject<{
2582
+ table: z.ZodString;
2583
+ column: z.ZodString;
2584
+ }, z.core.$strict>>;
2585
+ }, z.core.$strict>]>>;
2586
+ }, z.core.$strict>>;
2587
+ }, z.core.$strict>;
2588
+ }, z.core.$strict>]>;
2589
+ op: z.ZodEnum<{
2590
+ is: "is";
2591
+ is_not: "is_not";
2592
+ contains: "contains";
2593
+ gt: "gt";
2594
+ lt: "lt";
2595
+ is_empty: "is_empty";
2596
+ not_empty: "not_empty";
2597
+ within_next: "within_next";
2598
+ within_last: "within_last";
2599
+ more_than_ago: "more_than_ago";
2600
+ more_than_ahead: "more_than_ahead";
2601
+ }>;
2602
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
2603
+ amount: z.ZodNumber;
2604
+ unit: z.ZodEnum<{
2605
+ minutes: "minutes";
2606
+ hours: "hours";
2607
+ days: "days";
2608
+ }>;
2609
+ setting: z.ZodOptional<z.ZodObject<{
2610
+ table: z.ZodString;
2611
+ column: z.ZodString;
2612
+ }, z.core.$strict>>;
2613
+ }, z.core.$strict>]>>;
2614
+ }, z.core.$strict>>>;
2615
+ orderBy: z.ZodOptional<z.ZodObject<{
2616
+ column: z.ZodString;
2617
+ dir: z.ZodOptional<z.ZodEnum<{
2618
+ asc: "asc";
2619
+ desc: "desc";
2620
+ }>>;
2621
+ }, z.core.$strict>>;
2622
+ limit: z.ZodOptional<z.ZodNumber>;
2623
+ reach: z.ZodOptional<z.ZodEnum<{
2624
+ own: "own";
2625
+ team: "team";
2626
+ }>>;
2627
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
2628
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
2629
+ target: z.ZodOptional<z.ZodObject<{
2630
+ table: z.ZodString;
2631
+ owner: z.ZodString;
2632
+ column: z.ZodString;
2633
+ year: z.ZodOptional<z.ZodString>;
2634
+ of: z.ZodString;
2635
+ }, z.core.$strict>>;
2636
+ }, z.core.$strict>>;
2637
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
1327
2638
  }, z.core.$strict>, z.ZodObject<{
1328
2639
  kind: z.ZodLiteral<"record.update">;
1329
2640
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1330
2641
  now: z.ZodLiteral<true>;
2642
+ }, z.core.$strict>, z.ZodObject<{
2643
+ setting: z.ZodObject<{
2644
+ table: z.ZodString;
2645
+ column: z.ZodString;
2646
+ }, z.core.$strict>;
2647
+ }, z.core.$strict>, z.ZodObject<{
2648
+ daysAfter: z.ZodObject<{
2649
+ column: z.ZodOptional<z.ZodString>;
2650
+ now: z.ZodOptional<z.ZodLiteral<true>>;
2651
+ days: z.ZodNumber;
2652
+ setting: z.ZodOptional<z.ZodObject<{
2653
+ table: z.ZodString;
2654
+ column: z.ZodString;
2655
+ }, z.core.$strict>>;
2656
+ at: z.ZodOptional<z.ZodString>;
2657
+ }, z.core.$strict>;
1331
2658
  }, z.core.$strict>]>>;
1332
2659
  }, z.core.$strict>, z.ZodObject<{
1333
2660
  kind: z.ZodLiteral<"add-on.step">;
@@ -1373,6 +2700,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1373
2700
  hours: "hours";
1374
2701
  days: "days";
1375
2702
  }>;
2703
+ setting: z.ZodOptional<z.ZodObject<{
2704
+ table: z.ZodString;
2705
+ column: z.ZodString;
2706
+ }, z.core.$strict>>;
1376
2707
  }, z.core.$strict>]>>;
1377
2708
  }, z.core.$strict>>;
1378
2709
  }, z.core.$strict>;
@@ -1397,6 +2728,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1397
2728
  hours: "hours";
1398
2729
  days: "days";
1399
2730
  }>;
2731
+ setting: z.ZodOptional<z.ZodObject<{
2732
+ table: z.ZodString;
2733
+ column: z.ZodString;
2734
+ }, z.core.$strict>>;
1400
2735
  }, z.core.$strict>]>>;
1401
2736
  }, z.core.$strict>;
1402
2737
  id: z.ZodString;
@@ -1452,6 +2787,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1452
2787
  hours: "hours";
1453
2788
  days: "days";
1454
2789
  }>;
2790
+ setting: z.ZodOptional<z.ZodObject<{
2791
+ table: z.ZodString;
2792
+ column: z.ZodString;
2793
+ }, z.core.$strict>>;
1455
2794
  }, z.core.$strict>]>>;
1456
2795
  }, z.core.$strict>>;
1457
2796
  }, z.core.$strict>;
@@ -1476,6 +2815,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1476
2815
  hours: "hours";
1477
2816
  days: "days";
1478
2817
  }>;
2818
+ setting: z.ZodOptional<z.ZodObject<{
2819
+ table: z.ZodString;
2820
+ column: z.ZodString;
2821
+ }, z.core.$strict>>;
1479
2822
  }, z.core.$strict>]>>;
1480
2823
  }, z.core.$strict>;
1481
2824
  branches: z.ZodTuple<[z.ZodObject<{
@@ -1487,28 +2830,165 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1487
2830
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1488
2831
  kind: z.ZodLiteral<"email">;
1489
2832
  templateKey: z.ZodString;
1490
- to: z.ZodObject<{
2833
+ to: z.ZodUnion<readonly [z.ZodObject<{
1491
2834
  kind: z.ZodLiteral<"field">;
1492
2835
  column: z.ZodString;
1493
- }, z.core.$strict>;
2836
+ }, z.core.$strict>, z.ZodObject<{
2837
+ kind: z.ZodLiteral<"staff">;
2838
+ column: z.ZodString;
2839
+ }, z.core.$strict>, z.ZodObject<{
2840
+ kind: z.ZodLiteral<"listed">;
2841
+ table: z.ZodString;
2842
+ }, z.core.$strict>]>;
2843
+ replyTo: z.ZodOptional<z.ZodObject<{
2844
+ staff: z.ZodString;
2845
+ }, z.core.$strict>>;
1494
2846
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1495
2847
  }, z.core.$strict>, z.ZodObject<{
1496
2848
  kind: z.ZodLiteral<"notification">;
1497
- to: z.ZodObject<{
2849
+ to: z.ZodUnion<readonly [z.ZodObject<{
1498
2850
  roles: z.ZodArray<z.ZodString>;
1499
- }, z.core.$strict>;
2851
+ }, z.core.$strict>, z.ZodObject<{
2852
+ listed: z.ZodString;
2853
+ }, z.core.$strict>, z.ZodObject<{
2854
+ column: z.ZodString;
2855
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
2856
+ else: z.ZodOptional<z.ZodObject<{
2857
+ roles: z.ZodArray<z.ZodString>;
2858
+ }, z.core.$strict>>;
2859
+ }, z.core.$strict>]>;
1500
2860
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
1501
2861
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2862
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
1502
2863
  }, z.core.$strict>, z.ZodObject<{
1503
2864
  kind: z.ZodLiteral<"record.create">;
1504
2865
  table: z.ZodString;
1505
2866
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1506
2867
  now: z.ZodLiteral<true>;
2868
+ }, z.core.$strict>, z.ZodObject<{
2869
+ setting: z.ZodObject<{
2870
+ table: z.ZodString;
2871
+ column: z.ZodString;
2872
+ }, z.core.$strict>;
2873
+ }, z.core.$strict>, z.ZodObject<{
2874
+ daysAfter: z.ZodObject<{
2875
+ column: z.ZodOptional<z.ZodString>;
2876
+ now: z.ZodOptional<z.ZodLiteral<true>>;
2877
+ days: z.ZodNumber;
2878
+ setting: z.ZodOptional<z.ZodObject<{
2879
+ table: z.ZodString;
2880
+ column: z.ZodString;
2881
+ }, z.core.$strict>>;
2882
+ at: z.ZodOptional<z.ZodString>;
2883
+ }, z.core.$strict>;
1507
2884
  }, z.core.$strict>]>>;
2885
+ name: z.ZodOptional<z.ZodString>;
2886
+ }, z.core.$strict>, z.ZodObject<{
2887
+ kind: z.ZodLiteral<"digest">;
2888
+ templateKey: z.ZodString;
2889
+ to: z.ZodObject<{
2890
+ roles: z.ZodArray<z.ZodString>;
2891
+ }, z.core.$strict>;
2892
+ sections: z.ZodArray<z.ZodObject<{
2893
+ key: z.ZodString;
2894
+ table: z.ZodString;
2895
+ owner: z.ZodString;
2896
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
2897
+ left: z.ZodUnion<readonly [z.ZodObject<{
2898
+ field: z.ZodString;
2899
+ }, z.core.$strict>, z.ZodObject<{
2900
+ count: z.ZodObject<{
2901
+ table: z.ZodString;
2902
+ matchColumn: z.ZodString;
2903
+ equalsField: z.ZodString;
2904
+ where: z.ZodOptional<z.ZodObject<{
2905
+ left: z.ZodObject</*elided*/ any, z.core.$strict>;
2906
+ op: z.ZodEnum<{
2907
+ is: "is";
2908
+ is_not: "is_not";
2909
+ contains: "contains";
2910
+ gt: "gt";
2911
+ lt: "lt";
2912
+ is_empty: "is_empty";
2913
+ not_empty: "not_empty";
2914
+ within_next: "within_next";
2915
+ within_last: "within_last";
2916
+ more_than_ago: "more_than_ago";
2917
+ more_than_ahead: "more_than_ahead";
2918
+ }>;
2919
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject</*elided*/ any, z.core.$strict>]>>;
2920
+ }, z.core.$strict>>;
2921
+ }, z.core.$strict>;
2922
+ }, z.core.$strict>]>;
2923
+ op: z.ZodEnum<{
2924
+ is: "is";
2925
+ is_not: "is_not";
2926
+ contains: "contains";
2927
+ gt: "gt";
2928
+ lt: "lt";
2929
+ is_empty: "is_empty";
2930
+ not_empty: "not_empty";
2931
+ within_next: "within_next";
2932
+ within_last: "within_last";
2933
+ more_than_ago: "more_than_ago";
2934
+ more_than_ahead: "more_than_ahead";
2935
+ }>;
2936
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
2937
+ amount: z.ZodNumber;
2938
+ unit: z.ZodEnum<{
2939
+ minutes: "minutes";
2940
+ hours: "hours";
2941
+ days: "days";
2942
+ }>;
2943
+ setting: z.ZodOptional<z.ZodObject<{
2944
+ table: z.ZodString;
2945
+ column: z.ZodString;
2946
+ }, z.core.$strict>>;
2947
+ }, z.core.$strict>]>>;
2948
+ }, z.core.$strict>>>;
2949
+ orderBy: z.ZodOptional<z.ZodObject<{
2950
+ column: z.ZodString;
2951
+ dir: z.ZodOptional<z.ZodEnum<{
2952
+ asc: "asc";
2953
+ desc: "desc";
2954
+ }>>;
2955
+ }, z.core.$strict>>;
2956
+ limit: z.ZodOptional<z.ZodNumber>;
2957
+ reach: z.ZodOptional<z.ZodEnum<{
2958
+ own: "own";
2959
+ team: "team";
2960
+ }>>;
2961
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
2962
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
2963
+ target: z.ZodOptional<z.ZodObject<{
2964
+ table: z.ZodString;
2965
+ owner: z.ZodString;
2966
+ column: z.ZodString;
2967
+ year: z.ZodOptional<z.ZodString>;
2968
+ of: z.ZodString;
2969
+ }, z.core.$strict>>;
2970
+ }, z.core.$strict>>;
2971
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
1508
2972
  }, z.core.$strict>, z.ZodObject<{
1509
2973
  kind: z.ZodLiteral<"record.update">;
1510
2974
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1511
2975
  now: z.ZodLiteral<true>;
2976
+ }, z.core.$strict>, z.ZodObject<{
2977
+ setting: z.ZodObject<{
2978
+ table: z.ZodString;
2979
+ column: z.ZodString;
2980
+ }, z.core.$strict>;
2981
+ }, z.core.$strict>, z.ZodObject<{
2982
+ daysAfter: z.ZodObject<{
2983
+ column: z.ZodOptional<z.ZodString>;
2984
+ now: z.ZodOptional<z.ZodLiteral<true>>;
2985
+ days: z.ZodNumber;
2986
+ setting: z.ZodOptional<z.ZodObject<{
2987
+ table: z.ZodString;
2988
+ column: z.ZodString;
2989
+ }, z.core.$strict>>;
2990
+ at: z.ZodOptional<z.ZodString>;
2991
+ }, z.core.$strict>;
1512
2992
  }, z.core.$strict>]>>;
1513
2993
  }, z.core.$strict>, z.ZodObject<{
1514
2994
  kind: z.ZodLiteral<"add-on.step">;
@@ -1554,6 +3034,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1554
3034
  hours: "hours";
1555
3035
  days: "days";
1556
3036
  }>;
3037
+ setting: z.ZodOptional<z.ZodObject<{
3038
+ table: z.ZodString;
3039
+ column: z.ZodString;
3040
+ }, z.core.$strict>>;
1557
3041
  }, z.core.$strict>]>>;
1558
3042
  }, z.core.$strict>>;
1559
3043
  }, z.core.$strict>;
@@ -1578,6 +3062,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1578
3062
  hours: "hours";
1579
3063
  days: "days";
1580
3064
  }>;
3065
+ setting: z.ZodOptional<z.ZodObject<{
3066
+ table: z.ZodString;
3067
+ column: z.ZodString;
3068
+ }, z.core.$strict>>;
1581
3069
  }, z.core.$strict>]>>;
1582
3070
  }, z.core.$strict>;
1583
3071
  id: z.ZodString;
@@ -1609,28 +3097,165 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1609
3097
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1610
3098
  kind: z.ZodLiteral<"email">;
1611
3099
  templateKey: z.ZodString;
1612
- to: z.ZodObject<{
3100
+ to: z.ZodUnion<readonly [z.ZodObject<{
1613
3101
  kind: z.ZodLiteral<"field">;
1614
3102
  column: z.ZodString;
1615
- }, z.core.$strict>;
3103
+ }, z.core.$strict>, z.ZodObject<{
3104
+ kind: z.ZodLiteral<"staff">;
3105
+ column: z.ZodString;
3106
+ }, z.core.$strict>, z.ZodObject<{
3107
+ kind: z.ZodLiteral<"listed">;
3108
+ table: z.ZodString;
3109
+ }, z.core.$strict>]>;
3110
+ replyTo: z.ZodOptional<z.ZodObject<{
3111
+ staff: z.ZodString;
3112
+ }, z.core.$strict>>;
1616
3113
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1617
3114
  }, z.core.$strict>, z.ZodObject<{
1618
3115
  kind: z.ZodLiteral<"notification">;
1619
- to: z.ZodObject<{
3116
+ to: z.ZodUnion<readonly [z.ZodObject<{
1620
3117
  roles: z.ZodArray<z.ZodString>;
1621
- }, z.core.$strict>;
3118
+ }, z.core.$strict>, z.ZodObject<{
3119
+ listed: z.ZodString;
3120
+ }, z.core.$strict>, z.ZodObject<{
3121
+ column: z.ZodString;
3122
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
3123
+ else: z.ZodOptional<z.ZodObject<{
3124
+ roles: z.ZodArray<z.ZodString>;
3125
+ }, z.core.$strict>>;
3126
+ }, z.core.$strict>]>;
1622
3127
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
1623
3128
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3129
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
1624
3130
  }, z.core.$strict>, z.ZodObject<{
1625
3131
  kind: z.ZodLiteral<"record.create">;
1626
3132
  table: z.ZodString;
1627
3133
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1628
3134
  now: z.ZodLiteral<true>;
3135
+ }, z.core.$strict>, z.ZodObject<{
3136
+ setting: z.ZodObject<{
3137
+ table: z.ZodString;
3138
+ column: z.ZodString;
3139
+ }, z.core.$strict>;
3140
+ }, z.core.$strict>, z.ZodObject<{
3141
+ daysAfter: z.ZodObject<{
3142
+ column: z.ZodOptional<z.ZodString>;
3143
+ now: z.ZodOptional<z.ZodLiteral<true>>;
3144
+ days: z.ZodNumber;
3145
+ setting: z.ZodOptional<z.ZodObject<{
3146
+ table: z.ZodString;
3147
+ column: z.ZodString;
3148
+ }, z.core.$strict>>;
3149
+ at: z.ZodOptional<z.ZodString>;
3150
+ }, z.core.$strict>;
1629
3151
  }, z.core.$strict>]>>;
3152
+ name: z.ZodOptional<z.ZodString>;
3153
+ }, z.core.$strict>, z.ZodObject<{
3154
+ kind: z.ZodLiteral<"digest">;
3155
+ templateKey: z.ZodString;
3156
+ to: z.ZodObject<{
3157
+ roles: z.ZodArray<z.ZodString>;
3158
+ }, z.core.$strict>;
3159
+ sections: z.ZodArray<z.ZodObject<{
3160
+ key: z.ZodString;
3161
+ table: z.ZodString;
3162
+ owner: z.ZodString;
3163
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
3164
+ left: z.ZodUnion<readonly [z.ZodObject<{
3165
+ field: z.ZodString;
3166
+ }, z.core.$strict>, z.ZodObject<{
3167
+ count: z.ZodObject<{
3168
+ table: z.ZodString;
3169
+ matchColumn: z.ZodString;
3170
+ equalsField: z.ZodString;
3171
+ where: z.ZodOptional<z.ZodObject<{
3172
+ left: z.ZodObject</*elided*/ any, z.core.$strict>;
3173
+ op: z.ZodEnum<{
3174
+ is: "is";
3175
+ is_not: "is_not";
3176
+ contains: "contains";
3177
+ gt: "gt";
3178
+ lt: "lt";
3179
+ is_empty: "is_empty";
3180
+ not_empty: "not_empty";
3181
+ within_next: "within_next";
3182
+ within_last: "within_last";
3183
+ more_than_ago: "more_than_ago";
3184
+ more_than_ahead: "more_than_ahead";
3185
+ }>;
3186
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject</*elided*/ any, z.core.$strict>]>>;
3187
+ }, z.core.$strict>>;
3188
+ }, z.core.$strict>;
3189
+ }, z.core.$strict>]>;
3190
+ op: z.ZodEnum<{
3191
+ is: "is";
3192
+ is_not: "is_not";
3193
+ contains: "contains";
3194
+ gt: "gt";
3195
+ lt: "lt";
3196
+ is_empty: "is_empty";
3197
+ not_empty: "not_empty";
3198
+ within_next: "within_next";
3199
+ within_last: "within_last";
3200
+ more_than_ago: "more_than_ago";
3201
+ more_than_ahead: "more_than_ahead";
3202
+ }>;
3203
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
3204
+ amount: z.ZodNumber;
3205
+ unit: z.ZodEnum<{
3206
+ minutes: "minutes";
3207
+ hours: "hours";
3208
+ days: "days";
3209
+ }>;
3210
+ setting: z.ZodOptional<z.ZodObject<{
3211
+ table: z.ZodString;
3212
+ column: z.ZodString;
3213
+ }, z.core.$strict>>;
3214
+ }, z.core.$strict>]>>;
3215
+ }, z.core.$strict>>>;
3216
+ orderBy: z.ZodOptional<z.ZodObject<{
3217
+ column: z.ZodString;
3218
+ dir: z.ZodOptional<z.ZodEnum<{
3219
+ asc: "asc";
3220
+ desc: "desc";
3221
+ }>>;
3222
+ }, z.core.$strict>>;
3223
+ limit: z.ZodOptional<z.ZodNumber>;
3224
+ reach: z.ZodOptional<z.ZodEnum<{
3225
+ own: "own";
3226
+ team: "team";
3227
+ }>>;
3228
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
3229
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
3230
+ target: z.ZodOptional<z.ZodObject<{
3231
+ table: z.ZodString;
3232
+ owner: z.ZodString;
3233
+ column: z.ZodString;
3234
+ year: z.ZodOptional<z.ZodString>;
3235
+ of: z.ZodString;
3236
+ }, z.core.$strict>>;
3237
+ }, z.core.$strict>>;
3238
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
1630
3239
  }, z.core.$strict>, z.ZodObject<{
1631
3240
  kind: z.ZodLiteral<"record.update">;
1632
3241
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1633
3242
  now: z.ZodLiteral<true>;
3243
+ }, z.core.$strict>, z.ZodObject<{
3244
+ setting: z.ZodObject<{
3245
+ table: z.ZodString;
3246
+ column: z.ZodString;
3247
+ }, z.core.$strict>;
3248
+ }, z.core.$strict>, z.ZodObject<{
3249
+ daysAfter: z.ZodObject<{
3250
+ column: z.ZodOptional<z.ZodString>;
3251
+ now: z.ZodOptional<z.ZodLiteral<true>>;
3252
+ days: z.ZodNumber;
3253
+ setting: z.ZodOptional<z.ZodObject<{
3254
+ table: z.ZodString;
3255
+ column: z.ZodString;
3256
+ }, z.core.$strict>>;
3257
+ at: z.ZodOptional<z.ZodString>;
3258
+ }, z.core.$strict>;
1634
3259
  }, z.core.$strict>]>>;
1635
3260
  }, z.core.$strict>, z.ZodObject<{
1636
3261
  kind: z.ZodLiteral<"add-on.step">;
@@ -1676,6 +3301,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1676
3301
  hours: "hours";
1677
3302
  days: "days";
1678
3303
  }>;
3304
+ setting: z.ZodOptional<z.ZodObject<{
3305
+ table: z.ZodString;
3306
+ column: z.ZodString;
3307
+ }, z.core.$strict>>;
1679
3308
  }, z.core.$strict>]>>;
1680
3309
  }, z.core.$strict>>;
1681
3310
  }, z.core.$strict>;
@@ -1700,6 +3329,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1700
3329
  hours: "hours";
1701
3330
  days: "days";
1702
3331
  }>;
3332
+ setting: z.ZodOptional<z.ZodObject<{
3333
+ table: z.ZodString;
3334
+ column: z.ZodString;
3335
+ }, z.core.$strict>>;
1703
3336
  }, z.core.$strict>]>>;
1704
3337
  }, z.core.$strict>;
1705
3338
  id: z.ZodString;
@@ -1728,6 +3361,7 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1728
3361
  sub: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1729
3362
  }, z.core.$strict>]>>;
1730
3363
  }, z.core.$strict>;
3364
+ module: z.ZodOptional<z.ZodString>;
1731
3365
  }, z.core.$strict>;
1732
3366
  export type ManifestAutomation = z.infer<typeof manifestAutomationSchema>;
1733
3367
  export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
@@ -1776,6 +3410,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
1776
3410
  hours: "hours";
1777
3411
  days: "days";
1778
3412
  }>;
3413
+ setting: z.ZodOptional<z.ZodObject<{
3414
+ table: z.ZodString;
3415
+ column: z.ZodString;
3416
+ }, z.core.$strict>>;
1779
3417
  }, z.core.$strict>]>>;
1780
3418
  }, z.core.$strict>>;
1781
3419
  }, z.core.$strict>;
@@ -1800,6 +3438,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
1800
3438
  hours: "hours";
1801
3439
  days: "days";
1802
3440
  }>;
3441
+ setting: z.ZodOptional<z.ZodObject<{
3442
+ table: z.ZodString;
3443
+ column: z.ZodString;
3444
+ }, z.core.$strict>>;
1803
3445
  }, z.core.$strict>]>>;
1804
3446
  }, z.core.$strict>>>;
1805
3447
  }, z.core.$strict>, z.ZodObject<{
@@ -1857,6 +3499,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
1857
3499
  hours: "hours";
1858
3500
  days: "days";
1859
3501
  }>;
3502
+ setting: z.ZodOptional<z.ZodObject<{
3503
+ table: z.ZodString;
3504
+ column: z.ZodString;
3505
+ }, z.core.$strict>>;
1860
3506
  }, z.core.$strict>]>>;
1861
3507
  }, z.core.$strict>>;
1862
3508
  }, z.core.$strict>;
@@ -1881,9 +3527,13 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
1881
3527
  hours: "hours";
1882
3528
  days: "days";
1883
3529
  }>;
3530
+ setting: z.ZodOptional<z.ZodObject<{
3531
+ table: z.ZodString;
3532
+ column: z.ZodString;
3533
+ }, z.core.$strict>>;
1884
3534
  }, z.core.$strict>]>>;
1885
3535
  }, z.core.$strict>>;
1886
- once: z.ZodBoolean;
3536
+ once: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"per-spell">]>;
1887
3537
  }, z.core.$strict>>;
1888
3538
  }, z.core.$strict>], "kind">;
1889
3539
  graph: z.ZodObject<{
@@ -1899,28 +3549,178 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
1899
3549
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1900
3550
  kind: z.ZodLiteral<"email">;
1901
3551
  templateKey: z.ZodString;
1902
- to: z.ZodObject<{
3552
+ to: z.ZodUnion<readonly [z.ZodObject<{
1903
3553
  kind: z.ZodLiteral<"field">;
1904
3554
  column: z.ZodString;
1905
- }, z.core.$strict>;
3555
+ }, z.core.$strict>, z.ZodObject<{
3556
+ kind: z.ZodLiteral<"staff">;
3557
+ column: z.ZodString;
3558
+ }, z.core.$strict>, z.ZodObject<{
3559
+ kind: z.ZodLiteral<"listed">;
3560
+ table: z.ZodString;
3561
+ }, z.core.$strict>]>;
3562
+ replyTo: z.ZodOptional<z.ZodObject<{
3563
+ staff: z.ZodString;
3564
+ }, z.core.$strict>>;
1906
3565
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1907
3566
  }, z.core.$strict>, z.ZodObject<{
1908
3567
  kind: z.ZodLiteral<"notification">;
1909
- to: z.ZodObject<{
3568
+ to: z.ZodUnion<readonly [z.ZodObject<{
1910
3569
  roles: z.ZodArray<z.ZodString>;
1911
- }, z.core.$strict>;
3570
+ }, z.core.$strict>, z.ZodObject<{
3571
+ listed: z.ZodString;
3572
+ }, z.core.$strict>, z.ZodObject<{
3573
+ column: z.ZodString;
3574
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
3575
+ else: z.ZodOptional<z.ZodObject<{
3576
+ roles: z.ZodArray<z.ZodString>;
3577
+ }, z.core.$strict>>;
3578
+ }, z.core.$strict>]>;
1912
3579
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
1913
3580
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3581
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
1914
3582
  }, z.core.$strict>, z.ZodObject<{
1915
3583
  kind: z.ZodLiteral<"record.create">;
1916
3584
  table: z.ZodString;
1917
3585
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1918
3586
  now: z.ZodLiteral<true>;
3587
+ }, z.core.$strict>, z.ZodObject<{
3588
+ setting: z.ZodObject<{
3589
+ table: z.ZodString;
3590
+ column: z.ZodString;
3591
+ }, z.core.$strict>;
3592
+ }, z.core.$strict>, z.ZodObject<{
3593
+ daysAfter: z.ZodObject<{
3594
+ column: z.ZodOptional<z.ZodString>;
3595
+ now: z.ZodOptional<z.ZodLiteral<true>>;
3596
+ days: z.ZodNumber;
3597
+ setting: z.ZodOptional<z.ZodObject<{
3598
+ table: z.ZodString;
3599
+ column: z.ZodString;
3600
+ }, z.core.$strict>>;
3601
+ at: z.ZodOptional<z.ZodString>;
3602
+ }, z.core.$strict>;
1919
3603
  }, z.core.$strict>]>>;
3604
+ name: z.ZodOptional<z.ZodString>;
3605
+ }, z.core.$strict>, z.ZodObject<{
3606
+ kind: z.ZodLiteral<"digest">;
3607
+ templateKey: z.ZodString;
3608
+ to: z.ZodObject<{
3609
+ roles: z.ZodArray<z.ZodString>;
3610
+ }, z.core.$strict>;
3611
+ sections: z.ZodArray<z.ZodObject<{
3612
+ key: z.ZodString;
3613
+ table: z.ZodString;
3614
+ owner: z.ZodString;
3615
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
3616
+ left: z.ZodUnion<readonly [z.ZodObject<{
3617
+ field: z.ZodString;
3618
+ }, z.core.$strict>, z.ZodObject<{
3619
+ count: z.ZodObject<{
3620
+ table: z.ZodString;
3621
+ matchColumn: z.ZodString;
3622
+ equalsField: z.ZodString;
3623
+ where: z.ZodOptional<z.ZodObject<{
3624
+ left: z.ZodObject<{
3625
+ field: z.ZodString;
3626
+ }, z.core.$strict>;
3627
+ op: z.ZodEnum<{
3628
+ is: "is";
3629
+ is_not: "is_not";
3630
+ contains: "contains";
3631
+ gt: "gt";
3632
+ lt: "lt";
3633
+ is_empty: "is_empty";
3634
+ not_empty: "not_empty";
3635
+ within_next: "within_next";
3636
+ within_last: "within_last";
3637
+ more_than_ago: "more_than_ago";
3638
+ more_than_ahead: "more_than_ahead";
3639
+ }>;
3640
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
3641
+ amount: z.ZodNumber;
3642
+ unit: z.ZodEnum<{
3643
+ minutes: "minutes";
3644
+ hours: "hours";
3645
+ days: "days";
3646
+ }>;
3647
+ setting: z.ZodOptional<z.ZodObject<{
3648
+ table: z.ZodString;
3649
+ column: z.ZodString;
3650
+ }, z.core.$strict>>;
3651
+ }, z.core.$strict>]>>;
3652
+ }, z.core.$strict>>;
3653
+ }, z.core.$strict>;
3654
+ }, z.core.$strict>]>;
3655
+ op: z.ZodEnum<{
3656
+ is: "is";
3657
+ is_not: "is_not";
3658
+ contains: "contains";
3659
+ gt: "gt";
3660
+ lt: "lt";
3661
+ is_empty: "is_empty";
3662
+ not_empty: "not_empty";
3663
+ within_next: "within_next";
3664
+ within_last: "within_last";
3665
+ more_than_ago: "more_than_ago";
3666
+ more_than_ahead: "more_than_ahead";
3667
+ }>;
3668
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
3669
+ amount: z.ZodNumber;
3670
+ unit: z.ZodEnum<{
3671
+ minutes: "minutes";
3672
+ hours: "hours";
3673
+ days: "days";
3674
+ }>;
3675
+ setting: z.ZodOptional<z.ZodObject<{
3676
+ table: z.ZodString;
3677
+ column: z.ZodString;
3678
+ }, z.core.$strict>>;
3679
+ }, z.core.$strict>]>>;
3680
+ }, z.core.$strict>>>;
3681
+ orderBy: z.ZodOptional<z.ZodObject<{
3682
+ column: z.ZodString;
3683
+ dir: z.ZodOptional<z.ZodEnum<{
3684
+ asc: "asc";
3685
+ desc: "desc";
3686
+ }>>;
3687
+ }, z.core.$strict>>;
3688
+ limit: z.ZodOptional<z.ZodNumber>;
3689
+ reach: z.ZodOptional<z.ZodEnum<{
3690
+ own: "own";
3691
+ team: "team";
3692
+ }>>;
3693
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
3694
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
3695
+ target: z.ZodOptional<z.ZodObject<{
3696
+ table: z.ZodString;
3697
+ owner: z.ZodString;
3698
+ column: z.ZodString;
3699
+ year: z.ZodOptional<z.ZodString>;
3700
+ of: z.ZodString;
3701
+ }, z.core.$strict>>;
3702
+ }, z.core.$strict>>;
3703
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
1920
3704
  }, z.core.$strict>, z.ZodObject<{
1921
3705
  kind: z.ZodLiteral<"record.update">;
1922
3706
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1923
3707
  now: z.ZodLiteral<true>;
3708
+ }, z.core.$strict>, z.ZodObject<{
3709
+ setting: z.ZodObject<{
3710
+ table: z.ZodString;
3711
+ column: z.ZodString;
3712
+ }, z.core.$strict>;
3713
+ }, z.core.$strict>, z.ZodObject<{
3714
+ daysAfter: z.ZodObject<{
3715
+ column: z.ZodOptional<z.ZodString>;
3716
+ now: z.ZodOptional<z.ZodLiteral<true>>;
3717
+ days: z.ZodNumber;
3718
+ setting: z.ZodOptional<z.ZodObject<{
3719
+ table: z.ZodString;
3720
+ column: z.ZodString;
3721
+ }, z.core.$strict>>;
3722
+ at: z.ZodOptional<z.ZodString>;
3723
+ }, z.core.$strict>;
1924
3724
  }, z.core.$strict>]>>;
1925
3725
  }, z.core.$strict>, z.ZodObject<{
1926
3726
  kind: z.ZodLiteral<"add-on.step">;
@@ -1966,6 +3766,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
1966
3766
  hours: "hours";
1967
3767
  days: "days";
1968
3768
  }>;
3769
+ setting: z.ZodOptional<z.ZodObject<{
3770
+ table: z.ZodString;
3771
+ column: z.ZodString;
3772
+ }, z.core.$strict>>;
1969
3773
  }, z.core.$strict>]>>;
1970
3774
  }, z.core.$strict>>;
1971
3775
  }, z.core.$strict>;
@@ -1990,6 +3794,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
1990
3794
  hours: "hours";
1991
3795
  days: "days";
1992
3796
  }>;
3797
+ setting: z.ZodOptional<z.ZodObject<{
3798
+ table: z.ZodString;
3799
+ column: z.ZodString;
3800
+ }, z.core.$strict>>;
1993
3801
  }, z.core.$strict>]>>;
1994
3802
  }, z.core.$strict>;
1995
3803
  id: z.ZodString;
@@ -2045,6 +3853,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2045
3853
  hours: "hours";
2046
3854
  days: "days";
2047
3855
  }>;
3856
+ setting: z.ZodOptional<z.ZodObject<{
3857
+ table: z.ZodString;
3858
+ column: z.ZodString;
3859
+ }, z.core.$strict>>;
2048
3860
  }, z.core.$strict>]>>;
2049
3861
  }, z.core.$strict>>;
2050
3862
  }, z.core.$strict>;
@@ -2069,6 +3881,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2069
3881
  hours: "hours";
2070
3882
  days: "days";
2071
3883
  }>;
3884
+ setting: z.ZodOptional<z.ZodObject<{
3885
+ table: z.ZodString;
3886
+ column: z.ZodString;
3887
+ }, z.core.$strict>>;
2072
3888
  }, z.core.$strict>]>>;
2073
3889
  }, z.core.$strict>;
2074
3890
  branches: z.ZodTuple<[z.ZodObject<{
@@ -2080,28 +3896,165 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2080
3896
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
2081
3897
  kind: z.ZodLiteral<"email">;
2082
3898
  templateKey: z.ZodString;
2083
- to: z.ZodObject<{
3899
+ to: z.ZodUnion<readonly [z.ZodObject<{
2084
3900
  kind: z.ZodLiteral<"field">;
2085
3901
  column: z.ZodString;
2086
- }, z.core.$strict>;
3902
+ }, z.core.$strict>, z.ZodObject<{
3903
+ kind: z.ZodLiteral<"staff">;
3904
+ column: z.ZodString;
3905
+ }, z.core.$strict>, z.ZodObject<{
3906
+ kind: z.ZodLiteral<"listed">;
3907
+ table: z.ZodString;
3908
+ }, z.core.$strict>]>;
3909
+ replyTo: z.ZodOptional<z.ZodObject<{
3910
+ staff: z.ZodString;
3911
+ }, z.core.$strict>>;
2087
3912
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2088
3913
  }, z.core.$strict>, z.ZodObject<{
2089
3914
  kind: z.ZodLiteral<"notification">;
2090
- to: z.ZodObject<{
3915
+ to: z.ZodUnion<readonly [z.ZodObject<{
2091
3916
  roles: z.ZodArray<z.ZodString>;
2092
- }, z.core.$strict>;
3917
+ }, z.core.$strict>, z.ZodObject<{
3918
+ listed: z.ZodString;
3919
+ }, z.core.$strict>, z.ZodObject<{
3920
+ column: z.ZodString;
3921
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
3922
+ else: z.ZodOptional<z.ZodObject<{
3923
+ roles: z.ZodArray<z.ZodString>;
3924
+ }, z.core.$strict>>;
3925
+ }, z.core.$strict>]>;
2093
3926
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
2094
3927
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3928
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
2095
3929
  }, z.core.$strict>, z.ZodObject<{
2096
3930
  kind: z.ZodLiteral<"record.create">;
2097
3931
  table: z.ZodString;
2098
3932
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2099
3933
  now: z.ZodLiteral<true>;
3934
+ }, z.core.$strict>, z.ZodObject<{
3935
+ setting: z.ZodObject<{
3936
+ table: z.ZodString;
3937
+ column: z.ZodString;
3938
+ }, z.core.$strict>;
3939
+ }, z.core.$strict>, z.ZodObject<{
3940
+ daysAfter: z.ZodObject<{
3941
+ column: z.ZodOptional<z.ZodString>;
3942
+ now: z.ZodOptional<z.ZodLiteral<true>>;
3943
+ days: z.ZodNumber;
3944
+ setting: z.ZodOptional<z.ZodObject<{
3945
+ table: z.ZodString;
3946
+ column: z.ZodString;
3947
+ }, z.core.$strict>>;
3948
+ at: z.ZodOptional<z.ZodString>;
3949
+ }, z.core.$strict>;
2100
3950
  }, z.core.$strict>]>>;
3951
+ name: z.ZodOptional<z.ZodString>;
3952
+ }, z.core.$strict>, z.ZodObject<{
3953
+ kind: z.ZodLiteral<"digest">;
3954
+ templateKey: z.ZodString;
3955
+ to: z.ZodObject<{
3956
+ roles: z.ZodArray<z.ZodString>;
3957
+ }, z.core.$strict>;
3958
+ sections: z.ZodArray<z.ZodObject<{
3959
+ key: z.ZodString;
3960
+ table: z.ZodString;
3961
+ owner: z.ZodString;
3962
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
3963
+ left: z.ZodUnion<readonly [z.ZodObject<{
3964
+ field: z.ZodString;
3965
+ }, z.core.$strict>, z.ZodObject<{
3966
+ count: z.ZodObject<{
3967
+ table: z.ZodString;
3968
+ matchColumn: z.ZodString;
3969
+ equalsField: z.ZodString;
3970
+ where: z.ZodOptional<z.ZodObject<{
3971
+ left: z.ZodObject</*elided*/ any, z.core.$strict>;
3972
+ op: z.ZodEnum<{
3973
+ is: "is";
3974
+ is_not: "is_not";
3975
+ contains: "contains";
3976
+ gt: "gt";
3977
+ lt: "lt";
3978
+ is_empty: "is_empty";
3979
+ not_empty: "not_empty";
3980
+ within_next: "within_next";
3981
+ within_last: "within_last";
3982
+ more_than_ago: "more_than_ago";
3983
+ more_than_ahead: "more_than_ahead";
3984
+ }>;
3985
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject</*elided*/ any, z.core.$strict>]>>;
3986
+ }, z.core.$strict>>;
3987
+ }, z.core.$strict>;
3988
+ }, z.core.$strict>]>;
3989
+ op: z.ZodEnum<{
3990
+ is: "is";
3991
+ is_not: "is_not";
3992
+ contains: "contains";
3993
+ gt: "gt";
3994
+ lt: "lt";
3995
+ is_empty: "is_empty";
3996
+ not_empty: "not_empty";
3997
+ within_next: "within_next";
3998
+ within_last: "within_last";
3999
+ more_than_ago: "more_than_ago";
4000
+ more_than_ahead: "more_than_ahead";
4001
+ }>;
4002
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
4003
+ amount: z.ZodNumber;
4004
+ unit: z.ZodEnum<{
4005
+ minutes: "minutes";
4006
+ hours: "hours";
4007
+ days: "days";
4008
+ }>;
4009
+ setting: z.ZodOptional<z.ZodObject<{
4010
+ table: z.ZodString;
4011
+ column: z.ZodString;
4012
+ }, z.core.$strict>>;
4013
+ }, z.core.$strict>]>>;
4014
+ }, z.core.$strict>>>;
4015
+ orderBy: z.ZodOptional<z.ZodObject<{
4016
+ column: z.ZodString;
4017
+ dir: z.ZodOptional<z.ZodEnum<{
4018
+ asc: "asc";
4019
+ desc: "desc";
4020
+ }>>;
4021
+ }, z.core.$strict>>;
4022
+ limit: z.ZodOptional<z.ZodNumber>;
4023
+ reach: z.ZodOptional<z.ZodEnum<{
4024
+ own: "own";
4025
+ team: "team";
4026
+ }>>;
4027
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
4028
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
4029
+ target: z.ZodOptional<z.ZodObject<{
4030
+ table: z.ZodString;
4031
+ owner: z.ZodString;
4032
+ column: z.ZodString;
4033
+ year: z.ZodOptional<z.ZodString>;
4034
+ of: z.ZodString;
4035
+ }, z.core.$strict>>;
4036
+ }, z.core.$strict>>;
4037
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
2101
4038
  }, z.core.$strict>, z.ZodObject<{
2102
4039
  kind: z.ZodLiteral<"record.update">;
2103
4040
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2104
4041
  now: z.ZodLiteral<true>;
4042
+ }, z.core.$strict>, z.ZodObject<{
4043
+ setting: z.ZodObject<{
4044
+ table: z.ZodString;
4045
+ column: z.ZodString;
4046
+ }, z.core.$strict>;
4047
+ }, z.core.$strict>, z.ZodObject<{
4048
+ daysAfter: z.ZodObject<{
4049
+ column: z.ZodOptional<z.ZodString>;
4050
+ now: z.ZodOptional<z.ZodLiteral<true>>;
4051
+ days: z.ZodNumber;
4052
+ setting: z.ZodOptional<z.ZodObject<{
4053
+ table: z.ZodString;
4054
+ column: z.ZodString;
4055
+ }, z.core.$strict>>;
4056
+ at: z.ZodOptional<z.ZodString>;
4057
+ }, z.core.$strict>;
2105
4058
  }, z.core.$strict>]>>;
2106
4059
  }, z.core.$strict>, z.ZodObject<{
2107
4060
  kind: z.ZodLiteral<"add-on.step">;
@@ -2147,6 +4100,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2147
4100
  hours: "hours";
2148
4101
  days: "days";
2149
4102
  }>;
4103
+ setting: z.ZodOptional<z.ZodObject<{
4104
+ table: z.ZodString;
4105
+ column: z.ZodString;
4106
+ }, z.core.$strict>>;
2150
4107
  }, z.core.$strict>]>>;
2151
4108
  }, z.core.$strict>>;
2152
4109
  }, z.core.$strict>;
@@ -2171,6 +4128,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2171
4128
  hours: "hours";
2172
4129
  days: "days";
2173
4130
  }>;
4131
+ setting: z.ZodOptional<z.ZodObject<{
4132
+ table: z.ZodString;
4133
+ column: z.ZodString;
4134
+ }, z.core.$strict>>;
2174
4135
  }, z.core.$strict>]>>;
2175
4136
  }, z.core.$strict>;
2176
4137
  id: z.ZodString;
@@ -2202,28 +4163,165 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2202
4163
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
2203
4164
  kind: z.ZodLiteral<"email">;
2204
4165
  templateKey: z.ZodString;
2205
- to: z.ZodObject<{
4166
+ to: z.ZodUnion<readonly [z.ZodObject<{
2206
4167
  kind: z.ZodLiteral<"field">;
2207
4168
  column: z.ZodString;
2208
- }, z.core.$strict>;
4169
+ }, z.core.$strict>, z.ZodObject<{
4170
+ kind: z.ZodLiteral<"staff">;
4171
+ column: z.ZodString;
4172
+ }, z.core.$strict>, z.ZodObject<{
4173
+ kind: z.ZodLiteral<"listed">;
4174
+ table: z.ZodString;
4175
+ }, z.core.$strict>]>;
4176
+ replyTo: z.ZodOptional<z.ZodObject<{
4177
+ staff: z.ZodString;
4178
+ }, z.core.$strict>>;
2209
4179
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2210
4180
  }, z.core.$strict>, z.ZodObject<{
2211
4181
  kind: z.ZodLiteral<"notification">;
2212
- to: z.ZodObject<{
4182
+ to: z.ZodUnion<readonly [z.ZodObject<{
2213
4183
  roles: z.ZodArray<z.ZodString>;
2214
- }, z.core.$strict>;
4184
+ }, z.core.$strict>, z.ZodObject<{
4185
+ listed: z.ZodString;
4186
+ }, z.core.$strict>, z.ZodObject<{
4187
+ column: z.ZodString;
4188
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
4189
+ else: z.ZodOptional<z.ZodObject<{
4190
+ roles: z.ZodArray<z.ZodString>;
4191
+ }, z.core.$strict>>;
4192
+ }, z.core.$strict>]>;
2215
4193
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
2216
4194
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
4195
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
2217
4196
  }, z.core.$strict>, z.ZodObject<{
2218
4197
  kind: z.ZodLiteral<"record.create">;
2219
4198
  table: z.ZodString;
2220
4199
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2221
4200
  now: z.ZodLiteral<true>;
4201
+ }, z.core.$strict>, z.ZodObject<{
4202
+ setting: z.ZodObject<{
4203
+ table: z.ZodString;
4204
+ column: z.ZodString;
4205
+ }, z.core.$strict>;
4206
+ }, z.core.$strict>, z.ZodObject<{
4207
+ daysAfter: z.ZodObject<{
4208
+ column: z.ZodOptional<z.ZodString>;
4209
+ now: z.ZodOptional<z.ZodLiteral<true>>;
4210
+ days: z.ZodNumber;
4211
+ setting: z.ZodOptional<z.ZodObject<{
4212
+ table: z.ZodString;
4213
+ column: z.ZodString;
4214
+ }, z.core.$strict>>;
4215
+ at: z.ZodOptional<z.ZodString>;
4216
+ }, z.core.$strict>;
2222
4217
  }, z.core.$strict>]>>;
4218
+ name: z.ZodOptional<z.ZodString>;
4219
+ }, z.core.$strict>, z.ZodObject<{
4220
+ kind: z.ZodLiteral<"digest">;
4221
+ templateKey: z.ZodString;
4222
+ to: z.ZodObject<{
4223
+ roles: z.ZodArray<z.ZodString>;
4224
+ }, z.core.$strict>;
4225
+ sections: z.ZodArray<z.ZodObject<{
4226
+ key: z.ZodString;
4227
+ table: z.ZodString;
4228
+ owner: z.ZodString;
4229
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
4230
+ left: z.ZodUnion<readonly [z.ZodObject<{
4231
+ field: z.ZodString;
4232
+ }, z.core.$strict>, z.ZodObject<{
4233
+ count: z.ZodObject<{
4234
+ table: z.ZodString;
4235
+ matchColumn: z.ZodString;
4236
+ equalsField: z.ZodString;
4237
+ where: z.ZodOptional<z.ZodObject<{
4238
+ left: z.ZodObject</*elided*/ any, z.core.$strict>;
4239
+ op: z.ZodEnum<{
4240
+ is: "is";
4241
+ is_not: "is_not";
4242
+ contains: "contains";
4243
+ gt: "gt";
4244
+ lt: "lt";
4245
+ is_empty: "is_empty";
4246
+ not_empty: "not_empty";
4247
+ within_next: "within_next";
4248
+ within_last: "within_last";
4249
+ more_than_ago: "more_than_ago";
4250
+ more_than_ahead: "more_than_ahead";
4251
+ }>;
4252
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject</*elided*/ any, z.core.$strict>]>>;
4253
+ }, z.core.$strict>>;
4254
+ }, z.core.$strict>;
4255
+ }, z.core.$strict>]>;
4256
+ op: z.ZodEnum<{
4257
+ is: "is";
4258
+ is_not: "is_not";
4259
+ contains: "contains";
4260
+ gt: "gt";
4261
+ lt: "lt";
4262
+ is_empty: "is_empty";
4263
+ not_empty: "not_empty";
4264
+ within_next: "within_next";
4265
+ within_last: "within_last";
4266
+ more_than_ago: "more_than_ago";
4267
+ more_than_ahead: "more_than_ahead";
4268
+ }>;
4269
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
4270
+ amount: z.ZodNumber;
4271
+ unit: z.ZodEnum<{
4272
+ minutes: "minutes";
4273
+ hours: "hours";
4274
+ days: "days";
4275
+ }>;
4276
+ setting: z.ZodOptional<z.ZodObject<{
4277
+ table: z.ZodString;
4278
+ column: z.ZodString;
4279
+ }, z.core.$strict>>;
4280
+ }, z.core.$strict>]>>;
4281
+ }, z.core.$strict>>>;
4282
+ orderBy: z.ZodOptional<z.ZodObject<{
4283
+ column: z.ZodString;
4284
+ dir: z.ZodOptional<z.ZodEnum<{
4285
+ asc: "asc";
4286
+ desc: "desc";
4287
+ }>>;
4288
+ }, z.core.$strict>>;
4289
+ limit: z.ZodOptional<z.ZodNumber>;
4290
+ reach: z.ZodOptional<z.ZodEnum<{
4291
+ own: "own";
4292
+ team: "team";
4293
+ }>>;
4294
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
4295
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
4296
+ target: z.ZodOptional<z.ZodObject<{
4297
+ table: z.ZodString;
4298
+ owner: z.ZodString;
4299
+ column: z.ZodString;
4300
+ year: z.ZodOptional<z.ZodString>;
4301
+ of: z.ZodString;
4302
+ }, z.core.$strict>>;
4303
+ }, z.core.$strict>>;
4304
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
2223
4305
  }, z.core.$strict>, z.ZodObject<{
2224
4306
  kind: z.ZodLiteral<"record.update">;
2225
4307
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2226
4308
  now: z.ZodLiteral<true>;
4309
+ }, z.core.$strict>, z.ZodObject<{
4310
+ setting: z.ZodObject<{
4311
+ table: z.ZodString;
4312
+ column: z.ZodString;
4313
+ }, z.core.$strict>;
4314
+ }, z.core.$strict>, z.ZodObject<{
4315
+ daysAfter: z.ZodObject<{
4316
+ column: z.ZodOptional<z.ZodString>;
4317
+ now: z.ZodOptional<z.ZodLiteral<true>>;
4318
+ days: z.ZodNumber;
4319
+ setting: z.ZodOptional<z.ZodObject<{
4320
+ table: z.ZodString;
4321
+ column: z.ZodString;
4322
+ }, z.core.$strict>>;
4323
+ at: z.ZodOptional<z.ZodString>;
4324
+ }, z.core.$strict>;
2227
4325
  }, z.core.$strict>]>>;
2228
4326
  }, z.core.$strict>, z.ZodObject<{
2229
4327
  kind: z.ZodLiteral<"add-on.step">;
@@ -2269,6 +4367,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2269
4367
  hours: "hours";
2270
4368
  days: "days";
2271
4369
  }>;
4370
+ setting: z.ZodOptional<z.ZodObject<{
4371
+ table: z.ZodString;
4372
+ column: z.ZodString;
4373
+ }, z.core.$strict>>;
2272
4374
  }, z.core.$strict>]>>;
2273
4375
  }, z.core.$strict>>;
2274
4376
  }, z.core.$strict>;
@@ -2293,6 +4395,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2293
4395
  hours: "hours";
2294
4396
  days: "days";
2295
4397
  }>;
4398
+ setting: z.ZodOptional<z.ZodObject<{
4399
+ table: z.ZodString;
4400
+ column: z.ZodString;
4401
+ }, z.core.$strict>>;
2296
4402
  }, z.core.$strict>]>>;
2297
4403
  }, z.core.$strict>;
2298
4404
  id: z.ZodString;
@@ -2321,6 +4427,7 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2321
4427
  sub: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2322
4428
  }, z.core.$strict>]>>;
2323
4429
  }, z.core.$strict>;
4430
+ module: z.ZodOptional<z.ZodString>;
2324
4431
  }, z.core.$strict>>;
2325
4432
  /** What the checks read of a table. */
2326
4433
  export interface AutomationTableShape {
@@ -2328,8 +4435,14 @@ export interface AutomationTableShape {
2328
4435
  columns: readonly {
2329
4436
  ref: string;
2330
4437
  type: string;
4438
+ /** The table a link column points at. */
4439
+ references?: string | undefined;
2331
4440
  rules?: Readonly<Record<string, unknown>> | undefined;
2332
4441
  }[];
4442
+ /** How people belong to its rows: a way `through` names a table that lists people against them. */
4443
+ belongs?: readonly unknown[] | undefined;
4444
+ /** Read by its own people alone: no rule reads a value of it. */
4445
+ private?: boolean | undefined;
2333
4446
  }
2334
4447
  /** What the checks read of an email template: its key and, per language, the text it is made of. */
2335
4448
  export interface AutomationTemplateShape {
@@ -2347,6 +4460,8 @@ export interface AutomationTemplateShape {
2347
4460
  }
2348
4461
  /** What every rule's email can read whatever its record is. */
2349
4462
  export declare const RULE_EMAIL_VARS: readonly ["now", "ruleName", "recordLabel", "appName"];
4463
+ /** What a summary's email can read beside its sections' figures: the person's name, and when the figures were read (`readAt`). */
4464
+ export declare const DIGEST_EMAIL_VARS: readonly ["now", "ruleName", "appName", "name", "readAt"];
2350
4465
  /**
2351
4466
  * Every placeholder a template reads in one language, in the order it reads
2352
4467
  * them. A `{{row.*}}` is left out: it belongs to the rows a list block draws.
@@ -2394,4 +4509,5 @@ export declare function automationIssues(m: {
2394
4509
  }[];
2395
4510
  } | undefined;
2396
4511
  }): ReferenceIssue[];
4512
+ export {};
2397
4513
  //# sourceMappingURL=automations.d.ts.map