@hexclave/shared 1.0.23 → 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 (79) 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 +74 -74
  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 +74 -74
  19. package/dist/esm/interface/admin-metrics.d.ts +14 -14
  20. package/dist/esm/interface/conversations.d.ts +11 -11
  21. package/dist/esm/interface/crud/current-user.d.ts +11 -11
  22. package/dist/esm/interface/crud/email-outbox.d.ts +136 -136
  23. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  24. package/dist/esm/interface/crud/products.d.ts +15 -15
  25. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  26. package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
  27. package/dist/esm/interface/crud/projects.d.ts +36 -36
  28. package/dist/esm/interface/crud/team-member-profiles.d.ts +36 -36
  29. package/dist/esm/interface/crud/transactions.d.ts +21 -21
  30. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  31. package/dist/esm/interface/crud/users.d.ts +18 -18
  32. package/dist/esm/interface/webhooks.d.ts +2 -2
  33. package/dist/esm/known-errors.d.ts +5 -5
  34. package/dist/esm/schema-fields.d.ts +5 -5
  35. package/dist/esm/sessions.d.ts +7 -7
  36. package/dist/esm/utils/env.d.ts +2 -1
  37. package/dist/esm/utils/env.d.ts.map +1 -1
  38. package/dist/esm/utils/env.js +29 -17
  39. package/dist/esm/utils/env.js.map +1 -1
  40. package/dist/esm/utils/env.test.d.ts +1 -0
  41. package/dist/esm/utils/env.test.js +49 -0
  42. package/dist/esm/utils/env.test.js.map +1 -0
  43. package/dist/esm/utils/errors.d.ts.map +1 -1
  44. package/dist/esm/utils/errors.js +4 -1
  45. package/dist/esm/utils/errors.js.map +1 -1
  46. package/dist/interface/admin-metrics.d.ts +14 -14
  47. package/dist/interface/conversations.d.ts +11 -11
  48. package/dist/interface/crud/current-user.d.ts +11 -11
  49. package/dist/interface/crud/email-outbox.d.ts +136 -136
  50. package/dist/interface/crud/invoices.d.ts +2 -2
  51. package/dist/interface/crud/products.d.ts +15 -15
  52. package/dist/interface/crud/products.d.ts.map +1 -1
  53. package/dist/interface/crud/project-api-keys.d.ts +4 -4
  54. package/dist/interface/crud/projects.d.ts +36 -36
  55. package/dist/interface/crud/team-member-profiles.d.ts +36 -36
  56. package/dist/interface/crud/transactions.d.ts +21 -21
  57. package/dist/interface/crud/transactions.d.ts.map +1 -1
  58. package/dist/interface/crud/users.d.ts +18 -18
  59. package/dist/interface/webhooks.d.ts +2 -2
  60. package/dist/known-errors.d.ts +5 -5
  61. package/dist/schema-fields.d.ts +5 -5
  62. package/dist/sessions.d.ts +7 -7
  63. package/dist/utils/env.d.ts +2 -1
  64. package/dist/utils/env.d.ts.map +1 -1
  65. package/dist/utils/env.js +29 -16
  66. package/dist/utils/env.js.map +1 -1
  67. package/dist/utils/env.test.d.ts +1 -0
  68. package/dist/utils/env.test.js +49 -0
  69. package/dist/utils/env.test.js.map +1 -0
  70. package/dist/utils/errors.d.ts.map +1 -1
  71. package/dist/utils/errors.js +4 -1
  72. package/dist/utils/errors.js.map +1 -1
  73. package/package.json +1 -1
  74. package/src/ai/unified-prompts/reminders.ts +1 -0
  75. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +15 -0
  76. package/src/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.ts +1 -62
  77. package/src/utils/env.test.tsx +58 -0
  78. package/src/utils/env.tsx +36 -20
  79. 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,21 +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;
164
+ status: "scheduled";
165
+ created_at_millis: number;
165
166
  html: string | null;
166
167
  text: string | null;
167
- created_at_millis: number;
168
168
  subject: string;
169
+ notification_category_id: string | null;
169
170
  updated_at_millis: number;
170
171
  tsx_source: string;
171
172
  theme_id: string | null;
172
173
  to: {
173
- user_id: string;
174
174
  type: "user-primary-email";
175
- } | {
176
175
  user_id: string;
176
+ } | {
177
177
  type: "user-custom-emails";
178
+ user_id: string;
178
179
  emails: string[];
179
180
  } | {
180
181
  type: "custom-emails";
@@ -204,23 +205,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
204
205
  rendered_at_millis: number;
205
206
  is_transactional: boolean;
206
207
  is_high_priority: boolean;
207
- notification_category_id: string | null;
208
208
  } | {
209
- status: "queued";
210
209
  id: string;
210
+ status: "queued";
211
+ created_at_millis: number;
211
212
  html: string | null;
212
213
  text: string | null;
213
- created_at_millis: number;
214
214
  subject: string;
215
+ notification_category_id: string | null;
215
216
  updated_at_millis: number;
216
217
  tsx_source: string;
217
218
  theme_id: string | null;
218
219
  to: {
219
- user_id: string;
220
220
  type: "user-primary-email";
221
- } | {
222
221
  user_id: string;
222
+ } | {
223
223
  type: "user-custom-emails";
224
+ user_id: string;
224
225
  emails: string[];
225
226
  } | {
226
227
  type: "custom-emails";
@@ -250,23 +251,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
250
251
  rendered_at_millis: number;
251
252
  is_transactional: boolean;
252
253
  is_high_priority: boolean;
253
- notification_category_id: string | null;
254
254
  } | {
255
- status: "sending";
256
255
  id: string;
256
+ status: "sending";
257
+ created_at_millis: number;
257
258
  html: string | null;
258
259
  text: string | null;
259
- created_at_millis: number;
260
260
  subject: string;
261
+ notification_category_id: string | null;
261
262
  updated_at_millis: number;
262
263
  tsx_source: string;
263
264
  theme_id: string | null;
264
265
  to: {
265
- user_id: string;
266
266
  type: "user-primary-email";
267
- } | {
268
267
  user_id: string;
268
+ } | {
269
269
  type: "user-custom-emails";
270
+ user_id: string;
270
271
  emails: string[];
271
272
  } | {
272
273
  type: "custom-emails";
@@ -296,24 +297,24 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
296
297
  rendered_at_millis: number;
297
298
  is_transactional: boolean;
298
299
  is_high_priority: boolean;
299
- notification_category_id: string | null;
300
300
  started_sending_at_millis: number;
301
301
  } | {
302
- status: "server-error";
303
302
  id: string;
303
+ status: "server-error";
304
+ created_at_millis: number;
304
305
  html: string | null;
305
306
  text: string | null;
306
- created_at_millis: number;
307
307
  subject: string;
308
+ notification_category_id: string | null;
308
309
  updated_at_millis: number;
309
310
  tsx_source: string;
310
311
  theme_id: string | null;
311
312
  to: {
312
- user_id: string;
313
313
  type: "user-primary-email";
314
- } | {
315
314
  user_id: string;
315
+ } | {
316
316
  type: "user-custom-emails";
317
+ user_id: string;
317
318
  emails: string[];
318
319
  } | {
319
320
  type: "custom-emails";
@@ -343,7 +344,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
343
344
  rendered_at_millis: number;
344
345
  is_transactional: boolean;
345
346
  is_high_priority: boolean;
346
- notification_category_id: string | null;
347
347
  started_sending_at_millis: number;
348
348
  error_at_millis: number;
349
349
  server_error: string;
@@ -351,24 +351,24 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
351
351
  html?: string | null | undefined;
352
352
  text?: string | null | undefined;
353
353
  subject?: string | undefined;
354
+ notification_category_id?: string | null | undefined;
354
355
  started_rendering_at_millis?: number | undefined;
355
356
  rendered_at_millis?: number | undefined;
356
357
  is_transactional?: boolean | undefined;
357
358
  is_high_priority?: boolean | undefined;
358
- notification_category_id?: string | null | undefined;
359
359
  started_sending_at_millis?: number | undefined;
360
- status: "skipped";
361
360
  id: string;
361
+ status: "skipped";
362
362
  created_at_millis: number;
363
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,21 +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;
402
+ status: "bounced";
403
+ created_at_millis: number;
403
404
  html: string | null;
404
405
  text: string | null;
405
- created_at_millis: number;
406
406
  subject: string;
407
+ notification_category_id: string | null;
407
408
  updated_at_millis: number;
408
409
  tsx_source: string;
409
410
  theme_id: string | null;
410
411
  to: {
411
- user_id: string;
412
412
  type: "user-primary-email";
413
- } | {
414
413
  user_id: string;
414
+ } | {
415
415
  type: "user-custom-emails";
416
+ user_id: string;
416
417
  emails: string[];
417
418
  } | {
418
419
  type: "custom-emails";
@@ -442,25 +443,25 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
442
443
  rendered_at_millis: number;
443
444
  is_transactional: boolean;
444
445
  is_high_priority: boolean;
445
- notification_category_id: string | null;
446
446
  started_sending_at_millis: number;
447
447
  bounced_at_millis: number;
448
448
  } | {
449
- status: "delivery-delayed";
450
449
  id: string;
450
+ status: "delivery-delayed";
451
+ created_at_millis: number;
451
452
  html: string | null;
452
453
  text: string | null;
453
- created_at_millis: number;
454
454
  subject: string;
455
+ notification_category_id: string | null;
455
456
  updated_at_millis: number;
456
457
  tsx_source: string;
457
458
  theme_id: string | null;
458
459
  to: {
459
- user_id: string;
460
460
  type: "user-primary-email";
461
- } | {
462
461
  user_id: string;
462
+ } | {
463
463
  type: "user-custom-emails";
464
+ user_id: string;
464
465
  emails: string[];
465
466
  } | {
466
467
  type: "custom-emails";
@@ -490,25 +491,25 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
490
491
  rendered_at_millis: number;
491
492
  is_transactional: boolean;
492
493
  is_high_priority: boolean;
493
- notification_category_id: string | null;
494
494
  started_sending_at_millis: number;
495
495
  delivery_delayed_at_millis: number;
496
496
  } | {
497
- status: "sent";
498
497
  id: string;
498
+ status: "sent";
499
+ created_at_millis: number;
499
500
  html: string | null;
500
501
  text: string | null;
501
- created_at_millis: number;
502
502
  subject: string;
503
+ notification_category_id: string | null;
503
504
  updated_at_millis: number;
504
505
  tsx_source: string;
505
506
  theme_id: string | null;
506
507
  to: {
507
- user_id: string;
508
508
  type: "user-primary-email";
509
- } | {
510
509
  user_id: string;
510
+ } | {
511
511
  type: "user-custom-emails";
512
+ user_id: string;
512
513
  emails: string[];
513
514
  } | {
514
515
  type: "custom-emails";
@@ -538,26 +539,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
538
539
  rendered_at_millis: number;
539
540
  is_transactional: boolean;
540
541
  is_high_priority: boolean;
541
- notification_category_id: string | null;
542
542
  started_sending_at_millis: number;
543
543
  delivered_at_millis: number;
544
544
  can_have_delivery_info: boolean;
545
545
  } | {
546
- status: "opened";
547
546
  id: string;
547
+ status: "opened";
548
+ created_at_millis: number;
548
549
  html: string | null;
549
550
  text: string | null;
550
- created_at_millis: number;
551
551
  subject: string;
552
+ notification_category_id: string | null;
552
553
  updated_at_millis: number;
553
554
  tsx_source: string;
554
555
  theme_id: string | null;
555
556
  to: {
556
- user_id: string;
557
557
  type: "user-primary-email";
558
- } | {
559
558
  user_id: string;
559
+ } | {
560
560
  type: "user-custom-emails";
561
+ user_id: string;
561
562
  emails: string[];
562
563
  } | {
563
564
  type: "custom-emails";
@@ -587,27 +588,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
587
588
  rendered_at_millis: number;
588
589
  is_transactional: boolean;
589
590
  is_high_priority: boolean;
590
- notification_category_id: string | null;
591
591
  started_sending_at_millis: number;
592
592
  delivered_at_millis: number;
593
593
  can_have_delivery_info: boolean;
594
594
  opened_at_millis: number;
595
595
  } | {
596
- status: "clicked";
597
596
  id: string;
597
+ status: "clicked";
598
+ created_at_millis: number;
598
599
  html: string | null;
599
600
  text: string | null;
600
- created_at_millis: number;
601
601
  subject: string;
602
+ notification_category_id: string | null;
602
603
  updated_at_millis: number;
603
604
  tsx_source: string;
604
605
  theme_id: string | null;
605
606
  to: {
606
- user_id: string;
607
607
  type: "user-primary-email";
608
- } | {
609
608
  user_id: string;
609
+ } | {
610
610
  type: "user-custom-emails";
611
+ user_id: string;
611
612
  emails: string[];
612
613
  } | {
613
614
  type: "custom-emails";
@@ -637,27 +638,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
637
638
  rendered_at_millis: number;
638
639
  is_transactional: boolean;
639
640
  is_high_priority: boolean;
640
- notification_category_id: string | null;
641
641
  started_sending_at_millis: number;
642
642
  delivered_at_millis: number;
643
643
  can_have_delivery_info: boolean;
644
644
  clicked_at_millis: number;
645
645
  } | {
646
- status: "marked-as-spam";
647
646
  id: string;
647
+ status: "marked-as-spam";
648
+ created_at_millis: number;
648
649
  html: string | null;
649
650
  text: string | null;
650
- created_at_millis: number;
651
651
  subject: string;
652
+ notification_category_id: string | null;
652
653
  updated_at_millis: number;
653
654
  tsx_source: string;
654
655
  theme_id: string | null;
655
656
  to: {
656
- user_id: string;
657
657
  type: "user-primary-email";
658
- } | {
659
658
  user_id: string;
659
+ } | {
660
660
  type: "user-custom-emails";
661
+ user_id: string;
661
662
  emails: string[];
662
663
  } | {
663
664
  type: "custom-emails";
@@ -687,7 +688,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
687
688
  rendered_at_millis: number;
688
689
  is_transactional: boolean;
689
690
  is_high_priority: boolean;
690
- notification_category_id: string | null;
691
691
  started_sending_at_millis: number;
692
692
  delivered_at_millis: number;
693
693
  can_have_delivery_info: boolean;
@@ -697,11 +697,11 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
697
697
  tsx_source: string | undefined;
698
698
  theme_id: string | null | undefined;
699
699
  to: {
700
- user_id: string;
701
700
  type: "user-primary-email";
702
- } | {
703
701
  user_id: string;
702
+ } | {
704
703
  type: "user-custom-emails";
704
+ user_id: string;
705
705
  emails: string[];
706
706
  } | {
707
707
  type: "custom-emails";
@@ -724,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,21 +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;
884
+ status: "scheduled";
885
+ created_at_millis: number;
885
886
  html: string | null;
886
887
  text: string | null;
887
- created_at_millis: number;
888
888
  subject: string;
889
+ notification_category_id: string | null;
889
890
  updated_at_millis: number;
890
891
  tsx_source: string;
891
892
  theme_id: string | null;
892
893
  to: {
893
- user_id: string;
894
894
  type: "user-primary-email";
895
- } | {
896
895
  user_id: string;
896
+ } | {
897
897
  type: "user-custom-emails";
898
+ user_id: string;
898
899
  emails: string[];
899
900
  } | {
900
901
  type: "custom-emails";
@@ -924,23 +925,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
924
925
  rendered_at_millis: number;
925
926
  is_transactional: boolean;
926
927
  is_high_priority: boolean;
927
- notification_category_id: string | null;
928
928
  } | {
929
- status: "queued";
930
929
  id: string;
930
+ status: "queued";
931
+ created_at_millis: number;
931
932
  html: string | null;
932
933
  text: string | null;
933
- created_at_millis: number;
934
934
  subject: string;
935
+ notification_category_id: string | null;
935
936
  updated_at_millis: number;
936
937
  tsx_source: string;
937
938
  theme_id: string | null;
938
939
  to: {
939
- user_id: string;
940
940
  type: "user-primary-email";
941
- } | {
942
941
  user_id: string;
942
+ } | {
943
943
  type: "user-custom-emails";
944
+ user_id: string;
944
945
  emails: string[];
945
946
  } | {
946
947
  type: "custom-emails";
@@ -970,23 +971,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
970
971
  rendered_at_millis: number;
971
972
  is_transactional: boolean;
972
973
  is_high_priority: boolean;
973
- notification_category_id: string | null;
974
974
  } | {
975
- status: "sending";
976
975
  id: string;
976
+ status: "sending";
977
+ created_at_millis: number;
977
978
  html: string | null;
978
979
  text: string | null;
979
- created_at_millis: number;
980
980
  subject: string;
981
+ notification_category_id: string | null;
981
982
  updated_at_millis: number;
982
983
  tsx_source: string;
983
984
  theme_id: string | null;
984
985
  to: {
985
- user_id: string;
986
986
  type: "user-primary-email";
987
- } | {
988
987
  user_id: string;
988
+ } | {
989
989
  type: "user-custom-emails";
990
+ user_id: string;
990
991
  emails: string[];
991
992
  } | {
992
993
  type: "custom-emails";
@@ -1016,24 +1017,24 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1016
1017
  rendered_at_millis: number;
1017
1018
  is_transactional: boolean;
1018
1019
  is_high_priority: boolean;
1019
- notification_category_id: string | null;
1020
1020
  started_sending_at_millis: number;
1021
1021
  } | {
1022
- status: "server-error";
1023
1022
  id: string;
1023
+ status: "server-error";
1024
+ created_at_millis: number;
1024
1025
  html: string | null;
1025
1026
  text: string | null;
1026
- created_at_millis: number;
1027
1027
  subject: string;
1028
+ notification_category_id: string | null;
1028
1029
  updated_at_millis: number;
1029
1030
  tsx_source: string;
1030
1031
  theme_id: string | null;
1031
1032
  to: {
1032
- user_id: string;
1033
1033
  type: "user-primary-email";
1034
- } | {
1035
1034
  user_id: string;
1035
+ } | {
1036
1036
  type: "user-custom-emails";
1037
+ user_id: string;
1037
1038
  emails: string[];
1038
1039
  } | {
1039
1040
  type: "custom-emails";
@@ -1063,7 +1064,6 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1063
1064
  rendered_at_millis: number;
1064
1065
  is_transactional: boolean;
1065
1066
  is_high_priority: boolean;
1066
- notification_category_id: string | null;
1067
1067
  started_sending_at_millis: number;
1068
1068
  error_at_millis: number;
1069
1069
  server_error: string;
@@ -1071,24 +1071,24 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1071
1071
  html?: string | null | undefined;
1072
1072
  text?: string | null | undefined;
1073
1073
  subject?: string | undefined;
1074
+ notification_category_id?: string | null | undefined;
1074
1075
  started_rendering_at_millis?: number | undefined;
1075
1076
  rendered_at_millis?: number | undefined;
1076
1077
  is_transactional?: boolean | undefined;
1077
1078
  is_high_priority?: boolean | undefined;
1078
- notification_category_id?: string | null | undefined;
1079
1079
  started_sending_at_millis?: number | undefined;
1080
- status: "skipped";
1081
1080
  id: string;
1081
+ status: "skipped";
1082
1082
  created_at_millis: number;
1083
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,21 +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;
1122
+ status: "bounced";
1123
+ created_at_millis: number;
1123
1124
  html: string | null;
1124
1125
  text: string | null;
1125
- created_at_millis: number;
1126
1126
  subject: string;
1127
+ notification_category_id: string | null;
1127
1128
  updated_at_millis: number;
1128
1129
  tsx_source: string;
1129
1130
  theme_id: string | null;
1130
1131
  to: {
1131
- user_id: string;
1132
1132
  type: "user-primary-email";
1133
- } | {
1134
1133
  user_id: string;
1134
+ } | {
1135
1135
  type: "user-custom-emails";
1136
+ user_id: string;
1136
1137
  emails: string[];
1137
1138
  } | {
1138
1139
  type: "custom-emails";
@@ -1162,25 +1163,25 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1162
1163
  rendered_at_millis: number;
1163
1164
  is_transactional: boolean;
1164
1165
  is_high_priority: boolean;
1165
- notification_category_id: string | null;
1166
1166
  started_sending_at_millis: number;
1167
1167
  bounced_at_millis: number;
1168
1168
  } | {
1169
- status: "delivery-delayed";
1170
1169
  id: string;
1170
+ status: "delivery-delayed";
1171
+ created_at_millis: number;
1171
1172
  html: string | null;
1172
1173
  text: string | null;
1173
- created_at_millis: number;
1174
1174
  subject: string;
1175
+ notification_category_id: string | null;
1175
1176
  updated_at_millis: number;
1176
1177
  tsx_source: string;
1177
1178
  theme_id: string | null;
1178
1179
  to: {
1179
- user_id: string;
1180
1180
  type: "user-primary-email";
1181
- } | {
1182
1181
  user_id: string;
1182
+ } | {
1183
1183
  type: "user-custom-emails";
1184
+ user_id: string;
1184
1185
  emails: string[];
1185
1186
  } | {
1186
1187
  type: "custom-emails";
@@ -1210,25 +1211,25 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1210
1211
  rendered_at_millis: number;
1211
1212
  is_transactional: boolean;
1212
1213
  is_high_priority: boolean;
1213
- notification_category_id: string | null;
1214
1214
  started_sending_at_millis: number;
1215
1215
  delivery_delayed_at_millis: number;
1216
1216
  } | {
1217
- status: "sent";
1218
1217
  id: string;
1218
+ status: "sent";
1219
+ created_at_millis: number;
1219
1220
  html: string | null;
1220
1221
  text: string | null;
1221
- created_at_millis: number;
1222
1222
  subject: string;
1223
+ notification_category_id: string | null;
1223
1224
  updated_at_millis: number;
1224
1225
  tsx_source: string;
1225
1226
  theme_id: string | null;
1226
1227
  to: {
1227
- user_id: string;
1228
1228
  type: "user-primary-email";
1229
- } | {
1230
1229
  user_id: string;
1230
+ } | {
1231
1231
  type: "user-custom-emails";
1232
+ user_id: string;
1232
1233
  emails: string[];
1233
1234
  } | {
1234
1235
  type: "custom-emails";
@@ -1258,26 +1259,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1258
1259
  rendered_at_millis: number;
1259
1260
  is_transactional: boolean;
1260
1261
  is_high_priority: boolean;
1261
- notification_category_id: string | null;
1262
1262
  started_sending_at_millis: number;
1263
1263
  delivered_at_millis: number;
1264
1264
  can_have_delivery_info: boolean;
1265
1265
  } | {
1266
- status: "opened";
1267
1266
  id: string;
1267
+ status: "opened";
1268
+ created_at_millis: number;
1268
1269
  html: string | null;
1269
1270
  text: string | null;
1270
- created_at_millis: number;
1271
1271
  subject: string;
1272
+ notification_category_id: string | null;
1272
1273
  updated_at_millis: number;
1273
1274
  tsx_source: string;
1274
1275
  theme_id: string | null;
1275
1276
  to: {
1276
- user_id: string;
1277
1277
  type: "user-primary-email";
1278
- } | {
1279
1278
  user_id: string;
1279
+ } | {
1280
1280
  type: "user-custom-emails";
1281
+ user_id: string;
1281
1282
  emails: string[];
1282
1283
  } | {
1283
1284
  type: "custom-emails";
@@ -1307,27 +1308,27 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1307
1308
  rendered_at_millis: number;
1308
1309
  is_transactional: boolean;
1309
1310
  is_high_priority: boolean;
1310
- notification_category_id: string | null;
1311
1311
  started_sending_at_millis: number;
1312
1312
  delivered_at_millis: number;
1313
1313
  can_have_delivery_info: boolean;
1314
1314
  opened_at_millis: number;
1315
1315
  } | {
1316
- status: "clicked";
1317
1316
  id: string;
1317
+ status: "clicked";
1318
+ created_at_millis: number;
1318
1319
  html: string | null;
1319
1320
  text: string | null;
1320
- created_at_millis: number;
1321
1321
  subject: string;
1322
+ notification_category_id: string | null;
1322
1323
  updated_at_millis: number;
1323
1324
  tsx_source: string;
1324
1325
  theme_id: string | null;
1325
1326
  to: {
1326
- user_id: string;
1327
1327
  type: "user-primary-email";
1328
- } | {
1329
1328
  user_id: string;
1329
+ } | {
1330
1330
  type: "user-custom-emails";
1331
+ user_id: string;
1331
1332
  emails: string[];
1332
1333
  } | {
1333
1334
  type: "custom-emails";
@@ -1357,27 +1358,27 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1357
1358
  rendered_at_millis: number;
1358
1359
  is_transactional: boolean;
1359
1360
  is_high_priority: boolean;
1360
- notification_category_id: string | null;
1361
1361
  started_sending_at_millis: number;
1362
1362
  delivered_at_millis: number;
1363
1363
  can_have_delivery_info: boolean;
1364
1364
  clicked_at_millis: number;
1365
1365
  } | {
1366
- status: "marked-as-spam";
1367
1366
  id: string;
1367
+ status: "marked-as-spam";
1368
+ created_at_millis: number;
1368
1369
  html: string | null;
1369
1370
  text: string | null;
1370
- created_at_millis: number;
1371
1371
  subject: string;
1372
+ notification_category_id: string | null;
1372
1373
  updated_at_millis: number;
1373
1374
  tsx_source: string;
1374
1375
  theme_id: string | null;
1375
1376
  to: {
1376
- user_id: string;
1377
1377
  type: "user-primary-email";
1378
- } | {
1379
1378
  user_id: string;
1379
+ } | {
1380
1380
  type: "user-custom-emails";
1381
+ user_id: string;
1381
1382
  emails: string[];
1382
1383
  } | {
1383
1384
  type: "custom-emails";
@@ -1407,7 +1408,6 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1407
1408
  rendered_at_millis: number;
1408
1409
  is_transactional: boolean;
1409
1410
  is_high_priority: boolean;
1410
- notification_category_id: string | null;
1411
1411
  started_sending_at_millis: number;
1412
1412
  delivered_at_millis: number;
1413
1413
  can_have_delivery_info: boolean;
@@ -1417,11 +1417,11 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1417
1417
  tsx_source: string | undefined;
1418
1418
  theme_id: string | null | undefined;
1419
1419
  to: {
1420
- user_id: string;
1421
1420
  type: "user-primary-email";
1422
- } | {
1423
1421
  user_id: string;
1422
+ } | {
1424
1423
  type: "user-custom-emails";
1424
+ user_id: string;
1425
1425
  emails: string[];
1426
1426
  } | {
1427
1427
  type: "custom-emails";