@hexclave/shared 1.0.17 → 1.0.19

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 (59) hide show
  1. package/dist/ai/unified-prompts/reminders.js +10 -7
  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 +2 -1
  4. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  5. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +238 -10
  6. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  7. package/dist/ai/unified-prompts/skill-site-prompt.js +1 -1
  8. package/dist/ai/unified-prompts/skill-site-prompt.js.map +1 -1
  9. package/dist/apps/apps-config.d.ts +7 -3
  10. package/dist/apps/apps-config.d.ts.map +1 -1
  11. package/dist/apps/apps-config.js +12 -4
  12. package/dist/apps/apps-config.js.map +1 -1
  13. package/dist/config/schema.d.ts +192 -192
  14. package/dist/esm/ai/unified-prompts/reminders.js +10 -7
  15. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  16. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts +2 -1
  17. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  18. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +238 -11
  19. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  20. package/dist/esm/ai/unified-prompts/skill-site-prompt.js +1 -1
  21. package/dist/esm/ai/unified-prompts/skill-site-prompt.js.map +1 -1
  22. package/dist/esm/apps/apps-config.d.ts +7 -3
  23. package/dist/esm/apps/apps-config.d.ts.map +1 -1
  24. package/dist/esm/apps/apps-config.js +12 -5
  25. package/dist/esm/apps/apps-config.js.map +1 -1
  26. package/dist/esm/config/schema.d.ts +192 -192
  27. package/dist/esm/interface/admin-metrics.d.ts +10 -10
  28. package/dist/esm/interface/conversations.d.ts +9 -9
  29. package/dist/esm/interface/crud/current-user.d.ts +5 -5
  30. package/dist/esm/interface/crud/email-outbox.d.ts +138 -138
  31. package/dist/esm/interface/crud/products.d.ts +15 -15
  32. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  33. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  34. package/dist/esm/interface/crud/team-member-profiles.d.ts +8 -8
  35. package/dist/esm/interface/crud/transactions.d.ts +21 -21
  36. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  37. package/dist/esm/interface/crud/users.d.ts +4 -4
  38. package/dist/esm/known-errors.d.ts +5 -5
  39. package/dist/esm/schema-fields.d.ts +5 -5
  40. package/dist/esm/sessions.d.ts +7 -7
  41. package/dist/interface/admin-metrics.d.ts +10 -10
  42. package/dist/interface/conversations.d.ts +9 -9
  43. package/dist/interface/crud/current-user.d.ts +5 -5
  44. package/dist/interface/crud/email-outbox.d.ts +138 -138
  45. package/dist/interface/crud/products.d.ts +15 -15
  46. package/dist/interface/crud/products.d.ts.map +1 -1
  47. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  48. package/dist/interface/crud/team-member-profiles.d.ts +8 -8
  49. package/dist/interface/crud/transactions.d.ts +21 -21
  50. package/dist/interface/crud/transactions.d.ts.map +1 -1
  51. package/dist/interface/crud/users.d.ts +4 -4
  52. package/dist/known-errors.d.ts +5 -5
  53. package/dist/schema-fields.d.ts +5 -5
  54. package/dist/sessions.d.ts +7 -7
  55. package/package.json +1 -1
  56. package/src/ai/unified-prompts/reminders.ts +10 -7
  57. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +244 -10
  58. package/src/ai/unified-prompts/skill-site-prompt.ts +1 -1
  59. package/src/apps/apps-config.ts +13 -2
@@ -3,15 +3,15 @@ import * as yup$1 from "yup";
3
3
 
4
4
  //#region src/interface/crud/email-outbox.d.ts
5
5
  declare const emailOutboxReadSchema: yup$1.MixedSchema<{
6
- status: "paused";
7
6
  id: string;
7
+ status: "paused";
8
8
  created_at_millis: number;
9
9
  to: {
10
- user_id: string;
11
10
  type: "user-primary-email";
12
- } | {
13
11
  user_id: string;
12
+ } | {
14
13
  type: "user-custom-emails";
14
+ user_id: string;
15
15
  emails: string[];
16
16
  } | {
17
17
  type: "custom-emails";
@@ -41,15 +41,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
41
41
  has_rendered: boolean;
42
42
  has_delivered: boolean;
43
43
  } | {
44
- status: "preparing";
45
44
  id: string;
45
+ status: "preparing";
46
46
  created_at_millis: number;
47
47
  to: {
48
- user_id: string;
49
48
  type: "user-primary-email";
50
- } | {
51
49
  user_id: string;
50
+ } | {
52
51
  type: "user-custom-emails";
52
+ user_id: string;
53
53
  emails: string[];
54
54
  } | {
55
55
  type: "custom-emails";
@@ -79,15 +79,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
79
79
  has_rendered: boolean;
80
80
  has_delivered: boolean;
81
81
  } | {
82
- status: "rendering";
83
82
  id: string;
83
+ status: "rendering";
84
84
  created_at_millis: number;
85
85
  to: {
86
- user_id: string;
87
86
  type: "user-primary-email";
88
- } | {
89
87
  user_id: string;
88
+ } | {
90
89
  type: "user-custom-emails";
90
+ user_id: string;
91
91
  emails: string[];
92
92
  } | {
93
93
  type: "custom-emails";
@@ -118,15 +118,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
118
118
  has_delivered: boolean;
119
119
  started_rendering_at_millis: number;
120
120
  } | {
121
- status: "render-error";
122
121
  id: string;
122
+ status: "render-error";
123
123
  created_at_millis: number;
124
124
  to: {
125
- user_id: string;
126
125
  type: "user-primary-email";
127
- } | {
128
126
  user_id: string;
127
+ } | {
129
128
  type: "user-custom-emails";
129
+ user_id: string;
130
130
  emails: string[];
131
131
  } | {
132
132
  type: "custom-emails";
@@ -159,19 +159,17 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
159
159
  rendered_at_millis: number;
160
160
  render_error: string;
161
161
  } | {
162
- status: "scheduled";
163
162
  id: string;
163
+ status: "scheduled";
164
164
  subject: string;
165
165
  created_at_millis: number;
166
- html: string | null;
167
- text: string | null;
168
166
  notification_category_id: string | null;
169
167
  to: {
170
- user_id: string;
171
168
  type: "user-primary-email";
172
- } | {
173
169
  user_id: string;
170
+ } | {
174
171
  type: "user-custom-emails";
172
+ user_id: string;
175
173
  emails: string[];
176
174
  } | {
177
175
  type: "custom-emails";
@@ -202,22 +200,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
202
200
  has_delivered: boolean;
203
201
  started_rendering_at_millis: number;
204
202
  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
  } | {
208
- status: "queued";
209
208
  id: string;
209
+ status: "queued";
210
210
  subject: string;
211
211
  created_at_millis: number;
212
- html: string | null;
213
- text: string | null;
214
212
  notification_category_id: string | null;
215
213
  to: {
216
- user_id: string;
217
214
  type: "user-primary-email";
218
- } | {
219
215
  user_id: string;
216
+ } | {
220
217
  type: "user-custom-emails";
218
+ user_id: string;
221
219
  emails: string[];
222
220
  } | {
223
221
  type: "custom-emails";
@@ -248,22 +246,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
248
246
  has_delivered: boolean;
249
247
  started_rendering_at_millis: number;
250
248
  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
  } | {
254
- status: "sending";
255
254
  id: string;
255
+ status: "sending";
256
256
  subject: string;
257
257
  created_at_millis: number;
258
- html: string | null;
259
- text: string | null;
260
258
  notification_category_id: string | null;
261
259
  to: {
262
- user_id: string;
263
260
  type: "user-primary-email";
264
- } | {
265
261
  user_id: string;
262
+ } | {
266
263
  type: "user-custom-emails";
264
+ user_id: string;
267
265
  emails: string[];
268
266
  } | {
269
267
  type: "custom-emails";
@@ -294,23 +292,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
294
292
  has_delivered: boolean;
295
293
  started_rendering_at_millis: number;
296
294
  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
  started_sending_at_millis: number;
300
300
  } | {
301
- status: "server-error";
302
301
  id: string;
302
+ status: "server-error";
303
303
  subject: string;
304
304
  created_at_millis: number;
305
- html: string | null;
306
- text: string | null;
307
305
  notification_category_id: string | null;
308
306
  to: {
309
- user_id: string;
310
307
  type: "user-primary-email";
311
- } | {
312
308
  user_id: string;
309
+ } | {
313
310
  type: "user-custom-emails";
311
+ user_id: string;
314
312
  emails: string[];
315
313
  } | {
316
314
  type: "custom-emails";
@@ -341,6 +339,8 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
341
339
  has_delivered: boolean;
342
340
  started_rendering_at_millis: number;
343
341
  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
  started_sending_at_millis: number;
@@ -348,23 +348,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
348
348
  server_error: string;
349
349
  } | {
350
350
  subject?: string | undefined;
351
- html?: string | null | undefined;
352
- text?: string | null | undefined;
353
351
  notification_category_id?: string | null | undefined;
354
352
  started_rendering_at_millis?: number | undefined;
355
353
  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
  started_sending_at_millis?: number | undefined;
359
- status: "skipped";
360
359
  id: string;
360
+ status: "skipped";
361
361
  created_at_millis: number;
362
362
  to: {
363
- user_id: string;
364
363
  type: "user-primary-email";
365
- } | {
366
364
  user_id: string;
365
+ } | {
367
366
  type: "user-custom-emails";
367
+ user_id: string;
368
368
  emails: string[];
369
369
  } | {
370
370
  type: "custom-emails";
@@ -397,19 +397,17 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
397
397
  skipped_reason: string;
398
398
  skipped_details: Record<string, {} | null>;
399
399
  } | {
400
- status: "bounced";
401
400
  id: string;
401
+ status: "bounced";
402
402
  subject: string;
403
403
  created_at_millis: number;
404
- html: string | null;
405
- text: string | null;
406
404
  notification_category_id: string | null;
407
405
  to: {
408
- user_id: string;
409
406
  type: "user-primary-email";
410
- } | {
411
407
  user_id: string;
408
+ } | {
412
409
  type: "user-custom-emails";
410
+ user_id: string;
413
411
  emails: string[];
414
412
  } | {
415
413
  type: "custom-emails";
@@ -440,24 +438,24 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
440
438
  has_delivered: boolean;
441
439
  started_rendering_at_millis: number;
442
440
  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
  started_sending_at_millis: number;
446
446
  bounced_at_millis: number;
447
447
  } | {
448
- status: "delivery-delayed";
449
448
  id: string;
449
+ status: "delivery-delayed";
450
450
  subject: string;
451
451
  created_at_millis: number;
452
- html: string | null;
453
- text: string | null;
454
452
  notification_category_id: string | null;
455
453
  to: {
456
- user_id: string;
457
454
  type: "user-primary-email";
458
- } | {
459
455
  user_id: string;
456
+ } | {
460
457
  type: "user-custom-emails";
458
+ user_id: string;
461
459
  emails: string[];
462
460
  } | {
463
461
  type: "custom-emails";
@@ -488,24 +486,24 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
488
486
  has_delivered: boolean;
489
487
  started_rendering_at_millis: number;
490
488
  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
  started_sending_at_millis: number;
494
494
  delivery_delayed_at_millis: number;
495
495
  } | {
496
- status: "sent";
497
496
  id: string;
497
+ status: "sent";
498
498
  subject: string;
499
499
  created_at_millis: number;
500
- html: string | null;
501
- text: string | null;
502
500
  notification_category_id: string | null;
503
501
  to: {
504
- user_id: string;
505
502
  type: "user-primary-email";
506
- } | {
507
503
  user_id: string;
504
+ } | {
508
505
  type: "user-custom-emails";
506
+ user_id: string;
509
507
  emails: string[];
510
508
  } | {
511
509
  type: "custom-emails";
@@ -536,25 +534,25 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
536
534
  has_delivered: boolean;
537
535
  started_rendering_at_millis: number;
538
536
  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
  started_sending_at_millis: number;
542
542
  delivered_at_millis: number;
543
543
  can_have_delivery_info: boolean;
544
544
  } | {
545
- status: "opened";
546
545
  id: string;
546
+ status: "opened";
547
547
  subject: string;
548
548
  created_at_millis: number;
549
- html: string | null;
550
- text: string | null;
551
549
  notification_category_id: string | null;
552
550
  to: {
553
- user_id: string;
554
551
  type: "user-primary-email";
555
- } | {
556
552
  user_id: string;
553
+ } | {
557
554
  type: "user-custom-emails";
555
+ user_id: string;
558
556
  emails: string[];
559
557
  } | {
560
558
  type: "custom-emails";
@@ -585,6 +583,8 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
585
583
  has_delivered: boolean;
586
584
  started_rendering_at_millis: number;
587
585
  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
  started_sending_at_millis: number;
@@ -592,19 +592,17 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
592
592
  can_have_delivery_info: boolean;
593
593
  opened_at_millis: number;
594
594
  } | {
595
- status: "clicked";
596
595
  id: string;
596
+ status: "clicked";
597
597
  subject: string;
598
598
  created_at_millis: number;
599
- html: string | null;
600
- text: string | null;
601
599
  notification_category_id: string | null;
602
600
  to: {
603
- user_id: string;
604
601
  type: "user-primary-email";
605
- } | {
606
602
  user_id: string;
603
+ } | {
607
604
  type: "user-custom-emails";
605
+ user_id: string;
608
606
  emails: string[];
609
607
  } | {
610
608
  type: "custom-emails";
@@ -635,6 +633,8 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
635
633
  has_delivered: boolean;
636
634
  started_rendering_at_millis: number;
637
635
  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
  started_sending_at_millis: number;
@@ -642,19 +642,17 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
642
642
  can_have_delivery_info: boolean;
643
643
  clicked_at_millis: number;
644
644
  } | {
645
- status: "marked-as-spam";
646
645
  id: string;
646
+ status: "marked-as-spam";
647
647
  subject: string;
648
648
  created_at_millis: number;
649
- html: string | null;
650
- text: string | null;
651
649
  notification_category_id: string | null;
652
650
  to: {
653
- user_id: string;
654
651
  type: "user-primary-email";
655
- } | {
656
652
  user_id: string;
653
+ } | {
657
654
  type: "user-custom-emails";
655
+ user_id: string;
658
656
  emails: string[];
659
657
  } | {
660
658
  type: "custom-emails";
@@ -685,6 +683,8 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
685
683
  has_delivered: boolean;
686
684
  started_rendering_at_millis: number;
687
685
  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
  started_sending_at_millis: number;
@@ -696,11 +696,11 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
696
696
  tsx_source: string | undefined;
697
697
  theme_id: string | null | undefined;
698
698
  to: {
699
- user_id: string;
700
699
  type: "user-primary-email";
701
- } | {
702
700
  user_id: string;
701
+ } | {
703
702
  type: "user-custom-emails";
703
+ user_id: string;
704
704
  emails: string[];
705
705
  } | {
706
706
  type: "custom-emails";
@@ -723,15 +723,15 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
723
723
  }, "">;
724
724
  declare const emailOutboxCrud: CrudSchemaFromOptions<{
725
725
  serverReadSchema: yup$1.MixedSchema<{
726
- status: "paused";
727
726
  id: string;
727
+ status: "paused";
728
728
  created_at_millis: number;
729
729
  to: {
730
- user_id: string;
731
730
  type: "user-primary-email";
732
- } | {
733
731
  user_id: string;
732
+ } | {
734
733
  type: "user-custom-emails";
734
+ user_id: string;
735
735
  emails: string[];
736
736
  } | {
737
737
  type: "custom-emails";
@@ -761,15 +761,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
761
761
  has_rendered: boolean;
762
762
  has_delivered: boolean;
763
763
  } | {
764
- status: "preparing";
765
764
  id: string;
765
+ status: "preparing";
766
766
  created_at_millis: number;
767
767
  to: {
768
- user_id: string;
769
768
  type: "user-primary-email";
770
- } | {
771
769
  user_id: string;
770
+ } | {
772
771
  type: "user-custom-emails";
772
+ user_id: string;
773
773
  emails: string[];
774
774
  } | {
775
775
  type: "custom-emails";
@@ -799,15 +799,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
799
799
  has_rendered: boolean;
800
800
  has_delivered: boolean;
801
801
  } | {
802
- status: "rendering";
803
802
  id: string;
803
+ status: "rendering";
804
804
  created_at_millis: number;
805
805
  to: {
806
- user_id: string;
807
806
  type: "user-primary-email";
808
- } | {
809
807
  user_id: string;
808
+ } | {
810
809
  type: "user-custom-emails";
810
+ user_id: string;
811
811
  emails: string[];
812
812
  } | {
813
813
  type: "custom-emails";
@@ -838,15 +838,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
838
838
  has_delivered: boolean;
839
839
  started_rendering_at_millis: number;
840
840
  } | {
841
- status: "render-error";
842
841
  id: string;
842
+ status: "render-error";
843
843
  created_at_millis: number;
844
844
  to: {
845
- user_id: string;
846
845
  type: "user-primary-email";
847
- } | {
848
846
  user_id: string;
847
+ } | {
849
848
  type: "user-custom-emails";
849
+ user_id: string;
850
850
  emails: string[];
851
851
  } | {
852
852
  type: "custom-emails";
@@ -879,19 +879,17 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
879
879
  rendered_at_millis: number;
880
880
  render_error: string;
881
881
  } | {
882
- status: "scheduled";
883
882
  id: string;
883
+ status: "scheduled";
884
884
  subject: string;
885
885
  created_at_millis: number;
886
- html: string | null;
887
- text: string | null;
888
886
  notification_category_id: string | null;
889
887
  to: {
890
- user_id: string;
891
888
  type: "user-primary-email";
892
- } | {
893
889
  user_id: string;
890
+ } | {
894
891
  type: "user-custom-emails";
892
+ user_id: string;
895
893
  emails: string[];
896
894
  } | {
897
895
  type: "custom-emails";
@@ -922,22 +920,22 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
922
920
  has_delivered: boolean;
923
921
  started_rendering_at_millis: number;
924
922
  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
  } | {
928
- status: "queued";
929
928
  id: string;
929
+ status: "queued";
930
930
  subject: string;
931
931
  created_at_millis: number;
932
- html: string | null;
933
- text: string | null;
934
932
  notification_category_id: string | null;
935
933
  to: {
936
- user_id: string;
937
934
  type: "user-primary-email";
938
- } | {
939
935
  user_id: string;
936
+ } | {
940
937
  type: "user-custom-emails";
938
+ user_id: string;
941
939
  emails: string[];
942
940
  } | {
943
941
  type: "custom-emails";
@@ -968,22 +966,22 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
968
966
  has_delivered: boolean;
969
967
  started_rendering_at_millis: number;
970
968
  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
  } | {
974
- status: "sending";
975
974
  id: string;
975
+ status: "sending";
976
976
  subject: string;
977
977
  created_at_millis: number;
978
- html: string | null;
979
- text: string | null;
980
978
  notification_category_id: string | null;
981
979
  to: {
982
- user_id: string;
983
980
  type: "user-primary-email";
984
- } | {
985
981
  user_id: string;
982
+ } | {
986
983
  type: "user-custom-emails";
984
+ user_id: string;
987
985
  emails: string[];
988
986
  } | {
989
987
  type: "custom-emails";
@@ -1014,23 +1012,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1014
1012
  has_delivered: boolean;
1015
1013
  started_rendering_at_millis: number;
1016
1014
  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
  started_sending_at_millis: number;
1020
1020
  } | {
1021
- status: "server-error";
1022
1021
  id: string;
1022
+ status: "server-error";
1023
1023
  subject: string;
1024
1024
  created_at_millis: number;
1025
- html: string | null;
1026
- text: string | null;
1027
1025
  notification_category_id: string | null;
1028
1026
  to: {
1029
- user_id: string;
1030
1027
  type: "user-primary-email";
1031
- } | {
1032
1028
  user_id: string;
1029
+ } | {
1033
1030
  type: "user-custom-emails";
1031
+ user_id: string;
1034
1032
  emails: string[];
1035
1033
  } | {
1036
1034
  type: "custom-emails";
@@ -1061,6 +1059,8 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1061
1059
  has_delivered: boolean;
1062
1060
  started_rendering_at_millis: number;
1063
1061
  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
  started_sending_at_millis: number;
@@ -1068,23 +1068,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1068
1068
  server_error: string;
1069
1069
  } | {
1070
1070
  subject?: string | undefined;
1071
- html?: string | null | undefined;
1072
- text?: string | null | undefined;
1073
1071
  notification_category_id?: string | null | undefined;
1074
1072
  started_rendering_at_millis?: number | undefined;
1075
1073
  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
  started_sending_at_millis?: number | undefined;
1079
- status: "skipped";
1080
1079
  id: string;
1080
+ status: "skipped";
1081
1081
  created_at_millis: number;
1082
1082
  to: {
1083
- user_id: string;
1084
1083
  type: "user-primary-email";
1085
- } | {
1086
1084
  user_id: string;
1085
+ } | {
1087
1086
  type: "user-custom-emails";
1087
+ user_id: string;
1088
1088
  emails: string[];
1089
1089
  } | {
1090
1090
  type: "custom-emails";
@@ -1117,19 +1117,17 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1117
1117
  skipped_reason: string;
1118
1118
  skipped_details: Record<string, {} | null>;
1119
1119
  } | {
1120
- status: "bounced";
1121
1120
  id: string;
1121
+ status: "bounced";
1122
1122
  subject: string;
1123
1123
  created_at_millis: number;
1124
- html: string | null;
1125
- text: string | null;
1126
1124
  notification_category_id: string | null;
1127
1125
  to: {
1128
- user_id: string;
1129
1126
  type: "user-primary-email";
1130
- } | {
1131
1127
  user_id: string;
1128
+ } | {
1132
1129
  type: "user-custom-emails";
1130
+ user_id: string;
1133
1131
  emails: string[];
1134
1132
  } | {
1135
1133
  type: "custom-emails";
@@ -1160,24 +1158,24 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1160
1158
  has_delivered: boolean;
1161
1159
  started_rendering_at_millis: number;
1162
1160
  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
  started_sending_at_millis: number;
1166
1166
  bounced_at_millis: number;
1167
1167
  } | {
1168
- status: "delivery-delayed";
1169
1168
  id: string;
1169
+ status: "delivery-delayed";
1170
1170
  subject: string;
1171
1171
  created_at_millis: number;
1172
- html: string | null;
1173
- text: string | null;
1174
1172
  notification_category_id: string | null;
1175
1173
  to: {
1176
- user_id: string;
1177
1174
  type: "user-primary-email";
1178
- } | {
1179
1175
  user_id: string;
1176
+ } | {
1180
1177
  type: "user-custom-emails";
1178
+ user_id: string;
1181
1179
  emails: string[];
1182
1180
  } | {
1183
1181
  type: "custom-emails";
@@ -1208,24 +1206,24 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1208
1206
  has_delivered: boolean;
1209
1207
  started_rendering_at_millis: number;
1210
1208
  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
  started_sending_at_millis: number;
1214
1214
  delivery_delayed_at_millis: number;
1215
1215
  } | {
1216
- status: "sent";
1217
1216
  id: string;
1217
+ status: "sent";
1218
1218
  subject: string;
1219
1219
  created_at_millis: number;
1220
- html: string | null;
1221
- text: string | null;
1222
1220
  notification_category_id: string | null;
1223
1221
  to: {
1224
- user_id: string;
1225
1222
  type: "user-primary-email";
1226
- } | {
1227
1223
  user_id: string;
1224
+ } | {
1228
1225
  type: "user-custom-emails";
1226
+ user_id: string;
1229
1227
  emails: string[];
1230
1228
  } | {
1231
1229
  type: "custom-emails";
@@ -1256,25 +1254,25 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1256
1254
  has_delivered: boolean;
1257
1255
  started_rendering_at_millis: number;
1258
1256
  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
  started_sending_at_millis: number;
1262
1262
  delivered_at_millis: number;
1263
1263
  can_have_delivery_info: boolean;
1264
1264
  } | {
1265
- status: "opened";
1266
1265
  id: string;
1266
+ status: "opened";
1267
1267
  subject: string;
1268
1268
  created_at_millis: number;
1269
- html: string | null;
1270
- text: string | null;
1271
1269
  notification_category_id: string | null;
1272
1270
  to: {
1273
- user_id: string;
1274
1271
  type: "user-primary-email";
1275
- } | {
1276
1272
  user_id: string;
1273
+ } | {
1277
1274
  type: "user-custom-emails";
1275
+ user_id: string;
1278
1276
  emails: string[];
1279
1277
  } | {
1280
1278
  type: "custom-emails";
@@ -1305,6 +1303,8 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1305
1303
  has_delivered: boolean;
1306
1304
  started_rendering_at_millis: number;
1307
1305
  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
  started_sending_at_millis: number;
@@ -1312,19 +1312,17 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1312
1312
  can_have_delivery_info: boolean;
1313
1313
  opened_at_millis: number;
1314
1314
  } | {
1315
- status: "clicked";
1316
1315
  id: string;
1316
+ status: "clicked";
1317
1317
  subject: string;
1318
1318
  created_at_millis: number;
1319
- html: string | null;
1320
- text: string | null;
1321
1319
  notification_category_id: string | null;
1322
1320
  to: {
1323
- user_id: string;
1324
1321
  type: "user-primary-email";
1325
- } | {
1326
1322
  user_id: string;
1323
+ } | {
1327
1324
  type: "user-custom-emails";
1325
+ user_id: string;
1328
1326
  emails: string[];
1329
1327
  } | {
1330
1328
  type: "custom-emails";
@@ -1355,6 +1353,8 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1355
1353
  has_delivered: boolean;
1356
1354
  started_rendering_at_millis: number;
1357
1355
  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
  started_sending_at_millis: number;
@@ -1362,19 +1362,17 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1362
1362
  can_have_delivery_info: boolean;
1363
1363
  clicked_at_millis: number;
1364
1364
  } | {
1365
- status: "marked-as-spam";
1366
1365
  id: string;
1366
+ status: "marked-as-spam";
1367
1367
  subject: string;
1368
1368
  created_at_millis: number;
1369
- html: string | null;
1370
- text: string | null;
1371
1369
  notification_category_id: string | null;
1372
1370
  to: {
1373
- user_id: string;
1374
1371
  type: "user-primary-email";
1375
- } | {
1376
1372
  user_id: string;
1373
+ } | {
1377
1374
  type: "user-custom-emails";
1375
+ user_id: string;
1378
1376
  emails: string[];
1379
1377
  } | {
1380
1378
  type: "custom-emails";
@@ -1405,6 +1403,8 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1405
1403
  has_delivered: boolean;
1406
1404
  started_rendering_at_millis: number;
1407
1405
  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
  started_sending_at_millis: number;
@@ -1416,11 +1416,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1416
1416
  tsx_source: string | undefined;
1417
1417
  theme_id: string | null | undefined;
1418
1418
  to: {
1419
- user_id: string;
1420
1419
  type: "user-primary-email";
1421
- } | {
1422
1420
  user_id: string;
1421
+ } | {
1423
1422
  type: "user-custom-emails";
1423
+ user_id: string;
1424
1424
  emails: string[];
1425
1425
  } | {
1426
1426
  type: "custom-emails";