@hexclave/shared 1.0.32 → 1.0.33

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 +89 -89
  2. package/dist/esm/config/schema.d.ts +89 -89
  3. package/dist/esm/helpers/init-prompt.js +1 -1
  4. package/dist/esm/helpers/init-prompt.js.map +1 -1
  5. package/dist/esm/interface/admin-metrics.d.ts +23 -23
  6. package/dist/esm/interface/conversations.d.ts +32 -32
  7. package/dist/esm/interface/crud/current-user.d.ts +14 -14
  8. package/dist/esm/interface/crud/email-outbox.d.ts +206 -206
  9. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  10. package/dist/esm/interface/crud/products.d.ts +9 -9
  11. package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
  12. package/dist/esm/interface/crud/projects.d.ts +7 -7
  13. package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
  14. package/dist/esm/interface/crud/transactions.d.ts +4 -4
  15. package/dist/esm/interface/crud/users.d.ts +16 -16
  16. package/dist/esm/interface/plan-usage.d.ts +1 -1
  17. package/dist/esm/interface/webhooks.d.ts +2 -2
  18. package/dist/esm/schema-fields.d.ts +11 -11
  19. package/dist/esm/sessions.d.ts +8 -8
  20. package/dist/helpers/init-prompt.js +1 -1
  21. package/dist/helpers/init-prompt.js.map +1 -1
  22. package/dist/interface/admin-metrics.d.ts +23 -23
  23. package/dist/interface/conversations.d.ts +32 -32
  24. package/dist/interface/crud/current-user.d.ts +14 -14
  25. package/dist/interface/crud/email-outbox.d.ts +206 -206
  26. package/dist/interface/crud/invoices.d.ts +2 -2
  27. package/dist/interface/crud/products.d.ts +9 -9
  28. package/dist/interface/crud/project-api-keys.d.ts +4 -4
  29. package/dist/interface/crud/projects.d.ts +7 -7
  30. package/dist/interface/crud/team-member-profiles.d.ts +24 -24
  31. package/dist/interface/crud/transactions.d.ts +4 -4
  32. package/dist/interface/crud/users.d.ts +16 -16
  33. package/dist/interface/plan-usage.d.ts +1 -1
  34. package/dist/interface/webhooks.d.ts +2 -2
  35. package/dist/schema-fields.d.ts +11 -11
  36. package/dist/sessions.d.ts +8 -8
  37. package/package.json +1 -1
  38. package/src/helpers/init-prompt.ts +1 -1
@@ -4,23 +4,23 @@ 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
+ updated_at_millis: number;
11
+ tsx_source: string;
12
+ theme_id: string | null;
10
13
  to: {
11
- user_id: string;
12
14
  type: "user-primary-email";
13
- } | {
14
15
  user_id: string;
16
+ } | {
15
17
  type: "user-custom-emails";
18
+ user_id: string;
16
19
  emails: string[];
17
20
  } | {
18
21
  type: "custom-emails";
19
22
  emails: string[];
20
23
  };
21
- updated_at_millis: number;
22
- tsx_source: string;
23
- theme_id: string | null;
24
24
  variables: Record<string, {} | null>;
25
25
  skip_deliverability_check: boolean;
26
26
  scheduled_at_millis: number;
@@ -42,23 +42,23 @@ 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
+ updated_at_millis: number;
49
+ tsx_source: string;
50
+ theme_id: string | null;
48
51
  to: {
49
- user_id: string;
50
52
  type: "user-primary-email";
51
- } | {
52
53
  user_id: string;
54
+ } | {
53
55
  type: "user-custom-emails";
56
+ user_id: string;
54
57
  emails: string[];
55
58
  } | {
56
59
  type: "custom-emails";
57
60
  emails: string[];
58
61
  };
59
- updated_at_millis: number;
60
- tsx_source: string;
61
- theme_id: string | null;
62
62
  variables: Record<string, {} | null>;
63
63
  skip_deliverability_check: boolean;
64
64
  scheduled_at_millis: number;
@@ -80,23 +80,23 @@ 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
+ updated_at_millis: number;
87
+ tsx_source: string;
88
+ theme_id: string | null;
86
89
  to: {
87
- user_id: string;
88
90
  type: "user-primary-email";
89
- } | {
90
91
  user_id: string;
92
+ } | {
91
93
  type: "user-custom-emails";
94
+ user_id: string;
92
95
  emails: string[];
93
96
  } | {
94
97
  type: "custom-emails";
95
98
  emails: string[];
96
99
  };
97
- updated_at_millis: number;
98
- tsx_source: string;
99
- theme_id: string | null;
100
100
  variables: Record<string, {} | null>;
101
101
  skip_deliverability_check: boolean;
102
102
  scheduled_at_millis: number;
@@ -119,23 +119,23 @@ 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
+ updated_at_millis: number;
126
+ tsx_source: string;
127
+ theme_id: string | null;
125
128
  to: {
126
- user_id: string;
127
129
  type: "user-primary-email";
128
- } | {
129
130
  user_id: string;
131
+ } | {
130
132
  type: "user-custom-emails";
133
+ user_id: string;
131
134
  emails: string[];
132
135
  } | {
133
136
  type: "custom-emails";
134
137
  emails: string[];
135
138
  };
136
- updated_at_millis: number;
137
- tsx_source: string;
138
- theme_id: string | null;
139
139
  variables: Record<string, {} | null>;
140
140
  skip_deliverability_check: boolean;
141
141
  scheduled_at_millis: number;
@@ -160,25 +160,24 @@ 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;
164
+ status: "scheduled";
165
165
  subject: string;
166
166
  created_at_millis: number;
167
- notification_category_id: string | null;
167
+ updated_at_millis: number;
168
+ tsx_source: string;
169
+ theme_id: string | null;
168
170
  to: {
169
- user_id: string;
170
171
  type: "user-primary-email";
171
- } | {
172
172
  user_id: string;
173
+ } | {
173
174
  type: "user-custom-emails";
175
+ user_id: string;
174
176
  emails: string[];
175
177
  } | {
176
178
  type: "custom-emails";
177
179
  emails: string[];
178
180
  };
179
- updated_at_millis: number;
180
- tsx_source: string;
181
- theme_id: string | null;
182
181
  variables: Record<string, {} | null>;
183
182
  skip_deliverability_check: boolean;
184
183
  scheduled_at_millis: number;
@@ -205,26 +204,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
205
204
  text: string | null;
206
205
  is_transactional: boolean;
207
206
  is_high_priority: boolean;
207
+ notification_category_id: string | null;
208
208
  } | {
209
- status: "queued";
210
209
  id: string;
210
+ status: "queued";
211
211
  subject: string;
212
212
  created_at_millis: number;
213
- notification_category_id: string | null;
213
+ updated_at_millis: number;
214
+ tsx_source: string;
215
+ theme_id: string | null;
214
216
  to: {
215
- user_id: string;
216
217
  type: "user-primary-email";
217
- } | {
218
218
  user_id: string;
219
+ } | {
219
220
  type: "user-custom-emails";
221
+ user_id: string;
220
222
  emails: string[];
221
223
  } | {
222
224
  type: "custom-emails";
223
225
  emails: string[];
224
226
  };
225
- updated_at_millis: number;
226
- tsx_source: string;
227
- theme_id: string | null;
228
227
  variables: Record<string, {} | null>;
229
228
  skip_deliverability_check: boolean;
230
229
  scheduled_at_millis: number;
@@ -251,26 +250,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
251
250
  text: string | null;
252
251
  is_transactional: boolean;
253
252
  is_high_priority: boolean;
253
+ notification_category_id: string | null;
254
254
  } | {
255
- status: "sending";
256
255
  id: string;
256
+ status: "sending";
257
257
  subject: string;
258
258
  created_at_millis: number;
259
- notification_category_id: string | null;
259
+ updated_at_millis: number;
260
+ tsx_source: string;
261
+ theme_id: string | null;
260
262
  to: {
261
- user_id: string;
262
263
  type: "user-primary-email";
263
- } | {
264
264
  user_id: string;
265
+ } | {
265
266
  type: "user-custom-emails";
267
+ user_id: string;
266
268
  emails: string[];
267
269
  } | {
268
270
  type: "custom-emails";
269
271
  emails: string[];
270
272
  };
271
- updated_at_millis: number;
272
- tsx_source: string;
273
- theme_id: string | null;
274
273
  variables: Record<string, {} | null>;
275
274
  skip_deliverability_check: boolean;
276
275
  scheduled_at_millis: number;
@@ -297,27 +296,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
297
296
  text: string | null;
298
297
  is_transactional: boolean;
299
298
  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;
303
+ status: "server-error";
304
304
  subject: string;
305
305
  created_at_millis: number;
306
- notification_category_id: string | null;
306
+ updated_at_millis: number;
307
+ tsx_source: string;
308
+ theme_id: string | null;
307
309
  to: {
308
- user_id: string;
309
310
  type: "user-primary-email";
310
- } | {
311
311
  user_id: string;
312
+ } | {
312
313
  type: "user-custom-emails";
314
+ user_id: string;
313
315
  emails: string[];
314
316
  } | {
315
317
  type: "custom-emails";
316
318
  emails: string[];
317
319
  };
318
- updated_at_millis: number;
319
- tsx_source: string;
320
- theme_id: string | null;
321
320
  variables: Record<string, {} | null>;
322
321
  skip_deliverability_check: boolean;
323
322
  scheduled_at_millis: number;
@@ -344,36 +343,37 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
344
343
  text: string | null;
345
344
  is_transactional: boolean;
346
345
  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
- notification_category_id?: string | null | undefined;
353
352
  started_rendering_at_millis?: number | undefined;
354
353
  rendered_at_millis?: number | undefined;
355
354
  html?: string | null | undefined;
356
355
  text?: string | null | undefined;
357
356
  is_transactional?: boolean | undefined;
358
357
  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
+ updated_at_millis: number;
364
+ tsx_source: string;
365
+ theme_id: string | null;
363
366
  to: {
364
- user_id: string;
365
367
  type: "user-primary-email";
366
- } | {
367
368
  user_id: string;
369
+ } | {
368
370
  type: "user-custom-emails";
371
+ user_id: string;
369
372
  emails: string[];
370
373
  } | {
371
374
  type: "custom-emails";
372
375
  emails: string[];
373
376
  };
374
- updated_at_millis: number;
375
- tsx_source: string;
376
- theme_id: string | null;
377
377
  variables: Record<string, {} | null>;
378
378
  skip_deliverability_check: boolean;
379
379
  scheduled_at_millis: number;
@@ -398,25 +398,24 @@ 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;
402
+ status: "bounced";
403
403
  subject: string;
404
404
  created_at_millis: number;
405
- notification_category_id: string | null;
405
+ updated_at_millis: number;
406
+ tsx_source: string;
407
+ theme_id: string | null;
406
408
  to: {
407
- user_id: string;
408
409
  type: "user-primary-email";
409
- } | {
410
410
  user_id: string;
411
+ } | {
411
412
  type: "user-custom-emails";
413
+ user_id: string;
412
414
  emails: string[];
413
415
  } | {
414
416
  type: "custom-emails";
415
417
  emails: string[];
416
418
  };
417
- updated_at_millis: number;
418
- tsx_source: string;
419
- theme_id: string | null;
420
419
  variables: Record<string, {} | null>;
421
420
  skip_deliverability_check: boolean;
422
421
  scheduled_at_millis: number;
@@ -443,28 +442,28 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
443
442
  text: string | null;
444
443
  is_transactional: boolean;
445
444
  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;
450
+ status: "delivery-delayed";
451
451
  subject: string;
452
452
  created_at_millis: number;
453
- notification_category_id: string | null;
453
+ updated_at_millis: number;
454
+ tsx_source: string;
455
+ theme_id: string | null;
454
456
  to: {
455
- user_id: string;
456
457
  type: "user-primary-email";
457
- } | {
458
458
  user_id: string;
459
+ } | {
459
460
  type: "user-custom-emails";
461
+ user_id: string;
460
462
  emails: string[];
461
463
  } | {
462
464
  type: "custom-emails";
463
465
  emails: string[];
464
466
  };
465
- updated_at_millis: number;
466
- tsx_source: string;
467
- theme_id: string | null;
468
467
  variables: Record<string, {} | null>;
469
468
  skip_deliverability_check: boolean;
470
469
  scheduled_at_millis: number;
@@ -491,28 +490,28 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
491
490
  text: string | null;
492
491
  is_transactional: boolean;
493
492
  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;
498
+ status: "sent";
499
499
  subject: string;
500
500
  created_at_millis: number;
501
- notification_category_id: string | null;
501
+ updated_at_millis: number;
502
+ tsx_source: string;
503
+ theme_id: string | null;
502
504
  to: {
503
- user_id: string;
504
505
  type: "user-primary-email";
505
- } | {
506
506
  user_id: string;
507
+ } | {
507
508
  type: "user-custom-emails";
509
+ user_id: string;
508
510
  emails: string[];
509
511
  } | {
510
512
  type: "custom-emails";
511
513
  emails: string[];
512
514
  };
513
- updated_at_millis: number;
514
- tsx_source: string;
515
- theme_id: string | null;
516
515
  variables: Record<string, {} | null>;
517
516
  skip_deliverability_check: boolean;
518
517
  scheduled_at_millis: number;
@@ -539,29 +538,29 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
539
538
  text: string | null;
540
539
  is_transactional: boolean;
541
540
  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;
547
+ status: "opened";
548
548
  subject: string;
549
549
  created_at_millis: number;
550
- notification_category_id: string | null;
550
+ updated_at_millis: number;
551
+ tsx_source: string;
552
+ theme_id: string | null;
551
553
  to: {
552
- user_id: string;
553
554
  type: "user-primary-email";
554
- } | {
555
555
  user_id: string;
556
+ } | {
556
557
  type: "user-custom-emails";
558
+ user_id: string;
557
559
  emails: string[];
558
560
  } | {
559
561
  type: "custom-emails";
560
562
  emails: string[];
561
563
  };
562
- updated_at_millis: number;
563
- tsx_source: string;
564
- theme_id: string | null;
565
564
  variables: Record<string, {} | null>;
566
565
  skip_deliverability_check: boolean;
567
566
  scheduled_at_millis: number;
@@ -588,30 +587,30 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
588
587
  text: string | null;
589
588
  is_transactional: boolean;
590
589
  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;
597
+ status: "clicked";
598
598
  subject: string;
599
599
  created_at_millis: number;
600
- notification_category_id: string | null;
600
+ updated_at_millis: number;
601
+ tsx_source: string;
602
+ theme_id: string | null;
601
603
  to: {
602
- user_id: string;
603
604
  type: "user-primary-email";
604
- } | {
605
605
  user_id: string;
606
+ } | {
606
607
  type: "user-custom-emails";
608
+ user_id: string;
607
609
  emails: string[];
608
610
  } | {
609
611
  type: "custom-emails";
610
612
  emails: string[];
611
613
  };
612
- updated_at_millis: number;
613
- tsx_source: string;
614
- theme_id: string | null;
615
614
  variables: Record<string, {} | null>;
616
615
  skip_deliverability_check: boolean;
617
616
  scheduled_at_millis: number;
@@ -638,30 +637,30 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
638
637
  text: string | null;
639
638
  is_transactional: boolean;
640
639
  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;
647
+ status: "marked-as-spam";
648
648
  subject: string;
649
649
  created_at_millis: number;
650
- notification_category_id: string | null;
650
+ updated_at_millis: number;
651
+ tsx_source: string;
652
+ theme_id: string | null;
651
653
  to: {
652
- user_id: string;
653
654
  type: "user-primary-email";
654
- } | {
655
655
  user_id: string;
656
+ } | {
656
657
  type: "user-custom-emails";
658
+ user_id: string;
657
659
  emails: string[];
658
660
  } | {
659
661
  type: "custom-emails";
660
662
  emails: string[];
661
663
  };
662
- updated_at_millis: number;
663
- tsx_source: string;
664
- theme_id: string | null;
665
664
  variables: Record<string, {} | null>;
666
665
  skip_deliverability_check: boolean;
667
666
  scheduled_at_millis: number;
@@ -688,6 +687,7 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
688
687
  text: string | null;
689
688
  is_transactional: boolean;
690
689
  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,23 +724,23 @@ 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
+ updated_at_millis: number;
731
+ tsx_source: string;
732
+ theme_id: string | null;
730
733
  to: {
731
- user_id: string;
732
734
  type: "user-primary-email";
733
- } | {
734
735
  user_id: string;
736
+ } | {
735
737
  type: "user-custom-emails";
738
+ user_id: string;
736
739
  emails: string[];
737
740
  } | {
738
741
  type: "custom-emails";
739
742
  emails: string[];
740
743
  };
741
- updated_at_millis: number;
742
- tsx_source: string;
743
- theme_id: string | null;
744
744
  variables: Record<string, {} | null>;
745
745
  skip_deliverability_check: boolean;
746
746
  scheduled_at_millis: number;
@@ -762,23 +762,23 @@ 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
+ updated_at_millis: number;
769
+ tsx_source: string;
770
+ theme_id: string | null;
768
771
  to: {
769
- user_id: string;
770
772
  type: "user-primary-email";
771
- } | {
772
773
  user_id: string;
774
+ } | {
773
775
  type: "user-custom-emails";
776
+ user_id: string;
774
777
  emails: string[];
775
778
  } | {
776
779
  type: "custom-emails";
777
780
  emails: string[];
778
781
  };
779
- updated_at_millis: number;
780
- tsx_source: string;
781
- theme_id: string | null;
782
782
  variables: Record<string, {} | null>;
783
783
  skip_deliverability_check: boolean;
784
784
  scheduled_at_millis: number;
@@ -800,23 +800,23 @@ 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
+ updated_at_millis: number;
807
+ tsx_source: string;
808
+ theme_id: string | null;
806
809
  to: {
807
- user_id: string;
808
810
  type: "user-primary-email";
809
- } | {
810
811
  user_id: string;
812
+ } | {
811
813
  type: "user-custom-emails";
814
+ user_id: string;
812
815
  emails: string[];
813
816
  } | {
814
817
  type: "custom-emails";
815
818
  emails: string[];
816
819
  };
817
- updated_at_millis: number;
818
- tsx_source: string;
819
- theme_id: string | null;
820
820
  variables: Record<string, {} | null>;
821
821
  skip_deliverability_check: boolean;
822
822
  scheduled_at_millis: number;
@@ -839,23 +839,23 @@ 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
+ updated_at_millis: number;
846
+ tsx_source: string;
847
+ theme_id: string | null;
845
848
  to: {
846
- user_id: string;
847
849
  type: "user-primary-email";
848
- } | {
849
850
  user_id: string;
851
+ } | {
850
852
  type: "user-custom-emails";
853
+ user_id: string;
851
854
  emails: string[];
852
855
  } | {
853
856
  type: "custom-emails";
854
857
  emails: string[];
855
858
  };
856
- updated_at_millis: number;
857
- tsx_source: string;
858
- theme_id: string | null;
859
859
  variables: Record<string, {} | null>;
860
860
  skip_deliverability_check: boolean;
861
861
  scheduled_at_millis: number;
@@ -880,25 +880,24 @@ 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;
884
+ status: "scheduled";
885
885
  subject: string;
886
886
  created_at_millis: number;
887
- notification_category_id: string | null;
887
+ updated_at_millis: number;
888
+ tsx_source: string;
889
+ theme_id: string | null;
888
890
  to: {
889
- user_id: string;
890
891
  type: "user-primary-email";
891
- } | {
892
892
  user_id: string;
893
+ } | {
893
894
  type: "user-custom-emails";
895
+ user_id: string;
894
896
  emails: string[];
895
897
  } | {
896
898
  type: "custom-emails";
897
899
  emails: string[];
898
900
  };
899
- updated_at_millis: number;
900
- tsx_source: string;
901
- theme_id: string | null;
902
901
  variables: Record<string, {} | null>;
903
902
  skip_deliverability_check: boolean;
904
903
  scheduled_at_millis: number;
@@ -925,26 +924,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
925
924
  text: string | null;
926
925
  is_transactional: boolean;
927
926
  is_high_priority: boolean;
927
+ notification_category_id: string | null;
928
928
  } | {
929
- status: "queued";
930
929
  id: string;
930
+ status: "queued";
931
931
  subject: string;
932
932
  created_at_millis: number;
933
- notification_category_id: string | null;
933
+ updated_at_millis: number;
934
+ tsx_source: string;
935
+ theme_id: string | null;
934
936
  to: {
935
- user_id: string;
936
937
  type: "user-primary-email";
937
- } | {
938
938
  user_id: string;
939
+ } | {
939
940
  type: "user-custom-emails";
941
+ user_id: string;
940
942
  emails: string[];
941
943
  } | {
942
944
  type: "custom-emails";
943
945
  emails: string[];
944
946
  };
945
- updated_at_millis: number;
946
- tsx_source: string;
947
- theme_id: string | null;
948
947
  variables: Record<string, {} | null>;
949
948
  skip_deliverability_check: boolean;
950
949
  scheduled_at_millis: number;
@@ -971,26 +970,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
971
970
  text: string | null;
972
971
  is_transactional: boolean;
973
972
  is_high_priority: boolean;
973
+ notification_category_id: string | null;
974
974
  } | {
975
- status: "sending";
976
975
  id: string;
976
+ status: "sending";
977
977
  subject: string;
978
978
  created_at_millis: number;
979
- notification_category_id: string | null;
979
+ updated_at_millis: number;
980
+ tsx_source: string;
981
+ theme_id: string | null;
980
982
  to: {
981
- user_id: string;
982
983
  type: "user-primary-email";
983
- } | {
984
984
  user_id: string;
985
+ } | {
985
986
  type: "user-custom-emails";
987
+ user_id: string;
986
988
  emails: string[];
987
989
  } | {
988
990
  type: "custom-emails";
989
991
  emails: string[];
990
992
  };
991
- updated_at_millis: number;
992
- tsx_source: string;
993
- theme_id: string | null;
994
993
  variables: Record<string, {} | null>;
995
994
  skip_deliverability_check: boolean;
996
995
  scheduled_at_millis: number;
@@ -1017,27 +1016,27 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1017
1016
  text: string | null;
1018
1017
  is_transactional: boolean;
1019
1018
  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;
1023
+ status: "server-error";
1024
1024
  subject: string;
1025
1025
  created_at_millis: number;
1026
- notification_category_id: string | null;
1026
+ updated_at_millis: number;
1027
+ tsx_source: string;
1028
+ theme_id: string | null;
1027
1029
  to: {
1028
- user_id: string;
1029
1030
  type: "user-primary-email";
1030
- } | {
1031
1031
  user_id: string;
1032
+ } | {
1032
1033
  type: "user-custom-emails";
1034
+ user_id: string;
1033
1035
  emails: string[];
1034
1036
  } | {
1035
1037
  type: "custom-emails";
1036
1038
  emails: string[];
1037
1039
  };
1038
- updated_at_millis: number;
1039
- tsx_source: string;
1040
- theme_id: string | null;
1041
1040
  variables: Record<string, {} | null>;
1042
1041
  skip_deliverability_check: boolean;
1043
1042
  scheduled_at_millis: number;
@@ -1064,36 +1063,37 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1064
1063
  text: string | null;
1065
1064
  is_transactional: boolean;
1066
1065
  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
- notification_category_id?: string | null | undefined;
1073
1072
  started_rendering_at_millis?: number | undefined;
1074
1073
  rendered_at_millis?: number | undefined;
1075
1074
  html?: string | null | undefined;
1076
1075
  text?: string | null | undefined;
1077
1076
  is_transactional?: boolean | undefined;
1078
1077
  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
+ updated_at_millis: number;
1084
+ tsx_source: string;
1085
+ theme_id: string | null;
1083
1086
  to: {
1084
- user_id: string;
1085
1087
  type: "user-primary-email";
1086
- } | {
1087
1088
  user_id: string;
1089
+ } | {
1088
1090
  type: "user-custom-emails";
1091
+ user_id: string;
1089
1092
  emails: string[];
1090
1093
  } | {
1091
1094
  type: "custom-emails";
1092
1095
  emails: string[];
1093
1096
  };
1094
- updated_at_millis: number;
1095
- tsx_source: string;
1096
- theme_id: string | null;
1097
1097
  variables: Record<string, {} | null>;
1098
1098
  skip_deliverability_check: boolean;
1099
1099
  scheduled_at_millis: number;
@@ -1118,25 +1118,24 @@ 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;
1122
+ status: "bounced";
1123
1123
  subject: string;
1124
1124
  created_at_millis: number;
1125
- notification_category_id: string | null;
1125
+ updated_at_millis: number;
1126
+ tsx_source: string;
1127
+ theme_id: string | null;
1126
1128
  to: {
1127
- user_id: string;
1128
1129
  type: "user-primary-email";
1129
- } | {
1130
1130
  user_id: string;
1131
+ } | {
1131
1132
  type: "user-custom-emails";
1133
+ user_id: string;
1132
1134
  emails: string[];
1133
1135
  } | {
1134
1136
  type: "custom-emails";
1135
1137
  emails: string[];
1136
1138
  };
1137
- updated_at_millis: number;
1138
- tsx_source: string;
1139
- theme_id: string | null;
1140
1139
  variables: Record<string, {} | null>;
1141
1140
  skip_deliverability_check: boolean;
1142
1141
  scheduled_at_millis: number;
@@ -1163,28 +1162,28 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1163
1162
  text: string | null;
1164
1163
  is_transactional: boolean;
1165
1164
  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;
1170
+ status: "delivery-delayed";
1171
1171
  subject: string;
1172
1172
  created_at_millis: number;
1173
- notification_category_id: string | null;
1173
+ updated_at_millis: number;
1174
+ tsx_source: string;
1175
+ theme_id: string | null;
1174
1176
  to: {
1175
- user_id: string;
1176
1177
  type: "user-primary-email";
1177
- } | {
1178
1178
  user_id: string;
1179
+ } | {
1179
1180
  type: "user-custom-emails";
1181
+ user_id: string;
1180
1182
  emails: string[];
1181
1183
  } | {
1182
1184
  type: "custom-emails";
1183
1185
  emails: string[];
1184
1186
  };
1185
- updated_at_millis: number;
1186
- tsx_source: string;
1187
- theme_id: string | null;
1188
1187
  variables: Record<string, {} | null>;
1189
1188
  skip_deliverability_check: boolean;
1190
1189
  scheduled_at_millis: number;
@@ -1211,28 +1210,28 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1211
1210
  text: string | null;
1212
1211
  is_transactional: boolean;
1213
1212
  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;
1218
+ status: "sent";
1219
1219
  subject: string;
1220
1220
  created_at_millis: number;
1221
- notification_category_id: string | null;
1221
+ updated_at_millis: number;
1222
+ tsx_source: string;
1223
+ theme_id: string | null;
1222
1224
  to: {
1223
- user_id: string;
1224
1225
  type: "user-primary-email";
1225
- } | {
1226
1226
  user_id: string;
1227
+ } | {
1227
1228
  type: "user-custom-emails";
1229
+ user_id: string;
1228
1230
  emails: string[];
1229
1231
  } | {
1230
1232
  type: "custom-emails";
1231
1233
  emails: string[];
1232
1234
  };
1233
- updated_at_millis: number;
1234
- tsx_source: string;
1235
- theme_id: string | null;
1236
1235
  variables: Record<string, {} | null>;
1237
1236
  skip_deliverability_check: boolean;
1238
1237
  scheduled_at_millis: number;
@@ -1259,29 +1258,29 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1259
1258
  text: string | null;
1260
1259
  is_transactional: boolean;
1261
1260
  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;
1267
+ status: "opened";
1268
1268
  subject: string;
1269
1269
  created_at_millis: number;
1270
- notification_category_id: string | null;
1270
+ updated_at_millis: number;
1271
+ tsx_source: string;
1272
+ theme_id: string | null;
1271
1273
  to: {
1272
- user_id: string;
1273
1274
  type: "user-primary-email";
1274
- } | {
1275
1275
  user_id: string;
1276
+ } | {
1276
1277
  type: "user-custom-emails";
1278
+ user_id: string;
1277
1279
  emails: string[];
1278
1280
  } | {
1279
1281
  type: "custom-emails";
1280
1282
  emails: string[];
1281
1283
  };
1282
- updated_at_millis: number;
1283
- tsx_source: string;
1284
- theme_id: string | null;
1285
1284
  variables: Record<string, {} | null>;
1286
1285
  skip_deliverability_check: boolean;
1287
1286
  scheduled_at_millis: number;
@@ -1308,30 +1307,30 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1308
1307
  text: string | null;
1309
1308
  is_transactional: boolean;
1310
1309
  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;
1317
+ status: "clicked";
1318
1318
  subject: string;
1319
1319
  created_at_millis: number;
1320
- notification_category_id: string | null;
1320
+ updated_at_millis: number;
1321
+ tsx_source: string;
1322
+ theme_id: string | null;
1321
1323
  to: {
1322
- user_id: string;
1323
1324
  type: "user-primary-email";
1324
- } | {
1325
1325
  user_id: string;
1326
+ } | {
1326
1327
  type: "user-custom-emails";
1328
+ user_id: string;
1327
1329
  emails: string[];
1328
1330
  } | {
1329
1331
  type: "custom-emails";
1330
1332
  emails: string[];
1331
1333
  };
1332
- updated_at_millis: number;
1333
- tsx_source: string;
1334
- theme_id: string | null;
1335
1334
  variables: Record<string, {} | null>;
1336
1335
  skip_deliverability_check: boolean;
1337
1336
  scheduled_at_millis: number;
@@ -1358,30 +1357,30 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1358
1357
  text: string | null;
1359
1358
  is_transactional: boolean;
1360
1359
  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;
1367
+ status: "marked-as-spam";
1368
1368
  subject: string;
1369
1369
  created_at_millis: number;
1370
- notification_category_id: string | null;
1370
+ updated_at_millis: number;
1371
+ tsx_source: string;
1372
+ theme_id: string | null;
1371
1373
  to: {
1372
- user_id: string;
1373
1374
  type: "user-primary-email";
1374
- } | {
1375
1375
  user_id: string;
1376
+ } | {
1376
1377
  type: "user-custom-emails";
1378
+ user_id: string;
1377
1379
  emails: string[];
1378
1380
  } | {
1379
1381
  type: "custom-emails";
1380
1382
  emails: string[];
1381
1383
  };
1382
- updated_at_millis: number;
1383
- tsx_source: string;
1384
- theme_id: string | null;
1385
1384
  variables: Record<string, {} | null>;
1386
1385
  skip_deliverability_check: boolean;
1387
1386
  scheduled_at_millis: number;
@@ -1408,6 +1407,7 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1408
1407
  text: string | null;
1409
1408
  is_transactional: boolean;
1410
1409
  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";