@hexclave/shared 1.0.28 → 1.0.29

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 (56) hide show
  1. package/dist/config/schema.d.ts +45 -45
  2. package/dist/esm/config/schema.d.ts +45 -45
  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 +28 -28
  10. package/dist/esm/interface/crud/current-user.d.ts +9 -9
  11. package/dist/esm/interface/crud/email-outbox.d.ts +248 -248
  12. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  13. package/dist/esm/interface/crud/products.d.ts +9 -9
  14. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  15. package/dist/esm/interface/crud/project-api-keys.d.ts +5 -5
  16. package/dist/esm/interface/crud/projects.d.ts +35 -35
  17. package/dist/esm/interface/crud/team-member-profiles.d.ts +14 -14
  18. package/dist/esm/interface/crud/transactions.d.ts +4 -4
  19. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  20. package/dist/esm/interface/crud/users.d.ts +12 -12
  21. package/dist/esm/interface/plan-usage.d.ts +2 -2
  22. package/dist/esm/interface/server-interface.js +1 -1
  23. package/dist/esm/interface/webhooks.d.ts +2 -2
  24. package/dist/esm/sessions.d.ts +6 -6
  25. package/dist/esm/utils/promises.d.ts +12 -1
  26. package/dist/esm/utils/promises.d.ts.map +1 -1
  27. package/dist/esm/utils/promises.js +58 -2
  28. package/dist/esm/utils/promises.js.map +1 -1
  29. package/dist/hooks/use-async-callback.js +1 -1
  30. package/dist/hooks/use-async-external-store.js +1 -1
  31. package/dist/hooks/use-strict-memo.js +1 -1
  32. package/dist/interface/admin-interface.js +1 -1
  33. package/dist/interface/admin-metrics.d.ts +13 -13
  34. package/dist/interface/client-interface.js +1 -1
  35. package/dist/interface/conversations.d.ts +28 -28
  36. package/dist/interface/crud/current-user.d.ts +9 -9
  37. package/dist/interface/crud/email-outbox.d.ts +248 -248
  38. package/dist/interface/crud/invoices.d.ts +2 -2
  39. package/dist/interface/crud/products.d.ts +9 -9
  40. package/dist/interface/crud/products.d.ts.map +1 -1
  41. package/dist/interface/crud/project-api-keys.d.ts +5 -5
  42. package/dist/interface/crud/projects.d.ts +35 -35
  43. package/dist/interface/crud/team-member-profiles.d.ts +14 -14
  44. package/dist/interface/crud/transactions.d.ts +4 -4
  45. package/dist/interface/crud/transactions.d.ts.map +1 -1
  46. package/dist/interface/crud/users.d.ts +12 -12
  47. package/dist/interface/plan-usage.d.ts +2 -2
  48. package/dist/interface/server-interface.js +1 -1
  49. package/dist/interface/webhooks.d.ts +2 -2
  50. package/dist/sessions.d.ts +6 -6
  51. package/dist/utils/promises.d.ts +12 -1
  52. package/dist/utils/promises.d.ts.map +1 -1
  53. package/dist/utils/promises.js +58 -1
  54. package/dist/utils/promises.js.map +1 -1
  55. package/package.json +1 -1
  56. package/src/utils/promises.tsx +65 -0
@@ -6,21 +6,21 @@ import { CrudTypeOf } from "../../crud";
6
6
  declare const emailOutboxReadSchema: yup$1.MixedSchema<{
7
7
  status: "paused";
8
8
  id: string;
9
+ created_at_millis: number;
10
+ updated_at_millis: number;
11
+ tsx_source: string;
12
+ theme_id: string | null;
9
13
  to: {
10
- user_id: string;
11
14
  type: "user-primary-email";
12
- } | {
13
15
  user_id: string;
16
+ } | {
14
17
  type: "user-custom-emails";
18
+ user_id: string;
15
19
  emails: string[];
16
20
  } | {
17
21
  type: "custom-emails";
18
22
  emails: string[];
19
23
  };
20
- created_at_millis: number;
21
- updated_at_millis: number;
22
- tsx_source: string;
23
- theme_id: string | null;
24
24
  variables: Record<string, {} | null>;
25
25
  skip_deliverability_check: boolean;
26
26
  scheduled_at_millis: number;
@@ -44,21 +44,21 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
44
44
  } | {
45
45
  status: "preparing";
46
46
  id: string;
47
+ created_at_millis: number;
48
+ updated_at_millis: number;
49
+ tsx_source: string;
50
+ theme_id: string | null;
47
51
  to: {
48
- user_id: string;
49
52
  type: "user-primary-email";
50
- } | {
51
53
  user_id: string;
54
+ } | {
52
55
  type: "user-custom-emails";
56
+ user_id: string;
53
57
  emails: string[];
54
58
  } | {
55
59
  type: "custom-emails";
56
60
  emails: string[];
57
61
  };
58
- created_at_millis: number;
59
- updated_at_millis: number;
60
- tsx_source: string;
61
- theme_id: string | null;
62
62
  variables: Record<string, {} | null>;
63
63
  skip_deliverability_check: boolean;
64
64
  scheduled_at_millis: number;
@@ -82,21 +82,21 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
82
82
  } | {
83
83
  status: "rendering";
84
84
  id: string;
85
+ created_at_millis: number;
86
+ updated_at_millis: number;
87
+ tsx_source: string;
88
+ theme_id: string | null;
85
89
  to: {
86
- user_id: string;
87
90
  type: "user-primary-email";
88
- } | {
89
91
  user_id: string;
92
+ } | {
90
93
  type: "user-custom-emails";
94
+ user_id: string;
91
95
  emails: string[];
92
96
  } | {
93
97
  type: "custom-emails";
94
98
  emails: string[];
95
99
  };
96
- created_at_millis: number;
97
- updated_at_millis: number;
98
- tsx_source: string;
99
- theme_id: string | null;
100
100
  variables: Record<string, {} | null>;
101
101
  skip_deliverability_check: boolean;
102
102
  scheduled_at_millis: number;
@@ -121,21 +121,21 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
121
121
  } | {
122
122
  status: "render-error";
123
123
  id: string;
124
+ created_at_millis: number;
125
+ updated_at_millis: number;
126
+ tsx_source: string;
127
+ theme_id: string | null;
124
128
  to: {
125
- user_id: string;
126
129
  type: "user-primary-email";
127
- } | {
128
130
  user_id: string;
131
+ } | {
129
132
  type: "user-custom-emails";
133
+ user_id: string;
130
134
  emails: string[];
131
135
  } | {
132
136
  type: "custom-emails";
133
137
  emails: string[];
134
138
  };
135
- created_at_millis: number;
136
- updated_at_millis: number;
137
- tsx_source: string;
138
- theme_id: string | null;
139
139
  variables: Record<string, {} | null>;
140
140
  skip_deliverability_check: boolean;
141
141
  scheduled_at_millis: number;
@@ -161,26 +161,25 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
161
161
  render_error: string;
162
162
  } | {
163
163
  status: "scheduled";
164
- html: string | null;
165
- text: string | null;
166
164
  id: string;
165
+ created_at_millis: number;
167
166
  subject: string;
167
+ html: string | null;
168
+ text: string | null;
169
+ updated_at_millis: number;
170
+ tsx_source: string;
171
+ theme_id: string | null;
168
172
  to: {
169
- user_id: string;
170
173
  type: "user-primary-email";
171
- } | {
172
174
  user_id: string;
175
+ } | {
173
176
  type: "user-custom-emails";
177
+ user_id: string;
174
178
  emails: string[];
175
179
  } | {
176
180
  type: "custom-emails";
177
181
  emails: string[];
178
182
  };
179
- created_at_millis: number;
180
- notification_category_id: string | null;
181
- updated_at_millis: number;
182
- tsx_source: string;
183
- theme_id: string | null;
184
183
  variables: Record<string, {} | null>;
185
184
  skip_deliverability_check: boolean;
186
185
  scheduled_at_millis: number;
@@ -205,28 +204,28 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
205
204
  rendered_at_millis: number;
206
205
  is_transactional: boolean;
207
206
  is_high_priority: boolean;
207
+ notification_category_id: string | null;
208
208
  } | {
209
209
  status: "queued";
210
- html: string | null;
211
- text: string | null;
212
210
  id: string;
211
+ created_at_millis: number;
213
212
  subject: string;
213
+ html: string | null;
214
+ text: string | null;
215
+ updated_at_millis: number;
216
+ tsx_source: string;
217
+ theme_id: string | null;
214
218
  to: {
215
- user_id: string;
216
219
  type: "user-primary-email";
217
- } | {
218
220
  user_id: string;
221
+ } | {
219
222
  type: "user-custom-emails";
223
+ user_id: string;
220
224
  emails: string[];
221
225
  } | {
222
226
  type: "custom-emails";
223
227
  emails: string[];
224
228
  };
225
- created_at_millis: number;
226
- notification_category_id: string | null;
227
- updated_at_millis: number;
228
- tsx_source: string;
229
- theme_id: string | null;
230
229
  variables: Record<string, {} | null>;
231
230
  skip_deliverability_check: boolean;
232
231
  scheduled_at_millis: number;
@@ -251,28 +250,28 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
251
250
  rendered_at_millis: number;
252
251
  is_transactional: boolean;
253
252
  is_high_priority: boolean;
253
+ notification_category_id: string | null;
254
254
  } | {
255
255
  status: "sending";
256
- html: string | null;
257
- text: string | null;
258
256
  id: string;
257
+ created_at_millis: number;
259
258
  subject: string;
259
+ html: string | null;
260
+ text: string | null;
261
+ updated_at_millis: number;
262
+ tsx_source: string;
263
+ theme_id: string | null;
260
264
  to: {
261
- user_id: string;
262
265
  type: "user-primary-email";
263
- } | {
264
266
  user_id: string;
267
+ } | {
265
268
  type: "user-custom-emails";
269
+ user_id: string;
266
270
  emails: string[];
267
271
  } | {
268
272
  type: "custom-emails";
269
273
  emails: string[];
270
274
  };
271
- created_at_millis: number;
272
- notification_category_id: string | null;
273
- updated_at_millis: number;
274
- tsx_source: string;
275
- theme_id: string | null;
276
275
  variables: Record<string, {} | null>;
277
276
  skip_deliverability_check: boolean;
278
277
  scheduled_at_millis: number;
@@ -297,29 +296,29 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
297
296
  rendered_at_millis: number;
298
297
  is_transactional: boolean;
299
298
  is_high_priority: boolean;
299
+ notification_category_id: string | null;
300
300
  started_sending_at_millis: number;
301
301
  } | {
302
302
  status: "server-error";
303
- html: string | null;
304
- text: string | null;
305
303
  id: string;
304
+ created_at_millis: number;
306
305
  subject: string;
306
+ html: string | null;
307
+ text: string | null;
308
+ updated_at_millis: number;
309
+ tsx_source: string;
310
+ theme_id: string | null;
307
311
  to: {
308
- user_id: string;
309
312
  type: "user-primary-email";
310
- } | {
311
313
  user_id: string;
314
+ } | {
312
315
  type: "user-custom-emails";
316
+ user_id: string;
313
317
  emails: string[];
314
318
  } | {
315
319
  type: "custom-emails";
316
320
  emails: string[];
317
321
  };
318
- created_at_millis: number;
319
- notification_category_id: string | null;
320
- updated_at_millis: number;
321
- tsx_source: string;
322
- theme_id: string | null;
323
322
  variables: Record<string, {} | null>;
324
323
  skip_deliverability_check: boolean;
325
324
  scheduled_at_millis: number;
@@ -344,36 +343,37 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
344
343
  rendered_at_millis: number;
345
344
  is_transactional: boolean;
346
345
  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;
351
352
  html?: string | null | undefined;
352
353
  text?: string | null | undefined;
353
- subject?: string | undefined;
354
- notification_category_id?: string | null | undefined;
355
354
  started_rendering_at_millis?: number | undefined;
356
355
  rendered_at_millis?: number | undefined;
357
356
  is_transactional?: boolean | undefined;
358
357
  is_high_priority?: boolean | undefined;
358
+ notification_category_id?: string | null | undefined;
359
359
  started_sending_at_millis?: number | undefined;
360
360
  status: "skipped";
361
361
  id: string;
362
+ created_at_millis: number;
363
+ updated_at_millis: number;
364
+ tsx_source: string;
365
+ theme_id: string | null;
362
366
  to: {
363
- user_id: string;
364
367
  type: "user-primary-email";
365
- } | {
366
368
  user_id: string;
369
+ } | {
367
370
  type: "user-custom-emails";
371
+ user_id: string;
368
372
  emails: string[];
369
373
  } | {
370
374
  type: "custom-emails";
371
375
  emails: string[];
372
376
  };
373
- created_at_millis: number;
374
- updated_at_millis: number;
375
- tsx_source: string;
376
- theme_id: string | null;
377
377
  variables: Record<string, {} | null>;
378
378
  skip_deliverability_check: boolean;
379
379
  scheduled_at_millis: number;
@@ -399,26 +399,25 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
399
399
  skipped_details: Record<string, {} | null>;
400
400
  } | {
401
401
  status: "bounced";
402
- html: string | null;
403
- text: string | null;
404
402
  id: string;
403
+ created_at_millis: number;
405
404
  subject: string;
405
+ html: string | null;
406
+ text: string | null;
407
+ updated_at_millis: number;
408
+ tsx_source: string;
409
+ theme_id: string | null;
406
410
  to: {
407
- user_id: string;
408
411
  type: "user-primary-email";
409
- } | {
410
412
  user_id: string;
413
+ } | {
411
414
  type: "user-custom-emails";
415
+ user_id: string;
412
416
  emails: string[];
413
417
  } | {
414
418
  type: "custom-emails";
415
419
  emails: string[];
416
420
  };
417
- created_at_millis: number;
418
- notification_category_id: string | null;
419
- updated_at_millis: number;
420
- tsx_source: string;
421
- theme_id: string | null;
422
421
  variables: Record<string, {} | null>;
423
422
  skip_deliverability_check: boolean;
424
423
  scheduled_at_millis: number;
@@ -443,30 +442,30 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
443
442
  rendered_at_millis: number;
444
443
  is_transactional: boolean;
445
444
  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
449
  status: "delivery-delayed";
450
- html: string | null;
451
- text: string | null;
452
450
  id: string;
451
+ created_at_millis: number;
453
452
  subject: string;
453
+ html: string | null;
454
+ text: string | null;
455
+ updated_at_millis: number;
456
+ tsx_source: string;
457
+ theme_id: string | null;
454
458
  to: {
455
- user_id: string;
456
459
  type: "user-primary-email";
457
- } | {
458
460
  user_id: string;
461
+ } | {
459
462
  type: "user-custom-emails";
463
+ user_id: string;
460
464
  emails: string[];
461
465
  } | {
462
466
  type: "custom-emails";
463
467
  emails: string[];
464
468
  };
465
- created_at_millis: number;
466
- notification_category_id: string | null;
467
- updated_at_millis: number;
468
- tsx_source: string;
469
- theme_id: string | null;
470
469
  variables: Record<string, {} | null>;
471
470
  skip_deliverability_check: boolean;
472
471
  scheduled_at_millis: number;
@@ -491,30 +490,30 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
491
490
  rendered_at_millis: number;
492
491
  is_transactional: boolean;
493
492
  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
497
  status: "sent";
498
- html: string | null;
499
- text: string | null;
500
498
  id: string;
499
+ created_at_millis: number;
501
500
  subject: string;
501
+ html: string | null;
502
+ text: string | null;
503
+ updated_at_millis: number;
504
+ tsx_source: string;
505
+ theme_id: string | null;
502
506
  to: {
503
- user_id: string;
504
507
  type: "user-primary-email";
505
- } | {
506
508
  user_id: string;
509
+ } | {
507
510
  type: "user-custom-emails";
511
+ user_id: string;
508
512
  emails: string[];
509
513
  } | {
510
514
  type: "custom-emails";
511
515
  emails: string[];
512
516
  };
513
- created_at_millis: number;
514
- notification_category_id: string | null;
515
- updated_at_millis: number;
516
- tsx_source: string;
517
- theme_id: string | null;
518
517
  variables: Record<string, {} | null>;
519
518
  skip_deliverability_check: boolean;
520
519
  scheduled_at_millis: number;
@@ -539,31 +538,31 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
539
538
  rendered_at_millis: number;
540
539
  is_transactional: boolean;
541
540
  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
546
  status: "opened";
547
- html: string | null;
548
- text: string | null;
549
547
  id: string;
548
+ created_at_millis: number;
550
549
  subject: string;
550
+ html: string | null;
551
+ text: string | null;
552
+ updated_at_millis: number;
553
+ tsx_source: string;
554
+ theme_id: string | null;
551
555
  to: {
552
- user_id: string;
553
556
  type: "user-primary-email";
554
- } | {
555
557
  user_id: string;
558
+ } | {
556
559
  type: "user-custom-emails";
560
+ user_id: string;
557
561
  emails: string[];
558
562
  } | {
559
563
  type: "custom-emails";
560
564
  emails: string[];
561
565
  };
562
- created_at_millis: number;
563
- notification_category_id: string | null;
564
- updated_at_millis: number;
565
- tsx_source: string;
566
- theme_id: string | null;
567
566
  variables: Record<string, {} | null>;
568
567
  skip_deliverability_check: boolean;
569
568
  scheduled_at_millis: number;
@@ -588,32 +587,32 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
588
587
  rendered_at_millis: number;
589
588
  is_transactional: boolean;
590
589
  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
596
  status: "clicked";
597
- html: string | null;
598
- text: string | null;
599
597
  id: string;
598
+ created_at_millis: number;
600
599
  subject: string;
600
+ html: string | null;
601
+ text: string | null;
602
+ updated_at_millis: number;
603
+ tsx_source: string;
604
+ theme_id: string | null;
601
605
  to: {
602
- user_id: string;
603
606
  type: "user-primary-email";
604
- } | {
605
607
  user_id: string;
608
+ } | {
606
609
  type: "user-custom-emails";
610
+ user_id: string;
607
611
  emails: string[];
608
612
  } | {
609
613
  type: "custom-emails";
610
614
  emails: string[];
611
615
  };
612
- created_at_millis: number;
613
- notification_category_id: string | null;
614
- updated_at_millis: number;
615
- tsx_source: string;
616
- theme_id: string | null;
617
616
  variables: Record<string, {} | null>;
618
617
  skip_deliverability_check: boolean;
619
618
  scheduled_at_millis: number;
@@ -638,32 +637,32 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
638
637
  rendered_at_millis: number;
639
638
  is_transactional: boolean;
640
639
  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
646
  status: "marked-as-spam";
647
- html: string | null;
648
- text: string | null;
649
647
  id: string;
648
+ created_at_millis: number;
650
649
  subject: string;
650
+ html: string | null;
651
+ text: string | null;
652
+ updated_at_millis: number;
653
+ tsx_source: string;
654
+ theme_id: string | null;
651
655
  to: {
652
- user_id: string;
653
656
  type: "user-primary-email";
654
- } | {
655
657
  user_id: string;
658
+ } | {
656
659
  type: "user-custom-emails";
660
+ user_id: string;
657
661
  emails: string[];
658
662
  } | {
659
663
  type: "custom-emails";
660
664
  emails: string[];
661
665
  };
662
- created_at_millis: number;
663
- notification_category_id: string | null;
664
- updated_at_millis: number;
665
- tsx_source: string;
666
- theme_id: string | null;
667
666
  variables: Record<string, {} | null>;
668
667
  skip_deliverability_check: boolean;
669
668
  scheduled_at_millis: number;
@@ -688,6 +687,7 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
688
687
  rendered_at_millis: number;
689
688
  is_transactional: boolean;
690
689
  is_high_priority: boolean;
690
+ notification_category_id: string | null;
691
691
  started_sending_at_millis: number;
692
692
  delivered_at_millis: number;
693
693
  can_have_delivery_info: boolean;
@@ -697,11 +697,11 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
697
697
  tsx_source: string | undefined;
698
698
  theme_id: string | null | undefined;
699
699
  to: {
700
- user_id: string;
701
700
  type: "user-primary-email";
702
- } | {
703
701
  user_id: string;
702
+ } | {
704
703
  type: "user-custom-emails";
704
+ user_id: string;
705
705
  emails: string[];
706
706
  } | {
707
707
  type: "custom-emails";
@@ -726,21 +726,21 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
726
726
  serverReadSchema: yup$1.MixedSchema<{
727
727
  status: "paused";
728
728
  id: string;
729
+ created_at_millis: number;
730
+ updated_at_millis: number;
731
+ tsx_source: string;
732
+ theme_id: string | null;
729
733
  to: {
730
- user_id: string;
731
734
  type: "user-primary-email";
732
- } | {
733
735
  user_id: string;
736
+ } | {
734
737
  type: "user-custom-emails";
738
+ user_id: string;
735
739
  emails: string[];
736
740
  } | {
737
741
  type: "custom-emails";
738
742
  emails: string[];
739
743
  };
740
- created_at_millis: number;
741
- updated_at_millis: number;
742
- tsx_source: string;
743
- theme_id: string | null;
744
744
  variables: Record<string, {} | null>;
745
745
  skip_deliverability_check: boolean;
746
746
  scheduled_at_millis: number;
@@ -764,21 +764,21 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
764
764
  } | {
765
765
  status: "preparing";
766
766
  id: string;
767
+ created_at_millis: number;
768
+ updated_at_millis: number;
769
+ tsx_source: string;
770
+ theme_id: string | null;
767
771
  to: {
768
- user_id: string;
769
772
  type: "user-primary-email";
770
- } | {
771
773
  user_id: string;
774
+ } | {
772
775
  type: "user-custom-emails";
776
+ user_id: string;
773
777
  emails: string[];
774
778
  } | {
775
779
  type: "custom-emails";
776
780
  emails: string[];
777
781
  };
778
- created_at_millis: number;
779
- updated_at_millis: number;
780
- tsx_source: string;
781
- theme_id: string | null;
782
782
  variables: Record<string, {} | null>;
783
783
  skip_deliverability_check: boolean;
784
784
  scheduled_at_millis: number;
@@ -802,21 +802,21 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
802
802
  } | {
803
803
  status: "rendering";
804
804
  id: string;
805
+ created_at_millis: number;
806
+ updated_at_millis: number;
807
+ tsx_source: string;
808
+ theme_id: string | null;
805
809
  to: {
806
- user_id: string;
807
810
  type: "user-primary-email";
808
- } | {
809
811
  user_id: string;
812
+ } | {
810
813
  type: "user-custom-emails";
814
+ user_id: string;
811
815
  emails: string[];
812
816
  } | {
813
817
  type: "custom-emails";
814
818
  emails: string[];
815
819
  };
816
- created_at_millis: number;
817
- updated_at_millis: number;
818
- tsx_source: string;
819
- theme_id: string | null;
820
820
  variables: Record<string, {} | null>;
821
821
  skip_deliverability_check: boolean;
822
822
  scheduled_at_millis: number;
@@ -841,21 +841,21 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
841
841
  } | {
842
842
  status: "render-error";
843
843
  id: string;
844
+ created_at_millis: number;
845
+ updated_at_millis: number;
846
+ tsx_source: string;
847
+ theme_id: string | null;
844
848
  to: {
845
- user_id: string;
846
849
  type: "user-primary-email";
847
- } | {
848
850
  user_id: string;
851
+ } | {
849
852
  type: "user-custom-emails";
853
+ user_id: string;
850
854
  emails: string[];
851
855
  } | {
852
856
  type: "custom-emails";
853
857
  emails: string[];
854
858
  };
855
- created_at_millis: number;
856
- updated_at_millis: number;
857
- tsx_source: string;
858
- theme_id: string | null;
859
859
  variables: Record<string, {} | null>;
860
860
  skip_deliverability_check: boolean;
861
861
  scheduled_at_millis: number;
@@ -881,26 +881,25 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
881
881
  render_error: string;
882
882
  } | {
883
883
  status: "scheduled";
884
- html: string | null;
885
- text: string | null;
886
884
  id: string;
885
+ created_at_millis: number;
887
886
  subject: string;
887
+ html: string | null;
888
+ text: string | null;
889
+ updated_at_millis: number;
890
+ tsx_source: string;
891
+ theme_id: string | null;
888
892
  to: {
889
- user_id: string;
890
893
  type: "user-primary-email";
891
- } | {
892
894
  user_id: string;
895
+ } | {
893
896
  type: "user-custom-emails";
897
+ user_id: string;
894
898
  emails: string[];
895
899
  } | {
896
900
  type: "custom-emails";
897
901
  emails: string[];
898
902
  };
899
- created_at_millis: number;
900
- notification_category_id: string | null;
901
- updated_at_millis: number;
902
- tsx_source: string;
903
- theme_id: string | null;
904
903
  variables: Record<string, {} | null>;
905
904
  skip_deliverability_check: boolean;
906
905
  scheduled_at_millis: number;
@@ -925,28 +924,28 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
925
924
  rendered_at_millis: number;
926
925
  is_transactional: boolean;
927
926
  is_high_priority: boolean;
927
+ notification_category_id: string | null;
928
928
  } | {
929
929
  status: "queued";
930
- html: string | null;
931
- text: string | null;
932
930
  id: string;
931
+ created_at_millis: number;
933
932
  subject: string;
933
+ html: string | null;
934
+ text: string | null;
935
+ updated_at_millis: number;
936
+ tsx_source: string;
937
+ theme_id: string | null;
934
938
  to: {
935
- user_id: string;
936
939
  type: "user-primary-email";
937
- } | {
938
940
  user_id: string;
941
+ } | {
939
942
  type: "user-custom-emails";
943
+ user_id: string;
940
944
  emails: string[];
941
945
  } | {
942
946
  type: "custom-emails";
943
947
  emails: string[];
944
948
  };
945
- created_at_millis: number;
946
- notification_category_id: string | null;
947
- updated_at_millis: number;
948
- tsx_source: string;
949
- theme_id: string | null;
950
949
  variables: Record<string, {} | null>;
951
950
  skip_deliverability_check: boolean;
952
951
  scheduled_at_millis: number;
@@ -971,28 +970,28 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
971
970
  rendered_at_millis: number;
972
971
  is_transactional: boolean;
973
972
  is_high_priority: boolean;
973
+ notification_category_id: string | null;
974
974
  } | {
975
975
  status: "sending";
976
- html: string | null;
977
- text: string | null;
978
976
  id: string;
977
+ created_at_millis: number;
979
978
  subject: string;
979
+ html: string | null;
980
+ text: string | null;
981
+ updated_at_millis: number;
982
+ tsx_source: string;
983
+ theme_id: string | null;
980
984
  to: {
981
- user_id: string;
982
985
  type: "user-primary-email";
983
- } | {
984
986
  user_id: string;
987
+ } | {
985
988
  type: "user-custom-emails";
989
+ user_id: string;
986
990
  emails: string[];
987
991
  } | {
988
992
  type: "custom-emails";
989
993
  emails: string[];
990
994
  };
991
- created_at_millis: number;
992
- notification_category_id: string | null;
993
- updated_at_millis: number;
994
- tsx_source: string;
995
- theme_id: string | null;
996
995
  variables: Record<string, {} | null>;
997
996
  skip_deliverability_check: boolean;
998
997
  scheduled_at_millis: number;
@@ -1017,29 +1016,29 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1017
1016
  rendered_at_millis: number;
1018
1017
  is_transactional: boolean;
1019
1018
  is_high_priority: boolean;
1019
+ notification_category_id: string | null;
1020
1020
  started_sending_at_millis: number;
1021
1021
  } | {
1022
1022
  status: "server-error";
1023
- html: string | null;
1024
- text: string | null;
1025
1023
  id: string;
1024
+ created_at_millis: number;
1026
1025
  subject: string;
1026
+ html: string | null;
1027
+ text: string | null;
1028
+ updated_at_millis: number;
1029
+ tsx_source: string;
1030
+ theme_id: string | null;
1027
1031
  to: {
1028
- user_id: string;
1029
1032
  type: "user-primary-email";
1030
- } | {
1031
1033
  user_id: string;
1034
+ } | {
1032
1035
  type: "user-custom-emails";
1036
+ user_id: string;
1033
1037
  emails: string[];
1034
1038
  } | {
1035
1039
  type: "custom-emails";
1036
1040
  emails: string[];
1037
1041
  };
1038
- created_at_millis: number;
1039
- notification_category_id: string | null;
1040
- updated_at_millis: number;
1041
- tsx_source: string;
1042
- theme_id: string | null;
1043
1042
  variables: Record<string, {} | null>;
1044
1043
  skip_deliverability_check: boolean;
1045
1044
  scheduled_at_millis: number;
@@ -1064,36 +1063,37 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1064
1063
  rendered_at_millis: number;
1065
1064
  is_transactional: boolean;
1066
1065
  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;
1071
1072
  html?: string | null | undefined;
1072
1073
  text?: string | null | undefined;
1073
- subject?: string | undefined;
1074
- notification_category_id?: string | null | undefined;
1075
1074
  started_rendering_at_millis?: number | undefined;
1076
1075
  rendered_at_millis?: number | undefined;
1077
1076
  is_transactional?: boolean | undefined;
1078
1077
  is_high_priority?: boolean | undefined;
1078
+ notification_category_id?: string | null | undefined;
1079
1079
  started_sending_at_millis?: number | undefined;
1080
1080
  status: "skipped";
1081
1081
  id: string;
1082
+ created_at_millis: number;
1083
+ updated_at_millis: number;
1084
+ tsx_source: string;
1085
+ theme_id: string | null;
1082
1086
  to: {
1083
- user_id: string;
1084
1087
  type: "user-primary-email";
1085
- } | {
1086
1088
  user_id: string;
1089
+ } | {
1087
1090
  type: "user-custom-emails";
1091
+ user_id: string;
1088
1092
  emails: string[];
1089
1093
  } | {
1090
1094
  type: "custom-emails";
1091
1095
  emails: string[];
1092
1096
  };
1093
- created_at_millis: number;
1094
- updated_at_millis: number;
1095
- tsx_source: string;
1096
- theme_id: string | null;
1097
1097
  variables: Record<string, {} | null>;
1098
1098
  skip_deliverability_check: boolean;
1099
1099
  scheduled_at_millis: number;
@@ -1119,26 +1119,25 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1119
1119
  skipped_details: Record<string, {} | null>;
1120
1120
  } | {
1121
1121
  status: "bounced";
1122
- html: string | null;
1123
- text: string | null;
1124
1122
  id: string;
1123
+ created_at_millis: number;
1125
1124
  subject: string;
1125
+ html: string | null;
1126
+ text: string | null;
1127
+ updated_at_millis: number;
1128
+ tsx_source: string;
1129
+ theme_id: string | null;
1126
1130
  to: {
1127
- user_id: string;
1128
1131
  type: "user-primary-email";
1129
- } | {
1130
1132
  user_id: string;
1133
+ } | {
1131
1134
  type: "user-custom-emails";
1135
+ user_id: string;
1132
1136
  emails: string[];
1133
1137
  } | {
1134
1138
  type: "custom-emails";
1135
1139
  emails: string[];
1136
1140
  };
1137
- created_at_millis: number;
1138
- notification_category_id: string | null;
1139
- updated_at_millis: number;
1140
- tsx_source: string;
1141
- theme_id: string | null;
1142
1141
  variables: Record<string, {} | null>;
1143
1142
  skip_deliverability_check: boolean;
1144
1143
  scheduled_at_millis: number;
@@ -1163,30 +1162,30 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1163
1162
  rendered_at_millis: number;
1164
1163
  is_transactional: boolean;
1165
1164
  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
1169
  status: "delivery-delayed";
1170
- html: string | null;
1171
- text: string | null;
1172
1170
  id: string;
1171
+ created_at_millis: number;
1173
1172
  subject: string;
1173
+ html: string | null;
1174
+ text: string | null;
1175
+ updated_at_millis: number;
1176
+ tsx_source: string;
1177
+ theme_id: string | null;
1174
1178
  to: {
1175
- user_id: string;
1176
1179
  type: "user-primary-email";
1177
- } | {
1178
1180
  user_id: string;
1181
+ } | {
1179
1182
  type: "user-custom-emails";
1183
+ user_id: string;
1180
1184
  emails: string[];
1181
1185
  } | {
1182
1186
  type: "custom-emails";
1183
1187
  emails: string[];
1184
1188
  };
1185
- created_at_millis: number;
1186
- notification_category_id: string | null;
1187
- updated_at_millis: number;
1188
- tsx_source: string;
1189
- theme_id: string | null;
1190
1189
  variables: Record<string, {} | null>;
1191
1190
  skip_deliverability_check: boolean;
1192
1191
  scheduled_at_millis: number;
@@ -1211,30 +1210,30 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1211
1210
  rendered_at_millis: number;
1212
1211
  is_transactional: boolean;
1213
1212
  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
1217
  status: "sent";
1218
- html: string | null;
1219
- text: string | null;
1220
1218
  id: string;
1219
+ created_at_millis: number;
1221
1220
  subject: string;
1221
+ html: string | null;
1222
+ text: string | null;
1223
+ updated_at_millis: number;
1224
+ tsx_source: string;
1225
+ theme_id: string | null;
1222
1226
  to: {
1223
- user_id: string;
1224
1227
  type: "user-primary-email";
1225
- } | {
1226
1228
  user_id: string;
1229
+ } | {
1227
1230
  type: "user-custom-emails";
1231
+ user_id: string;
1228
1232
  emails: string[];
1229
1233
  } | {
1230
1234
  type: "custom-emails";
1231
1235
  emails: string[];
1232
1236
  };
1233
- created_at_millis: number;
1234
- notification_category_id: string | null;
1235
- updated_at_millis: number;
1236
- tsx_source: string;
1237
- theme_id: string | null;
1238
1237
  variables: Record<string, {} | null>;
1239
1238
  skip_deliverability_check: boolean;
1240
1239
  scheduled_at_millis: number;
@@ -1259,31 +1258,31 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1259
1258
  rendered_at_millis: number;
1260
1259
  is_transactional: boolean;
1261
1260
  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
1266
  status: "opened";
1267
- html: string | null;
1268
- text: string | null;
1269
1267
  id: string;
1268
+ created_at_millis: number;
1270
1269
  subject: string;
1270
+ html: string | null;
1271
+ text: string | null;
1272
+ updated_at_millis: number;
1273
+ tsx_source: string;
1274
+ theme_id: string | null;
1271
1275
  to: {
1272
- user_id: string;
1273
1276
  type: "user-primary-email";
1274
- } | {
1275
1277
  user_id: string;
1278
+ } | {
1276
1279
  type: "user-custom-emails";
1280
+ user_id: string;
1277
1281
  emails: string[];
1278
1282
  } | {
1279
1283
  type: "custom-emails";
1280
1284
  emails: string[];
1281
1285
  };
1282
- created_at_millis: number;
1283
- notification_category_id: string | null;
1284
- updated_at_millis: number;
1285
- tsx_source: string;
1286
- theme_id: string | null;
1287
1286
  variables: Record<string, {} | null>;
1288
1287
  skip_deliverability_check: boolean;
1289
1288
  scheduled_at_millis: number;
@@ -1308,32 +1307,32 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1308
1307
  rendered_at_millis: number;
1309
1308
  is_transactional: boolean;
1310
1309
  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
1316
  status: "clicked";
1317
- html: string | null;
1318
- text: string | null;
1319
1317
  id: string;
1318
+ created_at_millis: number;
1320
1319
  subject: string;
1320
+ html: string | null;
1321
+ text: string | null;
1322
+ updated_at_millis: number;
1323
+ tsx_source: string;
1324
+ theme_id: string | null;
1321
1325
  to: {
1322
- user_id: string;
1323
1326
  type: "user-primary-email";
1324
- } | {
1325
1327
  user_id: string;
1328
+ } | {
1326
1329
  type: "user-custom-emails";
1330
+ user_id: string;
1327
1331
  emails: string[];
1328
1332
  } | {
1329
1333
  type: "custom-emails";
1330
1334
  emails: string[];
1331
1335
  };
1332
- created_at_millis: number;
1333
- notification_category_id: string | null;
1334
- updated_at_millis: number;
1335
- tsx_source: string;
1336
- theme_id: string | null;
1337
1336
  variables: Record<string, {} | null>;
1338
1337
  skip_deliverability_check: boolean;
1339
1338
  scheduled_at_millis: number;
@@ -1358,32 +1357,32 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1358
1357
  rendered_at_millis: number;
1359
1358
  is_transactional: boolean;
1360
1359
  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
1366
  status: "marked-as-spam";
1367
- html: string | null;
1368
- text: string | null;
1369
1367
  id: string;
1368
+ created_at_millis: number;
1370
1369
  subject: string;
1370
+ html: string | null;
1371
+ text: string | null;
1372
+ updated_at_millis: number;
1373
+ tsx_source: string;
1374
+ theme_id: string | null;
1371
1375
  to: {
1372
- user_id: string;
1373
1376
  type: "user-primary-email";
1374
- } | {
1375
1377
  user_id: string;
1378
+ } | {
1376
1379
  type: "user-custom-emails";
1380
+ user_id: string;
1377
1381
  emails: string[];
1378
1382
  } | {
1379
1383
  type: "custom-emails";
1380
1384
  emails: string[];
1381
1385
  };
1382
- created_at_millis: number;
1383
- notification_category_id: string | null;
1384
- updated_at_millis: number;
1385
- tsx_source: string;
1386
- theme_id: string | null;
1387
1386
  variables: Record<string, {} | null>;
1388
1387
  skip_deliverability_check: boolean;
1389
1388
  scheduled_at_millis: number;
@@ -1408,6 +1407,7 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1408
1407
  rendered_at_millis: number;
1409
1408
  is_transactional: boolean;
1410
1409
  is_high_priority: boolean;
1410
+ notification_category_id: string | null;
1411
1411
  started_sending_at_millis: number;
1412
1412
  delivered_at_millis: number;
1413
1413
  can_have_delivery_info: boolean;
@@ -1417,11 +1417,11 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1417
1417
  tsx_source: string | undefined;
1418
1418
  theme_id: string | null | undefined;
1419
1419
  to: {
1420
- user_id: string;
1421
1420
  type: "user-primary-email";
1422
- } | {
1423
1421
  user_id: string;
1422
+ } | {
1424
1423
  type: "user-custom-emails";
1424
+ user_id: string;
1425
1425
  emails: string[];
1426
1426
  } | {
1427
1427
  type: "custom-emails";