@hexclave/shared 1.0.60 → 1.0.62

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