@hexclave/shared 1.0.27 → 1.0.28

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