@hexclave/shared 1.0.16 → 1.0.18

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