@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
@@ -4,20 +4,20 @@ import { CrudTypeOf } from "../../crud";
4
4
 
5
5
  //#region src/interface/crud/email-outbox.d.ts
6
6
  declare const emailOutboxReadSchema: yup$1.MixedSchema<{
7
- id: string;
8
7
  status: "paused";
9
- created_at_millis: number;
8
+ id: string;
10
9
  to: {
11
- type: "user-primary-email";
12
10
  user_id: string;
11
+ type: "user-primary-email";
13
12
  } | {
14
- type: "user-custom-emails";
15
13
  user_id: string;
14
+ type: "user-custom-emails";
16
15
  emails: string[];
17
16
  } | {
18
17
  type: "custom-emails";
19
18
  emails: string[];
20
19
  };
20
+ created_at_millis: number;
21
21
  updated_at_millis: number;
22
22
  tsx_source: string;
23
23
  theme_id: string | null;
@@ -42,20 +42,20 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
42
42
  has_rendered: boolean;
43
43
  has_delivered: boolean;
44
44
  } | {
45
- id: string;
46
45
  status: "preparing";
47
- created_at_millis: number;
46
+ id: string;
48
47
  to: {
49
- type: "user-primary-email";
50
48
  user_id: string;
49
+ type: "user-primary-email";
51
50
  } | {
52
- type: "user-custom-emails";
53
51
  user_id: string;
52
+ type: "user-custom-emails";
54
53
  emails: string[];
55
54
  } | {
56
55
  type: "custom-emails";
57
56
  emails: string[];
58
57
  };
58
+ created_at_millis: number;
59
59
  updated_at_millis: number;
60
60
  tsx_source: string;
61
61
  theme_id: string | null;
@@ -80,20 +80,20 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
80
80
  has_rendered: boolean;
81
81
  has_delivered: boolean;
82
82
  } | {
83
- id: string;
84
83
  status: "rendering";
85
- created_at_millis: number;
84
+ id: string;
86
85
  to: {
87
- type: "user-primary-email";
88
86
  user_id: string;
87
+ type: "user-primary-email";
89
88
  } | {
90
- type: "user-custom-emails";
91
89
  user_id: string;
90
+ type: "user-custom-emails";
92
91
  emails: string[];
93
92
  } | {
94
93
  type: "custom-emails";
95
94
  emails: string[];
96
95
  };
96
+ created_at_millis: number;
97
97
  updated_at_millis: number;
98
98
  tsx_source: string;
99
99
  theme_id: string | null;
@@ -119,20 +119,20 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
119
119
  has_delivered: boolean;
120
120
  started_rendering_at_millis: number;
121
121
  } | {
122
- id: string;
123
122
  status: "render-error";
124
- created_at_millis: number;
123
+ id: string;
125
124
  to: {
126
- type: "user-primary-email";
127
125
  user_id: string;
126
+ type: "user-primary-email";
128
127
  } | {
129
- type: "user-custom-emails";
130
128
  user_id: string;
129
+ type: "user-custom-emails";
131
130
  emails: string[];
132
131
  } | {
133
132
  type: "custom-emails";
134
133
  emails: string[];
135
134
  };
135
+ created_at_millis: number;
136
136
  updated_at_millis: number;
137
137
  tsx_source: string;
138
138
  theme_id: string | null;
@@ -160,23 +160,24 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
160
160
  rendered_at_millis: number;
161
161
  render_error: string;
162
162
  } | {
163
- id: string;
164
163
  status: "scheduled";
165
- subject: string;
166
- created_at_millis: number;
167
164
  html: string | null;
168
165
  text: string | null;
166
+ id: string;
167
+ subject: string;
169
168
  to: {
170
- type: "user-primary-email";
171
169
  user_id: string;
170
+ type: "user-primary-email";
172
171
  } | {
173
- type: "user-custom-emails";
174
172
  user_id: string;
173
+ type: "user-custom-emails";
175
174
  emails: string[];
176
175
  } | {
177
176
  type: "custom-emails";
178
177
  emails: string[];
179
178
  };
179
+ created_at_millis: number;
180
+ notification_category_id: string | null;
180
181
  updated_at_millis: number;
181
182
  tsx_source: string;
182
183
  theme_id: string | null;
@@ -204,25 +205,25 @@ 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
- id: string;
210
209
  status: "queued";
211
- subject: string;
212
- created_at_millis: number;
213
210
  html: string | null;
214
211
  text: string | null;
212
+ id: string;
213
+ subject: string;
215
214
  to: {
216
- type: "user-primary-email";
217
215
  user_id: string;
216
+ type: "user-primary-email";
218
217
  } | {
219
- type: "user-custom-emails";
220
218
  user_id: string;
219
+ type: "user-custom-emails";
221
220
  emails: string[];
222
221
  } | {
223
222
  type: "custom-emails";
224
223
  emails: string[];
225
224
  };
225
+ created_at_millis: number;
226
+ notification_category_id: string | null;
226
227
  updated_at_millis: number;
227
228
  tsx_source: string;
228
229
  theme_id: string | null;
@@ -250,25 +251,25 @@ 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
- id: string;
256
255
  status: "sending";
257
- subject: string;
258
- created_at_millis: number;
259
256
  html: string | null;
260
257
  text: string | null;
258
+ id: string;
259
+ subject: string;
261
260
  to: {
262
- type: "user-primary-email";
263
261
  user_id: string;
262
+ type: "user-primary-email";
264
263
  } | {
265
- type: "user-custom-emails";
266
264
  user_id: string;
265
+ type: "user-custom-emails";
267
266
  emails: string[];
268
267
  } | {
269
268
  type: "custom-emails";
270
269
  emails: string[];
271
270
  };
271
+ created_at_millis: number;
272
+ notification_category_id: string | null;
272
273
  updated_at_millis: number;
273
274
  tsx_source: string;
274
275
  theme_id: string | null;
@@ -296,26 +297,26 @@ 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
- id: string;
303
302
  status: "server-error";
304
- subject: string;
305
- created_at_millis: number;
306
303
  html: string | null;
307
304
  text: string | null;
305
+ id: string;
306
+ subject: string;
308
307
  to: {
309
- type: "user-primary-email";
310
308
  user_id: string;
309
+ type: "user-primary-email";
311
310
  } | {
312
- type: "user-custom-emails";
313
311
  user_id: string;
312
+ type: "user-custom-emails";
314
313
  emails: string[];
315
314
  } | {
316
315
  type: "custom-emails";
317
316
  emails: string[];
318
317
  };
318
+ created_at_millis: number;
319
+ notification_category_id: string | null;
319
320
  updated_at_millis: number;
320
321
  tsx_source: string;
321
322
  theme_id: string | null;
@@ -343,34 +344,33 @@ 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;
350
350
  } | {
351
- subject?: string | undefined;
352
351
  html?: string | null | undefined;
353
352
  text?: string | null | undefined;
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
- id: string;
361
360
  status: "skipped";
362
- created_at_millis: number;
361
+ id: string;
363
362
  to: {
364
- type: "user-primary-email";
365
363
  user_id: string;
364
+ type: "user-primary-email";
366
365
  } | {
367
- type: "user-custom-emails";
368
366
  user_id: string;
367
+ type: "user-custom-emails";
369
368
  emails: string[];
370
369
  } | {
371
370
  type: "custom-emails";
372
371
  emails: string[];
373
372
  };
373
+ created_at_millis: number;
374
374
  updated_at_millis: number;
375
375
  tsx_source: string;
376
376
  theme_id: string | null;
@@ -398,23 +398,24 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
398
398
  skipped_reason: string;
399
399
  skipped_details: Record<string, {} | null>;
400
400
  } | {
401
- id: string;
402
401
  status: "bounced";
403
- subject: string;
404
- created_at_millis: number;
405
402
  html: string | null;
406
403
  text: string | null;
404
+ id: string;
405
+ subject: string;
407
406
  to: {
408
- type: "user-primary-email";
409
407
  user_id: string;
408
+ type: "user-primary-email";
410
409
  } | {
411
- type: "user-custom-emails";
412
410
  user_id: string;
411
+ type: "user-custom-emails";
413
412
  emails: string[];
414
413
  } | {
415
414
  type: "custom-emails";
416
415
  emails: string[];
417
416
  };
417
+ created_at_millis: number;
418
+ notification_category_id: string | null;
418
419
  updated_at_millis: number;
419
420
  tsx_source: string;
420
421
  theme_id: string | null;
@@ -442,27 +443,27 @@ 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
- id: string;
450
449
  status: "delivery-delayed";
451
- subject: string;
452
- created_at_millis: number;
453
450
  html: string | null;
454
451
  text: string | null;
452
+ id: string;
453
+ subject: string;
455
454
  to: {
456
- type: "user-primary-email";
457
455
  user_id: string;
456
+ type: "user-primary-email";
458
457
  } | {
459
- type: "user-custom-emails";
460
458
  user_id: string;
459
+ type: "user-custom-emails";
461
460
  emails: string[];
462
461
  } | {
463
462
  type: "custom-emails";
464
463
  emails: string[];
465
464
  };
465
+ created_at_millis: number;
466
+ notification_category_id: string | null;
466
467
  updated_at_millis: number;
467
468
  tsx_source: string;
468
469
  theme_id: string | null;
@@ -490,27 +491,27 @@ 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
- id: string;
498
497
  status: "sent";
499
- subject: string;
500
- created_at_millis: number;
501
498
  html: string | null;
502
499
  text: string | null;
500
+ id: string;
501
+ subject: string;
503
502
  to: {
504
- type: "user-primary-email";
505
503
  user_id: string;
504
+ type: "user-primary-email";
506
505
  } | {
507
- type: "user-custom-emails";
508
506
  user_id: string;
507
+ type: "user-custom-emails";
509
508
  emails: string[];
510
509
  } | {
511
510
  type: "custom-emails";
512
511
  emails: string[];
513
512
  };
513
+ created_at_millis: number;
514
+ notification_category_id: string | null;
514
515
  updated_at_millis: number;
515
516
  tsx_source: string;
516
517
  theme_id: string | null;
@@ -538,28 +539,28 @@ 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
- id: string;
547
546
  status: "opened";
548
- subject: string;
549
- created_at_millis: number;
550
547
  html: string | null;
551
548
  text: string | null;
549
+ id: string;
550
+ subject: string;
552
551
  to: {
553
- type: "user-primary-email";
554
552
  user_id: string;
553
+ type: "user-primary-email";
555
554
  } | {
556
- type: "user-custom-emails";
557
555
  user_id: string;
556
+ type: "user-custom-emails";
558
557
  emails: string[];
559
558
  } | {
560
559
  type: "custom-emails";
561
560
  emails: string[];
562
561
  };
562
+ created_at_millis: number;
563
+ notification_category_id: string | null;
563
564
  updated_at_millis: number;
564
565
  tsx_source: string;
565
566
  theme_id: string | null;
@@ -587,29 +588,29 @@ 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
- id: string;
597
596
  status: "clicked";
598
- subject: string;
599
- created_at_millis: number;
600
597
  html: string | null;
601
598
  text: string | null;
599
+ id: string;
600
+ subject: string;
602
601
  to: {
603
- type: "user-primary-email";
604
602
  user_id: string;
603
+ type: "user-primary-email";
605
604
  } | {
606
- type: "user-custom-emails";
607
605
  user_id: string;
606
+ type: "user-custom-emails";
608
607
  emails: string[];
609
608
  } | {
610
609
  type: "custom-emails";
611
610
  emails: string[];
612
611
  };
612
+ created_at_millis: number;
613
+ notification_category_id: string | null;
613
614
  updated_at_millis: number;
614
615
  tsx_source: string;
615
616
  theme_id: string | null;
@@ -637,29 +638,29 @@ 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
- id: string;
647
646
  status: "marked-as-spam";
648
- subject: string;
649
- created_at_millis: number;
650
647
  html: string | null;
651
648
  text: string | null;
649
+ id: string;
650
+ subject: string;
652
651
  to: {
653
- type: "user-primary-email";
654
652
  user_id: string;
653
+ type: "user-primary-email";
655
654
  } | {
656
- type: "user-custom-emails";
657
655
  user_id: string;
656
+ type: "user-custom-emails";
658
657
  emails: string[];
659
658
  } | {
660
659
  type: "custom-emails";
661
660
  emails: string[];
662
661
  };
662
+ created_at_millis: number;
663
+ notification_category_id: string | null;
663
664
  updated_at_millis: number;
664
665
  tsx_source: string;
665
666
  theme_id: string | null;
@@ -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
- type: "user-primary-email";
701
700
  user_id: string;
701
+ type: "user-primary-email";
702
702
  } | {
703
- type: "user-custom-emails";
704
703
  user_id: string;
704
+ type: "user-custom-emails";
705
705
  emails: string[];
706
706
  } | {
707
707
  type: "custom-emails";
@@ -724,20 +724,20 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
724
724
  }, "">;
725
725
  declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
726
726
  serverReadSchema: yup$1.MixedSchema<{
727
- id: string;
728
727
  status: "paused";
729
- created_at_millis: number;
728
+ id: string;
730
729
  to: {
731
- type: "user-primary-email";
732
730
  user_id: string;
731
+ type: "user-primary-email";
733
732
  } | {
734
- type: "user-custom-emails";
735
733
  user_id: string;
734
+ type: "user-custom-emails";
736
735
  emails: string[];
737
736
  } | {
738
737
  type: "custom-emails";
739
738
  emails: string[];
740
739
  };
740
+ created_at_millis: number;
741
741
  updated_at_millis: number;
742
742
  tsx_source: string;
743
743
  theme_id: string | null;
@@ -762,20 +762,20 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
762
762
  has_rendered: boolean;
763
763
  has_delivered: boolean;
764
764
  } | {
765
- id: string;
766
765
  status: "preparing";
767
- created_at_millis: number;
766
+ id: string;
768
767
  to: {
769
- type: "user-primary-email";
770
768
  user_id: string;
769
+ type: "user-primary-email";
771
770
  } | {
772
- type: "user-custom-emails";
773
771
  user_id: string;
772
+ type: "user-custom-emails";
774
773
  emails: string[];
775
774
  } | {
776
775
  type: "custom-emails";
777
776
  emails: string[];
778
777
  };
778
+ created_at_millis: number;
779
779
  updated_at_millis: number;
780
780
  tsx_source: string;
781
781
  theme_id: string | null;
@@ -800,20 +800,20 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
800
800
  has_rendered: boolean;
801
801
  has_delivered: boolean;
802
802
  } | {
803
- id: string;
804
803
  status: "rendering";
805
- created_at_millis: number;
804
+ id: string;
806
805
  to: {
807
- type: "user-primary-email";
808
806
  user_id: string;
807
+ type: "user-primary-email";
809
808
  } | {
810
- type: "user-custom-emails";
811
809
  user_id: string;
810
+ type: "user-custom-emails";
812
811
  emails: string[];
813
812
  } | {
814
813
  type: "custom-emails";
815
814
  emails: string[];
816
815
  };
816
+ created_at_millis: number;
817
817
  updated_at_millis: number;
818
818
  tsx_source: string;
819
819
  theme_id: string | null;
@@ -839,20 +839,20 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
839
839
  has_delivered: boolean;
840
840
  started_rendering_at_millis: number;
841
841
  } | {
842
- id: string;
843
842
  status: "render-error";
844
- created_at_millis: number;
843
+ id: string;
845
844
  to: {
846
- type: "user-primary-email";
847
845
  user_id: string;
846
+ type: "user-primary-email";
848
847
  } | {
849
- type: "user-custom-emails";
850
848
  user_id: string;
849
+ type: "user-custom-emails";
851
850
  emails: string[];
852
851
  } | {
853
852
  type: "custom-emails";
854
853
  emails: string[];
855
854
  };
855
+ created_at_millis: number;
856
856
  updated_at_millis: number;
857
857
  tsx_source: string;
858
858
  theme_id: string | null;
@@ -880,23 +880,24 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
880
880
  rendered_at_millis: number;
881
881
  render_error: string;
882
882
  } | {
883
- id: string;
884
883
  status: "scheduled";
885
- subject: string;
886
- created_at_millis: number;
887
884
  html: string | null;
888
885
  text: string | null;
886
+ id: string;
887
+ subject: string;
889
888
  to: {
890
- type: "user-primary-email";
891
889
  user_id: string;
890
+ type: "user-primary-email";
892
891
  } | {
893
- type: "user-custom-emails";
894
892
  user_id: string;
893
+ type: "user-custom-emails";
895
894
  emails: string[];
896
895
  } | {
897
896
  type: "custom-emails";
898
897
  emails: string[];
899
898
  };
899
+ created_at_millis: number;
900
+ notification_category_id: string | null;
900
901
  updated_at_millis: number;
901
902
  tsx_source: string;
902
903
  theme_id: string | null;
@@ -924,25 +925,25 @@ 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
- id: string;
930
929
  status: "queued";
931
- subject: string;
932
- created_at_millis: number;
933
930
  html: string | null;
934
931
  text: string | null;
932
+ id: string;
933
+ subject: string;
935
934
  to: {
936
- type: "user-primary-email";
937
935
  user_id: string;
936
+ type: "user-primary-email";
938
937
  } | {
939
- type: "user-custom-emails";
940
938
  user_id: string;
939
+ type: "user-custom-emails";
941
940
  emails: string[];
942
941
  } | {
943
942
  type: "custom-emails";
944
943
  emails: string[];
945
944
  };
945
+ created_at_millis: number;
946
+ notification_category_id: string | null;
946
947
  updated_at_millis: number;
947
948
  tsx_source: string;
948
949
  theme_id: string | null;
@@ -970,25 +971,25 @@ 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
- id: string;
976
975
  status: "sending";
977
- subject: string;
978
- created_at_millis: number;
979
976
  html: string | null;
980
977
  text: string | null;
978
+ id: string;
979
+ subject: string;
981
980
  to: {
982
- type: "user-primary-email";
983
981
  user_id: string;
982
+ type: "user-primary-email";
984
983
  } | {
985
- type: "user-custom-emails";
986
984
  user_id: string;
985
+ type: "user-custom-emails";
987
986
  emails: string[];
988
987
  } | {
989
988
  type: "custom-emails";
990
989
  emails: string[];
991
990
  };
991
+ created_at_millis: number;
992
+ notification_category_id: string | null;
992
993
  updated_at_millis: number;
993
994
  tsx_source: string;
994
995
  theme_id: string | null;
@@ -1016,26 +1017,26 @@ 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
- id: string;
1023
1022
  status: "server-error";
1024
- subject: string;
1025
- created_at_millis: number;
1026
1023
  html: string | null;
1027
1024
  text: string | null;
1025
+ id: string;
1026
+ subject: string;
1028
1027
  to: {
1029
- type: "user-primary-email";
1030
1028
  user_id: string;
1029
+ type: "user-primary-email";
1031
1030
  } | {
1032
- type: "user-custom-emails";
1033
1031
  user_id: string;
1032
+ type: "user-custom-emails";
1034
1033
  emails: string[];
1035
1034
  } | {
1036
1035
  type: "custom-emails";
1037
1036
  emails: string[];
1038
1037
  };
1038
+ created_at_millis: number;
1039
+ notification_category_id: string | null;
1039
1040
  updated_at_millis: number;
1040
1041
  tsx_source: string;
1041
1042
  theme_id: string | null;
@@ -1063,34 +1064,33 @@ 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;
1070
1070
  } | {
1071
- subject?: string | undefined;
1072
1071
  html?: string | null | undefined;
1073
1072
  text?: string | null | undefined;
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
- id: string;
1081
1080
  status: "skipped";
1082
- created_at_millis: number;
1081
+ id: string;
1083
1082
  to: {
1084
- type: "user-primary-email";
1085
1083
  user_id: string;
1084
+ type: "user-primary-email";
1086
1085
  } | {
1087
- type: "user-custom-emails";
1088
1086
  user_id: string;
1087
+ type: "user-custom-emails";
1089
1088
  emails: string[];
1090
1089
  } | {
1091
1090
  type: "custom-emails";
1092
1091
  emails: string[];
1093
1092
  };
1093
+ created_at_millis: number;
1094
1094
  updated_at_millis: number;
1095
1095
  tsx_source: string;
1096
1096
  theme_id: string | null;
@@ -1118,23 +1118,24 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1118
1118
  skipped_reason: string;
1119
1119
  skipped_details: Record<string, {} | null>;
1120
1120
  } | {
1121
- id: string;
1122
1121
  status: "bounced";
1123
- subject: string;
1124
- created_at_millis: number;
1125
1122
  html: string | null;
1126
1123
  text: string | null;
1124
+ id: string;
1125
+ subject: string;
1127
1126
  to: {
1128
- type: "user-primary-email";
1129
1127
  user_id: string;
1128
+ type: "user-primary-email";
1130
1129
  } | {
1131
- type: "user-custom-emails";
1132
1130
  user_id: string;
1131
+ type: "user-custom-emails";
1133
1132
  emails: string[];
1134
1133
  } | {
1135
1134
  type: "custom-emails";
1136
1135
  emails: string[];
1137
1136
  };
1137
+ created_at_millis: number;
1138
+ notification_category_id: string | null;
1138
1139
  updated_at_millis: number;
1139
1140
  tsx_source: string;
1140
1141
  theme_id: string | null;
@@ -1162,27 +1163,27 @@ 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
- id: string;
1170
1169
  status: "delivery-delayed";
1171
- subject: string;
1172
- created_at_millis: number;
1173
1170
  html: string | null;
1174
1171
  text: string | null;
1172
+ id: string;
1173
+ subject: string;
1175
1174
  to: {
1176
- type: "user-primary-email";
1177
1175
  user_id: string;
1176
+ type: "user-primary-email";
1178
1177
  } | {
1179
- type: "user-custom-emails";
1180
1178
  user_id: string;
1179
+ type: "user-custom-emails";
1181
1180
  emails: string[];
1182
1181
  } | {
1183
1182
  type: "custom-emails";
1184
1183
  emails: string[];
1185
1184
  };
1185
+ created_at_millis: number;
1186
+ notification_category_id: string | null;
1186
1187
  updated_at_millis: number;
1187
1188
  tsx_source: string;
1188
1189
  theme_id: string | null;
@@ -1210,27 +1211,27 @@ 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
- id: string;
1218
1217
  status: "sent";
1219
- subject: string;
1220
- created_at_millis: number;
1221
1218
  html: string | null;
1222
1219
  text: string | null;
1220
+ id: string;
1221
+ subject: string;
1223
1222
  to: {
1224
- type: "user-primary-email";
1225
1223
  user_id: string;
1224
+ type: "user-primary-email";
1226
1225
  } | {
1227
- type: "user-custom-emails";
1228
1226
  user_id: string;
1227
+ type: "user-custom-emails";
1229
1228
  emails: string[];
1230
1229
  } | {
1231
1230
  type: "custom-emails";
1232
1231
  emails: string[];
1233
1232
  };
1233
+ created_at_millis: number;
1234
+ notification_category_id: string | null;
1234
1235
  updated_at_millis: number;
1235
1236
  tsx_source: string;
1236
1237
  theme_id: string | null;
@@ -1258,28 +1259,28 @@ 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
- id: string;
1267
1266
  status: "opened";
1268
- subject: string;
1269
- created_at_millis: number;
1270
1267
  html: string | null;
1271
1268
  text: string | null;
1269
+ id: string;
1270
+ subject: string;
1272
1271
  to: {
1273
- type: "user-primary-email";
1274
1272
  user_id: string;
1273
+ type: "user-primary-email";
1275
1274
  } | {
1276
- type: "user-custom-emails";
1277
1275
  user_id: string;
1276
+ type: "user-custom-emails";
1278
1277
  emails: string[];
1279
1278
  } | {
1280
1279
  type: "custom-emails";
1281
1280
  emails: string[];
1282
1281
  };
1282
+ created_at_millis: number;
1283
+ notification_category_id: string | null;
1283
1284
  updated_at_millis: number;
1284
1285
  tsx_source: string;
1285
1286
  theme_id: string | null;
@@ -1307,29 +1308,29 @@ 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
- id: string;
1317
1316
  status: "clicked";
1318
- subject: string;
1319
- created_at_millis: number;
1320
1317
  html: string | null;
1321
1318
  text: string | null;
1319
+ id: string;
1320
+ subject: string;
1322
1321
  to: {
1323
- type: "user-primary-email";
1324
1322
  user_id: string;
1323
+ type: "user-primary-email";
1325
1324
  } | {
1326
- type: "user-custom-emails";
1327
1325
  user_id: string;
1326
+ type: "user-custom-emails";
1328
1327
  emails: string[];
1329
1328
  } | {
1330
1329
  type: "custom-emails";
1331
1330
  emails: string[];
1332
1331
  };
1332
+ created_at_millis: number;
1333
+ notification_category_id: string | null;
1333
1334
  updated_at_millis: number;
1334
1335
  tsx_source: string;
1335
1336
  theme_id: string | null;
@@ -1357,29 +1358,29 @@ 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
- id: string;
1367
1366
  status: "marked-as-spam";
1368
- subject: string;
1369
- created_at_millis: number;
1370
1367
  html: string | null;
1371
1368
  text: string | null;
1369
+ id: string;
1370
+ subject: string;
1372
1371
  to: {
1373
- type: "user-primary-email";
1374
1372
  user_id: string;
1373
+ type: "user-primary-email";
1375
1374
  } | {
1376
- type: "user-custom-emails";
1377
1375
  user_id: string;
1376
+ type: "user-custom-emails";
1378
1377
  emails: string[];
1379
1378
  } | {
1380
1379
  type: "custom-emails";
1381
1380
  emails: string[];
1382
1381
  };
1382
+ created_at_millis: number;
1383
+ notification_category_id: string | null;
1383
1384
  updated_at_millis: number;
1384
1385
  tsx_source: string;
1385
1386
  theme_id: string | null;
@@ -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
- type: "user-primary-email";
1421
1420
  user_id: string;
1421
+ type: "user-primary-email";
1422
1422
  } | {
1423
- type: "user-custom-emails";
1424
1423
  user_id: string;
1424
+ type: "user-custom-emails";
1425
1425
  emails: string[];
1426
1426
  } | {
1427
1427
  type: "custom-emails";