@hexclave/shared 1.0.30 → 1.0.33

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 (54) hide show
  1. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  2. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +11 -37
  3. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  4. package/dist/config/schema.d.ts +90 -90
  5. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  6. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +11 -37
  7. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  8. package/dist/esm/config/schema.d.ts +90 -90
  9. package/dist/esm/helpers/init-prompt.js +1 -1
  10. package/dist/esm/helpers/init-prompt.js.map +1 -1
  11. package/dist/esm/interface/admin-metrics.d.ts +26 -26
  12. package/dist/esm/interface/conversations.d.ts +16 -16
  13. package/dist/esm/interface/crud/current-user.d.ts +11 -11
  14. package/dist/esm/interface/crud/email-outbox.d.ts +248 -248
  15. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  16. package/dist/esm/interface/crud/products.d.ts +13 -13
  17. package/dist/esm/interface/crud/project-api-keys.d.ts +6 -6
  18. package/dist/esm/interface/crud/projects.d.ts +7 -7
  19. package/dist/esm/interface/crud/team-member-profiles.d.ts +20 -20
  20. package/dist/esm/interface/crud/transactions.d.ts +6 -6
  21. package/dist/esm/interface/crud/users.d.ts +14 -14
  22. package/dist/esm/interface/plan-usage.d.ts +1 -1
  23. package/dist/esm/interface/server-interface.d.ts +1 -0
  24. package/dist/esm/interface/server-interface.d.ts.map +1 -1
  25. package/dist/esm/interface/server-interface.js +1 -0
  26. package/dist/esm/interface/server-interface.js.map +1 -1
  27. package/dist/esm/interface/webhooks.d.ts +2 -2
  28. package/dist/esm/schema-fields.d.ts +12 -12
  29. package/dist/esm/sessions.d.ts +8 -8
  30. package/dist/helpers/init-prompt.js +1 -1
  31. package/dist/helpers/init-prompt.js.map +1 -1
  32. package/dist/interface/admin-metrics.d.ts +26 -26
  33. package/dist/interface/conversations.d.ts +16 -16
  34. package/dist/interface/crud/current-user.d.ts +11 -11
  35. package/dist/interface/crud/email-outbox.d.ts +248 -248
  36. package/dist/interface/crud/invoices.d.ts +2 -2
  37. package/dist/interface/crud/products.d.ts +13 -13
  38. package/dist/interface/crud/project-api-keys.d.ts +6 -6
  39. package/dist/interface/crud/projects.d.ts +7 -7
  40. package/dist/interface/crud/team-member-profiles.d.ts +20 -20
  41. package/dist/interface/crud/transactions.d.ts +6 -6
  42. package/dist/interface/crud/users.d.ts +14 -14
  43. package/dist/interface/plan-usage.d.ts +1 -1
  44. package/dist/interface/server-interface.d.ts +1 -0
  45. package/dist/interface/server-interface.d.ts.map +1 -1
  46. package/dist/interface/server-interface.js +1 -0
  47. package/dist/interface/server-interface.js.map +1 -1
  48. package/dist/interface/webhooks.d.ts +2 -2
  49. package/dist/schema-fields.d.ts +12 -12
  50. package/dist/sessions.d.ts +8 -8
  51. package/package.json +1 -1
  52. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +11 -37
  53. package/src/helpers/init-prompt.ts +1 -1
  54. package/src/interface/server-interface.ts +4 -0
@@ -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
- status: "paused";
7
6
  id: string;
7
+ status: "paused";
8
8
  created_at_millis: number;
9
+ updated_at_millis: number;
10
+ tsx_source: string;
11
+ theme_id: string | null;
9
12
  to: {
10
- user_id: string;
11
13
  type: "user-primary-email";
12
- } | {
13
14
  user_id: string;
15
+ } | {
14
16
  type: "user-custom-emails";
17
+ user_id: string;
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
- status: "preparing";
45
44
  id: string;
45
+ status: "preparing";
46
46
  created_at_millis: number;
47
+ updated_at_millis: number;
48
+ tsx_source: string;
49
+ theme_id: string | null;
47
50
  to: {
48
- user_id: string;
49
51
  type: "user-primary-email";
50
- } | {
51
52
  user_id: string;
53
+ } | {
52
54
  type: "user-custom-emails";
55
+ user_id: string;
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
- status: "rendering";
83
82
  id: string;
83
+ status: "rendering";
84
84
  created_at_millis: number;
85
+ updated_at_millis: number;
86
+ tsx_source: string;
87
+ theme_id: string | null;
85
88
  to: {
86
- user_id: string;
87
89
  type: "user-primary-email";
88
- } | {
89
90
  user_id: string;
91
+ } | {
90
92
  type: "user-custom-emails";
93
+ user_id: string;
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
- status: "render-error";
122
121
  id: string;
122
+ status: "render-error";
123
123
  created_at_millis: number;
124
+ updated_at_millis: number;
125
+ tsx_source: string;
126
+ theme_id: string | null;
124
127
  to: {
125
- user_id: string;
126
128
  type: "user-primary-email";
127
- } | {
128
129
  user_id: string;
130
+ } | {
129
131
  type: "user-custom-emails";
132
+ user_id: string;
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,26 +159,24 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
159
159
  rendered_at_millis: number;
160
160
  render_error: string;
161
161
  } | {
162
- status: "scheduled";
163
162
  id: string;
164
- html: string | null;
165
- text: string | null;
166
- created_at_millis: number;
163
+ status: "scheduled";
167
164
  subject: string;
165
+ created_at_millis: number;
166
+ updated_at_millis: number;
167
+ tsx_source: string;
168
+ theme_id: string | null;
168
169
  to: {
169
- user_id: string;
170
170
  type: "user-primary-email";
171
- } | {
172
171
  user_id: string;
172
+ } | {
173
173
  type: "user-custom-emails";
174
+ user_id: string;
174
175
  emails: string[];
175
176
  } | {
176
177
  type: "custom-emails";
177
178
  emails: string[];
178
179
  };
179
- updated_at_millis: number;
180
- tsx_source: string;
181
- theme_id: string | null;
182
180
  variables: Record<string, {} | null>;
183
181
  skip_deliverability_check: boolean;
184
182
  scheduled_at_millis: number;
@@ -201,30 +199,30 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
201
199
  has_delivered: boolean;
202
200
  started_rendering_at_millis: number;
203
201
  rendered_at_millis: number;
202
+ html: string | null;
203
+ text: string | null;
204
204
  is_transactional: boolean;
205
205
  is_high_priority: boolean;
206
206
  notification_category_id: string | null;
207
207
  } | {
208
- status: "queued";
209
208
  id: string;
210
- html: string | null;
211
- text: string | null;
212
- created_at_millis: number;
209
+ status: "queued";
213
210
  subject: string;
211
+ created_at_millis: number;
212
+ updated_at_millis: number;
213
+ tsx_source: string;
214
+ theme_id: string | null;
214
215
  to: {
215
- user_id: string;
216
216
  type: "user-primary-email";
217
- } | {
218
217
  user_id: string;
218
+ } | {
219
219
  type: "user-custom-emails";
220
+ user_id: string;
220
221
  emails: string[];
221
222
  } | {
222
223
  type: "custom-emails";
223
224
  emails: string[];
224
225
  };
225
- updated_at_millis: number;
226
- tsx_source: string;
227
- theme_id: string | null;
228
226
  variables: Record<string, {} | null>;
229
227
  skip_deliverability_check: boolean;
230
228
  scheduled_at_millis: number;
@@ -247,30 +245,30 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
247
245
  has_delivered: boolean;
248
246
  started_rendering_at_millis: number;
249
247
  rendered_at_millis: number;
248
+ html: string | null;
249
+ text: string | null;
250
250
  is_transactional: boolean;
251
251
  is_high_priority: boolean;
252
252
  notification_category_id: string | null;
253
253
  } | {
254
- status: "sending";
255
254
  id: string;
256
- html: string | null;
257
- text: string | null;
258
- created_at_millis: number;
255
+ status: "sending";
259
256
  subject: string;
257
+ created_at_millis: number;
258
+ updated_at_millis: number;
259
+ tsx_source: string;
260
+ theme_id: string | null;
260
261
  to: {
261
- user_id: string;
262
262
  type: "user-primary-email";
263
- } | {
264
263
  user_id: string;
264
+ } | {
265
265
  type: "user-custom-emails";
266
+ user_id: string;
266
267
  emails: string[];
267
268
  } | {
268
269
  type: "custom-emails";
269
270
  emails: string[];
270
271
  };
271
- updated_at_millis: number;
272
- tsx_source: string;
273
- theme_id: string | null;
274
272
  variables: Record<string, {} | null>;
275
273
  skip_deliverability_check: boolean;
276
274
  scheduled_at_millis: number;
@@ -293,31 +291,31 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
293
291
  has_delivered: boolean;
294
292
  started_rendering_at_millis: number;
295
293
  rendered_at_millis: number;
294
+ html: string | null;
295
+ text: string | null;
296
296
  is_transactional: boolean;
297
297
  is_high_priority: boolean;
298
298
  notification_category_id: string | null;
299
299
  started_sending_at_millis: number;
300
300
  } | {
301
- status: "server-error";
302
301
  id: string;
303
- html: string | null;
304
- text: string | null;
305
- created_at_millis: number;
302
+ status: "server-error";
306
303
  subject: string;
304
+ created_at_millis: number;
305
+ updated_at_millis: number;
306
+ tsx_source: string;
307
+ theme_id: string | null;
307
308
  to: {
308
- user_id: string;
309
309
  type: "user-primary-email";
310
- } | {
311
310
  user_id: string;
311
+ } | {
312
312
  type: "user-custom-emails";
313
+ user_id: string;
313
314
  emails: string[];
314
315
  } | {
315
316
  type: "custom-emails";
316
317
  emails: string[];
317
318
  };
318
- updated_at_millis: number;
319
- tsx_source: string;
320
- theme_id: string | null;
321
319
  variables: Record<string, {} | null>;
322
320
  skip_deliverability_check: boolean;
323
321
  scheduled_at_millis: number;
@@ -340,6 +338,8 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
340
338
  has_delivered: boolean;
341
339
  started_rendering_at_millis: number;
342
340
  rendered_at_millis: number;
341
+ html: string | null;
342
+ text: string | null;
343
343
  is_transactional: boolean;
344
344
  is_high_priority: boolean;
345
345
  notification_category_id: string | null;
@@ -347,32 +347,32 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
347
347
  error_at_millis: number;
348
348
  server_error: string;
349
349
  } | {
350
- html?: string | null | undefined;
351
- text?: string | null | undefined;
352
350
  subject?: string | undefined;
353
351
  started_rendering_at_millis?: number | undefined;
354
352
  rendered_at_millis?: number | undefined;
353
+ html?: string | null | undefined;
354
+ text?: string | null | undefined;
355
355
  is_transactional?: boolean | undefined;
356
356
  is_high_priority?: boolean | undefined;
357
357
  notification_category_id?: string | null | undefined;
358
358
  started_sending_at_millis?: number | undefined;
359
- status: "skipped";
360
359
  id: string;
360
+ status: "skipped";
361
361
  created_at_millis: number;
362
+ updated_at_millis: number;
363
+ tsx_source: string;
364
+ theme_id: string | null;
362
365
  to: {
363
- user_id: string;
364
366
  type: "user-primary-email";
365
- } | {
366
367
  user_id: string;
368
+ } | {
367
369
  type: "user-custom-emails";
370
+ user_id: string;
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,26 +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";
401
400
  id: string;
402
- html: string | null;
403
- text: string | null;
404
- created_at_millis: number;
401
+ status: "bounced";
405
402
  subject: string;
403
+ created_at_millis: number;
404
+ updated_at_millis: number;
405
+ tsx_source: string;
406
+ theme_id: string | null;
406
407
  to: {
407
- user_id: string;
408
408
  type: "user-primary-email";
409
- } | {
410
409
  user_id: string;
410
+ } | {
411
411
  type: "user-custom-emails";
412
+ user_id: string;
412
413
  emails: string[];
413
414
  } | {
414
415
  type: "custom-emails";
415
416
  emails: string[];
416
417
  };
417
- updated_at_millis: number;
418
- tsx_source: string;
419
- theme_id: string | null;
420
418
  variables: Record<string, {} | null>;
421
419
  skip_deliverability_check: boolean;
422
420
  scheduled_at_millis: number;
@@ -439,32 +437,32 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
439
437
  has_delivered: boolean;
440
438
  started_rendering_at_millis: number;
441
439
  rendered_at_millis: number;
440
+ html: string | null;
441
+ text: string | null;
442
442
  is_transactional: boolean;
443
443
  is_high_priority: boolean;
444
444
  notification_category_id: string | null;
445
445
  started_sending_at_millis: number;
446
446
  bounced_at_millis: number;
447
447
  } | {
448
- status: "delivery-delayed";
449
448
  id: string;
450
- html: string | null;
451
- text: string | null;
452
- created_at_millis: number;
449
+ status: "delivery-delayed";
453
450
  subject: string;
451
+ created_at_millis: number;
452
+ updated_at_millis: number;
453
+ tsx_source: string;
454
+ theme_id: string | null;
454
455
  to: {
455
- user_id: string;
456
456
  type: "user-primary-email";
457
- } | {
458
457
  user_id: string;
458
+ } | {
459
459
  type: "user-custom-emails";
460
+ user_id: string;
460
461
  emails: string[];
461
462
  } | {
462
463
  type: "custom-emails";
463
464
  emails: string[];
464
465
  };
465
- updated_at_millis: number;
466
- tsx_source: string;
467
- theme_id: string | null;
468
466
  variables: Record<string, {} | null>;
469
467
  skip_deliverability_check: boolean;
470
468
  scheduled_at_millis: number;
@@ -487,32 +485,32 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
487
485
  has_delivered: boolean;
488
486
  started_rendering_at_millis: number;
489
487
  rendered_at_millis: number;
488
+ html: string | null;
489
+ text: string | null;
490
490
  is_transactional: boolean;
491
491
  is_high_priority: boolean;
492
492
  notification_category_id: string | null;
493
493
  started_sending_at_millis: number;
494
494
  delivery_delayed_at_millis: number;
495
495
  } | {
496
- status: "sent";
497
496
  id: string;
498
- html: string | null;
499
- text: string | null;
500
- created_at_millis: number;
497
+ status: "sent";
501
498
  subject: string;
499
+ created_at_millis: number;
500
+ updated_at_millis: number;
501
+ tsx_source: string;
502
+ theme_id: string | null;
502
503
  to: {
503
- user_id: string;
504
504
  type: "user-primary-email";
505
- } | {
506
505
  user_id: string;
506
+ } | {
507
507
  type: "user-custom-emails";
508
+ user_id: string;
508
509
  emails: string[];
509
510
  } | {
510
511
  type: "custom-emails";
511
512
  emails: string[];
512
513
  };
513
- updated_at_millis: number;
514
- tsx_source: string;
515
- theme_id: string | null;
516
514
  variables: Record<string, {} | null>;
517
515
  skip_deliverability_check: boolean;
518
516
  scheduled_at_millis: number;
@@ -535,6 +533,8 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
535
533
  has_delivered: boolean;
536
534
  started_rendering_at_millis: number;
537
535
  rendered_at_millis: number;
536
+ html: string | null;
537
+ text: string | null;
538
538
  is_transactional: boolean;
539
539
  is_high_priority: boolean;
540
540
  notification_category_id: string | null;
@@ -542,26 +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";
546
545
  id: string;
547
- html: string | null;
548
- text: string | null;
549
- created_at_millis: number;
546
+ status: "opened";
550
547
  subject: string;
548
+ created_at_millis: number;
549
+ updated_at_millis: number;
550
+ tsx_source: string;
551
+ theme_id: string | null;
551
552
  to: {
552
- user_id: string;
553
553
  type: "user-primary-email";
554
- } | {
555
554
  user_id: string;
555
+ } | {
556
556
  type: "user-custom-emails";
557
+ user_id: string;
557
558
  emails: string[];
558
559
  } | {
559
560
  type: "custom-emails";
560
561
  emails: string[];
561
562
  };
562
- updated_at_millis: number;
563
- tsx_source: string;
564
- theme_id: string | null;
565
563
  variables: Record<string, {} | null>;
566
564
  skip_deliverability_check: boolean;
567
565
  scheduled_at_millis: number;
@@ -584,6 +582,8 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
584
582
  has_delivered: boolean;
585
583
  started_rendering_at_millis: number;
586
584
  rendered_at_millis: number;
585
+ html: string | null;
586
+ text: string | null;
587
587
  is_transactional: boolean;
588
588
  is_high_priority: boolean;
589
589
  notification_category_id: string | null;
@@ -592,26 +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";
596
595
  id: string;
597
- html: string | null;
598
- text: string | null;
599
- created_at_millis: number;
596
+ status: "clicked";
600
597
  subject: string;
598
+ created_at_millis: number;
599
+ updated_at_millis: number;
600
+ tsx_source: string;
601
+ theme_id: string | null;
601
602
  to: {
602
- user_id: string;
603
603
  type: "user-primary-email";
604
- } | {
605
604
  user_id: string;
605
+ } | {
606
606
  type: "user-custom-emails";
607
+ user_id: string;
607
608
  emails: string[];
608
609
  } | {
609
610
  type: "custom-emails";
610
611
  emails: string[];
611
612
  };
612
- updated_at_millis: number;
613
- tsx_source: string;
614
- theme_id: string | null;
615
613
  variables: Record<string, {} | null>;
616
614
  skip_deliverability_check: boolean;
617
615
  scheduled_at_millis: number;
@@ -634,6 +632,8 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
634
632
  has_delivered: boolean;
635
633
  started_rendering_at_millis: number;
636
634
  rendered_at_millis: number;
635
+ html: string | null;
636
+ text: string | null;
637
637
  is_transactional: boolean;
638
638
  is_high_priority: boolean;
639
639
  notification_category_id: string | null;
@@ -642,26 +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";
646
645
  id: string;
647
- html: string | null;
648
- text: string | null;
649
- created_at_millis: number;
646
+ status: "marked-as-spam";
650
647
  subject: string;
648
+ created_at_millis: number;
649
+ updated_at_millis: number;
650
+ tsx_source: string;
651
+ theme_id: string | null;
651
652
  to: {
652
- user_id: string;
653
653
  type: "user-primary-email";
654
- } | {
655
654
  user_id: string;
655
+ } | {
656
656
  type: "user-custom-emails";
657
+ user_id: string;
657
658
  emails: string[];
658
659
  } | {
659
660
  type: "custom-emails";
660
661
  emails: string[];
661
662
  };
662
- updated_at_millis: number;
663
- tsx_source: string;
664
- theme_id: string | null;
665
663
  variables: Record<string, {} | null>;
666
664
  skip_deliverability_check: boolean;
667
665
  scheduled_at_millis: number;
@@ -684,6 +682,8 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
684
682
  has_delivered: boolean;
685
683
  started_rendering_at_millis: number;
686
684
  rendered_at_millis: number;
685
+ html: string | null;
686
+ text: string | null;
687
687
  is_transactional: boolean;
688
688
  is_high_priority: boolean;
689
689
  notification_category_id: string | null;
@@ -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
- user_id: string;
700
699
  type: "user-primary-email";
701
- } | {
702
700
  user_id: string;
701
+ } | {
703
702
  type: "user-custom-emails";
703
+ user_id: string;
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
- status: "paused";
727
726
  id: string;
727
+ status: "paused";
728
728
  created_at_millis: number;
729
+ updated_at_millis: number;
730
+ tsx_source: string;
731
+ theme_id: string | null;
729
732
  to: {
730
- user_id: string;
731
733
  type: "user-primary-email";
732
- } | {
733
734
  user_id: string;
735
+ } | {
734
736
  type: "user-custom-emails";
737
+ user_id: string;
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
- status: "preparing";
765
764
  id: string;
765
+ status: "preparing";
766
766
  created_at_millis: number;
767
+ updated_at_millis: number;
768
+ tsx_source: string;
769
+ theme_id: string | null;
767
770
  to: {
768
- user_id: string;
769
771
  type: "user-primary-email";
770
- } | {
771
772
  user_id: string;
773
+ } | {
772
774
  type: "user-custom-emails";
775
+ user_id: string;
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
- status: "rendering";
803
802
  id: string;
803
+ status: "rendering";
804
804
  created_at_millis: number;
805
+ updated_at_millis: number;
806
+ tsx_source: string;
807
+ theme_id: string | null;
805
808
  to: {
806
- user_id: string;
807
809
  type: "user-primary-email";
808
- } | {
809
810
  user_id: string;
811
+ } | {
810
812
  type: "user-custom-emails";
813
+ user_id: string;
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
- status: "render-error";
842
841
  id: string;
842
+ status: "render-error";
843
843
  created_at_millis: number;
844
+ updated_at_millis: number;
845
+ tsx_source: string;
846
+ theme_id: string | null;
844
847
  to: {
845
- user_id: string;
846
848
  type: "user-primary-email";
847
- } | {
848
849
  user_id: string;
850
+ } | {
849
851
  type: "user-custom-emails";
852
+ user_id: string;
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,26 +879,24 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
879
879
  rendered_at_millis: number;
880
880
  render_error: string;
881
881
  } | {
882
- status: "scheduled";
883
882
  id: string;
884
- html: string | null;
885
- text: string | null;
886
- created_at_millis: number;
883
+ status: "scheduled";
887
884
  subject: string;
885
+ created_at_millis: number;
886
+ updated_at_millis: number;
887
+ tsx_source: string;
888
+ theme_id: string | null;
888
889
  to: {
889
- user_id: string;
890
890
  type: "user-primary-email";
891
- } | {
892
891
  user_id: string;
892
+ } | {
893
893
  type: "user-custom-emails";
894
+ user_id: string;
894
895
  emails: string[];
895
896
  } | {
896
897
  type: "custom-emails";
897
898
  emails: string[];
898
899
  };
899
- updated_at_millis: number;
900
- tsx_source: string;
901
- theme_id: string | null;
902
900
  variables: Record<string, {} | null>;
903
901
  skip_deliverability_check: boolean;
904
902
  scheduled_at_millis: number;
@@ -921,30 +919,30 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
921
919
  has_delivered: boolean;
922
920
  started_rendering_at_millis: number;
923
921
  rendered_at_millis: number;
922
+ html: string | null;
923
+ text: string | null;
924
924
  is_transactional: boolean;
925
925
  is_high_priority: boolean;
926
926
  notification_category_id: string | null;
927
927
  } | {
928
- status: "queued";
929
928
  id: string;
930
- html: string | null;
931
- text: string | null;
932
- created_at_millis: number;
929
+ status: "queued";
933
930
  subject: string;
931
+ created_at_millis: number;
932
+ updated_at_millis: number;
933
+ tsx_source: string;
934
+ theme_id: string | null;
934
935
  to: {
935
- user_id: string;
936
936
  type: "user-primary-email";
937
- } | {
938
937
  user_id: string;
938
+ } | {
939
939
  type: "user-custom-emails";
940
+ user_id: string;
940
941
  emails: string[];
941
942
  } | {
942
943
  type: "custom-emails";
943
944
  emails: string[];
944
945
  };
945
- updated_at_millis: number;
946
- tsx_source: string;
947
- theme_id: string | null;
948
946
  variables: Record<string, {} | null>;
949
947
  skip_deliverability_check: boolean;
950
948
  scheduled_at_millis: number;
@@ -967,30 +965,30 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
967
965
  has_delivered: boolean;
968
966
  started_rendering_at_millis: number;
969
967
  rendered_at_millis: number;
968
+ html: string | null;
969
+ text: string | null;
970
970
  is_transactional: boolean;
971
971
  is_high_priority: boolean;
972
972
  notification_category_id: string | null;
973
973
  } | {
974
- status: "sending";
975
974
  id: string;
976
- html: string | null;
977
- text: string | null;
978
- created_at_millis: number;
975
+ status: "sending";
979
976
  subject: string;
977
+ created_at_millis: number;
978
+ updated_at_millis: number;
979
+ tsx_source: string;
980
+ theme_id: string | null;
980
981
  to: {
981
- user_id: string;
982
982
  type: "user-primary-email";
983
- } | {
984
983
  user_id: string;
984
+ } | {
985
985
  type: "user-custom-emails";
986
+ user_id: string;
986
987
  emails: string[];
987
988
  } | {
988
989
  type: "custom-emails";
989
990
  emails: string[];
990
991
  };
991
- updated_at_millis: number;
992
- tsx_source: string;
993
- theme_id: string | null;
994
992
  variables: Record<string, {} | null>;
995
993
  skip_deliverability_check: boolean;
996
994
  scheduled_at_millis: number;
@@ -1013,31 +1011,31 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1013
1011
  has_delivered: boolean;
1014
1012
  started_rendering_at_millis: number;
1015
1013
  rendered_at_millis: number;
1014
+ html: string | null;
1015
+ text: string | null;
1016
1016
  is_transactional: boolean;
1017
1017
  is_high_priority: boolean;
1018
1018
  notification_category_id: string | null;
1019
1019
  started_sending_at_millis: number;
1020
1020
  } | {
1021
- status: "server-error";
1022
1021
  id: string;
1023
- html: string | null;
1024
- text: string | null;
1025
- created_at_millis: number;
1022
+ status: "server-error";
1026
1023
  subject: string;
1024
+ created_at_millis: number;
1025
+ updated_at_millis: number;
1026
+ tsx_source: string;
1027
+ theme_id: string | null;
1027
1028
  to: {
1028
- user_id: string;
1029
1029
  type: "user-primary-email";
1030
- } | {
1031
1030
  user_id: string;
1031
+ } | {
1032
1032
  type: "user-custom-emails";
1033
+ user_id: string;
1033
1034
  emails: string[];
1034
1035
  } | {
1035
1036
  type: "custom-emails";
1036
1037
  emails: string[];
1037
1038
  };
1038
- updated_at_millis: number;
1039
- tsx_source: string;
1040
- theme_id: string | null;
1041
1039
  variables: Record<string, {} | null>;
1042
1040
  skip_deliverability_check: boolean;
1043
1041
  scheduled_at_millis: number;
@@ -1060,6 +1058,8 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1060
1058
  has_delivered: boolean;
1061
1059
  started_rendering_at_millis: number;
1062
1060
  rendered_at_millis: number;
1061
+ html: string | null;
1062
+ text: string | null;
1063
1063
  is_transactional: boolean;
1064
1064
  is_high_priority: boolean;
1065
1065
  notification_category_id: string | null;
@@ -1067,32 +1067,32 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1067
1067
  error_at_millis: number;
1068
1068
  server_error: string;
1069
1069
  } | {
1070
- html?: string | null | undefined;
1071
- text?: string | null | undefined;
1072
1070
  subject?: string | undefined;
1073
1071
  started_rendering_at_millis?: number | undefined;
1074
1072
  rendered_at_millis?: number | undefined;
1073
+ html?: string | null | undefined;
1074
+ text?: string | null | undefined;
1075
1075
  is_transactional?: boolean | undefined;
1076
1076
  is_high_priority?: boolean | undefined;
1077
1077
  notification_category_id?: string | null | undefined;
1078
1078
  started_sending_at_millis?: number | undefined;
1079
- status: "skipped";
1080
1079
  id: string;
1080
+ status: "skipped";
1081
1081
  created_at_millis: number;
1082
+ updated_at_millis: number;
1083
+ tsx_source: string;
1084
+ theme_id: string | null;
1082
1085
  to: {
1083
- user_id: string;
1084
1086
  type: "user-primary-email";
1085
- } | {
1086
1087
  user_id: string;
1088
+ } | {
1087
1089
  type: "user-custom-emails";
1090
+ user_id: string;
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,26 +1117,24 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1117
1117
  skipped_reason: string;
1118
1118
  skipped_details: Record<string, {} | null>;
1119
1119
  } | {
1120
- status: "bounced";
1121
1120
  id: string;
1122
- html: string | null;
1123
- text: string | null;
1124
- created_at_millis: number;
1121
+ status: "bounced";
1125
1122
  subject: string;
1123
+ created_at_millis: number;
1124
+ updated_at_millis: number;
1125
+ tsx_source: string;
1126
+ theme_id: string | null;
1126
1127
  to: {
1127
- user_id: string;
1128
1128
  type: "user-primary-email";
1129
- } | {
1130
1129
  user_id: string;
1130
+ } | {
1131
1131
  type: "user-custom-emails";
1132
+ user_id: string;
1132
1133
  emails: string[];
1133
1134
  } | {
1134
1135
  type: "custom-emails";
1135
1136
  emails: string[];
1136
1137
  };
1137
- updated_at_millis: number;
1138
- tsx_source: string;
1139
- theme_id: string | null;
1140
1138
  variables: Record<string, {} | null>;
1141
1139
  skip_deliverability_check: boolean;
1142
1140
  scheduled_at_millis: number;
@@ -1159,32 +1157,32 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1159
1157
  has_delivered: boolean;
1160
1158
  started_rendering_at_millis: number;
1161
1159
  rendered_at_millis: number;
1160
+ html: string | null;
1161
+ text: string | null;
1162
1162
  is_transactional: boolean;
1163
1163
  is_high_priority: boolean;
1164
1164
  notification_category_id: string | null;
1165
1165
  started_sending_at_millis: number;
1166
1166
  bounced_at_millis: number;
1167
1167
  } | {
1168
- status: "delivery-delayed";
1169
1168
  id: string;
1170
- html: string | null;
1171
- text: string | null;
1172
- created_at_millis: number;
1169
+ status: "delivery-delayed";
1173
1170
  subject: string;
1171
+ created_at_millis: number;
1172
+ updated_at_millis: number;
1173
+ tsx_source: string;
1174
+ theme_id: string | null;
1174
1175
  to: {
1175
- user_id: string;
1176
1176
  type: "user-primary-email";
1177
- } | {
1178
1177
  user_id: string;
1178
+ } | {
1179
1179
  type: "user-custom-emails";
1180
+ user_id: string;
1180
1181
  emails: string[];
1181
1182
  } | {
1182
1183
  type: "custom-emails";
1183
1184
  emails: string[];
1184
1185
  };
1185
- updated_at_millis: number;
1186
- tsx_source: string;
1187
- theme_id: string | null;
1188
1186
  variables: Record<string, {} | null>;
1189
1187
  skip_deliverability_check: boolean;
1190
1188
  scheduled_at_millis: number;
@@ -1207,32 +1205,32 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1207
1205
  has_delivered: boolean;
1208
1206
  started_rendering_at_millis: number;
1209
1207
  rendered_at_millis: number;
1208
+ html: string | null;
1209
+ text: string | null;
1210
1210
  is_transactional: boolean;
1211
1211
  is_high_priority: boolean;
1212
1212
  notification_category_id: string | null;
1213
1213
  started_sending_at_millis: number;
1214
1214
  delivery_delayed_at_millis: number;
1215
1215
  } | {
1216
- status: "sent";
1217
1216
  id: string;
1218
- html: string | null;
1219
- text: string | null;
1220
- created_at_millis: number;
1217
+ status: "sent";
1221
1218
  subject: string;
1219
+ created_at_millis: number;
1220
+ updated_at_millis: number;
1221
+ tsx_source: string;
1222
+ theme_id: string | null;
1222
1223
  to: {
1223
- user_id: string;
1224
1224
  type: "user-primary-email";
1225
- } | {
1226
1225
  user_id: string;
1226
+ } | {
1227
1227
  type: "user-custom-emails";
1228
+ user_id: string;
1228
1229
  emails: string[];
1229
1230
  } | {
1230
1231
  type: "custom-emails";
1231
1232
  emails: string[];
1232
1233
  };
1233
- updated_at_millis: number;
1234
- tsx_source: string;
1235
- theme_id: string | null;
1236
1234
  variables: Record<string, {} | null>;
1237
1235
  skip_deliverability_check: boolean;
1238
1236
  scheduled_at_millis: number;
@@ -1255,6 +1253,8 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1255
1253
  has_delivered: boolean;
1256
1254
  started_rendering_at_millis: number;
1257
1255
  rendered_at_millis: number;
1256
+ html: string | null;
1257
+ text: string | null;
1258
1258
  is_transactional: boolean;
1259
1259
  is_high_priority: boolean;
1260
1260
  notification_category_id: string | null;
@@ -1262,26 +1262,24 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1262
1262
  delivered_at_millis: number;
1263
1263
  can_have_delivery_info: boolean;
1264
1264
  } | {
1265
- status: "opened";
1266
1265
  id: string;
1267
- html: string | null;
1268
- text: string | null;
1269
- created_at_millis: number;
1266
+ status: "opened";
1270
1267
  subject: string;
1268
+ created_at_millis: number;
1269
+ updated_at_millis: number;
1270
+ tsx_source: string;
1271
+ theme_id: string | null;
1271
1272
  to: {
1272
- user_id: string;
1273
1273
  type: "user-primary-email";
1274
- } | {
1275
1274
  user_id: string;
1275
+ } | {
1276
1276
  type: "user-custom-emails";
1277
+ user_id: string;
1277
1278
  emails: string[];
1278
1279
  } | {
1279
1280
  type: "custom-emails";
1280
1281
  emails: string[];
1281
1282
  };
1282
- updated_at_millis: number;
1283
- tsx_source: string;
1284
- theme_id: string | null;
1285
1283
  variables: Record<string, {} | null>;
1286
1284
  skip_deliverability_check: boolean;
1287
1285
  scheduled_at_millis: number;
@@ -1304,6 +1302,8 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1304
1302
  has_delivered: boolean;
1305
1303
  started_rendering_at_millis: number;
1306
1304
  rendered_at_millis: number;
1305
+ html: string | null;
1306
+ text: string | null;
1307
1307
  is_transactional: boolean;
1308
1308
  is_high_priority: boolean;
1309
1309
  notification_category_id: string | null;
@@ -1312,26 +1312,24 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1312
1312
  can_have_delivery_info: boolean;
1313
1313
  opened_at_millis: number;
1314
1314
  } | {
1315
- status: "clicked";
1316
1315
  id: string;
1317
- html: string | null;
1318
- text: string | null;
1319
- created_at_millis: number;
1316
+ status: "clicked";
1320
1317
  subject: string;
1318
+ created_at_millis: number;
1319
+ updated_at_millis: number;
1320
+ tsx_source: string;
1321
+ theme_id: string | null;
1321
1322
  to: {
1322
- user_id: string;
1323
1323
  type: "user-primary-email";
1324
- } | {
1325
1324
  user_id: string;
1325
+ } | {
1326
1326
  type: "user-custom-emails";
1327
+ user_id: string;
1327
1328
  emails: string[];
1328
1329
  } | {
1329
1330
  type: "custom-emails";
1330
1331
  emails: string[];
1331
1332
  };
1332
- updated_at_millis: number;
1333
- tsx_source: string;
1334
- theme_id: string | null;
1335
1333
  variables: Record<string, {} | null>;
1336
1334
  skip_deliverability_check: boolean;
1337
1335
  scheduled_at_millis: number;
@@ -1354,6 +1352,8 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1354
1352
  has_delivered: boolean;
1355
1353
  started_rendering_at_millis: number;
1356
1354
  rendered_at_millis: number;
1355
+ html: string | null;
1356
+ text: string | null;
1357
1357
  is_transactional: boolean;
1358
1358
  is_high_priority: boolean;
1359
1359
  notification_category_id: string | null;
@@ -1362,26 +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";
1366
1365
  id: string;
1367
- html: string | null;
1368
- text: string | null;
1369
- created_at_millis: number;
1366
+ status: "marked-as-spam";
1370
1367
  subject: string;
1368
+ created_at_millis: number;
1369
+ updated_at_millis: number;
1370
+ tsx_source: string;
1371
+ theme_id: string | null;
1371
1372
  to: {
1372
- user_id: string;
1373
1373
  type: "user-primary-email";
1374
- } | {
1375
1374
  user_id: string;
1375
+ } | {
1376
1376
  type: "user-custom-emails";
1377
+ user_id: string;
1377
1378
  emails: string[];
1378
1379
  } | {
1379
1380
  type: "custom-emails";
1380
1381
  emails: string[];
1381
1382
  };
1382
- updated_at_millis: number;
1383
- tsx_source: string;
1384
- theme_id: string | null;
1385
1383
  variables: Record<string, {} | null>;
1386
1384
  skip_deliverability_check: boolean;
1387
1385
  scheduled_at_millis: number;
@@ -1404,6 +1402,8 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1404
1402
  has_delivered: boolean;
1405
1403
  started_rendering_at_millis: number;
1406
1404
  rendered_at_millis: number;
1405
+ html: string | null;
1406
+ text: string | null;
1407
1407
  is_transactional: boolean;
1408
1408
  is_high_priority: boolean;
1409
1409
  notification_category_id: string | null;
@@ -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
- user_id: string;
1420
1419
  type: "user-primary-email";
1421
- } | {
1422
1420
  user_id: string;
1421
+ } | {
1423
1422
  type: "user-custom-emails";
1423
+ user_id: string;
1424
1424
  emails: string[];
1425
1425
  } | {
1426
1426
  type: "custom-emails";