@hexclave/shared 1.0.0 → 1.0.1

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