@hexclave/shared 1.0.23 → 1.0.25

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 (93) hide show
  1. package/dist/ai/unified-prompts/reminders.js +1 -0
  2. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  3. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  4. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +15 -0
  5. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  6. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts +1 -46
  7. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +1 -62
  8. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -1
  9. package/dist/config/schema.d.ts +30 -30
  10. package/dist/config-authoring.d.ts +2 -2
  11. package/dist/config-authoring.d.ts.map +1 -1
  12. package/dist/config-authoring.js.map +1 -1
  13. package/dist/esm/ai/unified-prompts/reminders.js +1 -0
  14. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  15. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  16. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +15 -0
  17. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  18. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts +1 -46
  19. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +1 -62
  20. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -1
  21. package/dist/esm/config/schema.d.ts +30 -30
  22. package/dist/esm/config-authoring.d.ts +2 -2
  23. package/dist/esm/config-authoring.d.ts.map +1 -1
  24. package/dist/esm/config-authoring.js.map +1 -1
  25. package/dist/esm/interface/admin-metrics.d.ts +10 -10
  26. package/dist/esm/interface/conversations.d.ts +11 -11
  27. package/dist/esm/interface/crud/current-user.d.ts +8 -8
  28. package/dist/esm/interface/crud/email-outbox.d.ts +184 -184
  29. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  30. package/dist/esm/interface/crud/products.d.ts +15 -15
  31. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  32. package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
  33. package/dist/esm/interface/crud/projects.d.ts +50 -0
  34. package/dist/esm/interface/crud/projects.d.ts.map +1 -1
  35. package/dist/esm/interface/crud/projects.js +6 -0
  36. package/dist/esm/interface/crud/projects.js.map +1 -1
  37. package/dist/esm/interface/crud/team-member-profiles.d.ts +12 -12
  38. package/dist/esm/interface/crud/transactions.d.ts +20 -20
  39. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  40. package/dist/esm/interface/crud/users.d.ts +8 -8
  41. package/dist/esm/interface/webhooks.d.ts +2 -2
  42. package/dist/esm/known-errors.d.ts +1 -1
  43. package/dist/esm/schema-fields.d.ts +1 -1
  44. package/dist/esm/sessions.d.ts +7 -7
  45. package/dist/esm/utils/env.d.ts +2 -1
  46. package/dist/esm/utils/env.d.ts.map +1 -1
  47. package/dist/esm/utils/env.js +29 -17
  48. package/dist/esm/utils/env.js.map +1 -1
  49. package/dist/esm/utils/env.test.d.ts +1 -0
  50. package/dist/esm/utils/env.test.js +49 -0
  51. package/dist/esm/utils/env.test.js.map +1 -0
  52. package/dist/esm/utils/errors.d.ts.map +1 -1
  53. package/dist/esm/utils/errors.js +4 -1
  54. package/dist/esm/utils/errors.js.map +1 -1
  55. package/dist/interface/admin-metrics.d.ts +10 -10
  56. package/dist/interface/conversations.d.ts +11 -11
  57. package/dist/interface/crud/current-user.d.ts +8 -8
  58. package/dist/interface/crud/email-outbox.d.ts +184 -184
  59. package/dist/interface/crud/invoices.d.ts +2 -2
  60. package/dist/interface/crud/products.d.ts +15 -15
  61. package/dist/interface/crud/products.d.ts.map +1 -1
  62. package/dist/interface/crud/project-api-keys.d.ts +4 -4
  63. package/dist/interface/crud/projects.d.ts +50 -0
  64. package/dist/interface/crud/projects.d.ts.map +1 -1
  65. package/dist/interface/crud/projects.js +6 -0
  66. package/dist/interface/crud/projects.js.map +1 -1
  67. package/dist/interface/crud/team-member-profiles.d.ts +12 -12
  68. package/dist/interface/crud/transactions.d.ts +20 -20
  69. package/dist/interface/crud/transactions.d.ts.map +1 -1
  70. package/dist/interface/crud/users.d.ts +8 -8
  71. package/dist/interface/webhooks.d.ts +2 -2
  72. package/dist/known-errors.d.ts +1 -1
  73. package/dist/schema-fields.d.ts +1 -1
  74. package/dist/sessions.d.ts +7 -7
  75. package/dist/utils/env.d.ts +2 -1
  76. package/dist/utils/env.d.ts.map +1 -1
  77. package/dist/utils/env.js +29 -16
  78. package/dist/utils/env.js.map +1 -1
  79. package/dist/utils/env.test.d.ts +1 -0
  80. package/dist/utils/env.test.js +49 -0
  81. package/dist/utils/env.test.js.map +1 -0
  82. package/dist/utils/errors.d.ts.map +1 -1
  83. package/dist/utils/errors.js +4 -1
  84. package/dist/utils/errors.js.map +1 -1
  85. package/package.json +1 -1
  86. package/src/ai/unified-prompts/reminders.ts +1 -0
  87. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +15 -0
  88. package/src/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.ts +1 -62
  89. package/src/config-authoring.ts +2 -2
  90. package/src/interface/crud/projects.ts +12 -0
  91. package/src/utils/env.test.tsx +58 -0
  92. package/src/utils/env.tsx +36 -20
  93. package/src/utils/errors.tsx +6 -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
- status: "paused";
8
7
  id: string;
8
+ status: "paused";
9
9
  created_at_millis: number;
10
- updated_at_millis: number;
11
- tsx_source: string;
12
- theme_id: string | null;
13
10
  to: {
14
- user_id: string;
15
11
  type: "user-primary-email";
16
- } | {
17
12
  user_id: string;
13
+ } | {
18
14
  type: "user-custom-emails";
15
+ user_id: string;
19
16
  emails: string[];
20
17
  } | {
21
18
  type: "custom-emails";
22
19
  emails: string[];
23
20
  };
21
+ updated_at_millis: number;
22
+ tsx_source: string;
23
+ theme_id: string | null;
24
24
  variables: Record<string, {} | null>;
25
25
  skip_deliverability_check: boolean;
26
26
  scheduled_at_millis: number;
@@ -42,23 +42,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
42
42
  has_rendered: boolean;
43
43
  has_delivered: boolean;
44
44
  } | {
45
- status: "preparing";
46
45
  id: string;
46
+ status: "preparing";
47
47
  created_at_millis: number;
48
- updated_at_millis: number;
49
- tsx_source: string;
50
- theme_id: string | null;
51
48
  to: {
52
- user_id: string;
53
49
  type: "user-primary-email";
54
- } | {
55
50
  user_id: string;
51
+ } | {
56
52
  type: "user-custom-emails";
53
+ user_id: string;
57
54
  emails: string[];
58
55
  } | {
59
56
  type: "custom-emails";
60
57
  emails: string[];
61
58
  };
59
+ updated_at_millis: number;
60
+ tsx_source: string;
61
+ theme_id: string | null;
62
62
  variables: Record<string, {} | null>;
63
63
  skip_deliverability_check: boolean;
64
64
  scheduled_at_millis: number;
@@ -80,23 +80,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
80
80
  has_rendered: boolean;
81
81
  has_delivered: boolean;
82
82
  } | {
83
- status: "rendering";
84
83
  id: string;
84
+ status: "rendering";
85
85
  created_at_millis: number;
86
- updated_at_millis: number;
87
- tsx_source: string;
88
- theme_id: string | null;
89
86
  to: {
90
- user_id: string;
91
87
  type: "user-primary-email";
92
- } | {
93
88
  user_id: string;
89
+ } | {
94
90
  type: "user-custom-emails";
91
+ user_id: string;
95
92
  emails: string[];
96
93
  } | {
97
94
  type: "custom-emails";
98
95
  emails: string[];
99
96
  };
97
+ updated_at_millis: number;
98
+ tsx_source: string;
99
+ theme_id: string | null;
100
100
  variables: Record<string, {} | null>;
101
101
  skip_deliverability_check: boolean;
102
102
  scheduled_at_millis: number;
@@ -119,23 +119,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
119
119
  has_delivered: boolean;
120
120
  started_rendering_at_millis: number;
121
121
  } | {
122
- status: "render-error";
123
122
  id: string;
123
+ status: "render-error";
124
124
  created_at_millis: number;
125
- updated_at_millis: number;
126
- tsx_source: string;
127
- theme_id: string | null;
128
125
  to: {
129
- user_id: string;
130
126
  type: "user-primary-email";
131
- } | {
132
127
  user_id: string;
128
+ } | {
133
129
  type: "user-custom-emails";
130
+ user_id: string;
134
131
  emails: string[];
135
132
  } | {
136
133
  type: "custom-emails";
137
134
  emails: string[];
138
135
  };
136
+ updated_at_millis: number;
137
+ tsx_source: string;
138
+ theme_id: string | null;
139
139
  variables: Record<string, {} | null>;
140
140
  skip_deliverability_check: boolean;
141
141
  scheduled_at_millis: number;
@@ -160,26 +160,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
160
160
  rendered_at_millis: number;
161
161
  render_error: string;
162
162
  } | {
163
- status: "scheduled";
164
163
  id: string;
165
164
  html: string | null;
166
165
  text: string | null;
166
+ status: "scheduled";
167
167
  created_at_millis: number;
168
168
  subject: string;
169
- updated_at_millis: number;
170
- tsx_source: string;
171
- theme_id: string | null;
172
169
  to: {
173
- user_id: string;
174
170
  type: "user-primary-email";
175
- } | {
176
171
  user_id: string;
172
+ } | {
177
173
  type: "user-custom-emails";
174
+ user_id: string;
178
175
  emails: string[];
179
176
  } | {
180
177
  type: "custom-emails";
181
178
  emails: string[];
182
179
  };
180
+ updated_at_millis: number;
181
+ tsx_source: string;
182
+ theme_id: string | null;
183
183
  variables: Record<string, {} | null>;
184
184
  skip_deliverability_check: boolean;
185
185
  scheduled_at_millis: number;
@@ -206,26 +206,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
206
206
  is_high_priority: boolean;
207
207
  notification_category_id: string | null;
208
208
  } | {
209
- status: "queued";
210
209
  id: string;
211
210
  html: string | null;
212
211
  text: string | null;
212
+ status: "queued";
213
213
  created_at_millis: number;
214
214
  subject: string;
215
- updated_at_millis: number;
216
- tsx_source: string;
217
- theme_id: string | null;
218
215
  to: {
219
- user_id: string;
220
216
  type: "user-primary-email";
221
- } | {
222
217
  user_id: string;
218
+ } | {
223
219
  type: "user-custom-emails";
220
+ user_id: string;
224
221
  emails: string[];
225
222
  } | {
226
223
  type: "custom-emails";
227
224
  emails: string[];
228
225
  };
226
+ updated_at_millis: number;
227
+ tsx_source: string;
228
+ theme_id: string | null;
229
229
  variables: Record<string, {} | null>;
230
230
  skip_deliverability_check: boolean;
231
231
  scheduled_at_millis: number;
@@ -252,26 +252,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
252
252
  is_high_priority: boolean;
253
253
  notification_category_id: string | null;
254
254
  } | {
255
- status: "sending";
256
255
  id: string;
257
256
  html: string | null;
258
257
  text: string | null;
258
+ status: "sending";
259
259
  created_at_millis: number;
260
260
  subject: string;
261
- updated_at_millis: number;
262
- tsx_source: string;
263
- theme_id: string | null;
264
261
  to: {
265
- user_id: string;
266
262
  type: "user-primary-email";
267
- } | {
268
263
  user_id: string;
264
+ } | {
269
265
  type: "user-custom-emails";
266
+ user_id: string;
270
267
  emails: string[];
271
268
  } | {
272
269
  type: "custom-emails";
273
270
  emails: string[];
274
271
  };
272
+ updated_at_millis: number;
273
+ tsx_source: string;
274
+ theme_id: string | null;
275
275
  variables: Record<string, {} | null>;
276
276
  skip_deliverability_check: boolean;
277
277
  scheduled_at_millis: number;
@@ -299,26 +299,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
299
299
  notification_category_id: string | null;
300
300
  started_sending_at_millis: number;
301
301
  } | {
302
- status: "server-error";
303
302
  id: string;
304
303
  html: string | null;
305
304
  text: string | null;
305
+ status: "server-error";
306
306
  created_at_millis: number;
307
307
  subject: string;
308
- updated_at_millis: number;
309
- tsx_source: string;
310
- theme_id: string | null;
311
308
  to: {
312
- user_id: string;
313
309
  type: "user-primary-email";
314
- } | {
315
310
  user_id: string;
311
+ } | {
316
312
  type: "user-custom-emails";
313
+ user_id: string;
317
314
  emails: string[];
318
315
  } | {
319
316
  type: "custom-emails";
320
317
  emails: string[];
321
318
  };
319
+ updated_at_millis: number;
320
+ tsx_source: string;
321
+ theme_id: string | null;
322
322
  variables: Record<string, {} | null>;
323
323
  skip_deliverability_check: boolean;
324
324
  scheduled_at_millis: number;
@@ -357,23 +357,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
357
357
  is_high_priority?: boolean | undefined;
358
358
  notification_category_id?: string | null | undefined;
359
359
  started_sending_at_millis?: number | undefined;
360
- status: "skipped";
361
360
  id: string;
361
+ status: "skipped";
362
362
  created_at_millis: number;
363
- updated_at_millis: number;
364
- tsx_source: string;
365
- theme_id: string | null;
366
363
  to: {
367
- user_id: string;
368
364
  type: "user-primary-email";
369
- } | {
370
365
  user_id: string;
366
+ } | {
371
367
  type: "user-custom-emails";
368
+ user_id: string;
372
369
  emails: string[];
373
370
  } | {
374
371
  type: "custom-emails";
375
372
  emails: string[];
376
373
  };
374
+ updated_at_millis: number;
375
+ tsx_source: string;
376
+ theme_id: string | null;
377
377
  variables: Record<string, {} | null>;
378
378
  skip_deliverability_check: boolean;
379
379
  scheduled_at_millis: number;
@@ -398,26 +398,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
398
398
  skipped_reason: string;
399
399
  skipped_details: Record<string, {} | null>;
400
400
  } | {
401
- status: "bounced";
402
401
  id: string;
403
402
  html: string | null;
404
403
  text: string | null;
404
+ status: "bounced";
405
405
  created_at_millis: number;
406
406
  subject: string;
407
- updated_at_millis: number;
408
- tsx_source: string;
409
- theme_id: string | null;
410
407
  to: {
411
- user_id: string;
412
408
  type: "user-primary-email";
413
- } | {
414
409
  user_id: string;
410
+ } | {
415
411
  type: "user-custom-emails";
412
+ user_id: string;
416
413
  emails: string[];
417
414
  } | {
418
415
  type: "custom-emails";
419
416
  emails: string[];
420
417
  };
418
+ updated_at_millis: number;
419
+ tsx_source: string;
420
+ theme_id: string | null;
421
421
  variables: Record<string, {} | null>;
422
422
  skip_deliverability_check: boolean;
423
423
  scheduled_at_millis: number;
@@ -446,26 +446,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
446
446
  started_sending_at_millis: number;
447
447
  bounced_at_millis: number;
448
448
  } | {
449
- status: "delivery-delayed";
450
449
  id: string;
451
450
  html: string | null;
452
451
  text: string | null;
452
+ status: "delivery-delayed";
453
453
  created_at_millis: number;
454
454
  subject: string;
455
- updated_at_millis: number;
456
- tsx_source: string;
457
- theme_id: string | null;
458
455
  to: {
459
- user_id: string;
460
456
  type: "user-primary-email";
461
- } | {
462
457
  user_id: string;
458
+ } | {
463
459
  type: "user-custom-emails";
460
+ user_id: string;
464
461
  emails: string[];
465
462
  } | {
466
463
  type: "custom-emails";
467
464
  emails: string[];
468
465
  };
466
+ updated_at_millis: number;
467
+ tsx_source: string;
468
+ theme_id: string | null;
469
469
  variables: Record<string, {} | null>;
470
470
  skip_deliverability_check: boolean;
471
471
  scheduled_at_millis: number;
@@ -494,26 +494,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
494
494
  started_sending_at_millis: number;
495
495
  delivery_delayed_at_millis: number;
496
496
  } | {
497
- status: "sent";
498
497
  id: string;
499
498
  html: string | null;
500
499
  text: string | null;
500
+ status: "sent";
501
501
  created_at_millis: number;
502
502
  subject: string;
503
- updated_at_millis: number;
504
- tsx_source: string;
505
- theme_id: string | null;
506
503
  to: {
507
- user_id: string;
508
504
  type: "user-primary-email";
509
- } | {
510
505
  user_id: string;
506
+ } | {
511
507
  type: "user-custom-emails";
508
+ user_id: string;
512
509
  emails: string[];
513
510
  } | {
514
511
  type: "custom-emails";
515
512
  emails: string[];
516
513
  };
514
+ updated_at_millis: number;
515
+ tsx_source: string;
516
+ theme_id: string | null;
517
517
  variables: Record<string, {} | null>;
518
518
  skip_deliverability_check: boolean;
519
519
  scheduled_at_millis: number;
@@ -543,26 +543,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
543
543
  delivered_at_millis: number;
544
544
  can_have_delivery_info: boolean;
545
545
  } | {
546
- status: "opened";
547
546
  id: string;
548
547
  html: string | null;
549
548
  text: string | null;
549
+ status: "opened";
550
550
  created_at_millis: number;
551
551
  subject: string;
552
- updated_at_millis: number;
553
- tsx_source: string;
554
- theme_id: string | null;
555
552
  to: {
556
- user_id: string;
557
553
  type: "user-primary-email";
558
- } | {
559
554
  user_id: string;
555
+ } | {
560
556
  type: "user-custom-emails";
557
+ user_id: string;
561
558
  emails: string[];
562
559
  } | {
563
560
  type: "custom-emails";
564
561
  emails: string[];
565
562
  };
563
+ updated_at_millis: number;
564
+ tsx_source: string;
565
+ theme_id: string | null;
566
566
  variables: Record<string, {} | null>;
567
567
  skip_deliverability_check: boolean;
568
568
  scheduled_at_millis: number;
@@ -593,26 +593,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
593
593
  can_have_delivery_info: boolean;
594
594
  opened_at_millis: number;
595
595
  } | {
596
- status: "clicked";
597
596
  id: string;
598
597
  html: string | null;
599
598
  text: string | null;
599
+ status: "clicked";
600
600
  created_at_millis: number;
601
601
  subject: string;
602
- updated_at_millis: number;
603
- tsx_source: string;
604
- theme_id: string | null;
605
602
  to: {
606
- user_id: string;
607
603
  type: "user-primary-email";
608
- } | {
609
604
  user_id: string;
605
+ } | {
610
606
  type: "user-custom-emails";
607
+ user_id: string;
611
608
  emails: string[];
612
609
  } | {
613
610
  type: "custom-emails";
614
611
  emails: string[];
615
612
  };
613
+ updated_at_millis: number;
614
+ tsx_source: string;
615
+ theme_id: string | null;
616
616
  variables: Record<string, {} | null>;
617
617
  skip_deliverability_check: boolean;
618
618
  scheduled_at_millis: number;
@@ -643,26 +643,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
643
643
  can_have_delivery_info: boolean;
644
644
  clicked_at_millis: number;
645
645
  } | {
646
- status: "marked-as-spam";
647
646
  id: string;
648
647
  html: string | null;
649
648
  text: string | null;
649
+ status: "marked-as-spam";
650
650
  created_at_millis: number;
651
651
  subject: string;
652
- updated_at_millis: number;
653
- tsx_source: string;
654
- theme_id: string | null;
655
652
  to: {
656
- user_id: string;
657
653
  type: "user-primary-email";
658
- } | {
659
654
  user_id: string;
655
+ } | {
660
656
  type: "user-custom-emails";
657
+ user_id: string;
661
658
  emails: string[];
662
659
  } | {
663
660
  type: "custom-emails";
664
661
  emails: string[];
665
662
  };
663
+ updated_at_millis: number;
664
+ tsx_source: string;
665
+ theme_id: string | null;
666
666
  variables: Record<string, {} | null>;
667
667
  skip_deliverability_check: boolean;
668
668
  scheduled_at_millis: number;
@@ -697,11 +697,11 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
697
697
  tsx_source: string | undefined;
698
698
  theme_id: string | null | undefined;
699
699
  to: {
700
- user_id: string;
701
700
  type: "user-primary-email";
702
- } | {
703
701
  user_id: string;
702
+ } | {
704
703
  type: "user-custom-emails";
704
+ user_id: string;
705
705
  emails: string[];
706
706
  } | {
707
707
  type: "custom-emails";
@@ -724,23 +724,23 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
724
724
  }, "">;
725
725
  declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
726
726
  serverReadSchema: yup$1.MixedSchema<{
727
- status: "paused";
728
727
  id: string;
728
+ status: "paused";
729
729
  created_at_millis: number;
730
- updated_at_millis: number;
731
- tsx_source: string;
732
- theme_id: string | null;
733
730
  to: {
734
- user_id: string;
735
731
  type: "user-primary-email";
736
- } | {
737
732
  user_id: string;
733
+ } | {
738
734
  type: "user-custom-emails";
735
+ user_id: string;
739
736
  emails: string[];
740
737
  } | {
741
738
  type: "custom-emails";
742
739
  emails: string[];
743
740
  };
741
+ updated_at_millis: number;
742
+ tsx_source: string;
743
+ theme_id: string | null;
744
744
  variables: Record<string, {} | null>;
745
745
  skip_deliverability_check: boolean;
746
746
  scheduled_at_millis: number;
@@ -762,23 +762,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
762
762
  has_rendered: boolean;
763
763
  has_delivered: boolean;
764
764
  } | {
765
- status: "preparing";
766
765
  id: string;
766
+ status: "preparing";
767
767
  created_at_millis: number;
768
- updated_at_millis: number;
769
- tsx_source: string;
770
- theme_id: string | null;
771
768
  to: {
772
- user_id: string;
773
769
  type: "user-primary-email";
774
- } | {
775
770
  user_id: string;
771
+ } | {
776
772
  type: "user-custom-emails";
773
+ user_id: string;
777
774
  emails: string[];
778
775
  } | {
779
776
  type: "custom-emails";
780
777
  emails: string[];
781
778
  };
779
+ updated_at_millis: number;
780
+ tsx_source: string;
781
+ theme_id: string | null;
782
782
  variables: Record<string, {} | null>;
783
783
  skip_deliverability_check: boolean;
784
784
  scheduled_at_millis: number;
@@ -800,23 +800,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
800
800
  has_rendered: boolean;
801
801
  has_delivered: boolean;
802
802
  } | {
803
- status: "rendering";
804
803
  id: string;
804
+ status: "rendering";
805
805
  created_at_millis: number;
806
- updated_at_millis: number;
807
- tsx_source: string;
808
- theme_id: string | null;
809
806
  to: {
810
- user_id: string;
811
807
  type: "user-primary-email";
812
- } | {
813
808
  user_id: string;
809
+ } | {
814
810
  type: "user-custom-emails";
811
+ user_id: string;
815
812
  emails: string[];
816
813
  } | {
817
814
  type: "custom-emails";
818
815
  emails: string[];
819
816
  };
817
+ updated_at_millis: number;
818
+ tsx_source: string;
819
+ theme_id: string | null;
820
820
  variables: Record<string, {} | null>;
821
821
  skip_deliverability_check: boolean;
822
822
  scheduled_at_millis: number;
@@ -839,23 +839,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
839
839
  has_delivered: boolean;
840
840
  started_rendering_at_millis: number;
841
841
  } | {
842
- status: "render-error";
843
842
  id: string;
843
+ status: "render-error";
844
844
  created_at_millis: number;
845
- updated_at_millis: number;
846
- tsx_source: string;
847
- theme_id: string | null;
848
845
  to: {
849
- user_id: string;
850
846
  type: "user-primary-email";
851
- } | {
852
847
  user_id: string;
848
+ } | {
853
849
  type: "user-custom-emails";
850
+ user_id: string;
854
851
  emails: string[];
855
852
  } | {
856
853
  type: "custom-emails";
857
854
  emails: string[];
858
855
  };
856
+ updated_at_millis: number;
857
+ tsx_source: string;
858
+ theme_id: string | null;
859
859
  variables: Record<string, {} | null>;
860
860
  skip_deliverability_check: boolean;
861
861
  scheduled_at_millis: number;
@@ -880,26 +880,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
880
880
  rendered_at_millis: number;
881
881
  render_error: string;
882
882
  } | {
883
- status: "scheduled";
884
883
  id: string;
885
884
  html: string | null;
886
885
  text: string | null;
886
+ status: "scheduled";
887
887
  created_at_millis: number;
888
888
  subject: string;
889
- updated_at_millis: number;
890
- tsx_source: string;
891
- theme_id: string | null;
892
889
  to: {
893
- user_id: string;
894
890
  type: "user-primary-email";
895
- } | {
896
891
  user_id: string;
892
+ } | {
897
893
  type: "user-custom-emails";
894
+ user_id: string;
898
895
  emails: string[];
899
896
  } | {
900
897
  type: "custom-emails";
901
898
  emails: string[];
902
899
  };
900
+ updated_at_millis: number;
901
+ tsx_source: string;
902
+ theme_id: string | null;
903
903
  variables: Record<string, {} | null>;
904
904
  skip_deliverability_check: boolean;
905
905
  scheduled_at_millis: number;
@@ -926,26 +926,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
926
926
  is_high_priority: boolean;
927
927
  notification_category_id: string | null;
928
928
  } | {
929
- status: "queued";
930
929
  id: string;
931
930
  html: string | null;
932
931
  text: string | null;
932
+ status: "queued";
933
933
  created_at_millis: number;
934
934
  subject: string;
935
- updated_at_millis: number;
936
- tsx_source: string;
937
- theme_id: string | null;
938
935
  to: {
939
- user_id: string;
940
936
  type: "user-primary-email";
941
- } | {
942
937
  user_id: string;
938
+ } | {
943
939
  type: "user-custom-emails";
940
+ user_id: string;
944
941
  emails: string[];
945
942
  } | {
946
943
  type: "custom-emails";
947
944
  emails: string[];
948
945
  };
946
+ updated_at_millis: number;
947
+ tsx_source: string;
948
+ theme_id: string | null;
949
949
  variables: Record<string, {} | null>;
950
950
  skip_deliverability_check: boolean;
951
951
  scheduled_at_millis: number;
@@ -972,26 +972,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
972
972
  is_high_priority: boolean;
973
973
  notification_category_id: string | null;
974
974
  } | {
975
- status: "sending";
976
975
  id: string;
977
976
  html: string | null;
978
977
  text: string | null;
978
+ status: "sending";
979
979
  created_at_millis: number;
980
980
  subject: string;
981
- updated_at_millis: number;
982
- tsx_source: string;
983
- theme_id: string | null;
984
981
  to: {
985
- user_id: string;
986
982
  type: "user-primary-email";
987
- } | {
988
983
  user_id: string;
984
+ } | {
989
985
  type: "user-custom-emails";
986
+ user_id: string;
990
987
  emails: string[];
991
988
  } | {
992
989
  type: "custom-emails";
993
990
  emails: string[];
994
991
  };
992
+ updated_at_millis: number;
993
+ tsx_source: string;
994
+ theme_id: string | null;
995
995
  variables: Record<string, {} | null>;
996
996
  skip_deliverability_check: boolean;
997
997
  scheduled_at_millis: number;
@@ -1019,26 +1019,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1019
1019
  notification_category_id: string | null;
1020
1020
  started_sending_at_millis: number;
1021
1021
  } | {
1022
- status: "server-error";
1023
1022
  id: string;
1024
1023
  html: string | null;
1025
1024
  text: string | null;
1025
+ status: "server-error";
1026
1026
  created_at_millis: number;
1027
1027
  subject: string;
1028
- updated_at_millis: number;
1029
- tsx_source: string;
1030
- theme_id: string | null;
1031
1028
  to: {
1032
- user_id: string;
1033
1029
  type: "user-primary-email";
1034
- } | {
1035
1030
  user_id: string;
1031
+ } | {
1036
1032
  type: "user-custom-emails";
1033
+ user_id: string;
1037
1034
  emails: string[];
1038
1035
  } | {
1039
1036
  type: "custom-emails";
1040
1037
  emails: string[];
1041
1038
  };
1039
+ updated_at_millis: number;
1040
+ tsx_source: string;
1041
+ theme_id: string | null;
1042
1042
  variables: Record<string, {} | null>;
1043
1043
  skip_deliverability_check: boolean;
1044
1044
  scheduled_at_millis: number;
@@ -1077,23 +1077,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1077
1077
  is_high_priority?: boolean | undefined;
1078
1078
  notification_category_id?: string | null | undefined;
1079
1079
  started_sending_at_millis?: number | undefined;
1080
- status: "skipped";
1081
1080
  id: string;
1081
+ status: "skipped";
1082
1082
  created_at_millis: number;
1083
- updated_at_millis: number;
1084
- tsx_source: string;
1085
- theme_id: string | null;
1086
1083
  to: {
1087
- user_id: string;
1088
1084
  type: "user-primary-email";
1089
- } | {
1090
1085
  user_id: string;
1086
+ } | {
1091
1087
  type: "user-custom-emails";
1088
+ user_id: string;
1092
1089
  emails: string[];
1093
1090
  } | {
1094
1091
  type: "custom-emails";
1095
1092
  emails: string[];
1096
1093
  };
1094
+ updated_at_millis: number;
1095
+ tsx_source: string;
1096
+ theme_id: string | null;
1097
1097
  variables: Record<string, {} | null>;
1098
1098
  skip_deliverability_check: boolean;
1099
1099
  scheduled_at_millis: number;
@@ -1118,26 +1118,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1118
1118
  skipped_reason: string;
1119
1119
  skipped_details: Record<string, {} | null>;
1120
1120
  } | {
1121
- status: "bounced";
1122
1121
  id: string;
1123
1122
  html: string | null;
1124
1123
  text: string | null;
1124
+ status: "bounced";
1125
1125
  created_at_millis: number;
1126
1126
  subject: string;
1127
- updated_at_millis: number;
1128
- tsx_source: string;
1129
- theme_id: string | null;
1130
1127
  to: {
1131
- user_id: string;
1132
1128
  type: "user-primary-email";
1133
- } | {
1134
1129
  user_id: string;
1130
+ } | {
1135
1131
  type: "user-custom-emails";
1132
+ user_id: string;
1136
1133
  emails: string[];
1137
1134
  } | {
1138
1135
  type: "custom-emails";
1139
1136
  emails: string[];
1140
1137
  };
1138
+ updated_at_millis: number;
1139
+ tsx_source: string;
1140
+ theme_id: string | null;
1141
1141
  variables: Record<string, {} | null>;
1142
1142
  skip_deliverability_check: boolean;
1143
1143
  scheduled_at_millis: number;
@@ -1166,26 +1166,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1166
1166
  started_sending_at_millis: number;
1167
1167
  bounced_at_millis: number;
1168
1168
  } | {
1169
- status: "delivery-delayed";
1170
1169
  id: string;
1171
1170
  html: string | null;
1172
1171
  text: string | null;
1172
+ status: "delivery-delayed";
1173
1173
  created_at_millis: number;
1174
1174
  subject: string;
1175
- updated_at_millis: number;
1176
- tsx_source: string;
1177
- theme_id: string | null;
1178
1175
  to: {
1179
- user_id: string;
1180
1176
  type: "user-primary-email";
1181
- } | {
1182
1177
  user_id: string;
1178
+ } | {
1183
1179
  type: "user-custom-emails";
1180
+ user_id: string;
1184
1181
  emails: string[];
1185
1182
  } | {
1186
1183
  type: "custom-emails";
1187
1184
  emails: string[];
1188
1185
  };
1186
+ updated_at_millis: number;
1187
+ tsx_source: string;
1188
+ theme_id: string | null;
1189
1189
  variables: Record<string, {} | null>;
1190
1190
  skip_deliverability_check: boolean;
1191
1191
  scheduled_at_millis: number;
@@ -1214,26 +1214,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1214
1214
  started_sending_at_millis: number;
1215
1215
  delivery_delayed_at_millis: number;
1216
1216
  } | {
1217
- status: "sent";
1218
1217
  id: string;
1219
1218
  html: string | null;
1220
1219
  text: string | null;
1220
+ status: "sent";
1221
1221
  created_at_millis: number;
1222
1222
  subject: string;
1223
- updated_at_millis: number;
1224
- tsx_source: string;
1225
- theme_id: string | null;
1226
1223
  to: {
1227
- user_id: string;
1228
1224
  type: "user-primary-email";
1229
- } | {
1230
1225
  user_id: string;
1226
+ } | {
1231
1227
  type: "user-custom-emails";
1228
+ user_id: string;
1232
1229
  emails: string[];
1233
1230
  } | {
1234
1231
  type: "custom-emails";
1235
1232
  emails: string[];
1236
1233
  };
1234
+ updated_at_millis: number;
1235
+ tsx_source: string;
1236
+ theme_id: string | null;
1237
1237
  variables: Record<string, {} | null>;
1238
1238
  skip_deliverability_check: boolean;
1239
1239
  scheduled_at_millis: number;
@@ -1263,26 +1263,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1263
1263
  delivered_at_millis: number;
1264
1264
  can_have_delivery_info: boolean;
1265
1265
  } | {
1266
- status: "opened";
1267
1266
  id: string;
1268
1267
  html: string | null;
1269
1268
  text: string | null;
1269
+ status: "opened";
1270
1270
  created_at_millis: number;
1271
1271
  subject: string;
1272
- updated_at_millis: number;
1273
- tsx_source: string;
1274
- theme_id: string | null;
1275
1272
  to: {
1276
- user_id: string;
1277
1273
  type: "user-primary-email";
1278
- } | {
1279
1274
  user_id: string;
1275
+ } | {
1280
1276
  type: "user-custom-emails";
1277
+ user_id: string;
1281
1278
  emails: string[];
1282
1279
  } | {
1283
1280
  type: "custom-emails";
1284
1281
  emails: string[];
1285
1282
  };
1283
+ updated_at_millis: number;
1284
+ tsx_source: string;
1285
+ theme_id: string | null;
1286
1286
  variables: Record<string, {} | null>;
1287
1287
  skip_deliverability_check: boolean;
1288
1288
  scheduled_at_millis: number;
@@ -1313,26 +1313,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1313
1313
  can_have_delivery_info: boolean;
1314
1314
  opened_at_millis: number;
1315
1315
  } | {
1316
- status: "clicked";
1317
1316
  id: string;
1318
1317
  html: string | null;
1319
1318
  text: string | null;
1319
+ status: "clicked";
1320
1320
  created_at_millis: number;
1321
1321
  subject: string;
1322
- updated_at_millis: number;
1323
- tsx_source: string;
1324
- theme_id: string | null;
1325
1322
  to: {
1326
- user_id: string;
1327
1323
  type: "user-primary-email";
1328
- } | {
1329
1324
  user_id: string;
1325
+ } | {
1330
1326
  type: "user-custom-emails";
1327
+ user_id: string;
1331
1328
  emails: string[];
1332
1329
  } | {
1333
1330
  type: "custom-emails";
1334
1331
  emails: string[];
1335
1332
  };
1333
+ updated_at_millis: number;
1334
+ tsx_source: string;
1335
+ theme_id: string | null;
1336
1336
  variables: Record<string, {} | null>;
1337
1337
  skip_deliverability_check: boolean;
1338
1338
  scheduled_at_millis: number;
@@ -1363,26 +1363,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1363
1363
  can_have_delivery_info: boolean;
1364
1364
  clicked_at_millis: number;
1365
1365
  } | {
1366
- status: "marked-as-spam";
1367
1366
  id: string;
1368
1367
  html: string | null;
1369
1368
  text: string | null;
1369
+ status: "marked-as-spam";
1370
1370
  created_at_millis: number;
1371
1371
  subject: string;
1372
- updated_at_millis: number;
1373
- tsx_source: string;
1374
- theme_id: string | null;
1375
1372
  to: {
1376
- user_id: string;
1377
1373
  type: "user-primary-email";
1378
- } | {
1379
1374
  user_id: string;
1375
+ } | {
1380
1376
  type: "user-custom-emails";
1377
+ user_id: string;
1381
1378
  emails: string[];
1382
1379
  } | {
1383
1380
  type: "custom-emails";
1384
1381
  emails: string[];
1385
1382
  };
1383
+ updated_at_millis: number;
1384
+ tsx_source: string;
1385
+ theme_id: string | null;
1386
1386
  variables: Record<string, {} | null>;
1387
1387
  skip_deliverability_check: boolean;
1388
1388
  scheduled_at_millis: number;
@@ -1417,11 +1417,11 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1417
1417
  tsx_source: string | undefined;
1418
1418
  theme_id: string | null | undefined;
1419
1419
  to: {
1420
- user_id: string;
1421
1420
  type: "user-primary-email";
1422
- } | {
1423
1421
  user_id: string;
1422
+ } | {
1424
1423
  type: "user-custom-emails";
1424
+ user_id: string;
1425
1425
  emails: string[];
1426
1426
  } | {
1427
1427
  type: "custom-emails";