@adminiumjs/manifest 0.3.27 → 0.3.29

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 (83) 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 +2255 -58
  6. package/dist/automations.d.ts.map +1 -1
  7. package/dist/automations.js +450 -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/plan-context.d.ts.map +1 -1
  40. package/dist/plan-context.js +3 -0
  41. package/dist/plan-context.js.map +1 -1
  42. package/dist/plan-model.d.ts +7 -0
  43. package/dist/plan-model.d.ts.map +1 -1
  44. package/dist/public-access.d.ts +6 -0
  45. package/dist/public-access.d.ts.map +1 -1
  46. package/dist/public-access.js +75 -1
  47. package/dist/public-access.js.map +1 -1
  48. package/dist/rail.d.ts +50 -0
  49. package/dist/rail.d.ts.map +1 -0
  50. package/dist/rail.js +122 -0
  51. package/dist/rail.js.map +1 -0
  52. package/dist/roles.d.ts +647 -1
  53. package/dist/roles.d.ts.map +1 -1
  54. package/dist/roles.js +459 -3
  55. package/dist/roles.js.map +1 -1
  56. package/dist/sample.d.ts +62 -0
  57. package/dist/sample.d.ts.map +1 -1
  58. package/dist/sample.js +203 -4
  59. package/dist/sample.js.map +1 -1
  60. package/dist/schema.d.ts +4349 -169
  61. package/dist/schema.d.ts.map +1 -1
  62. package/dist/schema.js +540 -41
  63. package/dist/schema.js.map +1 -1
  64. package/dist/shapes.d.ts +3 -2
  65. package/dist/shapes.d.ts.map +1 -1
  66. package/dist/shapes.js +76 -7
  67. package/dist/shapes.js.map +1 -1
  68. package/dist/state-actions.d.ts +4 -0
  69. package/dist/state-actions.d.ts.map +1 -1
  70. package/dist/state-actions.js +7 -0
  71. package/dist/state-actions.js.map +1 -1
  72. package/dist/states.d.ts +20 -1
  73. package/dist/states.d.ts.map +1 -1
  74. package/dist/states.js +47 -5
  75. package/dist/states.js.map +1 -1
  76. package/dist/validate.d.ts.map +1 -1
  77. package/dist/validate.js +110 -3
  78. package/dist/validate.js.map +1 -1
  79. package/dist/words.d.ts +1 -1
  80. package/dist/words.d.ts.map +1 -1
  81. package/dist/words.js +332 -1
  82. package/dist/words.js.map +1 -1
  83. 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,227 @@ 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
+ else: z.ZodOptional<z.ZodObject<{
280
+ staff: z.ZodString;
281
+ }, z.core.$strict>>;
282
+ }, z.core.$strict>, z.ZodObject<{
283
+ daysAfter: z.ZodObject<{
284
+ column: z.ZodOptional<z.ZodString>;
285
+ now: z.ZodOptional<z.ZodLiteral<true>>;
286
+ days: z.ZodNumber;
287
+ setting: z.ZodOptional<z.ZodObject<{
288
+ table: z.ZodString;
289
+ column: z.ZodString;
290
+ }, z.core.$strict>>;
291
+ at: z.ZodOptional<z.ZodString>;
292
+ }, z.core.$strict>;
293
+ }, z.core.$strict>]>;
294
+ export type ManifestWriteValue = z.infer<typeof writeValue>;
239
295
  export declare const manifestActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
240
296
  kind: z.ZodLiteral<"email">;
241
297
  templateKey: z.ZodString;
242
- to: z.ZodObject<{
298
+ to: z.ZodUnion<readonly [z.ZodObject<{
243
299
  kind: z.ZodLiteral<"field">;
244
300
  column: z.ZodString;
245
- }, z.core.$strict>;
301
+ }, z.core.$strict>, z.ZodObject<{
302
+ kind: z.ZodLiteral<"staff">;
303
+ column: z.ZodString;
304
+ }, z.core.$strict>, z.ZodObject<{
305
+ kind: z.ZodLiteral<"listed">;
306
+ table: z.ZodString;
307
+ }, z.core.$strict>]>;
308
+ replyTo: z.ZodOptional<z.ZodObject<{
309
+ staff: z.ZodString;
310
+ }, z.core.$strict>>;
246
311
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
247
312
  }, z.core.$strict>, z.ZodObject<{
248
313
  kind: z.ZodLiteral<"notification">;
249
- to: z.ZodObject<{
314
+ to: z.ZodUnion<readonly [z.ZodObject<{
250
315
  roles: z.ZodArray<z.ZodString>;
251
- }, z.core.$strict>;
316
+ }, z.core.$strict>, z.ZodObject<{
317
+ listed: z.ZodString;
318
+ }, z.core.$strict>, z.ZodObject<{
319
+ column: z.ZodString;
320
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
321
+ else: z.ZodOptional<z.ZodObject<{
322
+ roles: z.ZodArray<z.ZodString>;
323
+ }, z.core.$strict>>;
324
+ }, z.core.$strict>]>;
252
325
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
253
326
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
327
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
254
328
  }, z.core.$strict>, z.ZodObject<{
255
329
  kind: z.ZodLiteral<"record.create">;
256
330
  table: z.ZodString;
257
331
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
258
332
  now: z.ZodLiteral<true>;
333
+ }, z.core.$strict>, z.ZodObject<{
334
+ setting: z.ZodObject<{
335
+ table: z.ZodString;
336
+ column: z.ZodString;
337
+ }, z.core.$strict>;
338
+ else: z.ZodOptional<z.ZodObject<{
339
+ staff: z.ZodString;
340
+ }, z.core.$strict>>;
341
+ }, z.core.$strict>, z.ZodObject<{
342
+ daysAfter: z.ZodObject<{
343
+ column: z.ZodOptional<z.ZodString>;
344
+ now: z.ZodOptional<z.ZodLiteral<true>>;
345
+ days: z.ZodNumber;
346
+ setting: z.ZodOptional<z.ZodObject<{
347
+ table: z.ZodString;
348
+ column: z.ZodString;
349
+ }, z.core.$strict>>;
350
+ at: z.ZodOptional<z.ZodString>;
351
+ }, z.core.$strict>;
259
352
  }, z.core.$strict>]>>;
353
+ name: z.ZodOptional<z.ZodString>;
354
+ }, z.core.$strict>, z.ZodObject<{
355
+ kind: z.ZodLiteral<"digest">;
356
+ templateKey: z.ZodString;
357
+ to: z.ZodObject<{
358
+ roles: z.ZodArray<z.ZodString>;
359
+ }, z.core.$strict>;
360
+ sections: z.ZodArray<z.ZodObject<{
361
+ key: z.ZodString;
362
+ table: z.ZodString;
363
+ owner: z.ZodString;
364
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
365
+ left: z.ZodUnion<readonly [z.ZodObject<{
366
+ field: z.ZodString;
367
+ }, z.core.$strict>, z.ZodObject<{
368
+ count: z.ZodObject<{
369
+ table: z.ZodString;
370
+ matchColumn: z.ZodString;
371
+ equalsField: z.ZodString;
372
+ where: z.ZodOptional<z.ZodObject<{
373
+ left: z.ZodObject<{
374
+ field: z.ZodString;
375
+ }, z.core.$strict>;
376
+ op: z.ZodEnum<{
377
+ is: "is";
378
+ is_not: "is_not";
379
+ contains: "contains";
380
+ gt: "gt";
381
+ lt: "lt";
382
+ is_empty: "is_empty";
383
+ not_empty: "not_empty";
384
+ within_next: "within_next";
385
+ within_last: "within_last";
386
+ more_than_ago: "more_than_ago";
387
+ more_than_ahead: "more_than_ahead";
388
+ }>;
389
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
390
+ amount: z.ZodNumber;
391
+ unit: z.ZodEnum<{
392
+ minutes: "minutes";
393
+ hours: "hours";
394
+ days: "days";
395
+ }>;
396
+ setting: z.ZodOptional<z.ZodObject<{
397
+ table: z.ZodString;
398
+ column: z.ZodString;
399
+ }, z.core.$strict>>;
400
+ }, z.core.$strict>]>>;
401
+ }, z.core.$strict>>;
402
+ }, z.core.$strict>;
403
+ }, z.core.$strict>]>;
404
+ op: z.ZodEnum<{
405
+ is: "is";
406
+ is_not: "is_not";
407
+ contains: "contains";
408
+ gt: "gt";
409
+ lt: "lt";
410
+ is_empty: "is_empty";
411
+ not_empty: "not_empty";
412
+ within_next: "within_next";
413
+ within_last: "within_last";
414
+ more_than_ago: "more_than_ago";
415
+ more_than_ahead: "more_than_ahead";
416
+ }>;
417
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
418
+ amount: z.ZodNumber;
419
+ unit: z.ZodEnum<{
420
+ minutes: "minutes";
421
+ hours: "hours";
422
+ days: "days";
423
+ }>;
424
+ setting: z.ZodOptional<z.ZodObject<{
425
+ table: z.ZodString;
426
+ column: z.ZodString;
427
+ }, z.core.$strict>>;
428
+ }, z.core.$strict>]>>;
429
+ }, z.core.$strict>>>;
430
+ orderBy: z.ZodOptional<z.ZodObject<{
431
+ column: z.ZodString;
432
+ dir: z.ZodOptional<z.ZodEnum<{
433
+ asc: "asc";
434
+ desc: "desc";
435
+ }>>;
436
+ }, z.core.$strict>>;
437
+ limit: z.ZodOptional<z.ZodNumber>;
438
+ reach: z.ZodOptional<z.ZodEnum<{
439
+ own: "own";
440
+ team: "team";
441
+ }>>;
442
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
443
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
444
+ target: z.ZodOptional<z.ZodObject<{
445
+ table: z.ZodString;
446
+ owner: z.ZodString;
447
+ column: z.ZodString;
448
+ year: z.ZodOptional<z.ZodString>;
449
+ of: z.ZodString;
450
+ }, z.core.$strict>>;
451
+ }, z.core.$strict>>;
452
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
260
453
  }, z.core.$strict>, z.ZodObject<{
261
454
  kind: z.ZodLiteral<"record.update">;
262
455
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
263
456
  now: z.ZodLiteral<true>;
457
+ }, z.core.$strict>, z.ZodObject<{
458
+ setting: z.ZodObject<{
459
+ table: z.ZodString;
460
+ column: z.ZodString;
461
+ }, z.core.$strict>;
462
+ else: z.ZodOptional<z.ZodObject<{
463
+ staff: z.ZodString;
464
+ }, z.core.$strict>>;
465
+ }, z.core.$strict>, z.ZodObject<{
466
+ daysAfter: z.ZodObject<{
467
+ column: z.ZodOptional<z.ZodString>;
468
+ now: z.ZodOptional<z.ZodLiteral<true>>;
469
+ days: z.ZodNumber;
470
+ setting: z.ZodOptional<z.ZodObject<{
471
+ table: z.ZodString;
472
+ column: z.ZodString;
473
+ }, z.core.$strict>>;
474
+ at: z.ZodOptional<z.ZodString>;
475
+ }, z.core.$strict>;
264
476
  }, z.core.$strict>]>>;
265
477
  }, z.core.$strict>, z.ZodObject<{
266
478
  kind: z.ZodLiteral<"add-on.step">;
@@ -280,28 +492,184 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
280
492
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
281
493
  kind: z.ZodLiteral<"email">;
282
494
  templateKey: z.ZodString;
283
- to: z.ZodObject<{
495
+ to: z.ZodUnion<readonly [z.ZodObject<{
284
496
  kind: z.ZodLiteral<"field">;
285
497
  column: z.ZodString;
286
- }, z.core.$strict>;
498
+ }, z.core.$strict>, z.ZodObject<{
499
+ kind: z.ZodLiteral<"staff">;
500
+ column: z.ZodString;
501
+ }, z.core.$strict>, z.ZodObject<{
502
+ kind: z.ZodLiteral<"listed">;
503
+ table: z.ZodString;
504
+ }, z.core.$strict>]>;
505
+ replyTo: z.ZodOptional<z.ZodObject<{
506
+ staff: z.ZodString;
507
+ }, z.core.$strict>>;
287
508
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
288
509
  }, z.core.$strict>, z.ZodObject<{
289
510
  kind: z.ZodLiteral<"notification">;
290
- to: z.ZodObject<{
511
+ to: z.ZodUnion<readonly [z.ZodObject<{
291
512
  roles: z.ZodArray<z.ZodString>;
292
- }, z.core.$strict>;
513
+ }, z.core.$strict>, z.ZodObject<{
514
+ listed: z.ZodString;
515
+ }, z.core.$strict>, z.ZodObject<{
516
+ column: z.ZodString;
517
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
518
+ else: z.ZodOptional<z.ZodObject<{
519
+ roles: z.ZodArray<z.ZodString>;
520
+ }, z.core.$strict>>;
521
+ }, z.core.$strict>]>;
293
522
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
294
523
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
524
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
295
525
  }, z.core.$strict>, z.ZodObject<{
296
526
  kind: z.ZodLiteral<"record.create">;
297
527
  table: z.ZodString;
298
528
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
299
529
  now: z.ZodLiteral<true>;
530
+ }, z.core.$strict>, z.ZodObject<{
531
+ setting: z.ZodObject<{
532
+ table: z.ZodString;
533
+ column: z.ZodString;
534
+ }, z.core.$strict>;
535
+ else: z.ZodOptional<z.ZodObject<{
536
+ staff: z.ZodString;
537
+ }, z.core.$strict>>;
538
+ }, z.core.$strict>, z.ZodObject<{
539
+ daysAfter: z.ZodObject<{
540
+ column: z.ZodOptional<z.ZodString>;
541
+ now: z.ZodOptional<z.ZodLiteral<true>>;
542
+ days: z.ZodNumber;
543
+ setting: z.ZodOptional<z.ZodObject<{
544
+ table: z.ZodString;
545
+ column: z.ZodString;
546
+ }, z.core.$strict>>;
547
+ at: z.ZodOptional<z.ZodString>;
548
+ }, z.core.$strict>;
300
549
  }, z.core.$strict>]>>;
550
+ name: z.ZodOptional<z.ZodString>;
551
+ }, z.core.$strict>, z.ZodObject<{
552
+ kind: z.ZodLiteral<"digest">;
553
+ templateKey: z.ZodString;
554
+ to: z.ZodObject<{
555
+ roles: z.ZodArray<z.ZodString>;
556
+ }, z.core.$strict>;
557
+ sections: z.ZodArray<z.ZodObject<{
558
+ key: z.ZodString;
559
+ table: z.ZodString;
560
+ owner: z.ZodString;
561
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
562
+ left: z.ZodUnion<readonly [z.ZodObject<{
563
+ field: z.ZodString;
564
+ }, z.core.$strict>, z.ZodObject<{
565
+ count: z.ZodObject<{
566
+ table: z.ZodString;
567
+ matchColumn: z.ZodString;
568
+ equalsField: z.ZodString;
569
+ where: z.ZodOptional<z.ZodObject<{
570
+ left: z.ZodObject<{
571
+ field: z.ZodString;
572
+ }, z.core.$strict>;
573
+ op: z.ZodEnum<{
574
+ is: "is";
575
+ is_not: "is_not";
576
+ contains: "contains";
577
+ gt: "gt";
578
+ lt: "lt";
579
+ is_empty: "is_empty";
580
+ not_empty: "not_empty";
581
+ within_next: "within_next";
582
+ within_last: "within_last";
583
+ more_than_ago: "more_than_ago";
584
+ more_than_ahead: "more_than_ahead";
585
+ }>;
586
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
587
+ amount: z.ZodNumber;
588
+ unit: z.ZodEnum<{
589
+ minutes: "minutes";
590
+ hours: "hours";
591
+ days: "days";
592
+ }>;
593
+ setting: z.ZodOptional<z.ZodObject<{
594
+ table: z.ZodString;
595
+ column: z.ZodString;
596
+ }, z.core.$strict>>;
597
+ }, z.core.$strict>]>>;
598
+ }, z.core.$strict>>;
599
+ }, z.core.$strict>;
600
+ }, z.core.$strict>]>;
601
+ op: z.ZodEnum<{
602
+ is: "is";
603
+ is_not: "is_not";
604
+ contains: "contains";
605
+ gt: "gt";
606
+ lt: "lt";
607
+ is_empty: "is_empty";
608
+ not_empty: "not_empty";
609
+ within_next: "within_next";
610
+ within_last: "within_last";
611
+ more_than_ago: "more_than_ago";
612
+ more_than_ahead: "more_than_ahead";
613
+ }>;
614
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
615
+ amount: z.ZodNumber;
616
+ unit: z.ZodEnum<{
617
+ minutes: "minutes";
618
+ hours: "hours";
619
+ days: "days";
620
+ }>;
621
+ setting: z.ZodOptional<z.ZodObject<{
622
+ table: z.ZodString;
623
+ column: z.ZodString;
624
+ }, z.core.$strict>>;
625
+ }, z.core.$strict>]>>;
626
+ }, z.core.$strict>>>;
627
+ orderBy: z.ZodOptional<z.ZodObject<{
628
+ column: z.ZodString;
629
+ dir: z.ZodOptional<z.ZodEnum<{
630
+ asc: "asc";
631
+ desc: "desc";
632
+ }>>;
633
+ }, z.core.$strict>>;
634
+ limit: z.ZodOptional<z.ZodNumber>;
635
+ reach: z.ZodOptional<z.ZodEnum<{
636
+ own: "own";
637
+ team: "team";
638
+ }>>;
639
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
640
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
641
+ target: z.ZodOptional<z.ZodObject<{
642
+ table: z.ZodString;
643
+ owner: z.ZodString;
644
+ column: z.ZodString;
645
+ year: z.ZodOptional<z.ZodString>;
646
+ of: z.ZodString;
647
+ }, z.core.$strict>>;
648
+ }, z.core.$strict>>;
649
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
301
650
  }, z.core.$strict>, z.ZodObject<{
302
651
  kind: z.ZodLiteral<"record.update">;
303
652
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
304
653
  now: z.ZodLiteral<true>;
654
+ }, z.core.$strict>, z.ZodObject<{
655
+ setting: z.ZodObject<{
656
+ table: z.ZodString;
657
+ column: z.ZodString;
658
+ }, z.core.$strict>;
659
+ else: z.ZodOptional<z.ZodObject<{
660
+ staff: z.ZodString;
661
+ }, z.core.$strict>>;
662
+ }, z.core.$strict>, z.ZodObject<{
663
+ daysAfter: z.ZodObject<{
664
+ column: z.ZodOptional<z.ZodString>;
665
+ now: z.ZodOptional<z.ZodLiteral<true>>;
666
+ days: z.ZodNumber;
667
+ setting: z.ZodOptional<z.ZodObject<{
668
+ table: z.ZodString;
669
+ column: z.ZodString;
670
+ }, z.core.$strict>>;
671
+ at: z.ZodOptional<z.ZodString>;
672
+ }, z.core.$strict>;
305
673
  }, z.core.$strict>]>>;
306
674
  }, z.core.$strict>, z.ZodObject<{
307
675
  kind: z.ZodLiteral<"add-on.step">;
@@ -347,6 +715,10 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
347
715
  hours: "hours";
348
716
  days: "days";
349
717
  }>;
718
+ setting: z.ZodOptional<z.ZodObject<{
719
+ table: z.ZodString;
720
+ column: z.ZodString;
721
+ }, z.core.$strict>>;
350
722
  }, z.core.$strict>]>>;
351
723
  }, z.core.$strict>>;
352
724
  }, z.core.$strict>;
@@ -371,6 +743,10 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
371
743
  hours: "hours";
372
744
  days: "days";
373
745
  }>;
746
+ setting: z.ZodOptional<z.ZodObject<{
747
+ table: z.ZodString;
748
+ column: z.ZodString;
749
+ }, z.core.$strict>>;
374
750
  }, z.core.$strict>]>>;
375
751
  }, z.core.$strict>;
376
752
  id: z.ZodString;
@@ -426,8 +802,12 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
426
802
  hours: "hours";
427
803
  days: "days";
428
804
  }>;
429
- }, z.core.$strict>]>>;
430
- }, z.core.$strict>>;
805
+ setting: z.ZodOptional<z.ZodObject<{
806
+ table: z.ZodString;
807
+ column: z.ZodString;
808
+ }, z.core.$strict>>;
809
+ }, z.core.$strict>]>>;
810
+ }, z.core.$strict>>;
431
811
  }, z.core.$strict>;
432
812
  }, z.core.$strict>]>;
433
813
  op: z.ZodEnum<{
@@ -450,6 +830,10 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
450
830
  hours: "hours";
451
831
  days: "days";
452
832
  }>;
833
+ setting: z.ZodOptional<z.ZodObject<{
834
+ table: z.ZodString;
835
+ column: z.ZodString;
836
+ }, z.core.$strict>>;
453
837
  }, z.core.$strict>]>>;
454
838
  }, z.core.$strict>;
455
839
  branches: z.ZodTuple<[z.ZodObject<{
@@ -461,28 +845,184 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
461
845
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
462
846
  kind: z.ZodLiteral<"email">;
463
847
  templateKey: z.ZodString;
464
- to: z.ZodObject<{
848
+ to: z.ZodUnion<readonly [z.ZodObject<{
465
849
  kind: z.ZodLiteral<"field">;
466
850
  column: z.ZodString;
467
- }, z.core.$strict>;
851
+ }, z.core.$strict>, z.ZodObject<{
852
+ kind: z.ZodLiteral<"staff">;
853
+ column: z.ZodString;
854
+ }, z.core.$strict>, z.ZodObject<{
855
+ kind: z.ZodLiteral<"listed">;
856
+ table: z.ZodString;
857
+ }, z.core.$strict>]>;
858
+ replyTo: z.ZodOptional<z.ZodObject<{
859
+ staff: z.ZodString;
860
+ }, z.core.$strict>>;
468
861
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
469
862
  }, z.core.$strict>, z.ZodObject<{
470
863
  kind: z.ZodLiteral<"notification">;
471
- to: z.ZodObject<{
864
+ to: z.ZodUnion<readonly [z.ZodObject<{
472
865
  roles: z.ZodArray<z.ZodString>;
473
- }, z.core.$strict>;
866
+ }, z.core.$strict>, z.ZodObject<{
867
+ listed: z.ZodString;
868
+ }, z.core.$strict>, z.ZodObject<{
869
+ column: z.ZodString;
870
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
871
+ else: z.ZodOptional<z.ZodObject<{
872
+ roles: z.ZodArray<z.ZodString>;
873
+ }, z.core.$strict>>;
874
+ }, z.core.$strict>]>;
474
875
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
475
876
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
877
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
476
878
  }, z.core.$strict>, z.ZodObject<{
477
879
  kind: z.ZodLiteral<"record.create">;
478
880
  table: z.ZodString;
479
881
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
480
882
  now: z.ZodLiteral<true>;
883
+ }, z.core.$strict>, z.ZodObject<{
884
+ setting: z.ZodObject<{
885
+ table: z.ZodString;
886
+ column: z.ZodString;
887
+ }, z.core.$strict>;
888
+ else: z.ZodOptional<z.ZodObject<{
889
+ staff: z.ZodString;
890
+ }, z.core.$strict>>;
891
+ }, z.core.$strict>, z.ZodObject<{
892
+ daysAfter: z.ZodObject<{
893
+ column: z.ZodOptional<z.ZodString>;
894
+ now: z.ZodOptional<z.ZodLiteral<true>>;
895
+ days: z.ZodNumber;
896
+ setting: z.ZodOptional<z.ZodObject<{
897
+ table: z.ZodString;
898
+ column: z.ZodString;
899
+ }, z.core.$strict>>;
900
+ at: z.ZodOptional<z.ZodString>;
901
+ }, z.core.$strict>;
481
902
  }, z.core.$strict>]>>;
903
+ name: z.ZodOptional<z.ZodString>;
904
+ }, z.core.$strict>, z.ZodObject<{
905
+ kind: z.ZodLiteral<"digest">;
906
+ templateKey: z.ZodString;
907
+ to: z.ZodObject<{
908
+ roles: z.ZodArray<z.ZodString>;
909
+ }, z.core.$strict>;
910
+ sections: z.ZodArray<z.ZodObject<{
911
+ key: z.ZodString;
912
+ table: z.ZodString;
913
+ owner: z.ZodString;
914
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
915
+ left: z.ZodUnion<readonly [z.ZodObject<{
916
+ field: z.ZodString;
917
+ }, z.core.$strict>, z.ZodObject<{
918
+ count: z.ZodObject<{
919
+ table: z.ZodString;
920
+ matchColumn: z.ZodString;
921
+ equalsField: z.ZodString;
922
+ where: z.ZodOptional<z.ZodObject<{
923
+ left: z.ZodObject<{
924
+ field: z.ZodString;
925
+ }, z.core.$strict>;
926
+ op: z.ZodEnum<{
927
+ is: "is";
928
+ is_not: "is_not";
929
+ contains: "contains";
930
+ gt: "gt";
931
+ lt: "lt";
932
+ is_empty: "is_empty";
933
+ not_empty: "not_empty";
934
+ within_next: "within_next";
935
+ within_last: "within_last";
936
+ more_than_ago: "more_than_ago";
937
+ more_than_ahead: "more_than_ahead";
938
+ }>;
939
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
940
+ amount: z.ZodNumber;
941
+ unit: z.ZodEnum<{
942
+ minutes: "minutes";
943
+ hours: "hours";
944
+ days: "days";
945
+ }>;
946
+ setting: z.ZodOptional<z.ZodObject<{
947
+ table: z.ZodString;
948
+ column: z.ZodString;
949
+ }, z.core.$strict>>;
950
+ }, z.core.$strict>]>>;
951
+ }, z.core.$strict>>;
952
+ }, z.core.$strict>;
953
+ }, z.core.$strict>]>;
954
+ op: z.ZodEnum<{
955
+ is: "is";
956
+ is_not: "is_not";
957
+ contains: "contains";
958
+ gt: "gt";
959
+ lt: "lt";
960
+ is_empty: "is_empty";
961
+ not_empty: "not_empty";
962
+ within_next: "within_next";
963
+ within_last: "within_last";
964
+ more_than_ago: "more_than_ago";
965
+ more_than_ahead: "more_than_ahead";
966
+ }>;
967
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
968
+ amount: z.ZodNumber;
969
+ unit: z.ZodEnum<{
970
+ minutes: "minutes";
971
+ hours: "hours";
972
+ days: "days";
973
+ }>;
974
+ setting: z.ZodOptional<z.ZodObject<{
975
+ table: z.ZodString;
976
+ column: z.ZodString;
977
+ }, z.core.$strict>>;
978
+ }, z.core.$strict>]>>;
979
+ }, z.core.$strict>>>;
980
+ orderBy: z.ZodOptional<z.ZodObject<{
981
+ column: z.ZodString;
982
+ dir: z.ZodOptional<z.ZodEnum<{
983
+ asc: "asc";
984
+ desc: "desc";
985
+ }>>;
986
+ }, z.core.$strict>>;
987
+ limit: z.ZodOptional<z.ZodNumber>;
988
+ reach: z.ZodOptional<z.ZodEnum<{
989
+ own: "own";
990
+ team: "team";
991
+ }>>;
992
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
993
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
994
+ target: z.ZodOptional<z.ZodObject<{
995
+ table: z.ZodString;
996
+ owner: z.ZodString;
997
+ column: z.ZodString;
998
+ year: z.ZodOptional<z.ZodString>;
999
+ of: z.ZodString;
1000
+ }, z.core.$strict>>;
1001
+ }, z.core.$strict>>;
1002
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
482
1003
  }, z.core.$strict>, z.ZodObject<{
483
1004
  kind: z.ZodLiteral<"record.update">;
484
1005
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
485
1006
  now: z.ZodLiteral<true>;
1007
+ }, z.core.$strict>, z.ZodObject<{
1008
+ setting: z.ZodObject<{
1009
+ table: z.ZodString;
1010
+ column: z.ZodString;
1011
+ }, z.core.$strict>;
1012
+ else: z.ZodOptional<z.ZodObject<{
1013
+ staff: z.ZodString;
1014
+ }, z.core.$strict>>;
1015
+ }, z.core.$strict>, z.ZodObject<{
1016
+ daysAfter: z.ZodObject<{
1017
+ column: z.ZodOptional<z.ZodString>;
1018
+ now: z.ZodOptional<z.ZodLiteral<true>>;
1019
+ days: z.ZodNumber;
1020
+ setting: z.ZodOptional<z.ZodObject<{
1021
+ table: z.ZodString;
1022
+ column: z.ZodString;
1023
+ }, z.core.$strict>>;
1024
+ at: z.ZodOptional<z.ZodString>;
1025
+ }, z.core.$strict>;
486
1026
  }, z.core.$strict>]>>;
487
1027
  }, z.core.$strict>, z.ZodObject<{
488
1028
  kind: z.ZodLiteral<"add-on.step">;
@@ -528,6 +1068,10 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
528
1068
  hours: "hours";
529
1069
  days: "days";
530
1070
  }>;
1071
+ setting: z.ZodOptional<z.ZodObject<{
1072
+ table: z.ZodString;
1073
+ column: z.ZodString;
1074
+ }, z.core.$strict>>;
531
1075
  }, z.core.$strict>]>>;
532
1076
  }, z.core.$strict>>;
533
1077
  }, z.core.$strict>;
@@ -552,6 +1096,10 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
552
1096
  hours: "hours";
553
1097
  days: "days";
554
1098
  }>;
1099
+ setting: z.ZodOptional<z.ZodObject<{
1100
+ table: z.ZodString;
1101
+ column: z.ZodString;
1102
+ }, z.core.$strict>>;
555
1103
  }, z.core.$strict>]>>;
556
1104
  }, z.core.$strict>;
557
1105
  id: z.ZodString;
@@ -583,28 +1131,184 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
583
1131
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
584
1132
  kind: z.ZodLiteral<"email">;
585
1133
  templateKey: z.ZodString;
586
- to: z.ZodObject<{
1134
+ to: z.ZodUnion<readonly [z.ZodObject<{
587
1135
  kind: z.ZodLiteral<"field">;
588
1136
  column: z.ZodString;
589
- }, z.core.$strict>;
1137
+ }, z.core.$strict>, z.ZodObject<{
1138
+ kind: z.ZodLiteral<"staff">;
1139
+ column: z.ZodString;
1140
+ }, z.core.$strict>, z.ZodObject<{
1141
+ kind: z.ZodLiteral<"listed">;
1142
+ table: z.ZodString;
1143
+ }, z.core.$strict>]>;
1144
+ replyTo: z.ZodOptional<z.ZodObject<{
1145
+ staff: z.ZodString;
1146
+ }, z.core.$strict>>;
590
1147
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
591
1148
  }, z.core.$strict>, z.ZodObject<{
592
1149
  kind: z.ZodLiteral<"notification">;
593
- to: z.ZodObject<{
1150
+ to: z.ZodUnion<readonly [z.ZodObject<{
594
1151
  roles: z.ZodArray<z.ZodString>;
595
- }, z.core.$strict>;
1152
+ }, z.core.$strict>, z.ZodObject<{
1153
+ listed: z.ZodString;
1154
+ }, z.core.$strict>, z.ZodObject<{
1155
+ column: z.ZodString;
1156
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
1157
+ else: z.ZodOptional<z.ZodObject<{
1158
+ roles: z.ZodArray<z.ZodString>;
1159
+ }, z.core.$strict>>;
1160
+ }, z.core.$strict>]>;
596
1161
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
597
1162
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1163
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
598
1164
  }, z.core.$strict>, z.ZodObject<{
599
1165
  kind: z.ZodLiteral<"record.create">;
600
1166
  table: z.ZodString;
601
1167
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
602
1168
  now: z.ZodLiteral<true>;
1169
+ }, z.core.$strict>, z.ZodObject<{
1170
+ setting: z.ZodObject<{
1171
+ table: z.ZodString;
1172
+ column: z.ZodString;
1173
+ }, z.core.$strict>;
1174
+ else: z.ZodOptional<z.ZodObject<{
1175
+ staff: z.ZodString;
1176
+ }, z.core.$strict>>;
1177
+ }, z.core.$strict>, z.ZodObject<{
1178
+ daysAfter: z.ZodObject<{
1179
+ column: z.ZodOptional<z.ZodString>;
1180
+ now: z.ZodOptional<z.ZodLiteral<true>>;
1181
+ days: z.ZodNumber;
1182
+ setting: z.ZodOptional<z.ZodObject<{
1183
+ table: z.ZodString;
1184
+ column: z.ZodString;
1185
+ }, z.core.$strict>>;
1186
+ at: z.ZodOptional<z.ZodString>;
1187
+ }, z.core.$strict>;
603
1188
  }, z.core.$strict>]>>;
1189
+ name: z.ZodOptional<z.ZodString>;
1190
+ }, z.core.$strict>, z.ZodObject<{
1191
+ kind: z.ZodLiteral<"digest">;
1192
+ templateKey: z.ZodString;
1193
+ to: z.ZodObject<{
1194
+ roles: z.ZodArray<z.ZodString>;
1195
+ }, z.core.$strict>;
1196
+ sections: z.ZodArray<z.ZodObject<{
1197
+ key: z.ZodString;
1198
+ table: z.ZodString;
1199
+ owner: z.ZodString;
1200
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
1201
+ left: z.ZodUnion<readonly [z.ZodObject<{
1202
+ field: z.ZodString;
1203
+ }, z.core.$strict>, z.ZodObject<{
1204
+ count: z.ZodObject<{
1205
+ table: z.ZodString;
1206
+ matchColumn: z.ZodString;
1207
+ equalsField: z.ZodString;
1208
+ where: z.ZodOptional<z.ZodObject<{
1209
+ left: z.ZodObject<{
1210
+ field: z.ZodString;
1211
+ }, z.core.$strict>;
1212
+ op: z.ZodEnum<{
1213
+ is: "is";
1214
+ is_not: "is_not";
1215
+ contains: "contains";
1216
+ gt: "gt";
1217
+ lt: "lt";
1218
+ is_empty: "is_empty";
1219
+ not_empty: "not_empty";
1220
+ within_next: "within_next";
1221
+ within_last: "within_last";
1222
+ more_than_ago: "more_than_ago";
1223
+ more_than_ahead: "more_than_ahead";
1224
+ }>;
1225
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
1226
+ amount: z.ZodNumber;
1227
+ unit: z.ZodEnum<{
1228
+ minutes: "minutes";
1229
+ hours: "hours";
1230
+ days: "days";
1231
+ }>;
1232
+ setting: z.ZodOptional<z.ZodObject<{
1233
+ table: z.ZodString;
1234
+ column: z.ZodString;
1235
+ }, z.core.$strict>>;
1236
+ }, z.core.$strict>]>>;
1237
+ }, z.core.$strict>>;
1238
+ }, z.core.$strict>;
1239
+ }, z.core.$strict>]>;
1240
+ op: z.ZodEnum<{
1241
+ is: "is";
1242
+ is_not: "is_not";
1243
+ contains: "contains";
1244
+ gt: "gt";
1245
+ lt: "lt";
1246
+ is_empty: "is_empty";
1247
+ not_empty: "not_empty";
1248
+ within_next: "within_next";
1249
+ within_last: "within_last";
1250
+ more_than_ago: "more_than_ago";
1251
+ more_than_ahead: "more_than_ahead";
1252
+ }>;
1253
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
1254
+ amount: z.ZodNumber;
1255
+ unit: z.ZodEnum<{
1256
+ minutes: "minutes";
1257
+ hours: "hours";
1258
+ days: "days";
1259
+ }>;
1260
+ setting: z.ZodOptional<z.ZodObject<{
1261
+ table: z.ZodString;
1262
+ column: z.ZodString;
1263
+ }, z.core.$strict>>;
1264
+ }, z.core.$strict>]>>;
1265
+ }, z.core.$strict>>>;
1266
+ orderBy: z.ZodOptional<z.ZodObject<{
1267
+ column: z.ZodString;
1268
+ dir: z.ZodOptional<z.ZodEnum<{
1269
+ asc: "asc";
1270
+ desc: "desc";
1271
+ }>>;
1272
+ }, z.core.$strict>>;
1273
+ limit: z.ZodOptional<z.ZodNumber>;
1274
+ reach: z.ZodOptional<z.ZodEnum<{
1275
+ own: "own";
1276
+ team: "team";
1277
+ }>>;
1278
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
1279
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
1280
+ target: z.ZodOptional<z.ZodObject<{
1281
+ table: z.ZodString;
1282
+ owner: z.ZodString;
1283
+ column: z.ZodString;
1284
+ year: z.ZodOptional<z.ZodString>;
1285
+ of: z.ZodString;
1286
+ }, z.core.$strict>>;
1287
+ }, z.core.$strict>>;
1288
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
604
1289
  }, z.core.$strict>, z.ZodObject<{
605
1290
  kind: z.ZodLiteral<"record.update">;
606
1291
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
607
1292
  now: z.ZodLiteral<true>;
1293
+ }, z.core.$strict>, z.ZodObject<{
1294
+ setting: z.ZodObject<{
1295
+ table: z.ZodString;
1296
+ column: z.ZodString;
1297
+ }, z.core.$strict>;
1298
+ else: z.ZodOptional<z.ZodObject<{
1299
+ staff: z.ZodString;
1300
+ }, z.core.$strict>>;
1301
+ }, z.core.$strict>, z.ZodObject<{
1302
+ daysAfter: z.ZodObject<{
1303
+ column: z.ZodOptional<z.ZodString>;
1304
+ now: z.ZodOptional<z.ZodLiteral<true>>;
1305
+ days: z.ZodNumber;
1306
+ setting: z.ZodOptional<z.ZodObject<{
1307
+ table: z.ZodString;
1308
+ column: z.ZodString;
1309
+ }, z.core.$strict>>;
1310
+ at: z.ZodOptional<z.ZodString>;
1311
+ }, z.core.$strict>;
608
1312
  }, z.core.$strict>]>>;
609
1313
  }, z.core.$strict>, z.ZodObject<{
610
1314
  kind: z.ZodLiteral<"add-on.step">;
@@ -650,6 +1354,10 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
650
1354
  hours: "hours";
651
1355
  days: "days";
652
1356
  }>;
1357
+ setting: z.ZodOptional<z.ZodObject<{
1358
+ table: z.ZodString;
1359
+ column: z.ZodString;
1360
+ }, z.core.$strict>>;
653
1361
  }, z.core.$strict>]>>;
654
1362
  }, z.core.$strict>>;
655
1363
  }, z.core.$strict>;
@@ -674,6 +1382,10 @@ export declare const manifestNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
674
1382
  hours: "hours";
675
1383
  days: "days";
676
1384
  }>;
1385
+ setting: z.ZodOptional<z.ZodObject<{
1386
+ table: z.ZodString;
1387
+ column: z.ZodString;
1388
+ }, z.core.$strict>>;
677
1389
  }, z.core.$strict>]>>;
678
1390
  }, z.core.$strict>;
679
1391
  id: z.ZodString;
@@ -715,28 +1427,184 @@ export declare const manifestGraphSchema: z.ZodObject<{
715
1427
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
716
1428
  kind: z.ZodLiteral<"email">;
717
1429
  templateKey: z.ZodString;
718
- to: z.ZodObject<{
1430
+ to: z.ZodUnion<readonly [z.ZodObject<{
719
1431
  kind: z.ZodLiteral<"field">;
720
1432
  column: z.ZodString;
721
- }, z.core.$strict>;
1433
+ }, z.core.$strict>, z.ZodObject<{
1434
+ kind: z.ZodLiteral<"staff">;
1435
+ column: z.ZodString;
1436
+ }, z.core.$strict>, z.ZodObject<{
1437
+ kind: z.ZodLiteral<"listed">;
1438
+ table: z.ZodString;
1439
+ }, z.core.$strict>]>;
1440
+ replyTo: z.ZodOptional<z.ZodObject<{
1441
+ staff: z.ZodString;
1442
+ }, z.core.$strict>>;
722
1443
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
723
1444
  }, z.core.$strict>, z.ZodObject<{
724
1445
  kind: z.ZodLiteral<"notification">;
725
- to: z.ZodObject<{
1446
+ to: z.ZodUnion<readonly [z.ZodObject<{
726
1447
  roles: z.ZodArray<z.ZodString>;
727
- }, z.core.$strict>;
1448
+ }, z.core.$strict>, z.ZodObject<{
1449
+ listed: z.ZodString;
1450
+ }, z.core.$strict>, z.ZodObject<{
1451
+ column: z.ZodString;
1452
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
1453
+ else: z.ZodOptional<z.ZodObject<{
1454
+ roles: z.ZodArray<z.ZodString>;
1455
+ }, z.core.$strict>>;
1456
+ }, z.core.$strict>]>;
728
1457
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
729
1458
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1459
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
730
1460
  }, z.core.$strict>, z.ZodObject<{
731
1461
  kind: z.ZodLiteral<"record.create">;
732
1462
  table: z.ZodString;
733
1463
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
734
1464
  now: z.ZodLiteral<true>;
1465
+ }, z.core.$strict>, z.ZodObject<{
1466
+ setting: z.ZodObject<{
1467
+ table: z.ZodString;
1468
+ column: z.ZodString;
1469
+ }, z.core.$strict>;
1470
+ else: z.ZodOptional<z.ZodObject<{
1471
+ staff: z.ZodString;
1472
+ }, z.core.$strict>>;
1473
+ }, z.core.$strict>, z.ZodObject<{
1474
+ daysAfter: z.ZodObject<{
1475
+ column: z.ZodOptional<z.ZodString>;
1476
+ now: z.ZodOptional<z.ZodLiteral<true>>;
1477
+ days: z.ZodNumber;
1478
+ setting: z.ZodOptional<z.ZodObject<{
1479
+ table: z.ZodString;
1480
+ column: z.ZodString;
1481
+ }, z.core.$strict>>;
1482
+ at: z.ZodOptional<z.ZodString>;
1483
+ }, z.core.$strict>;
735
1484
  }, z.core.$strict>]>>;
1485
+ name: z.ZodOptional<z.ZodString>;
1486
+ }, z.core.$strict>, z.ZodObject<{
1487
+ kind: z.ZodLiteral<"digest">;
1488
+ templateKey: z.ZodString;
1489
+ to: z.ZodObject<{
1490
+ roles: z.ZodArray<z.ZodString>;
1491
+ }, z.core.$strict>;
1492
+ sections: z.ZodArray<z.ZodObject<{
1493
+ key: z.ZodString;
1494
+ table: z.ZodString;
1495
+ owner: z.ZodString;
1496
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
1497
+ left: z.ZodUnion<readonly [z.ZodObject<{
1498
+ field: z.ZodString;
1499
+ }, z.core.$strict>, z.ZodObject<{
1500
+ count: z.ZodObject<{
1501
+ table: z.ZodString;
1502
+ matchColumn: z.ZodString;
1503
+ equalsField: z.ZodString;
1504
+ where: z.ZodOptional<z.ZodObject<{
1505
+ left: z.ZodObject<{
1506
+ field: z.ZodString;
1507
+ }, z.core.$strict>;
1508
+ op: z.ZodEnum<{
1509
+ is: "is";
1510
+ is_not: "is_not";
1511
+ contains: "contains";
1512
+ gt: "gt";
1513
+ lt: "lt";
1514
+ is_empty: "is_empty";
1515
+ not_empty: "not_empty";
1516
+ within_next: "within_next";
1517
+ within_last: "within_last";
1518
+ more_than_ago: "more_than_ago";
1519
+ more_than_ahead: "more_than_ahead";
1520
+ }>;
1521
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
1522
+ amount: z.ZodNumber;
1523
+ unit: z.ZodEnum<{
1524
+ minutes: "minutes";
1525
+ hours: "hours";
1526
+ days: "days";
1527
+ }>;
1528
+ setting: z.ZodOptional<z.ZodObject<{
1529
+ table: z.ZodString;
1530
+ column: z.ZodString;
1531
+ }, z.core.$strict>>;
1532
+ }, z.core.$strict>]>>;
1533
+ }, z.core.$strict>>;
1534
+ }, z.core.$strict>;
1535
+ }, z.core.$strict>]>;
1536
+ op: z.ZodEnum<{
1537
+ is: "is";
1538
+ is_not: "is_not";
1539
+ contains: "contains";
1540
+ gt: "gt";
1541
+ lt: "lt";
1542
+ is_empty: "is_empty";
1543
+ not_empty: "not_empty";
1544
+ within_next: "within_next";
1545
+ within_last: "within_last";
1546
+ more_than_ago: "more_than_ago";
1547
+ more_than_ahead: "more_than_ahead";
1548
+ }>;
1549
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
1550
+ amount: z.ZodNumber;
1551
+ unit: z.ZodEnum<{
1552
+ minutes: "minutes";
1553
+ hours: "hours";
1554
+ days: "days";
1555
+ }>;
1556
+ setting: z.ZodOptional<z.ZodObject<{
1557
+ table: z.ZodString;
1558
+ column: z.ZodString;
1559
+ }, z.core.$strict>>;
1560
+ }, z.core.$strict>]>>;
1561
+ }, z.core.$strict>>>;
1562
+ orderBy: z.ZodOptional<z.ZodObject<{
1563
+ column: z.ZodString;
1564
+ dir: z.ZodOptional<z.ZodEnum<{
1565
+ asc: "asc";
1566
+ desc: "desc";
1567
+ }>>;
1568
+ }, z.core.$strict>>;
1569
+ limit: z.ZodOptional<z.ZodNumber>;
1570
+ reach: z.ZodOptional<z.ZodEnum<{
1571
+ own: "own";
1572
+ team: "team";
1573
+ }>>;
1574
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
1575
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
1576
+ target: z.ZodOptional<z.ZodObject<{
1577
+ table: z.ZodString;
1578
+ owner: z.ZodString;
1579
+ column: z.ZodString;
1580
+ year: z.ZodOptional<z.ZodString>;
1581
+ of: z.ZodString;
1582
+ }, z.core.$strict>>;
1583
+ }, z.core.$strict>>;
1584
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
736
1585
  }, z.core.$strict>, z.ZodObject<{
737
1586
  kind: z.ZodLiteral<"record.update">;
738
1587
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
739
1588
  now: z.ZodLiteral<true>;
1589
+ }, z.core.$strict>, z.ZodObject<{
1590
+ setting: z.ZodObject<{
1591
+ table: z.ZodString;
1592
+ column: z.ZodString;
1593
+ }, z.core.$strict>;
1594
+ else: z.ZodOptional<z.ZodObject<{
1595
+ staff: z.ZodString;
1596
+ }, z.core.$strict>>;
1597
+ }, z.core.$strict>, z.ZodObject<{
1598
+ daysAfter: z.ZodObject<{
1599
+ column: z.ZodOptional<z.ZodString>;
1600
+ now: z.ZodOptional<z.ZodLiteral<true>>;
1601
+ days: z.ZodNumber;
1602
+ setting: z.ZodOptional<z.ZodObject<{
1603
+ table: z.ZodString;
1604
+ column: z.ZodString;
1605
+ }, z.core.$strict>>;
1606
+ at: z.ZodOptional<z.ZodString>;
1607
+ }, z.core.$strict>;
740
1608
  }, z.core.$strict>]>>;
741
1609
  }, z.core.$strict>, z.ZodObject<{
742
1610
  kind: z.ZodLiteral<"add-on.step">;
@@ -782,6 +1650,10 @@ export declare const manifestGraphSchema: z.ZodObject<{
782
1650
  hours: "hours";
783
1651
  days: "days";
784
1652
  }>;
1653
+ setting: z.ZodOptional<z.ZodObject<{
1654
+ table: z.ZodString;
1655
+ column: z.ZodString;
1656
+ }, z.core.$strict>>;
785
1657
  }, z.core.$strict>]>>;
786
1658
  }, z.core.$strict>>;
787
1659
  }, z.core.$strict>;
@@ -806,6 +1678,10 @@ export declare const manifestGraphSchema: z.ZodObject<{
806
1678
  hours: "hours";
807
1679
  days: "days";
808
1680
  }>;
1681
+ setting: z.ZodOptional<z.ZodObject<{
1682
+ table: z.ZodString;
1683
+ column: z.ZodString;
1684
+ }, z.core.$strict>>;
809
1685
  }, z.core.$strict>]>>;
810
1686
  }, z.core.$strict>;
811
1687
  id: z.ZodString;
@@ -861,6 +1737,10 @@ export declare const manifestGraphSchema: z.ZodObject<{
861
1737
  hours: "hours";
862
1738
  days: "days";
863
1739
  }>;
1740
+ setting: z.ZodOptional<z.ZodObject<{
1741
+ table: z.ZodString;
1742
+ column: z.ZodString;
1743
+ }, z.core.$strict>>;
864
1744
  }, z.core.$strict>]>>;
865
1745
  }, z.core.$strict>>;
866
1746
  }, z.core.$strict>;
@@ -885,6 +1765,10 @@ export declare const manifestGraphSchema: z.ZodObject<{
885
1765
  hours: "hours";
886
1766
  days: "days";
887
1767
  }>;
1768
+ setting: z.ZodOptional<z.ZodObject<{
1769
+ table: z.ZodString;
1770
+ column: z.ZodString;
1771
+ }, z.core.$strict>>;
888
1772
  }, z.core.$strict>]>>;
889
1773
  }, z.core.$strict>;
890
1774
  branches: z.ZodTuple<[z.ZodObject<{
@@ -896,28 +1780,181 @@ export declare const manifestGraphSchema: z.ZodObject<{
896
1780
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
897
1781
  kind: z.ZodLiteral<"email">;
898
1782
  templateKey: z.ZodString;
899
- to: z.ZodObject<{
1783
+ to: z.ZodUnion<readonly [z.ZodObject<{
900
1784
  kind: z.ZodLiteral<"field">;
901
1785
  column: z.ZodString;
902
- }, z.core.$strict>;
1786
+ }, z.core.$strict>, z.ZodObject<{
1787
+ kind: z.ZodLiteral<"staff">;
1788
+ column: z.ZodString;
1789
+ }, z.core.$strict>, z.ZodObject<{
1790
+ kind: z.ZodLiteral<"listed">;
1791
+ table: z.ZodString;
1792
+ }, z.core.$strict>]>;
1793
+ replyTo: z.ZodOptional<z.ZodObject<{
1794
+ staff: z.ZodString;
1795
+ }, z.core.$strict>>;
903
1796
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
904
1797
  }, z.core.$strict>, z.ZodObject<{
905
1798
  kind: z.ZodLiteral<"notification">;
906
- to: z.ZodObject<{
1799
+ to: z.ZodUnion<readonly [z.ZodObject<{
907
1800
  roles: z.ZodArray<z.ZodString>;
908
- }, z.core.$strict>;
1801
+ }, z.core.$strict>, z.ZodObject<{
1802
+ listed: z.ZodString;
1803
+ }, z.core.$strict>, z.ZodObject<{
1804
+ column: z.ZodString;
1805
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
1806
+ else: z.ZodOptional<z.ZodObject<{
1807
+ roles: z.ZodArray<z.ZodString>;
1808
+ }, z.core.$strict>>;
1809
+ }, z.core.$strict>]>;
909
1810
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
910
1811
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1812
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
911
1813
  }, z.core.$strict>, z.ZodObject<{
912
1814
  kind: z.ZodLiteral<"record.create">;
913
1815
  table: z.ZodString;
914
1816
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
915
1817
  now: z.ZodLiteral<true>;
1818
+ }, z.core.$strict>, z.ZodObject<{
1819
+ setting: z.ZodObject<{
1820
+ table: z.ZodString;
1821
+ column: z.ZodString;
1822
+ }, z.core.$strict>;
1823
+ else: z.ZodOptional<z.ZodObject<{
1824
+ staff: z.ZodString;
1825
+ }, z.core.$strict>>;
1826
+ }, z.core.$strict>, z.ZodObject<{
1827
+ daysAfter: z.ZodObject<{
1828
+ column: z.ZodOptional<z.ZodString>;
1829
+ now: z.ZodOptional<z.ZodLiteral<true>>;
1830
+ days: z.ZodNumber;
1831
+ setting: z.ZodOptional<z.ZodObject<{
1832
+ table: z.ZodString;
1833
+ column: z.ZodString;
1834
+ }, z.core.$strict>>;
1835
+ at: z.ZodOptional<z.ZodString>;
1836
+ }, z.core.$strict>;
916
1837
  }, z.core.$strict>]>>;
1838
+ name: z.ZodOptional<z.ZodString>;
1839
+ }, z.core.$strict>, z.ZodObject<{
1840
+ kind: z.ZodLiteral<"digest">;
1841
+ templateKey: z.ZodString;
1842
+ to: z.ZodObject<{
1843
+ roles: z.ZodArray<z.ZodString>;
1844
+ }, z.core.$strict>;
1845
+ sections: z.ZodArray<z.ZodObject<{
1846
+ key: z.ZodString;
1847
+ table: z.ZodString;
1848
+ owner: z.ZodString;
1849
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
1850
+ left: z.ZodUnion<readonly [z.ZodObject<{
1851
+ field: z.ZodString;
1852
+ }, z.core.$strict>, z.ZodObject<{
1853
+ count: z.ZodObject<{
1854
+ table: z.ZodString;
1855
+ matchColumn: z.ZodString;
1856
+ equalsField: z.ZodString;
1857
+ where: z.ZodOptional<z.ZodObject<{
1858
+ left: z.ZodObject<{
1859
+ field: z.ZodString;
1860
+ }, z.core.$strict>;
1861
+ op: z.ZodEnum<{
1862
+ is: "is";
1863
+ is_not: "is_not";
1864
+ contains: "contains";
1865
+ gt: "gt";
1866
+ lt: "lt";
1867
+ is_empty: "is_empty";
1868
+ not_empty: "not_empty";
1869
+ within_next: "within_next";
1870
+ within_last: "within_last";
1871
+ more_than_ago: "more_than_ago";
1872
+ more_than_ahead: "more_than_ahead";
1873
+ }>;
1874
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
1875
+ amount: z.ZodNumber;
1876
+ unit: z.ZodEnum<{
1877
+ minutes: "minutes";
1878
+ hours: "hours";
1879
+ days: "days";
1880
+ }>;
1881
+ setting: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strict>>;
1882
+ }, z.core.$strict>]>>;
1883
+ }, z.core.$strict>>;
1884
+ }, z.core.$strict>;
1885
+ }, z.core.$strict>]>;
1886
+ op: z.ZodEnum<{
1887
+ is: "is";
1888
+ is_not: "is_not";
1889
+ contains: "contains";
1890
+ gt: "gt";
1891
+ lt: "lt";
1892
+ is_empty: "is_empty";
1893
+ not_empty: "not_empty";
1894
+ within_next: "within_next";
1895
+ within_last: "within_last";
1896
+ more_than_ago: "more_than_ago";
1897
+ more_than_ahead: "more_than_ahead";
1898
+ }>;
1899
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
1900
+ amount: z.ZodNumber;
1901
+ unit: z.ZodEnum<{
1902
+ minutes: "minutes";
1903
+ hours: "hours";
1904
+ days: "days";
1905
+ }>;
1906
+ setting: z.ZodOptional<z.ZodObject<{
1907
+ table: z.ZodString;
1908
+ column: z.ZodString;
1909
+ }, z.core.$strict>>;
1910
+ }, z.core.$strict>]>>;
1911
+ }, z.core.$strict>>>;
1912
+ orderBy: z.ZodOptional<z.ZodObject<{
1913
+ column: z.ZodString;
1914
+ dir: z.ZodOptional<z.ZodEnum<{
1915
+ asc: "asc";
1916
+ desc: "desc";
1917
+ }>>;
1918
+ }, z.core.$strict>>;
1919
+ limit: z.ZodOptional<z.ZodNumber>;
1920
+ reach: z.ZodOptional<z.ZodEnum<{
1921
+ own: "own";
1922
+ team: "team";
1923
+ }>>;
1924
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
1925
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
1926
+ target: z.ZodOptional<z.ZodObject<{
1927
+ table: z.ZodString;
1928
+ owner: z.ZodString;
1929
+ column: z.ZodString;
1930
+ year: z.ZodOptional<z.ZodString>;
1931
+ of: z.ZodString;
1932
+ }, z.core.$strict>>;
1933
+ }, z.core.$strict>>;
1934
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
917
1935
  }, z.core.$strict>, z.ZodObject<{
918
1936
  kind: z.ZodLiteral<"record.update">;
919
1937
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
920
1938
  now: z.ZodLiteral<true>;
1939
+ }, z.core.$strict>, z.ZodObject<{
1940
+ setting: z.ZodObject<{
1941
+ table: z.ZodString;
1942
+ column: z.ZodString;
1943
+ }, z.core.$strict>;
1944
+ else: z.ZodOptional<z.ZodObject<{
1945
+ staff: z.ZodString;
1946
+ }, z.core.$strict>>;
1947
+ }, z.core.$strict>, z.ZodObject<{
1948
+ daysAfter: z.ZodObject<{
1949
+ column: z.ZodOptional<z.ZodString>;
1950
+ now: z.ZodOptional<z.ZodLiteral<true>>;
1951
+ days: z.ZodNumber;
1952
+ setting: z.ZodOptional<z.ZodObject<{
1953
+ table: z.ZodString;
1954
+ column: z.ZodString;
1955
+ }, z.core.$strict>>;
1956
+ at: z.ZodOptional<z.ZodString>;
1957
+ }, z.core.$strict>;
921
1958
  }, z.core.$strict>]>>;
922
1959
  }, z.core.$strict>, z.ZodObject<{
923
1960
  kind: z.ZodLiteral<"add-on.step">;
@@ -963,6 +2000,10 @@ export declare const manifestGraphSchema: z.ZodObject<{
963
2000
  hours: "hours";
964
2001
  days: "days";
965
2002
  }>;
2003
+ setting: z.ZodOptional<z.ZodObject<{
2004
+ table: z.ZodString;
2005
+ column: z.ZodString;
2006
+ }, z.core.$strict>>;
966
2007
  }, z.core.$strict>]>>;
967
2008
  }, z.core.$strict>>;
968
2009
  }, z.core.$strict>;
@@ -987,6 +2028,10 @@ export declare const manifestGraphSchema: z.ZodObject<{
987
2028
  hours: "hours";
988
2029
  days: "days";
989
2030
  }>;
2031
+ setting: z.ZodOptional<z.ZodObject<{
2032
+ table: z.ZodString;
2033
+ column: z.ZodString;
2034
+ }, z.core.$strict>>;
990
2035
  }, z.core.$strict>]>>;
991
2036
  }, z.core.$strict>;
992
2037
  id: z.ZodString;
@@ -1018,28 +2063,181 @@ export declare const manifestGraphSchema: z.ZodObject<{
1018
2063
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1019
2064
  kind: z.ZodLiteral<"email">;
1020
2065
  templateKey: z.ZodString;
1021
- to: z.ZodObject<{
2066
+ to: z.ZodUnion<readonly [z.ZodObject<{
1022
2067
  kind: z.ZodLiteral<"field">;
1023
2068
  column: z.ZodString;
1024
- }, z.core.$strict>;
2069
+ }, z.core.$strict>, z.ZodObject<{
2070
+ kind: z.ZodLiteral<"staff">;
2071
+ column: z.ZodString;
2072
+ }, z.core.$strict>, z.ZodObject<{
2073
+ kind: z.ZodLiteral<"listed">;
2074
+ table: z.ZodString;
2075
+ }, z.core.$strict>]>;
2076
+ replyTo: z.ZodOptional<z.ZodObject<{
2077
+ staff: z.ZodString;
2078
+ }, z.core.$strict>>;
1025
2079
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1026
2080
  }, z.core.$strict>, z.ZodObject<{
1027
2081
  kind: z.ZodLiteral<"notification">;
1028
- to: z.ZodObject<{
2082
+ to: z.ZodUnion<readonly [z.ZodObject<{
1029
2083
  roles: z.ZodArray<z.ZodString>;
1030
- }, z.core.$strict>;
2084
+ }, z.core.$strict>, z.ZodObject<{
2085
+ listed: z.ZodString;
2086
+ }, z.core.$strict>, z.ZodObject<{
2087
+ column: z.ZodString;
2088
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
2089
+ else: z.ZodOptional<z.ZodObject<{
2090
+ roles: z.ZodArray<z.ZodString>;
2091
+ }, z.core.$strict>>;
2092
+ }, z.core.$strict>]>;
1031
2093
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
1032
2094
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2095
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
1033
2096
  }, z.core.$strict>, z.ZodObject<{
1034
2097
  kind: z.ZodLiteral<"record.create">;
1035
2098
  table: z.ZodString;
1036
2099
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1037
2100
  now: z.ZodLiteral<true>;
2101
+ }, z.core.$strict>, z.ZodObject<{
2102
+ setting: z.ZodObject<{
2103
+ table: z.ZodString;
2104
+ column: z.ZodString;
2105
+ }, z.core.$strict>;
2106
+ else: z.ZodOptional<z.ZodObject<{
2107
+ staff: z.ZodString;
2108
+ }, z.core.$strict>>;
2109
+ }, z.core.$strict>, z.ZodObject<{
2110
+ daysAfter: z.ZodObject<{
2111
+ column: z.ZodOptional<z.ZodString>;
2112
+ now: z.ZodOptional<z.ZodLiteral<true>>;
2113
+ days: z.ZodNumber;
2114
+ setting: z.ZodOptional<z.ZodObject<{
2115
+ table: z.ZodString;
2116
+ column: z.ZodString;
2117
+ }, z.core.$strict>>;
2118
+ at: z.ZodOptional<z.ZodString>;
2119
+ }, z.core.$strict>;
1038
2120
  }, z.core.$strict>]>>;
2121
+ name: z.ZodOptional<z.ZodString>;
2122
+ }, z.core.$strict>, z.ZodObject<{
2123
+ kind: z.ZodLiteral<"digest">;
2124
+ templateKey: z.ZodString;
2125
+ to: z.ZodObject<{
2126
+ roles: z.ZodArray<z.ZodString>;
2127
+ }, z.core.$strict>;
2128
+ sections: z.ZodArray<z.ZodObject<{
2129
+ key: z.ZodString;
2130
+ table: z.ZodString;
2131
+ owner: z.ZodString;
2132
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
2133
+ left: z.ZodUnion<readonly [z.ZodObject<{
2134
+ field: z.ZodString;
2135
+ }, z.core.$strict>, z.ZodObject<{
2136
+ count: z.ZodObject<{
2137
+ table: z.ZodString;
2138
+ matchColumn: z.ZodString;
2139
+ equalsField: z.ZodString;
2140
+ where: z.ZodOptional<z.ZodObject<{
2141
+ left: z.ZodObject<{
2142
+ field: z.ZodString;
2143
+ }, z.core.$strict>;
2144
+ op: z.ZodEnum<{
2145
+ is: "is";
2146
+ is_not: "is_not";
2147
+ contains: "contains";
2148
+ gt: "gt";
2149
+ lt: "lt";
2150
+ is_empty: "is_empty";
2151
+ not_empty: "not_empty";
2152
+ within_next: "within_next";
2153
+ within_last: "within_last";
2154
+ more_than_ago: "more_than_ago";
2155
+ more_than_ahead: "more_than_ahead";
2156
+ }>;
2157
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
2158
+ amount: z.ZodNumber;
2159
+ unit: z.ZodEnum<{
2160
+ minutes: "minutes";
2161
+ hours: "hours";
2162
+ days: "days";
2163
+ }>;
2164
+ setting: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strict>>;
2165
+ }, z.core.$strict>]>>;
2166
+ }, z.core.$strict>>;
2167
+ }, z.core.$strict>;
2168
+ }, z.core.$strict>]>;
2169
+ op: z.ZodEnum<{
2170
+ is: "is";
2171
+ is_not: "is_not";
2172
+ contains: "contains";
2173
+ gt: "gt";
2174
+ lt: "lt";
2175
+ is_empty: "is_empty";
2176
+ not_empty: "not_empty";
2177
+ within_next: "within_next";
2178
+ within_last: "within_last";
2179
+ more_than_ago: "more_than_ago";
2180
+ more_than_ahead: "more_than_ahead";
2181
+ }>;
2182
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
2183
+ amount: z.ZodNumber;
2184
+ unit: z.ZodEnum<{
2185
+ minutes: "minutes";
2186
+ hours: "hours";
2187
+ days: "days";
2188
+ }>;
2189
+ setting: z.ZodOptional<z.ZodObject<{
2190
+ table: z.ZodString;
2191
+ column: z.ZodString;
2192
+ }, z.core.$strict>>;
2193
+ }, z.core.$strict>]>>;
2194
+ }, z.core.$strict>>>;
2195
+ orderBy: z.ZodOptional<z.ZodObject<{
2196
+ column: z.ZodString;
2197
+ dir: z.ZodOptional<z.ZodEnum<{
2198
+ asc: "asc";
2199
+ desc: "desc";
2200
+ }>>;
2201
+ }, z.core.$strict>>;
2202
+ limit: z.ZodOptional<z.ZodNumber>;
2203
+ reach: z.ZodOptional<z.ZodEnum<{
2204
+ own: "own";
2205
+ team: "team";
2206
+ }>>;
2207
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
2208
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
2209
+ target: z.ZodOptional<z.ZodObject<{
2210
+ table: z.ZodString;
2211
+ owner: z.ZodString;
2212
+ column: z.ZodString;
2213
+ year: z.ZodOptional<z.ZodString>;
2214
+ of: z.ZodString;
2215
+ }, z.core.$strict>>;
2216
+ }, z.core.$strict>>;
2217
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
1039
2218
  }, z.core.$strict>, z.ZodObject<{
1040
2219
  kind: z.ZodLiteral<"record.update">;
1041
2220
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1042
2221
  now: z.ZodLiteral<true>;
2222
+ }, z.core.$strict>, z.ZodObject<{
2223
+ setting: z.ZodObject<{
2224
+ table: z.ZodString;
2225
+ column: z.ZodString;
2226
+ }, z.core.$strict>;
2227
+ else: z.ZodOptional<z.ZodObject<{
2228
+ staff: z.ZodString;
2229
+ }, z.core.$strict>>;
2230
+ }, z.core.$strict>, z.ZodObject<{
2231
+ daysAfter: z.ZodObject<{
2232
+ column: z.ZodOptional<z.ZodString>;
2233
+ now: z.ZodOptional<z.ZodLiteral<true>>;
2234
+ days: z.ZodNumber;
2235
+ setting: z.ZodOptional<z.ZodObject<{
2236
+ table: z.ZodString;
2237
+ column: z.ZodString;
2238
+ }, z.core.$strict>>;
2239
+ at: z.ZodOptional<z.ZodString>;
2240
+ }, z.core.$strict>;
1043
2241
  }, z.core.$strict>]>>;
1044
2242
  }, z.core.$strict>, z.ZodObject<{
1045
2243
  kind: z.ZodLiteral<"add-on.step">;
@@ -1085,6 +2283,10 @@ export declare const manifestGraphSchema: z.ZodObject<{
1085
2283
  hours: "hours";
1086
2284
  days: "days";
1087
2285
  }>;
2286
+ setting: z.ZodOptional<z.ZodObject<{
2287
+ table: z.ZodString;
2288
+ column: z.ZodString;
2289
+ }, z.core.$strict>>;
1088
2290
  }, z.core.$strict>]>>;
1089
2291
  }, z.core.$strict>>;
1090
2292
  }, z.core.$strict>;
@@ -1109,6 +2311,10 @@ export declare const manifestGraphSchema: z.ZodObject<{
1109
2311
  hours: "hours";
1110
2312
  days: "days";
1111
2313
  }>;
2314
+ setting: z.ZodOptional<z.ZodObject<{
2315
+ table: z.ZodString;
2316
+ column: z.ZodString;
2317
+ }, z.core.$strict>>;
1112
2318
  }, z.core.$strict>]>>;
1113
2319
  }, z.core.$strict>;
1114
2320
  id: z.ZodString;
@@ -1183,6 +2389,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1183
2389
  hours: "hours";
1184
2390
  days: "days";
1185
2391
  }>;
2392
+ setting: z.ZodOptional<z.ZodObject<{
2393
+ table: z.ZodString;
2394
+ column: z.ZodString;
2395
+ }, z.core.$strict>>;
1186
2396
  }, z.core.$strict>]>>;
1187
2397
  }, z.core.$strict>>;
1188
2398
  }, z.core.$strict>;
@@ -1207,6 +2417,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1207
2417
  hours: "hours";
1208
2418
  days: "days";
1209
2419
  }>;
2420
+ setting: z.ZodOptional<z.ZodObject<{
2421
+ table: z.ZodString;
2422
+ column: z.ZodString;
2423
+ }, z.core.$strict>>;
1210
2424
  }, z.core.$strict>]>>;
1211
2425
  }, z.core.$strict>>>;
1212
2426
  }, z.core.$strict>, z.ZodObject<{
@@ -1264,6 +2478,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1264
2478
  hours: "hours";
1265
2479
  days: "days";
1266
2480
  }>;
2481
+ setting: z.ZodOptional<z.ZodObject<{
2482
+ table: z.ZodString;
2483
+ column: z.ZodString;
2484
+ }, z.core.$strict>>;
1267
2485
  }, z.core.$strict>]>>;
1268
2486
  }, z.core.$strict>>;
1269
2487
  }, z.core.$strict>;
@@ -1288,9 +2506,13 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1288
2506
  hours: "hours";
1289
2507
  days: "days";
1290
2508
  }>;
2509
+ setting: z.ZodOptional<z.ZodObject<{
2510
+ table: z.ZodString;
2511
+ column: z.ZodString;
2512
+ }, z.core.$strict>>;
1291
2513
  }, z.core.$strict>]>>;
1292
2514
  }, z.core.$strict>>;
1293
- once: z.ZodBoolean;
2515
+ once: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"per-spell">]>;
1294
2516
  }, z.core.$strict>>;
1295
2517
  }, z.core.$strict>], "kind">;
1296
2518
  graph: z.ZodObject<{
@@ -1306,28 +2528,184 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1306
2528
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1307
2529
  kind: z.ZodLiteral<"email">;
1308
2530
  templateKey: z.ZodString;
1309
- to: z.ZodObject<{
2531
+ to: z.ZodUnion<readonly [z.ZodObject<{
1310
2532
  kind: z.ZodLiteral<"field">;
1311
2533
  column: z.ZodString;
1312
- }, z.core.$strict>;
2534
+ }, z.core.$strict>, z.ZodObject<{
2535
+ kind: z.ZodLiteral<"staff">;
2536
+ column: z.ZodString;
2537
+ }, z.core.$strict>, z.ZodObject<{
2538
+ kind: z.ZodLiteral<"listed">;
2539
+ table: z.ZodString;
2540
+ }, z.core.$strict>]>;
2541
+ replyTo: z.ZodOptional<z.ZodObject<{
2542
+ staff: z.ZodString;
2543
+ }, z.core.$strict>>;
1313
2544
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1314
2545
  }, z.core.$strict>, z.ZodObject<{
1315
2546
  kind: z.ZodLiteral<"notification">;
1316
- to: z.ZodObject<{
2547
+ to: z.ZodUnion<readonly [z.ZodObject<{
1317
2548
  roles: z.ZodArray<z.ZodString>;
1318
- }, z.core.$strict>;
2549
+ }, z.core.$strict>, z.ZodObject<{
2550
+ listed: z.ZodString;
2551
+ }, z.core.$strict>, z.ZodObject<{
2552
+ column: z.ZodString;
2553
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
2554
+ else: z.ZodOptional<z.ZodObject<{
2555
+ roles: z.ZodArray<z.ZodString>;
2556
+ }, z.core.$strict>>;
2557
+ }, z.core.$strict>]>;
1319
2558
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
1320
2559
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2560
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
1321
2561
  }, z.core.$strict>, z.ZodObject<{
1322
2562
  kind: z.ZodLiteral<"record.create">;
1323
2563
  table: z.ZodString;
1324
2564
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1325
2565
  now: z.ZodLiteral<true>;
2566
+ }, z.core.$strict>, z.ZodObject<{
2567
+ setting: z.ZodObject<{
2568
+ table: z.ZodString;
2569
+ column: z.ZodString;
2570
+ }, z.core.$strict>;
2571
+ else: z.ZodOptional<z.ZodObject<{
2572
+ staff: z.ZodString;
2573
+ }, z.core.$strict>>;
2574
+ }, z.core.$strict>, z.ZodObject<{
2575
+ daysAfter: z.ZodObject<{
2576
+ column: z.ZodOptional<z.ZodString>;
2577
+ now: z.ZodOptional<z.ZodLiteral<true>>;
2578
+ days: z.ZodNumber;
2579
+ setting: z.ZodOptional<z.ZodObject<{
2580
+ table: z.ZodString;
2581
+ column: z.ZodString;
2582
+ }, z.core.$strict>>;
2583
+ at: z.ZodOptional<z.ZodString>;
2584
+ }, z.core.$strict>;
1326
2585
  }, z.core.$strict>]>>;
2586
+ name: z.ZodOptional<z.ZodString>;
2587
+ }, z.core.$strict>, z.ZodObject<{
2588
+ kind: z.ZodLiteral<"digest">;
2589
+ templateKey: z.ZodString;
2590
+ to: z.ZodObject<{
2591
+ roles: z.ZodArray<z.ZodString>;
2592
+ }, z.core.$strict>;
2593
+ sections: z.ZodArray<z.ZodObject<{
2594
+ key: z.ZodString;
2595
+ table: z.ZodString;
2596
+ owner: z.ZodString;
2597
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
2598
+ left: z.ZodUnion<readonly [z.ZodObject<{
2599
+ field: z.ZodString;
2600
+ }, z.core.$strict>, z.ZodObject<{
2601
+ count: z.ZodObject<{
2602
+ table: z.ZodString;
2603
+ matchColumn: z.ZodString;
2604
+ equalsField: z.ZodString;
2605
+ where: z.ZodOptional<z.ZodObject<{
2606
+ left: z.ZodObject<{
2607
+ field: z.ZodString;
2608
+ }, z.core.$strict>;
2609
+ op: z.ZodEnum<{
2610
+ is: "is";
2611
+ is_not: "is_not";
2612
+ contains: "contains";
2613
+ gt: "gt";
2614
+ lt: "lt";
2615
+ is_empty: "is_empty";
2616
+ not_empty: "not_empty";
2617
+ within_next: "within_next";
2618
+ within_last: "within_last";
2619
+ more_than_ago: "more_than_ago";
2620
+ more_than_ahead: "more_than_ahead";
2621
+ }>;
2622
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
2623
+ amount: z.ZodNumber;
2624
+ unit: z.ZodEnum<{
2625
+ minutes: "minutes";
2626
+ hours: "hours";
2627
+ days: "days";
2628
+ }>;
2629
+ setting: z.ZodOptional<z.ZodObject<{
2630
+ table: z.ZodString;
2631
+ column: z.ZodString;
2632
+ }, z.core.$strict>>;
2633
+ }, z.core.$strict>]>>;
2634
+ }, z.core.$strict>>;
2635
+ }, z.core.$strict>;
2636
+ }, z.core.$strict>]>;
2637
+ op: z.ZodEnum<{
2638
+ is: "is";
2639
+ is_not: "is_not";
2640
+ contains: "contains";
2641
+ gt: "gt";
2642
+ lt: "lt";
2643
+ is_empty: "is_empty";
2644
+ not_empty: "not_empty";
2645
+ within_next: "within_next";
2646
+ within_last: "within_last";
2647
+ more_than_ago: "more_than_ago";
2648
+ more_than_ahead: "more_than_ahead";
2649
+ }>;
2650
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
2651
+ amount: z.ZodNumber;
2652
+ unit: z.ZodEnum<{
2653
+ minutes: "minutes";
2654
+ hours: "hours";
2655
+ days: "days";
2656
+ }>;
2657
+ setting: z.ZodOptional<z.ZodObject<{
2658
+ table: z.ZodString;
2659
+ column: z.ZodString;
2660
+ }, z.core.$strict>>;
2661
+ }, z.core.$strict>]>>;
2662
+ }, z.core.$strict>>>;
2663
+ orderBy: z.ZodOptional<z.ZodObject<{
2664
+ column: z.ZodString;
2665
+ dir: z.ZodOptional<z.ZodEnum<{
2666
+ asc: "asc";
2667
+ desc: "desc";
2668
+ }>>;
2669
+ }, z.core.$strict>>;
2670
+ limit: z.ZodOptional<z.ZodNumber>;
2671
+ reach: z.ZodOptional<z.ZodEnum<{
2672
+ own: "own";
2673
+ team: "team";
2674
+ }>>;
2675
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
2676
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
2677
+ target: z.ZodOptional<z.ZodObject<{
2678
+ table: z.ZodString;
2679
+ owner: z.ZodString;
2680
+ column: z.ZodString;
2681
+ year: z.ZodOptional<z.ZodString>;
2682
+ of: z.ZodString;
2683
+ }, z.core.$strict>>;
2684
+ }, z.core.$strict>>;
2685
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
1327
2686
  }, z.core.$strict>, z.ZodObject<{
1328
2687
  kind: z.ZodLiteral<"record.update">;
1329
2688
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1330
2689
  now: z.ZodLiteral<true>;
2690
+ }, z.core.$strict>, z.ZodObject<{
2691
+ setting: z.ZodObject<{
2692
+ table: z.ZodString;
2693
+ column: z.ZodString;
2694
+ }, z.core.$strict>;
2695
+ else: z.ZodOptional<z.ZodObject<{
2696
+ staff: z.ZodString;
2697
+ }, z.core.$strict>>;
2698
+ }, z.core.$strict>, z.ZodObject<{
2699
+ daysAfter: z.ZodObject<{
2700
+ column: z.ZodOptional<z.ZodString>;
2701
+ now: z.ZodOptional<z.ZodLiteral<true>>;
2702
+ days: z.ZodNumber;
2703
+ setting: z.ZodOptional<z.ZodObject<{
2704
+ table: z.ZodString;
2705
+ column: z.ZodString;
2706
+ }, z.core.$strict>>;
2707
+ at: z.ZodOptional<z.ZodString>;
2708
+ }, z.core.$strict>;
1331
2709
  }, z.core.$strict>]>>;
1332
2710
  }, z.core.$strict>, z.ZodObject<{
1333
2711
  kind: z.ZodLiteral<"add-on.step">;
@@ -1373,6 +2751,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1373
2751
  hours: "hours";
1374
2752
  days: "days";
1375
2753
  }>;
2754
+ setting: z.ZodOptional<z.ZodObject<{
2755
+ table: z.ZodString;
2756
+ column: z.ZodString;
2757
+ }, z.core.$strict>>;
1376
2758
  }, z.core.$strict>]>>;
1377
2759
  }, z.core.$strict>>;
1378
2760
  }, z.core.$strict>;
@@ -1397,6 +2779,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1397
2779
  hours: "hours";
1398
2780
  days: "days";
1399
2781
  }>;
2782
+ setting: z.ZodOptional<z.ZodObject<{
2783
+ table: z.ZodString;
2784
+ column: z.ZodString;
2785
+ }, z.core.$strict>>;
1400
2786
  }, z.core.$strict>]>>;
1401
2787
  }, z.core.$strict>;
1402
2788
  id: z.ZodString;
@@ -1452,6 +2838,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1452
2838
  hours: "hours";
1453
2839
  days: "days";
1454
2840
  }>;
2841
+ setting: z.ZodOptional<z.ZodObject<{
2842
+ table: z.ZodString;
2843
+ column: z.ZodString;
2844
+ }, z.core.$strict>>;
1455
2845
  }, z.core.$strict>]>>;
1456
2846
  }, z.core.$strict>>;
1457
2847
  }, z.core.$strict>;
@@ -1476,6 +2866,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1476
2866
  hours: "hours";
1477
2867
  days: "days";
1478
2868
  }>;
2869
+ setting: z.ZodOptional<z.ZodObject<{
2870
+ table: z.ZodString;
2871
+ column: z.ZodString;
2872
+ }, z.core.$strict>>;
1479
2873
  }, z.core.$strict>]>>;
1480
2874
  }, z.core.$strict>;
1481
2875
  branches: z.ZodTuple<[z.ZodObject<{
@@ -1487,28 +2881,171 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1487
2881
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1488
2882
  kind: z.ZodLiteral<"email">;
1489
2883
  templateKey: z.ZodString;
1490
- to: z.ZodObject<{
2884
+ to: z.ZodUnion<readonly [z.ZodObject<{
1491
2885
  kind: z.ZodLiteral<"field">;
1492
2886
  column: z.ZodString;
1493
- }, z.core.$strict>;
2887
+ }, z.core.$strict>, z.ZodObject<{
2888
+ kind: z.ZodLiteral<"staff">;
2889
+ column: z.ZodString;
2890
+ }, z.core.$strict>, z.ZodObject<{
2891
+ kind: z.ZodLiteral<"listed">;
2892
+ table: z.ZodString;
2893
+ }, z.core.$strict>]>;
2894
+ replyTo: z.ZodOptional<z.ZodObject<{
2895
+ staff: z.ZodString;
2896
+ }, z.core.$strict>>;
1494
2897
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1495
2898
  }, z.core.$strict>, z.ZodObject<{
1496
2899
  kind: z.ZodLiteral<"notification">;
1497
- to: z.ZodObject<{
2900
+ to: z.ZodUnion<readonly [z.ZodObject<{
1498
2901
  roles: z.ZodArray<z.ZodString>;
1499
- }, z.core.$strict>;
2902
+ }, z.core.$strict>, z.ZodObject<{
2903
+ listed: z.ZodString;
2904
+ }, z.core.$strict>, z.ZodObject<{
2905
+ column: z.ZodString;
2906
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
2907
+ else: z.ZodOptional<z.ZodObject<{
2908
+ roles: z.ZodArray<z.ZodString>;
2909
+ }, z.core.$strict>>;
2910
+ }, z.core.$strict>]>;
1500
2911
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
1501
2912
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2913
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
1502
2914
  }, z.core.$strict>, z.ZodObject<{
1503
2915
  kind: z.ZodLiteral<"record.create">;
1504
2916
  table: z.ZodString;
1505
2917
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1506
2918
  now: z.ZodLiteral<true>;
2919
+ }, z.core.$strict>, z.ZodObject<{
2920
+ setting: z.ZodObject<{
2921
+ table: z.ZodString;
2922
+ column: z.ZodString;
2923
+ }, z.core.$strict>;
2924
+ else: z.ZodOptional<z.ZodObject<{
2925
+ staff: z.ZodString;
2926
+ }, z.core.$strict>>;
2927
+ }, z.core.$strict>, z.ZodObject<{
2928
+ daysAfter: z.ZodObject<{
2929
+ column: z.ZodOptional<z.ZodString>;
2930
+ now: z.ZodOptional<z.ZodLiteral<true>>;
2931
+ days: z.ZodNumber;
2932
+ setting: z.ZodOptional<z.ZodObject<{
2933
+ table: z.ZodString;
2934
+ column: z.ZodString;
2935
+ }, z.core.$strict>>;
2936
+ at: z.ZodOptional<z.ZodString>;
2937
+ }, z.core.$strict>;
1507
2938
  }, z.core.$strict>]>>;
2939
+ name: z.ZodOptional<z.ZodString>;
2940
+ }, z.core.$strict>, z.ZodObject<{
2941
+ kind: z.ZodLiteral<"digest">;
2942
+ templateKey: z.ZodString;
2943
+ to: z.ZodObject<{
2944
+ roles: z.ZodArray<z.ZodString>;
2945
+ }, z.core.$strict>;
2946
+ sections: z.ZodArray<z.ZodObject<{
2947
+ key: z.ZodString;
2948
+ table: z.ZodString;
2949
+ owner: z.ZodString;
2950
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
2951
+ left: z.ZodUnion<readonly [z.ZodObject<{
2952
+ field: z.ZodString;
2953
+ }, z.core.$strict>, z.ZodObject<{
2954
+ count: z.ZodObject<{
2955
+ table: z.ZodString;
2956
+ matchColumn: z.ZodString;
2957
+ equalsField: z.ZodString;
2958
+ where: z.ZodOptional<z.ZodObject<{
2959
+ left: z.ZodObject</*elided*/ any, z.core.$strict>;
2960
+ op: z.ZodEnum<{
2961
+ is: "is";
2962
+ is_not: "is_not";
2963
+ contains: "contains";
2964
+ gt: "gt";
2965
+ lt: "lt";
2966
+ is_empty: "is_empty";
2967
+ not_empty: "not_empty";
2968
+ within_next: "within_next";
2969
+ within_last: "within_last";
2970
+ more_than_ago: "more_than_ago";
2971
+ more_than_ahead: "more_than_ahead";
2972
+ }>;
2973
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject</*elided*/ any, z.core.$strict>]>>;
2974
+ }, z.core.$strict>>;
2975
+ }, z.core.$strict>;
2976
+ }, z.core.$strict>]>;
2977
+ op: z.ZodEnum<{
2978
+ is: "is";
2979
+ is_not: "is_not";
2980
+ contains: "contains";
2981
+ gt: "gt";
2982
+ lt: "lt";
2983
+ is_empty: "is_empty";
2984
+ not_empty: "not_empty";
2985
+ within_next: "within_next";
2986
+ within_last: "within_last";
2987
+ more_than_ago: "more_than_ago";
2988
+ more_than_ahead: "more_than_ahead";
2989
+ }>;
2990
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
2991
+ amount: z.ZodNumber;
2992
+ unit: z.ZodEnum<{
2993
+ minutes: "minutes";
2994
+ hours: "hours";
2995
+ days: "days";
2996
+ }>;
2997
+ setting: z.ZodOptional<z.ZodObject<{
2998
+ table: z.ZodString;
2999
+ column: z.ZodString;
3000
+ }, z.core.$strict>>;
3001
+ }, z.core.$strict>]>>;
3002
+ }, z.core.$strict>>>;
3003
+ orderBy: z.ZodOptional<z.ZodObject<{
3004
+ column: z.ZodString;
3005
+ dir: z.ZodOptional<z.ZodEnum<{
3006
+ asc: "asc";
3007
+ desc: "desc";
3008
+ }>>;
3009
+ }, z.core.$strict>>;
3010
+ limit: z.ZodOptional<z.ZodNumber>;
3011
+ reach: z.ZodOptional<z.ZodEnum<{
3012
+ own: "own";
3013
+ team: "team";
3014
+ }>>;
3015
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
3016
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
3017
+ target: z.ZodOptional<z.ZodObject<{
3018
+ table: z.ZodString;
3019
+ owner: z.ZodString;
3020
+ column: z.ZodString;
3021
+ year: z.ZodOptional<z.ZodString>;
3022
+ of: z.ZodString;
3023
+ }, z.core.$strict>>;
3024
+ }, z.core.$strict>>;
3025
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
1508
3026
  }, z.core.$strict>, z.ZodObject<{
1509
3027
  kind: z.ZodLiteral<"record.update">;
1510
3028
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1511
3029
  now: z.ZodLiteral<true>;
3030
+ }, z.core.$strict>, z.ZodObject<{
3031
+ setting: z.ZodObject<{
3032
+ table: z.ZodString;
3033
+ column: z.ZodString;
3034
+ }, z.core.$strict>;
3035
+ else: z.ZodOptional<z.ZodObject<{
3036
+ staff: z.ZodString;
3037
+ }, z.core.$strict>>;
3038
+ }, z.core.$strict>, z.ZodObject<{
3039
+ daysAfter: z.ZodObject<{
3040
+ column: z.ZodOptional<z.ZodString>;
3041
+ now: z.ZodOptional<z.ZodLiteral<true>>;
3042
+ days: z.ZodNumber;
3043
+ setting: z.ZodOptional<z.ZodObject<{
3044
+ table: z.ZodString;
3045
+ column: z.ZodString;
3046
+ }, z.core.$strict>>;
3047
+ at: z.ZodOptional<z.ZodString>;
3048
+ }, z.core.$strict>;
1512
3049
  }, z.core.$strict>]>>;
1513
3050
  }, z.core.$strict>, z.ZodObject<{
1514
3051
  kind: z.ZodLiteral<"add-on.step">;
@@ -1554,6 +3091,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1554
3091
  hours: "hours";
1555
3092
  days: "days";
1556
3093
  }>;
3094
+ setting: z.ZodOptional<z.ZodObject<{
3095
+ table: z.ZodString;
3096
+ column: z.ZodString;
3097
+ }, z.core.$strict>>;
1557
3098
  }, z.core.$strict>]>>;
1558
3099
  }, z.core.$strict>>;
1559
3100
  }, z.core.$strict>;
@@ -1578,6 +3119,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1578
3119
  hours: "hours";
1579
3120
  days: "days";
1580
3121
  }>;
3122
+ setting: z.ZodOptional<z.ZodObject<{
3123
+ table: z.ZodString;
3124
+ column: z.ZodString;
3125
+ }, z.core.$strict>>;
1581
3126
  }, z.core.$strict>]>>;
1582
3127
  }, z.core.$strict>;
1583
3128
  id: z.ZodString;
@@ -1609,28 +3154,171 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1609
3154
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1610
3155
  kind: z.ZodLiteral<"email">;
1611
3156
  templateKey: z.ZodString;
1612
- to: z.ZodObject<{
3157
+ to: z.ZodUnion<readonly [z.ZodObject<{
1613
3158
  kind: z.ZodLiteral<"field">;
1614
3159
  column: z.ZodString;
1615
- }, z.core.$strict>;
3160
+ }, z.core.$strict>, z.ZodObject<{
3161
+ kind: z.ZodLiteral<"staff">;
3162
+ column: z.ZodString;
3163
+ }, z.core.$strict>, z.ZodObject<{
3164
+ kind: z.ZodLiteral<"listed">;
3165
+ table: z.ZodString;
3166
+ }, z.core.$strict>]>;
3167
+ replyTo: z.ZodOptional<z.ZodObject<{
3168
+ staff: z.ZodString;
3169
+ }, z.core.$strict>>;
1616
3170
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1617
3171
  }, z.core.$strict>, z.ZodObject<{
1618
3172
  kind: z.ZodLiteral<"notification">;
1619
- to: z.ZodObject<{
3173
+ to: z.ZodUnion<readonly [z.ZodObject<{
1620
3174
  roles: z.ZodArray<z.ZodString>;
1621
- }, z.core.$strict>;
3175
+ }, z.core.$strict>, z.ZodObject<{
3176
+ listed: z.ZodString;
3177
+ }, z.core.$strict>, z.ZodObject<{
3178
+ column: z.ZodString;
3179
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
3180
+ else: z.ZodOptional<z.ZodObject<{
3181
+ roles: z.ZodArray<z.ZodString>;
3182
+ }, z.core.$strict>>;
3183
+ }, z.core.$strict>]>;
1622
3184
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
1623
3185
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3186
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
1624
3187
  }, z.core.$strict>, z.ZodObject<{
1625
3188
  kind: z.ZodLiteral<"record.create">;
1626
3189
  table: z.ZodString;
1627
3190
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1628
3191
  now: z.ZodLiteral<true>;
3192
+ }, z.core.$strict>, z.ZodObject<{
3193
+ setting: z.ZodObject<{
3194
+ table: z.ZodString;
3195
+ column: z.ZodString;
3196
+ }, z.core.$strict>;
3197
+ else: z.ZodOptional<z.ZodObject<{
3198
+ staff: z.ZodString;
3199
+ }, z.core.$strict>>;
3200
+ }, z.core.$strict>, z.ZodObject<{
3201
+ daysAfter: z.ZodObject<{
3202
+ column: z.ZodOptional<z.ZodString>;
3203
+ now: z.ZodOptional<z.ZodLiteral<true>>;
3204
+ days: z.ZodNumber;
3205
+ setting: z.ZodOptional<z.ZodObject<{
3206
+ table: z.ZodString;
3207
+ column: z.ZodString;
3208
+ }, z.core.$strict>>;
3209
+ at: z.ZodOptional<z.ZodString>;
3210
+ }, z.core.$strict>;
1629
3211
  }, z.core.$strict>]>>;
3212
+ name: z.ZodOptional<z.ZodString>;
3213
+ }, z.core.$strict>, z.ZodObject<{
3214
+ kind: z.ZodLiteral<"digest">;
3215
+ templateKey: z.ZodString;
3216
+ to: z.ZodObject<{
3217
+ roles: z.ZodArray<z.ZodString>;
3218
+ }, z.core.$strict>;
3219
+ sections: z.ZodArray<z.ZodObject<{
3220
+ key: z.ZodString;
3221
+ table: z.ZodString;
3222
+ owner: z.ZodString;
3223
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
3224
+ left: z.ZodUnion<readonly [z.ZodObject<{
3225
+ field: z.ZodString;
3226
+ }, z.core.$strict>, z.ZodObject<{
3227
+ count: z.ZodObject<{
3228
+ table: z.ZodString;
3229
+ matchColumn: z.ZodString;
3230
+ equalsField: z.ZodString;
3231
+ where: z.ZodOptional<z.ZodObject<{
3232
+ left: z.ZodObject</*elided*/ any, z.core.$strict>;
3233
+ op: z.ZodEnum<{
3234
+ is: "is";
3235
+ is_not: "is_not";
3236
+ contains: "contains";
3237
+ gt: "gt";
3238
+ lt: "lt";
3239
+ is_empty: "is_empty";
3240
+ not_empty: "not_empty";
3241
+ within_next: "within_next";
3242
+ within_last: "within_last";
3243
+ more_than_ago: "more_than_ago";
3244
+ more_than_ahead: "more_than_ahead";
3245
+ }>;
3246
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject</*elided*/ any, z.core.$strict>]>>;
3247
+ }, z.core.$strict>>;
3248
+ }, z.core.$strict>;
3249
+ }, z.core.$strict>]>;
3250
+ op: z.ZodEnum<{
3251
+ is: "is";
3252
+ is_not: "is_not";
3253
+ contains: "contains";
3254
+ gt: "gt";
3255
+ lt: "lt";
3256
+ is_empty: "is_empty";
3257
+ not_empty: "not_empty";
3258
+ within_next: "within_next";
3259
+ within_last: "within_last";
3260
+ more_than_ago: "more_than_ago";
3261
+ more_than_ahead: "more_than_ahead";
3262
+ }>;
3263
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
3264
+ amount: z.ZodNumber;
3265
+ unit: z.ZodEnum<{
3266
+ minutes: "minutes";
3267
+ hours: "hours";
3268
+ days: "days";
3269
+ }>;
3270
+ setting: z.ZodOptional<z.ZodObject<{
3271
+ table: z.ZodString;
3272
+ column: z.ZodString;
3273
+ }, z.core.$strict>>;
3274
+ }, z.core.$strict>]>>;
3275
+ }, z.core.$strict>>>;
3276
+ orderBy: z.ZodOptional<z.ZodObject<{
3277
+ column: z.ZodString;
3278
+ dir: z.ZodOptional<z.ZodEnum<{
3279
+ asc: "asc";
3280
+ desc: "desc";
3281
+ }>>;
3282
+ }, z.core.$strict>>;
3283
+ limit: z.ZodOptional<z.ZodNumber>;
3284
+ reach: z.ZodOptional<z.ZodEnum<{
3285
+ own: "own";
3286
+ team: "team";
3287
+ }>>;
3288
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
3289
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
3290
+ target: z.ZodOptional<z.ZodObject<{
3291
+ table: z.ZodString;
3292
+ owner: z.ZodString;
3293
+ column: z.ZodString;
3294
+ year: z.ZodOptional<z.ZodString>;
3295
+ of: z.ZodString;
3296
+ }, z.core.$strict>>;
3297
+ }, z.core.$strict>>;
3298
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
1630
3299
  }, z.core.$strict>, z.ZodObject<{
1631
3300
  kind: z.ZodLiteral<"record.update">;
1632
3301
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1633
3302
  now: z.ZodLiteral<true>;
3303
+ }, z.core.$strict>, z.ZodObject<{
3304
+ setting: z.ZodObject<{
3305
+ table: z.ZodString;
3306
+ column: z.ZodString;
3307
+ }, z.core.$strict>;
3308
+ else: z.ZodOptional<z.ZodObject<{
3309
+ staff: z.ZodString;
3310
+ }, z.core.$strict>>;
3311
+ }, z.core.$strict>, z.ZodObject<{
3312
+ daysAfter: z.ZodObject<{
3313
+ column: z.ZodOptional<z.ZodString>;
3314
+ now: z.ZodOptional<z.ZodLiteral<true>>;
3315
+ days: z.ZodNumber;
3316
+ setting: z.ZodOptional<z.ZodObject<{
3317
+ table: z.ZodString;
3318
+ column: z.ZodString;
3319
+ }, z.core.$strict>>;
3320
+ at: z.ZodOptional<z.ZodString>;
3321
+ }, z.core.$strict>;
1634
3322
  }, z.core.$strict>]>>;
1635
3323
  }, z.core.$strict>, z.ZodObject<{
1636
3324
  kind: z.ZodLiteral<"add-on.step">;
@@ -1676,6 +3364,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1676
3364
  hours: "hours";
1677
3365
  days: "days";
1678
3366
  }>;
3367
+ setting: z.ZodOptional<z.ZodObject<{
3368
+ table: z.ZodString;
3369
+ column: z.ZodString;
3370
+ }, z.core.$strict>>;
1679
3371
  }, z.core.$strict>]>>;
1680
3372
  }, z.core.$strict>>;
1681
3373
  }, z.core.$strict>;
@@ -1700,6 +3392,10 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1700
3392
  hours: "hours";
1701
3393
  days: "days";
1702
3394
  }>;
3395
+ setting: z.ZodOptional<z.ZodObject<{
3396
+ table: z.ZodString;
3397
+ column: z.ZodString;
3398
+ }, z.core.$strict>>;
1703
3399
  }, z.core.$strict>]>>;
1704
3400
  }, z.core.$strict>;
1705
3401
  id: z.ZodString;
@@ -1728,6 +3424,7 @@ export declare const manifestAutomationSchema: z.ZodObject<{
1728
3424
  sub: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
1729
3425
  }, z.core.$strict>]>>;
1730
3426
  }, z.core.$strict>;
3427
+ module: z.ZodOptional<z.ZodString>;
1731
3428
  }, z.core.$strict>;
1732
3429
  export type ManifestAutomation = z.infer<typeof manifestAutomationSchema>;
1733
3430
  export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
@@ -1776,6 +3473,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
1776
3473
  hours: "hours";
1777
3474
  days: "days";
1778
3475
  }>;
3476
+ setting: z.ZodOptional<z.ZodObject<{
3477
+ table: z.ZodString;
3478
+ column: z.ZodString;
3479
+ }, z.core.$strict>>;
1779
3480
  }, z.core.$strict>]>>;
1780
3481
  }, z.core.$strict>>;
1781
3482
  }, z.core.$strict>;
@@ -1800,6 +3501,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
1800
3501
  hours: "hours";
1801
3502
  days: "days";
1802
3503
  }>;
3504
+ setting: z.ZodOptional<z.ZodObject<{
3505
+ table: z.ZodString;
3506
+ column: z.ZodString;
3507
+ }, z.core.$strict>>;
1803
3508
  }, z.core.$strict>]>>;
1804
3509
  }, z.core.$strict>>>;
1805
3510
  }, z.core.$strict>, z.ZodObject<{
@@ -1857,6 +3562,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
1857
3562
  hours: "hours";
1858
3563
  days: "days";
1859
3564
  }>;
3565
+ setting: z.ZodOptional<z.ZodObject<{
3566
+ table: z.ZodString;
3567
+ column: z.ZodString;
3568
+ }, z.core.$strict>>;
1860
3569
  }, z.core.$strict>]>>;
1861
3570
  }, z.core.$strict>>;
1862
3571
  }, z.core.$strict>;
@@ -1881,9 +3590,13 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
1881
3590
  hours: "hours";
1882
3591
  days: "days";
1883
3592
  }>;
3593
+ setting: z.ZodOptional<z.ZodObject<{
3594
+ table: z.ZodString;
3595
+ column: z.ZodString;
3596
+ }, z.core.$strict>>;
1884
3597
  }, z.core.$strict>]>>;
1885
3598
  }, z.core.$strict>>;
1886
- once: z.ZodBoolean;
3599
+ once: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"per-spell">]>;
1887
3600
  }, z.core.$strict>>;
1888
3601
  }, z.core.$strict>], "kind">;
1889
3602
  graph: z.ZodObject<{
@@ -1899,28 +3612,184 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
1899
3612
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1900
3613
  kind: z.ZodLiteral<"email">;
1901
3614
  templateKey: z.ZodString;
1902
- to: z.ZodObject<{
3615
+ to: z.ZodUnion<readonly [z.ZodObject<{
1903
3616
  kind: z.ZodLiteral<"field">;
1904
3617
  column: z.ZodString;
1905
- }, z.core.$strict>;
3618
+ }, z.core.$strict>, z.ZodObject<{
3619
+ kind: z.ZodLiteral<"staff">;
3620
+ column: z.ZodString;
3621
+ }, z.core.$strict>, z.ZodObject<{
3622
+ kind: z.ZodLiteral<"listed">;
3623
+ table: z.ZodString;
3624
+ }, z.core.$strict>]>;
3625
+ replyTo: z.ZodOptional<z.ZodObject<{
3626
+ staff: z.ZodString;
3627
+ }, z.core.$strict>>;
1906
3628
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1907
3629
  }, z.core.$strict>, z.ZodObject<{
1908
3630
  kind: z.ZodLiteral<"notification">;
1909
- to: z.ZodObject<{
3631
+ to: z.ZodUnion<readonly [z.ZodObject<{
1910
3632
  roles: z.ZodArray<z.ZodString>;
1911
- }, z.core.$strict>;
3633
+ }, z.core.$strict>, z.ZodObject<{
3634
+ listed: z.ZodString;
3635
+ }, z.core.$strict>, z.ZodObject<{
3636
+ column: z.ZodString;
3637
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
3638
+ else: z.ZodOptional<z.ZodObject<{
3639
+ roles: z.ZodArray<z.ZodString>;
3640
+ }, z.core.$strict>>;
3641
+ }, z.core.$strict>]>;
1912
3642
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
1913
3643
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3644
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
1914
3645
  }, z.core.$strict>, z.ZodObject<{
1915
3646
  kind: z.ZodLiteral<"record.create">;
1916
3647
  table: z.ZodString;
1917
3648
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1918
3649
  now: z.ZodLiteral<true>;
3650
+ }, z.core.$strict>, z.ZodObject<{
3651
+ setting: z.ZodObject<{
3652
+ table: z.ZodString;
3653
+ column: z.ZodString;
3654
+ }, z.core.$strict>;
3655
+ else: z.ZodOptional<z.ZodObject<{
3656
+ staff: z.ZodString;
3657
+ }, z.core.$strict>>;
3658
+ }, z.core.$strict>, z.ZodObject<{
3659
+ daysAfter: z.ZodObject<{
3660
+ column: z.ZodOptional<z.ZodString>;
3661
+ now: z.ZodOptional<z.ZodLiteral<true>>;
3662
+ days: z.ZodNumber;
3663
+ setting: z.ZodOptional<z.ZodObject<{
3664
+ table: z.ZodString;
3665
+ column: z.ZodString;
3666
+ }, z.core.$strict>>;
3667
+ at: z.ZodOptional<z.ZodString>;
3668
+ }, z.core.$strict>;
1919
3669
  }, z.core.$strict>]>>;
3670
+ name: z.ZodOptional<z.ZodString>;
3671
+ }, z.core.$strict>, z.ZodObject<{
3672
+ kind: z.ZodLiteral<"digest">;
3673
+ templateKey: z.ZodString;
3674
+ to: z.ZodObject<{
3675
+ roles: z.ZodArray<z.ZodString>;
3676
+ }, z.core.$strict>;
3677
+ sections: z.ZodArray<z.ZodObject<{
3678
+ key: z.ZodString;
3679
+ table: z.ZodString;
3680
+ owner: z.ZodString;
3681
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
3682
+ left: z.ZodUnion<readonly [z.ZodObject<{
3683
+ field: z.ZodString;
3684
+ }, z.core.$strict>, z.ZodObject<{
3685
+ count: z.ZodObject<{
3686
+ table: z.ZodString;
3687
+ matchColumn: z.ZodString;
3688
+ equalsField: z.ZodString;
3689
+ where: z.ZodOptional<z.ZodObject<{
3690
+ left: z.ZodObject<{
3691
+ field: z.ZodString;
3692
+ }, z.core.$strict>;
3693
+ op: z.ZodEnum<{
3694
+ is: "is";
3695
+ is_not: "is_not";
3696
+ contains: "contains";
3697
+ gt: "gt";
3698
+ lt: "lt";
3699
+ is_empty: "is_empty";
3700
+ not_empty: "not_empty";
3701
+ within_next: "within_next";
3702
+ within_last: "within_last";
3703
+ more_than_ago: "more_than_ago";
3704
+ more_than_ahead: "more_than_ahead";
3705
+ }>;
3706
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
3707
+ amount: z.ZodNumber;
3708
+ unit: z.ZodEnum<{
3709
+ minutes: "minutes";
3710
+ hours: "hours";
3711
+ days: "days";
3712
+ }>;
3713
+ setting: z.ZodOptional<z.ZodObject<{
3714
+ table: z.ZodString;
3715
+ column: z.ZodString;
3716
+ }, z.core.$strict>>;
3717
+ }, z.core.$strict>]>>;
3718
+ }, z.core.$strict>>;
3719
+ }, z.core.$strict>;
3720
+ }, z.core.$strict>]>;
3721
+ op: z.ZodEnum<{
3722
+ is: "is";
3723
+ is_not: "is_not";
3724
+ contains: "contains";
3725
+ gt: "gt";
3726
+ lt: "lt";
3727
+ is_empty: "is_empty";
3728
+ not_empty: "not_empty";
3729
+ within_next: "within_next";
3730
+ within_last: "within_last";
3731
+ more_than_ago: "more_than_ago";
3732
+ more_than_ahead: "more_than_ahead";
3733
+ }>;
3734
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
3735
+ amount: z.ZodNumber;
3736
+ unit: z.ZodEnum<{
3737
+ minutes: "minutes";
3738
+ hours: "hours";
3739
+ days: "days";
3740
+ }>;
3741
+ setting: z.ZodOptional<z.ZodObject<{
3742
+ table: z.ZodString;
3743
+ column: z.ZodString;
3744
+ }, z.core.$strict>>;
3745
+ }, z.core.$strict>]>>;
3746
+ }, z.core.$strict>>>;
3747
+ orderBy: z.ZodOptional<z.ZodObject<{
3748
+ column: z.ZodString;
3749
+ dir: z.ZodOptional<z.ZodEnum<{
3750
+ asc: "asc";
3751
+ desc: "desc";
3752
+ }>>;
3753
+ }, z.core.$strict>>;
3754
+ limit: z.ZodOptional<z.ZodNumber>;
3755
+ reach: z.ZodOptional<z.ZodEnum<{
3756
+ own: "own";
3757
+ team: "team";
3758
+ }>>;
3759
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
3760
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
3761
+ target: z.ZodOptional<z.ZodObject<{
3762
+ table: z.ZodString;
3763
+ owner: z.ZodString;
3764
+ column: z.ZodString;
3765
+ year: z.ZodOptional<z.ZodString>;
3766
+ of: z.ZodString;
3767
+ }, z.core.$strict>>;
3768
+ }, z.core.$strict>>;
3769
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
1920
3770
  }, z.core.$strict>, z.ZodObject<{
1921
3771
  kind: z.ZodLiteral<"record.update">;
1922
3772
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1923
3773
  now: z.ZodLiteral<true>;
3774
+ }, z.core.$strict>, z.ZodObject<{
3775
+ setting: z.ZodObject<{
3776
+ table: z.ZodString;
3777
+ column: z.ZodString;
3778
+ }, z.core.$strict>;
3779
+ else: z.ZodOptional<z.ZodObject<{
3780
+ staff: z.ZodString;
3781
+ }, z.core.$strict>>;
3782
+ }, z.core.$strict>, z.ZodObject<{
3783
+ daysAfter: z.ZodObject<{
3784
+ column: z.ZodOptional<z.ZodString>;
3785
+ now: z.ZodOptional<z.ZodLiteral<true>>;
3786
+ days: z.ZodNumber;
3787
+ setting: z.ZodOptional<z.ZodObject<{
3788
+ table: z.ZodString;
3789
+ column: z.ZodString;
3790
+ }, z.core.$strict>>;
3791
+ at: z.ZodOptional<z.ZodString>;
3792
+ }, z.core.$strict>;
1924
3793
  }, z.core.$strict>]>>;
1925
3794
  }, z.core.$strict>, z.ZodObject<{
1926
3795
  kind: z.ZodLiteral<"add-on.step">;
@@ -1966,6 +3835,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
1966
3835
  hours: "hours";
1967
3836
  days: "days";
1968
3837
  }>;
3838
+ setting: z.ZodOptional<z.ZodObject<{
3839
+ table: z.ZodString;
3840
+ column: z.ZodString;
3841
+ }, z.core.$strict>>;
1969
3842
  }, z.core.$strict>]>>;
1970
3843
  }, z.core.$strict>>;
1971
3844
  }, z.core.$strict>;
@@ -1990,6 +3863,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
1990
3863
  hours: "hours";
1991
3864
  days: "days";
1992
3865
  }>;
3866
+ setting: z.ZodOptional<z.ZodObject<{
3867
+ table: z.ZodString;
3868
+ column: z.ZodString;
3869
+ }, z.core.$strict>>;
1993
3870
  }, z.core.$strict>]>>;
1994
3871
  }, z.core.$strict>;
1995
3872
  id: z.ZodString;
@@ -2045,6 +3922,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2045
3922
  hours: "hours";
2046
3923
  days: "days";
2047
3924
  }>;
3925
+ setting: z.ZodOptional<z.ZodObject<{
3926
+ table: z.ZodString;
3927
+ column: z.ZodString;
3928
+ }, z.core.$strict>>;
2048
3929
  }, z.core.$strict>]>>;
2049
3930
  }, z.core.$strict>>;
2050
3931
  }, z.core.$strict>;
@@ -2069,6 +3950,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2069
3950
  hours: "hours";
2070
3951
  days: "days";
2071
3952
  }>;
3953
+ setting: z.ZodOptional<z.ZodObject<{
3954
+ table: z.ZodString;
3955
+ column: z.ZodString;
3956
+ }, z.core.$strict>>;
2072
3957
  }, z.core.$strict>]>>;
2073
3958
  }, z.core.$strict>;
2074
3959
  branches: z.ZodTuple<[z.ZodObject<{
@@ -2080,28 +3965,171 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2080
3965
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
2081
3966
  kind: z.ZodLiteral<"email">;
2082
3967
  templateKey: z.ZodString;
2083
- to: z.ZodObject<{
3968
+ to: z.ZodUnion<readonly [z.ZodObject<{
2084
3969
  kind: z.ZodLiteral<"field">;
2085
3970
  column: z.ZodString;
2086
- }, z.core.$strict>;
3971
+ }, z.core.$strict>, z.ZodObject<{
3972
+ kind: z.ZodLiteral<"staff">;
3973
+ column: z.ZodString;
3974
+ }, z.core.$strict>, z.ZodObject<{
3975
+ kind: z.ZodLiteral<"listed">;
3976
+ table: z.ZodString;
3977
+ }, z.core.$strict>]>;
3978
+ replyTo: z.ZodOptional<z.ZodObject<{
3979
+ staff: z.ZodString;
3980
+ }, z.core.$strict>>;
2087
3981
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2088
3982
  }, z.core.$strict>, z.ZodObject<{
2089
3983
  kind: z.ZodLiteral<"notification">;
2090
- to: z.ZodObject<{
3984
+ to: z.ZodUnion<readonly [z.ZodObject<{
2091
3985
  roles: z.ZodArray<z.ZodString>;
2092
- }, z.core.$strict>;
3986
+ }, z.core.$strict>, z.ZodObject<{
3987
+ listed: z.ZodString;
3988
+ }, z.core.$strict>, z.ZodObject<{
3989
+ column: z.ZodString;
3990
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
3991
+ else: z.ZodOptional<z.ZodObject<{
3992
+ roles: z.ZodArray<z.ZodString>;
3993
+ }, z.core.$strict>>;
3994
+ }, z.core.$strict>]>;
2093
3995
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
2094
3996
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3997
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
2095
3998
  }, z.core.$strict>, z.ZodObject<{
2096
3999
  kind: z.ZodLiteral<"record.create">;
2097
4000
  table: z.ZodString;
2098
4001
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2099
4002
  now: z.ZodLiteral<true>;
4003
+ }, z.core.$strict>, z.ZodObject<{
4004
+ setting: z.ZodObject<{
4005
+ table: z.ZodString;
4006
+ column: z.ZodString;
4007
+ }, z.core.$strict>;
4008
+ else: z.ZodOptional<z.ZodObject<{
4009
+ staff: z.ZodString;
4010
+ }, z.core.$strict>>;
4011
+ }, z.core.$strict>, z.ZodObject<{
4012
+ daysAfter: z.ZodObject<{
4013
+ column: z.ZodOptional<z.ZodString>;
4014
+ now: z.ZodOptional<z.ZodLiteral<true>>;
4015
+ days: z.ZodNumber;
4016
+ setting: z.ZodOptional<z.ZodObject<{
4017
+ table: z.ZodString;
4018
+ column: z.ZodString;
4019
+ }, z.core.$strict>>;
4020
+ at: z.ZodOptional<z.ZodString>;
4021
+ }, z.core.$strict>;
2100
4022
  }, z.core.$strict>]>>;
4023
+ name: z.ZodOptional<z.ZodString>;
4024
+ }, z.core.$strict>, z.ZodObject<{
4025
+ kind: z.ZodLiteral<"digest">;
4026
+ templateKey: z.ZodString;
4027
+ to: z.ZodObject<{
4028
+ roles: z.ZodArray<z.ZodString>;
4029
+ }, z.core.$strict>;
4030
+ sections: z.ZodArray<z.ZodObject<{
4031
+ key: z.ZodString;
4032
+ table: z.ZodString;
4033
+ owner: z.ZodString;
4034
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
4035
+ left: z.ZodUnion<readonly [z.ZodObject<{
4036
+ field: z.ZodString;
4037
+ }, z.core.$strict>, z.ZodObject<{
4038
+ count: z.ZodObject<{
4039
+ table: z.ZodString;
4040
+ matchColumn: z.ZodString;
4041
+ equalsField: z.ZodString;
4042
+ where: z.ZodOptional<z.ZodObject<{
4043
+ left: z.ZodObject</*elided*/ any, z.core.$strict>;
4044
+ op: z.ZodEnum<{
4045
+ is: "is";
4046
+ is_not: "is_not";
4047
+ contains: "contains";
4048
+ gt: "gt";
4049
+ lt: "lt";
4050
+ is_empty: "is_empty";
4051
+ not_empty: "not_empty";
4052
+ within_next: "within_next";
4053
+ within_last: "within_last";
4054
+ more_than_ago: "more_than_ago";
4055
+ more_than_ahead: "more_than_ahead";
4056
+ }>;
4057
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject</*elided*/ any, z.core.$strict>]>>;
4058
+ }, z.core.$strict>>;
4059
+ }, z.core.$strict>;
4060
+ }, z.core.$strict>]>;
4061
+ op: z.ZodEnum<{
4062
+ is: "is";
4063
+ is_not: "is_not";
4064
+ contains: "contains";
4065
+ gt: "gt";
4066
+ lt: "lt";
4067
+ is_empty: "is_empty";
4068
+ not_empty: "not_empty";
4069
+ within_next: "within_next";
4070
+ within_last: "within_last";
4071
+ more_than_ago: "more_than_ago";
4072
+ more_than_ahead: "more_than_ahead";
4073
+ }>;
4074
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
4075
+ amount: z.ZodNumber;
4076
+ unit: z.ZodEnum<{
4077
+ minutes: "minutes";
4078
+ hours: "hours";
4079
+ days: "days";
4080
+ }>;
4081
+ setting: z.ZodOptional<z.ZodObject<{
4082
+ table: z.ZodString;
4083
+ column: z.ZodString;
4084
+ }, z.core.$strict>>;
4085
+ }, z.core.$strict>]>>;
4086
+ }, z.core.$strict>>>;
4087
+ orderBy: z.ZodOptional<z.ZodObject<{
4088
+ column: z.ZodString;
4089
+ dir: z.ZodOptional<z.ZodEnum<{
4090
+ asc: "asc";
4091
+ desc: "desc";
4092
+ }>>;
4093
+ }, z.core.$strict>>;
4094
+ limit: z.ZodOptional<z.ZodNumber>;
4095
+ reach: z.ZodOptional<z.ZodEnum<{
4096
+ own: "own";
4097
+ team: "team";
4098
+ }>>;
4099
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
4100
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
4101
+ target: z.ZodOptional<z.ZodObject<{
4102
+ table: z.ZodString;
4103
+ owner: z.ZodString;
4104
+ column: z.ZodString;
4105
+ year: z.ZodOptional<z.ZodString>;
4106
+ of: z.ZodString;
4107
+ }, z.core.$strict>>;
4108
+ }, z.core.$strict>>;
4109
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
2101
4110
  }, z.core.$strict>, z.ZodObject<{
2102
4111
  kind: z.ZodLiteral<"record.update">;
2103
4112
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2104
4113
  now: z.ZodLiteral<true>;
4114
+ }, z.core.$strict>, z.ZodObject<{
4115
+ setting: z.ZodObject<{
4116
+ table: z.ZodString;
4117
+ column: z.ZodString;
4118
+ }, z.core.$strict>;
4119
+ else: z.ZodOptional<z.ZodObject<{
4120
+ staff: z.ZodString;
4121
+ }, z.core.$strict>>;
4122
+ }, z.core.$strict>, z.ZodObject<{
4123
+ daysAfter: z.ZodObject<{
4124
+ column: z.ZodOptional<z.ZodString>;
4125
+ now: z.ZodOptional<z.ZodLiteral<true>>;
4126
+ days: z.ZodNumber;
4127
+ setting: z.ZodOptional<z.ZodObject<{
4128
+ table: z.ZodString;
4129
+ column: z.ZodString;
4130
+ }, z.core.$strict>>;
4131
+ at: z.ZodOptional<z.ZodString>;
4132
+ }, z.core.$strict>;
2105
4133
  }, z.core.$strict>]>>;
2106
4134
  }, z.core.$strict>, z.ZodObject<{
2107
4135
  kind: z.ZodLiteral<"add-on.step">;
@@ -2147,6 +4175,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2147
4175
  hours: "hours";
2148
4176
  days: "days";
2149
4177
  }>;
4178
+ setting: z.ZodOptional<z.ZodObject<{
4179
+ table: z.ZodString;
4180
+ column: z.ZodString;
4181
+ }, z.core.$strict>>;
2150
4182
  }, z.core.$strict>]>>;
2151
4183
  }, z.core.$strict>>;
2152
4184
  }, z.core.$strict>;
@@ -2171,6 +4203,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2171
4203
  hours: "hours";
2172
4204
  days: "days";
2173
4205
  }>;
4206
+ setting: z.ZodOptional<z.ZodObject<{
4207
+ table: z.ZodString;
4208
+ column: z.ZodString;
4209
+ }, z.core.$strict>>;
2174
4210
  }, z.core.$strict>]>>;
2175
4211
  }, z.core.$strict>;
2176
4212
  id: z.ZodString;
@@ -2202,28 +4238,171 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2202
4238
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
2203
4239
  kind: z.ZodLiteral<"email">;
2204
4240
  templateKey: z.ZodString;
2205
- to: z.ZodObject<{
4241
+ to: z.ZodUnion<readonly [z.ZodObject<{
2206
4242
  kind: z.ZodLiteral<"field">;
2207
4243
  column: z.ZodString;
2208
- }, z.core.$strict>;
4244
+ }, z.core.$strict>, z.ZodObject<{
4245
+ kind: z.ZodLiteral<"staff">;
4246
+ column: z.ZodString;
4247
+ }, z.core.$strict>, z.ZodObject<{
4248
+ kind: z.ZodLiteral<"listed">;
4249
+ table: z.ZodString;
4250
+ }, z.core.$strict>]>;
4251
+ replyTo: z.ZodOptional<z.ZodObject<{
4252
+ staff: z.ZodString;
4253
+ }, z.core.$strict>>;
2209
4254
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2210
4255
  }, z.core.$strict>, z.ZodObject<{
2211
4256
  kind: z.ZodLiteral<"notification">;
2212
- to: z.ZodObject<{
4257
+ to: z.ZodUnion<readonly [z.ZodObject<{
2213
4258
  roles: z.ZodArray<z.ZodString>;
2214
- }, z.core.$strict>;
4259
+ }, z.core.$strict>, z.ZodObject<{
4260
+ listed: z.ZodString;
4261
+ }, z.core.$strict>, z.ZodObject<{
4262
+ column: z.ZodString;
4263
+ lead: z.ZodOptional<z.ZodLiteral<true>>;
4264
+ else: z.ZodOptional<z.ZodObject<{
4265
+ roles: z.ZodArray<z.ZodString>;
4266
+ }, z.core.$strict>>;
4267
+ }, z.core.$strict>]>;
2215
4268
  title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
2216
4269
  body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
4270
+ urgent: z.ZodOptional<z.ZodLiteral<true>>;
2217
4271
  }, z.core.$strict>, z.ZodObject<{
2218
4272
  kind: z.ZodLiteral<"record.create">;
2219
4273
  table: z.ZodString;
2220
4274
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2221
4275
  now: z.ZodLiteral<true>;
4276
+ }, z.core.$strict>, z.ZodObject<{
4277
+ setting: z.ZodObject<{
4278
+ table: z.ZodString;
4279
+ column: z.ZodString;
4280
+ }, z.core.$strict>;
4281
+ else: z.ZodOptional<z.ZodObject<{
4282
+ staff: z.ZodString;
4283
+ }, z.core.$strict>>;
4284
+ }, z.core.$strict>, z.ZodObject<{
4285
+ daysAfter: z.ZodObject<{
4286
+ column: z.ZodOptional<z.ZodString>;
4287
+ now: z.ZodOptional<z.ZodLiteral<true>>;
4288
+ days: z.ZodNumber;
4289
+ setting: z.ZodOptional<z.ZodObject<{
4290
+ table: z.ZodString;
4291
+ column: z.ZodString;
4292
+ }, z.core.$strict>>;
4293
+ at: z.ZodOptional<z.ZodString>;
4294
+ }, z.core.$strict>;
2222
4295
  }, z.core.$strict>]>>;
4296
+ name: z.ZodOptional<z.ZodString>;
4297
+ }, z.core.$strict>, z.ZodObject<{
4298
+ kind: z.ZodLiteral<"digest">;
4299
+ templateKey: z.ZodString;
4300
+ to: z.ZodObject<{
4301
+ roles: z.ZodArray<z.ZodString>;
4302
+ }, z.core.$strict>;
4303
+ sections: z.ZodArray<z.ZodObject<{
4304
+ key: z.ZodString;
4305
+ table: z.ZodString;
4306
+ owner: z.ZodString;
4307
+ where: z.ZodOptional<z.ZodArray<z.ZodObject<{
4308
+ left: z.ZodUnion<readonly [z.ZodObject<{
4309
+ field: z.ZodString;
4310
+ }, z.core.$strict>, z.ZodObject<{
4311
+ count: z.ZodObject<{
4312
+ table: z.ZodString;
4313
+ matchColumn: z.ZodString;
4314
+ equalsField: z.ZodString;
4315
+ where: z.ZodOptional<z.ZodObject<{
4316
+ left: z.ZodObject</*elided*/ any, z.core.$strict>;
4317
+ op: z.ZodEnum<{
4318
+ is: "is";
4319
+ is_not: "is_not";
4320
+ contains: "contains";
4321
+ gt: "gt";
4322
+ lt: "lt";
4323
+ is_empty: "is_empty";
4324
+ not_empty: "not_empty";
4325
+ within_next: "within_next";
4326
+ within_last: "within_last";
4327
+ more_than_ago: "more_than_ago";
4328
+ more_than_ahead: "more_than_ahead";
4329
+ }>;
4330
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject</*elided*/ any, z.core.$strict>]>>;
4331
+ }, z.core.$strict>>;
4332
+ }, z.core.$strict>;
4333
+ }, z.core.$strict>]>;
4334
+ op: z.ZodEnum<{
4335
+ is: "is";
4336
+ is_not: "is_not";
4337
+ contains: "contains";
4338
+ gt: "gt";
4339
+ lt: "lt";
4340
+ is_empty: "is_empty";
4341
+ not_empty: "not_empty";
4342
+ within_next: "within_next";
4343
+ within_last: "within_last";
4344
+ more_than_ago: "more_than_ago";
4345
+ more_than_ahead: "more_than_ahead";
4346
+ }>;
4347
+ right: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
4348
+ amount: z.ZodNumber;
4349
+ unit: z.ZodEnum<{
4350
+ minutes: "minutes";
4351
+ hours: "hours";
4352
+ days: "days";
4353
+ }>;
4354
+ setting: z.ZodOptional<z.ZodObject<{
4355
+ table: z.ZodString;
4356
+ column: z.ZodString;
4357
+ }, z.core.$strict>>;
4358
+ }, z.core.$strict>]>>;
4359
+ }, z.core.$strict>>>;
4360
+ orderBy: z.ZodOptional<z.ZodObject<{
4361
+ column: z.ZodString;
4362
+ dir: z.ZodOptional<z.ZodEnum<{
4363
+ asc: "asc";
4364
+ desc: "desc";
4365
+ }>>;
4366
+ }, z.core.$strict>>;
4367
+ limit: z.ZodOptional<z.ZodNumber>;
4368
+ reach: z.ZodOptional<z.ZodEnum<{
4369
+ own: "own";
4370
+ team: "team";
4371
+ }>>;
4372
+ sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
4373
+ by: z.ZodOptional<z.ZodLiteral<"owner">>;
4374
+ target: z.ZodOptional<z.ZodObject<{
4375
+ table: z.ZodString;
4376
+ owner: z.ZodString;
4377
+ column: z.ZodString;
4378
+ year: z.ZodOptional<z.ZodString>;
4379
+ of: z.ZodString;
4380
+ }, z.core.$strict>>;
4381
+ }, z.core.$strict>>;
4382
+ sendEmpty: z.ZodOptional<z.ZodLiteral<true>>;
2223
4383
  }, z.core.$strict>, z.ZodObject<{
2224
4384
  kind: z.ZodLiteral<"record.update">;
2225
4385
  values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2226
4386
  now: z.ZodLiteral<true>;
4387
+ }, z.core.$strict>, z.ZodObject<{
4388
+ setting: z.ZodObject<{
4389
+ table: z.ZodString;
4390
+ column: z.ZodString;
4391
+ }, z.core.$strict>;
4392
+ else: z.ZodOptional<z.ZodObject<{
4393
+ staff: z.ZodString;
4394
+ }, z.core.$strict>>;
4395
+ }, z.core.$strict>, z.ZodObject<{
4396
+ daysAfter: z.ZodObject<{
4397
+ column: z.ZodOptional<z.ZodString>;
4398
+ now: z.ZodOptional<z.ZodLiteral<true>>;
4399
+ days: z.ZodNumber;
4400
+ setting: z.ZodOptional<z.ZodObject<{
4401
+ table: z.ZodString;
4402
+ column: z.ZodString;
4403
+ }, z.core.$strict>>;
4404
+ at: z.ZodOptional<z.ZodString>;
4405
+ }, z.core.$strict>;
2227
4406
  }, z.core.$strict>]>>;
2228
4407
  }, z.core.$strict>, z.ZodObject<{
2229
4408
  kind: z.ZodLiteral<"add-on.step">;
@@ -2269,6 +4448,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2269
4448
  hours: "hours";
2270
4449
  days: "days";
2271
4450
  }>;
4451
+ setting: z.ZodOptional<z.ZodObject<{
4452
+ table: z.ZodString;
4453
+ column: z.ZodString;
4454
+ }, z.core.$strict>>;
2272
4455
  }, z.core.$strict>]>>;
2273
4456
  }, z.core.$strict>>;
2274
4457
  }, z.core.$strict>;
@@ -2293,6 +4476,10 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2293
4476
  hours: "hours";
2294
4477
  days: "days";
2295
4478
  }>;
4479
+ setting: z.ZodOptional<z.ZodObject<{
4480
+ table: z.ZodString;
4481
+ column: z.ZodString;
4482
+ }, z.core.$strict>>;
2296
4483
  }, z.core.$strict>]>>;
2297
4484
  }, z.core.$strict>;
2298
4485
  id: z.ZodString;
@@ -2321,6 +4508,7 @@ export declare const manifestAutomationsSchema: z.ZodArray<z.ZodObject<{
2321
4508
  sub: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
2322
4509
  }, z.core.$strict>]>>;
2323
4510
  }, z.core.$strict>;
4511
+ module: z.ZodOptional<z.ZodString>;
2324
4512
  }, z.core.$strict>>;
2325
4513
  /** What the checks read of a table. */
2326
4514
  export interface AutomationTableShape {
@@ -2328,8 +4516,14 @@ export interface AutomationTableShape {
2328
4516
  columns: readonly {
2329
4517
  ref: string;
2330
4518
  type: string;
4519
+ /** The table a link column points at. */
4520
+ references?: string | undefined;
2331
4521
  rules?: Readonly<Record<string, unknown>> | undefined;
2332
4522
  }[];
4523
+ /** How people belong to its rows: a way `through` names a table that lists people against them. */
4524
+ belongs?: readonly unknown[] | undefined;
4525
+ /** Read by its own people alone: no rule reads a value of it. */
4526
+ private?: boolean | undefined;
2333
4527
  }
2334
4528
  /** What the checks read of an email template: its key and, per language, the text it is made of. */
2335
4529
  export interface AutomationTemplateShape {
@@ -2347,6 +4541,8 @@ export interface AutomationTemplateShape {
2347
4541
  }
2348
4542
  /** What every rule's email can read whatever its record is. */
2349
4543
  export declare const RULE_EMAIL_VARS: readonly ["now", "ruleName", "recordLabel", "appName"];
4544
+ /** What a summary's email can read beside its sections' figures: the person's name, and when the figures were read (`readAt`). */
4545
+ export declare const DIGEST_EMAIL_VARS: readonly ["now", "ruleName", "appName", "name", "readAt"];
2350
4546
  /**
2351
4547
  * Every placeholder a template reads in one language, in the order it reads
2352
4548
  * them. A `{{row.*}}` is left out: it belongs to the rows a list block draws.
@@ -2394,4 +4590,5 @@ export declare function automationIssues(m: {
2394
4590
  }[];
2395
4591
  } | undefined;
2396
4592
  }): ReferenceIssue[];
4593
+ export {};
2397
4594
  //# sourceMappingURL=automations.d.ts.map