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