@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
@@ -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
- id: string;
8
7
  status: "paused";
8
+ id: string;
9
9
  created_at_millis: number;
10
- updated_at_millis: number;
11
- tsx_source: string;
12
- theme_id: string | null;
13
10
  to: {
14
- type: "user-primary-email";
15
11
  user_id: string;
12
+ type: "user-primary-email";
16
13
  } | {
17
- emails: string[];
18
- type: "user-custom-emails";
19
14
  user_id: string;
20
- } | {
15
+ type: "user-custom-emails";
21
16
  emails: string[];
17
+ } | {
22
18
  type: "custom-emails";
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
- id: string;
46
45
  status: "preparing";
46
+ id: string;
47
47
  created_at_millis: number;
48
- updated_at_millis: number;
49
- tsx_source: string;
50
- theme_id: string | null;
51
48
  to: {
52
- type: "user-primary-email";
53
49
  user_id: string;
50
+ type: "user-primary-email";
54
51
  } | {
55
- emails: string[];
56
- type: "user-custom-emails";
57
52
  user_id: string;
58
- } | {
53
+ type: "user-custom-emails";
59
54
  emails: string[];
55
+ } | {
60
56
  type: "custom-emails";
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
- id: string;
84
83
  status: "rendering";
84
+ id: string;
85
85
  created_at_millis: number;
86
- updated_at_millis: number;
87
- tsx_source: string;
88
- theme_id: string | null;
89
86
  to: {
90
- type: "user-primary-email";
91
87
  user_id: string;
88
+ type: "user-primary-email";
92
89
  } | {
93
- emails: string[];
94
- type: "user-custom-emails";
95
90
  user_id: string;
96
- } | {
91
+ type: "user-custom-emails";
97
92
  emails: string[];
93
+ } | {
98
94
  type: "custom-emails";
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
- id: string;
123
122
  status: "render-error";
123
+ id: string;
124
124
  created_at_millis: number;
125
- updated_at_millis: number;
126
- tsx_source: string;
127
- theme_id: string | null;
128
125
  to: {
129
- type: "user-primary-email";
130
126
  user_id: string;
127
+ type: "user-primary-email";
131
128
  } | {
132
- emails: string[];
133
- type: "user-custom-emails";
134
129
  user_id: string;
135
- } | {
130
+ type: "user-custom-emails";
136
131
  emails: string[];
132
+ } | {
137
133
  type: "custom-emails";
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
- html: string | null;
164
- text: string | null;
165
- id: string;
166
163
  status: "scheduled";
164
+ id: string;
167
165
  subject: string;
168
166
  created_at_millis: number;
169
- updated_at_millis: number;
170
- tsx_source: string;
171
- theme_id: string | null;
167
+ html: string | null;
168
+ text: string | null;
172
169
  to: {
173
- type: "user-primary-email";
174
170
  user_id: string;
171
+ type: "user-primary-email";
175
172
  } | {
176
- emails: string[];
177
- type: "user-custom-emails";
178
173
  user_id: string;
179
- } | {
174
+ type: "user-custom-emails";
180
175
  emails: string[];
176
+ } | {
181
177
  type: "custom-emails";
178
+ emails: string[];
182
179
  };
180
+ notification_category_id: string | null;
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
- html: string | null;
210
- text: string | null;
211
- id: string;
212
209
  status: "queued";
210
+ id: string;
213
211
  subject: string;
214
212
  created_at_millis: number;
215
- updated_at_millis: number;
216
- tsx_source: string;
217
- theme_id: string | null;
213
+ html: string | null;
214
+ text: string | null;
218
215
  to: {
219
- type: "user-primary-email";
220
216
  user_id: string;
217
+ type: "user-primary-email";
221
218
  } | {
222
- emails: string[];
223
- type: "user-custom-emails";
224
219
  user_id: string;
225
- } | {
220
+ type: "user-custom-emails";
226
221
  emails: string[];
222
+ } | {
227
223
  type: "custom-emails";
224
+ emails: string[];
228
225
  };
226
+ notification_category_id: string | null;
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
- html: string | null;
256
- text: string | null;
257
- id: string;
258
255
  status: "sending";
256
+ id: string;
259
257
  subject: string;
260
258
  created_at_millis: number;
261
- updated_at_millis: number;
262
- tsx_source: string;
263
- theme_id: string | null;
259
+ html: string | null;
260
+ text: string | null;
264
261
  to: {
265
- type: "user-primary-email";
266
262
  user_id: string;
263
+ type: "user-primary-email";
267
264
  } | {
268
- emails: string[];
269
- type: "user-custom-emails";
270
265
  user_id: string;
271
- } | {
266
+ type: "user-custom-emails";
272
267
  emails: string[];
268
+ } | {
273
269
  type: "custom-emails";
270
+ emails: string[];
274
271
  };
272
+ notification_category_id: string | null;
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
- html: string | null;
303
- text: string | null;
304
- id: string;
305
302
  status: "server-error";
303
+ id: string;
306
304
  subject: string;
307
305
  created_at_millis: number;
308
- updated_at_millis: number;
309
- tsx_source: string;
310
- theme_id: string | null;
306
+ html: string | null;
307
+ text: string | null;
311
308
  to: {
312
- type: "user-primary-email";
313
309
  user_id: string;
310
+ type: "user-primary-email";
314
311
  } | {
315
- emails: string[];
316
- type: "user-custom-emails";
317
312
  user_id: string;
318
- } | {
313
+ type: "user-custom-emails";
319
314
  emails: string[];
315
+ } | {
320
316
  type: "custom-emails";
317
+ emails: string[];
321
318
  };
319
+ notification_category_id: string | null;
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;
351
352
  html?: string | null | undefined;
352
353
  text?: string | null | undefined;
353
- subject?: string | undefined;
354
+ notification_category_id?: string | null | 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
- id: string;
361
360
  status: "skipped";
361
+ id: string;
362
362
  created_at_millis: number;
363
- updated_at_millis: number;
364
- tsx_source: string;
365
- theme_id: string | null;
366
363
  to: {
367
- type: "user-primary-email";
368
364
  user_id: string;
365
+ type: "user-primary-email";
369
366
  } | {
370
- emails: string[];
371
- type: "user-custom-emails";
372
367
  user_id: string;
373
- } | {
368
+ type: "user-custom-emails";
374
369
  emails: string[];
370
+ } | {
375
371
  type: "custom-emails";
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
- html: string | null;
402
- text: string | null;
403
- id: string;
404
401
  status: "bounced";
402
+ id: string;
405
403
  subject: string;
406
404
  created_at_millis: number;
407
- updated_at_millis: number;
408
- tsx_source: string;
409
- theme_id: string | null;
405
+ html: string | null;
406
+ text: string | null;
410
407
  to: {
411
- type: "user-primary-email";
412
408
  user_id: string;
409
+ type: "user-primary-email";
413
410
  } | {
414
- emails: string[];
415
- type: "user-custom-emails";
416
411
  user_id: string;
417
- } | {
412
+ type: "user-custom-emails";
418
413
  emails: string[];
414
+ } | {
419
415
  type: "custom-emails";
416
+ emails: string[];
420
417
  };
418
+ notification_category_id: string | null;
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
- html: string | null;
450
- text: string | null;
451
- id: string;
452
449
  status: "delivery-delayed";
450
+ id: string;
453
451
  subject: string;
454
452
  created_at_millis: number;
455
- updated_at_millis: number;
456
- tsx_source: string;
457
- theme_id: string | null;
453
+ html: string | null;
454
+ text: string | null;
458
455
  to: {
459
- type: "user-primary-email";
460
456
  user_id: string;
457
+ type: "user-primary-email";
461
458
  } | {
462
- emails: string[];
463
- type: "user-custom-emails";
464
459
  user_id: string;
465
- } | {
460
+ type: "user-custom-emails";
466
461
  emails: string[];
462
+ } | {
467
463
  type: "custom-emails";
464
+ emails: string[];
468
465
  };
466
+ notification_category_id: string | null;
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
- html: string | null;
498
- text: string | null;
499
- id: string;
500
497
  status: "sent";
498
+ id: string;
501
499
  subject: string;
502
500
  created_at_millis: number;
503
- updated_at_millis: number;
504
- tsx_source: string;
505
- theme_id: string | null;
501
+ html: string | null;
502
+ text: string | null;
506
503
  to: {
507
- type: "user-primary-email";
508
504
  user_id: string;
505
+ type: "user-primary-email";
509
506
  } | {
510
- emails: string[];
511
- type: "user-custom-emails";
512
507
  user_id: string;
513
- } | {
508
+ type: "user-custom-emails";
514
509
  emails: string[];
510
+ } | {
515
511
  type: "custom-emails";
512
+ emails: string[];
516
513
  };
514
+ notification_category_id: string | null;
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
- html: string | null;
547
- text: string | null;
548
- id: string;
549
546
  status: "opened";
547
+ id: string;
550
548
  subject: string;
551
549
  created_at_millis: number;
552
- updated_at_millis: number;
553
- tsx_source: string;
554
- theme_id: string | null;
550
+ html: string | null;
551
+ text: string | null;
555
552
  to: {
556
- type: "user-primary-email";
557
553
  user_id: string;
554
+ type: "user-primary-email";
558
555
  } | {
559
- emails: string[];
560
- type: "user-custom-emails";
561
556
  user_id: string;
562
- } | {
557
+ type: "user-custom-emails";
563
558
  emails: string[];
559
+ } | {
564
560
  type: "custom-emails";
561
+ emails: string[];
565
562
  };
563
+ notification_category_id: string | null;
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
- html: string | null;
597
- text: string | null;
598
- id: string;
599
596
  status: "clicked";
597
+ id: string;
600
598
  subject: string;
601
599
  created_at_millis: number;
602
- updated_at_millis: number;
603
- tsx_source: string;
604
- theme_id: string | null;
600
+ html: string | null;
601
+ text: string | null;
605
602
  to: {
606
- type: "user-primary-email";
607
603
  user_id: string;
604
+ type: "user-primary-email";
608
605
  } | {
609
- emails: string[];
610
- type: "user-custom-emails";
611
606
  user_id: string;
612
- } | {
607
+ type: "user-custom-emails";
613
608
  emails: string[];
609
+ } | {
614
610
  type: "custom-emails";
611
+ emails: string[];
615
612
  };
613
+ notification_category_id: string | null;
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
- html: string | null;
647
- text: string | null;
648
- id: string;
649
646
  status: "marked-as-spam";
647
+ id: string;
650
648
  subject: string;
651
649
  created_at_millis: number;
652
- updated_at_millis: number;
653
- tsx_source: string;
654
- theme_id: string | null;
650
+ html: string | null;
651
+ text: string | null;
655
652
  to: {
656
- type: "user-primary-email";
657
653
  user_id: string;
654
+ type: "user-primary-email";
658
655
  } | {
659
- emails: string[];
660
- type: "user-custom-emails";
661
656
  user_id: string;
662
- } | {
657
+ type: "user-custom-emails";
663
658
  emails: string[];
659
+ } | {
664
660
  type: "custom-emails";
661
+ emails: string[];
665
662
  };
663
+ notification_category_id: string | null;
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,15 +697,15 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
697
697
  tsx_source: string | undefined;
698
698
  theme_id: string | null | undefined;
699
699
  to: {
700
- type: "user-primary-email";
701
700
  user_id: string;
701
+ type: "user-primary-email";
702
702
  } | {
703
- emails: string[];
704
- type: "user-custom-emails";
705
703
  user_id: string;
706
- } | {
704
+ type: "user-custom-emails";
707
705
  emails: string[];
706
+ } | {
708
707
  type: "custom-emails";
708
+ emails: string[];
709
709
  } | undefined;
710
710
  variables: Record<string, {} | null> | undefined;
711
711
  skip_deliverability_check: boolean | undefined;
@@ -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
- id: string;
728
727
  status: "paused";
728
+ id: string;
729
729
  created_at_millis: number;
730
- updated_at_millis: number;
731
- tsx_source: string;
732
- theme_id: string | null;
733
730
  to: {
734
- type: "user-primary-email";
735
731
  user_id: string;
732
+ type: "user-primary-email";
736
733
  } | {
737
- emails: string[];
738
- type: "user-custom-emails";
739
734
  user_id: string;
740
- } | {
735
+ type: "user-custom-emails";
741
736
  emails: string[];
737
+ } | {
742
738
  type: "custom-emails";
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
- id: string;
766
765
  status: "preparing";
766
+ id: string;
767
767
  created_at_millis: number;
768
- updated_at_millis: number;
769
- tsx_source: string;
770
- theme_id: string | null;
771
768
  to: {
772
- type: "user-primary-email";
773
769
  user_id: string;
770
+ type: "user-primary-email";
774
771
  } | {
775
- emails: string[];
776
- type: "user-custom-emails";
777
772
  user_id: string;
778
- } | {
773
+ type: "user-custom-emails";
779
774
  emails: string[];
775
+ } | {
780
776
  type: "custom-emails";
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
- id: string;
804
803
  status: "rendering";
804
+ id: string;
805
805
  created_at_millis: number;
806
- updated_at_millis: number;
807
- tsx_source: string;
808
- theme_id: string | null;
809
806
  to: {
810
- type: "user-primary-email";
811
807
  user_id: string;
808
+ type: "user-primary-email";
812
809
  } | {
813
- emails: string[];
814
- type: "user-custom-emails";
815
810
  user_id: string;
816
- } | {
811
+ type: "user-custom-emails";
817
812
  emails: string[];
813
+ } | {
818
814
  type: "custom-emails";
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
- id: string;
843
842
  status: "render-error";
843
+ id: string;
844
844
  created_at_millis: number;
845
- updated_at_millis: number;
846
- tsx_source: string;
847
- theme_id: string | null;
848
845
  to: {
849
- type: "user-primary-email";
850
- user_id: string;
851
- } | {
852
- emails: string[];
853
- type: "user-custom-emails";
854
846
  user_id: string;
847
+ type: "user-primary-email";
855
848
  } | {
849
+ user_id: string;
850
+ type: "user-custom-emails";
856
851
  emails: string[];
852
+ } | {
857
853
  type: "custom-emails";
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
- html: string | null;
884
- text: string | null;
885
- id: string;
886
883
  status: "scheduled";
884
+ id: string;
887
885
  subject: string;
888
886
  created_at_millis: number;
889
- updated_at_millis: number;
890
- tsx_source: string;
891
- theme_id: string | null;
887
+ html: string | null;
888
+ text: string | null;
892
889
  to: {
893
- type: "user-primary-email";
894
890
  user_id: string;
891
+ type: "user-primary-email";
895
892
  } | {
896
- emails: string[];
897
- type: "user-custom-emails";
898
893
  user_id: string;
899
- } | {
894
+ type: "user-custom-emails";
900
895
  emails: string[];
896
+ } | {
901
897
  type: "custom-emails";
898
+ emails: string[];
902
899
  };
900
+ notification_category_id: string | null;
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
- html: string | null;
930
- text: string | null;
931
- id: string;
932
929
  status: "queued";
930
+ id: string;
933
931
  subject: string;
934
932
  created_at_millis: number;
935
- updated_at_millis: number;
936
- tsx_source: string;
937
- theme_id: string | null;
933
+ html: string | null;
934
+ text: string | null;
938
935
  to: {
939
- type: "user-primary-email";
940
936
  user_id: string;
937
+ type: "user-primary-email";
941
938
  } | {
942
- emails: string[];
943
- type: "user-custom-emails";
944
939
  user_id: string;
945
- } | {
940
+ type: "user-custom-emails";
946
941
  emails: string[];
942
+ } | {
947
943
  type: "custom-emails";
944
+ emails: string[];
948
945
  };
946
+ notification_category_id: string | null;
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
- html: string | null;
976
- text: string | null;
977
- id: string;
978
975
  status: "sending";
976
+ id: string;
979
977
  subject: string;
980
978
  created_at_millis: number;
981
- updated_at_millis: number;
982
- tsx_source: string;
983
- theme_id: string | null;
979
+ html: string | null;
980
+ text: string | null;
984
981
  to: {
985
- type: "user-primary-email";
986
982
  user_id: string;
983
+ type: "user-primary-email";
987
984
  } | {
988
- emails: string[];
989
- type: "user-custom-emails";
990
985
  user_id: string;
991
- } | {
986
+ type: "user-custom-emails";
992
987
  emails: string[];
988
+ } | {
993
989
  type: "custom-emails";
990
+ emails: string[];
994
991
  };
992
+ notification_category_id: string | null;
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
- html: string | null;
1023
- text: string | null;
1024
- id: string;
1025
1022
  status: "server-error";
1023
+ id: string;
1026
1024
  subject: string;
1027
1025
  created_at_millis: number;
1028
- updated_at_millis: number;
1029
- tsx_source: string;
1030
- theme_id: string | null;
1026
+ html: string | null;
1027
+ text: string | null;
1031
1028
  to: {
1032
- type: "user-primary-email";
1033
1029
  user_id: string;
1030
+ type: "user-primary-email";
1034
1031
  } | {
1035
- emails: string[];
1036
- type: "user-custom-emails";
1037
1032
  user_id: string;
1038
- } | {
1033
+ type: "user-custom-emails";
1039
1034
  emails: string[];
1035
+ } | {
1040
1036
  type: "custom-emails";
1037
+ emails: string[];
1041
1038
  };
1039
+ notification_category_id: string | null;
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;
1071
1072
  html?: string | null | undefined;
1072
1073
  text?: string | null | undefined;
1073
- subject?: string | undefined;
1074
+ notification_category_id?: string | null | 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
- id: string;
1081
1080
  status: "skipped";
1081
+ id: string;
1082
1082
  created_at_millis: number;
1083
- updated_at_millis: number;
1084
- tsx_source: string;
1085
- theme_id: string | null;
1086
1083
  to: {
1087
- type: "user-primary-email";
1088
1084
  user_id: string;
1085
+ type: "user-primary-email";
1089
1086
  } | {
1090
- emails: string[];
1091
- type: "user-custom-emails";
1092
1087
  user_id: string;
1093
- } | {
1088
+ type: "user-custom-emails";
1094
1089
  emails: string[];
1090
+ } | {
1095
1091
  type: "custom-emails";
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
- html: string | null;
1122
- text: string | null;
1123
- id: string;
1124
1121
  status: "bounced";
1122
+ id: string;
1125
1123
  subject: string;
1126
1124
  created_at_millis: number;
1127
- updated_at_millis: number;
1128
- tsx_source: string;
1129
- theme_id: string | null;
1125
+ html: string | null;
1126
+ text: string | null;
1130
1127
  to: {
1131
- type: "user-primary-email";
1132
1128
  user_id: string;
1129
+ type: "user-primary-email";
1133
1130
  } | {
1134
- emails: string[];
1135
- type: "user-custom-emails";
1136
1131
  user_id: string;
1137
- } | {
1132
+ type: "user-custom-emails";
1138
1133
  emails: string[];
1134
+ } | {
1139
1135
  type: "custom-emails";
1136
+ emails: string[];
1140
1137
  };
1138
+ notification_category_id: string | null;
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
- html: string | null;
1170
- text: string | null;
1171
- id: string;
1172
1169
  status: "delivery-delayed";
1170
+ id: string;
1173
1171
  subject: string;
1174
1172
  created_at_millis: number;
1175
- updated_at_millis: number;
1176
- tsx_source: string;
1177
- theme_id: string | null;
1173
+ html: string | null;
1174
+ text: string | null;
1178
1175
  to: {
1179
- type: "user-primary-email";
1180
1176
  user_id: string;
1177
+ type: "user-primary-email";
1181
1178
  } | {
1182
- emails: string[];
1183
- type: "user-custom-emails";
1184
1179
  user_id: string;
1185
- } | {
1180
+ type: "user-custom-emails";
1186
1181
  emails: string[];
1182
+ } | {
1187
1183
  type: "custom-emails";
1184
+ emails: string[];
1188
1185
  };
1186
+ notification_category_id: string | null;
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
- html: string | null;
1218
- text: string | null;
1219
- id: string;
1220
1217
  status: "sent";
1218
+ id: string;
1221
1219
  subject: string;
1222
1220
  created_at_millis: number;
1223
- updated_at_millis: number;
1224
- tsx_source: string;
1225
- theme_id: string | null;
1221
+ html: string | null;
1222
+ text: string | null;
1226
1223
  to: {
1227
- type: "user-primary-email";
1228
1224
  user_id: string;
1225
+ type: "user-primary-email";
1229
1226
  } | {
1230
- emails: string[];
1231
- type: "user-custom-emails";
1232
1227
  user_id: string;
1233
- } | {
1228
+ type: "user-custom-emails";
1234
1229
  emails: string[];
1230
+ } | {
1235
1231
  type: "custom-emails";
1232
+ emails: string[];
1236
1233
  };
1234
+ notification_category_id: string | null;
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
- html: string | null;
1267
- text: string | null;
1268
- id: string;
1269
1266
  status: "opened";
1267
+ id: string;
1270
1268
  subject: string;
1271
1269
  created_at_millis: number;
1272
- updated_at_millis: number;
1273
- tsx_source: string;
1274
- theme_id: string | null;
1270
+ html: string | null;
1271
+ text: string | null;
1275
1272
  to: {
1276
- type: "user-primary-email";
1277
1273
  user_id: string;
1274
+ type: "user-primary-email";
1278
1275
  } | {
1279
- emails: string[];
1280
- type: "user-custom-emails";
1281
1276
  user_id: string;
1282
- } | {
1277
+ type: "user-custom-emails";
1283
1278
  emails: string[];
1279
+ } | {
1284
1280
  type: "custom-emails";
1281
+ emails: string[];
1285
1282
  };
1283
+ notification_category_id: string | null;
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
- html: string | null;
1317
- text: string | null;
1318
- id: string;
1319
1316
  status: "clicked";
1317
+ id: string;
1320
1318
  subject: string;
1321
1319
  created_at_millis: number;
1322
- updated_at_millis: number;
1323
- tsx_source: string;
1324
- theme_id: string | null;
1320
+ html: string | null;
1321
+ text: string | null;
1325
1322
  to: {
1326
- type: "user-primary-email";
1327
1323
  user_id: string;
1324
+ type: "user-primary-email";
1328
1325
  } | {
1329
- emails: string[];
1330
- type: "user-custom-emails";
1331
1326
  user_id: string;
1332
- } | {
1327
+ type: "user-custom-emails";
1333
1328
  emails: string[];
1329
+ } | {
1334
1330
  type: "custom-emails";
1331
+ emails: string[];
1335
1332
  };
1333
+ notification_category_id: string | null;
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
- html: string | null;
1367
- text: string | null;
1368
- id: string;
1369
1366
  status: "marked-as-spam";
1367
+ id: string;
1370
1368
  subject: string;
1371
1369
  created_at_millis: number;
1372
- updated_at_millis: number;
1373
- tsx_source: string;
1374
- theme_id: string | null;
1370
+ html: string | null;
1371
+ text: string | null;
1375
1372
  to: {
1376
- type: "user-primary-email";
1377
1373
  user_id: string;
1374
+ type: "user-primary-email";
1378
1375
  } | {
1379
- emails: string[];
1380
- type: "user-custom-emails";
1381
1376
  user_id: string;
1382
- } | {
1377
+ type: "user-custom-emails";
1383
1378
  emails: string[];
1379
+ } | {
1384
1380
  type: "custom-emails";
1381
+ emails: string[];
1385
1382
  };
1383
+ notification_category_id: string | null;
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,15 +1417,15 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1417
1417
  tsx_source: string | undefined;
1418
1418
  theme_id: string | null | undefined;
1419
1419
  to: {
1420
- type: "user-primary-email";
1421
1420
  user_id: string;
1421
+ type: "user-primary-email";
1422
1422
  } | {
1423
- emails: string[];
1424
- type: "user-custom-emails";
1425
1423
  user_id: string;
1426
- } | {
1424
+ type: "user-custom-emails";
1427
1425
  emails: string[];
1426
+ } | {
1428
1427
  type: "custom-emails";
1428
+ emails: string[];
1429
1429
  } | undefined;
1430
1430
  variables: Record<string, {} | null> | undefined;
1431
1431
  skip_deliverability_check: boolean | undefined;