@hexclave/shared 1.0.34 → 1.0.35

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