@hexclave/shared 1.0.32 → 1.0.34

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