@hexclave/shared 1.0.16 → 1.0.17

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 (40) hide show
  1. package/dist/ai/unified-prompts/reminders.js +1 -1
  2. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  3. package/dist/config/schema.d.ts +105 -105
  4. package/dist/esm/ai/unified-prompts/reminders.js +1 -1
  5. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  6. package/dist/esm/config/schema.d.ts +105 -105
  7. package/dist/esm/interface/admin-metrics.d.ts +23 -23
  8. package/dist/esm/interface/conversations.d.ts +19 -19
  9. package/dist/esm/interface/crud/current-user.d.ts +14 -14
  10. package/dist/esm/interface/crud/email-outbox.d.ts +184 -184
  11. package/dist/esm/interface/crud/products.d.ts +13 -13
  12. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  13. package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
  14. package/dist/esm/interface/crud/projects.d.ts +43 -43
  15. package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
  16. package/dist/esm/interface/crud/transactions.d.ts +13 -13
  17. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  18. package/dist/esm/interface/crud/users.d.ts +14 -14
  19. package/dist/esm/interface/webhooks.d.ts +2 -2
  20. package/dist/esm/known-errors.d.ts +5 -5
  21. package/dist/esm/schema-fields.d.ts +5 -5
  22. package/dist/esm/sessions.d.ts +7 -7
  23. package/dist/interface/admin-metrics.d.ts +23 -23
  24. package/dist/interface/conversations.d.ts +19 -19
  25. package/dist/interface/crud/current-user.d.ts +14 -14
  26. package/dist/interface/crud/email-outbox.d.ts +184 -184
  27. package/dist/interface/crud/products.d.ts +13 -13
  28. package/dist/interface/crud/products.d.ts.map +1 -1
  29. package/dist/interface/crud/project-api-keys.d.ts +4 -4
  30. package/dist/interface/crud/projects.d.ts +43 -43
  31. package/dist/interface/crud/team-member-profiles.d.ts +24 -24
  32. package/dist/interface/crud/transactions.d.ts +13 -13
  33. package/dist/interface/crud/transactions.d.ts.map +1 -1
  34. package/dist/interface/crud/users.d.ts +14 -14
  35. package/dist/interface/webhooks.d.ts +2 -2
  36. package/dist/known-errors.d.ts +5 -5
  37. package/dist/schema-fields.d.ts +5 -5
  38. package/dist/sessions.d.ts +7 -7
  39. package/package.json +1 -1
  40. package/src/ai/unified-prompts/reminders.ts +1 -1
@@ -3,23 +3,23 @@ import * as yup$1 from "yup";
3
3
 
4
4
  //#region src/interface/crud/email-outbox.d.ts
5
5
  declare const emailOutboxReadSchema: yup$1.MixedSchema<{
6
- id: string;
7
6
  status: "paused";
7
+ id: string;
8
8
  created_at_millis: number;
9
- updated_at_millis: number;
10
- tsx_source: string;
11
- theme_id: string | null;
12
9
  to: {
13
- type: "user-primary-email";
14
10
  user_id: string;
11
+ type: "user-primary-email";
15
12
  } | {
16
- type: "user-custom-emails";
17
13
  user_id: string;
14
+ type: "user-custom-emails";
18
15
  emails: string[];
19
16
  } | {
20
17
  type: "custom-emails";
21
18
  emails: string[];
22
19
  };
20
+ updated_at_millis: number;
21
+ tsx_source: string;
22
+ theme_id: string | null;
23
23
  variables: Record<string, {} | null>;
24
24
  skip_deliverability_check: boolean;
25
25
  scheduled_at_millis: number;
@@ -41,23 +41,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
41
41
  has_rendered: boolean;
42
42
  has_delivered: boolean;
43
43
  } | {
44
- id: string;
45
44
  status: "preparing";
45
+ id: string;
46
46
  created_at_millis: number;
47
- updated_at_millis: number;
48
- tsx_source: string;
49
- theme_id: string | null;
50
47
  to: {
51
- type: "user-primary-email";
52
48
  user_id: string;
49
+ type: "user-primary-email";
53
50
  } | {
54
- type: "user-custom-emails";
55
51
  user_id: string;
52
+ type: "user-custom-emails";
56
53
  emails: string[];
57
54
  } | {
58
55
  type: "custom-emails";
59
56
  emails: string[];
60
57
  };
58
+ updated_at_millis: number;
59
+ tsx_source: string;
60
+ theme_id: string | null;
61
61
  variables: Record<string, {} | null>;
62
62
  skip_deliverability_check: boolean;
63
63
  scheduled_at_millis: number;
@@ -79,23 +79,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
79
79
  has_rendered: boolean;
80
80
  has_delivered: boolean;
81
81
  } | {
82
- id: string;
83
82
  status: "rendering";
83
+ id: string;
84
84
  created_at_millis: number;
85
- updated_at_millis: number;
86
- tsx_source: string;
87
- theme_id: string | null;
88
85
  to: {
89
- type: "user-primary-email";
90
86
  user_id: string;
87
+ type: "user-primary-email";
91
88
  } | {
92
- type: "user-custom-emails";
93
89
  user_id: string;
90
+ type: "user-custom-emails";
94
91
  emails: string[];
95
92
  } | {
96
93
  type: "custom-emails";
97
94
  emails: string[];
98
95
  };
96
+ updated_at_millis: number;
97
+ tsx_source: string;
98
+ theme_id: string | null;
99
99
  variables: Record<string, {} | null>;
100
100
  skip_deliverability_check: boolean;
101
101
  scheduled_at_millis: number;
@@ -118,23 +118,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
118
118
  has_delivered: boolean;
119
119
  started_rendering_at_millis: number;
120
120
  } | {
121
- id: string;
122
121
  status: "render-error";
122
+ id: string;
123
123
  created_at_millis: number;
124
- updated_at_millis: number;
125
- tsx_source: string;
126
- theme_id: string | null;
127
124
  to: {
128
- type: "user-primary-email";
129
125
  user_id: string;
126
+ type: "user-primary-email";
130
127
  } | {
131
- type: "user-custom-emails";
132
128
  user_id: string;
129
+ type: "user-custom-emails";
133
130
  emails: string[];
134
131
  } | {
135
132
  type: "custom-emails";
136
133
  emails: string[];
137
134
  };
135
+ updated_at_millis: number;
136
+ tsx_source: string;
137
+ theme_id: string | null;
138
138
  variables: Record<string, {} | null>;
139
139
  skip_deliverability_check: boolean;
140
140
  scheduled_at_millis: number;
@@ -159,27 +159,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
159
159
  rendered_at_millis: number;
160
160
  render_error: string;
161
161
  } | {
162
+ status: "scheduled";
162
163
  id: string;
163
164
  subject: string;
164
- status: "scheduled";
165
165
  created_at_millis: number;
166
166
  html: string | null;
167
167
  text: string | null;
168
168
  notification_category_id: string | null;
169
- updated_at_millis: number;
170
- tsx_source: string;
171
- theme_id: string | null;
172
169
  to: {
173
- type: "user-primary-email";
174
170
  user_id: string;
171
+ type: "user-primary-email";
175
172
  } | {
176
- type: "user-custom-emails";
177
173
  user_id: string;
174
+ type: "user-custom-emails";
178
175
  emails: string[];
179
176
  } | {
180
177
  type: "custom-emails";
181
178
  emails: string[];
182
179
  };
180
+ updated_at_millis: number;
181
+ tsx_source: string;
182
+ theme_id: string | null;
183
183
  variables: Record<string, {} | null>;
184
184
  skip_deliverability_check: boolean;
185
185
  scheduled_at_millis: number;
@@ -205,27 +205,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
205
205
  is_transactional: boolean;
206
206
  is_high_priority: boolean;
207
207
  } | {
208
+ status: "queued";
208
209
  id: string;
209
210
  subject: string;
210
- status: "queued";
211
211
  created_at_millis: number;
212
212
  html: string | null;
213
213
  text: string | null;
214
214
  notification_category_id: string | null;
215
- updated_at_millis: number;
216
- tsx_source: string;
217
- theme_id: string | null;
218
215
  to: {
219
- type: "user-primary-email";
220
216
  user_id: string;
217
+ type: "user-primary-email";
221
218
  } | {
222
- type: "user-custom-emails";
223
219
  user_id: string;
220
+ type: "user-custom-emails";
224
221
  emails: string[];
225
222
  } | {
226
223
  type: "custom-emails";
227
224
  emails: string[];
228
225
  };
226
+ updated_at_millis: number;
227
+ tsx_source: string;
228
+ theme_id: string | null;
229
229
  variables: Record<string, {} | null>;
230
230
  skip_deliverability_check: boolean;
231
231
  scheduled_at_millis: number;
@@ -251,27 +251,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
251
251
  is_transactional: boolean;
252
252
  is_high_priority: boolean;
253
253
  } | {
254
+ status: "sending";
254
255
  id: string;
255
256
  subject: string;
256
- status: "sending";
257
257
  created_at_millis: number;
258
258
  html: string | null;
259
259
  text: string | null;
260
260
  notification_category_id: string | null;
261
- updated_at_millis: number;
262
- tsx_source: string;
263
- theme_id: string | null;
264
261
  to: {
265
- type: "user-primary-email";
266
262
  user_id: string;
263
+ type: "user-primary-email";
267
264
  } | {
268
- type: "user-custom-emails";
269
265
  user_id: string;
266
+ type: "user-custom-emails";
270
267
  emails: string[];
271
268
  } | {
272
269
  type: "custom-emails";
273
270
  emails: string[];
274
271
  };
272
+ updated_at_millis: number;
273
+ tsx_source: string;
274
+ theme_id: string | null;
275
275
  variables: Record<string, {} | null>;
276
276
  skip_deliverability_check: boolean;
277
277
  scheduled_at_millis: number;
@@ -298,27 +298,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
298
298
  is_high_priority: boolean;
299
299
  started_sending_at_millis: number;
300
300
  } | {
301
+ status: "server-error";
301
302
  id: string;
302
303
  subject: string;
303
- status: "server-error";
304
304
  created_at_millis: number;
305
305
  html: string | null;
306
306
  text: string | null;
307
307
  notification_category_id: string | null;
308
- updated_at_millis: number;
309
- tsx_source: string;
310
- theme_id: string | null;
311
308
  to: {
312
- type: "user-primary-email";
313
309
  user_id: string;
310
+ type: "user-primary-email";
314
311
  } | {
315
- type: "user-custom-emails";
316
312
  user_id: string;
313
+ type: "user-custom-emails";
317
314
  emails: string[];
318
315
  } | {
319
316
  type: "custom-emails";
320
317
  emails: string[];
321
318
  };
319
+ updated_at_millis: number;
320
+ tsx_source: string;
321
+ theme_id: string | null;
322
322
  variables: Record<string, {} | null>;
323
323
  skip_deliverability_check: boolean;
324
324
  scheduled_at_millis: number;
@@ -356,23 +356,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
356
356
  is_transactional?: boolean | undefined;
357
357
  is_high_priority?: boolean | undefined;
358
358
  started_sending_at_millis?: number | undefined;
359
- id: string;
360
359
  status: "skipped";
360
+ id: string;
361
361
  created_at_millis: number;
362
- updated_at_millis: number;
363
- tsx_source: string;
364
- theme_id: string | null;
365
362
  to: {
366
- type: "user-primary-email";
367
363
  user_id: string;
364
+ type: "user-primary-email";
368
365
  } | {
369
- type: "user-custom-emails";
370
366
  user_id: string;
367
+ type: "user-custom-emails";
371
368
  emails: string[];
372
369
  } | {
373
370
  type: "custom-emails";
374
371
  emails: string[];
375
372
  };
373
+ updated_at_millis: number;
374
+ tsx_source: string;
375
+ theme_id: string | null;
376
376
  variables: Record<string, {} | null>;
377
377
  skip_deliverability_check: boolean;
378
378
  scheduled_at_millis: number;
@@ -397,27 +397,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
397
397
  skipped_reason: string;
398
398
  skipped_details: Record<string, {} | null>;
399
399
  } | {
400
+ status: "bounced";
400
401
  id: string;
401
402
  subject: string;
402
- status: "bounced";
403
403
  created_at_millis: number;
404
404
  html: string | null;
405
405
  text: string | null;
406
406
  notification_category_id: string | null;
407
- updated_at_millis: number;
408
- tsx_source: string;
409
- theme_id: string | null;
410
407
  to: {
411
- type: "user-primary-email";
412
408
  user_id: string;
409
+ type: "user-primary-email";
413
410
  } | {
414
- type: "user-custom-emails";
415
411
  user_id: string;
412
+ type: "user-custom-emails";
416
413
  emails: string[];
417
414
  } | {
418
415
  type: "custom-emails";
419
416
  emails: string[];
420
417
  };
418
+ updated_at_millis: number;
419
+ tsx_source: string;
420
+ theme_id: string | null;
421
421
  variables: Record<string, {} | null>;
422
422
  skip_deliverability_check: boolean;
423
423
  scheduled_at_millis: number;
@@ -445,27 +445,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
445
445
  started_sending_at_millis: number;
446
446
  bounced_at_millis: number;
447
447
  } | {
448
+ status: "delivery-delayed";
448
449
  id: string;
449
450
  subject: string;
450
- status: "delivery-delayed";
451
451
  created_at_millis: number;
452
452
  html: string | null;
453
453
  text: string | null;
454
454
  notification_category_id: string | null;
455
- updated_at_millis: number;
456
- tsx_source: string;
457
- theme_id: string | null;
458
455
  to: {
459
- type: "user-primary-email";
460
456
  user_id: string;
457
+ type: "user-primary-email";
461
458
  } | {
462
- type: "user-custom-emails";
463
459
  user_id: string;
460
+ type: "user-custom-emails";
464
461
  emails: string[];
465
462
  } | {
466
463
  type: "custom-emails";
467
464
  emails: string[];
468
465
  };
466
+ updated_at_millis: number;
467
+ tsx_source: string;
468
+ theme_id: string | null;
469
469
  variables: Record<string, {} | null>;
470
470
  skip_deliverability_check: boolean;
471
471
  scheduled_at_millis: number;
@@ -493,27 +493,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
493
493
  started_sending_at_millis: number;
494
494
  delivery_delayed_at_millis: number;
495
495
  } | {
496
+ status: "sent";
496
497
  id: string;
497
498
  subject: string;
498
- status: "sent";
499
499
  created_at_millis: number;
500
500
  html: string | null;
501
501
  text: string | null;
502
502
  notification_category_id: string | null;
503
- updated_at_millis: number;
504
- tsx_source: string;
505
- theme_id: string | null;
506
503
  to: {
507
- type: "user-primary-email";
508
504
  user_id: string;
505
+ type: "user-primary-email";
509
506
  } | {
510
- type: "user-custom-emails";
511
507
  user_id: string;
508
+ type: "user-custom-emails";
512
509
  emails: string[];
513
510
  } | {
514
511
  type: "custom-emails";
515
512
  emails: string[];
516
513
  };
514
+ updated_at_millis: number;
515
+ tsx_source: string;
516
+ theme_id: string | null;
517
517
  variables: Record<string, {} | null>;
518
518
  skip_deliverability_check: boolean;
519
519
  scheduled_at_millis: number;
@@ -542,27 +542,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
542
542
  delivered_at_millis: number;
543
543
  can_have_delivery_info: boolean;
544
544
  } | {
545
+ status: "opened";
545
546
  id: string;
546
547
  subject: string;
547
- status: "opened";
548
548
  created_at_millis: number;
549
549
  html: string | null;
550
550
  text: string | null;
551
551
  notification_category_id: string | null;
552
- updated_at_millis: number;
553
- tsx_source: string;
554
- theme_id: string | null;
555
552
  to: {
556
- type: "user-primary-email";
557
553
  user_id: string;
554
+ type: "user-primary-email";
558
555
  } | {
559
- type: "user-custom-emails";
560
556
  user_id: string;
557
+ type: "user-custom-emails";
561
558
  emails: string[];
562
559
  } | {
563
560
  type: "custom-emails";
564
561
  emails: string[];
565
562
  };
563
+ updated_at_millis: number;
564
+ tsx_source: string;
565
+ theme_id: string | null;
566
566
  variables: Record<string, {} | null>;
567
567
  skip_deliverability_check: boolean;
568
568
  scheduled_at_millis: number;
@@ -592,27 +592,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
592
592
  can_have_delivery_info: boolean;
593
593
  opened_at_millis: number;
594
594
  } | {
595
+ status: "clicked";
595
596
  id: string;
596
597
  subject: string;
597
- status: "clicked";
598
598
  created_at_millis: number;
599
599
  html: string | null;
600
600
  text: string | null;
601
601
  notification_category_id: string | null;
602
- updated_at_millis: number;
603
- tsx_source: string;
604
- theme_id: string | null;
605
602
  to: {
606
- type: "user-primary-email";
607
603
  user_id: string;
604
+ type: "user-primary-email";
608
605
  } | {
609
- type: "user-custom-emails";
610
606
  user_id: string;
607
+ type: "user-custom-emails";
611
608
  emails: string[];
612
609
  } | {
613
610
  type: "custom-emails";
614
611
  emails: string[];
615
612
  };
613
+ updated_at_millis: number;
614
+ tsx_source: string;
615
+ theme_id: string | null;
616
616
  variables: Record<string, {} | null>;
617
617
  skip_deliverability_check: boolean;
618
618
  scheduled_at_millis: number;
@@ -642,27 +642,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
642
642
  can_have_delivery_info: boolean;
643
643
  clicked_at_millis: number;
644
644
  } | {
645
+ status: "marked-as-spam";
645
646
  id: string;
646
647
  subject: string;
647
- status: "marked-as-spam";
648
648
  created_at_millis: number;
649
649
  html: string | null;
650
650
  text: string | null;
651
651
  notification_category_id: string | null;
652
- updated_at_millis: number;
653
- tsx_source: string;
654
- theme_id: string | null;
655
652
  to: {
656
- type: "user-primary-email";
657
653
  user_id: string;
654
+ type: "user-primary-email";
658
655
  } | {
659
- type: "user-custom-emails";
660
656
  user_id: string;
657
+ type: "user-custom-emails";
661
658
  emails: string[];
662
659
  } | {
663
660
  type: "custom-emails";
664
661
  emails: string[];
665
662
  };
663
+ updated_at_millis: number;
664
+ tsx_source: string;
665
+ theme_id: string | null;
666
666
  variables: Record<string, {} | null>;
667
667
  skip_deliverability_check: boolean;
668
668
  scheduled_at_millis: number;
@@ -696,11 +696,11 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
696
696
  tsx_source: string | undefined;
697
697
  theme_id: string | null | undefined;
698
698
  to: {
699
- type: "user-primary-email";
700
699
  user_id: string;
700
+ type: "user-primary-email";
701
701
  } | {
702
- type: "user-custom-emails";
703
702
  user_id: string;
703
+ type: "user-custom-emails";
704
704
  emails: string[];
705
705
  } | {
706
706
  type: "custom-emails";
@@ -723,23 +723,23 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
723
723
  }, "">;
724
724
  declare const emailOutboxCrud: CrudSchemaFromOptions<{
725
725
  serverReadSchema: yup$1.MixedSchema<{
726
- id: string;
727
726
  status: "paused";
727
+ id: string;
728
728
  created_at_millis: number;
729
- updated_at_millis: number;
730
- tsx_source: string;
731
- theme_id: string | null;
732
729
  to: {
733
- type: "user-primary-email";
734
730
  user_id: string;
731
+ type: "user-primary-email";
735
732
  } | {
736
- type: "user-custom-emails";
737
733
  user_id: string;
734
+ type: "user-custom-emails";
738
735
  emails: string[];
739
736
  } | {
740
737
  type: "custom-emails";
741
738
  emails: string[];
742
739
  };
740
+ updated_at_millis: number;
741
+ tsx_source: string;
742
+ theme_id: string | null;
743
743
  variables: Record<string, {} | null>;
744
744
  skip_deliverability_check: boolean;
745
745
  scheduled_at_millis: number;
@@ -761,23 +761,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
761
761
  has_rendered: boolean;
762
762
  has_delivered: boolean;
763
763
  } | {
764
- id: string;
765
764
  status: "preparing";
765
+ id: string;
766
766
  created_at_millis: number;
767
- updated_at_millis: number;
768
- tsx_source: string;
769
- theme_id: string | null;
770
767
  to: {
771
- type: "user-primary-email";
772
768
  user_id: string;
769
+ type: "user-primary-email";
773
770
  } | {
774
- type: "user-custom-emails";
775
771
  user_id: string;
772
+ type: "user-custom-emails";
776
773
  emails: string[];
777
774
  } | {
778
775
  type: "custom-emails";
779
776
  emails: string[];
780
777
  };
778
+ updated_at_millis: number;
779
+ tsx_source: string;
780
+ theme_id: string | null;
781
781
  variables: Record<string, {} | null>;
782
782
  skip_deliverability_check: boolean;
783
783
  scheduled_at_millis: number;
@@ -799,23 +799,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
799
799
  has_rendered: boolean;
800
800
  has_delivered: boolean;
801
801
  } | {
802
- id: string;
803
802
  status: "rendering";
803
+ id: string;
804
804
  created_at_millis: number;
805
- updated_at_millis: number;
806
- tsx_source: string;
807
- theme_id: string | null;
808
805
  to: {
809
- type: "user-primary-email";
810
806
  user_id: string;
807
+ type: "user-primary-email";
811
808
  } | {
812
- type: "user-custom-emails";
813
809
  user_id: string;
810
+ type: "user-custom-emails";
814
811
  emails: string[];
815
812
  } | {
816
813
  type: "custom-emails";
817
814
  emails: string[];
818
815
  };
816
+ updated_at_millis: number;
817
+ tsx_source: string;
818
+ theme_id: string | null;
819
819
  variables: Record<string, {} | null>;
820
820
  skip_deliverability_check: boolean;
821
821
  scheduled_at_millis: number;
@@ -838,23 +838,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
838
838
  has_delivered: boolean;
839
839
  started_rendering_at_millis: number;
840
840
  } | {
841
- id: string;
842
841
  status: "render-error";
842
+ id: string;
843
843
  created_at_millis: number;
844
- updated_at_millis: number;
845
- tsx_source: string;
846
- theme_id: string | null;
847
844
  to: {
848
- type: "user-primary-email";
849
845
  user_id: string;
846
+ type: "user-primary-email";
850
847
  } | {
851
- type: "user-custom-emails";
852
848
  user_id: string;
849
+ type: "user-custom-emails";
853
850
  emails: string[];
854
851
  } | {
855
852
  type: "custom-emails";
856
853
  emails: string[];
857
854
  };
855
+ updated_at_millis: number;
856
+ tsx_source: string;
857
+ theme_id: string | null;
858
858
  variables: Record<string, {} | null>;
859
859
  skip_deliverability_check: boolean;
860
860
  scheduled_at_millis: number;
@@ -879,27 +879,27 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
879
879
  rendered_at_millis: number;
880
880
  render_error: string;
881
881
  } | {
882
+ status: "scheduled";
882
883
  id: string;
883
884
  subject: string;
884
- status: "scheduled";
885
885
  created_at_millis: number;
886
886
  html: string | null;
887
887
  text: string | null;
888
888
  notification_category_id: string | null;
889
- updated_at_millis: number;
890
- tsx_source: string;
891
- theme_id: string | null;
892
889
  to: {
893
- type: "user-primary-email";
894
890
  user_id: string;
891
+ type: "user-primary-email";
895
892
  } | {
896
- type: "user-custom-emails";
897
893
  user_id: string;
894
+ type: "user-custom-emails";
898
895
  emails: string[];
899
896
  } | {
900
897
  type: "custom-emails";
901
898
  emails: string[];
902
899
  };
900
+ updated_at_millis: number;
901
+ tsx_source: string;
902
+ theme_id: string | null;
903
903
  variables: Record<string, {} | null>;
904
904
  skip_deliverability_check: boolean;
905
905
  scheduled_at_millis: number;
@@ -925,27 +925,27 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
925
925
  is_transactional: boolean;
926
926
  is_high_priority: boolean;
927
927
  } | {
928
+ status: "queued";
928
929
  id: string;
929
930
  subject: string;
930
- status: "queued";
931
931
  created_at_millis: number;
932
932
  html: string | null;
933
933
  text: string | null;
934
934
  notification_category_id: string | null;
935
- updated_at_millis: number;
936
- tsx_source: string;
937
- theme_id: string | null;
938
935
  to: {
939
- type: "user-primary-email";
940
936
  user_id: string;
937
+ type: "user-primary-email";
941
938
  } | {
942
- type: "user-custom-emails";
943
939
  user_id: string;
940
+ type: "user-custom-emails";
944
941
  emails: string[];
945
942
  } | {
946
943
  type: "custom-emails";
947
944
  emails: string[];
948
945
  };
946
+ updated_at_millis: number;
947
+ tsx_source: string;
948
+ theme_id: string | null;
949
949
  variables: Record<string, {} | null>;
950
950
  skip_deliverability_check: boolean;
951
951
  scheduled_at_millis: number;
@@ -971,27 +971,27 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
971
971
  is_transactional: boolean;
972
972
  is_high_priority: boolean;
973
973
  } | {
974
+ status: "sending";
974
975
  id: string;
975
976
  subject: string;
976
- status: "sending";
977
977
  created_at_millis: number;
978
978
  html: string | null;
979
979
  text: string | null;
980
980
  notification_category_id: string | null;
981
- updated_at_millis: number;
982
- tsx_source: string;
983
- theme_id: string | null;
984
981
  to: {
985
- type: "user-primary-email";
986
982
  user_id: string;
983
+ type: "user-primary-email";
987
984
  } | {
988
- type: "user-custom-emails";
989
985
  user_id: string;
986
+ type: "user-custom-emails";
990
987
  emails: string[];
991
988
  } | {
992
989
  type: "custom-emails";
993
990
  emails: string[];
994
991
  };
992
+ updated_at_millis: number;
993
+ tsx_source: string;
994
+ theme_id: string | null;
995
995
  variables: Record<string, {} | null>;
996
996
  skip_deliverability_check: boolean;
997
997
  scheduled_at_millis: number;
@@ -1018,27 +1018,27 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1018
1018
  is_high_priority: boolean;
1019
1019
  started_sending_at_millis: number;
1020
1020
  } | {
1021
+ status: "server-error";
1021
1022
  id: string;
1022
1023
  subject: string;
1023
- status: "server-error";
1024
1024
  created_at_millis: number;
1025
1025
  html: string | null;
1026
1026
  text: string | null;
1027
1027
  notification_category_id: string | null;
1028
- updated_at_millis: number;
1029
- tsx_source: string;
1030
- theme_id: string | null;
1031
1028
  to: {
1032
- type: "user-primary-email";
1033
1029
  user_id: string;
1030
+ type: "user-primary-email";
1034
1031
  } | {
1035
- type: "user-custom-emails";
1036
1032
  user_id: string;
1033
+ type: "user-custom-emails";
1037
1034
  emails: string[];
1038
1035
  } | {
1039
1036
  type: "custom-emails";
1040
1037
  emails: string[];
1041
1038
  };
1039
+ updated_at_millis: number;
1040
+ tsx_source: string;
1041
+ theme_id: string | null;
1042
1042
  variables: Record<string, {} | null>;
1043
1043
  skip_deliverability_check: boolean;
1044
1044
  scheduled_at_millis: number;
@@ -1076,23 +1076,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1076
1076
  is_transactional?: boolean | undefined;
1077
1077
  is_high_priority?: boolean | undefined;
1078
1078
  started_sending_at_millis?: number | undefined;
1079
- id: string;
1080
1079
  status: "skipped";
1080
+ id: string;
1081
1081
  created_at_millis: number;
1082
- updated_at_millis: number;
1083
- tsx_source: string;
1084
- theme_id: string | null;
1085
1082
  to: {
1086
- type: "user-primary-email";
1087
1083
  user_id: string;
1084
+ type: "user-primary-email";
1088
1085
  } | {
1089
- type: "user-custom-emails";
1090
1086
  user_id: string;
1087
+ type: "user-custom-emails";
1091
1088
  emails: string[];
1092
1089
  } | {
1093
1090
  type: "custom-emails";
1094
1091
  emails: string[];
1095
1092
  };
1093
+ updated_at_millis: number;
1094
+ tsx_source: string;
1095
+ theme_id: string | null;
1096
1096
  variables: Record<string, {} | null>;
1097
1097
  skip_deliverability_check: boolean;
1098
1098
  scheduled_at_millis: number;
@@ -1117,27 +1117,27 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1117
1117
  skipped_reason: string;
1118
1118
  skipped_details: Record<string, {} | null>;
1119
1119
  } | {
1120
+ status: "bounced";
1120
1121
  id: string;
1121
1122
  subject: string;
1122
- status: "bounced";
1123
1123
  created_at_millis: number;
1124
1124
  html: string | null;
1125
1125
  text: string | null;
1126
1126
  notification_category_id: string | null;
1127
- updated_at_millis: number;
1128
- tsx_source: string;
1129
- theme_id: string | null;
1130
1127
  to: {
1131
- type: "user-primary-email";
1132
1128
  user_id: string;
1129
+ type: "user-primary-email";
1133
1130
  } | {
1134
- type: "user-custom-emails";
1135
1131
  user_id: string;
1132
+ type: "user-custom-emails";
1136
1133
  emails: string[];
1137
1134
  } | {
1138
1135
  type: "custom-emails";
1139
1136
  emails: string[];
1140
1137
  };
1138
+ updated_at_millis: number;
1139
+ tsx_source: string;
1140
+ theme_id: string | null;
1141
1141
  variables: Record<string, {} | null>;
1142
1142
  skip_deliverability_check: boolean;
1143
1143
  scheduled_at_millis: number;
@@ -1165,27 +1165,27 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1165
1165
  started_sending_at_millis: number;
1166
1166
  bounced_at_millis: number;
1167
1167
  } | {
1168
+ status: "delivery-delayed";
1168
1169
  id: string;
1169
1170
  subject: string;
1170
- status: "delivery-delayed";
1171
1171
  created_at_millis: number;
1172
1172
  html: string | null;
1173
1173
  text: string | null;
1174
1174
  notification_category_id: string | null;
1175
- updated_at_millis: number;
1176
- tsx_source: string;
1177
- theme_id: string | null;
1178
1175
  to: {
1179
- type: "user-primary-email";
1180
1176
  user_id: string;
1177
+ type: "user-primary-email";
1181
1178
  } | {
1182
- type: "user-custom-emails";
1183
1179
  user_id: string;
1180
+ type: "user-custom-emails";
1184
1181
  emails: string[];
1185
1182
  } | {
1186
1183
  type: "custom-emails";
1187
1184
  emails: string[];
1188
1185
  };
1186
+ updated_at_millis: number;
1187
+ tsx_source: string;
1188
+ theme_id: string | null;
1189
1189
  variables: Record<string, {} | null>;
1190
1190
  skip_deliverability_check: boolean;
1191
1191
  scheduled_at_millis: number;
@@ -1213,27 +1213,27 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1213
1213
  started_sending_at_millis: number;
1214
1214
  delivery_delayed_at_millis: number;
1215
1215
  } | {
1216
+ status: "sent";
1216
1217
  id: string;
1217
1218
  subject: string;
1218
- status: "sent";
1219
1219
  created_at_millis: number;
1220
1220
  html: string | null;
1221
1221
  text: string | null;
1222
1222
  notification_category_id: string | null;
1223
- updated_at_millis: number;
1224
- tsx_source: string;
1225
- theme_id: string | null;
1226
1223
  to: {
1227
- type: "user-primary-email";
1228
1224
  user_id: string;
1225
+ type: "user-primary-email";
1229
1226
  } | {
1230
- type: "user-custom-emails";
1231
1227
  user_id: string;
1228
+ type: "user-custom-emails";
1232
1229
  emails: string[];
1233
1230
  } | {
1234
1231
  type: "custom-emails";
1235
1232
  emails: string[];
1236
1233
  };
1234
+ updated_at_millis: number;
1235
+ tsx_source: string;
1236
+ theme_id: string | null;
1237
1237
  variables: Record<string, {} | null>;
1238
1238
  skip_deliverability_check: boolean;
1239
1239
  scheduled_at_millis: number;
@@ -1262,27 +1262,27 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1262
1262
  delivered_at_millis: number;
1263
1263
  can_have_delivery_info: boolean;
1264
1264
  } | {
1265
+ status: "opened";
1265
1266
  id: string;
1266
1267
  subject: string;
1267
- status: "opened";
1268
1268
  created_at_millis: number;
1269
1269
  html: string | null;
1270
1270
  text: string | null;
1271
1271
  notification_category_id: string | null;
1272
- updated_at_millis: number;
1273
- tsx_source: string;
1274
- theme_id: string | null;
1275
1272
  to: {
1276
- type: "user-primary-email";
1277
1273
  user_id: string;
1274
+ type: "user-primary-email";
1278
1275
  } | {
1279
- type: "user-custom-emails";
1280
1276
  user_id: string;
1277
+ type: "user-custom-emails";
1281
1278
  emails: string[];
1282
1279
  } | {
1283
1280
  type: "custom-emails";
1284
1281
  emails: string[];
1285
1282
  };
1283
+ updated_at_millis: number;
1284
+ tsx_source: string;
1285
+ theme_id: string | null;
1286
1286
  variables: Record<string, {} | null>;
1287
1287
  skip_deliverability_check: boolean;
1288
1288
  scheduled_at_millis: number;
@@ -1312,27 +1312,27 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1312
1312
  can_have_delivery_info: boolean;
1313
1313
  opened_at_millis: number;
1314
1314
  } | {
1315
+ status: "clicked";
1315
1316
  id: string;
1316
1317
  subject: string;
1317
- status: "clicked";
1318
1318
  created_at_millis: number;
1319
1319
  html: string | null;
1320
1320
  text: string | null;
1321
1321
  notification_category_id: string | null;
1322
- updated_at_millis: number;
1323
- tsx_source: string;
1324
- theme_id: string | null;
1325
1322
  to: {
1326
- type: "user-primary-email";
1327
1323
  user_id: string;
1324
+ type: "user-primary-email";
1328
1325
  } | {
1329
- type: "user-custom-emails";
1330
1326
  user_id: string;
1327
+ type: "user-custom-emails";
1331
1328
  emails: string[];
1332
1329
  } | {
1333
1330
  type: "custom-emails";
1334
1331
  emails: string[];
1335
1332
  };
1333
+ updated_at_millis: number;
1334
+ tsx_source: string;
1335
+ theme_id: string | null;
1336
1336
  variables: Record<string, {} | null>;
1337
1337
  skip_deliverability_check: boolean;
1338
1338
  scheduled_at_millis: number;
@@ -1362,27 +1362,27 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1362
1362
  can_have_delivery_info: boolean;
1363
1363
  clicked_at_millis: number;
1364
1364
  } | {
1365
+ status: "marked-as-spam";
1365
1366
  id: string;
1366
1367
  subject: string;
1367
- status: "marked-as-spam";
1368
1368
  created_at_millis: number;
1369
1369
  html: string | null;
1370
1370
  text: string | null;
1371
1371
  notification_category_id: string | null;
1372
- updated_at_millis: number;
1373
- tsx_source: string;
1374
- theme_id: string | null;
1375
1372
  to: {
1376
- type: "user-primary-email";
1377
1373
  user_id: string;
1374
+ type: "user-primary-email";
1378
1375
  } | {
1379
- type: "user-custom-emails";
1380
1376
  user_id: string;
1377
+ type: "user-custom-emails";
1381
1378
  emails: string[];
1382
1379
  } | {
1383
1380
  type: "custom-emails";
1384
1381
  emails: string[];
1385
1382
  };
1383
+ updated_at_millis: number;
1384
+ tsx_source: string;
1385
+ theme_id: string | null;
1386
1386
  variables: Record<string, {} | null>;
1387
1387
  skip_deliverability_check: boolean;
1388
1388
  scheduled_at_millis: number;
@@ -1416,11 +1416,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1416
1416
  tsx_source: string | undefined;
1417
1417
  theme_id: string | null | undefined;
1418
1418
  to: {
1419
- type: "user-primary-email";
1420
1419
  user_id: string;
1420
+ type: "user-primary-email";
1421
1421
  } | {
1422
- type: "user-custom-emails";
1423
1422
  user_id: string;
1423
+ type: "user-custom-emails";
1424
1424
  emails: string[];
1425
1425
  } | {
1426
1426
  type: "custom-emails";