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