@hexclave/shared 1.0.5 → 1.0.6

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 (38) hide show
  1. package/dist/config/schema.d.ts +70 -70
  2. package/dist/esm/config/schema.d.ts +70 -70
  3. package/dist/esm/hooks/use-async-callback.js +1 -1
  4. package/dist/esm/hooks/use-async-external-store.js +1 -1
  5. package/dist/esm/hooks/use-strict-memo.js +1 -1
  6. package/dist/esm/interface/admin-metrics.d.ts +6 -6
  7. package/dist/esm/interface/conversations.d.ts +29 -29
  8. package/dist/esm/interface/crud/current-user.d.ts +3 -3
  9. package/dist/esm/interface/crud/email-outbox.d.ts +154 -154
  10. package/dist/esm/interface/crud/products.d.ts +1 -1
  11. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  12. package/dist/esm/interface/crud/projects.d.ts +28 -28
  13. package/dist/esm/interface/crud/team-member-profiles.d.ts +4 -4
  14. package/dist/esm/interface/crud/users.d.ts +4 -4
  15. package/dist/esm/interface/webhooks.d.ts +2 -2
  16. package/dist/esm/known-errors.d.ts +1 -1
  17. package/dist/esm/known-errors.d.ts.map +1 -1
  18. package/dist/esm/known-errors.js +5 -1
  19. package/dist/esm/known-errors.js.map +1 -1
  20. package/dist/hooks/use-async-callback.js +1 -1
  21. package/dist/hooks/use-async-external-store.js +1 -1
  22. package/dist/hooks/use-strict-memo.js +1 -1
  23. package/dist/interface/admin-metrics.d.ts +8 -8
  24. package/dist/interface/conversations.d.ts +29 -29
  25. package/dist/interface/crud/current-user.d.ts +3 -3
  26. package/dist/interface/crud/email-outbox.d.ts +154 -154
  27. package/dist/interface/crud/products.d.ts +1 -1
  28. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  29. package/dist/interface/crud/projects.d.ts +28 -28
  30. package/dist/interface/crud/team-member-profiles.d.ts +4 -4
  31. package/dist/interface/crud/users.d.ts +4 -4
  32. package/dist/interface/webhooks.d.ts +2 -2
  33. package/dist/known-errors.d.ts +1 -1
  34. package/dist/known-errors.d.ts.map +1 -1
  35. package/dist/known-errors.js +5 -1
  36. package/dist/known-errors.js.map +1 -1
  37. package/package.json +1 -1
  38. package/src/known-errors.tsx +5 -2
@@ -6,9 +6,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
6
6
  status: "paused";
7
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
10
  user_id: string;
14
11
  type: "user-primary-email";
@@ -20,6 +17,9 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
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;
@@ -44,9 +44,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
44
44
  status: "preparing";
45
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
48
  user_id: string;
52
49
  type: "user-primary-email";
@@ -58,6 +55,9 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
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;
@@ -82,9 +82,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
82
82
  status: "rendering";
83
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
86
  user_id: string;
90
87
  type: "user-primary-email";
@@ -96,6 +93,9 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
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;
@@ -121,9 +121,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
121
121
  status: "render-error";
122
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
125
  user_id: string;
129
126
  type: "user-primary-email";
@@ -135,6 +132,9 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
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;
@@ -160,14 +160,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
160
160
  render_error: string;
161
161
  } | {
162
162
  status: "scheduled";
163
+ html: string | null;
164
+ text: string | null;
163
165
  id: string;
164
166
  subject: string;
165
167
  created_at_millis: number;
166
- html: string | null;
167
- text: string | null;
168
- updated_at_millis: number;
169
- tsx_source: string;
170
- theme_id: string | null;
171
168
  to: {
172
169
  user_id: string;
173
170
  type: "user-primary-email";
@@ -179,6 +176,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
179
176
  type: "custom-emails";
180
177
  emails: string[];
181
178
  };
179
+ notification_category_id: string | null;
180
+ updated_at_millis: number;
181
+ tsx_source: string;
182
+ theme_id: string | null;
182
183
  variables: Record<string, {} | null>;
183
184
  skip_deliverability_check: boolean;
184
185
  scheduled_at_millis: number;
@@ -203,17 +204,13 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
203
204
  rendered_at_millis: number;
204
205
  is_transactional: boolean;
205
206
  is_high_priority: boolean;
206
- notification_category_id: string | null;
207
207
  } | {
208
208
  status: "queued";
209
+ html: string | null;
210
+ text: string | null;
209
211
  id: string;
210
212
  subject: string;
211
213
  created_at_millis: number;
212
- html: string | null;
213
- text: string | null;
214
- updated_at_millis: number;
215
- tsx_source: string;
216
- theme_id: string | null;
217
214
  to: {
218
215
  user_id: string;
219
216
  type: "user-primary-email";
@@ -225,6 +222,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
225
222
  type: "custom-emails";
226
223
  emails: string[];
227
224
  };
225
+ notification_category_id: string | null;
226
+ updated_at_millis: number;
227
+ tsx_source: string;
228
+ theme_id: string | null;
228
229
  variables: Record<string, {} | null>;
229
230
  skip_deliverability_check: boolean;
230
231
  scheduled_at_millis: number;
@@ -249,17 +250,13 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
249
250
  rendered_at_millis: number;
250
251
  is_transactional: boolean;
251
252
  is_high_priority: boolean;
252
- notification_category_id: string | null;
253
253
  } | {
254
254
  status: "sending";
255
+ html: string | null;
256
+ text: string | null;
255
257
  id: string;
256
258
  subject: string;
257
259
  created_at_millis: number;
258
- html: string | null;
259
- text: string | null;
260
- updated_at_millis: number;
261
- tsx_source: string;
262
- theme_id: string | null;
263
260
  to: {
264
261
  user_id: string;
265
262
  type: "user-primary-email";
@@ -271,6 +268,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
271
268
  type: "custom-emails";
272
269
  emails: string[];
273
270
  };
271
+ notification_category_id: string | null;
272
+ updated_at_millis: number;
273
+ tsx_source: string;
274
+ theme_id: string | null;
274
275
  variables: Record<string, {} | null>;
275
276
  skip_deliverability_check: boolean;
276
277
  scheduled_at_millis: number;
@@ -295,18 +296,14 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
295
296
  rendered_at_millis: number;
296
297
  is_transactional: boolean;
297
298
  is_high_priority: boolean;
298
- notification_category_id: string | null;
299
299
  started_sending_at_millis: number;
300
300
  } | {
301
301
  status: "server-error";
302
+ html: string | null;
303
+ text: string | null;
302
304
  id: string;
303
305
  subject: string;
304
306
  created_at_millis: number;
305
- html: string | null;
306
- text: string | null;
307
- updated_at_millis: number;
308
- tsx_source: string;
309
- theme_id: string | null;
310
307
  to: {
311
308
  user_id: string;
312
309
  type: "user-primary-email";
@@ -318,6 +315,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
318
315
  type: "custom-emails";
319
316
  emails: string[];
320
317
  };
318
+ notification_category_id: string | null;
319
+ updated_at_millis: number;
320
+ tsx_source: string;
321
+ theme_id: string | null;
321
322
  variables: Record<string, {} | null>;
322
323
  skip_deliverability_check: boolean;
323
324
  scheduled_at_millis: number;
@@ -342,26 +343,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
342
343
  rendered_at_millis: number;
343
344
  is_transactional: boolean;
344
345
  is_high_priority: boolean;
345
- notification_category_id: string | null;
346
346
  started_sending_at_millis: number;
347
347
  error_at_millis: number;
348
348
  server_error: string;
349
349
  } | {
350
- subject?: string | undefined;
351
350
  html?: string | null | undefined;
352
351
  text?: string | null | undefined;
352
+ subject?: string | undefined;
353
+ notification_category_id?: string | null | undefined;
353
354
  started_rendering_at_millis?: number | undefined;
354
355
  rendered_at_millis?: number | undefined;
355
356
  is_transactional?: boolean | undefined;
356
357
  is_high_priority?: boolean | undefined;
357
- notification_category_id?: string | null | undefined;
358
358
  started_sending_at_millis?: number | undefined;
359
359
  status: "skipped";
360
360
  id: string;
361
361
  created_at_millis: number;
362
- updated_at_millis: number;
363
- tsx_source: string;
364
- theme_id: string | null;
365
362
  to: {
366
363
  user_id: string;
367
364
  type: "user-primary-email";
@@ -373,6 +370,9 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
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;
@@ -398,14 +398,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
398
398
  skipped_details: Record<string, {} | null>;
399
399
  } | {
400
400
  status: "bounced";
401
+ html: string | null;
402
+ text: string | null;
401
403
  id: string;
402
404
  subject: string;
403
405
  created_at_millis: number;
404
- html: string | null;
405
- text: string | null;
406
- updated_at_millis: number;
407
- tsx_source: string;
408
- theme_id: string | null;
409
406
  to: {
410
407
  user_id: string;
411
408
  type: "user-primary-email";
@@ -417,6 +414,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
417
414
  type: "custom-emails";
418
415
  emails: string[];
419
416
  };
417
+ notification_category_id: string | null;
418
+ updated_at_millis: number;
419
+ tsx_source: string;
420
+ theme_id: string | null;
420
421
  variables: Record<string, {} | null>;
421
422
  skip_deliverability_check: boolean;
422
423
  scheduled_at_millis: number;
@@ -441,19 +442,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
441
442
  rendered_at_millis: number;
442
443
  is_transactional: boolean;
443
444
  is_high_priority: boolean;
444
- notification_category_id: string | null;
445
445
  started_sending_at_millis: number;
446
446
  bounced_at_millis: number;
447
447
  } | {
448
448
  status: "delivery-delayed";
449
+ html: string | null;
450
+ text: string | null;
449
451
  id: string;
450
452
  subject: string;
451
453
  created_at_millis: number;
452
- html: string | null;
453
- text: string | null;
454
- updated_at_millis: number;
455
- tsx_source: string;
456
- theme_id: string | null;
457
454
  to: {
458
455
  user_id: string;
459
456
  type: "user-primary-email";
@@ -465,6 +462,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
465
462
  type: "custom-emails";
466
463
  emails: string[];
467
464
  };
465
+ notification_category_id: string | null;
466
+ updated_at_millis: number;
467
+ tsx_source: string;
468
+ theme_id: string | null;
468
469
  variables: Record<string, {} | null>;
469
470
  skip_deliverability_check: boolean;
470
471
  scheduled_at_millis: number;
@@ -489,19 +490,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
489
490
  rendered_at_millis: number;
490
491
  is_transactional: boolean;
491
492
  is_high_priority: boolean;
492
- notification_category_id: string | null;
493
493
  started_sending_at_millis: number;
494
494
  delivery_delayed_at_millis: number;
495
495
  } | {
496
496
  status: "sent";
497
+ html: string | null;
498
+ text: string | null;
497
499
  id: string;
498
500
  subject: string;
499
501
  created_at_millis: number;
500
- html: string | null;
501
- text: string | null;
502
- updated_at_millis: number;
503
- tsx_source: string;
504
- theme_id: string | null;
505
502
  to: {
506
503
  user_id: string;
507
504
  type: "user-primary-email";
@@ -513,6 +510,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
513
510
  type: "custom-emails";
514
511
  emails: string[];
515
512
  };
513
+ notification_category_id: string | null;
514
+ updated_at_millis: number;
515
+ tsx_source: string;
516
+ theme_id: string | null;
516
517
  variables: Record<string, {} | null>;
517
518
  skip_deliverability_check: boolean;
518
519
  scheduled_at_millis: number;
@@ -537,20 +538,16 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
537
538
  rendered_at_millis: number;
538
539
  is_transactional: boolean;
539
540
  is_high_priority: boolean;
540
- notification_category_id: string | null;
541
541
  started_sending_at_millis: number;
542
542
  delivered_at_millis: number;
543
543
  can_have_delivery_info: boolean;
544
544
  } | {
545
545
  status: "opened";
546
+ html: string | null;
547
+ text: string | null;
546
548
  id: string;
547
549
  subject: string;
548
550
  created_at_millis: number;
549
- html: string | null;
550
- text: string | null;
551
- updated_at_millis: number;
552
- tsx_source: string;
553
- theme_id: string | null;
554
551
  to: {
555
552
  user_id: string;
556
553
  type: "user-primary-email";
@@ -562,6 +559,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
562
559
  type: "custom-emails";
563
560
  emails: string[];
564
561
  };
562
+ notification_category_id: string | null;
563
+ updated_at_millis: number;
564
+ tsx_source: string;
565
+ theme_id: string | null;
565
566
  variables: Record<string, {} | null>;
566
567
  skip_deliverability_check: boolean;
567
568
  scheduled_at_millis: number;
@@ -586,21 +587,17 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
586
587
  rendered_at_millis: number;
587
588
  is_transactional: boolean;
588
589
  is_high_priority: boolean;
589
- notification_category_id: string | null;
590
590
  started_sending_at_millis: number;
591
591
  delivered_at_millis: number;
592
592
  can_have_delivery_info: boolean;
593
593
  opened_at_millis: number;
594
594
  } | {
595
595
  status: "clicked";
596
+ html: string | null;
597
+ text: string | null;
596
598
  id: string;
597
599
  subject: string;
598
600
  created_at_millis: number;
599
- html: string | null;
600
- text: string | null;
601
- updated_at_millis: number;
602
- tsx_source: string;
603
- theme_id: string | null;
604
601
  to: {
605
602
  user_id: string;
606
603
  type: "user-primary-email";
@@ -612,6 +609,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
612
609
  type: "custom-emails";
613
610
  emails: string[];
614
611
  };
612
+ notification_category_id: string | null;
613
+ updated_at_millis: number;
614
+ tsx_source: string;
615
+ theme_id: string | null;
615
616
  variables: Record<string, {} | null>;
616
617
  skip_deliverability_check: boolean;
617
618
  scheduled_at_millis: number;
@@ -636,21 +637,17 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
636
637
  rendered_at_millis: number;
637
638
  is_transactional: boolean;
638
639
  is_high_priority: boolean;
639
- notification_category_id: string | null;
640
640
  started_sending_at_millis: number;
641
641
  delivered_at_millis: number;
642
642
  can_have_delivery_info: boolean;
643
643
  clicked_at_millis: number;
644
644
  } | {
645
645
  status: "marked-as-spam";
646
+ html: string | null;
647
+ text: string | null;
646
648
  id: string;
647
649
  subject: string;
648
650
  created_at_millis: number;
649
- html: string | null;
650
- text: string | null;
651
- updated_at_millis: number;
652
- tsx_source: string;
653
- theme_id: string | null;
654
651
  to: {
655
652
  user_id: string;
656
653
  type: "user-primary-email";
@@ -662,6 +659,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
662
659
  type: "custom-emails";
663
660
  emails: string[];
664
661
  };
662
+ notification_category_id: string | null;
663
+ updated_at_millis: number;
664
+ tsx_source: string;
665
+ theme_id: string | null;
665
666
  variables: Record<string, {} | null>;
666
667
  skip_deliverability_check: boolean;
667
668
  scheduled_at_millis: number;
@@ -686,7 +687,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
686
687
  rendered_at_millis: number;
687
688
  is_transactional: boolean;
688
689
  is_high_priority: boolean;
689
- notification_category_id: string | null;
690
690
  started_sending_at_millis: number;
691
691
  delivered_at_millis: number;
692
692
  can_have_delivery_info: boolean;
@@ -726,9 +726,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
726
726
  status: "paused";
727
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
730
  user_id: string;
734
731
  type: "user-primary-email";
@@ -740,6 +737,9 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
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;
@@ -764,9 +764,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
764
764
  status: "preparing";
765
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
768
  user_id: string;
772
769
  type: "user-primary-email";
@@ -778,6 +775,9 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
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;
@@ -802,9 +802,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
802
802
  status: "rendering";
803
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
806
  user_id: string;
810
807
  type: "user-primary-email";
@@ -816,6 +813,9 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
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;
@@ -841,9 +841,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
841
841
  status: "render-error";
842
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
845
  user_id: string;
849
846
  type: "user-primary-email";
@@ -855,6 +852,9 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
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;
@@ -880,14 +880,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
880
880
  render_error: string;
881
881
  } | {
882
882
  status: "scheduled";
883
+ html: string | null;
884
+ text: string | null;
883
885
  id: string;
884
886
  subject: string;
885
887
  created_at_millis: number;
886
- html: string | null;
887
- text: string | null;
888
- updated_at_millis: number;
889
- tsx_source: string;
890
- theme_id: string | null;
891
888
  to: {
892
889
  user_id: string;
893
890
  type: "user-primary-email";
@@ -899,6 +896,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
899
896
  type: "custom-emails";
900
897
  emails: string[];
901
898
  };
899
+ notification_category_id: string | null;
900
+ updated_at_millis: number;
901
+ tsx_source: string;
902
+ theme_id: string | null;
902
903
  variables: Record<string, {} | null>;
903
904
  skip_deliverability_check: boolean;
904
905
  scheduled_at_millis: number;
@@ -923,17 +924,13 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
923
924
  rendered_at_millis: number;
924
925
  is_transactional: boolean;
925
926
  is_high_priority: boolean;
926
- notification_category_id: string | null;
927
927
  } | {
928
928
  status: "queued";
929
+ html: string | null;
930
+ text: string | null;
929
931
  id: string;
930
932
  subject: string;
931
933
  created_at_millis: number;
932
- html: string | null;
933
- text: string | null;
934
- updated_at_millis: number;
935
- tsx_source: string;
936
- theme_id: string | null;
937
934
  to: {
938
935
  user_id: string;
939
936
  type: "user-primary-email";
@@ -945,6 +942,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
945
942
  type: "custom-emails";
946
943
  emails: string[];
947
944
  };
945
+ notification_category_id: string | null;
946
+ updated_at_millis: number;
947
+ tsx_source: string;
948
+ theme_id: string | null;
948
949
  variables: Record<string, {} | null>;
949
950
  skip_deliverability_check: boolean;
950
951
  scheduled_at_millis: number;
@@ -969,17 +970,13 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
969
970
  rendered_at_millis: number;
970
971
  is_transactional: boolean;
971
972
  is_high_priority: boolean;
972
- notification_category_id: string | null;
973
973
  } | {
974
974
  status: "sending";
975
+ html: string | null;
976
+ text: string | null;
975
977
  id: string;
976
978
  subject: string;
977
979
  created_at_millis: number;
978
- html: string | null;
979
- text: string | null;
980
- updated_at_millis: number;
981
- tsx_source: string;
982
- theme_id: string | null;
983
980
  to: {
984
981
  user_id: string;
985
982
  type: "user-primary-email";
@@ -991,6 +988,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
991
988
  type: "custom-emails";
992
989
  emails: string[];
993
990
  };
991
+ notification_category_id: string | null;
992
+ updated_at_millis: number;
993
+ tsx_source: string;
994
+ theme_id: string | null;
994
995
  variables: Record<string, {} | null>;
995
996
  skip_deliverability_check: boolean;
996
997
  scheduled_at_millis: number;
@@ -1015,18 +1016,14 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1015
1016
  rendered_at_millis: number;
1016
1017
  is_transactional: boolean;
1017
1018
  is_high_priority: boolean;
1018
- notification_category_id: string | null;
1019
1019
  started_sending_at_millis: number;
1020
1020
  } | {
1021
1021
  status: "server-error";
1022
+ html: string | null;
1023
+ text: string | null;
1022
1024
  id: string;
1023
1025
  subject: string;
1024
1026
  created_at_millis: number;
1025
- html: string | null;
1026
- text: string | null;
1027
- updated_at_millis: number;
1028
- tsx_source: string;
1029
- theme_id: string | null;
1030
1027
  to: {
1031
1028
  user_id: string;
1032
1029
  type: "user-primary-email";
@@ -1038,6 +1035,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1038
1035
  type: "custom-emails";
1039
1036
  emails: string[];
1040
1037
  };
1038
+ notification_category_id: string | null;
1039
+ updated_at_millis: number;
1040
+ tsx_source: string;
1041
+ theme_id: string | null;
1041
1042
  variables: Record<string, {} | null>;
1042
1043
  skip_deliverability_check: boolean;
1043
1044
  scheduled_at_millis: number;
@@ -1062,26 +1063,22 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1062
1063
  rendered_at_millis: number;
1063
1064
  is_transactional: boolean;
1064
1065
  is_high_priority: boolean;
1065
- notification_category_id: string | null;
1066
1066
  started_sending_at_millis: number;
1067
1067
  error_at_millis: number;
1068
1068
  server_error: string;
1069
1069
  } | {
1070
- subject?: string | undefined;
1071
1070
  html?: string | null | undefined;
1072
1071
  text?: string | null | undefined;
1072
+ subject?: string | undefined;
1073
+ notification_category_id?: string | null | undefined;
1073
1074
  started_rendering_at_millis?: number | undefined;
1074
1075
  rendered_at_millis?: number | undefined;
1075
1076
  is_transactional?: boolean | undefined;
1076
1077
  is_high_priority?: boolean | undefined;
1077
- notification_category_id?: string | null | undefined;
1078
1078
  started_sending_at_millis?: number | undefined;
1079
1079
  status: "skipped";
1080
1080
  id: string;
1081
1081
  created_at_millis: number;
1082
- updated_at_millis: number;
1083
- tsx_source: string;
1084
- theme_id: string | null;
1085
1082
  to: {
1086
1083
  user_id: string;
1087
1084
  type: "user-primary-email";
@@ -1093,6 +1090,9 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
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;
@@ -1118,14 +1118,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1118
1118
  skipped_details: Record<string, {} | null>;
1119
1119
  } | {
1120
1120
  status: "bounced";
1121
+ html: string | null;
1122
+ text: string | null;
1121
1123
  id: string;
1122
1124
  subject: string;
1123
1125
  created_at_millis: number;
1124
- html: string | null;
1125
- text: string | null;
1126
- updated_at_millis: number;
1127
- tsx_source: string;
1128
- theme_id: string | null;
1129
1126
  to: {
1130
1127
  user_id: string;
1131
1128
  type: "user-primary-email";
@@ -1137,6 +1134,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1137
1134
  type: "custom-emails";
1138
1135
  emails: string[];
1139
1136
  };
1137
+ notification_category_id: string | null;
1138
+ updated_at_millis: number;
1139
+ tsx_source: string;
1140
+ theme_id: string | null;
1140
1141
  variables: Record<string, {} | null>;
1141
1142
  skip_deliverability_check: boolean;
1142
1143
  scheduled_at_millis: number;
@@ -1161,19 +1162,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1161
1162
  rendered_at_millis: number;
1162
1163
  is_transactional: boolean;
1163
1164
  is_high_priority: boolean;
1164
- notification_category_id: string | null;
1165
1165
  started_sending_at_millis: number;
1166
1166
  bounced_at_millis: number;
1167
1167
  } | {
1168
1168
  status: "delivery-delayed";
1169
+ html: string | null;
1170
+ text: string | null;
1169
1171
  id: string;
1170
1172
  subject: string;
1171
1173
  created_at_millis: number;
1172
- html: string | null;
1173
- text: string | null;
1174
- updated_at_millis: number;
1175
- tsx_source: string;
1176
- theme_id: string | null;
1177
1174
  to: {
1178
1175
  user_id: string;
1179
1176
  type: "user-primary-email";
@@ -1185,6 +1182,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1185
1182
  type: "custom-emails";
1186
1183
  emails: string[];
1187
1184
  };
1185
+ notification_category_id: string | null;
1186
+ updated_at_millis: number;
1187
+ tsx_source: string;
1188
+ theme_id: string | null;
1188
1189
  variables: Record<string, {} | null>;
1189
1190
  skip_deliverability_check: boolean;
1190
1191
  scheduled_at_millis: number;
@@ -1209,19 +1210,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1209
1210
  rendered_at_millis: number;
1210
1211
  is_transactional: boolean;
1211
1212
  is_high_priority: boolean;
1212
- notification_category_id: string | null;
1213
1213
  started_sending_at_millis: number;
1214
1214
  delivery_delayed_at_millis: number;
1215
1215
  } | {
1216
1216
  status: "sent";
1217
+ html: string | null;
1218
+ text: string | null;
1217
1219
  id: string;
1218
1220
  subject: string;
1219
1221
  created_at_millis: number;
1220
- html: string | null;
1221
- text: string | null;
1222
- updated_at_millis: number;
1223
- tsx_source: string;
1224
- theme_id: string | null;
1225
1222
  to: {
1226
1223
  user_id: string;
1227
1224
  type: "user-primary-email";
@@ -1233,6 +1230,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1233
1230
  type: "custom-emails";
1234
1231
  emails: string[];
1235
1232
  };
1233
+ notification_category_id: string | null;
1234
+ updated_at_millis: number;
1235
+ tsx_source: string;
1236
+ theme_id: string | null;
1236
1237
  variables: Record<string, {} | null>;
1237
1238
  skip_deliverability_check: boolean;
1238
1239
  scheduled_at_millis: number;
@@ -1257,20 +1258,16 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1257
1258
  rendered_at_millis: number;
1258
1259
  is_transactional: boolean;
1259
1260
  is_high_priority: boolean;
1260
- notification_category_id: string | null;
1261
1261
  started_sending_at_millis: number;
1262
1262
  delivered_at_millis: number;
1263
1263
  can_have_delivery_info: boolean;
1264
1264
  } | {
1265
1265
  status: "opened";
1266
+ html: string | null;
1267
+ text: string | null;
1266
1268
  id: string;
1267
1269
  subject: string;
1268
1270
  created_at_millis: number;
1269
- html: string | null;
1270
- text: string | null;
1271
- updated_at_millis: number;
1272
- tsx_source: string;
1273
- theme_id: string | null;
1274
1271
  to: {
1275
1272
  user_id: string;
1276
1273
  type: "user-primary-email";
@@ -1282,6 +1279,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1282
1279
  type: "custom-emails";
1283
1280
  emails: string[];
1284
1281
  };
1282
+ notification_category_id: string | null;
1283
+ updated_at_millis: number;
1284
+ tsx_source: string;
1285
+ theme_id: string | null;
1285
1286
  variables: Record<string, {} | null>;
1286
1287
  skip_deliverability_check: boolean;
1287
1288
  scheduled_at_millis: number;
@@ -1306,21 +1307,17 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1306
1307
  rendered_at_millis: number;
1307
1308
  is_transactional: boolean;
1308
1309
  is_high_priority: boolean;
1309
- notification_category_id: string | null;
1310
1310
  started_sending_at_millis: number;
1311
1311
  delivered_at_millis: number;
1312
1312
  can_have_delivery_info: boolean;
1313
1313
  opened_at_millis: number;
1314
1314
  } | {
1315
1315
  status: "clicked";
1316
+ html: string | null;
1317
+ text: string | null;
1316
1318
  id: string;
1317
1319
  subject: string;
1318
1320
  created_at_millis: number;
1319
- html: string | null;
1320
- text: string | null;
1321
- updated_at_millis: number;
1322
- tsx_source: string;
1323
- theme_id: string | null;
1324
1321
  to: {
1325
1322
  user_id: string;
1326
1323
  type: "user-primary-email";
@@ -1332,6 +1329,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1332
1329
  type: "custom-emails";
1333
1330
  emails: string[];
1334
1331
  };
1332
+ notification_category_id: string | null;
1333
+ updated_at_millis: number;
1334
+ tsx_source: string;
1335
+ theme_id: string | null;
1335
1336
  variables: Record<string, {} | null>;
1336
1337
  skip_deliverability_check: boolean;
1337
1338
  scheduled_at_millis: number;
@@ -1356,21 +1357,17 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1356
1357
  rendered_at_millis: number;
1357
1358
  is_transactional: boolean;
1358
1359
  is_high_priority: boolean;
1359
- notification_category_id: string | null;
1360
1360
  started_sending_at_millis: number;
1361
1361
  delivered_at_millis: number;
1362
1362
  can_have_delivery_info: boolean;
1363
1363
  clicked_at_millis: number;
1364
1364
  } | {
1365
1365
  status: "marked-as-spam";
1366
+ html: string | null;
1367
+ text: string | null;
1366
1368
  id: string;
1367
1369
  subject: string;
1368
1370
  created_at_millis: number;
1369
- html: string | null;
1370
- text: string | null;
1371
- updated_at_millis: number;
1372
- tsx_source: string;
1373
- theme_id: string | null;
1374
1371
  to: {
1375
1372
  user_id: string;
1376
1373
  type: "user-primary-email";
@@ -1382,6 +1379,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1382
1379
  type: "custom-emails";
1383
1380
  emails: string[];
1384
1381
  };
1382
+ notification_category_id: string | null;
1383
+ updated_at_millis: number;
1384
+ tsx_source: string;
1385
+ theme_id: string | null;
1385
1386
  variables: Record<string, {} | null>;
1386
1387
  skip_deliverability_check: boolean;
1387
1388
  scheduled_at_millis: number;
@@ -1406,7 +1407,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1406
1407
  rendered_at_millis: number;
1407
1408
  is_transactional: boolean;
1408
1409
  is_high_priority: boolean;
1409
- notification_category_id: string | null;
1410
1410
  started_sending_at_millis: number;
1411
1411
  delivered_at_millis: number;
1412
1412
  can_have_delivery_info: boolean;