@hexclave/shared 1.0.15 → 1.0.16

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