@hexclave/shared 1.0.59 → 1.0.60

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