@hexclave/shared 1.0.12 → 1.0.14

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 (31) hide show
  1. package/dist/config/schema.d.ts +173 -173
  2. package/dist/esm/config/schema.d.ts +173 -173
  3. package/dist/esm/interface/admin-metrics.d.ts +8 -8
  4. package/dist/esm/interface/conversations.d.ts +31 -31
  5. package/dist/esm/interface/crud/current-user.d.ts +7 -7
  6. package/dist/esm/interface/crud/email-outbox.d.ts +212 -212
  7. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  8. package/dist/esm/interface/crud/products.d.ts +4 -4
  9. package/dist/esm/interface/crud/project-api-keys.d.ts +3 -3
  10. package/dist/esm/interface/crud/projects.d.ts +16 -16
  11. package/dist/esm/interface/crud/team-member-profiles.d.ts +18 -18
  12. package/dist/esm/interface/crud/transactions.d.ts +2 -2
  13. package/dist/esm/interface/crud/users.d.ts +10 -10
  14. package/dist/esm/interface/webhooks.d.ts +2 -2
  15. package/dist/esm/schema-fields.d.ts +3 -3
  16. package/dist/esm/sessions.d.ts +8 -8
  17. package/dist/interface/admin-metrics.d.ts +8 -8
  18. package/dist/interface/conversations.d.ts +31 -31
  19. package/dist/interface/crud/current-user.d.ts +7 -7
  20. package/dist/interface/crud/email-outbox.d.ts +212 -212
  21. package/dist/interface/crud/invoices.d.ts +2 -2
  22. package/dist/interface/crud/products.d.ts +4 -4
  23. package/dist/interface/crud/project-api-keys.d.ts +3 -3
  24. package/dist/interface/crud/projects.d.ts +16 -16
  25. package/dist/interface/crud/team-member-profiles.d.ts +18 -18
  26. package/dist/interface/crud/transactions.d.ts +2 -2
  27. package/dist/interface/crud/users.d.ts +10 -10
  28. package/dist/interface/webhooks.d.ts +2 -2
  29. package/dist/schema-fields.d.ts +3 -3
  30. package/dist/sessions.d.ts +8 -8
  31. package/package.json +1 -1
@@ -10,15 +10,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
10
10
  tsx_source: string;
11
11
  theme_id: string | null;
12
12
  to: {
13
- type: "user-primary-email";
14
13
  user_id: string;
14
+ type: "user-primary-email";
15
15
  } | {
16
- type: "user-custom-emails";
17
- user_id: string;
18
16
  emails: string[];
17
+ user_id: string;
18
+ type: "user-custom-emails";
19
19
  } | {
20
- type: "custom-emails";
21
20
  emails: string[];
21
+ type: "custom-emails";
22
22
  };
23
23
  variables: Record<string, {} | null>;
24
24
  skip_deliverability_check: boolean;
@@ -48,15 +48,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
48
48
  tsx_source: string;
49
49
  theme_id: string | null;
50
50
  to: {
51
- type: "user-primary-email";
52
51
  user_id: string;
52
+ type: "user-primary-email";
53
53
  } | {
54
- type: "user-custom-emails";
55
- user_id: string;
56
54
  emails: string[];
55
+ user_id: string;
56
+ type: "user-custom-emails";
57
57
  } | {
58
- type: "custom-emails";
59
58
  emails: string[];
59
+ type: "custom-emails";
60
60
  };
61
61
  variables: Record<string, {} | null>;
62
62
  skip_deliverability_check: boolean;
@@ -86,15 +86,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
86
86
  tsx_source: string;
87
87
  theme_id: string | null;
88
88
  to: {
89
- type: "user-primary-email";
90
89
  user_id: string;
90
+ type: "user-primary-email";
91
91
  } | {
92
- type: "user-custom-emails";
93
- user_id: string;
94
92
  emails: string[];
93
+ user_id: string;
94
+ type: "user-custom-emails";
95
95
  } | {
96
- type: "custom-emails";
97
96
  emails: string[];
97
+ type: "custom-emails";
98
98
  };
99
99
  variables: Record<string, {} | null>;
100
100
  skip_deliverability_check: boolean;
@@ -125,15 +125,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
125
125
  tsx_source: string;
126
126
  theme_id: string | null;
127
127
  to: {
128
- type: "user-primary-email";
129
128
  user_id: string;
129
+ type: "user-primary-email";
130
130
  } | {
131
- type: "user-custom-emails";
132
- user_id: string;
133
131
  emails: string[];
132
+ user_id: string;
133
+ type: "user-custom-emails";
134
134
  } | {
135
- type: "custom-emails";
136
135
  emails: string[];
136
+ type: "custom-emails";
137
137
  };
138
138
  variables: Record<string, {} | null>;
139
139
  skip_deliverability_check: boolean;
@@ -159,25 +159,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
159
159
  rendered_at_millis: number;
160
160
  render_error: string;
161
161
  } | {
162
+ html: string | null;
163
+ text: string | null;
162
164
  status: "scheduled";
163
165
  id: string;
164
- subject: string;
166
+ notification_category_id: string | null;
165
167
  created_at_millis: number;
166
- html: string | null;
167
- text: string | null;
168
+ subject: string;
168
169
  updated_at_millis: number;
169
170
  tsx_source: string;
170
171
  theme_id: string | null;
171
172
  to: {
172
- type: "user-primary-email";
173
173
  user_id: string;
174
+ type: "user-primary-email";
174
175
  } | {
175
- type: "user-custom-emails";
176
- user_id: string;
177
176
  emails: string[];
177
+ user_id: string;
178
+ type: "user-custom-emails";
178
179
  } | {
179
- type: "custom-emails";
180
180
  emails: string[];
181
+ type: "custom-emails";
181
182
  };
182
183
  variables: Record<string, {} | null>;
183
184
  skip_deliverability_check: boolean;
@@ -203,27 +204,27 @@ 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
+ html: string | null;
209
+ text: string | null;
208
210
  status: "queued";
209
211
  id: string;
210
- subject: string;
212
+ notification_category_id: string | null;
211
213
  created_at_millis: number;
212
- html: string | null;
213
- text: string | null;
214
+ subject: string;
214
215
  updated_at_millis: number;
215
216
  tsx_source: string;
216
217
  theme_id: string | null;
217
218
  to: {
218
- type: "user-primary-email";
219
219
  user_id: string;
220
+ type: "user-primary-email";
220
221
  } | {
221
- type: "user-custom-emails";
222
- user_id: string;
223
222
  emails: string[];
223
+ user_id: string;
224
+ type: "user-custom-emails";
224
225
  } | {
225
- type: "custom-emails";
226
226
  emails: string[];
227
+ type: "custom-emails";
227
228
  };
228
229
  variables: Record<string, {} | null>;
229
230
  skip_deliverability_check: boolean;
@@ -249,27 +250,27 @@ 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
+ html: string | null;
255
+ text: string | null;
254
256
  status: "sending";
255
257
  id: string;
256
- subject: string;
258
+ notification_category_id: string | null;
257
259
  created_at_millis: number;
258
- html: string | null;
259
- text: string | null;
260
+ subject: string;
260
261
  updated_at_millis: number;
261
262
  tsx_source: string;
262
263
  theme_id: string | null;
263
264
  to: {
264
- type: "user-primary-email";
265
265
  user_id: string;
266
+ type: "user-primary-email";
266
267
  } | {
267
- type: "user-custom-emails";
268
- user_id: string;
269
268
  emails: string[];
269
+ user_id: string;
270
+ type: "user-custom-emails";
270
271
  } | {
271
- type: "custom-emails";
272
272
  emails: string[];
273
+ type: "custom-emails";
273
274
  };
274
275
  variables: Record<string, {} | null>;
275
276
  skip_deliverability_check: boolean;
@@ -295,28 +296,28 @@ 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
+ html: string | null;
302
+ text: string | null;
301
303
  status: "server-error";
302
304
  id: string;
303
- subject: string;
305
+ notification_category_id: string | null;
304
306
  created_at_millis: number;
305
- html: string | null;
306
- text: string | null;
307
+ subject: string;
307
308
  updated_at_millis: number;
308
309
  tsx_source: string;
309
310
  theme_id: string | null;
310
311
  to: {
311
- type: "user-primary-email";
312
312
  user_id: string;
313
+ type: "user-primary-email";
313
314
  } | {
314
- type: "user-custom-emails";
315
- user_id: string;
316
315
  emails: string[];
316
+ user_id: string;
317
+ type: "user-custom-emails";
317
318
  } | {
318
- type: "custom-emails";
319
319
  emails: string[];
320
+ type: "custom-emails";
320
321
  };
321
322
  variables: Record<string, {} | null>;
322
323
  skip_deliverability_check: boolean;
@@ -342,19 +343,18 @@ 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
+ notification_category_id?: string | null | undefined;
353
+ subject?: string | 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;
@@ -363,15 +363,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
363
363
  tsx_source: string;
364
364
  theme_id: string | null;
365
365
  to: {
366
- type: "user-primary-email";
367
366
  user_id: string;
367
+ type: "user-primary-email";
368
368
  } | {
369
- type: "user-custom-emails";
370
- user_id: string;
371
369
  emails: string[];
370
+ user_id: string;
371
+ type: "user-custom-emails";
372
372
  } | {
373
- type: "custom-emails";
374
373
  emails: string[];
374
+ type: "custom-emails";
375
375
  };
376
376
  variables: Record<string, {} | null>;
377
377
  skip_deliverability_check: boolean;
@@ -397,25 +397,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
397
397
  skipped_reason: string;
398
398
  skipped_details: Record<string, {} | null>;
399
399
  } | {
400
+ html: string | null;
401
+ text: string | null;
400
402
  status: "bounced";
401
403
  id: string;
402
- subject: string;
404
+ notification_category_id: string | null;
403
405
  created_at_millis: number;
404
- html: string | null;
405
- text: string | null;
406
+ subject: string;
406
407
  updated_at_millis: number;
407
408
  tsx_source: string;
408
409
  theme_id: string | null;
409
410
  to: {
410
- type: "user-primary-email";
411
411
  user_id: string;
412
+ type: "user-primary-email";
412
413
  } | {
413
- type: "user-custom-emails";
414
- user_id: string;
415
414
  emails: string[];
415
+ user_id: string;
416
+ type: "user-custom-emails";
416
417
  } | {
417
- type: "custom-emails";
418
418
  emails: string[];
419
+ type: "custom-emails";
419
420
  };
420
421
  variables: Record<string, {} | null>;
421
422
  skip_deliverability_check: boolean;
@@ -441,29 +442,29 @@ 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
+ html: string | null;
449
+ text: string | null;
448
450
  status: "delivery-delayed";
449
451
  id: string;
450
- subject: string;
452
+ notification_category_id: string | null;
451
453
  created_at_millis: number;
452
- html: string | null;
453
- text: string | null;
454
+ subject: string;
454
455
  updated_at_millis: number;
455
456
  tsx_source: string;
456
457
  theme_id: string | null;
457
458
  to: {
458
- type: "user-primary-email";
459
459
  user_id: string;
460
+ type: "user-primary-email";
460
461
  } | {
461
- type: "user-custom-emails";
462
- user_id: string;
463
462
  emails: string[];
463
+ user_id: string;
464
+ type: "user-custom-emails";
464
465
  } | {
465
- type: "custom-emails";
466
466
  emails: string[];
467
+ type: "custom-emails";
467
468
  };
468
469
  variables: Record<string, {} | null>;
469
470
  skip_deliverability_check: boolean;
@@ -489,29 +490,29 @@ 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
+ html: string | null;
497
+ text: string | null;
496
498
  status: "sent";
497
499
  id: string;
498
- subject: string;
500
+ notification_category_id: string | null;
499
501
  created_at_millis: number;
500
- html: string | null;
501
- text: string | null;
502
+ subject: string;
502
503
  updated_at_millis: number;
503
504
  tsx_source: string;
504
505
  theme_id: string | null;
505
506
  to: {
506
- type: "user-primary-email";
507
507
  user_id: string;
508
+ type: "user-primary-email";
508
509
  } | {
509
- type: "user-custom-emails";
510
- user_id: string;
511
510
  emails: string[];
511
+ user_id: string;
512
+ type: "user-custom-emails";
512
513
  } | {
513
- type: "custom-emails";
514
514
  emails: string[];
515
+ type: "custom-emails";
515
516
  };
516
517
  variables: Record<string, {} | null>;
517
518
  skip_deliverability_check: boolean;
@@ -537,30 +538,30 @@ 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
+ html: string | null;
546
+ text: string | null;
545
547
  status: "opened";
546
548
  id: string;
547
- subject: string;
549
+ notification_category_id: string | null;
548
550
  created_at_millis: number;
549
- html: string | null;
550
- text: string | null;
551
+ subject: string;
551
552
  updated_at_millis: number;
552
553
  tsx_source: string;
553
554
  theme_id: string | null;
554
555
  to: {
555
- type: "user-primary-email";
556
556
  user_id: string;
557
+ type: "user-primary-email";
557
558
  } | {
558
- type: "user-custom-emails";
559
- user_id: string;
560
559
  emails: string[];
560
+ user_id: string;
561
+ type: "user-custom-emails";
561
562
  } | {
562
- type: "custom-emails";
563
563
  emails: string[];
564
+ type: "custom-emails";
564
565
  };
565
566
  variables: Record<string, {} | null>;
566
567
  skip_deliverability_check: boolean;
@@ -586,31 +587,31 @@ 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
+ html: string | null;
596
+ text: string | null;
595
597
  status: "clicked";
596
598
  id: string;
597
- subject: string;
599
+ notification_category_id: string | null;
598
600
  created_at_millis: number;
599
- html: string | null;
600
- text: string | null;
601
+ subject: string;
601
602
  updated_at_millis: number;
602
603
  tsx_source: string;
603
604
  theme_id: string | null;
604
605
  to: {
605
- type: "user-primary-email";
606
606
  user_id: string;
607
+ type: "user-primary-email";
607
608
  } | {
608
- type: "user-custom-emails";
609
- user_id: string;
610
609
  emails: string[];
610
+ user_id: string;
611
+ type: "user-custom-emails";
611
612
  } | {
612
- type: "custom-emails";
613
613
  emails: string[];
614
+ type: "custom-emails";
614
615
  };
615
616
  variables: Record<string, {} | null>;
616
617
  skip_deliverability_check: boolean;
@@ -636,31 +637,31 @@ 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
+ html: string | null;
646
+ text: string | null;
645
647
  status: "marked-as-spam";
646
648
  id: string;
647
- subject: string;
649
+ notification_category_id: string | null;
648
650
  created_at_millis: number;
649
- html: string | null;
650
- text: string | null;
651
+ subject: string;
651
652
  updated_at_millis: number;
652
653
  tsx_source: string;
653
654
  theme_id: string | null;
654
655
  to: {
655
- type: "user-primary-email";
656
656
  user_id: string;
657
+ type: "user-primary-email";
657
658
  } | {
658
- type: "user-custom-emails";
659
- user_id: string;
660
659
  emails: string[];
660
+ user_id: string;
661
+ type: "user-custom-emails";
661
662
  } | {
662
- type: "custom-emails";
663
663
  emails: string[];
664
+ type: "custom-emails";
664
665
  };
665
666
  variables: Record<string, {} | null>;
666
667
  skip_deliverability_check: boolean;
@@ -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;
@@ -696,15 +696,15 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
696
696
  tsx_source: string | undefined;
697
697
  theme_id: string | null | undefined;
698
698
  to: {
699
- type: "user-primary-email";
700
699
  user_id: string;
700
+ type: "user-primary-email";
701
701
  } | {
702
- type: "user-custom-emails";
703
- user_id: string;
704
702
  emails: string[];
703
+ user_id: string;
704
+ type: "user-custom-emails";
705
705
  } | {
706
- type: "custom-emails";
707
706
  emails: string[];
707
+ type: "custom-emails";
708
708
  } | undefined;
709
709
  variables: Record<string, {} | null> | undefined;
710
710
  skip_deliverability_check: boolean | undefined;
@@ -730,15 +730,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
730
730
  tsx_source: string;
731
731
  theme_id: string | null;
732
732
  to: {
733
- type: "user-primary-email";
734
733
  user_id: string;
734
+ type: "user-primary-email";
735
735
  } | {
736
- type: "user-custom-emails";
737
- user_id: string;
738
736
  emails: string[];
737
+ user_id: string;
738
+ type: "user-custom-emails";
739
739
  } | {
740
- type: "custom-emails";
741
740
  emails: string[];
741
+ type: "custom-emails";
742
742
  };
743
743
  variables: Record<string, {} | null>;
744
744
  skip_deliverability_check: boolean;
@@ -768,15 +768,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
768
768
  tsx_source: string;
769
769
  theme_id: string | null;
770
770
  to: {
771
- type: "user-primary-email";
772
771
  user_id: string;
772
+ type: "user-primary-email";
773
773
  } | {
774
- type: "user-custom-emails";
775
- user_id: string;
776
774
  emails: string[];
775
+ user_id: string;
776
+ type: "user-custom-emails";
777
777
  } | {
778
- type: "custom-emails";
779
778
  emails: string[];
779
+ type: "custom-emails";
780
780
  };
781
781
  variables: Record<string, {} | null>;
782
782
  skip_deliverability_check: boolean;
@@ -806,15 +806,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
806
806
  tsx_source: string;
807
807
  theme_id: string | null;
808
808
  to: {
809
- type: "user-primary-email";
810
809
  user_id: string;
810
+ type: "user-primary-email";
811
811
  } | {
812
- type: "user-custom-emails";
813
- user_id: string;
814
812
  emails: string[];
813
+ user_id: string;
814
+ type: "user-custom-emails";
815
815
  } | {
816
- type: "custom-emails";
817
816
  emails: string[];
817
+ type: "custom-emails";
818
818
  };
819
819
  variables: Record<string, {} | null>;
820
820
  skip_deliverability_check: boolean;
@@ -845,15 +845,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
845
845
  tsx_source: string;
846
846
  theme_id: string | null;
847
847
  to: {
848
- type: "user-primary-email";
849
848
  user_id: string;
849
+ type: "user-primary-email";
850
850
  } | {
851
- type: "user-custom-emails";
852
- user_id: string;
853
851
  emails: string[];
852
+ user_id: string;
853
+ type: "user-custom-emails";
854
854
  } | {
855
- type: "custom-emails";
856
855
  emails: string[];
856
+ type: "custom-emails";
857
857
  };
858
858
  variables: Record<string, {} | null>;
859
859
  skip_deliverability_check: boolean;
@@ -879,25 +879,26 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
879
879
  rendered_at_millis: number;
880
880
  render_error: string;
881
881
  } | {
882
+ html: string | null;
883
+ text: string | null;
882
884
  status: "scheduled";
883
885
  id: string;
884
- subject: string;
886
+ notification_category_id: string | null;
885
887
  created_at_millis: number;
886
- html: string | null;
887
- text: string | null;
888
+ subject: string;
888
889
  updated_at_millis: number;
889
890
  tsx_source: string;
890
891
  theme_id: string | null;
891
892
  to: {
892
- type: "user-primary-email";
893
893
  user_id: string;
894
+ type: "user-primary-email";
894
895
  } | {
895
- type: "user-custom-emails";
896
- user_id: string;
897
896
  emails: string[];
897
+ user_id: string;
898
+ type: "user-custom-emails";
898
899
  } | {
899
- type: "custom-emails";
900
900
  emails: string[];
901
+ type: "custom-emails";
901
902
  };
902
903
  variables: Record<string, {} | null>;
903
904
  skip_deliverability_check: boolean;
@@ -923,27 +924,27 @@ 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
+ html: string | null;
929
+ text: string | null;
928
930
  status: "queued";
929
931
  id: string;
930
- subject: string;
932
+ notification_category_id: string | null;
931
933
  created_at_millis: number;
932
- html: string | null;
933
- text: string | null;
934
+ subject: string;
934
935
  updated_at_millis: number;
935
936
  tsx_source: string;
936
937
  theme_id: string | null;
937
938
  to: {
938
- type: "user-primary-email";
939
939
  user_id: string;
940
+ type: "user-primary-email";
940
941
  } | {
941
- type: "user-custom-emails";
942
- user_id: string;
943
942
  emails: string[];
943
+ user_id: string;
944
+ type: "user-custom-emails";
944
945
  } | {
945
- type: "custom-emails";
946
946
  emails: string[];
947
+ type: "custom-emails";
947
948
  };
948
949
  variables: Record<string, {} | null>;
949
950
  skip_deliverability_check: boolean;
@@ -969,27 +970,27 @@ 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
+ html: string | null;
975
+ text: string | null;
974
976
  status: "sending";
975
977
  id: string;
976
- subject: string;
978
+ notification_category_id: string | null;
977
979
  created_at_millis: number;
978
- html: string | null;
979
- text: string | null;
980
+ subject: string;
980
981
  updated_at_millis: number;
981
982
  tsx_source: string;
982
983
  theme_id: string | null;
983
984
  to: {
984
- type: "user-primary-email";
985
985
  user_id: string;
986
+ type: "user-primary-email";
986
987
  } | {
987
- type: "user-custom-emails";
988
- user_id: string;
989
988
  emails: string[];
989
+ user_id: string;
990
+ type: "user-custom-emails";
990
991
  } | {
991
- type: "custom-emails";
992
992
  emails: string[];
993
+ type: "custom-emails";
993
994
  };
994
995
  variables: Record<string, {} | null>;
995
996
  skip_deliverability_check: boolean;
@@ -1015,28 +1016,28 @@ 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
+ html: string | null;
1022
+ text: string | null;
1021
1023
  status: "server-error";
1022
1024
  id: string;
1023
- subject: string;
1025
+ notification_category_id: string | null;
1024
1026
  created_at_millis: number;
1025
- html: string | null;
1026
- text: string | null;
1027
+ subject: string;
1027
1028
  updated_at_millis: number;
1028
1029
  tsx_source: string;
1029
1030
  theme_id: string | null;
1030
1031
  to: {
1031
- type: "user-primary-email";
1032
1032
  user_id: string;
1033
+ type: "user-primary-email";
1033
1034
  } | {
1034
- type: "user-custom-emails";
1035
- user_id: string;
1036
1035
  emails: string[];
1036
+ user_id: string;
1037
+ type: "user-custom-emails";
1037
1038
  } | {
1038
- type: "custom-emails";
1039
1039
  emails: string[];
1040
+ type: "custom-emails";
1040
1041
  };
1041
1042
  variables: Record<string, {} | null>;
1042
1043
  skip_deliverability_check: boolean;
@@ -1062,19 +1063,18 @@ 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
+ notification_category_id?: string | null | undefined;
1073
+ subject?: string | 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;
@@ -1083,15 +1083,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1083
1083
  tsx_source: string;
1084
1084
  theme_id: string | null;
1085
1085
  to: {
1086
- type: "user-primary-email";
1087
1086
  user_id: string;
1087
+ type: "user-primary-email";
1088
1088
  } | {
1089
- type: "user-custom-emails";
1090
- user_id: string;
1091
1089
  emails: string[];
1090
+ user_id: string;
1091
+ type: "user-custom-emails";
1092
1092
  } | {
1093
- type: "custom-emails";
1094
1093
  emails: string[];
1094
+ type: "custom-emails";
1095
1095
  };
1096
1096
  variables: Record<string, {} | null>;
1097
1097
  skip_deliverability_check: boolean;
@@ -1117,25 +1117,26 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1117
1117
  skipped_reason: string;
1118
1118
  skipped_details: Record<string, {} | null>;
1119
1119
  } | {
1120
+ html: string | null;
1121
+ text: string | null;
1120
1122
  status: "bounced";
1121
1123
  id: string;
1122
- subject: string;
1124
+ notification_category_id: string | null;
1123
1125
  created_at_millis: number;
1124
- html: string | null;
1125
- text: string | null;
1126
+ subject: string;
1126
1127
  updated_at_millis: number;
1127
1128
  tsx_source: string;
1128
1129
  theme_id: string | null;
1129
1130
  to: {
1130
- type: "user-primary-email";
1131
1131
  user_id: string;
1132
+ type: "user-primary-email";
1132
1133
  } | {
1133
- type: "user-custom-emails";
1134
- user_id: string;
1135
1134
  emails: string[];
1135
+ user_id: string;
1136
+ type: "user-custom-emails";
1136
1137
  } | {
1137
- type: "custom-emails";
1138
1138
  emails: string[];
1139
+ type: "custom-emails";
1139
1140
  };
1140
1141
  variables: Record<string, {} | null>;
1141
1142
  skip_deliverability_check: boolean;
@@ -1161,29 +1162,29 @@ 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
+ html: string | null;
1169
+ text: string | null;
1168
1170
  status: "delivery-delayed";
1169
1171
  id: string;
1170
- subject: string;
1172
+ notification_category_id: string | null;
1171
1173
  created_at_millis: number;
1172
- html: string | null;
1173
- text: string | null;
1174
+ subject: string;
1174
1175
  updated_at_millis: number;
1175
1176
  tsx_source: string;
1176
1177
  theme_id: string | null;
1177
1178
  to: {
1178
- type: "user-primary-email";
1179
1179
  user_id: string;
1180
+ type: "user-primary-email";
1180
1181
  } | {
1181
- type: "user-custom-emails";
1182
- user_id: string;
1183
1182
  emails: string[];
1183
+ user_id: string;
1184
+ type: "user-custom-emails";
1184
1185
  } | {
1185
- type: "custom-emails";
1186
1186
  emails: string[];
1187
+ type: "custom-emails";
1187
1188
  };
1188
1189
  variables: Record<string, {} | null>;
1189
1190
  skip_deliverability_check: boolean;
@@ -1209,29 +1210,29 @@ 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
+ html: string | null;
1217
+ text: string | null;
1216
1218
  status: "sent";
1217
1219
  id: string;
1218
- subject: string;
1220
+ notification_category_id: string | null;
1219
1221
  created_at_millis: number;
1220
- html: string | null;
1221
- text: string | null;
1222
+ subject: string;
1222
1223
  updated_at_millis: number;
1223
1224
  tsx_source: string;
1224
1225
  theme_id: string | null;
1225
1226
  to: {
1226
- type: "user-primary-email";
1227
1227
  user_id: string;
1228
+ type: "user-primary-email";
1228
1229
  } | {
1229
- type: "user-custom-emails";
1230
- user_id: string;
1231
1230
  emails: string[];
1231
+ user_id: string;
1232
+ type: "user-custom-emails";
1232
1233
  } | {
1233
- type: "custom-emails";
1234
1234
  emails: string[];
1235
+ type: "custom-emails";
1235
1236
  };
1236
1237
  variables: Record<string, {} | null>;
1237
1238
  skip_deliverability_check: boolean;
@@ -1257,30 +1258,30 @@ 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
+ html: string | null;
1266
+ text: string | null;
1265
1267
  status: "opened";
1266
1268
  id: string;
1267
- subject: string;
1269
+ notification_category_id: string | null;
1268
1270
  created_at_millis: number;
1269
- html: string | null;
1270
- text: string | null;
1271
+ subject: string;
1271
1272
  updated_at_millis: number;
1272
1273
  tsx_source: string;
1273
1274
  theme_id: string | null;
1274
1275
  to: {
1275
- type: "user-primary-email";
1276
1276
  user_id: string;
1277
+ type: "user-primary-email";
1277
1278
  } | {
1278
- type: "user-custom-emails";
1279
- user_id: string;
1280
1279
  emails: string[];
1280
+ user_id: string;
1281
+ type: "user-custom-emails";
1281
1282
  } | {
1282
- type: "custom-emails";
1283
1283
  emails: string[];
1284
+ type: "custom-emails";
1284
1285
  };
1285
1286
  variables: Record<string, {} | null>;
1286
1287
  skip_deliverability_check: boolean;
@@ -1306,31 +1307,31 @@ 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
+ html: string | null;
1316
+ text: string | null;
1315
1317
  status: "clicked";
1316
1318
  id: string;
1317
- subject: string;
1319
+ notification_category_id: string | null;
1318
1320
  created_at_millis: number;
1319
- html: string | null;
1320
- text: string | null;
1321
+ subject: string;
1321
1322
  updated_at_millis: number;
1322
1323
  tsx_source: string;
1323
1324
  theme_id: string | null;
1324
1325
  to: {
1325
- type: "user-primary-email";
1326
1326
  user_id: string;
1327
+ type: "user-primary-email";
1327
1328
  } | {
1328
- type: "user-custom-emails";
1329
- user_id: string;
1330
1329
  emails: string[];
1330
+ user_id: string;
1331
+ type: "user-custom-emails";
1331
1332
  } | {
1332
- type: "custom-emails";
1333
1333
  emails: string[];
1334
+ type: "custom-emails";
1334
1335
  };
1335
1336
  variables: Record<string, {} | null>;
1336
1337
  skip_deliverability_check: boolean;
@@ -1356,31 +1357,31 @@ 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
+ html: string | null;
1366
+ text: string | null;
1365
1367
  status: "marked-as-spam";
1366
1368
  id: string;
1367
- subject: string;
1369
+ notification_category_id: string | null;
1368
1370
  created_at_millis: number;
1369
- html: string | null;
1370
- text: string | null;
1371
+ subject: string;
1371
1372
  updated_at_millis: number;
1372
1373
  tsx_source: string;
1373
1374
  theme_id: string | null;
1374
1375
  to: {
1375
- type: "user-primary-email";
1376
1376
  user_id: string;
1377
+ type: "user-primary-email";
1377
1378
  } | {
1378
- type: "user-custom-emails";
1379
- user_id: string;
1380
1379
  emails: string[];
1380
+ user_id: string;
1381
+ type: "user-custom-emails";
1381
1382
  } | {
1382
- type: "custom-emails";
1383
1383
  emails: string[];
1384
+ type: "custom-emails";
1384
1385
  };
1385
1386
  variables: Record<string, {} | null>;
1386
1387
  skip_deliverability_check: boolean;
@@ -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;
@@ -1416,15 +1416,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1416
1416
  tsx_source: string | undefined;
1417
1417
  theme_id: string | null | undefined;
1418
1418
  to: {
1419
- type: "user-primary-email";
1420
1419
  user_id: string;
1420
+ type: "user-primary-email";
1421
1421
  } | {
1422
- type: "user-custom-emails";
1423
- user_id: string;
1424
1422
  emails: string[];
1423
+ user_id: string;
1424
+ type: "user-custom-emails";
1425
1425
  } | {
1426
- type: "custom-emails";
1427
1426
  emails: string[];
1427
+ type: "custom-emails";
1428
1428
  } | undefined;
1429
1429
  variables: Record<string, {} | null> | undefined;
1430
1430
  skip_deliverability_check: boolean | undefined;