@hexclave/shared 1.0.36 → 1.0.37

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