@hexclave/shared 1.0.22 → 1.0.24

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 (85) hide show
  1. package/dist/ai/unified-prompts/reminders.js +2 -1
  2. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  3. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  4. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +15 -0
  5. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  6. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts +1 -46
  7. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +1 -62
  8. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -1
  9. package/dist/config/schema.d.ts +80 -80
  10. package/dist/esm/ai/unified-prompts/reminders.js +2 -1
  11. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  12. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  13. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +15 -0
  14. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  15. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts +1 -46
  16. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +1 -62
  17. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -1
  18. package/dist/esm/config/schema.d.ts +80 -80
  19. package/dist/esm/interface/admin-interface.js +1 -1
  20. package/dist/esm/interface/admin-metrics.d.ts +13 -13
  21. package/dist/esm/interface/client-interface.js +1 -1
  22. package/dist/esm/interface/conversations.d.ts +35 -35
  23. package/dist/esm/interface/crud/current-user.d.ts +10 -10
  24. package/dist/esm/interface/crud/email-outbox.d.ts +116 -116
  25. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  26. package/dist/esm/interface/crud/products.d.ts +15 -15
  27. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  28. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  29. package/dist/esm/interface/crud/projects.d.ts +36 -36
  30. package/dist/esm/interface/crud/team-member-profiles.d.ts +36 -36
  31. package/dist/esm/interface/crud/transactions.d.ts +21 -21
  32. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  33. package/dist/esm/interface/crud/users.d.ts +18 -18
  34. package/dist/esm/interface/server-interface.js +1 -1
  35. package/dist/esm/interface/webhooks.d.ts +2 -2
  36. package/dist/esm/known-errors.d.ts +5 -5
  37. package/dist/esm/schema-fields.d.ts +5 -5
  38. package/dist/esm/sessions.d.ts +7 -7
  39. package/dist/esm/utils/env.d.ts +2 -1
  40. package/dist/esm/utils/env.d.ts.map +1 -1
  41. package/dist/esm/utils/env.js +29 -17
  42. package/dist/esm/utils/env.js.map +1 -1
  43. package/dist/esm/utils/env.test.d.ts +1 -0
  44. package/dist/esm/utils/env.test.js +49 -0
  45. package/dist/esm/utils/env.test.js.map +1 -0
  46. package/dist/esm/utils/errors.d.ts.map +1 -1
  47. package/dist/esm/utils/errors.js +4 -1
  48. package/dist/esm/utils/errors.js.map +1 -1
  49. package/dist/interface/admin-interface.js +1 -1
  50. package/dist/interface/admin-metrics.d.ts +13 -13
  51. package/dist/interface/client-interface.js +1 -1
  52. package/dist/interface/conversations.d.ts +35 -35
  53. package/dist/interface/crud/current-user.d.ts +10 -10
  54. package/dist/interface/crud/email-outbox.d.ts +116 -116
  55. package/dist/interface/crud/invoices.d.ts +2 -2
  56. package/dist/interface/crud/products.d.ts +15 -15
  57. package/dist/interface/crud/products.d.ts.map +1 -1
  58. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  59. package/dist/interface/crud/projects.d.ts +36 -36
  60. package/dist/interface/crud/team-member-profiles.d.ts +36 -36
  61. package/dist/interface/crud/transactions.d.ts +21 -21
  62. package/dist/interface/crud/transactions.d.ts.map +1 -1
  63. package/dist/interface/crud/users.d.ts +18 -18
  64. package/dist/interface/server-interface.js +1 -1
  65. package/dist/interface/webhooks.d.ts +2 -2
  66. package/dist/known-errors.d.ts +5 -5
  67. package/dist/schema-fields.d.ts +5 -5
  68. package/dist/sessions.d.ts +7 -7
  69. package/dist/utils/env.d.ts +2 -1
  70. package/dist/utils/env.d.ts.map +1 -1
  71. package/dist/utils/env.js +29 -16
  72. package/dist/utils/env.js.map +1 -1
  73. package/dist/utils/env.test.d.ts +1 -0
  74. package/dist/utils/env.test.js +49 -0
  75. package/dist/utils/env.test.js.map +1 -0
  76. package/dist/utils/errors.d.ts.map +1 -1
  77. package/dist/utils/errors.js +4 -1
  78. package/dist/utils/errors.js.map +1 -1
  79. package/package.json +1 -1
  80. package/src/ai/unified-prompts/reminders.ts +1 -0
  81. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +15 -0
  82. package/src/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.ts +1 -62
  83. package/src/utils/env.test.tsx +58 -0
  84. package/src/utils/env.tsx +36 -20
  85. package/src/utils/errors.tsx +6 -1
@@ -4,18 +4,18 @@ import { CrudTypeOf } from "../../crud";
4
4
 
5
5
  //#region src/interface/crud/email-outbox.d.ts
6
6
  declare const emailOutboxReadSchema: yup$1.MixedSchema<{
7
- status: "paused";
8
7
  id: string;
8
+ status: "paused";
9
9
  created_at_millis: number;
10
10
  updated_at_millis: number;
11
11
  tsx_source: string;
12
12
  theme_id: string | null;
13
13
  to: {
14
- user_id: string;
15
14
  type: "user-primary-email";
16
- } | {
17
15
  user_id: string;
16
+ } | {
18
17
  type: "user-custom-emails";
18
+ user_id: string;
19
19
  emails: string[];
20
20
  } | {
21
21
  type: "custom-emails";
@@ -42,18 +42,18 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
42
42
  has_rendered: boolean;
43
43
  has_delivered: boolean;
44
44
  } | {
45
- status: "preparing";
46
45
  id: string;
46
+ status: "preparing";
47
47
  created_at_millis: number;
48
48
  updated_at_millis: number;
49
49
  tsx_source: string;
50
50
  theme_id: string | null;
51
51
  to: {
52
- user_id: string;
53
52
  type: "user-primary-email";
54
- } | {
55
53
  user_id: string;
54
+ } | {
56
55
  type: "user-custom-emails";
56
+ user_id: string;
57
57
  emails: string[];
58
58
  } | {
59
59
  type: "custom-emails";
@@ -80,18 +80,18 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
80
80
  has_rendered: boolean;
81
81
  has_delivered: boolean;
82
82
  } | {
83
- status: "rendering";
84
83
  id: string;
84
+ status: "rendering";
85
85
  created_at_millis: number;
86
86
  updated_at_millis: number;
87
87
  tsx_source: string;
88
88
  theme_id: string | null;
89
89
  to: {
90
- user_id: string;
91
90
  type: "user-primary-email";
92
- } | {
93
91
  user_id: string;
92
+ } | {
94
93
  type: "user-custom-emails";
94
+ user_id: string;
95
95
  emails: string[];
96
96
  } | {
97
97
  type: "custom-emails";
@@ -119,18 +119,18 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
119
119
  has_delivered: boolean;
120
120
  started_rendering_at_millis: number;
121
121
  } | {
122
- status: "render-error";
123
122
  id: string;
123
+ status: "render-error";
124
124
  created_at_millis: number;
125
125
  updated_at_millis: number;
126
126
  tsx_source: string;
127
127
  theme_id: string | null;
128
128
  to: {
129
- user_id: string;
130
129
  type: "user-primary-email";
131
- } | {
132
130
  user_id: string;
131
+ } | {
133
132
  type: "user-custom-emails";
133
+ user_id: string;
134
134
  emails: string[];
135
135
  } | {
136
136
  type: "custom-emails";
@@ -160,22 +160,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
160
160
  rendered_at_millis: number;
161
161
  render_error: string;
162
162
  } | {
163
- status: "scheduled";
164
163
  id: string;
165
- subject: string;
164
+ status: "scheduled";
166
165
  created_at_millis: number;
167
166
  html: string | null;
168
167
  text: string | null;
168
+ subject: string;
169
169
  notification_category_id: string | null;
170
170
  updated_at_millis: number;
171
171
  tsx_source: string;
172
172
  theme_id: string | null;
173
173
  to: {
174
- user_id: string;
175
174
  type: "user-primary-email";
176
- } | {
177
175
  user_id: string;
176
+ } | {
178
177
  type: "user-custom-emails";
178
+ user_id: string;
179
179
  emails: string[];
180
180
  } | {
181
181
  type: "custom-emails";
@@ -206,22 +206,22 @@ 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
- subject: string;
210
+ status: "queued";
212
211
  created_at_millis: number;
213
212
  html: string | null;
214
213
  text: string | null;
214
+ subject: string;
215
215
  notification_category_id: string | null;
216
216
  updated_at_millis: number;
217
217
  tsx_source: string;
218
218
  theme_id: string | null;
219
219
  to: {
220
- user_id: string;
221
220
  type: "user-primary-email";
222
- } | {
223
221
  user_id: string;
222
+ } | {
224
223
  type: "user-custom-emails";
224
+ user_id: string;
225
225
  emails: string[];
226
226
  } | {
227
227
  type: "custom-emails";
@@ -252,22 +252,22 @@ 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
- subject: string;
256
+ status: "sending";
258
257
  created_at_millis: number;
259
258
  html: string | null;
260
259
  text: string | null;
260
+ subject: string;
261
261
  notification_category_id: string | null;
262
262
  updated_at_millis: number;
263
263
  tsx_source: string;
264
264
  theme_id: string | null;
265
265
  to: {
266
- user_id: string;
267
266
  type: "user-primary-email";
268
- } | {
269
267
  user_id: string;
268
+ } | {
270
269
  type: "user-custom-emails";
270
+ user_id: string;
271
271
  emails: string[];
272
272
  } | {
273
273
  type: "custom-emails";
@@ -299,22 +299,22 @@ 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
- subject: string;
303
+ status: "server-error";
305
304
  created_at_millis: number;
306
305
  html: string | null;
307
306
  text: string | null;
307
+ subject: string;
308
308
  notification_category_id: string | null;
309
309
  updated_at_millis: number;
310
310
  tsx_source: string;
311
311
  theme_id: string | null;
312
312
  to: {
313
- user_id: string;
314
313
  type: "user-primary-email";
315
- } | {
316
314
  user_id: string;
315
+ } | {
317
316
  type: "user-custom-emails";
317
+ user_id: string;
318
318
  emails: string[];
319
319
  } | {
320
320
  type: "custom-emails";
@@ -348,27 +348,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
348
348
  error_at_millis: number;
349
349
  server_error: string;
350
350
  } | {
351
- subject?: string | undefined;
352
351
  html?: string | null | undefined;
353
352
  text?: string | null | undefined;
353
+ subject?: string | undefined;
354
354
  notification_category_id?: string | null | undefined;
355
355
  started_rendering_at_millis?: number | undefined;
356
356
  rendered_at_millis?: number | undefined;
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
363
  updated_at_millis: number;
364
364
  tsx_source: string;
365
365
  theme_id: string | null;
366
366
  to: {
367
- user_id: string;
368
367
  type: "user-primary-email";
369
- } | {
370
368
  user_id: string;
369
+ } | {
371
370
  type: "user-custom-emails";
371
+ user_id: string;
372
372
  emails: string[];
373
373
  } | {
374
374
  type: "custom-emails";
@@ -398,22 +398,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
398
398
  skipped_reason: string;
399
399
  skipped_details: Record<string, {} | null>;
400
400
  } | {
401
- status: "bounced";
402
401
  id: string;
403
- subject: string;
402
+ status: "bounced";
404
403
  created_at_millis: number;
405
404
  html: string | null;
406
405
  text: string | null;
406
+ subject: string;
407
407
  notification_category_id: string | null;
408
408
  updated_at_millis: number;
409
409
  tsx_source: string;
410
410
  theme_id: string | null;
411
411
  to: {
412
- user_id: string;
413
412
  type: "user-primary-email";
414
- } | {
415
413
  user_id: string;
414
+ } | {
416
415
  type: "user-custom-emails";
416
+ user_id: string;
417
417
  emails: string[];
418
418
  } | {
419
419
  type: "custom-emails";
@@ -446,22 +446,22 @@ 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
- subject: string;
450
+ status: "delivery-delayed";
452
451
  created_at_millis: number;
453
452
  html: string | null;
454
453
  text: string | null;
454
+ subject: string;
455
455
  notification_category_id: string | null;
456
456
  updated_at_millis: number;
457
457
  tsx_source: string;
458
458
  theme_id: string | null;
459
459
  to: {
460
- user_id: string;
461
460
  type: "user-primary-email";
462
- } | {
463
461
  user_id: string;
462
+ } | {
464
463
  type: "user-custom-emails";
464
+ user_id: string;
465
465
  emails: string[];
466
466
  } | {
467
467
  type: "custom-emails";
@@ -494,22 +494,22 @@ 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
- subject: string;
498
+ status: "sent";
500
499
  created_at_millis: number;
501
500
  html: string | null;
502
501
  text: string | null;
502
+ subject: string;
503
503
  notification_category_id: string | null;
504
504
  updated_at_millis: number;
505
505
  tsx_source: string;
506
506
  theme_id: string | null;
507
507
  to: {
508
- user_id: string;
509
508
  type: "user-primary-email";
510
- } | {
511
509
  user_id: string;
510
+ } | {
512
511
  type: "user-custom-emails";
512
+ user_id: string;
513
513
  emails: string[];
514
514
  } | {
515
515
  type: "custom-emails";
@@ -543,22 +543,22 @@ 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
- subject: string;
547
+ status: "opened";
549
548
  created_at_millis: number;
550
549
  html: string | null;
551
550
  text: string | null;
551
+ subject: string;
552
552
  notification_category_id: string | null;
553
553
  updated_at_millis: number;
554
554
  tsx_source: string;
555
555
  theme_id: string | null;
556
556
  to: {
557
- user_id: string;
558
557
  type: "user-primary-email";
559
- } | {
560
558
  user_id: string;
559
+ } | {
561
560
  type: "user-custom-emails";
561
+ user_id: string;
562
562
  emails: string[];
563
563
  } | {
564
564
  type: "custom-emails";
@@ -593,22 +593,22 @@ 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
- subject: string;
597
+ status: "clicked";
599
598
  created_at_millis: number;
600
599
  html: string | null;
601
600
  text: string | null;
601
+ subject: string;
602
602
  notification_category_id: string | null;
603
603
  updated_at_millis: number;
604
604
  tsx_source: string;
605
605
  theme_id: string | null;
606
606
  to: {
607
- user_id: string;
608
607
  type: "user-primary-email";
609
- } | {
610
608
  user_id: string;
609
+ } | {
611
610
  type: "user-custom-emails";
611
+ user_id: string;
612
612
  emails: string[];
613
613
  } | {
614
614
  type: "custom-emails";
@@ -643,22 +643,22 @@ 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
- subject: string;
647
+ status: "marked-as-spam";
649
648
  created_at_millis: number;
650
649
  html: string | null;
651
650
  text: string | null;
651
+ subject: string;
652
652
  notification_category_id: string | null;
653
653
  updated_at_millis: number;
654
654
  tsx_source: string;
655
655
  theme_id: string | null;
656
656
  to: {
657
- user_id: string;
658
657
  type: "user-primary-email";
659
- } | {
660
658
  user_id: string;
659
+ } | {
661
660
  type: "user-custom-emails";
661
+ user_id: string;
662
662
  emails: string[];
663
663
  } | {
664
664
  type: "custom-emails";
@@ -697,11 +697,11 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
697
697
  tsx_source: string | undefined;
698
698
  theme_id: string | null | undefined;
699
699
  to: {
700
- user_id: string;
701
700
  type: "user-primary-email";
702
- } | {
703
701
  user_id: string;
702
+ } | {
704
703
  type: "user-custom-emails";
704
+ user_id: string;
705
705
  emails: string[];
706
706
  } | {
707
707
  type: "custom-emails";
@@ -724,18 +724,18 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
724
724
  }, "">;
725
725
  declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
726
726
  serverReadSchema: yup$1.MixedSchema<{
727
- status: "paused";
728
727
  id: string;
728
+ status: "paused";
729
729
  created_at_millis: number;
730
730
  updated_at_millis: number;
731
731
  tsx_source: string;
732
732
  theme_id: string | null;
733
733
  to: {
734
- user_id: string;
735
734
  type: "user-primary-email";
736
- } | {
737
735
  user_id: string;
736
+ } | {
738
737
  type: "user-custom-emails";
738
+ user_id: string;
739
739
  emails: string[];
740
740
  } | {
741
741
  type: "custom-emails";
@@ -762,18 +762,18 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
762
762
  has_rendered: boolean;
763
763
  has_delivered: boolean;
764
764
  } | {
765
- status: "preparing";
766
765
  id: string;
766
+ status: "preparing";
767
767
  created_at_millis: number;
768
768
  updated_at_millis: number;
769
769
  tsx_source: string;
770
770
  theme_id: string | null;
771
771
  to: {
772
- user_id: string;
773
772
  type: "user-primary-email";
774
- } | {
775
773
  user_id: string;
774
+ } | {
776
775
  type: "user-custom-emails";
776
+ user_id: string;
777
777
  emails: string[];
778
778
  } | {
779
779
  type: "custom-emails";
@@ -800,18 +800,18 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
800
800
  has_rendered: boolean;
801
801
  has_delivered: boolean;
802
802
  } | {
803
- status: "rendering";
804
803
  id: string;
804
+ status: "rendering";
805
805
  created_at_millis: number;
806
806
  updated_at_millis: number;
807
807
  tsx_source: string;
808
808
  theme_id: string | null;
809
809
  to: {
810
- user_id: string;
811
810
  type: "user-primary-email";
812
- } | {
813
811
  user_id: string;
812
+ } | {
814
813
  type: "user-custom-emails";
814
+ user_id: string;
815
815
  emails: string[];
816
816
  } | {
817
817
  type: "custom-emails";
@@ -839,18 +839,18 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
839
839
  has_delivered: boolean;
840
840
  started_rendering_at_millis: number;
841
841
  } | {
842
- status: "render-error";
843
842
  id: string;
843
+ status: "render-error";
844
844
  created_at_millis: number;
845
845
  updated_at_millis: number;
846
846
  tsx_source: string;
847
847
  theme_id: string | null;
848
848
  to: {
849
- user_id: string;
850
849
  type: "user-primary-email";
851
- } | {
852
850
  user_id: string;
851
+ } | {
853
852
  type: "user-custom-emails";
853
+ user_id: string;
854
854
  emails: string[];
855
855
  } | {
856
856
  type: "custom-emails";
@@ -880,22 +880,22 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
880
880
  rendered_at_millis: number;
881
881
  render_error: string;
882
882
  } | {
883
- status: "scheduled";
884
883
  id: string;
885
- subject: string;
884
+ status: "scheduled";
886
885
  created_at_millis: number;
887
886
  html: string | null;
888
887
  text: string | null;
888
+ subject: string;
889
889
  notification_category_id: string | null;
890
890
  updated_at_millis: number;
891
891
  tsx_source: string;
892
892
  theme_id: string | null;
893
893
  to: {
894
- user_id: string;
895
894
  type: "user-primary-email";
896
- } | {
897
895
  user_id: string;
896
+ } | {
898
897
  type: "user-custom-emails";
898
+ user_id: string;
899
899
  emails: string[];
900
900
  } | {
901
901
  type: "custom-emails";
@@ -926,22 +926,22 @@ 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
- subject: string;
930
+ status: "queued";
932
931
  created_at_millis: number;
933
932
  html: string | null;
934
933
  text: string | null;
934
+ subject: string;
935
935
  notification_category_id: string | null;
936
936
  updated_at_millis: number;
937
937
  tsx_source: string;
938
938
  theme_id: string | null;
939
939
  to: {
940
- user_id: string;
941
940
  type: "user-primary-email";
942
- } | {
943
941
  user_id: string;
942
+ } | {
944
943
  type: "user-custom-emails";
944
+ user_id: string;
945
945
  emails: string[];
946
946
  } | {
947
947
  type: "custom-emails";
@@ -972,22 +972,22 @@ 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
- subject: string;
976
+ status: "sending";
978
977
  created_at_millis: number;
979
978
  html: string | null;
980
979
  text: string | null;
980
+ subject: string;
981
981
  notification_category_id: string | null;
982
982
  updated_at_millis: number;
983
983
  tsx_source: string;
984
984
  theme_id: string | null;
985
985
  to: {
986
- user_id: string;
987
986
  type: "user-primary-email";
988
- } | {
989
987
  user_id: string;
988
+ } | {
990
989
  type: "user-custom-emails";
990
+ user_id: string;
991
991
  emails: string[];
992
992
  } | {
993
993
  type: "custom-emails";
@@ -1019,22 +1019,22 @@ 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
- subject: string;
1023
+ status: "server-error";
1025
1024
  created_at_millis: number;
1026
1025
  html: string | null;
1027
1026
  text: string | null;
1027
+ subject: string;
1028
1028
  notification_category_id: string | null;
1029
1029
  updated_at_millis: number;
1030
1030
  tsx_source: string;
1031
1031
  theme_id: string | null;
1032
1032
  to: {
1033
- user_id: string;
1034
1033
  type: "user-primary-email";
1035
- } | {
1036
1034
  user_id: string;
1035
+ } | {
1037
1036
  type: "user-custom-emails";
1037
+ user_id: string;
1038
1038
  emails: string[];
1039
1039
  } | {
1040
1040
  type: "custom-emails";
@@ -1068,27 +1068,27 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1068
1068
  error_at_millis: number;
1069
1069
  server_error: string;
1070
1070
  } | {
1071
- subject?: string | undefined;
1072
1071
  html?: string | null | undefined;
1073
1072
  text?: string | null | undefined;
1073
+ subject?: string | undefined;
1074
1074
  notification_category_id?: string | null | undefined;
1075
1075
  started_rendering_at_millis?: number | undefined;
1076
1076
  rendered_at_millis?: number | undefined;
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
1083
  updated_at_millis: number;
1084
1084
  tsx_source: string;
1085
1085
  theme_id: string | null;
1086
1086
  to: {
1087
- user_id: string;
1088
1087
  type: "user-primary-email";
1089
- } | {
1090
1088
  user_id: string;
1089
+ } | {
1091
1090
  type: "user-custom-emails";
1091
+ user_id: string;
1092
1092
  emails: string[];
1093
1093
  } | {
1094
1094
  type: "custom-emails";
@@ -1118,22 +1118,22 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1118
1118
  skipped_reason: string;
1119
1119
  skipped_details: Record<string, {} | null>;
1120
1120
  } | {
1121
- status: "bounced";
1122
1121
  id: string;
1123
- subject: string;
1122
+ status: "bounced";
1124
1123
  created_at_millis: number;
1125
1124
  html: string | null;
1126
1125
  text: string | null;
1126
+ subject: string;
1127
1127
  notification_category_id: string | null;
1128
1128
  updated_at_millis: number;
1129
1129
  tsx_source: string;
1130
1130
  theme_id: string | null;
1131
1131
  to: {
1132
- user_id: string;
1133
1132
  type: "user-primary-email";
1134
- } | {
1135
1133
  user_id: string;
1134
+ } | {
1136
1135
  type: "user-custom-emails";
1136
+ user_id: string;
1137
1137
  emails: string[];
1138
1138
  } | {
1139
1139
  type: "custom-emails";
@@ -1166,22 +1166,22 @@ 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
- subject: string;
1170
+ status: "delivery-delayed";
1172
1171
  created_at_millis: number;
1173
1172
  html: string | null;
1174
1173
  text: string | null;
1174
+ subject: string;
1175
1175
  notification_category_id: string | null;
1176
1176
  updated_at_millis: number;
1177
1177
  tsx_source: string;
1178
1178
  theme_id: string | null;
1179
1179
  to: {
1180
- user_id: string;
1181
1180
  type: "user-primary-email";
1182
- } | {
1183
1181
  user_id: string;
1182
+ } | {
1184
1183
  type: "user-custom-emails";
1184
+ user_id: string;
1185
1185
  emails: string[];
1186
1186
  } | {
1187
1187
  type: "custom-emails";
@@ -1214,22 +1214,22 @@ 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
- subject: string;
1218
+ status: "sent";
1220
1219
  created_at_millis: number;
1221
1220
  html: string | null;
1222
1221
  text: string | null;
1222
+ subject: string;
1223
1223
  notification_category_id: string | null;
1224
1224
  updated_at_millis: number;
1225
1225
  tsx_source: string;
1226
1226
  theme_id: string | null;
1227
1227
  to: {
1228
- user_id: string;
1229
1228
  type: "user-primary-email";
1230
- } | {
1231
1229
  user_id: string;
1230
+ } | {
1232
1231
  type: "user-custom-emails";
1232
+ user_id: string;
1233
1233
  emails: string[];
1234
1234
  } | {
1235
1235
  type: "custom-emails";
@@ -1263,22 +1263,22 @@ 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
- subject: string;
1267
+ status: "opened";
1269
1268
  created_at_millis: number;
1270
1269
  html: string | null;
1271
1270
  text: string | null;
1271
+ subject: string;
1272
1272
  notification_category_id: string | null;
1273
1273
  updated_at_millis: number;
1274
1274
  tsx_source: string;
1275
1275
  theme_id: string | null;
1276
1276
  to: {
1277
- user_id: string;
1278
1277
  type: "user-primary-email";
1279
- } | {
1280
1278
  user_id: string;
1279
+ } | {
1281
1280
  type: "user-custom-emails";
1281
+ user_id: string;
1282
1282
  emails: string[];
1283
1283
  } | {
1284
1284
  type: "custom-emails";
@@ -1313,22 +1313,22 @@ 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
- subject: string;
1317
+ status: "clicked";
1319
1318
  created_at_millis: number;
1320
1319
  html: string | null;
1321
1320
  text: string | null;
1321
+ subject: string;
1322
1322
  notification_category_id: string | null;
1323
1323
  updated_at_millis: number;
1324
1324
  tsx_source: string;
1325
1325
  theme_id: string | null;
1326
1326
  to: {
1327
- user_id: string;
1328
1327
  type: "user-primary-email";
1329
- } | {
1330
1328
  user_id: string;
1329
+ } | {
1331
1330
  type: "user-custom-emails";
1331
+ user_id: string;
1332
1332
  emails: string[];
1333
1333
  } | {
1334
1334
  type: "custom-emails";
@@ -1363,22 +1363,22 @@ 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
- subject: string;
1367
+ status: "marked-as-spam";
1369
1368
  created_at_millis: number;
1370
1369
  html: string | null;
1371
1370
  text: string | null;
1371
+ subject: string;
1372
1372
  notification_category_id: string | null;
1373
1373
  updated_at_millis: number;
1374
1374
  tsx_source: string;
1375
1375
  theme_id: string | null;
1376
1376
  to: {
1377
- user_id: string;
1378
1377
  type: "user-primary-email";
1379
- } | {
1380
1378
  user_id: string;
1379
+ } | {
1381
1380
  type: "user-custom-emails";
1381
+ user_id: string;
1382
1382
  emails: string[];
1383
1383
  } | {
1384
1384
  type: "custom-emails";
@@ -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";