@hexclave/shared 1.0.35 → 1.0.37

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 (86) hide show
  1. package/dist/ai/unified-prompts/reminders.js +1 -1
  2. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +2 -2
  3. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  4. package/dist/config/format.js +10 -0
  5. package/dist/config/format.js.map +1 -1
  6. package/dist/config/schema.d.ts +54 -54
  7. package/dist/config-eval.d.ts +31 -0
  8. package/dist/config-eval.d.ts.map +1 -0
  9. package/dist/config-eval.js +117 -0
  10. package/dist/config-eval.js.map +1 -0
  11. package/dist/config-rendering.d.ts +3 -6
  12. package/dist/config-rendering.d.ts.map +1 -1
  13. package/dist/config-rendering.js +21 -69
  14. package/dist/config-rendering.js.map +1 -1
  15. package/dist/esm/ai/unified-prompts/reminders.js +1 -1
  16. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +2 -2
  17. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  18. package/dist/esm/config/format.js +10 -0
  19. package/dist/esm/config/format.js.map +1 -1
  20. package/dist/esm/config/schema.d.ts +54 -54
  21. package/dist/esm/config-eval.d.ts +31 -0
  22. package/dist/esm/config-eval.d.ts.map +1 -0
  23. package/dist/esm/config-eval.js +112 -0
  24. package/dist/esm/config-eval.js.map +1 -0
  25. package/dist/esm/config-rendering.d.ts +3 -6
  26. package/dist/esm/config-rendering.d.ts.map +1 -1
  27. package/dist/esm/config-rendering.js +15 -58
  28. package/dist/esm/config-rendering.js.map +1 -1
  29. package/dist/esm/interface/admin-interface.d.ts +44 -2
  30. package/dist/esm/interface/admin-interface.d.ts.map +1 -1
  31. package/dist/esm/interface/admin-interface.js +56 -1
  32. package/dist/esm/interface/admin-interface.js.map +1 -1
  33. package/dist/esm/interface/admin-metrics.d.ts +3 -3
  34. package/dist/esm/interface/client-interface.js +1 -1
  35. package/dist/esm/interface/conversations.d.ts +34 -34
  36. package/dist/esm/interface/crud/current-user.d.ts +7 -7
  37. package/dist/esm/interface/crud/email-outbox.d.ts +128 -128
  38. package/dist/esm/interface/crud/projects.d.ts +28 -28
  39. package/dist/esm/interface/crud/team-member-profiles.d.ts +18 -18
  40. package/dist/esm/interface/crud/users.d.ts +12 -12
  41. package/dist/esm/interface/plan-usage.d.ts +1 -1
  42. package/dist/esm/interface/server-interface.js +1 -1
  43. package/dist/esm/interface/webhooks.d.ts +2 -2
  44. package/dist/esm/schema-fields.d.ts +34 -1
  45. package/dist/esm/schema-fields.d.ts.map +1 -1
  46. package/dist/esm/schema-fields.js +53 -2
  47. package/dist/esm/schema-fields.js.map +1 -1
  48. package/dist/esm/utils/jsx-editable-transpiler.js +2 -2
  49. package/dist/esm/utils/promises.js +1 -1
  50. package/dist/interface/admin-interface.d.ts +44 -2
  51. package/dist/interface/admin-interface.d.ts.map +1 -1
  52. package/dist/interface/admin-interface.js +56 -1
  53. package/dist/interface/admin-interface.js.map +1 -1
  54. package/dist/interface/admin-metrics.d.ts +3 -3
  55. package/dist/interface/client-interface.js +1 -1
  56. package/dist/interface/conversations.d.ts +34 -34
  57. package/dist/interface/crud/current-user.d.ts +7 -7
  58. package/dist/interface/crud/email-outbox.d.ts +128 -128
  59. package/dist/interface/crud/projects.d.ts +28 -28
  60. package/dist/interface/crud/team-member-profiles.d.ts +18 -18
  61. package/dist/interface/crud/users.d.ts +12 -12
  62. package/dist/interface/plan-usage.d.ts +1 -1
  63. package/dist/interface/server-interface.js +1 -1
  64. package/dist/interface/webhooks.d.ts +2 -2
  65. package/dist/schema-fields.d.ts +34 -1
  66. package/dist/schema-fields.d.ts.map +1 -1
  67. package/dist/schema-fields.js +55 -1
  68. package/dist/schema-fields.js.map +1 -1
  69. package/dist/utils/jsx-editable-transpiler.js +4 -4
  70. package/dist/utils/promises.js +1 -1
  71. package/package.json +2 -1
  72. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +2 -2
  73. package/src/config/format.ts +18 -0
  74. package/src/config-eval.ts +140 -0
  75. package/src/config-rendering.ts +23 -79
  76. package/src/interface/admin-interface.ts +85 -5
  77. package/src/schema-fields.ts +59 -1
  78. package/dist/esm/hexclave-config-file.d.ts +0 -38
  79. package/dist/esm/hexclave-config-file.d.ts.map +0 -1
  80. package/dist/esm/hexclave-config-file.js +0 -144
  81. package/dist/esm/hexclave-config-file.js.map +0 -1
  82. package/dist/hexclave-config-file.d.ts +0 -38
  83. package/dist/hexclave-config-file.d.ts.map +0 -1
  84. package/dist/hexclave-config-file.js +0 -153
  85. package/dist/hexclave-config-file.js.map +0 -1
  86. package/src/hexclave-config-file.ts +0 -215
@@ -13,12 +13,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
13
13
  user_id: string;
14
14
  type: "user-primary-email";
15
15
  } | {
16
- emails: string[];
17
16
  user_id: string;
18
17
  type: "user-custom-emails";
19
- } | {
20
18
  emails: string[];
19
+ } | {
21
20
  type: "custom-emails";
21
+ emails: string[];
22
22
  };
23
23
  variables: Record<string, {} | null>;
24
24
  skip_deliverability_check: boolean;
@@ -51,12 +51,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
51
51
  user_id: string;
52
52
  type: "user-primary-email";
53
53
  } | {
54
- emails: string[];
55
54
  user_id: string;
56
55
  type: "user-custom-emails";
57
- } | {
58
56
  emails: string[];
57
+ } | {
59
58
  type: "custom-emails";
59
+ emails: string[];
60
60
  };
61
61
  variables: Record<string, {} | null>;
62
62
  skip_deliverability_check: boolean;
@@ -89,12 +89,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
89
89
  user_id: string;
90
90
  type: "user-primary-email";
91
91
  } | {
92
- emails: string[];
93
92
  user_id: string;
94
93
  type: "user-custom-emails";
95
- } | {
96
94
  emails: string[];
95
+ } | {
97
96
  type: "custom-emails";
97
+ emails: string[];
98
98
  };
99
99
  variables: Record<string, {} | null>;
100
100
  skip_deliverability_check: boolean;
@@ -128,12 +128,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
128
128
  user_id: string;
129
129
  type: "user-primary-email";
130
130
  } | {
131
- emails: string[];
132
131
  user_id: string;
133
132
  type: "user-custom-emails";
134
- } | {
135
133
  emails: string[];
134
+ } | {
136
135
  type: "custom-emails";
136
+ emails: string[];
137
137
  };
138
138
  variables: Record<string, {} | null>;
139
139
  skip_deliverability_check: boolean;
@@ -161,10 +161,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
161
161
  } | {
162
162
  status: "scheduled";
163
163
  id: string;
164
+ created_at_millis: number;
165
+ subject: string;
166
+ notification_category_id: string | null;
164
167
  html: string | null;
165
168
  text: string | null;
166
- subject: string;
167
- created_at_millis: number;
168
169
  updated_at_millis: number;
169
170
  tsx_source: string;
170
171
  theme_id: string | null;
@@ -172,12 +173,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
172
173
  user_id: string;
173
174
  type: "user-primary-email";
174
175
  } | {
175
- emails: string[];
176
176
  user_id: string;
177
177
  type: "user-custom-emails";
178
- } | {
179
178
  emails: string[];
179
+ } | {
180
180
  type: "custom-emails";
181
+ emails: string[];
181
182
  };
182
183
  variables: Record<string, {} | null>;
183
184
  skip_deliverability_check: boolean;
@@ -203,14 +204,14 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
203
204
  rendered_at_millis: number;
204
205
  is_transactional: boolean;
205
206
  is_high_priority: boolean;
206
- notification_category_id: string | null;
207
207
  } | {
208
208
  status: "queued";
209
209
  id: string;
210
+ created_at_millis: number;
211
+ subject: string;
212
+ notification_category_id: string | null;
210
213
  html: string | null;
211
214
  text: string | null;
212
- subject: string;
213
- created_at_millis: number;
214
215
  updated_at_millis: number;
215
216
  tsx_source: string;
216
217
  theme_id: string | null;
@@ -218,12 +219,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
218
219
  user_id: string;
219
220
  type: "user-primary-email";
220
221
  } | {
221
- emails: string[];
222
222
  user_id: string;
223
223
  type: "user-custom-emails";
224
- } | {
225
224
  emails: string[];
225
+ } | {
226
226
  type: "custom-emails";
227
+ emails: string[];
227
228
  };
228
229
  variables: Record<string, {} | null>;
229
230
  skip_deliverability_check: boolean;
@@ -249,14 +250,14 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
249
250
  rendered_at_millis: number;
250
251
  is_transactional: boolean;
251
252
  is_high_priority: boolean;
252
- notification_category_id: string | null;
253
253
  } | {
254
254
  status: "sending";
255
255
  id: string;
256
+ created_at_millis: number;
257
+ subject: string;
258
+ notification_category_id: string | null;
256
259
  html: string | null;
257
260
  text: string | null;
258
- subject: string;
259
- created_at_millis: number;
260
261
  updated_at_millis: number;
261
262
  tsx_source: string;
262
263
  theme_id: string | null;
@@ -264,12 +265,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
264
265
  user_id: string;
265
266
  type: "user-primary-email";
266
267
  } | {
267
- emails: string[];
268
268
  user_id: string;
269
269
  type: "user-custom-emails";
270
- } | {
271
270
  emails: string[];
271
+ } | {
272
272
  type: "custom-emails";
273
+ emails: string[];
273
274
  };
274
275
  variables: Record<string, {} | null>;
275
276
  skip_deliverability_check: boolean;
@@ -295,15 +296,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
295
296
  rendered_at_millis: number;
296
297
  is_transactional: boolean;
297
298
  is_high_priority: boolean;
298
- notification_category_id: string | null;
299
299
  started_sending_at_millis: number;
300
300
  } | {
301
301
  status: "server-error";
302
302
  id: string;
303
+ created_at_millis: number;
304
+ subject: string;
305
+ notification_category_id: string | null;
303
306
  html: string | null;
304
307
  text: string | null;
305
- subject: string;
306
- created_at_millis: number;
307
308
  updated_at_millis: number;
308
309
  tsx_source: string;
309
310
  theme_id: string | null;
@@ -311,12 +312,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
311
312
  user_id: string;
312
313
  type: "user-primary-email";
313
314
  } | {
314
- emails: string[];
315
315
  user_id: string;
316
316
  type: "user-custom-emails";
317
- } | {
318
317
  emails: string[];
318
+ } | {
319
319
  type: "custom-emails";
320
+ emails: string[];
320
321
  };
321
322
  variables: Record<string, {} | null>;
322
323
  skip_deliverability_check: boolean;
@@ -342,19 +343,18 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
342
343
  rendered_at_millis: number;
343
344
  is_transactional: boolean;
344
345
  is_high_priority: boolean;
345
- notification_category_id: string | null;
346
346
  started_sending_at_millis: number;
347
347
  error_at_millis: number;
348
348
  server_error: string;
349
349
  } | {
350
+ subject?: string | undefined;
351
+ notification_category_id?: string | null | undefined;
350
352
  html?: string | null | undefined;
351
353
  text?: string | null | undefined;
352
- subject?: string | undefined;
353
354
  started_rendering_at_millis?: number | undefined;
354
355
  rendered_at_millis?: number | undefined;
355
356
  is_transactional?: boolean | undefined;
356
357
  is_high_priority?: boolean | undefined;
357
- notification_category_id?: string | null | undefined;
358
358
  started_sending_at_millis?: number | undefined;
359
359
  status: "skipped";
360
360
  id: string;
@@ -366,12 +366,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
366
366
  user_id: string;
367
367
  type: "user-primary-email";
368
368
  } | {
369
- emails: string[];
370
369
  user_id: string;
371
370
  type: "user-custom-emails";
372
- } | {
373
371
  emails: string[];
372
+ } | {
374
373
  type: "custom-emails";
374
+ emails: string[];
375
375
  };
376
376
  variables: Record<string, {} | null>;
377
377
  skip_deliverability_check: boolean;
@@ -399,10 +399,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
399
399
  } | {
400
400
  status: "bounced";
401
401
  id: string;
402
+ created_at_millis: number;
403
+ subject: string;
404
+ notification_category_id: string | null;
402
405
  html: string | null;
403
406
  text: string | null;
404
- subject: string;
405
- created_at_millis: number;
406
407
  updated_at_millis: number;
407
408
  tsx_source: string;
408
409
  theme_id: string | null;
@@ -410,12 +411,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
410
411
  user_id: string;
411
412
  type: "user-primary-email";
412
413
  } | {
413
- emails: string[];
414
414
  user_id: string;
415
415
  type: "user-custom-emails";
416
- } | {
417
416
  emails: string[];
417
+ } | {
418
418
  type: "custom-emails";
419
+ emails: string[];
419
420
  };
420
421
  variables: Record<string, {} | null>;
421
422
  skip_deliverability_check: boolean;
@@ -441,16 +442,16 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
441
442
  rendered_at_millis: number;
442
443
  is_transactional: boolean;
443
444
  is_high_priority: boolean;
444
- notification_category_id: string | null;
445
445
  started_sending_at_millis: number;
446
446
  bounced_at_millis: number;
447
447
  } | {
448
448
  status: "delivery-delayed";
449
449
  id: string;
450
+ created_at_millis: number;
451
+ subject: string;
452
+ notification_category_id: string | null;
450
453
  html: string | null;
451
454
  text: string | null;
452
- subject: string;
453
- created_at_millis: number;
454
455
  updated_at_millis: number;
455
456
  tsx_source: string;
456
457
  theme_id: string | null;
@@ -458,12 +459,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
458
459
  user_id: string;
459
460
  type: "user-primary-email";
460
461
  } | {
461
- emails: string[];
462
462
  user_id: string;
463
463
  type: "user-custom-emails";
464
- } | {
465
464
  emails: string[];
465
+ } | {
466
466
  type: "custom-emails";
467
+ emails: string[];
467
468
  };
468
469
  variables: Record<string, {} | null>;
469
470
  skip_deliverability_check: boolean;
@@ -489,16 +490,16 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
489
490
  rendered_at_millis: number;
490
491
  is_transactional: boolean;
491
492
  is_high_priority: boolean;
492
- notification_category_id: string | null;
493
493
  started_sending_at_millis: number;
494
494
  delivery_delayed_at_millis: number;
495
495
  } | {
496
496
  status: "sent";
497
497
  id: string;
498
+ created_at_millis: number;
499
+ subject: string;
500
+ notification_category_id: string | null;
498
501
  html: string | null;
499
502
  text: string | null;
500
- subject: string;
501
- created_at_millis: number;
502
503
  updated_at_millis: number;
503
504
  tsx_source: string;
504
505
  theme_id: string | null;
@@ -506,12 +507,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
506
507
  user_id: string;
507
508
  type: "user-primary-email";
508
509
  } | {
509
- emails: string[];
510
510
  user_id: string;
511
511
  type: "user-custom-emails";
512
- } | {
513
512
  emails: string[];
513
+ } | {
514
514
  type: "custom-emails";
515
+ emails: string[];
515
516
  };
516
517
  variables: Record<string, {} | null>;
517
518
  skip_deliverability_check: boolean;
@@ -537,17 +538,17 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
537
538
  rendered_at_millis: number;
538
539
  is_transactional: boolean;
539
540
  is_high_priority: boolean;
540
- notification_category_id: string | null;
541
541
  started_sending_at_millis: number;
542
542
  delivered_at_millis: number;
543
543
  can_have_delivery_info: boolean;
544
544
  } | {
545
545
  status: "opened";
546
546
  id: string;
547
+ created_at_millis: number;
548
+ subject: string;
549
+ notification_category_id: string | null;
547
550
  html: string | null;
548
551
  text: string | null;
549
- subject: string;
550
- created_at_millis: number;
551
552
  updated_at_millis: number;
552
553
  tsx_source: string;
553
554
  theme_id: string | null;
@@ -555,12 +556,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
555
556
  user_id: string;
556
557
  type: "user-primary-email";
557
558
  } | {
558
- emails: string[];
559
559
  user_id: string;
560
560
  type: "user-custom-emails";
561
- } | {
562
561
  emails: string[];
562
+ } | {
563
563
  type: "custom-emails";
564
+ emails: string[];
564
565
  };
565
566
  variables: Record<string, {} | null>;
566
567
  skip_deliverability_check: boolean;
@@ -586,7 +587,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
586
587
  rendered_at_millis: number;
587
588
  is_transactional: boolean;
588
589
  is_high_priority: boolean;
589
- notification_category_id: string | null;
590
590
  started_sending_at_millis: number;
591
591
  delivered_at_millis: number;
592
592
  can_have_delivery_info: boolean;
@@ -594,10 +594,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
594
594
  } | {
595
595
  status: "clicked";
596
596
  id: string;
597
+ created_at_millis: number;
598
+ subject: string;
599
+ notification_category_id: string | null;
597
600
  html: string | null;
598
601
  text: string | null;
599
- subject: string;
600
- created_at_millis: number;
601
602
  updated_at_millis: number;
602
603
  tsx_source: string;
603
604
  theme_id: string | null;
@@ -605,12 +606,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
605
606
  user_id: string;
606
607
  type: "user-primary-email";
607
608
  } | {
608
- emails: string[];
609
609
  user_id: string;
610
610
  type: "user-custom-emails";
611
- } | {
612
611
  emails: string[];
612
+ } | {
613
613
  type: "custom-emails";
614
+ emails: string[];
614
615
  };
615
616
  variables: Record<string, {} | null>;
616
617
  skip_deliverability_check: boolean;
@@ -636,7 +637,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
636
637
  rendered_at_millis: number;
637
638
  is_transactional: boolean;
638
639
  is_high_priority: boolean;
639
- notification_category_id: string | null;
640
640
  started_sending_at_millis: number;
641
641
  delivered_at_millis: number;
642
642
  can_have_delivery_info: boolean;
@@ -644,10 +644,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
644
644
  } | {
645
645
  status: "marked-as-spam";
646
646
  id: string;
647
+ created_at_millis: number;
648
+ subject: string;
649
+ notification_category_id: string | null;
647
650
  html: string | null;
648
651
  text: string | null;
649
- subject: string;
650
- created_at_millis: number;
651
652
  updated_at_millis: number;
652
653
  tsx_source: string;
653
654
  theme_id: string | null;
@@ -655,12 +656,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
655
656
  user_id: string;
656
657
  type: "user-primary-email";
657
658
  } | {
658
- emails: string[];
659
659
  user_id: string;
660
660
  type: "user-custom-emails";
661
- } | {
662
661
  emails: string[];
662
+ } | {
663
663
  type: "custom-emails";
664
+ emails: string[];
664
665
  };
665
666
  variables: Record<string, {} | null>;
666
667
  skip_deliverability_check: boolean;
@@ -686,7 +687,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
686
687
  rendered_at_millis: number;
687
688
  is_transactional: boolean;
688
689
  is_high_priority: boolean;
689
- notification_category_id: string | null;
690
690
  started_sending_at_millis: number;
691
691
  delivered_at_millis: number;
692
692
  can_have_delivery_info: boolean;
@@ -699,12 +699,12 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
699
699
  user_id: string;
700
700
  type: "user-primary-email";
701
701
  } | {
702
- emails: string[];
703
702
  user_id: string;
704
703
  type: "user-custom-emails";
705
- } | {
706
704
  emails: string[];
705
+ } | {
707
706
  type: "custom-emails";
707
+ emails: string[];
708
708
  } | undefined;
709
709
  variables: Record<string, {} | null> | undefined;
710
710
  skip_deliverability_check: boolean | undefined;
@@ -733,12 +733,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
733
733
  user_id: string;
734
734
  type: "user-primary-email";
735
735
  } | {
736
- emails: string[];
737
736
  user_id: string;
738
737
  type: "user-custom-emails";
739
- } | {
740
738
  emails: string[];
739
+ } | {
741
740
  type: "custom-emails";
741
+ emails: string[];
742
742
  };
743
743
  variables: Record<string, {} | null>;
744
744
  skip_deliverability_check: boolean;
@@ -771,12 +771,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
771
771
  user_id: string;
772
772
  type: "user-primary-email";
773
773
  } | {
774
- emails: string[];
775
774
  user_id: string;
776
775
  type: "user-custom-emails";
777
- } | {
778
776
  emails: string[];
777
+ } | {
779
778
  type: "custom-emails";
779
+ emails: string[];
780
780
  };
781
781
  variables: Record<string, {} | null>;
782
782
  skip_deliverability_check: boolean;
@@ -809,12 +809,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
809
809
  user_id: string;
810
810
  type: "user-primary-email";
811
811
  } | {
812
- emails: string[];
813
812
  user_id: string;
814
813
  type: "user-custom-emails";
815
- } | {
816
814
  emails: string[];
815
+ } | {
817
816
  type: "custom-emails";
817
+ emails: string[];
818
818
  };
819
819
  variables: Record<string, {} | null>;
820
820
  skip_deliverability_check: boolean;
@@ -848,12 +848,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
848
848
  user_id: string;
849
849
  type: "user-primary-email";
850
850
  } | {
851
- emails: string[];
852
851
  user_id: string;
853
852
  type: "user-custom-emails";
854
- } | {
855
853
  emails: string[];
854
+ } | {
856
855
  type: "custom-emails";
856
+ emails: string[];
857
857
  };
858
858
  variables: Record<string, {} | null>;
859
859
  skip_deliverability_check: boolean;
@@ -881,10 +881,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
881
881
  } | {
882
882
  status: "scheduled";
883
883
  id: string;
884
+ created_at_millis: number;
885
+ subject: string;
886
+ notification_category_id: string | null;
884
887
  html: string | null;
885
888
  text: string | null;
886
- subject: string;
887
- created_at_millis: number;
888
889
  updated_at_millis: number;
889
890
  tsx_source: string;
890
891
  theme_id: string | null;
@@ -892,12 +893,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
892
893
  user_id: string;
893
894
  type: "user-primary-email";
894
895
  } | {
895
- emails: string[];
896
896
  user_id: string;
897
897
  type: "user-custom-emails";
898
- } | {
899
898
  emails: string[];
899
+ } | {
900
900
  type: "custom-emails";
901
+ emails: string[];
901
902
  };
902
903
  variables: Record<string, {} | null>;
903
904
  skip_deliverability_check: boolean;
@@ -923,14 +924,14 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
923
924
  rendered_at_millis: number;
924
925
  is_transactional: boolean;
925
926
  is_high_priority: boolean;
926
- notification_category_id: string | null;
927
927
  } | {
928
928
  status: "queued";
929
929
  id: string;
930
+ created_at_millis: number;
931
+ subject: string;
932
+ notification_category_id: string | null;
930
933
  html: string | null;
931
934
  text: string | null;
932
- subject: string;
933
- created_at_millis: number;
934
935
  updated_at_millis: number;
935
936
  tsx_source: string;
936
937
  theme_id: string | null;
@@ -938,12 +939,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
938
939
  user_id: string;
939
940
  type: "user-primary-email";
940
941
  } | {
941
- emails: string[];
942
942
  user_id: string;
943
943
  type: "user-custom-emails";
944
- } | {
945
944
  emails: string[];
945
+ } | {
946
946
  type: "custom-emails";
947
+ emails: string[];
947
948
  };
948
949
  variables: Record<string, {} | null>;
949
950
  skip_deliverability_check: boolean;
@@ -969,14 +970,14 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
969
970
  rendered_at_millis: number;
970
971
  is_transactional: boolean;
971
972
  is_high_priority: boolean;
972
- notification_category_id: string | null;
973
973
  } | {
974
974
  status: "sending";
975
975
  id: string;
976
+ created_at_millis: number;
977
+ subject: string;
978
+ notification_category_id: string | null;
976
979
  html: string | null;
977
980
  text: string | null;
978
- subject: string;
979
- created_at_millis: number;
980
981
  updated_at_millis: number;
981
982
  tsx_source: string;
982
983
  theme_id: string | null;
@@ -984,12 +985,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
984
985
  user_id: string;
985
986
  type: "user-primary-email";
986
987
  } | {
987
- emails: string[];
988
988
  user_id: string;
989
989
  type: "user-custom-emails";
990
- } | {
991
990
  emails: string[];
991
+ } | {
992
992
  type: "custom-emails";
993
+ emails: string[];
993
994
  };
994
995
  variables: Record<string, {} | null>;
995
996
  skip_deliverability_check: boolean;
@@ -1015,15 +1016,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1015
1016
  rendered_at_millis: number;
1016
1017
  is_transactional: boolean;
1017
1018
  is_high_priority: boolean;
1018
- notification_category_id: string | null;
1019
1019
  started_sending_at_millis: number;
1020
1020
  } | {
1021
1021
  status: "server-error";
1022
1022
  id: string;
1023
+ created_at_millis: number;
1024
+ subject: string;
1025
+ notification_category_id: string | null;
1023
1026
  html: string | null;
1024
1027
  text: string | null;
1025
- subject: string;
1026
- created_at_millis: number;
1027
1028
  updated_at_millis: number;
1028
1029
  tsx_source: string;
1029
1030
  theme_id: string | null;
@@ -1031,12 +1032,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1031
1032
  user_id: string;
1032
1033
  type: "user-primary-email";
1033
1034
  } | {
1034
- emails: string[];
1035
1035
  user_id: string;
1036
1036
  type: "user-custom-emails";
1037
- } | {
1038
1037
  emails: string[];
1038
+ } | {
1039
1039
  type: "custom-emails";
1040
+ emails: string[];
1040
1041
  };
1041
1042
  variables: Record<string, {} | null>;
1042
1043
  skip_deliverability_check: boolean;
@@ -1062,19 +1063,18 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1062
1063
  rendered_at_millis: number;
1063
1064
  is_transactional: boolean;
1064
1065
  is_high_priority: boolean;
1065
- notification_category_id: string | null;
1066
1066
  started_sending_at_millis: number;
1067
1067
  error_at_millis: number;
1068
1068
  server_error: string;
1069
1069
  } | {
1070
+ subject?: string | undefined;
1071
+ notification_category_id?: string | null | undefined;
1070
1072
  html?: string | null | undefined;
1071
1073
  text?: string | null | undefined;
1072
- subject?: string | undefined;
1073
1074
  started_rendering_at_millis?: number | undefined;
1074
1075
  rendered_at_millis?: number | undefined;
1075
1076
  is_transactional?: boolean | undefined;
1076
1077
  is_high_priority?: boolean | undefined;
1077
- notification_category_id?: string | null | undefined;
1078
1078
  started_sending_at_millis?: number | undefined;
1079
1079
  status: "skipped";
1080
1080
  id: string;
@@ -1086,12 +1086,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1086
1086
  user_id: string;
1087
1087
  type: "user-primary-email";
1088
1088
  } | {
1089
- emails: string[];
1090
1089
  user_id: string;
1091
1090
  type: "user-custom-emails";
1092
- } | {
1093
1091
  emails: string[];
1092
+ } | {
1094
1093
  type: "custom-emails";
1094
+ emails: string[];
1095
1095
  };
1096
1096
  variables: Record<string, {} | null>;
1097
1097
  skip_deliverability_check: boolean;
@@ -1119,10 +1119,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1119
1119
  } | {
1120
1120
  status: "bounced";
1121
1121
  id: string;
1122
+ created_at_millis: number;
1123
+ subject: string;
1124
+ notification_category_id: string | null;
1122
1125
  html: string | null;
1123
1126
  text: string | null;
1124
- subject: string;
1125
- created_at_millis: number;
1126
1127
  updated_at_millis: number;
1127
1128
  tsx_source: string;
1128
1129
  theme_id: string | null;
@@ -1130,12 +1131,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1130
1131
  user_id: string;
1131
1132
  type: "user-primary-email";
1132
1133
  } | {
1133
- emails: string[];
1134
1134
  user_id: string;
1135
1135
  type: "user-custom-emails";
1136
- } | {
1137
1136
  emails: string[];
1137
+ } | {
1138
1138
  type: "custom-emails";
1139
+ emails: string[];
1139
1140
  };
1140
1141
  variables: Record<string, {} | null>;
1141
1142
  skip_deliverability_check: boolean;
@@ -1161,16 +1162,16 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1161
1162
  rendered_at_millis: number;
1162
1163
  is_transactional: boolean;
1163
1164
  is_high_priority: boolean;
1164
- notification_category_id: string | null;
1165
1165
  started_sending_at_millis: number;
1166
1166
  bounced_at_millis: number;
1167
1167
  } | {
1168
1168
  status: "delivery-delayed";
1169
1169
  id: string;
1170
+ created_at_millis: number;
1171
+ subject: string;
1172
+ notification_category_id: string | null;
1170
1173
  html: string | null;
1171
1174
  text: string | null;
1172
- subject: string;
1173
- created_at_millis: number;
1174
1175
  updated_at_millis: number;
1175
1176
  tsx_source: string;
1176
1177
  theme_id: string | null;
@@ -1178,12 +1179,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1178
1179
  user_id: string;
1179
1180
  type: "user-primary-email";
1180
1181
  } | {
1181
- emails: string[];
1182
1182
  user_id: string;
1183
1183
  type: "user-custom-emails";
1184
- } | {
1185
1184
  emails: string[];
1185
+ } | {
1186
1186
  type: "custom-emails";
1187
+ emails: string[];
1187
1188
  };
1188
1189
  variables: Record<string, {} | null>;
1189
1190
  skip_deliverability_check: boolean;
@@ -1209,16 +1210,16 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1209
1210
  rendered_at_millis: number;
1210
1211
  is_transactional: boolean;
1211
1212
  is_high_priority: boolean;
1212
- notification_category_id: string | null;
1213
1213
  started_sending_at_millis: number;
1214
1214
  delivery_delayed_at_millis: number;
1215
1215
  } | {
1216
1216
  status: "sent";
1217
1217
  id: string;
1218
+ created_at_millis: number;
1219
+ subject: string;
1220
+ notification_category_id: string | null;
1218
1221
  html: string | null;
1219
1222
  text: string | null;
1220
- subject: string;
1221
- created_at_millis: number;
1222
1223
  updated_at_millis: number;
1223
1224
  tsx_source: string;
1224
1225
  theme_id: string | null;
@@ -1226,12 +1227,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1226
1227
  user_id: string;
1227
1228
  type: "user-primary-email";
1228
1229
  } | {
1229
- emails: string[];
1230
1230
  user_id: string;
1231
1231
  type: "user-custom-emails";
1232
- } | {
1233
1232
  emails: string[];
1233
+ } | {
1234
1234
  type: "custom-emails";
1235
+ emails: string[];
1235
1236
  };
1236
1237
  variables: Record<string, {} | null>;
1237
1238
  skip_deliverability_check: boolean;
@@ -1257,17 +1258,17 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1257
1258
  rendered_at_millis: number;
1258
1259
  is_transactional: boolean;
1259
1260
  is_high_priority: boolean;
1260
- notification_category_id: string | null;
1261
1261
  started_sending_at_millis: number;
1262
1262
  delivered_at_millis: number;
1263
1263
  can_have_delivery_info: boolean;
1264
1264
  } | {
1265
1265
  status: "opened";
1266
1266
  id: string;
1267
+ created_at_millis: number;
1268
+ subject: string;
1269
+ notification_category_id: string | null;
1267
1270
  html: string | null;
1268
1271
  text: string | null;
1269
- subject: string;
1270
- created_at_millis: number;
1271
1272
  updated_at_millis: number;
1272
1273
  tsx_source: string;
1273
1274
  theme_id: string | null;
@@ -1275,12 +1276,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1275
1276
  user_id: string;
1276
1277
  type: "user-primary-email";
1277
1278
  } | {
1278
- emails: string[];
1279
1279
  user_id: string;
1280
1280
  type: "user-custom-emails";
1281
- } | {
1282
1281
  emails: string[];
1282
+ } | {
1283
1283
  type: "custom-emails";
1284
+ emails: string[];
1284
1285
  };
1285
1286
  variables: Record<string, {} | null>;
1286
1287
  skip_deliverability_check: boolean;
@@ -1306,7 +1307,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1306
1307
  rendered_at_millis: number;
1307
1308
  is_transactional: boolean;
1308
1309
  is_high_priority: boolean;
1309
- notification_category_id: string | null;
1310
1310
  started_sending_at_millis: number;
1311
1311
  delivered_at_millis: number;
1312
1312
  can_have_delivery_info: boolean;
@@ -1314,10 +1314,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1314
1314
  } | {
1315
1315
  status: "clicked";
1316
1316
  id: string;
1317
+ created_at_millis: number;
1318
+ subject: string;
1319
+ notification_category_id: string | null;
1317
1320
  html: string | null;
1318
1321
  text: string | null;
1319
- subject: string;
1320
- created_at_millis: number;
1321
1322
  updated_at_millis: number;
1322
1323
  tsx_source: string;
1323
1324
  theme_id: string | null;
@@ -1325,12 +1326,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1325
1326
  user_id: string;
1326
1327
  type: "user-primary-email";
1327
1328
  } | {
1328
- emails: string[];
1329
1329
  user_id: string;
1330
1330
  type: "user-custom-emails";
1331
- } | {
1332
1331
  emails: string[];
1332
+ } | {
1333
1333
  type: "custom-emails";
1334
+ emails: string[];
1334
1335
  };
1335
1336
  variables: Record<string, {} | null>;
1336
1337
  skip_deliverability_check: boolean;
@@ -1356,7 +1357,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1356
1357
  rendered_at_millis: number;
1357
1358
  is_transactional: boolean;
1358
1359
  is_high_priority: boolean;
1359
- notification_category_id: string | null;
1360
1360
  started_sending_at_millis: number;
1361
1361
  delivered_at_millis: number;
1362
1362
  can_have_delivery_info: boolean;
@@ -1364,10 +1364,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1364
1364
  } | {
1365
1365
  status: "marked-as-spam";
1366
1366
  id: string;
1367
+ created_at_millis: number;
1368
+ subject: string;
1369
+ notification_category_id: string | null;
1367
1370
  html: string | null;
1368
1371
  text: string | null;
1369
- subject: string;
1370
- created_at_millis: number;
1371
1372
  updated_at_millis: number;
1372
1373
  tsx_source: string;
1373
1374
  theme_id: string | null;
@@ -1375,12 +1376,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1375
1376
  user_id: string;
1376
1377
  type: "user-primary-email";
1377
1378
  } | {
1378
- emails: string[];
1379
1379
  user_id: string;
1380
1380
  type: "user-custom-emails";
1381
- } | {
1382
1381
  emails: string[];
1382
+ } | {
1383
1383
  type: "custom-emails";
1384
+ emails: string[];
1384
1385
  };
1385
1386
  variables: Record<string, {} | null>;
1386
1387
  skip_deliverability_check: boolean;
@@ -1406,7 +1407,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1406
1407
  rendered_at_millis: number;
1407
1408
  is_transactional: boolean;
1408
1409
  is_high_priority: boolean;
1409
- notification_category_id: string | null;
1410
1410
  started_sending_at_millis: number;
1411
1411
  delivered_at_millis: number;
1412
1412
  can_have_delivery_info: boolean;
@@ -1419,12 +1419,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1419
1419
  user_id: string;
1420
1420
  type: "user-primary-email";
1421
1421
  } | {
1422
- emails: string[];
1423
1422
  user_id: string;
1424
1423
  type: "user-custom-emails";
1425
- } | {
1426
1424
  emails: string[];
1425
+ } | {
1427
1426
  type: "custom-emails";
1427
+ emails: string[];
1428
1428
  } | undefined;
1429
1429
  variables: Record<string, {} | null> | undefined;
1430
1430
  skip_deliverability_check: boolean | undefined;