@hexclave/shared 1.0.63 → 1.0.65

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 (94) hide show
  1. package/dist/{admin-interface-B9TRKVnU.d.ts → admin-interface-DpRVOD-m.d.ts} +11 -11
  2. package/dist/{admin-interface-B9TRKVnU.d.ts.map → admin-interface-DpRVOD-m.d.ts.map} +1 -1
  3. package/dist/{admin-metrics-bsOkw4YQ.d.ts → admin-metrics-1yiWGq9z.d.ts} +15 -15
  4. package/dist/{admin-metrics-bsOkw4YQ.d.ts.map → admin-metrics-1yiWGq9z.d.ts.map} +1 -1
  5. package/dist/ai/unified-prompts/reminders.js +1 -0
  6. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  7. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
  8. package/dist/ai/unified-prompts/skill-site-prompt-parts/deployments-skill.js +22 -6
  9. package/dist/ai/unified-prompts/skill-site-prompt-parts/deployments-skill.js.map +1 -1
  10. package/dist/{client-interface-DvkciaL0.d.ts → client-interface-DuVu82ry.d.ts} +10 -10
  11. package/dist/{client-interface-DvkciaL0.d.ts.map → client-interface-DuVu82ry.d.ts.map} +1 -1
  12. package/dist/config/schema.d.ts +1 -1
  13. package/dist/config-authoring.d.ts +1 -1
  14. package/dist/{current-user-BBoN3hsn.d.ts → current-user-BCkMYzHx.d.ts} +17 -17
  15. package/dist/{current-user-BBoN3hsn.d.ts.map → current-user-BCkMYzHx.d.ts.map} +1 -1
  16. package/dist/{email-outbox-CYmVerum.d.ts → email-outbox-BRZiK0ZG.d.ts} +225 -225
  17. package/dist/{email-outbox-CYmVerum.d.ts.map → email-outbox-BRZiK0ZG.d.ts.map} +1 -1
  18. package/dist/esm/ai/unified-prompts/reminders.js +1 -0
  19. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  20. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
  21. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/deployments-skill.js +22 -6
  22. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/deployments-skill.js.map +1 -1
  23. package/dist/esm/config/schema.d.ts +90 -90
  24. package/dist/esm/interface/admin-metrics.d.ts +14 -14
  25. package/dist/esm/interface/conversations.d.ts +37 -37
  26. package/dist/esm/interface/crud/current-user.d.ts +16 -16
  27. package/dist/esm/interface/crud/email-outbox.d.ts +224 -224
  28. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  29. package/dist/esm/interface/crud/products.d.ts +23 -23
  30. package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
  31. package/dist/esm/interface/crud/projects.d.ts +59 -59
  32. package/dist/esm/interface/crud/team-member-profiles.d.ts +32 -32
  33. package/dist/esm/interface/crud/transactions.d.ts +29 -29
  34. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  35. package/dist/esm/interface/crud/users.d.ts +22 -22
  36. package/dist/esm/interface/plan-usage.d.ts +1 -1
  37. package/dist/esm/interface/webhooks.d.ts +4 -4
  38. package/dist/esm/known-errors.d.ts +4 -4
  39. package/dist/esm/schema-fields.d.ts +8 -8
  40. package/dist/esm/sessions.d.ts +8 -8
  41. package/dist/helpers/password.d.ts +1 -1
  42. package/dist/helpers/production-mode.d.ts +1 -1
  43. package/dist/index.d.ts +4 -4
  44. package/dist/interface/admin-interface.d.ts +2 -2
  45. package/dist/interface/admin-metrics.d.ts +1 -1
  46. package/dist/interface/client-interface.d.ts +1 -1
  47. package/dist/interface/conversations.d.ts +37 -37
  48. package/dist/interface/crud/current-user.d.ts +1 -1
  49. package/dist/interface/crud/email-outbox.d.ts +1 -1
  50. package/dist/interface/crud/invoices.d.ts +1 -1
  51. package/dist/interface/crud/products.d.ts +1 -1
  52. package/dist/interface/crud/project-api-keys.d.ts +1 -1
  53. package/dist/interface/crud/projects.d.ts +1 -1
  54. package/dist/interface/crud/team-member-profiles.d.ts +1 -1
  55. package/dist/interface/crud/transactions.d.ts +1 -1
  56. package/dist/interface/crud/users.d.ts +1 -1
  57. package/dist/interface/plan-usage.d.ts +1 -1
  58. package/dist/interface/server-interface.d.ts +1 -1
  59. package/dist/interface/webhooks.d.ts +1 -1
  60. package/dist/{invoices-CHo9YKbI.d.ts → invoices-BGLLnTlR.d.ts} +3 -3
  61. package/dist/{invoices-CHo9YKbI.d.ts.map → invoices-BGLLnTlR.d.ts.map} +1 -1
  62. package/dist/{known-errors-Bm4a61wL.d.ts → known-errors-Bhd0JAgh.d.ts} +5 -5
  63. package/dist/{known-errors-Bm4a61wL.d.ts.map → known-errors-Bhd0JAgh.d.ts.map} +1 -1
  64. package/dist/known-errors.d.ts +1 -1
  65. package/dist/{plan-usage-BaDxcLZ1.d.ts → plan-usage-COq9I00z.d.ts} +2 -2
  66. package/dist/{plan-usage-BaDxcLZ1.d.ts.map → plan-usage-COq9I00z.d.ts.map} +1 -1
  67. package/dist/{products-D4o8A2W0.d.ts → products-BkPf1X78.d.ts} +24 -24
  68. package/dist/{products-D4o8A2W0.d.ts.map → products-BkPf1X78.d.ts.map} +1 -1
  69. package/dist/{project-api-keys--7V5X_UW.d.ts → project-api-keys-CK9SIo0q.d.ts} +5 -5
  70. package/dist/{project-api-keys--7V5X_UW.d.ts.map → project-api-keys-CK9SIo0q.d.ts.map} +1 -1
  71. package/dist/{projects-BX5Y50kJ.d.ts → projects-CVqfljhv.d.ts} +60 -60
  72. package/dist/{projects-BX5Y50kJ.d.ts.map → projects-CVqfljhv.d.ts.map} +1 -1
  73. package/dist/{schema-dJ_7rUCO.d.ts → schema-3X-2xYMA.d.ts} +91 -91
  74. package/dist/{schema-dJ_7rUCO.d.ts.map → schema-3X-2xYMA.d.ts.map} +1 -1
  75. package/dist/{schema-fields-DZtDQEEO.d.ts → schema-fields-D_5cu_1S.d.ts} +9 -9
  76. package/dist/{schema-fields-DZtDQEEO.d.ts.map → schema-fields-D_5cu_1S.d.ts.map} +1 -1
  77. package/dist/schema-fields.d.ts +1 -1
  78. package/dist/{server-interface-Ra_vIHP4.d.ts → server-interface-D4qaM0LE.d.ts} +8 -8
  79. package/dist/{server-interface-Ra_vIHP4.d.ts.map → server-interface-D4qaM0LE.d.ts.map} +1 -1
  80. package/dist/{sessions-CI-0TBQb.d.ts → sessions-Cu_D5stb.d.ts} +10 -10
  81. package/dist/{sessions-CI-0TBQb.d.ts.map → sessions-Cu_D5stb.d.ts.map} +1 -1
  82. package/dist/sessions.d.ts +1 -1
  83. package/dist/{team-member-profiles-BoDEqx-0.d.ts → team-member-profiles-CgYXR-Rx.d.ts} +33 -33
  84. package/dist/{team-member-profiles-BoDEqx-0.d.ts.map → team-member-profiles-CgYXR-Rx.d.ts.map} +1 -1
  85. package/dist/{transactions-CHNUJ42J.d.ts → transactions-7q13mxhG.d.ts} +30 -30
  86. package/dist/transactions-7q13mxhG.d.ts.map +1 -0
  87. package/dist/{users-DHNRwoSz.d.ts → users-7MKfEyyq.d.ts} +24 -24
  88. package/dist/{users-DHNRwoSz.d.ts.map → users-7MKfEyyq.d.ts.map} +1 -1
  89. package/dist/{webhooks-8Ts1Clcb.d.ts → webhooks-C5gG85Ce.d.ts} +5 -5
  90. package/dist/{webhooks-8Ts1Clcb.d.ts.map → webhooks-C5gG85Ce.d.ts.map} +1 -1
  91. package/package.json +1 -1
  92. package/src/ai/unified-prompts/reminders.ts +1 -0
  93. package/src/ai/unified-prompts/skill-site-prompt-parts/deployments-skill.ts +22 -6
  94. package/dist/transactions-CHNUJ42J.d.ts.map +0 -1
@@ -2,22 +2,21 @@ import { c as CrudTypeOf, s as CrudSchemaFromOptions } from "./crud-CqmEW9s6.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,23 +158,23 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
158
158
  rendered_at_millis: number;
159
159
  render_error: string;
160
160
  } | {
161
- status: "scheduled";
161
+ html: string | null;
162
+ text: string | null;
162
163
  id: string;
163
- subject: string;
164
164
  created_at_millis: number;
165
165
  updated_at_millis: number;
166
166
  tsx_source: string;
167
167
  theme_id: string | null;
168
168
  to: {
169
- user_id: string;
170
169
  type: "user-primary-email";
171
- } | {
172
170
  user_id: string;
173
- type: "user-custom-emails";
171
+ } | {
174
172
  emails: string[];
173
+ type: "user-custom-emails";
174
+ user_id: string;
175
175
  } | {
176
- type: "custom-emails";
177
176
  emails: string[];
177
+ type: "custom-emails";
178
178
  };
179
179
  variables: Record<string, {} | null>;
180
180
  skip_deliverability_check: boolean;
@@ -192,35 +192,35 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
192
192
  internal_message: string;
193
193
  internal_details: Record<string, {} | null>;
194
194
  }[] | null;
195
+ status: "scheduled";
195
196
  simple_status: "in-progress";
196
197
  is_paused: boolean;
197
198
  has_rendered: boolean;
198
199
  has_delivered: boolean;
199
200
  started_rendering_at_millis: number;
200
201
  rendered_at_millis: number;
201
- html: string | null;
202
- text: string | null;
202
+ subject: string;
203
203
  is_transactional: boolean;
204
204
  is_high_priority: boolean;
205
205
  notification_category_id: string | null;
206
206
  } | {
207
- status: "queued";
207
+ html: string | null;
208
+ text: string | null;
208
209
  id: string;
209
- subject: string;
210
210
  created_at_millis: number;
211
211
  updated_at_millis: number;
212
212
  tsx_source: string;
213
213
  theme_id: string | null;
214
214
  to: {
215
- user_id: string;
216
215
  type: "user-primary-email";
217
- } | {
218
216
  user_id: string;
219
- type: "user-custom-emails";
217
+ } | {
220
218
  emails: string[];
219
+ type: "user-custom-emails";
220
+ user_id: string;
221
221
  } | {
222
- type: "custom-emails";
223
222
  emails: string[];
223
+ type: "custom-emails";
224
224
  };
225
225
  variables: Record<string, {} | null>;
226
226
  skip_deliverability_check: boolean;
@@ -238,35 +238,35 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
238
238
  internal_message: string;
239
239
  internal_details: Record<string, {} | null>;
240
240
  }[] | null;
241
+ status: "queued";
241
242
  simple_status: "in-progress";
242
243
  is_paused: boolean;
243
244
  has_rendered: boolean;
244
245
  has_delivered: boolean;
245
246
  started_rendering_at_millis: number;
246
247
  rendered_at_millis: number;
247
- html: string | null;
248
- text: string | null;
248
+ subject: string;
249
249
  is_transactional: boolean;
250
250
  is_high_priority: boolean;
251
251
  notification_category_id: string | null;
252
252
  } | {
253
- status: "sending";
253
+ html: string | null;
254
+ text: string | null;
254
255
  id: string;
255
- subject: string;
256
256
  created_at_millis: number;
257
257
  updated_at_millis: number;
258
258
  tsx_source: string;
259
259
  theme_id: string | null;
260
260
  to: {
261
- user_id: string;
262
261
  type: "user-primary-email";
263
- } | {
264
262
  user_id: string;
265
- type: "user-custom-emails";
263
+ } | {
266
264
  emails: string[];
265
+ type: "user-custom-emails";
266
+ user_id: string;
267
267
  } | {
268
- type: "custom-emails";
269
268
  emails: string[];
269
+ type: "custom-emails";
270
270
  };
271
271
  variables: Record<string, {} | null>;
272
272
  skip_deliverability_check: boolean;
@@ -284,36 +284,36 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
284
284
  internal_message: string;
285
285
  internal_details: Record<string, {} | null>;
286
286
  }[] | null;
287
+ status: "sending";
287
288
  simple_status: "in-progress";
288
289
  is_paused: boolean;
289
290
  has_rendered: boolean;
290
291
  has_delivered: boolean;
291
292
  started_rendering_at_millis: number;
292
293
  rendered_at_millis: number;
293
- html: string | null;
294
- text: string | null;
294
+ subject: string;
295
295
  is_transactional: boolean;
296
296
  is_high_priority: boolean;
297
297
  notification_category_id: string | null;
298
298
  started_sending_at_millis: number;
299
299
  } | {
300
- status: "server-error";
300
+ html: string | null;
301
+ text: string | null;
301
302
  id: string;
302
- subject: string;
303
303
  created_at_millis: number;
304
304
  updated_at_millis: number;
305
305
  tsx_source: string;
306
306
  theme_id: string | null;
307
307
  to: {
308
- user_id: string;
309
308
  type: "user-primary-email";
310
- } | {
311
309
  user_id: string;
312
- type: "user-custom-emails";
310
+ } | {
313
311
  emails: string[];
312
+ type: "user-custom-emails";
313
+ user_id: string;
314
314
  } | {
315
- type: "custom-emails";
316
315
  emails: string[];
316
+ type: "custom-emails";
317
317
  };
318
318
  variables: Record<string, {} | null>;
319
319
  skip_deliverability_check: boolean;
@@ -331,14 +331,14 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
331
331
  internal_message: string;
332
332
  internal_details: Record<string, {} | null>;
333
333
  }[] | null;
334
+ status: "server-error";
334
335
  simple_status: "error";
335
336
  is_paused: boolean;
336
337
  has_rendered: boolean;
337
338
  has_delivered: boolean;
338
339
  started_rendering_at_millis: number;
339
340
  rendered_at_millis: number;
340
- html: string | null;
341
- text: string | null;
341
+ subject: string;
342
342
  is_transactional: boolean;
343
343
  is_high_priority: boolean;
344
344
  notification_category_id: string | null;
@@ -346,31 +346,30 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
346
346
  error_at_millis: number;
347
347
  server_error: string;
348
348
  } | {
349
- subject?: string | undefined;
350
- started_rendering_at_millis?: number | undefined;
351
- rendered_at_millis?: number | undefined;
352
349
  html?: string | null | undefined;
353
350
  text?: string | null | undefined;
351
+ started_rendering_at_millis?: number | undefined;
352
+ rendered_at_millis?: number | undefined;
353
+ subject?: string | undefined;
354
354
  is_transactional?: boolean | undefined;
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,23 +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";
399
+ html: string | null;
400
+ text: string | null;
400
401
  id: string;
401
- subject: string;
402
402
  created_at_millis: number;
403
403
  updated_at_millis: number;
404
404
  tsx_source: string;
405
405
  theme_id: string | null;
406
406
  to: {
407
- user_id: string;
408
407
  type: "user-primary-email";
409
- } | {
410
408
  user_id: string;
411
- type: "user-custom-emails";
409
+ } | {
412
410
  emails: string[];
411
+ type: "user-custom-emails";
412
+ user_id: string;
413
413
  } | {
414
- type: "custom-emails";
415
414
  emails: string[];
415
+ type: "custom-emails";
416
416
  };
417
417
  variables: Record<string, {} | null>;
418
418
  skip_deliverability_check: boolean;
@@ -430,37 +430,37 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
430
430
  internal_message: string;
431
431
  internal_details: Record<string, {} | null>;
432
432
  }[] | null;
433
+ status: "bounced";
433
434
  simple_status: "error";
434
435
  is_paused: boolean;
435
436
  has_rendered: boolean;
436
437
  has_delivered: boolean;
437
438
  started_rendering_at_millis: number;
438
439
  rendered_at_millis: number;
439
- html: string | null;
440
- text: string | null;
440
+ subject: string;
441
441
  is_transactional: boolean;
442
442
  is_high_priority: boolean;
443
443
  notification_category_id: string | null;
444
444
  started_sending_at_millis: number;
445
445
  bounced_at_millis: number;
446
446
  } | {
447
- status: "delivery-delayed";
447
+ html: string | null;
448
+ text: string | null;
448
449
  id: string;
449
- subject: string;
450
450
  created_at_millis: number;
451
451
  updated_at_millis: number;
452
452
  tsx_source: string;
453
453
  theme_id: string | null;
454
454
  to: {
455
- user_id: string;
456
455
  type: "user-primary-email";
457
- } | {
458
456
  user_id: string;
459
- type: "user-custom-emails";
457
+ } | {
460
458
  emails: string[];
459
+ type: "user-custom-emails";
460
+ user_id: string;
461
461
  } | {
462
- type: "custom-emails";
463
462
  emails: string[];
463
+ type: "custom-emails";
464
464
  };
465
465
  variables: Record<string, {} | null>;
466
466
  skip_deliverability_check: boolean;
@@ -478,37 +478,37 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
478
478
  internal_message: string;
479
479
  internal_details: Record<string, {} | null>;
480
480
  }[] | null;
481
+ status: "delivery-delayed";
481
482
  simple_status: "ok";
482
483
  is_paused: boolean;
483
484
  has_rendered: boolean;
484
485
  has_delivered: boolean;
485
486
  started_rendering_at_millis: number;
486
487
  rendered_at_millis: number;
487
- html: string | null;
488
- text: string | null;
488
+ subject: string;
489
489
  is_transactional: boolean;
490
490
  is_high_priority: boolean;
491
491
  notification_category_id: string | null;
492
492
  started_sending_at_millis: number;
493
493
  delivery_delayed_at_millis: number;
494
494
  } | {
495
- status: "sent";
495
+ html: string | null;
496
+ text: string | null;
496
497
  id: string;
497
- subject: string;
498
498
  created_at_millis: number;
499
499
  updated_at_millis: number;
500
500
  tsx_source: string;
501
501
  theme_id: string | null;
502
502
  to: {
503
- user_id: string;
504
503
  type: "user-primary-email";
505
- } | {
506
504
  user_id: string;
507
- type: "user-custom-emails";
505
+ } | {
508
506
  emails: string[];
507
+ type: "user-custom-emails";
508
+ user_id: string;
509
509
  } | {
510
- type: "custom-emails";
511
510
  emails: string[];
511
+ type: "custom-emails";
512
512
  };
513
513
  variables: Record<string, {} | null>;
514
514
  skip_deliverability_check: boolean;
@@ -526,14 +526,14 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
526
526
  internal_message: string;
527
527
  internal_details: Record<string, {} | null>;
528
528
  }[] | null;
529
+ status: "sent";
529
530
  simple_status: "ok";
530
531
  is_paused: boolean;
531
532
  has_rendered: boolean;
532
533
  has_delivered: boolean;
533
534
  started_rendering_at_millis: number;
534
535
  rendered_at_millis: number;
535
- html: string | null;
536
- text: string | null;
536
+ subject: string;
537
537
  is_transactional: boolean;
538
538
  is_high_priority: boolean;
539
539
  notification_category_id: string | null;
@@ -541,23 +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";
544
+ html: string | null;
545
+ text: string | null;
545
546
  id: string;
546
- subject: string;
547
547
  created_at_millis: number;
548
548
  updated_at_millis: number;
549
549
  tsx_source: string;
550
550
  theme_id: string | null;
551
551
  to: {
552
- user_id: string;
553
552
  type: "user-primary-email";
554
- } | {
555
553
  user_id: string;
556
- type: "user-custom-emails";
554
+ } | {
557
555
  emails: string[];
556
+ type: "user-custom-emails";
557
+ user_id: string;
558
558
  } | {
559
- type: "custom-emails";
560
559
  emails: string[];
560
+ type: "custom-emails";
561
561
  };
562
562
  variables: Record<string, {} | null>;
563
563
  skip_deliverability_check: boolean;
@@ -575,14 +575,14 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
575
575
  internal_message: string;
576
576
  internal_details: Record<string, {} | null>;
577
577
  }[] | null;
578
+ status: "opened";
578
579
  simple_status: "ok";
579
580
  is_paused: boolean;
580
581
  has_rendered: boolean;
581
582
  has_delivered: boolean;
582
583
  started_rendering_at_millis: number;
583
584
  rendered_at_millis: number;
584
- html: string | null;
585
- text: string | null;
585
+ subject: string;
586
586
  is_transactional: boolean;
587
587
  is_high_priority: boolean;
588
588
  notification_category_id: string | null;
@@ -591,23 +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";
594
+ html: string | null;
595
+ text: string | null;
595
596
  id: string;
596
- subject: string;
597
597
  created_at_millis: number;
598
598
  updated_at_millis: number;
599
599
  tsx_source: string;
600
600
  theme_id: string | null;
601
601
  to: {
602
- user_id: string;
603
602
  type: "user-primary-email";
604
- } | {
605
603
  user_id: string;
606
- type: "user-custom-emails";
604
+ } | {
607
605
  emails: string[];
606
+ type: "user-custom-emails";
607
+ user_id: string;
608
608
  } | {
609
- type: "custom-emails";
610
609
  emails: string[];
610
+ type: "custom-emails";
611
611
  };
612
612
  variables: Record<string, {} | null>;
613
613
  skip_deliverability_check: boolean;
@@ -625,14 +625,14 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
625
625
  internal_message: string;
626
626
  internal_details: Record<string, {} | null>;
627
627
  }[] | null;
628
+ status: "clicked";
628
629
  simple_status: "ok";
629
630
  is_paused: boolean;
630
631
  has_rendered: boolean;
631
632
  has_delivered: boolean;
632
633
  started_rendering_at_millis: number;
633
634
  rendered_at_millis: number;
634
- html: string | null;
635
- text: string | null;
635
+ subject: string;
636
636
  is_transactional: boolean;
637
637
  is_high_priority: boolean;
638
638
  notification_category_id: string | null;
@@ -641,23 +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";
644
+ html: string | null;
645
+ text: string | null;
645
646
  id: string;
646
- subject: string;
647
647
  created_at_millis: number;
648
648
  updated_at_millis: number;
649
649
  tsx_source: string;
650
650
  theme_id: string | null;
651
651
  to: {
652
- user_id: string;
653
652
  type: "user-primary-email";
654
- } | {
655
653
  user_id: string;
656
- type: "user-custom-emails";
654
+ } | {
657
655
  emails: string[];
656
+ type: "user-custom-emails";
657
+ user_id: string;
658
658
  } | {
659
- type: "custom-emails";
660
659
  emails: string[];
660
+ type: "custom-emails";
661
661
  };
662
662
  variables: Record<string, {} | null>;
663
663
  skip_deliverability_check: boolean;
@@ -675,14 +675,14 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
675
675
  internal_message: string;
676
676
  internal_details: Record<string, {} | null>;
677
677
  }[] | null;
678
+ status: "marked-as-spam";
678
679
  simple_status: "ok";
679
680
  is_paused: boolean;
680
681
  has_rendered: boolean;
681
682
  has_delivered: boolean;
682
683
  started_rendering_at_millis: number;
683
684
  rendered_at_millis: number;
684
- html: string | null;
685
- text: string | null;
685
+ subject: string;
686
686
  is_transactional: boolean;
687
687
  is_high_priority: boolean;
688
688
  notification_category_id: string | null;
@@ -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: 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: 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: 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: 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: 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,23 +878,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
878
878
  rendered_at_millis: number;
879
879
  render_error: string;
880
880
  } | {
881
- status: "scheduled";
881
+ html: string | null;
882
+ text: string | null;
882
883
  id: string;
883
- subject: string;
884
884
  created_at_millis: number;
885
885
  updated_at_millis: number;
886
886
  tsx_source: string;
887
887
  theme_id: string | null;
888
888
  to: {
889
- user_id: string;
890
889
  type: "user-primary-email";
891
- } | {
892
890
  user_id: string;
893
- type: "user-custom-emails";
891
+ } | {
894
892
  emails: string[];
893
+ type: "user-custom-emails";
894
+ user_id: string;
895
895
  } | {
896
- type: "custom-emails";
897
896
  emails: string[];
897
+ type: "custom-emails";
898
898
  };
899
899
  variables: Record<string, {} | null>;
900
900
  skip_deliverability_check: boolean;
@@ -912,35 +912,35 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
912
912
  internal_message: string;
913
913
  internal_details: Record<string, {} | null>;
914
914
  }[] | null;
915
+ status: "scheduled";
915
916
  simple_status: "in-progress";
916
917
  is_paused: boolean;
917
918
  has_rendered: boolean;
918
919
  has_delivered: boolean;
919
920
  started_rendering_at_millis: number;
920
921
  rendered_at_millis: number;
921
- html: string | null;
922
- text: string | null;
922
+ subject: string;
923
923
  is_transactional: boolean;
924
924
  is_high_priority: boolean;
925
925
  notification_category_id: string | null;
926
926
  } | {
927
- status: "queued";
927
+ html: string | null;
928
+ text: string | null;
928
929
  id: string;
929
- subject: string;
930
930
  created_at_millis: number;
931
931
  updated_at_millis: number;
932
932
  tsx_source: string;
933
933
  theme_id: string | null;
934
934
  to: {
935
- user_id: string;
936
935
  type: "user-primary-email";
937
- } | {
938
936
  user_id: string;
939
- type: "user-custom-emails";
937
+ } | {
940
938
  emails: string[];
939
+ type: "user-custom-emails";
940
+ user_id: string;
941
941
  } | {
942
- type: "custom-emails";
943
942
  emails: string[];
943
+ type: "custom-emails";
944
944
  };
945
945
  variables: Record<string, {} | null>;
946
946
  skip_deliverability_check: boolean;
@@ -958,35 +958,35 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
958
958
  internal_message: string;
959
959
  internal_details: Record<string, {} | null>;
960
960
  }[] | null;
961
+ status: "queued";
961
962
  simple_status: "in-progress";
962
963
  is_paused: boolean;
963
964
  has_rendered: boolean;
964
965
  has_delivered: boolean;
965
966
  started_rendering_at_millis: number;
966
967
  rendered_at_millis: number;
967
- html: string | null;
968
- text: string | null;
968
+ subject: string;
969
969
  is_transactional: boolean;
970
970
  is_high_priority: boolean;
971
971
  notification_category_id: string | null;
972
972
  } | {
973
- status: "sending";
973
+ html: string | null;
974
+ text: string | null;
974
975
  id: string;
975
- subject: string;
976
976
  created_at_millis: number;
977
977
  updated_at_millis: number;
978
978
  tsx_source: string;
979
979
  theme_id: string | null;
980
980
  to: {
981
- user_id: string;
982
981
  type: "user-primary-email";
983
- } | {
984
982
  user_id: string;
985
- type: "user-custom-emails";
983
+ } | {
986
984
  emails: string[];
985
+ type: "user-custom-emails";
986
+ user_id: string;
987
987
  } | {
988
- type: "custom-emails";
989
988
  emails: string[];
989
+ type: "custom-emails";
990
990
  };
991
991
  variables: Record<string, {} | null>;
992
992
  skip_deliverability_check: boolean;
@@ -1004,36 +1004,36 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1004
1004
  internal_message: string;
1005
1005
  internal_details: Record<string, {} | null>;
1006
1006
  }[] | null;
1007
+ status: "sending";
1007
1008
  simple_status: "in-progress";
1008
1009
  is_paused: boolean;
1009
1010
  has_rendered: boolean;
1010
1011
  has_delivered: boolean;
1011
1012
  started_rendering_at_millis: number;
1012
1013
  rendered_at_millis: number;
1013
- html: string | null;
1014
- text: string | null;
1014
+ subject: string;
1015
1015
  is_transactional: boolean;
1016
1016
  is_high_priority: boolean;
1017
1017
  notification_category_id: string | null;
1018
1018
  started_sending_at_millis: number;
1019
1019
  } | {
1020
- status: "server-error";
1020
+ html: string | null;
1021
+ text: string | null;
1021
1022
  id: string;
1022
- subject: string;
1023
1023
  created_at_millis: number;
1024
1024
  updated_at_millis: number;
1025
1025
  tsx_source: string;
1026
1026
  theme_id: string | null;
1027
1027
  to: {
1028
- user_id: string;
1029
1028
  type: "user-primary-email";
1030
- } | {
1031
1029
  user_id: string;
1032
- type: "user-custom-emails";
1030
+ } | {
1033
1031
  emails: string[];
1032
+ type: "user-custom-emails";
1033
+ user_id: string;
1034
1034
  } | {
1035
- type: "custom-emails";
1036
1035
  emails: string[];
1036
+ type: "custom-emails";
1037
1037
  };
1038
1038
  variables: Record<string, {} | null>;
1039
1039
  skip_deliverability_check: boolean;
@@ -1051,14 +1051,14 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1051
1051
  internal_message: string;
1052
1052
  internal_details: Record<string, {} | null>;
1053
1053
  }[] | null;
1054
+ status: "server-error";
1054
1055
  simple_status: "error";
1055
1056
  is_paused: boolean;
1056
1057
  has_rendered: boolean;
1057
1058
  has_delivered: boolean;
1058
1059
  started_rendering_at_millis: number;
1059
1060
  rendered_at_millis: number;
1060
- html: string | null;
1061
- text: string | null;
1061
+ subject: string;
1062
1062
  is_transactional: boolean;
1063
1063
  is_high_priority: boolean;
1064
1064
  notification_category_id: string | null;
@@ -1066,31 +1066,30 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1066
1066
  error_at_millis: number;
1067
1067
  server_error: string;
1068
1068
  } | {
1069
- subject?: string | undefined;
1070
- started_rendering_at_millis?: number | undefined;
1071
- rendered_at_millis?: number | undefined;
1072
1069
  html?: string | null | undefined;
1073
1070
  text?: string | null | undefined;
1071
+ started_rendering_at_millis?: number | undefined;
1072
+ rendered_at_millis?: number | undefined;
1073
+ subject?: string | undefined;
1074
1074
  is_transactional?: boolean | undefined;
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: 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,23 +1116,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1116
1116
  skipped_reason: string;
1117
1117
  skipped_details: Record<string, {} | null>;
1118
1118
  } | {
1119
- status: "bounced";
1119
+ html: string | null;
1120
+ text: string | null;
1120
1121
  id: string;
1121
- subject: string;
1122
1122
  created_at_millis: number;
1123
1123
  updated_at_millis: number;
1124
1124
  tsx_source: string;
1125
1125
  theme_id: string | null;
1126
1126
  to: {
1127
- user_id: string;
1128
1127
  type: "user-primary-email";
1129
- } | {
1130
1128
  user_id: string;
1131
- type: "user-custom-emails";
1129
+ } | {
1132
1130
  emails: string[];
1131
+ type: "user-custom-emails";
1132
+ user_id: string;
1133
1133
  } | {
1134
- type: "custom-emails";
1135
1134
  emails: string[];
1135
+ type: "custom-emails";
1136
1136
  };
1137
1137
  variables: Record<string, {} | null>;
1138
1138
  skip_deliverability_check: boolean;
@@ -1150,37 +1150,37 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1150
1150
  internal_message: string;
1151
1151
  internal_details: Record<string, {} | null>;
1152
1152
  }[] | null;
1153
+ status: "bounced";
1153
1154
  simple_status: "error";
1154
1155
  is_paused: boolean;
1155
1156
  has_rendered: boolean;
1156
1157
  has_delivered: boolean;
1157
1158
  started_rendering_at_millis: number;
1158
1159
  rendered_at_millis: number;
1159
- html: string | null;
1160
- text: string | null;
1160
+ subject: string;
1161
1161
  is_transactional: boolean;
1162
1162
  is_high_priority: boolean;
1163
1163
  notification_category_id: string | null;
1164
1164
  started_sending_at_millis: number;
1165
1165
  bounced_at_millis: number;
1166
1166
  } | {
1167
- status: "delivery-delayed";
1167
+ html: string | null;
1168
+ text: string | null;
1168
1169
  id: string;
1169
- subject: string;
1170
1170
  created_at_millis: number;
1171
1171
  updated_at_millis: number;
1172
1172
  tsx_source: string;
1173
1173
  theme_id: string | null;
1174
1174
  to: {
1175
- user_id: string;
1176
1175
  type: "user-primary-email";
1177
- } | {
1178
1176
  user_id: string;
1179
- type: "user-custom-emails";
1177
+ } | {
1180
1178
  emails: string[];
1179
+ type: "user-custom-emails";
1180
+ user_id: string;
1181
1181
  } | {
1182
- type: "custom-emails";
1183
1182
  emails: string[];
1183
+ type: "custom-emails";
1184
1184
  };
1185
1185
  variables: Record<string, {} | null>;
1186
1186
  skip_deliverability_check: boolean;
@@ -1198,37 +1198,37 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1198
1198
  internal_message: string;
1199
1199
  internal_details: Record<string, {} | null>;
1200
1200
  }[] | null;
1201
+ status: "delivery-delayed";
1201
1202
  simple_status: "ok";
1202
1203
  is_paused: boolean;
1203
1204
  has_rendered: boolean;
1204
1205
  has_delivered: boolean;
1205
1206
  started_rendering_at_millis: number;
1206
1207
  rendered_at_millis: number;
1207
- html: string | null;
1208
- text: string | null;
1208
+ subject: string;
1209
1209
  is_transactional: boolean;
1210
1210
  is_high_priority: boolean;
1211
1211
  notification_category_id: string | null;
1212
1212
  started_sending_at_millis: number;
1213
1213
  delivery_delayed_at_millis: number;
1214
1214
  } | {
1215
- status: "sent";
1215
+ html: string | null;
1216
+ text: string | null;
1216
1217
  id: string;
1217
- subject: string;
1218
1218
  created_at_millis: number;
1219
1219
  updated_at_millis: number;
1220
1220
  tsx_source: string;
1221
1221
  theme_id: string | null;
1222
1222
  to: {
1223
- user_id: string;
1224
1223
  type: "user-primary-email";
1225
- } | {
1226
1224
  user_id: string;
1227
- type: "user-custom-emails";
1225
+ } | {
1228
1226
  emails: string[];
1227
+ type: "user-custom-emails";
1228
+ user_id: string;
1229
1229
  } | {
1230
- type: "custom-emails";
1231
1230
  emails: string[];
1231
+ type: "custom-emails";
1232
1232
  };
1233
1233
  variables: Record<string, {} | null>;
1234
1234
  skip_deliverability_check: boolean;
@@ -1246,14 +1246,14 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1246
1246
  internal_message: string;
1247
1247
  internal_details: Record<string, {} | null>;
1248
1248
  }[] | null;
1249
+ status: "sent";
1249
1250
  simple_status: "ok";
1250
1251
  is_paused: boolean;
1251
1252
  has_rendered: boolean;
1252
1253
  has_delivered: boolean;
1253
1254
  started_rendering_at_millis: number;
1254
1255
  rendered_at_millis: number;
1255
- html: string | null;
1256
- text: string | null;
1256
+ subject: string;
1257
1257
  is_transactional: boolean;
1258
1258
  is_high_priority: boolean;
1259
1259
  notification_category_id: string | null;
@@ -1261,23 +1261,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1261
1261
  delivered_at_millis: number;
1262
1262
  can_have_delivery_info: boolean;
1263
1263
  } | {
1264
- status: "opened";
1264
+ html: string | null;
1265
+ text: string | null;
1265
1266
  id: string;
1266
- subject: string;
1267
1267
  created_at_millis: number;
1268
1268
  updated_at_millis: number;
1269
1269
  tsx_source: string;
1270
1270
  theme_id: string | null;
1271
1271
  to: {
1272
- user_id: string;
1273
1272
  type: "user-primary-email";
1274
- } | {
1275
1273
  user_id: string;
1276
- type: "user-custom-emails";
1274
+ } | {
1277
1275
  emails: string[];
1276
+ type: "user-custom-emails";
1277
+ user_id: string;
1278
1278
  } | {
1279
- type: "custom-emails";
1280
1279
  emails: string[];
1280
+ type: "custom-emails";
1281
1281
  };
1282
1282
  variables: Record<string, {} | null>;
1283
1283
  skip_deliverability_check: boolean;
@@ -1295,14 +1295,14 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1295
1295
  internal_message: string;
1296
1296
  internal_details: Record<string, {} | null>;
1297
1297
  }[] | null;
1298
+ status: "opened";
1298
1299
  simple_status: "ok";
1299
1300
  is_paused: boolean;
1300
1301
  has_rendered: boolean;
1301
1302
  has_delivered: boolean;
1302
1303
  started_rendering_at_millis: number;
1303
1304
  rendered_at_millis: number;
1304
- html: string | null;
1305
- text: string | null;
1305
+ subject: string;
1306
1306
  is_transactional: boolean;
1307
1307
  is_high_priority: boolean;
1308
1308
  notification_category_id: string | null;
@@ -1311,23 +1311,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1311
1311
  can_have_delivery_info: boolean;
1312
1312
  opened_at_millis: number;
1313
1313
  } | {
1314
- status: "clicked";
1314
+ html: string | null;
1315
+ text: string | null;
1315
1316
  id: string;
1316
- subject: string;
1317
1317
  created_at_millis: number;
1318
1318
  updated_at_millis: number;
1319
1319
  tsx_source: string;
1320
1320
  theme_id: string | null;
1321
1321
  to: {
1322
- user_id: string;
1323
1322
  type: "user-primary-email";
1324
- } | {
1325
1323
  user_id: string;
1326
- type: "user-custom-emails";
1324
+ } | {
1327
1325
  emails: string[];
1326
+ type: "user-custom-emails";
1327
+ user_id: string;
1328
1328
  } | {
1329
- type: "custom-emails";
1330
1329
  emails: string[];
1330
+ type: "custom-emails";
1331
1331
  };
1332
1332
  variables: Record<string, {} | null>;
1333
1333
  skip_deliverability_check: boolean;
@@ -1345,14 +1345,14 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1345
1345
  internal_message: string;
1346
1346
  internal_details: Record<string, {} | null>;
1347
1347
  }[] | null;
1348
+ status: "clicked";
1348
1349
  simple_status: "ok";
1349
1350
  is_paused: boolean;
1350
1351
  has_rendered: boolean;
1351
1352
  has_delivered: boolean;
1352
1353
  started_rendering_at_millis: number;
1353
1354
  rendered_at_millis: number;
1354
- html: string | null;
1355
- text: string | null;
1355
+ subject: string;
1356
1356
  is_transactional: boolean;
1357
1357
  is_high_priority: boolean;
1358
1358
  notification_category_id: string | null;
@@ -1361,23 +1361,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1361
1361
  can_have_delivery_info: boolean;
1362
1362
  clicked_at_millis: number;
1363
1363
  } | {
1364
- status: "marked-as-spam";
1364
+ html: string | null;
1365
+ text: string | null;
1365
1366
  id: string;
1366
- subject: string;
1367
1367
  created_at_millis: number;
1368
1368
  updated_at_millis: number;
1369
1369
  tsx_source: string;
1370
1370
  theme_id: string | null;
1371
1371
  to: {
1372
- user_id: string;
1373
1372
  type: "user-primary-email";
1374
- } | {
1375
1373
  user_id: string;
1376
- type: "user-custom-emails";
1374
+ } | {
1377
1375
  emails: string[];
1376
+ type: "user-custom-emails";
1377
+ user_id: string;
1378
1378
  } | {
1379
- type: "custom-emails";
1380
1379
  emails: string[];
1380
+ type: "custom-emails";
1381
1381
  };
1382
1382
  variables: Record<string, {} | null>;
1383
1383
  skip_deliverability_check: boolean;
@@ -1395,14 +1395,14 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1395
1395
  internal_message: string;
1396
1396
  internal_details: Record<string, {} | null>;
1397
1397
  }[] | null;
1398
+ status: "marked-as-spam";
1398
1399
  simple_status: "ok";
1399
1400
  is_paused: boolean;
1400
1401
  has_rendered: boolean;
1401
1402
  has_delivered: boolean;
1402
1403
  started_rendering_at_millis: number;
1403
1404
  rendered_at_millis: number;
1404
- html: string | null;
1405
- text: string | null;
1405
+ subject: string;
1406
1406
  is_transactional: boolean;
1407
1407
  is_high_priority: boolean;
1408
1408
  notification_category_id: string | null;
@@ -1415,15 +1415,15 @@ declare const emailOutboxCrud: 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;
@@ -1461,4 +1461,4 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1461
1461
  type EmailOutboxCrud = CrudTypeOf<typeof emailOutboxCrud>;
1462
1462
  //#endregion
1463
1463
  export { emailOutboxUpdateSchema as i, emailOutboxCrud as n, emailOutboxReadSchema as r, EmailOutboxCrud as t };
1464
- //# sourceMappingURL=email-outbox-CYmVerum.d.ts.map
1464
+ //# sourceMappingURL=email-outbox-BRZiK0ZG.d.ts.map