@hexclave/shared 1.0.18 → 1.0.19

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 (63) hide show
  1. package/dist/ai/unified-prompts/reminders.js +10 -7
  2. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  3. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts +2 -1
  4. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  5. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +238 -10
  6. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  7. package/dist/ai/unified-prompts/skill-site-prompt.js +1 -1
  8. package/dist/ai/unified-prompts/skill-site-prompt.js.map +1 -1
  9. package/dist/apps/apps-config.d.ts +7 -3
  10. package/dist/apps/apps-config.d.ts.map +1 -1
  11. package/dist/apps/apps-config.js +12 -4
  12. package/dist/apps/apps-config.js.map +1 -1
  13. package/dist/config/schema.d.ts +217 -217
  14. package/dist/esm/ai/unified-prompts/reminders.js +10 -7
  15. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  16. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts +2 -1
  17. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  18. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +238 -11
  19. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  20. package/dist/esm/ai/unified-prompts/skill-site-prompt.js +1 -1
  21. package/dist/esm/ai/unified-prompts/skill-site-prompt.js.map +1 -1
  22. package/dist/esm/apps/apps-config.d.ts +7 -3
  23. package/dist/esm/apps/apps-config.d.ts.map +1 -1
  24. package/dist/esm/apps/apps-config.js +12 -5
  25. package/dist/esm/apps/apps-config.js.map +1 -1
  26. package/dist/esm/config/schema.d.ts +217 -217
  27. package/dist/esm/interface/admin-metrics.d.ts +15 -15
  28. package/dist/esm/interface/conversations.d.ts +12 -12
  29. package/dist/esm/interface/crud/current-user.d.ts +10 -10
  30. package/dist/esm/interface/crud/email-outbox.d.ts +146 -146
  31. package/dist/esm/interface/crud/products.d.ts +16 -16
  32. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  33. package/dist/esm/interface/crud/project-api-keys.d.ts +6 -6
  34. package/dist/esm/interface/crud/projects.d.ts +35 -35
  35. package/dist/esm/interface/crud/team-member-profiles.d.ts +20 -20
  36. package/dist/esm/interface/crud/transactions.d.ts +21 -21
  37. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  38. package/dist/esm/interface/crud/users.d.ts +16 -16
  39. package/dist/esm/interface/webhooks.d.ts +4 -4
  40. package/dist/esm/known-errors.d.ts +5 -5
  41. package/dist/esm/schema-fields.d.ts +5 -5
  42. package/dist/esm/sessions.d.ts +7 -7
  43. package/dist/interface/admin-metrics.d.ts +15 -15
  44. package/dist/interface/conversations.d.ts +12 -12
  45. package/dist/interface/crud/current-user.d.ts +10 -10
  46. package/dist/interface/crud/email-outbox.d.ts +146 -146
  47. package/dist/interface/crud/products.d.ts +16 -16
  48. package/dist/interface/crud/products.d.ts.map +1 -1
  49. package/dist/interface/crud/project-api-keys.d.ts +6 -6
  50. package/dist/interface/crud/projects.d.ts +35 -35
  51. package/dist/interface/crud/team-member-profiles.d.ts +20 -20
  52. package/dist/interface/crud/transactions.d.ts +21 -21
  53. package/dist/interface/crud/transactions.d.ts.map +1 -1
  54. package/dist/interface/crud/users.d.ts +16 -16
  55. package/dist/interface/webhooks.d.ts +4 -4
  56. package/dist/known-errors.d.ts +5 -5
  57. package/dist/schema-fields.d.ts +5 -5
  58. package/dist/sessions.d.ts +7 -7
  59. package/package.json +1 -1
  60. package/src/ai/unified-prompts/reminders.ts +10 -7
  61. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +244 -10
  62. package/src/ai/unified-prompts/skill-site-prompt.ts +1 -1
  63. package/src/apps/apps-config.ts +13 -2
@@ -4,20 +4,20 @@ import { CrudTypeOf } from "../../crud";
4
4
 
5
5
  //#region src/interface/crud/email-outbox.d.ts
6
6
  declare const emailOutboxReadSchema: yup$1.MixedSchema<{
7
- status: "paused";
8
7
  id: string;
8
+ status: "paused";
9
+ created_at_millis: number;
9
10
  to: {
10
- user_id: string;
11
11
  type: "user-primary-email";
12
- } | {
13
12
  user_id: string;
13
+ } | {
14
14
  type: "user-custom-emails";
15
+ user_id: string;
15
16
  emails: string[];
16
17
  } | {
17
18
  type: "custom-emails";
18
19
  emails: string[];
19
20
  };
20
- created_at_millis: number;
21
21
  updated_at_millis: number;
22
22
  tsx_source: string;
23
23
  theme_id: string | null;
@@ -42,20 +42,20 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
42
42
  has_rendered: boolean;
43
43
  has_delivered: boolean;
44
44
  } | {
45
- status: "preparing";
46
45
  id: string;
46
+ status: "preparing";
47
+ created_at_millis: number;
47
48
  to: {
48
- user_id: string;
49
49
  type: "user-primary-email";
50
- } | {
51
50
  user_id: string;
51
+ } | {
52
52
  type: "user-custom-emails";
53
+ user_id: string;
53
54
  emails: string[];
54
55
  } | {
55
56
  type: "custom-emails";
56
57
  emails: string[];
57
58
  };
58
- created_at_millis: number;
59
59
  updated_at_millis: number;
60
60
  tsx_source: string;
61
61
  theme_id: string | null;
@@ -80,20 +80,20 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
80
80
  has_rendered: boolean;
81
81
  has_delivered: boolean;
82
82
  } | {
83
- status: "rendering";
84
83
  id: string;
84
+ status: "rendering";
85
+ created_at_millis: number;
85
86
  to: {
86
- user_id: string;
87
87
  type: "user-primary-email";
88
- } | {
89
88
  user_id: string;
89
+ } | {
90
90
  type: "user-custom-emails";
91
+ user_id: string;
91
92
  emails: string[];
92
93
  } | {
93
94
  type: "custom-emails";
94
95
  emails: string[];
95
96
  };
96
- created_at_millis: number;
97
97
  updated_at_millis: number;
98
98
  tsx_source: string;
99
99
  theme_id: string | null;
@@ -119,20 +119,20 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
119
119
  has_delivered: boolean;
120
120
  started_rendering_at_millis: number;
121
121
  } | {
122
- status: "render-error";
123
122
  id: string;
123
+ status: "render-error";
124
+ created_at_millis: number;
124
125
  to: {
125
- user_id: string;
126
126
  type: "user-primary-email";
127
- } | {
128
127
  user_id: string;
128
+ } | {
129
129
  type: "user-custom-emails";
130
+ user_id: string;
130
131
  emails: string[];
131
132
  } | {
132
133
  type: "custom-emails";
133
134
  emails: string[];
134
135
  };
135
- created_at_millis: number;
136
136
  updated_at_millis: number;
137
137
  tsx_source: string;
138
138
  theme_id: string | null;
@@ -160,21 +160,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
160
160
  rendered_at_millis: number;
161
161
  render_error: string;
162
162
  } | {
163
- status: "scheduled";
164
163
  id: string;
164
+ status: "scheduled";
165
165
  subject: string;
166
+ created_at_millis: number;
167
+ notification_category_id: string | null;
166
168
  to: {
167
- user_id: string;
168
169
  type: "user-primary-email";
169
- } | {
170
170
  user_id: string;
171
+ } | {
171
172
  type: "user-custom-emails";
173
+ user_id: string;
172
174
  emails: string[];
173
175
  } | {
174
176
  type: "custom-emails";
175
177
  emails: string[];
176
178
  };
177
- created_at_millis: number;
178
179
  updated_at_millis: number;
179
180
  tsx_source: string;
180
181
  theme_id: string | null;
@@ -204,23 +205,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
204
205
  text: string | null;
205
206
  is_transactional: boolean;
206
207
  is_high_priority: boolean;
207
- notification_category_id: string | null;
208
208
  } | {
209
- status: "queued";
210
209
  id: string;
210
+ status: "queued";
211
211
  subject: string;
212
+ created_at_millis: number;
213
+ notification_category_id: string | null;
212
214
  to: {
213
- user_id: string;
214
215
  type: "user-primary-email";
215
- } | {
216
216
  user_id: string;
217
+ } | {
217
218
  type: "user-custom-emails";
219
+ user_id: string;
218
220
  emails: string[];
219
221
  } | {
220
222
  type: "custom-emails";
221
223
  emails: string[];
222
224
  };
223
- created_at_millis: number;
224
225
  updated_at_millis: number;
225
226
  tsx_source: string;
226
227
  theme_id: string | null;
@@ -250,23 +251,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
250
251
  text: string | null;
251
252
  is_transactional: boolean;
252
253
  is_high_priority: boolean;
253
- notification_category_id: string | null;
254
254
  } | {
255
- status: "sending";
256
255
  id: string;
256
+ status: "sending";
257
257
  subject: string;
258
+ created_at_millis: number;
259
+ notification_category_id: string | null;
258
260
  to: {
259
- user_id: string;
260
261
  type: "user-primary-email";
261
- } | {
262
262
  user_id: string;
263
+ } | {
263
264
  type: "user-custom-emails";
265
+ user_id: string;
264
266
  emails: string[];
265
267
  } | {
266
268
  type: "custom-emails";
267
269
  emails: string[];
268
270
  };
269
- created_at_millis: number;
270
271
  updated_at_millis: number;
271
272
  tsx_source: string;
272
273
  theme_id: string | null;
@@ -296,24 +297,24 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
296
297
  text: string | null;
297
298
  is_transactional: boolean;
298
299
  is_high_priority: boolean;
299
- notification_category_id: string | null;
300
300
  started_sending_at_millis: number;
301
301
  } | {
302
- status: "server-error";
303
302
  id: string;
303
+ status: "server-error";
304
304
  subject: string;
305
+ created_at_millis: number;
306
+ notification_category_id: string | null;
305
307
  to: {
306
- user_id: string;
307
308
  type: "user-primary-email";
308
- } | {
309
309
  user_id: string;
310
+ } | {
310
311
  type: "user-custom-emails";
312
+ user_id: string;
311
313
  emails: string[];
312
314
  } | {
313
315
  type: "custom-emails";
314
316
  emails: string[];
315
317
  };
316
- created_at_millis: number;
317
318
  updated_at_millis: number;
318
319
  tsx_source: string;
319
320
  theme_id: string | null;
@@ -343,34 +344,33 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
343
344
  text: string | null;
344
345
  is_transactional: boolean;
345
346
  is_high_priority: boolean;
346
- notification_category_id: string | null;
347
347
  started_sending_at_millis: number;
348
348
  error_at_millis: number;
349
349
  server_error: string;
350
350
  } | {
351
351
  subject?: string | undefined;
352
+ notification_category_id?: string | null | undefined;
352
353
  started_rendering_at_millis?: number | undefined;
353
354
  rendered_at_millis?: number | undefined;
354
355
  html?: string | null | undefined;
355
356
  text?: string | null | undefined;
356
357
  is_transactional?: boolean | undefined;
357
358
  is_high_priority?: boolean | undefined;
358
- notification_category_id?: string | null | undefined;
359
359
  started_sending_at_millis?: number | undefined;
360
- status: "skipped";
361
360
  id: string;
361
+ status: "skipped";
362
+ created_at_millis: number;
362
363
  to: {
363
- user_id: string;
364
364
  type: "user-primary-email";
365
- } | {
366
365
  user_id: string;
366
+ } | {
367
367
  type: "user-custom-emails";
368
+ user_id: string;
368
369
  emails: string[];
369
370
  } | {
370
371
  type: "custom-emails";
371
372
  emails: string[];
372
373
  };
373
- created_at_millis: number;
374
374
  updated_at_millis: number;
375
375
  tsx_source: string;
376
376
  theme_id: string | null;
@@ -398,21 +398,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
398
398
  skipped_reason: string;
399
399
  skipped_details: Record<string, {} | null>;
400
400
  } | {
401
- status: "bounced";
402
401
  id: string;
402
+ status: "bounced";
403
403
  subject: string;
404
+ created_at_millis: number;
405
+ notification_category_id: string | null;
404
406
  to: {
405
- user_id: string;
406
407
  type: "user-primary-email";
407
- } | {
408
408
  user_id: string;
409
+ } | {
409
410
  type: "user-custom-emails";
411
+ user_id: string;
410
412
  emails: string[];
411
413
  } | {
412
414
  type: "custom-emails";
413
415
  emails: string[];
414
416
  };
415
- created_at_millis: number;
416
417
  updated_at_millis: number;
417
418
  tsx_source: string;
418
419
  theme_id: string | null;
@@ -442,25 +443,25 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
442
443
  text: string | null;
443
444
  is_transactional: boolean;
444
445
  is_high_priority: boolean;
445
- notification_category_id: string | null;
446
446
  started_sending_at_millis: number;
447
447
  bounced_at_millis: number;
448
448
  } | {
449
- status: "delivery-delayed";
450
449
  id: string;
450
+ status: "delivery-delayed";
451
451
  subject: string;
452
+ created_at_millis: number;
453
+ notification_category_id: string | null;
452
454
  to: {
453
- user_id: string;
454
455
  type: "user-primary-email";
455
- } | {
456
456
  user_id: string;
457
+ } | {
457
458
  type: "user-custom-emails";
459
+ user_id: string;
458
460
  emails: string[];
459
461
  } | {
460
462
  type: "custom-emails";
461
463
  emails: string[];
462
464
  };
463
- created_at_millis: number;
464
465
  updated_at_millis: number;
465
466
  tsx_source: string;
466
467
  theme_id: string | null;
@@ -490,25 +491,25 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
490
491
  text: string | null;
491
492
  is_transactional: boolean;
492
493
  is_high_priority: boolean;
493
- notification_category_id: string | null;
494
494
  started_sending_at_millis: number;
495
495
  delivery_delayed_at_millis: number;
496
496
  } | {
497
- status: "sent";
498
497
  id: string;
498
+ status: "sent";
499
499
  subject: string;
500
+ created_at_millis: number;
501
+ notification_category_id: string | null;
500
502
  to: {
501
- user_id: string;
502
503
  type: "user-primary-email";
503
- } | {
504
504
  user_id: string;
505
+ } | {
505
506
  type: "user-custom-emails";
507
+ user_id: string;
506
508
  emails: string[];
507
509
  } | {
508
510
  type: "custom-emails";
509
511
  emails: string[];
510
512
  };
511
- created_at_millis: number;
512
513
  updated_at_millis: number;
513
514
  tsx_source: string;
514
515
  theme_id: string | null;
@@ -538,26 +539,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
538
539
  text: string | null;
539
540
  is_transactional: boolean;
540
541
  is_high_priority: boolean;
541
- notification_category_id: string | null;
542
542
  started_sending_at_millis: number;
543
543
  delivered_at_millis: number;
544
544
  can_have_delivery_info: boolean;
545
545
  } | {
546
- status: "opened";
547
546
  id: string;
547
+ status: "opened";
548
548
  subject: string;
549
+ created_at_millis: number;
550
+ notification_category_id: string | null;
549
551
  to: {
550
- user_id: string;
551
552
  type: "user-primary-email";
552
- } | {
553
553
  user_id: string;
554
+ } | {
554
555
  type: "user-custom-emails";
556
+ user_id: string;
555
557
  emails: string[];
556
558
  } | {
557
559
  type: "custom-emails";
558
560
  emails: string[];
559
561
  };
560
- created_at_millis: number;
561
562
  updated_at_millis: number;
562
563
  tsx_source: string;
563
564
  theme_id: string | null;
@@ -587,27 +588,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
587
588
  text: string | null;
588
589
  is_transactional: boolean;
589
590
  is_high_priority: boolean;
590
- notification_category_id: string | null;
591
591
  started_sending_at_millis: number;
592
592
  delivered_at_millis: number;
593
593
  can_have_delivery_info: boolean;
594
594
  opened_at_millis: number;
595
595
  } | {
596
- status: "clicked";
597
596
  id: string;
597
+ status: "clicked";
598
598
  subject: string;
599
+ created_at_millis: number;
600
+ notification_category_id: string | null;
599
601
  to: {
600
- user_id: string;
601
602
  type: "user-primary-email";
602
- } | {
603
603
  user_id: string;
604
+ } | {
604
605
  type: "user-custom-emails";
606
+ user_id: string;
605
607
  emails: string[];
606
608
  } | {
607
609
  type: "custom-emails";
608
610
  emails: string[];
609
611
  };
610
- created_at_millis: number;
611
612
  updated_at_millis: number;
612
613
  tsx_source: string;
613
614
  theme_id: string | null;
@@ -637,27 +638,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
637
638
  text: string | null;
638
639
  is_transactional: boolean;
639
640
  is_high_priority: boolean;
640
- notification_category_id: string | null;
641
641
  started_sending_at_millis: number;
642
642
  delivered_at_millis: number;
643
643
  can_have_delivery_info: boolean;
644
644
  clicked_at_millis: number;
645
645
  } | {
646
- status: "marked-as-spam";
647
646
  id: string;
647
+ status: "marked-as-spam";
648
648
  subject: string;
649
+ created_at_millis: number;
650
+ notification_category_id: string | null;
649
651
  to: {
650
- user_id: string;
651
652
  type: "user-primary-email";
652
- } | {
653
653
  user_id: string;
654
+ } | {
654
655
  type: "user-custom-emails";
656
+ user_id: string;
655
657
  emails: string[];
656
658
  } | {
657
659
  type: "custom-emails";
658
660
  emails: string[];
659
661
  };
660
- created_at_millis: number;
661
662
  updated_at_millis: number;
662
663
  tsx_source: string;
663
664
  theme_id: string | null;
@@ -687,7 +688,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
687
688
  text: string | null;
688
689
  is_transactional: boolean;
689
690
  is_high_priority: boolean;
690
- notification_category_id: string | null;
691
691
  started_sending_at_millis: number;
692
692
  delivered_at_millis: number;
693
693
  can_have_delivery_info: boolean;
@@ -697,11 +697,11 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
697
697
  tsx_source: string | undefined;
698
698
  theme_id: string | null | undefined;
699
699
  to: {
700
- user_id: string;
701
700
  type: "user-primary-email";
702
- } | {
703
701
  user_id: string;
702
+ } | {
704
703
  type: "user-custom-emails";
704
+ user_id: string;
705
705
  emails: string[];
706
706
  } | {
707
707
  type: "custom-emails";
@@ -724,20 +724,20 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
724
724
  }, "">;
725
725
  declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
726
726
  serverReadSchema: yup$1.MixedSchema<{
727
- status: "paused";
728
727
  id: string;
728
+ status: "paused";
729
+ created_at_millis: number;
729
730
  to: {
730
- user_id: string;
731
731
  type: "user-primary-email";
732
- } | {
733
732
  user_id: string;
733
+ } | {
734
734
  type: "user-custom-emails";
735
+ user_id: string;
735
736
  emails: string[];
736
737
  } | {
737
738
  type: "custom-emails";
738
739
  emails: string[];
739
740
  };
740
- created_at_millis: number;
741
741
  updated_at_millis: number;
742
742
  tsx_source: string;
743
743
  theme_id: string | null;
@@ -762,20 +762,20 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
762
762
  has_rendered: boolean;
763
763
  has_delivered: boolean;
764
764
  } | {
765
- status: "preparing";
766
765
  id: string;
766
+ status: "preparing";
767
+ created_at_millis: number;
767
768
  to: {
768
- user_id: string;
769
769
  type: "user-primary-email";
770
- } | {
771
770
  user_id: string;
771
+ } | {
772
772
  type: "user-custom-emails";
773
+ user_id: string;
773
774
  emails: string[];
774
775
  } | {
775
776
  type: "custom-emails";
776
777
  emails: string[];
777
778
  };
778
- created_at_millis: number;
779
779
  updated_at_millis: number;
780
780
  tsx_source: string;
781
781
  theme_id: string | null;
@@ -800,20 +800,20 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
800
800
  has_rendered: boolean;
801
801
  has_delivered: boolean;
802
802
  } | {
803
- status: "rendering";
804
803
  id: string;
804
+ status: "rendering";
805
+ created_at_millis: number;
805
806
  to: {
806
- user_id: string;
807
807
  type: "user-primary-email";
808
- } | {
809
808
  user_id: string;
809
+ } | {
810
810
  type: "user-custom-emails";
811
+ user_id: string;
811
812
  emails: string[];
812
813
  } | {
813
814
  type: "custom-emails";
814
815
  emails: string[];
815
816
  };
816
- created_at_millis: number;
817
817
  updated_at_millis: number;
818
818
  tsx_source: string;
819
819
  theme_id: string | null;
@@ -839,20 +839,20 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
839
839
  has_delivered: boolean;
840
840
  started_rendering_at_millis: number;
841
841
  } | {
842
- status: "render-error";
843
842
  id: string;
843
+ status: "render-error";
844
+ created_at_millis: number;
844
845
  to: {
845
- user_id: string;
846
846
  type: "user-primary-email";
847
- } | {
848
847
  user_id: string;
848
+ } | {
849
849
  type: "user-custom-emails";
850
+ user_id: string;
850
851
  emails: string[];
851
852
  } | {
852
853
  type: "custom-emails";
853
854
  emails: string[];
854
855
  };
855
- created_at_millis: number;
856
856
  updated_at_millis: number;
857
857
  tsx_source: string;
858
858
  theme_id: string | null;
@@ -880,21 +880,22 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
880
880
  rendered_at_millis: number;
881
881
  render_error: string;
882
882
  } | {
883
- status: "scheduled";
884
883
  id: string;
884
+ status: "scheduled";
885
885
  subject: string;
886
+ created_at_millis: number;
887
+ notification_category_id: string | null;
886
888
  to: {
887
- user_id: string;
888
889
  type: "user-primary-email";
889
- } | {
890
890
  user_id: string;
891
+ } | {
891
892
  type: "user-custom-emails";
893
+ user_id: string;
892
894
  emails: string[];
893
895
  } | {
894
896
  type: "custom-emails";
895
897
  emails: string[];
896
898
  };
897
- created_at_millis: number;
898
899
  updated_at_millis: number;
899
900
  tsx_source: string;
900
901
  theme_id: string | null;
@@ -924,23 +925,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
924
925
  text: string | null;
925
926
  is_transactional: boolean;
926
927
  is_high_priority: boolean;
927
- notification_category_id: string | null;
928
928
  } | {
929
- status: "queued";
930
929
  id: string;
930
+ status: "queued";
931
931
  subject: string;
932
+ created_at_millis: number;
933
+ notification_category_id: string | null;
932
934
  to: {
933
- user_id: string;
934
935
  type: "user-primary-email";
935
- } | {
936
936
  user_id: string;
937
+ } | {
937
938
  type: "user-custom-emails";
939
+ user_id: string;
938
940
  emails: string[];
939
941
  } | {
940
942
  type: "custom-emails";
941
943
  emails: string[];
942
944
  };
943
- created_at_millis: number;
944
945
  updated_at_millis: number;
945
946
  tsx_source: string;
946
947
  theme_id: string | null;
@@ -970,23 +971,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
970
971
  text: string | null;
971
972
  is_transactional: boolean;
972
973
  is_high_priority: boolean;
973
- notification_category_id: string | null;
974
974
  } | {
975
- status: "sending";
976
975
  id: string;
976
+ status: "sending";
977
977
  subject: string;
978
+ created_at_millis: number;
979
+ notification_category_id: string | null;
978
980
  to: {
979
- user_id: string;
980
981
  type: "user-primary-email";
981
- } | {
982
982
  user_id: string;
983
+ } | {
983
984
  type: "user-custom-emails";
985
+ user_id: string;
984
986
  emails: string[];
985
987
  } | {
986
988
  type: "custom-emails";
987
989
  emails: string[];
988
990
  };
989
- created_at_millis: number;
990
991
  updated_at_millis: number;
991
992
  tsx_source: string;
992
993
  theme_id: string | null;
@@ -1016,24 +1017,24 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1016
1017
  text: string | null;
1017
1018
  is_transactional: boolean;
1018
1019
  is_high_priority: boolean;
1019
- notification_category_id: string | null;
1020
1020
  started_sending_at_millis: number;
1021
1021
  } | {
1022
- status: "server-error";
1023
1022
  id: string;
1023
+ status: "server-error";
1024
1024
  subject: string;
1025
+ created_at_millis: number;
1026
+ notification_category_id: string | null;
1025
1027
  to: {
1026
- user_id: string;
1027
1028
  type: "user-primary-email";
1028
- } | {
1029
1029
  user_id: string;
1030
+ } | {
1030
1031
  type: "user-custom-emails";
1032
+ user_id: string;
1031
1033
  emails: string[];
1032
1034
  } | {
1033
1035
  type: "custom-emails";
1034
1036
  emails: string[];
1035
1037
  };
1036
- created_at_millis: number;
1037
1038
  updated_at_millis: number;
1038
1039
  tsx_source: string;
1039
1040
  theme_id: string | null;
@@ -1063,34 +1064,33 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1063
1064
  text: string | null;
1064
1065
  is_transactional: boolean;
1065
1066
  is_high_priority: boolean;
1066
- notification_category_id: string | null;
1067
1067
  started_sending_at_millis: number;
1068
1068
  error_at_millis: number;
1069
1069
  server_error: string;
1070
1070
  } | {
1071
1071
  subject?: string | undefined;
1072
+ notification_category_id?: string | null | undefined;
1072
1073
  started_rendering_at_millis?: number | undefined;
1073
1074
  rendered_at_millis?: number | undefined;
1074
1075
  html?: string | null | undefined;
1075
1076
  text?: string | null | undefined;
1076
1077
  is_transactional?: boolean | undefined;
1077
1078
  is_high_priority?: boolean | undefined;
1078
- notification_category_id?: string | null | undefined;
1079
1079
  started_sending_at_millis?: number | undefined;
1080
- status: "skipped";
1081
1080
  id: string;
1081
+ status: "skipped";
1082
+ created_at_millis: number;
1082
1083
  to: {
1083
- user_id: string;
1084
1084
  type: "user-primary-email";
1085
- } | {
1086
1085
  user_id: string;
1086
+ } | {
1087
1087
  type: "user-custom-emails";
1088
+ user_id: string;
1088
1089
  emails: string[];
1089
1090
  } | {
1090
1091
  type: "custom-emails";
1091
1092
  emails: string[];
1092
1093
  };
1093
- created_at_millis: number;
1094
1094
  updated_at_millis: number;
1095
1095
  tsx_source: string;
1096
1096
  theme_id: string | null;
@@ -1118,21 +1118,22 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1118
1118
  skipped_reason: string;
1119
1119
  skipped_details: Record<string, {} | null>;
1120
1120
  } | {
1121
- status: "bounced";
1122
1121
  id: string;
1122
+ status: "bounced";
1123
1123
  subject: string;
1124
+ created_at_millis: number;
1125
+ notification_category_id: string | null;
1124
1126
  to: {
1125
- user_id: string;
1126
1127
  type: "user-primary-email";
1127
- } | {
1128
1128
  user_id: string;
1129
+ } | {
1129
1130
  type: "user-custom-emails";
1131
+ user_id: string;
1130
1132
  emails: string[];
1131
1133
  } | {
1132
1134
  type: "custom-emails";
1133
1135
  emails: string[];
1134
1136
  };
1135
- created_at_millis: number;
1136
1137
  updated_at_millis: number;
1137
1138
  tsx_source: string;
1138
1139
  theme_id: string | null;
@@ -1162,25 +1163,25 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1162
1163
  text: string | null;
1163
1164
  is_transactional: boolean;
1164
1165
  is_high_priority: boolean;
1165
- notification_category_id: string | null;
1166
1166
  started_sending_at_millis: number;
1167
1167
  bounced_at_millis: number;
1168
1168
  } | {
1169
- status: "delivery-delayed";
1170
1169
  id: string;
1170
+ status: "delivery-delayed";
1171
1171
  subject: string;
1172
+ created_at_millis: number;
1173
+ notification_category_id: string | null;
1172
1174
  to: {
1173
- user_id: string;
1174
1175
  type: "user-primary-email";
1175
- } | {
1176
1176
  user_id: string;
1177
+ } | {
1177
1178
  type: "user-custom-emails";
1179
+ user_id: string;
1178
1180
  emails: string[];
1179
1181
  } | {
1180
1182
  type: "custom-emails";
1181
1183
  emails: string[];
1182
1184
  };
1183
- created_at_millis: number;
1184
1185
  updated_at_millis: number;
1185
1186
  tsx_source: string;
1186
1187
  theme_id: string | null;
@@ -1210,25 +1211,25 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1210
1211
  text: string | null;
1211
1212
  is_transactional: boolean;
1212
1213
  is_high_priority: boolean;
1213
- notification_category_id: string | null;
1214
1214
  started_sending_at_millis: number;
1215
1215
  delivery_delayed_at_millis: number;
1216
1216
  } | {
1217
- status: "sent";
1218
1217
  id: string;
1218
+ status: "sent";
1219
1219
  subject: string;
1220
+ created_at_millis: number;
1221
+ notification_category_id: string | null;
1220
1222
  to: {
1221
- user_id: string;
1222
1223
  type: "user-primary-email";
1223
- } | {
1224
1224
  user_id: string;
1225
+ } | {
1225
1226
  type: "user-custom-emails";
1227
+ user_id: string;
1226
1228
  emails: string[];
1227
1229
  } | {
1228
1230
  type: "custom-emails";
1229
1231
  emails: string[];
1230
1232
  };
1231
- created_at_millis: number;
1232
1233
  updated_at_millis: number;
1233
1234
  tsx_source: string;
1234
1235
  theme_id: string | null;
@@ -1258,26 +1259,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1258
1259
  text: string | null;
1259
1260
  is_transactional: boolean;
1260
1261
  is_high_priority: boolean;
1261
- notification_category_id: string | null;
1262
1262
  started_sending_at_millis: number;
1263
1263
  delivered_at_millis: number;
1264
1264
  can_have_delivery_info: boolean;
1265
1265
  } | {
1266
- status: "opened";
1267
1266
  id: string;
1267
+ status: "opened";
1268
1268
  subject: string;
1269
+ created_at_millis: number;
1270
+ notification_category_id: string | null;
1269
1271
  to: {
1270
- user_id: string;
1271
1272
  type: "user-primary-email";
1272
- } | {
1273
1273
  user_id: string;
1274
+ } | {
1274
1275
  type: "user-custom-emails";
1276
+ user_id: string;
1275
1277
  emails: string[];
1276
1278
  } | {
1277
1279
  type: "custom-emails";
1278
1280
  emails: string[];
1279
1281
  };
1280
- created_at_millis: number;
1281
1282
  updated_at_millis: number;
1282
1283
  tsx_source: string;
1283
1284
  theme_id: string | null;
@@ -1307,27 +1308,27 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1307
1308
  text: string | null;
1308
1309
  is_transactional: boolean;
1309
1310
  is_high_priority: boolean;
1310
- notification_category_id: string | null;
1311
1311
  started_sending_at_millis: number;
1312
1312
  delivered_at_millis: number;
1313
1313
  can_have_delivery_info: boolean;
1314
1314
  opened_at_millis: number;
1315
1315
  } | {
1316
- status: "clicked";
1317
1316
  id: string;
1317
+ status: "clicked";
1318
1318
  subject: string;
1319
+ created_at_millis: number;
1320
+ notification_category_id: string | null;
1319
1321
  to: {
1320
- user_id: string;
1321
1322
  type: "user-primary-email";
1322
- } | {
1323
1323
  user_id: string;
1324
+ } | {
1324
1325
  type: "user-custom-emails";
1326
+ user_id: string;
1325
1327
  emails: string[];
1326
1328
  } | {
1327
1329
  type: "custom-emails";
1328
1330
  emails: string[];
1329
1331
  };
1330
- created_at_millis: number;
1331
1332
  updated_at_millis: number;
1332
1333
  tsx_source: string;
1333
1334
  theme_id: string | null;
@@ -1357,27 +1358,27 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1357
1358
  text: string | null;
1358
1359
  is_transactional: boolean;
1359
1360
  is_high_priority: boolean;
1360
- notification_category_id: string | null;
1361
1361
  started_sending_at_millis: number;
1362
1362
  delivered_at_millis: number;
1363
1363
  can_have_delivery_info: boolean;
1364
1364
  clicked_at_millis: number;
1365
1365
  } | {
1366
- status: "marked-as-spam";
1367
1366
  id: string;
1367
+ status: "marked-as-spam";
1368
1368
  subject: string;
1369
+ created_at_millis: number;
1370
+ notification_category_id: string | null;
1369
1371
  to: {
1370
- user_id: string;
1371
1372
  type: "user-primary-email";
1372
- } | {
1373
1373
  user_id: string;
1374
+ } | {
1374
1375
  type: "user-custom-emails";
1376
+ user_id: string;
1375
1377
  emails: string[];
1376
1378
  } | {
1377
1379
  type: "custom-emails";
1378
1380
  emails: string[];
1379
1381
  };
1380
- created_at_millis: number;
1381
1382
  updated_at_millis: number;
1382
1383
  tsx_source: string;
1383
1384
  theme_id: string | null;
@@ -1407,7 +1408,6 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1407
1408
  text: string | null;
1408
1409
  is_transactional: boolean;
1409
1410
  is_high_priority: boolean;
1410
- notification_category_id: string | null;
1411
1411
  started_sending_at_millis: number;
1412
1412
  delivered_at_millis: number;
1413
1413
  can_have_delivery_info: boolean;
@@ -1417,11 +1417,11 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1417
1417
  tsx_source: string | undefined;
1418
1418
  theme_id: string | null | undefined;
1419
1419
  to: {
1420
- user_id: string;
1421
1420
  type: "user-primary-email";
1422
- } | {
1423
1421
  user_id: string;
1422
+ } | {
1424
1423
  type: "user-custom-emails";
1424
+ user_id: string;
1425
1425
  emails: string[];
1426
1426
  } | {
1427
1427
  type: "custom-emails";