@hexclave/shared 1.0.2 → 1.0.3

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