@hexclave/shared 1.0.38 → 1.0.39

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