@hexclave/shared 1.0.26 → 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 (43) hide show
  1. package/dist/config/schema.d.ts +154 -154
  2. package/dist/esm/config/schema.d.ts +154 -154
  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 +3 -3
  8. package/dist/esm/interface/client-interface.js +1 -1
  9. package/dist/esm/interface/conversations.d.ts +5 -5
  10. package/dist/esm/interface/crud/current-user.d.ts +7 -7
  11. package/dist/esm/interface/crud/email-outbox.d.ts +184 -184
  12. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  13. package/dist/esm/interface/crud/projects.d.ts +43 -43
  14. package/dist/esm/interface/crud/team-member-profiles.d.ts +12 -12
  15. package/dist/esm/interface/crud/users.d.ts +10 -10
  16. package/dist/esm/interface/server-interface.js +1 -1
  17. package/dist/esm/interface/webhooks.d.ts +2 -2
  18. package/dist/esm/sessions.d.ts +1 -1
  19. package/dist/esm/utils/passkey.d.ts +1 -1
  20. package/dist/esm/utils/promises.js +1 -1
  21. package/dist/hooks/use-async-callback.js +1 -1
  22. package/dist/hooks/use-async-external-store.js +1 -1
  23. package/dist/hooks/use-strict-memo.js +1 -1
  24. package/dist/interface/admin-interface.js +1 -1
  25. package/dist/interface/admin-metrics.d.ts +3 -3
  26. package/dist/interface/client-interface.d.ts +1 -1
  27. package/dist/interface/client-interface.js +1 -1
  28. package/dist/interface/conversations.d.ts +5 -5
  29. package/dist/interface/crud/current-user.d.ts +7 -7
  30. package/dist/interface/crud/email-outbox.d.ts +184 -184
  31. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  32. package/dist/interface/crud/projects.d.ts +43 -43
  33. package/dist/interface/crud/team-member-profiles.d.ts +12 -12
  34. package/dist/interface/crud/users.d.ts +10 -10
  35. package/dist/interface/server-interface.js +1 -1
  36. package/dist/interface/webhooks.d.ts +2 -2
  37. package/dist/sessions.d.ts +1 -1
  38. package/dist/utils/passkey.d.ts +1 -1
  39. package/dist/utils/promises.js +1 -1
  40. package/package.json +3 -7
  41. package/src/utils/passkey.tsx +1 -1
  42. package/dist/index-nCRuFJTF.d.ts +0 -153
  43. package/dist/index-nCRuFJTF.d.ts.map +0 -1
@@ -5,10 +5,6 @@ import * as yup$1 from "yup";
5
5
  declare const emailOutboxReadSchema: yup$1.MixedSchema<{
6
6
  status: "paused";
7
7
  id: string;
8
- created_at_millis: number;
9
- updated_at_millis: number;
10
- tsx_source: string;
11
- theme_id: string | null;
12
8
  to: {
13
9
  user_id: string;
14
10
  type: "user-primary-email";
@@ -20,6 +16,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
20
16
  type: "custom-emails";
21
17
  emails: string[];
22
18
  };
19
+ created_at_millis: number;
20
+ updated_at_millis: number;
21
+ tsx_source: string;
22
+ theme_id: string | null;
23
23
  variables: Record<string, {} | null>;
24
24
  skip_deliverability_check: boolean;
25
25
  scheduled_at_millis: number;
@@ -43,10 +43,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
43
43
  } | {
44
44
  status: "preparing";
45
45
  id: string;
46
- created_at_millis: number;
47
- updated_at_millis: number;
48
- tsx_source: string;
49
- theme_id: string | null;
50
46
  to: {
51
47
  user_id: string;
52
48
  type: "user-primary-email";
@@ -58,6 +54,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
58
54
  type: "custom-emails";
59
55
  emails: string[];
60
56
  };
57
+ created_at_millis: number;
58
+ updated_at_millis: number;
59
+ tsx_source: string;
60
+ theme_id: string | null;
61
61
  variables: Record<string, {} | null>;
62
62
  skip_deliverability_check: boolean;
63
63
  scheduled_at_millis: number;
@@ -81,10 +81,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
81
81
  } | {
82
82
  status: "rendering";
83
83
  id: string;
84
- created_at_millis: number;
85
- updated_at_millis: number;
86
- tsx_source: string;
87
- theme_id: string | null;
88
84
  to: {
89
85
  user_id: string;
90
86
  type: "user-primary-email";
@@ -96,6 +92,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
96
92
  type: "custom-emails";
97
93
  emails: string[];
98
94
  };
95
+ created_at_millis: number;
96
+ updated_at_millis: number;
97
+ tsx_source: string;
98
+ theme_id: string | null;
99
99
  variables: Record<string, {} | null>;
100
100
  skip_deliverability_check: boolean;
101
101
  scheduled_at_millis: number;
@@ -120,10 +120,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
120
120
  } | {
121
121
  status: "render-error";
122
122
  id: string;
123
- created_at_millis: number;
124
- updated_at_millis: number;
125
- tsx_source: string;
126
- theme_id: string | null;
127
123
  to: {
128
124
  user_id: string;
129
125
  type: "user-primary-email";
@@ -135,6 +131,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
135
131
  type: "custom-emails";
136
132
  emails: string[];
137
133
  };
134
+ created_at_millis: number;
135
+ updated_at_millis: number;
136
+ tsx_source: string;
137
+ theme_id: string | null;
138
138
  variables: Record<string, {} | null>;
139
139
  skip_deliverability_check: boolean;
140
140
  scheduled_at_millis: number;
@@ -160,13 +160,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
160
160
  render_error: string;
161
161
  } | {
162
162
  status: "scheduled";
163
- id: string;
164
163
  html: string | null;
165
164
  text: string | null;
166
- created_at_millis: number;
167
- updated_at_millis: number;
168
- tsx_source: string;
169
- theme_id: string | null;
165
+ id: string;
166
+ subject: string;
170
167
  to: {
171
168
  user_id: string;
172
169
  type: "user-primary-email";
@@ -178,6 +175,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
178
175
  type: "custom-emails";
179
176
  emails: string[];
180
177
  };
178
+ created_at_millis: number;
179
+ notification_category_id: string | null;
180
+ updated_at_millis: number;
181
+ tsx_source: string;
182
+ theme_id: string | null;
181
183
  variables: Record<string, {} | null>;
182
184
  skip_deliverability_check: boolean;
183
185
  scheduled_at_millis: number;
@@ -200,19 +202,14 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
200
202
  has_delivered: boolean;
201
203
  started_rendering_at_millis: number;
202
204
  rendered_at_millis: number;
203
- subject: string;
204
205
  is_transactional: boolean;
205
206
  is_high_priority: boolean;
206
- notification_category_id: string | null;
207
207
  } | {
208
208
  status: "queued";
209
- id: string;
210
209
  html: string | null;
211
210
  text: string | null;
212
- created_at_millis: number;
213
- updated_at_millis: number;
214
- tsx_source: string;
215
- theme_id: string | null;
211
+ id: string;
212
+ subject: string;
216
213
  to: {
217
214
  user_id: string;
218
215
  type: "user-primary-email";
@@ -224,6 +221,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
224
221
  type: "custom-emails";
225
222
  emails: string[];
226
223
  };
224
+ created_at_millis: number;
225
+ notification_category_id: string | null;
226
+ updated_at_millis: number;
227
+ tsx_source: string;
228
+ theme_id: string | null;
227
229
  variables: Record<string, {} | null>;
228
230
  skip_deliverability_check: boolean;
229
231
  scheduled_at_millis: number;
@@ -246,19 +248,14 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
246
248
  has_delivered: boolean;
247
249
  started_rendering_at_millis: number;
248
250
  rendered_at_millis: number;
249
- subject: string;
250
251
  is_transactional: boolean;
251
252
  is_high_priority: boolean;
252
- notification_category_id: string | null;
253
253
  } | {
254
254
  status: "sending";
255
- id: string;
256
255
  html: string | null;
257
256
  text: string | null;
258
- created_at_millis: number;
259
- updated_at_millis: number;
260
- tsx_source: string;
261
- theme_id: string | null;
257
+ id: string;
258
+ subject: string;
262
259
  to: {
263
260
  user_id: string;
264
261
  type: "user-primary-email";
@@ -270,6 +267,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
270
267
  type: "custom-emails";
271
268
  emails: string[];
272
269
  };
270
+ created_at_millis: number;
271
+ notification_category_id: string | null;
272
+ updated_at_millis: number;
273
+ tsx_source: string;
274
+ theme_id: string | null;
273
275
  variables: Record<string, {} | null>;
274
276
  skip_deliverability_check: boolean;
275
277
  scheduled_at_millis: number;
@@ -292,20 +294,15 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
292
294
  has_delivered: boolean;
293
295
  started_rendering_at_millis: number;
294
296
  rendered_at_millis: number;
295
- subject: string;
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
301
  status: "server-error";
302
- id: string;
303
302
  html: string | null;
304
303
  text: string | null;
305
- created_at_millis: number;
306
- updated_at_millis: number;
307
- tsx_source: string;
308
- theme_id: string | null;
304
+ id: string;
305
+ subject: string;
309
306
  to: {
310
307
  user_id: string;
311
308
  type: "user-primary-email";
@@ -317,6 +314,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
317
314
  type: "custom-emails";
318
315
  emails: string[];
319
316
  };
317
+ created_at_millis: number;
318
+ notification_category_id: string | null;
319
+ updated_at_millis: number;
320
+ tsx_source: string;
321
+ theme_id: string | null;
320
322
  variables: Record<string, {} | null>;
321
323
  skip_deliverability_check: boolean;
322
324
  scheduled_at_millis: number;
@@ -339,29 +341,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
339
341
  has_delivered: boolean;
340
342
  started_rendering_at_millis: number;
341
343
  rendered_at_millis: number;
342
- subject: string;
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
350
  html?: string | null | undefined;
351
351
  text?: string | null | undefined;
352
+ subject?: string | undefined;
353
+ notification_category_id?: string | null | undefined;
352
354
  started_rendering_at_millis?: number | undefined;
353
355
  rendered_at_millis?: number | undefined;
354
- subject?: string | 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
359
  status: "skipped";
360
360
  id: string;
361
- created_at_millis: number;
362
- updated_at_millis: number;
363
- tsx_source: string;
364
- theme_id: string | null;
365
361
  to: {
366
362
  user_id: string;
367
363
  type: "user-primary-email";
@@ -373,6 +369,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
373
369
  type: "custom-emails";
374
370
  emails: string[];
375
371
  };
372
+ created_at_millis: number;
373
+ updated_at_millis: number;
374
+ tsx_source: string;
375
+ theme_id: string | null;
376
376
  variables: Record<string, {} | null>;
377
377
  skip_deliverability_check: boolean;
378
378
  scheduled_at_millis: number;
@@ -398,13 +398,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
398
398
  skipped_details: Record<string, {} | null>;
399
399
  } | {
400
400
  status: "bounced";
401
- id: string;
402
401
  html: string | null;
403
402
  text: string | null;
404
- created_at_millis: number;
405
- updated_at_millis: number;
406
- tsx_source: string;
407
- theme_id: string | null;
403
+ id: string;
404
+ subject: string;
408
405
  to: {
409
406
  user_id: string;
410
407
  type: "user-primary-email";
@@ -416,6 +413,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
416
413
  type: "custom-emails";
417
414
  emails: string[];
418
415
  };
416
+ created_at_millis: number;
417
+ notification_category_id: string | null;
418
+ updated_at_millis: number;
419
+ tsx_source: string;
420
+ theme_id: string | null;
419
421
  variables: Record<string, {} | null>;
420
422
  skip_deliverability_check: boolean;
421
423
  scheduled_at_millis: number;
@@ -438,21 +440,16 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
438
440
  has_delivered: boolean;
439
441
  started_rendering_at_millis: number;
440
442
  rendered_at_millis: number;
441
- subject: string;
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
448
  status: "delivery-delayed";
449
- id: string;
450
449
  html: string | null;
451
450
  text: string | null;
452
- created_at_millis: number;
453
- updated_at_millis: number;
454
- tsx_source: string;
455
- theme_id: string | null;
451
+ id: string;
452
+ subject: string;
456
453
  to: {
457
454
  user_id: string;
458
455
  type: "user-primary-email";
@@ -464,6 +461,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
464
461
  type: "custom-emails";
465
462
  emails: string[];
466
463
  };
464
+ created_at_millis: number;
465
+ notification_category_id: string | null;
466
+ updated_at_millis: number;
467
+ tsx_source: string;
468
+ theme_id: string | null;
467
469
  variables: Record<string, {} | null>;
468
470
  skip_deliverability_check: boolean;
469
471
  scheduled_at_millis: number;
@@ -486,21 +488,16 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
486
488
  has_delivered: boolean;
487
489
  started_rendering_at_millis: number;
488
490
  rendered_at_millis: number;
489
- subject: string;
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
496
  status: "sent";
497
- id: string;
498
497
  html: string | null;
499
498
  text: string | null;
500
- created_at_millis: number;
501
- updated_at_millis: number;
502
- tsx_source: string;
503
- theme_id: string | null;
499
+ id: string;
500
+ subject: string;
504
501
  to: {
505
502
  user_id: string;
506
503
  type: "user-primary-email";
@@ -512,6 +509,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
512
509
  type: "custom-emails";
513
510
  emails: string[];
514
511
  };
512
+ created_at_millis: number;
513
+ notification_category_id: string | null;
514
+ updated_at_millis: number;
515
+ tsx_source: string;
516
+ theme_id: string | null;
515
517
  variables: Record<string, {} | null>;
516
518
  skip_deliverability_check: boolean;
517
519
  scheduled_at_millis: number;
@@ -534,22 +536,17 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
534
536
  has_delivered: boolean;
535
537
  started_rendering_at_millis: number;
536
538
  rendered_at_millis: number;
537
- subject: string;
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
545
  status: "opened";
546
- id: string;
547
546
  html: string | null;
548
547
  text: string | null;
549
- created_at_millis: number;
550
- updated_at_millis: number;
551
- tsx_source: string;
552
- theme_id: string | null;
548
+ id: string;
549
+ subject: string;
553
550
  to: {
554
551
  user_id: string;
555
552
  type: "user-primary-email";
@@ -561,6 +558,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
561
558
  type: "custom-emails";
562
559
  emails: string[];
563
560
  };
561
+ created_at_millis: number;
562
+ notification_category_id: string | null;
563
+ updated_at_millis: number;
564
+ tsx_source: string;
565
+ theme_id: string | null;
564
566
  variables: Record<string, {} | null>;
565
567
  skip_deliverability_check: boolean;
566
568
  scheduled_at_millis: number;
@@ -583,23 +585,18 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
583
585
  has_delivered: boolean;
584
586
  started_rendering_at_millis: number;
585
587
  rendered_at_millis: number;
586
- subject: string;
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
595
  status: "clicked";
596
- id: string;
597
596
  html: string | null;
598
597
  text: string | null;
599
- created_at_millis: number;
600
- updated_at_millis: number;
601
- tsx_source: string;
602
- theme_id: string | null;
598
+ id: string;
599
+ subject: string;
603
600
  to: {
604
601
  user_id: string;
605
602
  type: "user-primary-email";
@@ -611,6 +608,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
611
608
  type: "custom-emails";
612
609
  emails: string[];
613
610
  };
611
+ created_at_millis: number;
612
+ notification_category_id: string | null;
613
+ updated_at_millis: number;
614
+ tsx_source: string;
615
+ theme_id: string | null;
614
616
  variables: Record<string, {} | null>;
615
617
  skip_deliverability_check: boolean;
616
618
  scheduled_at_millis: number;
@@ -633,23 +635,18 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
633
635
  has_delivered: boolean;
634
636
  started_rendering_at_millis: number;
635
637
  rendered_at_millis: number;
636
- subject: string;
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
645
  status: "marked-as-spam";
646
- id: string;
647
646
  html: string | null;
648
647
  text: string | null;
649
- created_at_millis: number;
650
- updated_at_millis: number;
651
- tsx_source: string;
652
- theme_id: string | null;
648
+ id: string;
649
+ subject: string;
653
650
  to: {
654
651
  user_id: string;
655
652
  type: "user-primary-email";
@@ -661,6 +658,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
661
658
  type: "custom-emails";
662
659
  emails: string[];
663
660
  };
661
+ created_at_millis: number;
662
+ notification_category_id: string | null;
663
+ updated_at_millis: number;
664
+ tsx_source: string;
665
+ theme_id: string | null;
664
666
  variables: Record<string, {} | null>;
665
667
  skip_deliverability_check: boolean;
666
668
  scheduled_at_millis: number;
@@ -683,10 +685,8 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
683
685
  has_delivered: boolean;
684
686
  started_rendering_at_millis: number;
685
687
  rendered_at_millis: number;
686
- subject: string;
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;
@@ -725,10 +725,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
725
725
  serverReadSchema: yup$1.MixedSchema<{
726
726
  status: "paused";
727
727
  id: string;
728
- created_at_millis: number;
729
- updated_at_millis: number;
730
- tsx_source: string;
731
- theme_id: string | null;
732
728
  to: {
733
729
  user_id: string;
734
730
  type: "user-primary-email";
@@ -740,6 +736,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
740
736
  type: "custom-emails";
741
737
  emails: string[];
742
738
  };
739
+ created_at_millis: number;
740
+ updated_at_millis: number;
741
+ tsx_source: string;
742
+ theme_id: string | null;
743
743
  variables: Record<string, {} | null>;
744
744
  skip_deliverability_check: boolean;
745
745
  scheduled_at_millis: number;
@@ -763,10 +763,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
763
763
  } | {
764
764
  status: "preparing";
765
765
  id: string;
766
- created_at_millis: number;
767
- updated_at_millis: number;
768
- tsx_source: string;
769
- theme_id: string | null;
770
766
  to: {
771
767
  user_id: string;
772
768
  type: "user-primary-email";
@@ -778,6 +774,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
778
774
  type: "custom-emails";
779
775
  emails: string[];
780
776
  };
777
+ created_at_millis: number;
778
+ updated_at_millis: number;
779
+ tsx_source: string;
780
+ theme_id: string | null;
781
781
  variables: Record<string, {} | null>;
782
782
  skip_deliverability_check: boolean;
783
783
  scheduled_at_millis: number;
@@ -801,10 +801,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
801
801
  } | {
802
802
  status: "rendering";
803
803
  id: string;
804
- created_at_millis: number;
805
- updated_at_millis: number;
806
- tsx_source: string;
807
- theme_id: string | null;
808
804
  to: {
809
805
  user_id: string;
810
806
  type: "user-primary-email";
@@ -816,6 +812,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
816
812
  type: "custom-emails";
817
813
  emails: string[];
818
814
  };
815
+ created_at_millis: number;
816
+ updated_at_millis: number;
817
+ tsx_source: string;
818
+ theme_id: string | null;
819
819
  variables: Record<string, {} | null>;
820
820
  skip_deliverability_check: boolean;
821
821
  scheduled_at_millis: number;
@@ -840,10 +840,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
840
840
  } | {
841
841
  status: "render-error";
842
842
  id: string;
843
- created_at_millis: number;
844
- updated_at_millis: number;
845
- tsx_source: string;
846
- theme_id: string | null;
847
843
  to: {
848
844
  user_id: string;
849
845
  type: "user-primary-email";
@@ -855,6 +851,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
855
851
  type: "custom-emails";
856
852
  emails: string[];
857
853
  };
854
+ created_at_millis: number;
855
+ updated_at_millis: number;
856
+ tsx_source: string;
857
+ theme_id: string | null;
858
858
  variables: Record<string, {} | null>;
859
859
  skip_deliverability_check: boolean;
860
860
  scheduled_at_millis: number;
@@ -880,13 +880,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
880
880
  render_error: string;
881
881
  } | {
882
882
  status: "scheduled";
883
- id: string;
884
883
  html: string | null;
885
884
  text: string | null;
886
- created_at_millis: number;
887
- updated_at_millis: number;
888
- tsx_source: string;
889
- theme_id: string | null;
885
+ id: string;
886
+ subject: string;
890
887
  to: {
891
888
  user_id: string;
892
889
  type: "user-primary-email";
@@ -898,6 +895,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
898
895
  type: "custom-emails";
899
896
  emails: string[];
900
897
  };
898
+ created_at_millis: number;
899
+ notification_category_id: string | null;
900
+ updated_at_millis: number;
901
+ tsx_source: string;
902
+ theme_id: string | null;
901
903
  variables: Record<string, {} | null>;
902
904
  skip_deliverability_check: boolean;
903
905
  scheduled_at_millis: number;
@@ -920,19 +922,14 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
920
922
  has_delivered: boolean;
921
923
  started_rendering_at_millis: number;
922
924
  rendered_at_millis: number;
923
- subject: string;
924
925
  is_transactional: boolean;
925
926
  is_high_priority: boolean;
926
- notification_category_id: string | null;
927
927
  } | {
928
928
  status: "queued";
929
- id: string;
930
929
  html: string | null;
931
930
  text: string | null;
932
- created_at_millis: number;
933
- updated_at_millis: number;
934
- tsx_source: string;
935
- theme_id: string | null;
931
+ id: string;
932
+ subject: string;
936
933
  to: {
937
934
  user_id: string;
938
935
  type: "user-primary-email";
@@ -944,6 +941,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
944
941
  type: "custom-emails";
945
942
  emails: string[];
946
943
  };
944
+ created_at_millis: number;
945
+ notification_category_id: string | null;
946
+ updated_at_millis: number;
947
+ tsx_source: string;
948
+ theme_id: string | null;
947
949
  variables: Record<string, {} | null>;
948
950
  skip_deliverability_check: boolean;
949
951
  scheduled_at_millis: number;
@@ -966,19 +968,14 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
966
968
  has_delivered: boolean;
967
969
  started_rendering_at_millis: number;
968
970
  rendered_at_millis: number;
969
- subject: string;
970
971
  is_transactional: boolean;
971
972
  is_high_priority: boolean;
972
- notification_category_id: string | null;
973
973
  } | {
974
974
  status: "sending";
975
- id: string;
976
975
  html: string | null;
977
976
  text: string | null;
978
- created_at_millis: number;
979
- updated_at_millis: number;
980
- tsx_source: string;
981
- theme_id: string | null;
977
+ id: string;
978
+ subject: string;
982
979
  to: {
983
980
  user_id: string;
984
981
  type: "user-primary-email";
@@ -990,6 +987,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
990
987
  type: "custom-emails";
991
988
  emails: string[];
992
989
  };
990
+ created_at_millis: number;
991
+ notification_category_id: string | null;
992
+ updated_at_millis: number;
993
+ tsx_source: string;
994
+ theme_id: string | null;
993
995
  variables: Record<string, {} | null>;
994
996
  skip_deliverability_check: boolean;
995
997
  scheduled_at_millis: number;
@@ -1012,20 +1014,15 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1012
1014
  has_delivered: boolean;
1013
1015
  started_rendering_at_millis: number;
1014
1016
  rendered_at_millis: number;
1015
- subject: string;
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
1021
  status: "server-error";
1022
- id: string;
1023
1022
  html: string | null;
1024
1023
  text: string | null;
1025
- created_at_millis: number;
1026
- updated_at_millis: number;
1027
- tsx_source: string;
1028
- theme_id: string | null;
1024
+ id: string;
1025
+ subject: string;
1029
1026
  to: {
1030
1027
  user_id: string;
1031
1028
  type: "user-primary-email";
@@ -1037,6 +1034,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1037
1034
  type: "custom-emails";
1038
1035
  emails: string[];
1039
1036
  };
1037
+ created_at_millis: number;
1038
+ notification_category_id: string | null;
1039
+ updated_at_millis: number;
1040
+ tsx_source: string;
1041
+ theme_id: string | null;
1040
1042
  variables: Record<string, {} | null>;
1041
1043
  skip_deliverability_check: boolean;
1042
1044
  scheduled_at_millis: number;
@@ -1059,29 +1061,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1059
1061
  has_delivered: boolean;
1060
1062
  started_rendering_at_millis: number;
1061
1063
  rendered_at_millis: number;
1062
- subject: string;
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
1070
  html?: string | null | undefined;
1071
1071
  text?: string | null | undefined;
1072
+ subject?: string | undefined;
1073
+ notification_category_id?: string | null | undefined;
1072
1074
  started_rendering_at_millis?: number | undefined;
1073
1075
  rendered_at_millis?: number | undefined;
1074
- subject?: string | 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
1079
  status: "skipped";
1080
1080
  id: string;
1081
- created_at_millis: number;
1082
- updated_at_millis: number;
1083
- tsx_source: string;
1084
- theme_id: string | null;
1085
1081
  to: {
1086
1082
  user_id: string;
1087
1083
  type: "user-primary-email";
@@ -1093,6 +1089,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1093
1089
  type: "custom-emails";
1094
1090
  emails: string[];
1095
1091
  };
1092
+ created_at_millis: number;
1093
+ updated_at_millis: number;
1094
+ tsx_source: string;
1095
+ theme_id: string | null;
1096
1096
  variables: Record<string, {} | null>;
1097
1097
  skip_deliverability_check: boolean;
1098
1098
  scheduled_at_millis: number;
@@ -1118,13 +1118,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1118
1118
  skipped_details: Record<string, {} | null>;
1119
1119
  } | {
1120
1120
  status: "bounced";
1121
- id: string;
1122
1121
  html: string | null;
1123
1122
  text: string | null;
1124
- created_at_millis: number;
1125
- updated_at_millis: number;
1126
- tsx_source: string;
1127
- theme_id: string | null;
1123
+ id: string;
1124
+ subject: string;
1128
1125
  to: {
1129
1126
  user_id: string;
1130
1127
  type: "user-primary-email";
@@ -1136,6 +1133,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1136
1133
  type: "custom-emails";
1137
1134
  emails: string[];
1138
1135
  };
1136
+ created_at_millis: number;
1137
+ notification_category_id: string | null;
1138
+ updated_at_millis: number;
1139
+ tsx_source: string;
1140
+ theme_id: string | null;
1139
1141
  variables: Record<string, {} | null>;
1140
1142
  skip_deliverability_check: boolean;
1141
1143
  scheduled_at_millis: number;
@@ -1158,21 +1160,16 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1158
1160
  has_delivered: boolean;
1159
1161
  started_rendering_at_millis: number;
1160
1162
  rendered_at_millis: number;
1161
- subject: string;
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
1168
  status: "delivery-delayed";
1169
- id: string;
1170
1169
  html: string | null;
1171
1170
  text: string | null;
1172
- created_at_millis: number;
1173
- updated_at_millis: number;
1174
- tsx_source: string;
1175
- theme_id: string | null;
1171
+ id: string;
1172
+ subject: string;
1176
1173
  to: {
1177
1174
  user_id: string;
1178
1175
  type: "user-primary-email";
@@ -1184,6 +1181,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1184
1181
  type: "custom-emails";
1185
1182
  emails: string[];
1186
1183
  };
1184
+ created_at_millis: number;
1185
+ notification_category_id: string | null;
1186
+ updated_at_millis: number;
1187
+ tsx_source: string;
1188
+ theme_id: string | null;
1187
1189
  variables: Record<string, {} | null>;
1188
1190
  skip_deliverability_check: boolean;
1189
1191
  scheduled_at_millis: number;
@@ -1206,21 +1208,16 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1206
1208
  has_delivered: boolean;
1207
1209
  started_rendering_at_millis: number;
1208
1210
  rendered_at_millis: number;
1209
- subject: string;
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
1216
  status: "sent";
1217
- id: string;
1218
1217
  html: string | null;
1219
1218
  text: string | null;
1220
- created_at_millis: number;
1221
- updated_at_millis: number;
1222
- tsx_source: string;
1223
- theme_id: string | null;
1219
+ id: string;
1220
+ subject: string;
1224
1221
  to: {
1225
1222
  user_id: string;
1226
1223
  type: "user-primary-email";
@@ -1232,6 +1229,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1232
1229
  type: "custom-emails";
1233
1230
  emails: string[];
1234
1231
  };
1232
+ created_at_millis: number;
1233
+ notification_category_id: string | null;
1234
+ updated_at_millis: number;
1235
+ tsx_source: string;
1236
+ theme_id: string | null;
1235
1237
  variables: Record<string, {} | null>;
1236
1238
  skip_deliverability_check: boolean;
1237
1239
  scheduled_at_millis: number;
@@ -1254,22 +1256,17 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1254
1256
  has_delivered: boolean;
1255
1257
  started_rendering_at_millis: number;
1256
1258
  rendered_at_millis: number;
1257
- subject: string;
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
1265
  status: "opened";
1266
- id: string;
1267
1266
  html: string | null;
1268
1267
  text: string | null;
1269
- created_at_millis: number;
1270
- updated_at_millis: number;
1271
- tsx_source: string;
1272
- theme_id: string | null;
1268
+ id: string;
1269
+ subject: string;
1273
1270
  to: {
1274
1271
  user_id: string;
1275
1272
  type: "user-primary-email";
@@ -1281,6 +1278,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1281
1278
  type: "custom-emails";
1282
1279
  emails: string[];
1283
1280
  };
1281
+ created_at_millis: number;
1282
+ notification_category_id: string | null;
1283
+ updated_at_millis: number;
1284
+ tsx_source: string;
1285
+ theme_id: string | null;
1284
1286
  variables: Record<string, {} | null>;
1285
1287
  skip_deliverability_check: boolean;
1286
1288
  scheduled_at_millis: number;
@@ -1303,23 +1305,18 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1303
1305
  has_delivered: boolean;
1304
1306
  started_rendering_at_millis: number;
1305
1307
  rendered_at_millis: number;
1306
- subject: string;
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
1315
  status: "clicked";
1316
- id: string;
1317
1316
  html: string | null;
1318
1317
  text: string | null;
1319
- created_at_millis: number;
1320
- updated_at_millis: number;
1321
- tsx_source: string;
1322
- theme_id: string | null;
1318
+ id: string;
1319
+ subject: string;
1323
1320
  to: {
1324
1321
  user_id: string;
1325
1322
  type: "user-primary-email";
@@ -1331,6 +1328,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1331
1328
  type: "custom-emails";
1332
1329
  emails: string[];
1333
1330
  };
1331
+ created_at_millis: number;
1332
+ notification_category_id: string | null;
1333
+ updated_at_millis: number;
1334
+ tsx_source: string;
1335
+ theme_id: string | null;
1334
1336
  variables: Record<string, {} | null>;
1335
1337
  skip_deliverability_check: boolean;
1336
1338
  scheduled_at_millis: number;
@@ -1353,23 +1355,18 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1353
1355
  has_delivered: boolean;
1354
1356
  started_rendering_at_millis: number;
1355
1357
  rendered_at_millis: number;
1356
- subject: string;
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
1365
  status: "marked-as-spam";
1366
- id: string;
1367
1366
  html: string | null;
1368
1367
  text: string | null;
1369
- created_at_millis: number;
1370
- updated_at_millis: number;
1371
- tsx_source: string;
1372
- theme_id: string | null;
1368
+ id: string;
1369
+ subject: string;
1373
1370
  to: {
1374
1371
  user_id: string;
1375
1372
  type: "user-primary-email";
@@ -1381,6 +1378,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1381
1378
  type: "custom-emails";
1382
1379
  emails: string[];
1383
1380
  };
1381
+ created_at_millis: number;
1382
+ notification_category_id: string | null;
1383
+ updated_at_millis: number;
1384
+ tsx_source: string;
1385
+ theme_id: string | null;
1384
1386
  variables: Record<string, {} | null>;
1385
1387
  skip_deliverability_check: boolean;
1386
1388
  scheduled_at_millis: number;
@@ -1403,10 +1405,8 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1403
1405
  has_delivered: boolean;
1404
1406
  started_rendering_at_millis: number;
1405
1407
  rendered_at_millis: number;
1406
- subject: string;
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;