@hexclave/shared 1.0.37 → 1.0.39

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 (47) hide show
  1. package/dist/ai/unified-prompts/reminders.js +3 -2
  2. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  3. package/dist/config/schema.d.ts +37 -37
  4. package/dist/esm/ai/unified-prompts/reminders.js +3 -2
  5. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  6. package/dist/esm/config/schema.d.ts +37 -37
  7. package/dist/esm/interface/admin-metrics.d.ts +25 -25
  8. package/dist/esm/interface/conversations.d.ts +9 -9
  9. package/dist/esm/interface/crud/current-user.d.ts +13 -13
  10. package/dist/esm/interface/crud/email-outbox.d.ts +204 -204
  11. package/dist/esm/interface/crud/products.d.ts +5 -5
  12. package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
  13. package/dist/esm/interface/crud/projects.d.ts +28 -28
  14. package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
  15. package/dist/esm/interface/crud/transactions.d.ts +2 -2
  16. package/dist/esm/interface/crud/users.d.ts +20 -20
  17. package/dist/esm/interface/plan-usage.d.ts +2 -2
  18. package/dist/esm/interface/webhooks.d.ts +4 -4
  19. package/dist/esm/known-errors.d.ts +2 -2
  20. package/dist/esm/schema-fields.d.ts +1 -1
  21. package/dist/esm/sessions.d.ts +1 -1
  22. package/dist/interface/admin-metrics.d.ts +25 -25
  23. package/dist/interface/conversations.d.ts +9 -9
  24. package/dist/interface/crud/current-user.d.ts +13 -13
  25. package/dist/interface/crud/email-outbox.d.ts +204 -204
  26. package/dist/interface/crud/products.d.ts +5 -5
  27. package/dist/interface/crud/project-api-keys.d.ts +4 -4
  28. package/dist/interface/crud/projects.d.ts +28 -28
  29. package/dist/interface/crud/team-member-profiles.d.ts +24 -24
  30. package/dist/interface/crud/transactions.d.ts +2 -2
  31. package/dist/interface/crud/users.d.ts +20 -20
  32. package/dist/interface/plan-usage.d.ts +2 -2
  33. package/dist/interface/webhooks.d.ts +4 -4
  34. package/dist/known-errors.d.ts +2 -2
  35. package/dist/schema-fields.d.ts +1 -1
  36. package/dist/sessions.d.ts +1 -1
  37. package/package.json +1 -1
  38. package/src/ai/unified-prompts/reminders.ts +3 -2
  39. package/dist/esm/local-emulator.d.ts +0 -6
  40. package/dist/esm/local-emulator.d.ts.map +0 -1
  41. package/dist/esm/local-emulator.js +0 -7
  42. package/dist/esm/local-emulator.js.map +0 -1
  43. package/dist/local-emulator.d.ts +0 -6
  44. package/dist/local-emulator.d.ts.map +0 -1
  45. package/dist/local-emulator.js +0 -10
  46. package/dist/local-emulator.js.map +0 -1
  47. package/src/local-emulator.ts +0 -5
@@ -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;
13
10
  to: {
14
- user_id: string;
15
11
  type: "user-primary-email";
16
- } | {
17
12
  user_id: string;
13
+ } | {
18
14
  type: "user-custom-emails";
15
+ user_id: string;
19
16
  emails: string[];
20
17
  } | {
21
18
  type: "custom-emails";
22
19
  emails: string[];
23
20
  };
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;
51
48
  to: {
52
- user_id: string;
53
49
  type: "user-primary-email";
54
- } | {
55
50
  user_id: string;
51
+ } | {
56
52
  type: "user-custom-emails";
53
+ user_id: string;
57
54
  emails: string[];
58
55
  } | {
59
56
  type: "custom-emails";
60
57
  emails: string[];
61
58
  };
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;
89
86
  to: {
90
- user_id: string;
91
87
  type: "user-primary-email";
92
- } | {
93
88
  user_id: string;
89
+ } | {
94
90
  type: "user-custom-emails";
91
+ user_id: string;
95
92
  emails: string[];
96
93
  } | {
97
94
  type: "custom-emails";
98
95
  emails: string[];
99
96
  };
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;
128
125
  to: {
129
- user_id: string;
130
126
  type: "user-primary-email";
131
- } | {
132
127
  user_id: string;
128
+ } | {
133
129
  type: "user-custom-emails";
130
+ user_id: string;
134
131
  emails: string[];
135
132
  } | {
136
133
  type: "custom-emails";
137
134
  emails: string[];
138
135
  };
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,27 +160,27 @@ 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
- created_at_millis: number;
164
+ status: "scheduled";
166
165
  subject: string;
166
+ created_at_millis: number;
167
167
  notification_category_id: string | null;
168
168
  html: string | null;
169
169
  text: string | null;
170
- updated_at_millis: number;
171
- tsx_source: string;
172
- theme_id: string | null;
173
170
  to: {
174
- user_id: string;
175
171
  type: "user-primary-email";
176
- } | {
177
172
  user_id: string;
173
+ } | {
178
174
  type: "user-custom-emails";
175
+ user_id: string;
179
176
  emails: string[];
180
177
  } | {
181
178
  type: "custom-emails";
182
179
  emails: string[];
183
180
  };
181
+ updated_at_millis: number;
182
+ tsx_source: string;
183
+ theme_id: string | null;
184
184
  variables: Record<string, {} | null>;
185
185
  skip_deliverability_check: boolean;
186
186
  scheduled_at_millis: number;
@@ -206,27 +206,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
206
206
  is_transactional: boolean;
207
207
  is_high_priority: boolean;
208
208
  } | {
209
- status: "queued";
210
209
  id: string;
211
- created_at_millis: number;
210
+ status: "queued";
212
211
  subject: string;
212
+ created_at_millis: number;
213
213
  notification_category_id: string | null;
214
214
  html: string | null;
215
215
  text: string | null;
216
- updated_at_millis: number;
217
- tsx_source: string;
218
- theme_id: string | null;
219
216
  to: {
220
- user_id: string;
221
217
  type: "user-primary-email";
222
- } | {
223
218
  user_id: string;
219
+ } | {
224
220
  type: "user-custom-emails";
221
+ user_id: string;
225
222
  emails: string[];
226
223
  } | {
227
224
  type: "custom-emails";
228
225
  emails: string[];
229
226
  };
227
+ updated_at_millis: number;
228
+ tsx_source: string;
229
+ theme_id: string | null;
230
230
  variables: Record<string, {} | null>;
231
231
  skip_deliverability_check: boolean;
232
232
  scheduled_at_millis: number;
@@ -252,27 +252,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
252
252
  is_transactional: boolean;
253
253
  is_high_priority: boolean;
254
254
  } | {
255
- status: "sending";
256
255
  id: string;
257
- created_at_millis: number;
256
+ status: "sending";
258
257
  subject: string;
258
+ created_at_millis: number;
259
259
  notification_category_id: string | null;
260
260
  html: string | null;
261
261
  text: string | null;
262
- updated_at_millis: number;
263
- tsx_source: string;
264
- theme_id: string | null;
265
262
  to: {
266
- user_id: string;
267
263
  type: "user-primary-email";
268
- } | {
269
264
  user_id: string;
265
+ } | {
270
266
  type: "user-custom-emails";
267
+ user_id: string;
271
268
  emails: string[];
272
269
  } | {
273
270
  type: "custom-emails";
274
271
  emails: string[];
275
272
  };
273
+ updated_at_millis: number;
274
+ tsx_source: string;
275
+ theme_id: string | null;
276
276
  variables: Record<string, {} | null>;
277
277
  skip_deliverability_check: boolean;
278
278
  scheduled_at_millis: number;
@@ -299,27 +299,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
299
299
  is_high_priority: boolean;
300
300
  started_sending_at_millis: number;
301
301
  } | {
302
- status: "server-error";
303
302
  id: string;
304
- created_at_millis: number;
303
+ status: "server-error";
305
304
  subject: string;
305
+ created_at_millis: number;
306
306
  notification_category_id: string | null;
307
307
  html: string | null;
308
308
  text: string | null;
309
- updated_at_millis: number;
310
- tsx_source: string;
311
- theme_id: string | null;
312
309
  to: {
313
- user_id: string;
314
310
  type: "user-primary-email";
315
- } | {
316
311
  user_id: string;
312
+ } | {
317
313
  type: "user-custom-emails";
314
+ user_id: string;
318
315
  emails: string[];
319
316
  } | {
320
317
  type: "custom-emails";
321
318
  emails: string[];
322
319
  };
320
+ updated_at_millis: number;
321
+ tsx_source: string;
322
+ theme_id: string | null;
323
323
  variables: Record<string, {} | null>;
324
324
  skip_deliverability_check: boolean;
325
325
  scheduled_at_millis: number;
@@ -357,23 +357,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
357
357
  is_transactional?: boolean | undefined;
358
358
  is_high_priority?: boolean | 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;
366
363
  to: {
367
- user_id: string;
368
364
  type: "user-primary-email";
369
- } | {
370
365
  user_id: string;
366
+ } | {
371
367
  type: "user-custom-emails";
368
+ user_id: string;
372
369
  emails: string[];
373
370
  } | {
374
371
  type: "custom-emails";
375
372
  emails: string[];
376
373
  };
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,27 +398,27 @@ 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
- created_at_millis: number;
402
+ status: "bounced";
404
403
  subject: string;
404
+ created_at_millis: number;
405
405
  notification_category_id: string | null;
406
406
  html: string | null;
407
407
  text: string | null;
408
- updated_at_millis: number;
409
- tsx_source: string;
410
- theme_id: string | null;
411
408
  to: {
412
- user_id: string;
413
409
  type: "user-primary-email";
414
- } | {
415
410
  user_id: string;
411
+ } | {
416
412
  type: "user-custom-emails";
413
+ user_id: string;
417
414
  emails: string[];
418
415
  } | {
419
416
  type: "custom-emails";
420
417
  emails: string[];
421
418
  };
419
+ updated_at_millis: number;
420
+ tsx_source: string;
421
+ theme_id: string | null;
422
422
  variables: Record<string, {} | null>;
423
423
  skip_deliverability_check: boolean;
424
424
  scheduled_at_millis: number;
@@ -446,27 +446,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
446
446
  started_sending_at_millis: number;
447
447
  bounced_at_millis: number;
448
448
  } | {
449
- status: "delivery-delayed";
450
449
  id: string;
451
- created_at_millis: number;
450
+ status: "delivery-delayed";
452
451
  subject: string;
452
+ created_at_millis: number;
453
453
  notification_category_id: string | null;
454
454
  html: string | null;
455
455
  text: string | null;
456
- updated_at_millis: number;
457
- tsx_source: string;
458
- theme_id: string | null;
459
456
  to: {
460
- user_id: string;
461
457
  type: "user-primary-email";
462
- } | {
463
458
  user_id: string;
459
+ } | {
464
460
  type: "user-custom-emails";
461
+ user_id: string;
465
462
  emails: string[];
466
463
  } | {
467
464
  type: "custom-emails";
468
465
  emails: string[];
469
466
  };
467
+ updated_at_millis: number;
468
+ tsx_source: string;
469
+ theme_id: string | null;
470
470
  variables: Record<string, {} | null>;
471
471
  skip_deliverability_check: boolean;
472
472
  scheduled_at_millis: number;
@@ -494,27 +494,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
494
494
  started_sending_at_millis: number;
495
495
  delivery_delayed_at_millis: number;
496
496
  } | {
497
- status: "sent";
498
497
  id: string;
499
- created_at_millis: number;
498
+ status: "sent";
500
499
  subject: string;
500
+ created_at_millis: number;
501
501
  notification_category_id: string | null;
502
502
  html: string | null;
503
503
  text: string | null;
504
- updated_at_millis: number;
505
- tsx_source: string;
506
- theme_id: string | null;
507
504
  to: {
508
- user_id: string;
509
505
  type: "user-primary-email";
510
- } | {
511
506
  user_id: string;
507
+ } | {
512
508
  type: "user-custom-emails";
509
+ user_id: string;
513
510
  emails: string[];
514
511
  } | {
515
512
  type: "custom-emails";
516
513
  emails: string[];
517
514
  };
515
+ updated_at_millis: number;
516
+ tsx_source: string;
517
+ theme_id: string | null;
518
518
  variables: Record<string, {} | null>;
519
519
  skip_deliverability_check: boolean;
520
520
  scheduled_at_millis: number;
@@ -543,27 +543,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
543
543
  delivered_at_millis: number;
544
544
  can_have_delivery_info: boolean;
545
545
  } | {
546
- status: "opened";
547
546
  id: string;
548
- created_at_millis: number;
547
+ status: "opened";
549
548
  subject: string;
549
+ created_at_millis: number;
550
550
  notification_category_id: string | null;
551
551
  html: string | null;
552
552
  text: string | null;
553
- updated_at_millis: number;
554
- tsx_source: string;
555
- theme_id: string | null;
556
553
  to: {
557
- user_id: string;
558
554
  type: "user-primary-email";
559
- } | {
560
555
  user_id: string;
556
+ } | {
561
557
  type: "user-custom-emails";
558
+ user_id: string;
562
559
  emails: string[];
563
560
  } | {
564
561
  type: "custom-emails";
565
562
  emails: string[];
566
563
  };
564
+ updated_at_millis: number;
565
+ tsx_source: string;
566
+ theme_id: string | null;
567
567
  variables: Record<string, {} | null>;
568
568
  skip_deliverability_check: boolean;
569
569
  scheduled_at_millis: number;
@@ -593,27 +593,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
593
593
  can_have_delivery_info: boolean;
594
594
  opened_at_millis: number;
595
595
  } | {
596
- status: "clicked";
597
596
  id: string;
598
- created_at_millis: number;
597
+ status: "clicked";
599
598
  subject: string;
599
+ created_at_millis: number;
600
600
  notification_category_id: string | null;
601
601
  html: string | null;
602
602
  text: string | null;
603
- updated_at_millis: number;
604
- tsx_source: string;
605
- theme_id: string | null;
606
603
  to: {
607
- user_id: string;
608
604
  type: "user-primary-email";
609
- } | {
610
605
  user_id: string;
606
+ } | {
611
607
  type: "user-custom-emails";
608
+ user_id: string;
612
609
  emails: string[];
613
610
  } | {
614
611
  type: "custom-emails";
615
612
  emails: string[];
616
613
  };
614
+ updated_at_millis: number;
615
+ tsx_source: string;
616
+ theme_id: string | null;
617
617
  variables: Record<string, {} | null>;
618
618
  skip_deliverability_check: boolean;
619
619
  scheduled_at_millis: number;
@@ -643,27 +643,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
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
- created_at_millis: number;
647
+ status: "marked-as-spam";
649
648
  subject: string;
649
+ created_at_millis: number;
650
650
  notification_category_id: string | null;
651
651
  html: string | null;
652
652
  text: string | null;
653
- updated_at_millis: number;
654
- tsx_source: string;
655
- theme_id: string | null;
656
653
  to: {
657
- user_id: string;
658
654
  type: "user-primary-email";
659
- } | {
660
655
  user_id: string;
656
+ } | {
661
657
  type: "user-custom-emails";
658
+ user_id: string;
662
659
  emails: string[];
663
660
  } | {
664
661
  type: "custom-emails";
665
662
  emails: string[];
666
663
  };
664
+ updated_at_millis: number;
665
+ tsx_source: string;
666
+ theme_id: string | null;
667
667
  variables: Record<string, {} | null>;
668
668
  skip_deliverability_check: boolean;
669
669
  scheduled_at_millis: number;
@@ -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;
733
730
  to: {
734
- user_id: string;
735
731
  type: "user-primary-email";
736
- } | {
737
732
  user_id: string;
733
+ } | {
738
734
  type: "user-custom-emails";
735
+ user_id: string;
739
736
  emails: string[];
740
737
  } | {
741
738
  type: "custom-emails";
742
739
  emails: string[];
743
740
  };
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;
771
768
  to: {
772
- user_id: string;
773
769
  type: "user-primary-email";
774
- } | {
775
770
  user_id: string;
771
+ } | {
776
772
  type: "user-custom-emails";
773
+ user_id: string;
777
774
  emails: string[];
778
775
  } | {
779
776
  type: "custom-emails";
780
777
  emails: string[];
781
778
  };
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;
809
806
  to: {
810
- user_id: string;
811
807
  type: "user-primary-email";
812
- } | {
813
808
  user_id: string;
809
+ } | {
814
810
  type: "user-custom-emails";
811
+ user_id: string;
815
812
  emails: string[];
816
813
  } | {
817
814
  type: "custom-emails";
818
815
  emails: string[];
819
816
  };
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;
848
845
  to: {
849
- user_id: string;
850
846
  type: "user-primary-email";
851
- } | {
852
847
  user_id: string;
848
+ } | {
853
849
  type: "user-custom-emails";
850
+ user_id: string;
854
851
  emails: string[];
855
852
  } | {
856
853
  type: "custom-emails";
857
854
  emails: string[];
858
855
  };
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,27 +880,27 @@ 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
- created_at_millis: number;
884
+ status: "scheduled";
886
885
  subject: string;
886
+ created_at_millis: number;
887
887
  notification_category_id: string | null;
888
888
  html: string | null;
889
889
  text: string | null;
890
- updated_at_millis: number;
891
- tsx_source: string;
892
- theme_id: string | null;
893
890
  to: {
894
- user_id: string;
895
891
  type: "user-primary-email";
896
- } | {
897
892
  user_id: string;
893
+ } | {
898
894
  type: "user-custom-emails";
895
+ user_id: string;
899
896
  emails: string[];
900
897
  } | {
901
898
  type: "custom-emails";
902
899
  emails: string[];
903
900
  };
901
+ updated_at_millis: number;
902
+ tsx_source: string;
903
+ theme_id: string | null;
904
904
  variables: Record<string, {} | null>;
905
905
  skip_deliverability_check: boolean;
906
906
  scheduled_at_millis: number;
@@ -926,27 +926,27 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
926
926
  is_transactional: boolean;
927
927
  is_high_priority: boolean;
928
928
  } | {
929
- status: "queued";
930
929
  id: string;
931
- created_at_millis: number;
930
+ status: "queued";
932
931
  subject: string;
932
+ created_at_millis: number;
933
933
  notification_category_id: string | null;
934
934
  html: string | null;
935
935
  text: string | null;
936
- updated_at_millis: number;
937
- tsx_source: string;
938
- theme_id: string | null;
939
936
  to: {
940
- user_id: string;
941
937
  type: "user-primary-email";
942
- } | {
943
938
  user_id: string;
939
+ } | {
944
940
  type: "user-custom-emails";
941
+ user_id: string;
945
942
  emails: string[];
946
943
  } | {
947
944
  type: "custom-emails";
948
945
  emails: string[];
949
946
  };
947
+ updated_at_millis: number;
948
+ tsx_source: string;
949
+ theme_id: string | null;
950
950
  variables: Record<string, {} | null>;
951
951
  skip_deliverability_check: boolean;
952
952
  scheduled_at_millis: number;
@@ -972,27 +972,27 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
972
972
  is_transactional: boolean;
973
973
  is_high_priority: boolean;
974
974
  } | {
975
- status: "sending";
976
975
  id: string;
977
- created_at_millis: number;
976
+ status: "sending";
978
977
  subject: string;
978
+ created_at_millis: number;
979
979
  notification_category_id: string | null;
980
980
  html: string | null;
981
981
  text: string | null;
982
- updated_at_millis: number;
983
- tsx_source: string;
984
- theme_id: string | null;
985
982
  to: {
986
- user_id: string;
987
983
  type: "user-primary-email";
988
- } | {
989
984
  user_id: string;
985
+ } | {
990
986
  type: "user-custom-emails";
987
+ user_id: string;
991
988
  emails: string[];
992
989
  } | {
993
990
  type: "custom-emails";
994
991
  emails: string[];
995
992
  };
993
+ updated_at_millis: number;
994
+ tsx_source: string;
995
+ theme_id: string | null;
996
996
  variables: Record<string, {} | null>;
997
997
  skip_deliverability_check: boolean;
998
998
  scheduled_at_millis: number;
@@ -1019,27 +1019,27 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1019
1019
  is_high_priority: boolean;
1020
1020
  started_sending_at_millis: number;
1021
1021
  } | {
1022
- status: "server-error";
1023
1022
  id: string;
1024
- created_at_millis: number;
1023
+ status: "server-error";
1025
1024
  subject: string;
1025
+ created_at_millis: number;
1026
1026
  notification_category_id: string | null;
1027
1027
  html: string | null;
1028
1028
  text: string | null;
1029
- updated_at_millis: number;
1030
- tsx_source: string;
1031
- theme_id: string | null;
1032
1029
  to: {
1033
- user_id: string;
1034
1030
  type: "user-primary-email";
1035
- } | {
1036
1031
  user_id: string;
1032
+ } | {
1037
1033
  type: "user-custom-emails";
1034
+ user_id: string;
1038
1035
  emails: string[];
1039
1036
  } | {
1040
1037
  type: "custom-emails";
1041
1038
  emails: string[];
1042
1039
  };
1040
+ updated_at_millis: number;
1041
+ tsx_source: string;
1042
+ theme_id: string | null;
1043
1043
  variables: Record<string, {} | null>;
1044
1044
  skip_deliverability_check: boolean;
1045
1045
  scheduled_at_millis: number;
@@ -1077,23 +1077,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1077
1077
  is_transactional?: boolean | undefined;
1078
1078
  is_high_priority?: boolean | 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;
1086
1083
  to: {
1087
- user_id: string;
1088
1084
  type: "user-primary-email";
1089
- } | {
1090
1085
  user_id: string;
1086
+ } | {
1091
1087
  type: "user-custom-emails";
1088
+ user_id: string;
1092
1089
  emails: string[];
1093
1090
  } | {
1094
1091
  type: "custom-emails";
1095
1092
  emails: string[];
1096
1093
  };
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,27 +1118,27 @@ 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
- created_at_millis: number;
1122
+ status: "bounced";
1124
1123
  subject: string;
1124
+ created_at_millis: number;
1125
1125
  notification_category_id: string | null;
1126
1126
  html: string | null;
1127
1127
  text: string | null;
1128
- updated_at_millis: number;
1129
- tsx_source: string;
1130
- theme_id: string | null;
1131
1128
  to: {
1132
- user_id: string;
1133
1129
  type: "user-primary-email";
1134
- } | {
1135
1130
  user_id: string;
1131
+ } | {
1136
1132
  type: "user-custom-emails";
1133
+ user_id: string;
1137
1134
  emails: string[];
1138
1135
  } | {
1139
1136
  type: "custom-emails";
1140
1137
  emails: string[];
1141
1138
  };
1139
+ updated_at_millis: number;
1140
+ tsx_source: string;
1141
+ theme_id: string | null;
1142
1142
  variables: Record<string, {} | null>;
1143
1143
  skip_deliverability_check: boolean;
1144
1144
  scheduled_at_millis: number;
@@ -1166,27 +1166,27 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1166
1166
  started_sending_at_millis: number;
1167
1167
  bounced_at_millis: number;
1168
1168
  } | {
1169
- status: "delivery-delayed";
1170
1169
  id: string;
1171
- created_at_millis: number;
1170
+ status: "delivery-delayed";
1172
1171
  subject: string;
1172
+ created_at_millis: number;
1173
1173
  notification_category_id: string | null;
1174
1174
  html: string | null;
1175
1175
  text: string | null;
1176
- updated_at_millis: number;
1177
- tsx_source: string;
1178
- theme_id: string | null;
1179
1176
  to: {
1180
- user_id: string;
1181
1177
  type: "user-primary-email";
1182
- } | {
1183
1178
  user_id: string;
1179
+ } | {
1184
1180
  type: "user-custom-emails";
1181
+ user_id: string;
1185
1182
  emails: string[];
1186
1183
  } | {
1187
1184
  type: "custom-emails";
1188
1185
  emails: string[];
1189
1186
  };
1187
+ updated_at_millis: number;
1188
+ tsx_source: string;
1189
+ theme_id: string | null;
1190
1190
  variables: Record<string, {} | null>;
1191
1191
  skip_deliverability_check: boolean;
1192
1192
  scheduled_at_millis: number;
@@ -1214,27 +1214,27 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1214
1214
  started_sending_at_millis: number;
1215
1215
  delivery_delayed_at_millis: number;
1216
1216
  } | {
1217
- status: "sent";
1218
1217
  id: string;
1219
- created_at_millis: number;
1218
+ status: "sent";
1220
1219
  subject: string;
1220
+ created_at_millis: number;
1221
1221
  notification_category_id: string | null;
1222
1222
  html: string | null;
1223
1223
  text: string | null;
1224
- updated_at_millis: number;
1225
- tsx_source: string;
1226
- theme_id: string | null;
1227
1224
  to: {
1228
- user_id: string;
1229
1225
  type: "user-primary-email";
1230
- } | {
1231
1226
  user_id: string;
1227
+ } | {
1232
1228
  type: "user-custom-emails";
1229
+ user_id: string;
1233
1230
  emails: string[];
1234
1231
  } | {
1235
1232
  type: "custom-emails";
1236
1233
  emails: string[];
1237
1234
  };
1235
+ updated_at_millis: number;
1236
+ tsx_source: string;
1237
+ theme_id: string | null;
1238
1238
  variables: Record<string, {} | null>;
1239
1239
  skip_deliverability_check: boolean;
1240
1240
  scheduled_at_millis: number;
@@ -1263,27 +1263,27 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1263
1263
  delivered_at_millis: number;
1264
1264
  can_have_delivery_info: boolean;
1265
1265
  } | {
1266
- status: "opened";
1267
1266
  id: string;
1268
- created_at_millis: number;
1267
+ status: "opened";
1269
1268
  subject: string;
1269
+ created_at_millis: number;
1270
1270
  notification_category_id: string | null;
1271
1271
  html: string | null;
1272
1272
  text: string | null;
1273
- updated_at_millis: number;
1274
- tsx_source: string;
1275
- theme_id: string | null;
1276
1273
  to: {
1277
- user_id: string;
1278
1274
  type: "user-primary-email";
1279
- } | {
1280
1275
  user_id: string;
1276
+ } | {
1281
1277
  type: "user-custom-emails";
1278
+ user_id: string;
1282
1279
  emails: string[];
1283
1280
  } | {
1284
1281
  type: "custom-emails";
1285
1282
  emails: string[];
1286
1283
  };
1284
+ updated_at_millis: number;
1285
+ tsx_source: string;
1286
+ theme_id: string | null;
1287
1287
  variables: Record<string, {} | null>;
1288
1288
  skip_deliverability_check: boolean;
1289
1289
  scheduled_at_millis: number;
@@ -1313,27 +1313,27 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1313
1313
  can_have_delivery_info: boolean;
1314
1314
  opened_at_millis: number;
1315
1315
  } | {
1316
- status: "clicked";
1317
1316
  id: string;
1318
- created_at_millis: number;
1317
+ status: "clicked";
1319
1318
  subject: string;
1319
+ created_at_millis: number;
1320
1320
  notification_category_id: string | null;
1321
1321
  html: string | null;
1322
1322
  text: string | null;
1323
- updated_at_millis: number;
1324
- tsx_source: string;
1325
- theme_id: string | null;
1326
1323
  to: {
1327
- user_id: string;
1328
1324
  type: "user-primary-email";
1329
- } | {
1330
1325
  user_id: string;
1326
+ } | {
1331
1327
  type: "user-custom-emails";
1328
+ user_id: string;
1332
1329
  emails: string[];
1333
1330
  } | {
1334
1331
  type: "custom-emails";
1335
1332
  emails: string[];
1336
1333
  };
1334
+ updated_at_millis: number;
1335
+ tsx_source: string;
1336
+ theme_id: string | null;
1337
1337
  variables: Record<string, {} | null>;
1338
1338
  skip_deliverability_check: boolean;
1339
1339
  scheduled_at_millis: number;
@@ -1363,27 +1363,27 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
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
- created_at_millis: number;
1367
+ status: "marked-as-spam";
1369
1368
  subject: string;
1369
+ created_at_millis: number;
1370
1370
  notification_category_id: string | null;
1371
1371
  html: string | null;
1372
1372
  text: string | null;
1373
- updated_at_millis: number;
1374
- tsx_source: string;
1375
- theme_id: string | null;
1376
1373
  to: {
1377
- user_id: string;
1378
1374
  type: "user-primary-email";
1379
- } | {
1380
1375
  user_id: string;
1376
+ } | {
1381
1377
  type: "user-custom-emails";
1378
+ user_id: string;
1382
1379
  emails: string[];
1383
1380
  } | {
1384
1381
  type: "custom-emails";
1385
1382
  emails: string[];
1386
1383
  };
1384
+ updated_at_millis: number;
1385
+ tsx_source: string;
1386
+ theme_id: string | null;
1387
1387
  variables: Record<string, {} | null>;
1388
1388
  skip_deliverability_check: boolean;
1389
1389
  scheduled_at_millis: number;
@@ -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";