@hexclave/shared 1.0.26 → 1.0.27

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 (31) hide show
  1. package/dist/config/schema.d.ts +167 -167
  2. package/dist/esm/config/schema.d.ts +167 -167
  3. package/dist/esm/interface/admin-metrics.d.ts +16 -16
  4. package/dist/esm/interface/conversations.d.ts +36 -36
  5. package/dist/esm/interface/crud/current-user.d.ts +9 -9
  6. package/dist/esm/interface/crud/email-outbox.d.ts +226 -226
  7. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  8. package/dist/esm/interface/crud/products.d.ts +5 -5
  9. package/dist/esm/interface/crud/project-api-keys.d.ts +3 -3
  10. package/dist/esm/interface/crud/projects.d.ts +50 -50
  11. package/dist/esm/interface/crud/team-member-profiles.d.ts +22 -22
  12. package/dist/esm/interface/crud/transactions.d.ts +2 -2
  13. package/dist/esm/interface/crud/users.d.ts +18 -18
  14. package/dist/esm/interface/webhooks.d.ts +4 -4
  15. package/dist/esm/schema-fields.d.ts +1 -1
  16. package/dist/esm/sessions.d.ts +3 -3
  17. package/dist/interface/admin-metrics.d.ts +16 -16
  18. package/dist/interface/conversations.d.ts +36 -36
  19. package/dist/interface/crud/current-user.d.ts +9 -9
  20. package/dist/interface/crud/email-outbox.d.ts +226 -226
  21. package/dist/interface/crud/invoices.d.ts +2 -2
  22. package/dist/interface/crud/products.d.ts +5 -5
  23. package/dist/interface/crud/project-api-keys.d.ts +3 -3
  24. package/dist/interface/crud/projects.d.ts +50 -50
  25. package/dist/interface/crud/team-member-profiles.d.ts +22 -22
  26. package/dist/interface/crud/transactions.d.ts +2 -2
  27. package/dist/interface/crud/users.d.ts +18 -18
  28. package/dist/interface/webhooks.d.ts +4 -4
  29. package/dist/schema-fields.d.ts +1 -1
  30. package/dist/sessions.d.ts +3 -3
  31. package/package.json +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;
12
9
  to: {
13
- user_id: string;
14
10
  type: "user-primary-email";
15
- } | {
16
11
  user_id: string;
12
+ } | {
17
13
  type: "user-custom-emails";
14
+ user_id: string;
18
15
  emails: string[];
19
16
  } | {
20
17
  type: "custom-emails";
21
18
  emails: string[];
22
19
  };
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;
50
47
  to: {
51
- user_id: string;
52
48
  type: "user-primary-email";
53
- } | {
54
49
  user_id: string;
50
+ } | {
55
51
  type: "user-custom-emails";
52
+ user_id: string;
56
53
  emails: string[];
57
54
  } | {
58
55
  type: "custom-emails";
59
56
  emails: string[];
60
57
  };
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;
88
85
  to: {
89
- user_id: string;
90
86
  type: "user-primary-email";
91
- } | {
92
87
  user_id: string;
88
+ } | {
93
89
  type: "user-custom-emails";
90
+ user_id: string;
94
91
  emails: string[];
95
92
  } | {
96
93
  type: "custom-emails";
97
94
  emails: string[];
98
95
  };
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;
127
124
  to: {
128
- user_id: string;
129
125
  type: "user-primary-email";
130
- } | {
131
126
  user_id: string;
127
+ } | {
132
128
  type: "user-custom-emails";
129
+ user_id: string;
133
130
  emails: string[];
134
131
  } | {
135
132
  type: "custom-emails";
136
133
  emails: string[];
137
134
  };
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,26 @@ 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
+ subject: string;
165
+ created_at_millis: number;
164
166
  html: string | null;
165
167
  text: string | null;
166
- created_at_millis: number;
167
- updated_at_millis: number;
168
- tsx_source: string;
169
- theme_id: string | null;
170
168
  to: {
171
- user_id: string;
172
169
  type: "user-primary-email";
173
- } | {
174
170
  user_id: string;
171
+ } | {
175
172
  type: "user-custom-emails";
173
+ user_id: string;
176
174
  emails: string[];
177
175
  } | {
178
176
  type: "custom-emails";
179
177
  emails: string[];
180
178
  };
179
+ updated_at_millis: number;
180
+ tsx_source: string;
181
+ theme_id: string | null;
181
182
  variables: Record<string, {} | null>;
182
183
  skip_deliverability_check: boolean;
183
184
  scheduled_at_millis: number;
@@ -200,30 +201,30 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
200
201
  has_delivered: boolean;
201
202
  started_rendering_at_millis: number;
202
203
  rendered_at_millis: number;
203
- subject: string;
204
204
  is_transactional: boolean;
205
205
  is_high_priority: boolean;
206
206
  notification_category_id: string | null;
207
207
  } | {
208
- status: "queued";
209
208
  id: string;
209
+ status: "queued";
210
+ subject: string;
211
+ created_at_millis: number;
210
212
  html: string | null;
211
213
  text: string | null;
212
- created_at_millis: number;
213
- updated_at_millis: number;
214
- tsx_source: string;
215
- theme_id: string | null;
216
214
  to: {
217
- user_id: string;
218
215
  type: "user-primary-email";
219
- } | {
220
216
  user_id: string;
217
+ } | {
221
218
  type: "user-custom-emails";
219
+ user_id: string;
222
220
  emails: string[];
223
221
  } | {
224
222
  type: "custom-emails";
225
223
  emails: string[];
226
224
  };
225
+ updated_at_millis: number;
226
+ tsx_source: string;
227
+ theme_id: string | null;
227
228
  variables: Record<string, {} | null>;
228
229
  skip_deliverability_check: boolean;
229
230
  scheduled_at_millis: number;
@@ -246,30 +247,30 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
246
247
  has_delivered: boolean;
247
248
  started_rendering_at_millis: number;
248
249
  rendered_at_millis: number;
249
- subject: string;
250
250
  is_transactional: boolean;
251
251
  is_high_priority: boolean;
252
252
  notification_category_id: string | null;
253
253
  } | {
254
- status: "sending";
255
254
  id: string;
255
+ status: "sending";
256
+ subject: string;
257
+ created_at_millis: number;
256
258
  html: string | null;
257
259
  text: string | null;
258
- created_at_millis: number;
259
- updated_at_millis: number;
260
- tsx_source: string;
261
- theme_id: string | null;
262
260
  to: {
263
- user_id: string;
264
261
  type: "user-primary-email";
265
- } | {
266
262
  user_id: string;
263
+ } | {
267
264
  type: "user-custom-emails";
265
+ user_id: string;
268
266
  emails: string[];
269
267
  } | {
270
268
  type: "custom-emails";
271
269
  emails: string[];
272
270
  };
271
+ updated_at_millis: number;
272
+ tsx_source: string;
273
+ theme_id: string | null;
273
274
  variables: Record<string, {} | null>;
274
275
  skip_deliverability_check: boolean;
275
276
  scheduled_at_millis: number;
@@ -292,31 +293,31 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
292
293
  has_delivered: boolean;
293
294
  started_rendering_at_millis: number;
294
295
  rendered_at_millis: number;
295
- subject: string;
296
296
  is_transactional: boolean;
297
297
  is_high_priority: boolean;
298
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
+ subject: string;
304
+ created_at_millis: number;
303
305
  html: string | null;
304
306
  text: string | null;
305
- created_at_millis: number;
306
- updated_at_millis: number;
307
- tsx_source: string;
308
- theme_id: string | null;
309
307
  to: {
310
- user_id: string;
311
308
  type: "user-primary-email";
312
- } | {
313
309
  user_id: string;
310
+ } | {
314
311
  type: "user-custom-emails";
312
+ user_id: string;
315
313
  emails: string[];
316
314
  } | {
317
315
  type: "custom-emails";
318
316
  emails: string[];
319
317
  };
318
+ updated_at_millis: number;
319
+ tsx_source: string;
320
+ theme_id: string | null;
320
321
  variables: Record<string, {} | null>;
321
322
  skip_deliverability_check: boolean;
322
323
  scheduled_at_millis: number;
@@ -339,7 +340,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
339
340
  has_delivered: boolean;
340
341
  started_rendering_at_millis: number;
341
342
  rendered_at_millis: number;
342
- subject: string;
343
343
  is_transactional: boolean;
344
344
  is_high_priority: boolean;
345
345
  notification_category_id: string | null;
@@ -347,32 +347,32 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
347
347
  error_at_millis: number;
348
348
  server_error: string;
349
349
  } | {
350
+ subject?: string | undefined;
350
351
  html?: string | null | undefined;
351
352
  text?: string | null | undefined;
352
353
  started_rendering_at_millis?: number | undefined;
353
354
  rendered_at_millis?: number | undefined;
354
- subject?: string | undefined;
355
355
  is_transactional?: boolean | undefined;
356
356
  is_high_priority?: boolean | undefined;
357
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;
365
362
  to: {
366
- user_id: string;
367
363
  type: "user-primary-email";
368
- } | {
369
364
  user_id: string;
365
+ } | {
370
366
  type: "user-custom-emails";
367
+ user_id: string;
371
368
  emails: string[];
372
369
  } | {
373
370
  type: "custom-emails";
374
371
  emails: string[];
375
372
  };
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,26 @@ 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
+ subject: string;
403
+ created_at_millis: number;
402
404
  html: string | null;
403
405
  text: string | null;
404
- created_at_millis: number;
405
- updated_at_millis: number;
406
- tsx_source: string;
407
- theme_id: string | null;
408
406
  to: {
409
- user_id: string;
410
407
  type: "user-primary-email";
411
- } | {
412
408
  user_id: string;
409
+ } | {
413
410
  type: "user-custom-emails";
411
+ user_id: string;
414
412
  emails: string[];
415
413
  } | {
416
414
  type: "custom-emails";
417
415
  emails: string[];
418
416
  };
417
+ updated_at_millis: number;
418
+ tsx_source: string;
419
+ theme_id: string | null;
419
420
  variables: Record<string, {} | null>;
420
421
  skip_deliverability_check: boolean;
421
422
  scheduled_at_millis: number;
@@ -438,32 +439,32 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
438
439
  has_delivered: boolean;
439
440
  started_rendering_at_millis: number;
440
441
  rendered_at_millis: number;
441
- subject: string;
442
442
  is_transactional: boolean;
443
443
  is_high_priority: boolean;
444
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
+ subject: string;
451
+ created_at_millis: number;
450
452
  html: string | null;
451
453
  text: string | null;
452
- created_at_millis: number;
453
- updated_at_millis: number;
454
- tsx_source: string;
455
- theme_id: string | null;
456
454
  to: {
457
- user_id: string;
458
455
  type: "user-primary-email";
459
- } | {
460
456
  user_id: string;
457
+ } | {
461
458
  type: "user-custom-emails";
459
+ user_id: string;
462
460
  emails: string[];
463
461
  } | {
464
462
  type: "custom-emails";
465
463
  emails: string[];
466
464
  };
465
+ updated_at_millis: number;
466
+ tsx_source: string;
467
+ theme_id: string | null;
467
468
  variables: Record<string, {} | null>;
468
469
  skip_deliverability_check: boolean;
469
470
  scheduled_at_millis: number;
@@ -486,32 +487,32 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
486
487
  has_delivered: boolean;
487
488
  started_rendering_at_millis: number;
488
489
  rendered_at_millis: number;
489
- subject: string;
490
490
  is_transactional: boolean;
491
491
  is_high_priority: boolean;
492
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
+ subject: string;
499
+ created_at_millis: number;
498
500
  html: string | null;
499
501
  text: string | null;
500
- created_at_millis: number;
501
- updated_at_millis: number;
502
- tsx_source: string;
503
- theme_id: string | null;
504
502
  to: {
505
- user_id: string;
506
503
  type: "user-primary-email";
507
- } | {
508
504
  user_id: string;
505
+ } | {
509
506
  type: "user-custom-emails";
507
+ user_id: string;
510
508
  emails: string[];
511
509
  } | {
512
510
  type: "custom-emails";
513
511
  emails: string[];
514
512
  };
513
+ updated_at_millis: number;
514
+ tsx_source: string;
515
+ theme_id: string | null;
515
516
  variables: Record<string, {} | null>;
516
517
  skip_deliverability_check: boolean;
517
518
  scheduled_at_millis: number;
@@ -534,7 +535,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
534
535
  has_delivered: boolean;
535
536
  started_rendering_at_millis: number;
536
537
  rendered_at_millis: number;
537
- subject: string;
538
538
  is_transactional: boolean;
539
539
  is_high_priority: boolean;
540
540
  notification_category_id: string | null;
@@ -542,25 +542,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
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
+ subject: string;
548
+ created_at_millis: number;
547
549
  html: string | null;
548
550
  text: string | null;
549
- created_at_millis: number;
550
- updated_at_millis: number;
551
- tsx_source: string;
552
- theme_id: string | null;
553
551
  to: {
554
- user_id: string;
555
552
  type: "user-primary-email";
556
- } | {
557
553
  user_id: string;
554
+ } | {
558
555
  type: "user-custom-emails";
556
+ user_id: string;
559
557
  emails: string[];
560
558
  } | {
561
559
  type: "custom-emails";
562
560
  emails: string[];
563
561
  };
562
+ updated_at_millis: number;
563
+ tsx_source: string;
564
+ theme_id: string | null;
564
565
  variables: Record<string, {} | null>;
565
566
  skip_deliverability_check: boolean;
566
567
  scheduled_at_millis: number;
@@ -583,7 +584,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
583
584
  has_delivered: boolean;
584
585
  started_rendering_at_millis: number;
585
586
  rendered_at_millis: number;
586
- subject: string;
587
587
  is_transactional: boolean;
588
588
  is_high_priority: boolean;
589
589
  notification_category_id: string | null;
@@ -592,25 +592,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
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
+ subject: string;
598
+ created_at_millis: number;
597
599
  html: string | null;
598
600
  text: string | null;
599
- created_at_millis: number;
600
- updated_at_millis: number;
601
- tsx_source: string;
602
- theme_id: string | null;
603
601
  to: {
604
- user_id: string;
605
602
  type: "user-primary-email";
606
- } | {
607
603
  user_id: string;
604
+ } | {
608
605
  type: "user-custom-emails";
606
+ user_id: string;
609
607
  emails: string[];
610
608
  } | {
611
609
  type: "custom-emails";
612
610
  emails: string[];
613
611
  };
612
+ updated_at_millis: number;
613
+ tsx_source: string;
614
+ theme_id: string | null;
614
615
  variables: Record<string, {} | null>;
615
616
  skip_deliverability_check: boolean;
616
617
  scheduled_at_millis: number;
@@ -633,7 +634,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
633
634
  has_delivered: boolean;
634
635
  started_rendering_at_millis: number;
635
636
  rendered_at_millis: number;
636
- subject: string;
637
637
  is_transactional: boolean;
638
638
  is_high_priority: boolean;
639
639
  notification_category_id: string | null;
@@ -642,25 +642,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
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
+ subject: string;
648
+ created_at_millis: number;
647
649
  html: string | null;
648
650
  text: string | null;
649
- created_at_millis: number;
650
- updated_at_millis: number;
651
- tsx_source: string;
652
- theme_id: string | null;
653
651
  to: {
654
- user_id: string;
655
652
  type: "user-primary-email";
656
- } | {
657
653
  user_id: string;
654
+ } | {
658
655
  type: "user-custom-emails";
656
+ user_id: string;
659
657
  emails: string[];
660
658
  } | {
661
659
  type: "custom-emails";
662
660
  emails: string[];
663
661
  };
662
+ updated_at_millis: number;
663
+ tsx_source: string;
664
+ theme_id: string | null;
664
665
  variables: Record<string, {} | null>;
665
666
  skip_deliverability_check: boolean;
666
667
  scheduled_at_millis: number;
@@ -683,7 +684,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
683
684
  has_delivered: boolean;
684
685
  started_rendering_at_millis: number;
685
686
  rendered_at_millis: number;
686
- subject: string;
687
687
  is_transactional: boolean;
688
688
  is_high_priority: boolean;
689
689
  notification_category_id: string | null;
@@ -696,11 +696,11 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
696
696
  tsx_source: string | undefined;
697
697
  theme_id: string | null | undefined;
698
698
  to: {
699
- user_id: string;
700
699
  type: "user-primary-email";
701
- } | {
702
700
  user_id: string;
701
+ } | {
703
702
  type: "user-custom-emails";
703
+ user_id: string;
704
704
  emails: string[];
705
705
  } | {
706
706
  type: "custom-emails";
@@ -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;
732
729
  to: {
733
- user_id: string;
734
730
  type: "user-primary-email";
735
- } | {
736
731
  user_id: string;
732
+ } | {
737
733
  type: "user-custom-emails";
734
+ user_id: string;
738
735
  emails: string[];
739
736
  } | {
740
737
  type: "custom-emails";
741
738
  emails: string[];
742
739
  };
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;
@@ -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;
770
767
  to: {
771
- user_id: string;
772
768
  type: "user-primary-email";
773
- } | {
774
769
  user_id: string;
770
+ } | {
775
771
  type: "user-custom-emails";
772
+ user_id: string;
776
773
  emails: string[];
777
774
  } | {
778
775
  type: "custom-emails";
779
776
  emails: string[];
780
777
  };
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;
808
805
  to: {
809
- user_id: string;
810
806
  type: "user-primary-email";
811
- } | {
812
807
  user_id: string;
808
+ } | {
813
809
  type: "user-custom-emails";
810
+ user_id: string;
814
811
  emails: string[];
815
812
  } | {
816
813
  type: "custom-emails";
817
814
  emails: string[];
818
815
  };
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;
847
844
  to: {
848
- user_id: string;
849
845
  type: "user-primary-email";
850
- } | {
851
846
  user_id: string;
847
+ } | {
852
848
  type: "user-custom-emails";
849
+ user_id: string;
853
850
  emails: string[];
854
851
  } | {
855
852
  type: "custom-emails";
856
853
  emails: string[];
857
854
  };
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,26 @@ 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
+ subject: string;
885
+ created_at_millis: number;
884
886
  html: string | null;
885
887
  text: string | null;
886
- created_at_millis: number;
887
- updated_at_millis: number;
888
- tsx_source: string;
889
- theme_id: string | null;
890
888
  to: {
891
- user_id: string;
892
889
  type: "user-primary-email";
893
- } | {
894
890
  user_id: string;
891
+ } | {
895
892
  type: "user-custom-emails";
893
+ user_id: string;
896
894
  emails: string[];
897
895
  } | {
898
896
  type: "custom-emails";
899
897
  emails: string[];
900
898
  };
899
+ updated_at_millis: number;
900
+ tsx_source: string;
901
+ theme_id: string | null;
901
902
  variables: Record<string, {} | null>;
902
903
  skip_deliverability_check: boolean;
903
904
  scheduled_at_millis: number;
@@ -920,30 +921,30 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
920
921
  has_delivered: boolean;
921
922
  started_rendering_at_millis: number;
922
923
  rendered_at_millis: number;
923
- subject: string;
924
924
  is_transactional: boolean;
925
925
  is_high_priority: boolean;
926
926
  notification_category_id: string | null;
927
927
  } | {
928
- status: "queued";
929
928
  id: string;
929
+ status: "queued";
930
+ subject: string;
931
+ created_at_millis: number;
930
932
  html: string | null;
931
933
  text: string | null;
932
- created_at_millis: number;
933
- updated_at_millis: number;
934
- tsx_source: string;
935
- theme_id: string | null;
936
934
  to: {
937
- user_id: string;
938
935
  type: "user-primary-email";
939
- } | {
940
936
  user_id: string;
937
+ } | {
941
938
  type: "user-custom-emails";
939
+ user_id: string;
942
940
  emails: string[];
943
941
  } | {
944
942
  type: "custom-emails";
945
943
  emails: string[];
946
944
  };
945
+ updated_at_millis: number;
946
+ tsx_source: string;
947
+ theme_id: string | null;
947
948
  variables: Record<string, {} | null>;
948
949
  skip_deliverability_check: boolean;
949
950
  scheduled_at_millis: number;
@@ -966,30 +967,30 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
966
967
  has_delivered: boolean;
967
968
  started_rendering_at_millis: number;
968
969
  rendered_at_millis: number;
969
- subject: string;
970
970
  is_transactional: boolean;
971
971
  is_high_priority: boolean;
972
972
  notification_category_id: string | null;
973
973
  } | {
974
- status: "sending";
975
974
  id: string;
975
+ status: "sending";
976
+ subject: string;
977
+ created_at_millis: number;
976
978
  html: string | null;
977
979
  text: string | null;
978
- created_at_millis: number;
979
- updated_at_millis: number;
980
- tsx_source: string;
981
- theme_id: string | null;
982
980
  to: {
983
- user_id: string;
984
981
  type: "user-primary-email";
985
- } | {
986
982
  user_id: string;
983
+ } | {
987
984
  type: "user-custom-emails";
985
+ user_id: string;
988
986
  emails: string[];
989
987
  } | {
990
988
  type: "custom-emails";
991
989
  emails: string[];
992
990
  };
991
+ updated_at_millis: number;
992
+ tsx_source: string;
993
+ theme_id: string | null;
993
994
  variables: Record<string, {} | null>;
994
995
  skip_deliverability_check: boolean;
995
996
  scheduled_at_millis: number;
@@ -1012,31 +1013,31 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1012
1013
  has_delivered: boolean;
1013
1014
  started_rendering_at_millis: number;
1014
1015
  rendered_at_millis: number;
1015
- subject: string;
1016
1016
  is_transactional: boolean;
1017
1017
  is_high_priority: boolean;
1018
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
+ subject: string;
1024
+ created_at_millis: number;
1023
1025
  html: string | null;
1024
1026
  text: string | null;
1025
- created_at_millis: number;
1026
- updated_at_millis: number;
1027
- tsx_source: string;
1028
- theme_id: string | null;
1029
1027
  to: {
1030
- user_id: string;
1031
1028
  type: "user-primary-email";
1032
- } | {
1033
1029
  user_id: string;
1030
+ } | {
1034
1031
  type: "user-custom-emails";
1032
+ user_id: string;
1035
1033
  emails: string[];
1036
1034
  } | {
1037
1035
  type: "custom-emails";
1038
1036
  emails: string[];
1039
1037
  };
1038
+ updated_at_millis: number;
1039
+ tsx_source: string;
1040
+ theme_id: string | null;
1040
1041
  variables: Record<string, {} | null>;
1041
1042
  skip_deliverability_check: boolean;
1042
1043
  scheduled_at_millis: number;
@@ -1059,7 +1060,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1059
1060
  has_delivered: boolean;
1060
1061
  started_rendering_at_millis: number;
1061
1062
  rendered_at_millis: number;
1062
- subject: string;
1063
1063
  is_transactional: boolean;
1064
1064
  is_high_priority: boolean;
1065
1065
  notification_category_id: string | null;
@@ -1067,32 +1067,32 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1067
1067
  error_at_millis: number;
1068
1068
  server_error: string;
1069
1069
  } | {
1070
+ subject?: string | undefined;
1070
1071
  html?: string | null | undefined;
1071
1072
  text?: string | null | undefined;
1072
1073
  started_rendering_at_millis?: number | undefined;
1073
1074
  rendered_at_millis?: number | undefined;
1074
- subject?: string | undefined;
1075
1075
  is_transactional?: boolean | undefined;
1076
1076
  is_high_priority?: boolean | undefined;
1077
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;
1085
1082
  to: {
1086
- user_id: string;
1087
1083
  type: "user-primary-email";
1088
- } | {
1089
1084
  user_id: string;
1085
+ } | {
1090
1086
  type: "user-custom-emails";
1087
+ user_id: string;
1091
1088
  emails: string[];
1092
1089
  } | {
1093
1090
  type: "custom-emails";
1094
1091
  emails: string[];
1095
1092
  };
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,26 @@ 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
+ subject: string;
1123
+ created_at_millis: number;
1122
1124
  html: string | null;
1123
1125
  text: string | null;
1124
- created_at_millis: number;
1125
- updated_at_millis: number;
1126
- tsx_source: string;
1127
- theme_id: string | null;
1128
1126
  to: {
1129
- user_id: string;
1130
1127
  type: "user-primary-email";
1131
- } | {
1132
1128
  user_id: string;
1129
+ } | {
1133
1130
  type: "user-custom-emails";
1131
+ user_id: string;
1134
1132
  emails: string[];
1135
1133
  } | {
1136
1134
  type: "custom-emails";
1137
1135
  emails: string[];
1138
1136
  };
1137
+ updated_at_millis: number;
1138
+ tsx_source: string;
1139
+ theme_id: string | null;
1139
1140
  variables: Record<string, {} | null>;
1140
1141
  skip_deliverability_check: boolean;
1141
1142
  scheduled_at_millis: number;
@@ -1158,32 +1159,32 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1158
1159
  has_delivered: boolean;
1159
1160
  started_rendering_at_millis: number;
1160
1161
  rendered_at_millis: number;
1161
- subject: string;
1162
1162
  is_transactional: boolean;
1163
1163
  is_high_priority: boolean;
1164
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
+ subject: string;
1171
+ created_at_millis: number;
1170
1172
  html: string | null;
1171
1173
  text: string | null;
1172
- created_at_millis: number;
1173
- updated_at_millis: number;
1174
- tsx_source: string;
1175
- theme_id: string | null;
1176
1174
  to: {
1177
- user_id: string;
1178
1175
  type: "user-primary-email";
1179
- } | {
1180
1176
  user_id: string;
1177
+ } | {
1181
1178
  type: "user-custom-emails";
1179
+ user_id: string;
1182
1180
  emails: string[];
1183
1181
  } | {
1184
1182
  type: "custom-emails";
1185
1183
  emails: string[];
1186
1184
  };
1185
+ updated_at_millis: number;
1186
+ tsx_source: string;
1187
+ theme_id: string | null;
1187
1188
  variables: Record<string, {} | null>;
1188
1189
  skip_deliverability_check: boolean;
1189
1190
  scheduled_at_millis: number;
@@ -1206,32 +1207,32 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1206
1207
  has_delivered: boolean;
1207
1208
  started_rendering_at_millis: number;
1208
1209
  rendered_at_millis: number;
1209
- subject: string;
1210
1210
  is_transactional: boolean;
1211
1211
  is_high_priority: boolean;
1212
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
+ subject: string;
1219
+ created_at_millis: number;
1218
1220
  html: string | null;
1219
1221
  text: string | null;
1220
- created_at_millis: number;
1221
- updated_at_millis: number;
1222
- tsx_source: string;
1223
- theme_id: string | null;
1224
1222
  to: {
1225
- user_id: string;
1226
1223
  type: "user-primary-email";
1227
- } | {
1228
1224
  user_id: string;
1225
+ } | {
1229
1226
  type: "user-custom-emails";
1227
+ user_id: string;
1230
1228
  emails: string[];
1231
1229
  } | {
1232
1230
  type: "custom-emails";
1233
1231
  emails: string[];
1234
1232
  };
1233
+ updated_at_millis: number;
1234
+ tsx_source: string;
1235
+ theme_id: string | null;
1235
1236
  variables: Record<string, {} | null>;
1236
1237
  skip_deliverability_check: boolean;
1237
1238
  scheduled_at_millis: number;
@@ -1254,7 +1255,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1254
1255
  has_delivered: boolean;
1255
1256
  started_rendering_at_millis: number;
1256
1257
  rendered_at_millis: number;
1257
- subject: string;
1258
1258
  is_transactional: boolean;
1259
1259
  is_high_priority: boolean;
1260
1260
  notification_category_id: string | null;
@@ -1262,25 +1262,26 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
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
+ subject: string;
1268
+ created_at_millis: number;
1267
1269
  html: string | null;
1268
1270
  text: string | null;
1269
- created_at_millis: number;
1270
- updated_at_millis: number;
1271
- tsx_source: string;
1272
- theme_id: string | null;
1273
1271
  to: {
1274
- user_id: string;
1275
1272
  type: "user-primary-email";
1276
- } | {
1277
1273
  user_id: string;
1274
+ } | {
1278
1275
  type: "user-custom-emails";
1276
+ user_id: string;
1279
1277
  emails: string[];
1280
1278
  } | {
1281
1279
  type: "custom-emails";
1282
1280
  emails: string[];
1283
1281
  };
1282
+ updated_at_millis: number;
1283
+ tsx_source: string;
1284
+ theme_id: string | null;
1284
1285
  variables: Record<string, {} | null>;
1285
1286
  skip_deliverability_check: boolean;
1286
1287
  scheduled_at_millis: number;
@@ -1303,7 +1304,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1303
1304
  has_delivered: boolean;
1304
1305
  started_rendering_at_millis: number;
1305
1306
  rendered_at_millis: number;
1306
- subject: string;
1307
1307
  is_transactional: boolean;
1308
1308
  is_high_priority: boolean;
1309
1309
  notification_category_id: string | null;
@@ -1312,25 +1312,26 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
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
+ subject: string;
1318
+ created_at_millis: number;
1317
1319
  html: string | null;
1318
1320
  text: string | null;
1319
- created_at_millis: number;
1320
- updated_at_millis: number;
1321
- tsx_source: string;
1322
- theme_id: string | null;
1323
1321
  to: {
1324
- user_id: string;
1325
1322
  type: "user-primary-email";
1326
- } | {
1327
1323
  user_id: string;
1324
+ } | {
1328
1325
  type: "user-custom-emails";
1326
+ user_id: string;
1329
1327
  emails: string[];
1330
1328
  } | {
1331
1329
  type: "custom-emails";
1332
1330
  emails: string[];
1333
1331
  };
1332
+ updated_at_millis: number;
1333
+ tsx_source: string;
1334
+ theme_id: string | null;
1334
1335
  variables: Record<string, {} | null>;
1335
1336
  skip_deliverability_check: boolean;
1336
1337
  scheduled_at_millis: number;
@@ -1353,7 +1354,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1353
1354
  has_delivered: boolean;
1354
1355
  started_rendering_at_millis: number;
1355
1356
  rendered_at_millis: number;
1356
- subject: string;
1357
1357
  is_transactional: boolean;
1358
1358
  is_high_priority: boolean;
1359
1359
  notification_category_id: string | null;
@@ -1362,25 +1362,26 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
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
+ subject: string;
1368
+ created_at_millis: number;
1367
1369
  html: string | null;
1368
1370
  text: string | null;
1369
- created_at_millis: number;
1370
- updated_at_millis: number;
1371
- tsx_source: string;
1372
- theme_id: string | null;
1373
1371
  to: {
1374
- user_id: string;
1375
1372
  type: "user-primary-email";
1376
- } | {
1377
1373
  user_id: string;
1374
+ } | {
1378
1375
  type: "user-custom-emails";
1376
+ user_id: string;
1379
1377
  emails: string[];
1380
1378
  } | {
1381
1379
  type: "custom-emails";
1382
1380
  emails: string[];
1383
1381
  };
1382
+ updated_at_millis: number;
1383
+ tsx_source: string;
1384
+ theme_id: string | null;
1384
1385
  variables: Record<string, {} | null>;
1385
1386
  skip_deliverability_check: boolean;
1386
1387
  scheduled_at_millis: number;
@@ -1403,7 +1404,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1403
1404
  has_delivered: boolean;
1404
1405
  started_rendering_at_millis: number;
1405
1406
  rendered_at_millis: number;
1406
- subject: string;
1407
1407
  is_transactional: boolean;
1408
1408
  is_high_priority: boolean;
1409
1409
  notification_category_id: string | null;
@@ -1416,11 +1416,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1416
1416
  tsx_source: string | undefined;
1417
1417
  theme_id: string | null | undefined;
1418
1418
  to: {
1419
- user_id: string;
1420
1419
  type: "user-primary-email";
1421
- } | {
1422
1420
  user_id: string;
1421
+ } | {
1423
1422
  type: "user-custom-emails";
1423
+ user_id: string;
1424
1424
  emails: string[];
1425
1425
  } | {
1426
1426
  type: "custom-emails";