@hexclave/shared 1.0.27 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/config/schema.d.ts +35 -35
  2. package/dist/esm/config/schema.d.ts +35 -35
  3. package/dist/esm/interface/admin-metrics.d.ts +18 -18
  4. package/dist/esm/interface/conversations.d.ts +13 -13
  5. package/dist/esm/interface/crud/current-user.d.ts +12 -12
  6. package/dist/esm/interface/crud/email-outbox.d.ts +140 -140
  7. package/dist/esm/interface/crud/products.d.ts +13 -13
  8. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  9. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  10. package/dist/esm/interface/crud/projects.d.ts +14 -14
  11. package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
  12. package/dist/esm/interface/crud/transactions.d.ts +6 -6
  13. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  14. package/dist/esm/interface/crud/users.d.ts +20 -20
  15. package/dist/esm/interface/plan-usage.d.ts +2 -2
  16. package/dist/esm/interface/webhooks.d.ts +4 -4
  17. package/dist/esm/schema-fields.d.ts +1 -1
  18. package/dist/esm/sessions.d.ts +7 -7
  19. package/dist/esm/utils/passkey.d.ts +1 -1
  20. package/dist/esm/utils/promises.d.ts +12 -1
  21. package/dist/esm/utils/promises.d.ts.map +1 -1
  22. package/dist/esm/utils/promises.js +57 -1
  23. package/dist/esm/utils/promises.js.map +1 -1
  24. package/dist/interface/admin-metrics.d.ts +18 -18
  25. package/dist/interface/client-interface.d.ts +1 -1
  26. package/dist/interface/conversations.d.ts +13 -13
  27. package/dist/interface/crud/current-user.d.ts +12 -12
  28. package/dist/interface/crud/email-outbox.d.ts +140 -140
  29. package/dist/interface/crud/products.d.ts +13 -13
  30. package/dist/interface/crud/products.d.ts.map +1 -1
  31. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  32. package/dist/interface/crud/projects.d.ts +14 -14
  33. package/dist/interface/crud/team-member-profiles.d.ts +24 -24
  34. package/dist/interface/crud/transactions.d.ts +6 -6
  35. package/dist/interface/crud/transactions.d.ts.map +1 -1
  36. package/dist/interface/crud/users.d.ts +20 -20
  37. package/dist/interface/plan-usage.d.ts +2 -2
  38. package/dist/interface/webhooks.d.ts +4 -4
  39. package/dist/schema-fields.d.ts +1 -1
  40. package/dist/sessions.d.ts +7 -7
  41. package/dist/utils/passkey.d.ts +1 -1
  42. package/dist/utils/promises.d.ts +12 -1
  43. package/dist/utils/promises.d.ts.map +1 -1
  44. package/dist/utils/promises.js +57 -0
  45. package/dist/utils/promises.js.map +1 -1
  46. package/package.json +3 -7
  47. package/src/utils/passkey.tsx +1 -1
  48. package/src/utils/promises.tsx +65 -0
  49. package/dist/index-nCRuFJTF.d.ts +0 -153
  50. package/dist/index-nCRuFJTF.d.ts.map +0 -1
@@ -3,9 +3,12 @@ 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;
9
12
  to: {
10
13
  type: "user-primary-email";
11
14
  user_id: string;
@@ -17,9 +20,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
17
20
  type: "custom-emails";
18
21
  emails: string[];
19
22
  };
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,9 +41,12 @@ 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;
47
50
  to: {
48
51
  type: "user-primary-email";
49
52
  user_id: string;
@@ -55,9 +58,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
55
58
  type: "custom-emails";
56
59
  emails: string[];
57
60
  };
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,9 +79,12 @@ 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;
85
88
  to: {
86
89
  type: "user-primary-email";
87
90
  user_id: string;
@@ -93,9 +96,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
93
96
  type: "custom-emails";
94
97
  emails: string[];
95
98
  };
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,9 +118,12 @@ 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;
124
127
  to: {
125
128
  type: "user-primary-email";
126
129
  user_id: string;
@@ -132,9 +135,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
132
135
  type: "custom-emails";
133
136
  emails: string[];
134
137
  };
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,12 +159,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
159
159
  rendered_at_millis: number;
160
160
  render_error: string;
161
161
  } | {
162
- id: string;
163
162
  status: "scheduled";
164
- subject: string;
163
+ id: string;
165
164
  created_at_millis: number;
165
+ subject: string;
166
166
  html: string | null;
167
167
  text: string | null;
168
+ updated_at_millis: number;
169
+ tsx_source: string;
170
+ theme_id: string | null;
168
171
  to: {
169
172
  type: "user-primary-email";
170
173
  user_id: string;
@@ -176,9 +179,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
176
179
  type: "custom-emails";
177
180
  emails: string[];
178
181
  };
179
- updated_at_millis: number;
180
- tsx_source: string;
181
- theme_id: string | null;
182
182
  variables: Record<string, {} | null>;
183
183
  skip_deliverability_check: boolean;
184
184
  scheduled_at_millis: number;
@@ -205,12 +205,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
205
205
  is_high_priority: boolean;
206
206
  notification_category_id: string | null;
207
207
  } | {
208
- id: string;
209
208
  status: "queued";
210
- subject: string;
209
+ id: string;
211
210
  created_at_millis: number;
211
+ subject: string;
212
212
  html: string | null;
213
213
  text: string | null;
214
+ updated_at_millis: number;
215
+ tsx_source: string;
216
+ theme_id: string | null;
214
217
  to: {
215
218
  type: "user-primary-email";
216
219
  user_id: string;
@@ -222,9 +225,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
222
225
  type: "custom-emails";
223
226
  emails: string[];
224
227
  };
225
- updated_at_millis: number;
226
- tsx_source: string;
227
- theme_id: string | null;
228
228
  variables: Record<string, {} | null>;
229
229
  skip_deliverability_check: boolean;
230
230
  scheduled_at_millis: number;
@@ -251,12 +251,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
251
251
  is_high_priority: boolean;
252
252
  notification_category_id: string | null;
253
253
  } | {
254
- id: string;
255
254
  status: "sending";
256
- subject: string;
255
+ id: string;
257
256
  created_at_millis: number;
257
+ subject: string;
258
258
  html: string | null;
259
259
  text: string | null;
260
+ updated_at_millis: number;
261
+ tsx_source: string;
262
+ theme_id: string | null;
260
263
  to: {
261
264
  type: "user-primary-email";
262
265
  user_id: string;
@@ -268,9 +271,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
268
271
  type: "custom-emails";
269
272
  emails: string[];
270
273
  };
271
- updated_at_millis: number;
272
- tsx_source: string;
273
- theme_id: string | null;
274
274
  variables: Record<string, {} | null>;
275
275
  skip_deliverability_check: boolean;
276
276
  scheduled_at_millis: number;
@@ -298,12 +298,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
298
298
  notification_category_id: string | null;
299
299
  started_sending_at_millis: number;
300
300
  } | {
301
- id: string;
302
301
  status: "server-error";
303
- subject: string;
302
+ id: string;
304
303
  created_at_millis: number;
304
+ subject: string;
305
305
  html: string | null;
306
306
  text: string | null;
307
+ updated_at_millis: number;
308
+ tsx_source: string;
309
+ theme_id: string | null;
307
310
  to: {
308
311
  type: "user-primary-email";
309
312
  user_id: string;
@@ -315,9 +318,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
315
318
  type: "custom-emails";
316
319
  emails: string[];
317
320
  };
318
- updated_at_millis: number;
319
- tsx_source: string;
320
- theme_id: string | null;
321
321
  variables: Record<string, {} | null>;
322
322
  skip_deliverability_check: boolean;
323
323
  scheduled_at_millis: number;
@@ -356,9 +356,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
356
356
  is_high_priority?: boolean | undefined;
357
357
  notification_category_id?: string | null | 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;
362
365
  to: {
363
366
  type: "user-primary-email";
364
367
  user_id: string;
@@ -370,9 +373,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
370
373
  type: "custom-emails";
371
374
  emails: string[];
372
375
  };
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,12 +397,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
397
397
  skipped_reason: string;
398
398
  skipped_details: Record<string, {} | null>;
399
399
  } | {
400
- id: string;
401
400
  status: "bounced";
402
- subject: string;
401
+ id: string;
403
402
  created_at_millis: number;
403
+ subject: string;
404
404
  html: string | null;
405
405
  text: string | null;
406
+ updated_at_millis: number;
407
+ tsx_source: string;
408
+ theme_id: string | null;
406
409
  to: {
407
410
  type: "user-primary-email";
408
411
  user_id: string;
@@ -414,9 +417,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
414
417
  type: "custom-emails";
415
418
  emails: string[];
416
419
  };
417
- updated_at_millis: number;
418
- tsx_source: string;
419
- theme_id: string | null;
420
420
  variables: Record<string, {} | null>;
421
421
  skip_deliverability_check: boolean;
422
422
  scheduled_at_millis: number;
@@ -445,12 +445,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
445
445
  started_sending_at_millis: number;
446
446
  bounced_at_millis: number;
447
447
  } | {
448
- id: string;
449
448
  status: "delivery-delayed";
450
- subject: string;
449
+ id: string;
451
450
  created_at_millis: number;
451
+ subject: string;
452
452
  html: string | null;
453
453
  text: string | null;
454
+ updated_at_millis: number;
455
+ tsx_source: string;
456
+ theme_id: string | null;
454
457
  to: {
455
458
  type: "user-primary-email";
456
459
  user_id: string;
@@ -462,9 +465,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
462
465
  type: "custom-emails";
463
466
  emails: string[];
464
467
  };
465
- updated_at_millis: number;
466
- tsx_source: string;
467
- theme_id: string | null;
468
468
  variables: Record<string, {} | null>;
469
469
  skip_deliverability_check: boolean;
470
470
  scheduled_at_millis: number;
@@ -493,12 +493,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
493
493
  started_sending_at_millis: number;
494
494
  delivery_delayed_at_millis: number;
495
495
  } | {
496
- id: string;
497
496
  status: "sent";
498
- subject: string;
497
+ id: string;
499
498
  created_at_millis: number;
499
+ subject: string;
500
500
  html: string | null;
501
501
  text: string | null;
502
+ updated_at_millis: number;
503
+ tsx_source: string;
504
+ theme_id: string | null;
502
505
  to: {
503
506
  type: "user-primary-email";
504
507
  user_id: string;
@@ -510,9 +513,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
510
513
  type: "custom-emails";
511
514
  emails: string[];
512
515
  };
513
- updated_at_millis: number;
514
- tsx_source: string;
515
- theme_id: string | null;
516
516
  variables: Record<string, {} | null>;
517
517
  skip_deliverability_check: boolean;
518
518
  scheduled_at_millis: number;
@@ -542,12 +542,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
542
542
  delivered_at_millis: number;
543
543
  can_have_delivery_info: boolean;
544
544
  } | {
545
- id: string;
546
545
  status: "opened";
547
- subject: string;
546
+ id: string;
548
547
  created_at_millis: number;
548
+ subject: string;
549
549
  html: string | null;
550
550
  text: string | null;
551
+ updated_at_millis: number;
552
+ tsx_source: string;
553
+ theme_id: string | null;
551
554
  to: {
552
555
  type: "user-primary-email";
553
556
  user_id: string;
@@ -559,9 +562,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
559
562
  type: "custom-emails";
560
563
  emails: string[];
561
564
  };
562
- updated_at_millis: number;
563
- tsx_source: string;
564
- theme_id: string | null;
565
565
  variables: Record<string, {} | null>;
566
566
  skip_deliverability_check: boolean;
567
567
  scheduled_at_millis: number;
@@ -592,12 +592,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
592
592
  can_have_delivery_info: boolean;
593
593
  opened_at_millis: number;
594
594
  } | {
595
- id: string;
596
595
  status: "clicked";
597
- subject: string;
596
+ id: string;
598
597
  created_at_millis: number;
598
+ subject: string;
599
599
  html: string | null;
600
600
  text: string | null;
601
+ updated_at_millis: number;
602
+ tsx_source: string;
603
+ theme_id: string | null;
601
604
  to: {
602
605
  type: "user-primary-email";
603
606
  user_id: string;
@@ -609,9 +612,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
609
612
  type: "custom-emails";
610
613
  emails: string[];
611
614
  };
612
- updated_at_millis: number;
613
- tsx_source: string;
614
- theme_id: string | null;
615
615
  variables: Record<string, {} | null>;
616
616
  skip_deliverability_check: boolean;
617
617
  scheduled_at_millis: number;
@@ -642,12 +642,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
642
642
  can_have_delivery_info: boolean;
643
643
  clicked_at_millis: number;
644
644
  } | {
645
- id: string;
646
645
  status: "marked-as-spam";
647
- subject: string;
646
+ id: string;
648
647
  created_at_millis: number;
648
+ subject: string;
649
649
  html: string | null;
650
650
  text: string | null;
651
+ updated_at_millis: number;
652
+ tsx_source: string;
653
+ theme_id: string | null;
651
654
  to: {
652
655
  type: "user-primary-email";
653
656
  user_id: string;
@@ -659,9 +662,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
659
662
  type: "custom-emails";
660
663
  emails: string[];
661
664
  };
662
- updated_at_millis: number;
663
- tsx_source: string;
664
- theme_id: string | null;
665
665
  variables: Record<string, {} | null>;
666
666
  skip_deliverability_check: boolean;
667
667
  scheduled_at_millis: number;
@@ -723,9 +723,12 @@ 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;
729
732
  to: {
730
733
  type: "user-primary-email";
731
734
  user_id: string;
@@ -737,9 +740,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
737
740
  type: "custom-emails";
738
741
  emails: string[];
739
742
  };
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,9 +761,12 @@ 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;
767
770
  to: {
768
771
  type: "user-primary-email";
769
772
  user_id: string;
@@ -775,9 +778,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
775
778
  type: "custom-emails";
776
779
  emails: string[];
777
780
  };
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,9 +799,12 @@ 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;
805
808
  to: {
806
809
  type: "user-primary-email";
807
810
  user_id: string;
@@ -813,9 +816,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
813
816
  type: "custom-emails";
814
817
  emails: string[];
815
818
  };
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,9 +838,12 @@ 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;
844
847
  to: {
845
848
  type: "user-primary-email";
846
849
  user_id: string;
@@ -852,9 +855,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
852
855
  type: "custom-emails";
853
856
  emails: string[];
854
857
  };
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,12 +879,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
879
879
  rendered_at_millis: number;
880
880
  render_error: string;
881
881
  } | {
882
- id: string;
883
882
  status: "scheduled";
884
- subject: string;
883
+ id: string;
885
884
  created_at_millis: number;
885
+ subject: string;
886
886
  html: string | null;
887
887
  text: string | null;
888
+ updated_at_millis: number;
889
+ tsx_source: string;
890
+ theme_id: string | null;
888
891
  to: {
889
892
  type: "user-primary-email";
890
893
  user_id: string;
@@ -896,9 +899,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
896
899
  type: "custom-emails";
897
900
  emails: string[];
898
901
  };
899
- updated_at_millis: number;
900
- tsx_source: string;
901
- theme_id: string | null;
902
902
  variables: Record<string, {} | null>;
903
903
  skip_deliverability_check: boolean;
904
904
  scheduled_at_millis: number;
@@ -925,12 +925,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
925
925
  is_high_priority: boolean;
926
926
  notification_category_id: string | null;
927
927
  } | {
928
- id: string;
929
928
  status: "queued";
930
- subject: string;
929
+ id: string;
931
930
  created_at_millis: number;
931
+ subject: string;
932
932
  html: string | null;
933
933
  text: string | null;
934
+ updated_at_millis: number;
935
+ tsx_source: string;
936
+ theme_id: string | null;
934
937
  to: {
935
938
  type: "user-primary-email";
936
939
  user_id: string;
@@ -942,9 +945,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
942
945
  type: "custom-emails";
943
946
  emails: string[];
944
947
  };
945
- updated_at_millis: number;
946
- tsx_source: string;
947
- theme_id: string | null;
948
948
  variables: Record<string, {} | null>;
949
949
  skip_deliverability_check: boolean;
950
950
  scheduled_at_millis: number;
@@ -971,12 +971,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
971
971
  is_high_priority: boolean;
972
972
  notification_category_id: string | null;
973
973
  } | {
974
- id: string;
975
974
  status: "sending";
976
- subject: string;
975
+ id: string;
977
976
  created_at_millis: number;
977
+ subject: string;
978
978
  html: string | null;
979
979
  text: string | null;
980
+ updated_at_millis: number;
981
+ tsx_source: string;
982
+ theme_id: string | null;
980
983
  to: {
981
984
  type: "user-primary-email";
982
985
  user_id: string;
@@ -988,9 +991,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
988
991
  type: "custom-emails";
989
992
  emails: string[];
990
993
  };
991
- updated_at_millis: number;
992
- tsx_source: string;
993
- theme_id: string | null;
994
994
  variables: Record<string, {} | null>;
995
995
  skip_deliverability_check: boolean;
996
996
  scheduled_at_millis: number;
@@ -1018,12 +1018,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1018
1018
  notification_category_id: string | null;
1019
1019
  started_sending_at_millis: number;
1020
1020
  } | {
1021
- id: string;
1022
1021
  status: "server-error";
1023
- subject: string;
1022
+ id: string;
1024
1023
  created_at_millis: number;
1024
+ subject: string;
1025
1025
  html: string | null;
1026
1026
  text: string | null;
1027
+ updated_at_millis: number;
1028
+ tsx_source: string;
1029
+ theme_id: string | null;
1027
1030
  to: {
1028
1031
  type: "user-primary-email";
1029
1032
  user_id: string;
@@ -1035,9 +1038,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1035
1038
  type: "custom-emails";
1036
1039
  emails: string[];
1037
1040
  };
1038
- updated_at_millis: number;
1039
- tsx_source: string;
1040
- theme_id: string | null;
1041
1041
  variables: Record<string, {} | null>;
1042
1042
  skip_deliverability_check: boolean;
1043
1043
  scheduled_at_millis: number;
@@ -1076,9 +1076,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1076
1076
  is_high_priority?: boolean | undefined;
1077
1077
  notification_category_id?: string | null | 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;
1082
1085
  to: {
1083
1086
  type: "user-primary-email";
1084
1087
  user_id: string;
@@ -1090,9 +1093,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1090
1093
  type: "custom-emails";
1091
1094
  emails: string[];
1092
1095
  };
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,12 +1117,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1117
1117
  skipped_reason: string;
1118
1118
  skipped_details: Record<string, {} | null>;
1119
1119
  } | {
1120
- id: string;
1121
1120
  status: "bounced";
1122
- subject: string;
1121
+ id: string;
1123
1122
  created_at_millis: number;
1123
+ subject: string;
1124
1124
  html: string | null;
1125
1125
  text: string | null;
1126
+ updated_at_millis: number;
1127
+ tsx_source: string;
1128
+ theme_id: string | null;
1126
1129
  to: {
1127
1130
  type: "user-primary-email";
1128
1131
  user_id: string;
@@ -1134,9 +1137,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1134
1137
  type: "custom-emails";
1135
1138
  emails: string[];
1136
1139
  };
1137
- updated_at_millis: number;
1138
- tsx_source: string;
1139
- theme_id: string | null;
1140
1140
  variables: Record<string, {} | null>;
1141
1141
  skip_deliverability_check: boolean;
1142
1142
  scheduled_at_millis: number;
@@ -1165,12 +1165,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1165
1165
  started_sending_at_millis: number;
1166
1166
  bounced_at_millis: number;
1167
1167
  } | {
1168
- id: string;
1169
1168
  status: "delivery-delayed";
1170
- subject: string;
1169
+ id: string;
1171
1170
  created_at_millis: number;
1171
+ subject: string;
1172
1172
  html: string | null;
1173
1173
  text: string | null;
1174
+ updated_at_millis: number;
1175
+ tsx_source: string;
1176
+ theme_id: string | null;
1174
1177
  to: {
1175
1178
  type: "user-primary-email";
1176
1179
  user_id: string;
@@ -1182,9 +1185,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1182
1185
  type: "custom-emails";
1183
1186
  emails: string[];
1184
1187
  };
1185
- updated_at_millis: number;
1186
- tsx_source: string;
1187
- theme_id: string | null;
1188
1188
  variables: Record<string, {} | null>;
1189
1189
  skip_deliverability_check: boolean;
1190
1190
  scheduled_at_millis: number;
@@ -1213,12 +1213,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1213
1213
  started_sending_at_millis: number;
1214
1214
  delivery_delayed_at_millis: number;
1215
1215
  } | {
1216
- id: string;
1217
1216
  status: "sent";
1218
- subject: string;
1217
+ id: string;
1219
1218
  created_at_millis: number;
1219
+ subject: string;
1220
1220
  html: string | null;
1221
1221
  text: string | null;
1222
+ updated_at_millis: number;
1223
+ tsx_source: string;
1224
+ theme_id: string | null;
1222
1225
  to: {
1223
1226
  type: "user-primary-email";
1224
1227
  user_id: string;
@@ -1230,9 +1233,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1230
1233
  type: "custom-emails";
1231
1234
  emails: string[];
1232
1235
  };
1233
- updated_at_millis: number;
1234
- tsx_source: string;
1235
- theme_id: string | null;
1236
1236
  variables: Record<string, {} | null>;
1237
1237
  skip_deliverability_check: boolean;
1238
1238
  scheduled_at_millis: number;
@@ -1262,12 +1262,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1262
1262
  delivered_at_millis: number;
1263
1263
  can_have_delivery_info: boolean;
1264
1264
  } | {
1265
- id: string;
1266
1265
  status: "opened";
1267
- subject: string;
1266
+ id: string;
1268
1267
  created_at_millis: number;
1268
+ subject: string;
1269
1269
  html: string | null;
1270
1270
  text: string | null;
1271
+ updated_at_millis: number;
1272
+ tsx_source: string;
1273
+ theme_id: string | null;
1271
1274
  to: {
1272
1275
  type: "user-primary-email";
1273
1276
  user_id: string;
@@ -1279,9 +1282,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1279
1282
  type: "custom-emails";
1280
1283
  emails: string[];
1281
1284
  };
1282
- updated_at_millis: number;
1283
- tsx_source: string;
1284
- theme_id: string | null;
1285
1285
  variables: Record<string, {} | null>;
1286
1286
  skip_deliverability_check: boolean;
1287
1287
  scheduled_at_millis: number;
@@ -1312,12 +1312,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1312
1312
  can_have_delivery_info: boolean;
1313
1313
  opened_at_millis: number;
1314
1314
  } | {
1315
- id: string;
1316
1315
  status: "clicked";
1317
- subject: string;
1316
+ id: string;
1318
1317
  created_at_millis: number;
1318
+ subject: string;
1319
1319
  html: string | null;
1320
1320
  text: string | null;
1321
+ updated_at_millis: number;
1322
+ tsx_source: string;
1323
+ theme_id: string | null;
1321
1324
  to: {
1322
1325
  type: "user-primary-email";
1323
1326
  user_id: string;
@@ -1329,9 +1332,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1329
1332
  type: "custom-emails";
1330
1333
  emails: string[];
1331
1334
  };
1332
- updated_at_millis: number;
1333
- tsx_source: string;
1334
- theme_id: string | null;
1335
1335
  variables: Record<string, {} | null>;
1336
1336
  skip_deliverability_check: boolean;
1337
1337
  scheduled_at_millis: number;
@@ -1362,12 +1362,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1362
1362
  can_have_delivery_info: boolean;
1363
1363
  clicked_at_millis: number;
1364
1364
  } | {
1365
- id: string;
1366
1365
  status: "marked-as-spam";
1367
- subject: string;
1366
+ id: string;
1368
1367
  created_at_millis: number;
1368
+ subject: string;
1369
1369
  html: string | null;
1370
1370
  text: string | null;
1371
+ updated_at_millis: number;
1372
+ tsx_source: string;
1373
+ theme_id: string | null;
1371
1374
  to: {
1372
1375
  type: "user-primary-email";
1373
1376
  user_id: string;
@@ -1379,9 +1382,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1379
1382
  type: "custom-emails";
1380
1383
  emails: string[];
1381
1384
  };
1382
- updated_at_millis: number;
1383
- tsx_source: string;
1384
- theme_id: string | null;
1385
1385
  variables: Record<string, {} | null>;
1386
1386
  skip_deliverability_check: boolean;
1387
1387
  scheduled_at_millis: number;