@hexclave/shared 1.0.59 → 1.0.61

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