@hexclave/shared 1.0.43 → 1.0.45

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 (115) hide show
  1. package/dist/{admin-interface-Bv8rBJo-.d.ts → admin-interface-B-UjGQ0i.d.ts} +11 -13
  2. package/dist/admin-interface-B-UjGQ0i.d.ts.map +1 -0
  3. package/dist/{admin-metrics-DyW8_G82.d.ts → admin-metrics-1yiWGq9z.d.ts} +10 -10
  4. package/dist/{admin-metrics-DyW8_G82.d.ts.map → admin-metrics-1yiWGq9z.d.ts.map} +1 -1
  5. package/dist/ai/unified-prompts/reminders.js +2 -2
  6. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  7. package/dist/{client-interface-CGrvUtX0.d.ts → client-interface-DjVtlQix.d.ts} +10 -10
  8. package/dist/{client-interface-CGrvUtX0.d.ts.map → client-interface-DjVtlQix.d.ts.map} +1 -1
  9. package/dist/config/schema-fuzzer.test.js +0 -4
  10. package/dist/config/schema-fuzzer.test.js.map +1 -1
  11. package/dist/config/schema.d.ts +1 -1
  12. package/dist/config/schema.js +9 -8
  13. package/dist/config/schema.js.map +1 -1
  14. package/dist/config-authoring.d.ts +1 -1
  15. package/dist/{current-user-Dvf8Ttjo.d.ts → current-user-BCkMYzHx.d.ts} +15 -15
  16. package/dist/{current-user-Dvf8Ttjo.d.ts.map → current-user-BCkMYzHx.d.ts.map} +1 -1
  17. package/dist/{email-outbox-BVqBaXpn.d.ts → email-outbox-BRZiK0ZG.d.ts} +199 -199
  18. package/dist/{email-outbox-BVqBaXpn.d.ts.map → email-outbox-BRZiK0ZG.d.ts.map} +1 -1
  19. package/dist/esm/ai/unified-prompts/reminders.js +2 -1
  20. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  21. package/dist/esm/config/schema-fuzzer.test.js +0 -4
  22. package/dist/esm/config/schema-fuzzer.test.js.map +1 -1
  23. package/dist/esm/config/schema.d.ts +135 -174
  24. package/dist/esm/config/schema.d.ts.map +1 -1
  25. package/dist/esm/config/schema.js +9 -8
  26. package/dist/esm/config/schema.js.map +1 -1
  27. package/dist/esm/interface/admin-interface.d.ts +0 -2
  28. package/dist/esm/interface/admin-interface.d.ts.map +1 -1
  29. package/dist/esm/interface/admin-interface.js +0 -12
  30. package/dist/esm/interface/admin-interface.js.map +1 -1
  31. package/dist/esm/interface/admin-metrics.d.ts +9 -9
  32. package/dist/esm/interface/conversations.d.ts +7 -7
  33. package/dist/esm/interface/crud/current-user.d.ts +14 -14
  34. package/dist/esm/interface/crud/email-outbox.d.ts +198 -198
  35. package/dist/esm/interface/crud/invoices.d.ts +1 -1
  36. package/dist/esm/interface/crud/products.d.ts +21 -21
  37. package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
  38. package/dist/esm/interface/crud/projects.d.ts +23 -23
  39. package/dist/esm/interface/crud/team-member-profiles.d.ts +22 -22
  40. package/dist/esm/interface/crud/transactions.d.ts +17 -17
  41. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  42. package/dist/esm/interface/crud/users.d.ts +12 -12
  43. package/dist/esm/interface/plan-usage.d.ts +2 -2
  44. package/dist/esm/interface/server-interface.d.ts +2 -0
  45. package/dist/esm/interface/server-interface.d.ts.map +1 -1
  46. package/dist/esm/interface/server-interface.js +12 -0
  47. package/dist/esm/interface/server-interface.js.map +1 -1
  48. package/dist/esm/interface/webhooks.d.ts +2 -2
  49. package/dist/esm/known-errors.d.ts +3 -3
  50. package/dist/esm/schema-fields.d.ts +12 -12
  51. package/dist/esm/sessions.d.ts +9 -9
  52. package/dist/helpers/password.d.ts +1 -1
  53. package/dist/helpers/production-mode.d.ts +1 -1
  54. package/dist/index.d.ts +4 -4
  55. package/dist/interface/admin-interface.d.ts +2 -2
  56. package/dist/interface/admin-interface.js +0 -12
  57. package/dist/interface/admin-interface.js.map +1 -1
  58. package/dist/interface/admin-metrics.d.ts +1 -1
  59. package/dist/interface/client-interface.d.ts +1 -1
  60. package/dist/interface/conversations.d.ts +7 -7
  61. package/dist/interface/crud/current-user.d.ts +1 -1
  62. package/dist/interface/crud/email-outbox.d.ts +1 -1
  63. package/dist/interface/crud/invoices.d.ts +1 -1
  64. package/dist/interface/crud/products.d.ts +1 -1
  65. package/dist/interface/crud/project-api-keys.d.ts +1 -1
  66. package/dist/interface/crud/projects.d.ts +1 -1
  67. package/dist/interface/crud/team-member-profiles.d.ts +1 -1
  68. package/dist/interface/crud/transactions.d.ts +1 -1
  69. package/dist/interface/crud/users.d.ts +1 -1
  70. package/dist/interface/plan-usage.d.ts +1 -1
  71. package/dist/interface/server-interface.d.ts +1 -1
  72. package/dist/interface/server-interface.js +12 -0
  73. package/dist/interface/server-interface.js.map +1 -1
  74. package/dist/interface/webhooks.d.ts +1 -1
  75. package/dist/{invoices-U65KzAZX.d.ts → invoices-BGLLnTlR.d.ts} +2 -2
  76. package/dist/{invoices-U65KzAZX.d.ts.map → invoices-BGLLnTlR.d.ts.map} +1 -1
  77. package/dist/{known-errors-Bm4a61wL.d.ts → known-errors-g7JC8z58.d.ts} +4 -4
  78. package/dist/{known-errors-Bm4a61wL.d.ts.map → known-errors-g7JC8z58.d.ts.map} +1 -1
  79. package/dist/known-errors.d.ts +1 -1
  80. package/dist/{plan-usage-DfDoj5K4.d.ts → plan-usage-BigvGIcT.d.ts} +3 -3
  81. package/dist/{plan-usage-DfDoj5K4.d.ts.map → plan-usage-BigvGIcT.d.ts.map} +1 -1
  82. package/dist/{products-Bs74ld-v.d.ts → products-D_fcxfR0.d.ts} +22 -22
  83. package/dist/{products-Bs74ld-v.d.ts.map → products-D_fcxfR0.d.ts.map} +1 -1
  84. package/dist/{project-api-keys--7V5X_UW.d.ts → project-api-keys-OQqmKtMS.d.ts} +5 -5
  85. package/dist/{project-api-keys--7V5X_UW.d.ts.map → project-api-keys-OQqmKtMS.d.ts.map} +1 -1
  86. package/dist/{projects-CgFGB3nO.d.ts → projects-C42SVFvm.d.ts} +24 -24
  87. package/dist/{projects-CgFGB3nO.d.ts.map → projects-C42SVFvm.d.ts.map} +1 -1
  88. package/dist/{schema-01nWxmb4.d.ts → schema-Bgy-GC70.d.ts} +136 -175
  89. package/dist/schema-Bgy-GC70.d.ts.map +1 -0
  90. package/dist/{schema-fields-DqGQ4kF7.d.ts → schema-fields-BljhsWsa.d.ts} +13 -13
  91. package/dist/{schema-fields-DqGQ4kF7.d.ts.map → schema-fields-BljhsWsa.d.ts.map} +1 -1
  92. package/dist/schema-fields.d.ts +1 -1
  93. package/dist/{server-interface-BUPG1kor.d.ts → server-interface-C1W1tZ_y.d.ts} +10 -8
  94. package/dist/server-interface-C1W1tZ_y.d.ts.map +1 -0
  95. package/dist/{sessions-d8qtvBUB.d.ts → sessions-C0nM8bE_.d.ts} +11 -11
  96. package/dist/{sessions-d8qtvBUB.d.ts.map → sessions-C0nM8bE_.d.ts.map} +1 -1
  97. package/dist/sessions.d.ts +1 -1
  98. package/dist/{team-member-profiles-uTluO8XI.d.ts → team-member-profiles-CgYXR-Rx.d.ts} +23 -23
  99. package/dist/{team-member-profiles-uTluO8XI.d.ts.map → team-member-profiles-CgYXR-Rx.d.ts.map} +1 -1
  100. package/dist/{transactions-DhnbvGH5.d.ts → transactions-BomBBiph.d.ts} +18 -18
  101. package/dist/transactions-BomBBiph.d.ts.map +1 -0
  102. package/dist/{users-CmBBuF00.d.ts → users-7MKfEyyq.d.ts} +14 -14
  103. package/dist/{users-CmBBuF00.d.ts.map → users-7MKfEyyq.d.ts.map} +1 -1
  104. package/dist/{webhooks-ByXrdSOx.d.ts → webhooks-C5gG85Ce.d.ts} +3 -3
  105. package/dist/{webhooks-ByXrdSOx.d.ts.map → webhooks-C5gG85Ce.d.ts.map} +1 -1
  106. package/package.json +1 -1
  107. package/src/ai/unified-prompts/reminders.ts +1 -0
  108. package/src/config/schema-fuzzer.test.ts +11 -11
  109. package/src/config/schema.ts +35 -14
  110. package/src/interface/admin-interface.ts +0 -20
  111. package/src/interface/server-interface.ts +20 -0
  112. package/dist/admin-interface-Bv8rBJo-.d.ts.map +0 -1
  113. package/dist/schema-01nWxmb4.d.ts.map +0 -1
  114. package/dist/server-interface-BUPG1kor.d.ts.map +0 -1
  115. package/dist/transactions-DhnbvGH5.d.ts.map +0 -1
@@ -2,22 +2,21 @@ import { CrudTypeOf } from "../../crud.js";
2
2
 
3
3
  //#region src/interface/crud/email-outbox.d.ts
4
4
  declare const emailOutboxReadSchema: import("yup").MixedSchema<{
5
- status: "paused";
6
5
  id: string;
7
6
  created_at_millis: number;
8
7
  updated_at_millis: number;
9
8
  tsx_source: string;
10
9
  theme_id: string | null;
11
10
  to: {
12
- user_id: string;
13
11
  type: "user-primary-email";
14
- } | {
15
12
  user_id: string;
16
- type: "user-custom-emails";
13
+ } | {
17
14
  emails: string[];
15
+ type: "user-custom-emails";
16
+ user_id: string;
18
17
  } | {
19
- type: "custom-emails";
20
18
  emails: string[];
19
+ type: "custom-emails";
21
20
  };
22
21
  variables: Record<string, {} | null>;
23
22
  skip_deliverability_check: boolean;
@@ -35,27 +34,27 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
35
34
  internal_message: string;
36
35
  internal_details: Record<string, {} | null>;
37
36
  }[] | null;
37
+ status: "paused";
38
38
  simple_status: "in-progress";
39
39
  is_paused: boolean;
40
40
  has_rendered: boolean;
41
41
  has_delivered: boolean;
42
42
  } | {
43
- status: "preparing";
44
43
  id: string;
45
44
  created_at_millis: number;
46
45
  updated_at_millis: number;
47
46
  tsx_source: string;
48
47
  theme_id: string | null;
49
48
  to: {
50
- user_id: string;
51
49
  type: "user-primary-email";
52
- } | {
53
50
  user_id: string;
54
- type: "user-custom-emails";
51
+ } | {
55
52
  emails: string[];
53
+ type: "user-custom-emails";
54
+ user_id: string;
56
55
  } | {
57
- type: "custom-emails";
58
56
  emails: string[];
57
+ type: "custom-emails";
59
58
  };
60
59
  variables: Record<string, {} | null>;
61
60
  skip_deliverability_check: boolean;
@@ -73,27 +72,27 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
73
72
  internal_message: string;
74
73
  internal_details: Record<string, {} | null>;
75
74
  }[] | null;
75
+ status: "preparing";
76
76
  simple_status: "in-progress";
77
77
  is_paused: boolean;
78
78
  has_rendered: boolean;
79
79
  has_delivered: boolean;
80
80
  } | {
81
- status: "rendering";
82
81
  id: string;
83
82
  created_at_millis: number;
84
83
  updated_at_millis: number;
85
84
  tsx_source: string;
86
85
  theme_id: string | null;
87
86
  to: {
88
- user_id: string;
89
87
  type: "user-primary-email";
90
- } | {
91
88
  user_id: string;
92
- type: "user-custom-emails";
89
+ } | {
93
90
  emails: string[];
91
+ type: "user-custom-emails";
92
+ user_id: string;
94
93
  } | {
95
- type: "custom-emails";
96
94
  emails: string[];
95
+ type: "custom-emails";
97
96
  };
98
97
  variables: Record<string, {} | null>;
99
98
  skip_deliverability_check: boolean;
@@ -111,28 +110,28 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
111
110
  internal_message: string;
112
111
  internal_details: Record<string, {} | null>;
113
112
  }[] | null;
113
+ status: "rendering";
114
114
  simple_status: "in-progress";
115
115
  is_paused: boolean;
116
116
  has_rendered: boolean;
117
117
  has_delivered: boolean;
118
118
  started_rendering_at_millis: number;
119
119
  } | {
120
- status: "render-error";
121
120
  id: string;
122
121
  created_at_millis: number;
123
122
  updated_at_millis: number;
124
123
  tsx_source: string;
125
124
  theme_id: string | null;
126
125
  to: {
127
- user_id: string;
128
126
  type: "user-primary-email";
129
- } | {
130
127
  user_id: string;
131
- type: "user-custom-emails";
128
+ } | {
132
129
  emails: string[];
130
+ type: "user-custom-emails";
131
+ user_id: string;
133
132
  } | {
134
- type: "custom-emails";
135
133
  emails: string[];
134
+ type: "custom-emails";
136
135
  };
137
136
  variables: Record<string, {} | null>;
138
137
  skip_deliverability_check: boolean;
@@ -150,6 +149,7 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
150
149
  internal_message: string;
151
150
  internal_details: Record<string, {} | null>;
152
151
  }[] | null;
152
+ status: "render-error";
153
153
  simple_status: "error";
154
154
  is_paused: boolean;
155
155
  has_rendered: boolean;
@@ -158,24 +158,23 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
158
158
  rendered_at_millis: number;
159
159
  render_error: string;
160
160
  } | {
161
- status: "scheduled";
162
- id: string;
163
- created_at_millis: number;
164
161
  html: string | null;
165
162
  text: string | null;
163
+ id: string;
164
+ created_at_millis: number;
166
165
  updated_at_millis: number;
167
166
  tsx_source: string;
168
167
  theme_id: string | null;
169
168
  to: {
170
- user_id: string;
171
169
  type: "user-primary-email";
172
- } | {
173
170
  user_id: string;
174
- type: "user-custom-emails";
171
+ } | {
175
172
  emails: string[];
173
+ type: "user-custom-emails";
174
+ user_id: string;
176
175
  } | {
177
- type: "custom-emails";
178
176
  emails: string[];
177
+ type: "custom-emails";
179
178
  };
180
179
  variables: Record<string, {} | null>;
181
180
  skip_deliverability_check: boolean;
@@ -193,6 +192,7 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
193
192
  internal_message: string;
194
193
  internal_details: Record<string, {} | null>;
195
194
  }[] | null;
195
+ status: "scheduled";
196
196
  simple_status: "in-progress";
197
197
  is_paused: boolean;
198
198
  has_rendered: boolean;
@@ -204,24 +204,23 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
204
204
  is_high_priority: boolean;
205
205
  notification_category_id: string | null;
206
206
  } | {
207
- status: "queued";
208
- id: string;
209
- created_at_millis: number;
210
207
  html: string | null;
211
208
  text: string | null;
209
+ id: string;
210
+ created_at_millis: number;
212
211
  updated_at_millis: number;
213
212
  tsx_source: string;
214
213
  theme_id: string | null;
215
214
  to: {
216
- user_id: string;
217
215
  type: "user-primary-email";
218
- } | {
219
216
  user_id: string;
220
- type: "user-custom-emails";
217
+ } | {
221
218
  emails: string[];
219
+ type: "user-custom-emails";
220
+ user_id: string;
222
221
  } | {
223
- type: "custom-emails";
224
222
  emails: string[];
223
+ type: "custom-emails";
225
224
  };
226
225
  variables: Record<string, {} | null>;
227
226
  skip_deliverability_check: boolean;
@@ -239,6 +238,7 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
239
238
  internal_message: string;
240
239
  internal_details: Record<string, {} | null>;
241
240
  }[] | null;
241
+ status: "queued";
242
242
  simple_status: "in-progress";
243
243
  is_paused: boolean;
244
244
  has_rendered: boolean;
@@ -250,24 +250,23 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
250
250
  is_high_priority: boolean;
251
251
  notification_category_id: string | null;
252
252
  } | {
253
- status: "sending";
254
- id: string;
255
- created_at_millis: number;
256
253
  html: string | null;
257
254
  text: string | null;
255
+ id: string;
256
+ created_at_millis: number;
258
257
  updated_at_millis: number;
259
258
  tsx_source: string;
260
259
  theme_id: string | null;
261
260
  to: {
262
- user_id: string;
263
261
  type: "user-primary-email";
264
- } | {
265
262
  user_id: string;
266
- type: "user-custom-emails";
263
+ } | {
267
264
  emails: string[];
265
+ type: "user-custom-emails";
266
+ user_id: string;
268
267
  } | {
269
- type: "custom-emails";
270
268
  emails: string[];
269
+ type: "custom-emails";
271
270
  };
272
271
  variables: Record<string, {} | null>;
273
272
  skip_deliverability_check: boolean;
@@ -285,6 +284,7 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
285
284
  internal_message: string;
286
285
  internal_details: Record<string, {} | null>;
287
286
  }[] | null;
287
+ status: "sending";
288
288
  simple_status: "in-progress";
289
289
  is_paused: boolean;
290
290
  has_rendered: boolean;
@@ -297,24 +297,23 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
297
297
  notification_category_id: string | null;
298
298
  started_sending_at_millis: number;
299
299
  } | {
300
- status: "server-error";
301
- id: string;
302
- created_at_millis: number;
303
300
  html: string | null;
304
301
  text: string | null;
302
+ id: string;
303
+ created_at_millis: number;
305
304
  updated_at_millis: number;
306
305
  tsx_source: string;
307
306
  theme_id: string | null;
308
307
  to: {
309
- user_id: string;
310
308
  type: "user-primary-email";
311
- } | {
312
309
  user_id: string;
313
- type: "user-custom-emails";
310
+ } | {
314
311
  emails: string[];
312
+ type: "user-custom-emails";
313
+ user_id: string;
315
314
  } | {
316
- type: "custom-emails";
317
315
  emails: string[];
316
+ type: "custom-emails";
318
317
  };
319
318
  variables: Record<string, {} | null>;
320
319
  skip_deliverability_check: boolean;
@@ -332,6 +331,7 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
332
331
  internal_message: string;
333
332
  internal_details: Record<string, {} | null>;
334
333
  }[] | null;
334
+ status: "server-error";
335
335
  simple_status: "error";
336
336
  is_paused: boolean;
337
337
  has_rendered: boolean;
@@ -355,22 +355,21 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
355
355
  is_high_priority?: boolean | undefined;
356
356
  notification_category_id?: string | null | undefined;
357
357
  started_sending_at_millis?: number | undefined;
358
- status: "skipped";
359
358
  id: string;
360
359
  created_at_millis: number;
361
360
  updated_at_millis: number;
362
361
  tsx_source: string;
363
362
  theme_id: string | null;
364
363
  to: {
365
- user_id: string;
366
364
  type: "user-primary-email";
367
- } | {
368
365
  user_id: string;
369
- type: "user-custom-emails";
366
+ } | {
370
367
  emails: string[];
368
+ type: "user-custom-emails";
369
+ user_id: string;
371
370
  } | {
372
- type: "custom-emails";
373
371
  emails: string[];
372
+ type: "custom-emails";
374
373
  };
375
374
  variables: Record<string, {} | null>;
376
375
  skip_deliverability_check: boolean;
@@ -388,6 +387,7 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
388
387
  internal_message: string;
389
388
  internal_details: Record<string, {} | null>;
390
389
  }[] | null;
390
+ status: "skipped";
391
391
  simple_status: "ok";
392
392
  is_paused: boolean;
393
393
  has_rendered: boolean;
@@ -396,24 +396,23 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
396
396
  skipped_reason: string;
397
397
  skipped_details: Record<string, {} | null>;
398
398
  } | {
399
- status: "bounced";
400
- id: string;
401
- created_at_millis: number;
402
399
  html: string | null;
403
400
  text: string | null;
401
+ id: string;
402
+ created_at_millis: number;
404
403
  updated_at_millis: number;
405
404
  tsx_source: string;
406
405
  theme_id: string | null;
407
406
  to: {
408
- user_id: string;
409
407
  type: "user-primary-email";
410
- } | {
411
408
  user_id: string;
412
- type: "user-custom-emails";
409
+ } | {
413
410
  emails: string[];
411
+ type: "user-custom-emails";
412
+ user_id: string;
414
413
  } | {
415
- type: "custom-emails";
416
414
  emails: string[];
415
+ type: "custom-emails";
417
416
  };
418
417
  variables: Record<string, {} | null>;
419
418
  skip_deliverability_check: boolean;
@@ -431,6 +430,7 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
431
430
  internal_message: string;
432
431
  internal_details: Record<string, {} | null>;
433
432
  }[] | null;
433
+ status: "bounced";
434
434
  simple_status: "error";
435
435
  is_paused: boolean;
436
436
  has_rendered: boolean;
@@ -444,24 +444,23 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
444
444
  started_sending_at_millis: number;
445
445
  bounced_at_millis: number;
446
446
  } | {
447
- status: "delivery-delayed";
448
- id: string;
449
- created_at_millis: number;
450
447
  html: string | null;
451
448
  text: string | null;
449
+ id: string;
450
+ created_at_millis: number;
452
451
  updated_at_millis: number;
453
452
  tsx_source: string;
454
453
  theme_id: string | null;
455
454
  to: {
456
- user_id: string;
457
455
  type: "user-primary-email";
458
- } | {
459
456
  user_id: string;
460
- type: "user-custom-emails";
457
+ } | {
461
458
  emails: string[];
459
+ type: "user-custom-emails";
460
+ user_id: string;
462
461
  } | {
463
- type: "custom-emails";
464
462
  emails: string[];
463
+ type: "custom-emails";
465
464
  };
466
465
  variables: Record<string, {} | null>;
467
466
  skip_deliverability_check: boolean;
@@ -479,6 +478,7 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
479
478
  internal_message: string;
480
479
  internal_details: Record<string, {} | null>;
481
480
  }[] | null;
481
+ status: "delivery-delayed";
482
482
  simple_status: "ok";
483
483
  is_paused: boolean;
484
484
  has_rendered: boolean;
@@ -492,24 +492,23 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
492
492
  started_sending_at_millis: number;
493
493
  delivery_delayed_at_millis: number;
494
494
  } | {
495
- status: "sent";
496
- id: string;
497
- created_at_millis: number;
498
495
  html: string | null;
499
496
  text: string | null;
497
+ id: string;
498
+ created_at_millis: number;
500
499
  updated_at_millis: number;
501
500
  tsx_source: string;
502
501
  theme_id: string | null;
503
502
  to: {
504
- user_id: string;
505
503
  type: "user-primary-email";
506
- } | {
507
504
  user_id: string;
508
- type: "user-custom-emails";
505
+ } | {
509
506
  emails: string[];
507
+ type: "user-custom-emails";
508
+ user_id: string;
510
509
  } | {
511
- type: "custom-emails";
512
510
  emails: string[];
511
+ type: "custom-emails";
513
512
  };
514
513
  variables: Record<string, {} | null>;
515
514
  skip_deliverability_check: boolean;
@@ -527,6 +526,7 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
527
526
  internal_message: string;
528
527
  internal_details: Record<string, {} | null>;
529
528
  }[] | null;
529
+ status: "sent";
530
530
  simple_status: "ok";
531
531
  is_paused: boolean;
532
532
  has_rendered: boolean;
@@ -541,24 +541,23 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
541
541
  delivered_at_millis: number;
542
542
  can_have_delivery_info: boolean;
543
543
  } | {
544
- status: "opened";
545
- id: string;
546
- created_at_millis: number;
547
544
  html: string | null;
548
545
  text: string | null;
546
+ id: string;
547
+ created_at_millis: number;
549
548
  updated_at_millis: number;
550
549
  tsx_source: string;
551
550
  theme_id: string | null;
552
551
  to: {
553
- user_id: string;
554
552
  type: "user-primary-email";
555
- } | {
556
553
  user_id: string;
557
- type: "user-custom-emails";
554
+ } | {
558
555
  emails: string[];
556
+ type: "user-custom-emails";
557
+ user_id: string;
559
558
  } | {
560
- type: "custom-emails";
561
559
  emails: string[];
560
+ type: "custom-emails";
562
561
  };
563
562
  variables: Record<string, {} | null>;
564
563
  skip_deliverability_check: boolean;
@@ -576,6 +575,7 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
576
575
  internal_message: string;
577
576
  internal_details: Record<string, {} | null>;
578
577
  }[] | null;
578
+ status: "opened";
579
579
  simple_status: "ok";
580
580
  is_paused: boolean;
581
581
  has_rendered: boolean;
@@ -591,24 +591,23 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
591
591
  can_have_delivery_info: boolean;
592
592
  opened_at_millis: number;
593
593
  } | {
594
- status: "clicked";
595
- id: string;
596
- created_at_millis: number;
597
594
  html: string | null;
598
595
  text: string | null;
596
+ id: string;
597
+ created_at_millis: number;
599
598
  updated_at_millis: number;
600
599
  tsx_source: string;
601
600
  theme_id: string | null;
602
601
  to: {
603
- user_id: string;
604
602
  type: "user-primary-email";
605
- } | {
606
603
  user_id: string;
607
- type: "user-custom-emails";
604
+ } | {
608
605
  emails: string[];
606
+ type: "user-custom-emails";
607
+ user_id: string;
609
608
  } | {
610
- type: "custom-emails";
611
609
  emails: string[];
610
+ type: "custom-emails";
612
611
  };
613
612
  variables: Record<string, {} | null>;
614
613
  skip_deliverability_check: boolean;
@@ -626,6 +625,7 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
626
625
  internal_message: string;
627
626
  internal_details: Record<string, {} | null>;
628
627
  }[] | null;
628
+ status: "clicked";
629
629
  simple_status: "ok";
630
630
  is_paused: boolean;
631
631
  has_rendered: boolean;
@@ -641,24 +641,23 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
641
641
  can_have_delivery_info: boolean;
642
642
  clicked_at_millis: number;
643
643
  } | {
644
- status: "marked-as-spam";
645
- id: string;
646
- created_at_millis: number;
647
644
  html: string | null;
648
645
  text: string | null;
646
+ id: string;
647
+ created_at_millis: number;
649
648
  updated_at_millis: number;
650
649
  tsx_source: string;
651
650
  theme_id: string | null;
652
651
  to: {
653
- user_id: string;
654
652
  type: "user-primary-email";
655
- } | {
656
653
  user_id: string;
657
- type: "user-custom-emails";
654
+ } | {
658
655
  emails: string[];
656
+ type: "user-custom-emails";
657
+ user_id: string;
659
658
  } | {
660
- type: "custom-emails";
661
659
  emails: string[];
660
+ type: "custom-emails";
662
661
  };
663
662
  variables: Record<string, {} | null>;
664
663
  skip_deliverability_check: boolean;
@@ -676,6 +675,7 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
676
675
  internal_message: string;
677
676
  internal_details: Record<string, {} | null>;
678
677
  }[] | null;
678
+ status: "marked-as-spam";
679
679
  simple_status: "ok";
680
680
  is_paused: boolean;
681
681
  has_rendered: boolean;
@@ -695,15 +695,15 @@ declare const emailOutboxUpdateSchema: import("yup").ObjectSchema<{
695
695
  tsx_source: string | undefined;
696
696
  theme_id: string | null | undefined;
697
697
  to: {
698
- user_id: string;
699
698
  type: "user-primary-email";
700
- } | {
701
699
  user_id: string;
702
- type: "user-custom-emails";
700
+ } | {
703
701
  emails: string[];
702
+ type: "user-custom-emails";
703
+ user_id: string;
704
704
  } | {
705
- type: "custom-emails";
706
705
  emails: string[];
706
+ type: "custom-emails";
707
707
  } | undefined;
708
708
  variables: Record<string, {} | null> | undefined;
709
709
  skip_deliverability_check: boolean | undefined;
@@ -722,22 +722,21 @@ declare const emailOutboxUpdateSchema: import("yup").ObjectSchema<{
722
722
  }, "">;
723
723
  declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
724
724
  serverReadSchema: import("yup").MixedSchema<{
725
- status: "paused";
726
725
  id: string;
727
726
  created_at_millis: number;
728
727
  updated_at_millis: number;
729
728
  tsx_source: string;
730
729
  theme_id: string | null;
731
730
  to: {
732
- user_id: string;
733
731
  type: "user-primary-email";
734
- } | {
735
732
  user_id: string;
736
- type: "user-custom-emails";
733
+ } | {
737
734
  emails: string[];
735
+ type: "user-custom-emails";
736
+ user_id: string;
738
737
  } | {
739
- type: "custom-emails";
740
738
  emails: string[];
739
+ type: "custom-emails";
741
740
  };
742
741
  variables: Record<string, {} | null>;
743
742
  skip_deliverability_check: boolean;
@@ -755,27 +754,27 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
755
754
  internal_message: string;
756
755
  internal_details: Record<string, {} | null>;
757
756
  }[] | null;
757
+ status: "paused";
758
758
  simple_status: "in-progress";
759
759
  is_paused: boolean;
760
760
  has_rendered: boolean;
761
761
  has_delivered: boolean;
762
762
  } | {
763
- status: "preparing";
764
763
  id: string;
765
764
  created_at_millis: number;
766
765
  updated_at_millis: number;
767
766
  tsx_source: string;
768
767
  theme_id: string | null;
769
768
  to: {
770
- user_id: string;
771
769
  type: "user-primary-email";
772
- } | {
773
770
  user_id: string;
774
- type: "user-custom-emails";
771
+ } | {
775
772
  emails: string[];
773
+ type: "user-custom-emails";
774
+ user_id: string;
776
775
  } | {
777
- type: "custom-emails";
778
776
  emails: string[];
777
+ type: "custom-emails";
779
778
  };
780
779
  variables: Record<string, {} | null>;
781
780
  skip_deliverability_check: boolean;
@@ -793,27 +792,27 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
793
792
  internal_message: string;
794
793
  internal_details: Record<string, {} | null>;
795
794
  }[] | null;
795
+ status: "preparing";
796
796
  simple_status: "in-progress";
797
797
  is_paused: boolean;
798
798
  has_rendered: boolean;
799
799
  has_delivered: boolean;
800
800
  } | {
801
- status: "rendering";
802
801
  id: string;
803
802
  created_at_millis: number;
804
803
  updated_at_millis: number;
805
804
  tsx_source: string;
806
805
  theme_id: string | null;
807
806
  to: {
808
- user_id: string;
809
807
  type: "user-primary-email";
810
- } | {
811
808
  user_id: string;
812
- type: "user-custom-emails";
809
+ } | {
813
810
  emails: string[];
811
+ type: "user-custom-emails";
812
+ user_id: string;
814
813
  } | {
815
- type: "custom-emails";
816
814
  emails: string[];
815
+ type: "custom-emails";
817
816
  };
818
817
  variables: Record<string, {} | null>;
819
818
  skip_deliverability_check: boolean;
@@ -831,28 +830,28 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
831
830
  internal_message: string;
832
831
  internal_details: Record<string, {} | null>;
833
832
  }[] | null;
833
+ status: "rendering";
834
834
  simple_status: "in-progress";
835
835
  is_paused: boolean;
836
836
  has_rendered: boolean;
837
837
  has_delivered: boolean;
838
838
  started_rendering_at_millis: number;
839
839
  } | {
840
- status: "render-error";
841
840
  id: string;
842
841
  created_at_millis: number;
843
842
  updated_at_millis: number;
844
843
  tsx_source: string;
845
844
  theme_id: string | null;
846
845
  to: {
847
- user_id: string;
848
846
  type: "user-primary-email";
849
- } | {
850
847
  user_id: string;
851
- type: "user-custom-emails";
848
+ } | {
852
849
  emails: string[];
850
+ type: "user-custom-emails";
851
+ user_id: string;
853
852
  } | {
854
- type: "custom-emails";
855
853
  emails: string[];
854
+ type: "custom-emails";
856
855
  };
857
856
  variables: Record<string, {} | null>;
858
857
  skip_deliverability_check: boolean;
@@ -870,6 +869,7 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
870
869
  internal_message: string;
871
870
  internal_details: Record<string, {} | null>;
872
871
  }[] | null;
872
+ status: "render-error";
873
873
  simple_status: "error";
874
874
  is_paused: boolean;
875
875
  has_rendered: boolean;
@@ -878,24 +878,23 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
878
878
  rendered_at_millis: number;
879
879
  render_error: string;
880
880
  } | {
881
- status: "scheduled";
882
- id: string;
883
- created_at_millis: number;
884
881
  html: string | null;
885
882
  text: string | null;
883
+ id: string;
884
+ created_at_millis: number;
886
885
  updated_at_millis: number;
887
886
  tsx_source: string;
888
887
  theme_id: string | null;
889
888
  to: {
890
- user_id: string;
891
889
  type: "user-primary-email";
892
- } | {
893
890
  user_id: string;
894
- type: "user-custom-emails";
891
+ } | {
895
892
  emails: string[];
893
+ type: "user-custom-emails";
894
+ user_id: string;
896
895
  } | {
897
- type: "custom-emails";
898
896
  emails: string[];
897
+ type: "custom-emails";
899
898
  };
900
899
  variables: Record<string, {} | null>;
901
900
  skip_deliverability_check: boolean;
@@ -913,6 +912,7 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
913
912
  internal_message: string;
914
913
  internal_details: Record<string, {} | null>;
915
914
  }[] | null;
915
+ status: "scheduled";
916
916
  simple_status: "in-progress";
917
917
  is_paused: boolean;
918
918
  has_rendered: boolean;
@@ -924,24 +924,23 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
924
924
  is_high_priority: boolean;
925
925
  notification_category_id: string | null;
926
926
  } | {
927
- status: "queued";
928
- id: string;
929
- created_at_millis: number;
930
927
  html: string | null;
931
928
  text: string | null;
929
+ id: string;
930
+ created_at_millis: number;
932
931
  updated_at_millis: number;
933
932
  tsx_source: string;
934
933
  theme_id: string | null;
935
934
  to: {
936
- user_id: string;
937
935
  type: "user-primary-email";
938
- } | {
939
936
  user_id: string;
940
- type: "user-custom-emails";
937
+ } | {
941
938
  emails: string[];
939
+ type: "user-custom-emails";
940
+ user_id: string;
942
941
  } | {
943
- type: "custom-emails";
944
942
  emails: string[];
943
+ type: "custom-emails";
945
944
  };
946
945
  variables: Record<string, {} | null>;
947
946
  skip_deliverability_check: boolean;
@@ -959,6 +958,7 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
959
958
  internal_message: string;
960
959
  internal_details: Record<string, {} | null>;
961
960
  }[] | null;
961
+ status: "queued";
962
962
  simple_status: "in-progress";
963
963
  is_paused: boolean;
964
964
  has_rendered: boolean;
@@ -970,24 +970,23 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
970
970
  is_high_priority: boolean;
971
971
  notification_category_id: string | null;
972
972
  } | {
973
- status: "sending";
974
- id: string;
975
- created_at_millis: number;
976
973
  html: string | null;
977
974
  text: string | null;
975
+ id: string;
976
+ created_at_millis: number;
978
977
  updated_at_millis: number;
979
978
  tsx_source: string;
980
979
  theme_id: string | null;
981
980
  to: {
982
- user_id: string;
983
981
  type: "user-primary-email";
984
- } | {
985
982
  user_id: string;
986
- type: "user-custom-emails";
983
+ } | {
987
984
  emails: string[];
985
+ type: "user-custom-emails";
986
+ user_id: string;
988
987
  } | {
989
- type: "custom-emails";
990
988
  emails: string[];
989
+ type: "custom-emails";
991
990
  };
992
991
  variables: Record<string, {} | null>;
993
992
  skip_deliverability_check: boolean;
@@ -1005,6 +1004,7 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1005
1004
  internal_message: string;
1006
1005
  internal_details: Record<string, {} | null>;
1007
1006
  }[] | null;
1007
+ status: "sending";
1008
1008
  simple_status: "in-progress";
1009
1009
  is_paused: boolean;
1010
1010
  has_rendered: boolean;
@@ -1017,24 +1017,23 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1017
1017
  notification_category_id: string | null;
1018
1018
  started_sending_at_millis: number;
1019
1019
  } | {
1020
- status: "server-error";
1021
- id: string;
1022
- created_at_millis: number;
1023
1020
  html: string | null;
1024
1021
  text: string | null;
1022
+ id: string;
1023
+ created_at_millis: number;
1025
1024
  updated_at_millis: number;
1026
1025
  tsx_source: string;
1027
1026
  theme_id: string | null;
1028
1027
  to: {
1029
- user_id: string;
1030
1028
  type: "user-primary-email";
1031
- } | {
1032
1029
  user_id: string;
1033
- type: "user-custom-emails";
1030
+ } | {
1034
1031
  emails: string[];
1032
+ type: "user-custom-emails";
1033
+ user_id: string;
1035
1034
  } | {
1036
- type: "custom-emails";
1037
1035
  emails: string[];
1036
+ type: "custom-emails";
1038
1037
  };
1039
1038
  variables: Record<string, {} | null>;
1040
1039
  skip_deliverability_check: boolean;
@@ -1052,6 +1051,7 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1052
1051
  internal_message: string;
1053
1052
  internal_details: Record<string, {} | null>;
1054
1053
  }[] | null;
1054
+ status: "server-error";
1055
1055
  simple_status: "error";
1056
1056
  is_paused: boolean;
1057
1057
  has_rendered: boolean;
@@ -1075,22 +1075,21 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1075
1075
  is_high_priority?: boolean | undefined;
1076
1076
  notification_category_id?: string | null | undefined;
1077
1077
  started_sending_at_millis?: number | undefined;
1078
- status: "skipped";
1079
1078
  id: string;
1080
1079
  created_at_millis: number;
1081
1080
  updated_at_millis: number;
1082
1081
  tsx_source: string;
1083
1082
  theme_id: string | null;
1084
1083
  to: {
1085
- user_id: string;
1086
1084
  type: "user-primary-email";
1087
- } | {
1088
1085
  user_id: string;
1089
- type: "user-custom-emails";
1086
+ } | {
1090
1087
  emails: string[];
1088
+ type: "user-custom-emails";
1089
+ user_id: string;
1091
1090
  } | {
1092
- type: "custom-emails";
1093
1091
  emails: string[];
1092
+ type: "custom-emails";
1094
1093
  };
1095
1094
  variables: Record<string, {} | null>;
1096
1095
  skip_deliverability_check: boolean;
@@ -1108,6 +1107,7 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1108
1107
  internal_message: string;
1109
1108
  internal_details: Record<string, {} | null>;
1110
1109
  }[] | null;
1110
+ status: "skipped";
1111
1111
  simple_status: "ok";
1112
1112
  is_paused: boolean;
1113
1113
  has_rendered: boolean;
@@ -1116,24 +1116,23 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1116
1116
  skipped_reason: string;
1117
1117
  skipped_details: Record<string, {} | null>;
1118
1118
  } | {
1119
- status: "bounced";
1120
- id: string;
1121
- created_at_millis: number;
1122
1119
  html: string | null;
1123
1120
  text: string | null;
1121
+ id: string;
1122
+ created_at_millis: number;
1124
1123
  updated_at_millis: number;
1125
1124
  tsx_source: string;
1126
1125
  theme_id: string | null;
1127
1126
  to: {
1128
- user_id: string;
1129
1127
  type: "user-primary-email";
1130
- } | {
1131
1128
  user_id: string;
1132
- type: "user-custom-emails";
1129
+ } | {
1133
1130
  emails: string[];
1131
+ type: "user-custom-emails";
1132
+ user_id: string;
1134
1133
  } | {
1135
- type: "custom-emails";
1136
1134
  emails: string[];
1135
+ type: "custom-emails";
1137
1136
  };
1138
1137
  variables: Record<string, {} | null>;
1139
1138
  skip_deliverability_check: boolean;
@@ -1151,6 +1150,7 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1151
1150
  internal_message: string;
1152
1151
  internal_details: Record<string, {} | null>;
1153
1152
  }[] | null;
1153
+ status: "bounced";
1154
1154
  simple_status: "error";
1155
1155
  is_paused: boolean;
1156
1156
  has_rendered: boolean;
@@ -1164,24 +1164,23 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1164
1164
  started_sending_at_millis: number;
1165
1165
  bounced_at_millis: number;
1166
1166
  } | {
1167
- status: "delivery-delayed";
1168
- id: string;
1169
- created_at_millis: number;
1170
1167
  html: string | null;
1171
1168
  text: string | null;
1169
+ id: string;
1170
+ created_at_millis: number;
1172
1171
  updated_at_millis: number;
1173
1172
  tsx_source: string;
1174
1173
  theme_id: string | null;
1175
1174
  to: {
1176
- user_id: string;
1177
1175
  type: "user-primary-email";
1178
- } | {
1179
1176
  user_id: string;
1180
- type: "user-custom-emails";
1177
+ } | {
1181
1178
  emails: string[];
1179
+ type: "user-custom-emails";
1180
+ user_id: string;
1182
1181
  } | {
1183
- type: "custom-emails";
1184
1182
  emails: string[];
1183
+ type: "custom-emails";
1185
1184
  };
1186
1185
  variables: Record<string, {} | null>;
1187
1186
  skip_deliverability_check: boolean;
@@ -1199,6 +1198,7 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1199
1198
  internal_message: string;
1200
1199
  internal_details: Record<string, {} | null>;
1201
1200
  }[] | null;
1201
+ status: "delivery-delayed";
1202
1202
  simple_status: "ok";
1203
1203
  is_paused: boolean;
1204
1204
  has_rendered: boolean;
@@ -1212,24 +1212,23 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1212
1212
  started_sending_at_millis: number;
1213
1213
  delivery_delayed_at_millis: number;
1214
1214
  } | {
1215
- status: "sent";
1216
- id: string;
1217
- created_at_millis: number;
1218
1215
  html: string | null;
1219
1216
  text: string | null;
1217
+ id: string;
1218
+ created_at_millis: number;
1220
1219
  updated_at_millis: number;
1221
1220
  tsx_source: string;
1222
1221
  theme_id: string | null;
1223
1222
  to: {
1224
- user_id: string;
1225
1223
  type: "user-primary-email";
1226
- } | {
1227
1224
  user_id: string;
1228
- type: "user-custom-emails";
1225
+ } | {
1229
1226
  emails: string[];
1227
+ type: "user-custom-emails";
1228
+ user_id: string;
1230
1229
  } | {
1231
- type: "custom-emails";
1232
1230
  emails: string[];
1231
+ type: "custom-emails";
1233
1232
  };
1234
1233
  variables: Record<string, {} | null>;
1235
1234
  skip_deliverability_check: boolean;
@@ -1247,6 +1246,7 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1247
1246
  internal_message: string;
1248
1247
  internal_details: Record<string, {} | null>;
1249
1248
  }[] | null;
1249
+ status: "sent";
1250
1250
  simple_status: "ok";
1251
1251
  is_paused: boolean;
1252
1252
  has_rendered: boolean;
@@ -1261,24 +1261,23 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1261
1261
  delivered_at_millis: number;
1262
1262
  can_have_delivery_info: boolean;
1263
1263
  } | {
1264
- status: "opened";
1265
- id: string;
1266
- created_at_millis: number;
1267
1264
  html: string | null;
1268
1265
  text: string | null;
1266
+ id: string;
1267
+ created_at_millis: number;
1269
1268
  updated_at_millis: number;
1270
1269
  tsx_source: string;
1271
1270
  theme_id: string | null;
1272
1271
  to: {
1273
- user_id: string;
1274
1272
  type: "user-primary-email";
1275
- } | {
1276
1273
  user_id: string;
1277
- type: "user-custom-emails";
1274
+ } | {
1278
1275
  emails: string[];
1276
+ type: "user-custom-emails";
1277
+ user_id: string;
1279
1278
  } | {
1280
- type: "custom-emails";
1281
1279
  emails: string[];
1280
+ type: "custom-emails";
1282
1281
  };
1283
1282
  variables: Record<string, {} | null>;
1284
1283
  skip_deliverability_check: boolean;
@@ -1296,6 +1295,7 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1296
1295
  internal_message: string;
1297
1296
  internal_details: Record<string, {} | null>;
1298
1297
  }[] | null;
1298
+ status: "opened";
1299
1299
  simple_status: "ok";
1300
1300
  is_paused: boolean;
1301
1301
  has_rendered: boolean;
@@ -1311,24 +1311,23 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1311
1311
  can_have_delivery_info: boolean;
1312
1312
  opened_at_millis: number;
1313
1313
  } | {
1314
- status: "clicked";
1315
- id: string;
1316
- created_at_millis: number;
1317
1314
  html: string | null;
1318
1315
  text: string | null;
1316
+ id: string;
1317
+ created_at_millis: number;
1319
1318
  updated_at_millis: number;
1320
1319
  tsx_source: string;
1321
1320
  theme_id: string | null;
1322
1321
  to: {
1323
- user_id: string;
1324
1322
  type: "user-primary-email";
1325
- } | {
1326
1323
  user_id: string;
1327
- type: "user-custom-emails";
1324
+ } | {
1328
1325
  emails: string[];
1326
+ type: "user-custom-emails";
1327
+ user_id: string;
1329
1328
  } | {
1330
- type: "custom-emails";
1331
1329
  emails: string[];
1330
+ type: "custom-emails";
1332
1331
  };
1333
1332
  variables: Record<string, {} | null>;
1334
1333
  skip_deliverability_check: boolean;
@@ -1346,6 +1345,7 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1346
1345
  internal_message: string;
1347
1346
  internal_details: Record<string, {} | null>;
1348
1347
  }[] | null;
1348
+ status: "clicked";
1349
1349
  simple_status: "ok";
1350
1350
  is_paused: boolean;
1351
1351
  has_rendered: boolean;
@@ -1361,24 +1361,23 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1361
1361
  can_have_delivery_info: boolean;
1362
1362
  clicked_at_millis: number;
1363
1363
  } | {
1364
- status: "marked-as-spam";
1365
- id: string;
1366
- created_at_millis: number;
1367
1364
  html: string | null;
1368
1365
  text: string | null;
1366
+ id: string;
1367
+ created_at_millis: number;
1369
1368
  updated_at_millis: number;
1370
1369
  tsx_source: string;
1371
1370
  theme_id: string | null;
1372
1371
  to: {
1373
- user_id: string;
1374
1372
  type: "user-primary-email";
1375
- } | {
1376
1373
  user_id: string;
1377
- type: "user-custom-emails";
1374
+ } | {
1378
1375
  emails: string[];
1376
+ type: "user-custom-emails";
1377
+ user_id: string;
1379
1378
  } | {
1380
- type: "custom-emails";
1381
1379
  emails: string[];
1380
+ type: "custom-emails";
1382
1381
  };
1383
1382
  variables: Record<string, {} | null>;
1384
1383
  skip_deliverability_check: boolean;
@@ -1396,6 +1395,7 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1396
1395
  internal_message: string;
1397
1396
  internal_details: Record<string, {} | null>;
1398
1397
  }[] | null;
1398
+ status: "marked-as-spam";
1399
1399
  simple_status: "ok";
1400
1400
  is_paused: boolean;
1401
1401
  has_rendered: boolean;
@@ -1415,15 +1415,15 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1415
1415
  tsx_source: string | undefined;
1416
1416
  theme_id: string | null | undefined;
1417
1417
  to: {
1418
- user_id: string;
1419
1418
  type: "user-primary-email";
1420
- } | {
1421
1419
  user_id: string;
1422
- type: "user-custom-emails";
1420
+ } | {
1423
1421
  emails: string[];
1422
+ type: "user-custom-emails";
1423
+ user_id: string;
1424
1424
  } | {
1425
- type: "custom-emails";
1426
1425
  emails: string[];
1426
+ type: "custom-emails";
1427
1427
  } | undefined;
1428
1428
  variables: Record<string, {} | null> | undefined;
1429
1429
  skip_deliverability_check: boolean | undefined;