@hexclave/shared 1.0.36 → 1.0.38

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 (103) hide show
  1. package/dist/ai/unified-prompts/reminders.js +2 -1
  2. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  3. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +2 -2
  4. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  5. package/dist/config/format.js +10 -0
  6. package/dist/config/format.js.map +1 -1
  7. package/dist/config/schema.d.ts +147 -147
  8. package/dist/config-eval.d.ts +31 -0
  9. package/dist/config-eval.d.ts.map +1 -0
  10. package/dist/config-eval.js +117 -0
  11. package/dist/config-eval.js.map +1 -0
  12. package/dist/config-rendering.d.ts +3 -6
  13. package/dist/config-rendering.d.ts.map +1 -1
  14. package/dist/config-rendering.js +21 -69
  15. package/dist/config-rendering.js.map +1 -1
  16. package/dist/esm/ai/unified-prompts/reminders.js +2 -1
  17. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  18. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +2 -2
  19. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  20. package/dist/esm/config/format.js +10 -0
  21. package/dist/esm/config/format.js.map +1 -1
  22. package/dist/esm/config/schema.d.ts +147 -147
  23. package/dist/esm/config-eval.d.ts +31 -0
  24. package/dist/esm/config-eval.d.ts.map +1 -0
  25. package/dist/esm/config-eval.js +112 -0
  26. package/dist/esm/config-eval.js.map +1 -0
  27. package/dist/esm/config-rendering.d.ts +3 -6
  28. package/dist/esm/config-rendering.d.ts.map +1 -1
  29. package/dist/esm/config-rendering.js +15 -58
  30. package/dist/esm/config-rendering.js.map +1 -1
  31. package/dist/esm/hooks/use-async-callback.js +1 -1
  32. package/dist/esm/hooks/use-async-external-store.js +1 -1
  33. package/dist/esm/hooks/use-strict-memo.js +1 -1
  34. package/dist/esm/interface/admin-interface.d.ts +44 -2
  35. package/dist/esm/interface/admin-interface.d.ts.map +1 -1
  36. package/dist/esm/interface/admin-interface.js +55 -0
  37. package/dist/esm/interface/admin-interface.js.map +1 -1
  38. package/dist/esm/interface/admin-metrics.d.ts +12 -12
  39. package/dist/esm/interface/conversations.d.ts +31 -31
  40. package/dist/esm/interface/crud/current-user.d.ts +7 -7
  41. package/dist/esm/interface/crud/email-outbox.d.ts +158 -158
  42. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  43. package/dist/esm/interface/crud/products.d.ts +15 -15
  44. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  45. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  46. package/dist/esm/interface/crud/team-member-profiles.d.ts +18 -18
  47. package/dist/esm/interface/crud/transactions.d.ts +20 -20
  48. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  49. package/dist/esm/interface/crud/users.d.ts +12 -12
  50. package/dist/esm/interface/plan-usage.d.ts +2 -2
  51. package/dist/esm/interface/webhooks.d.ts +2 -2
  52. package/dist/esm/known-errors.d.ts +1 -1
  53. package/dist/esm/schema-fields.d.ts +35 -2
  54. package/dist/esm/schema-fields.d.ts.map +1 -1
  55. package/dist/esm/schema-fields.js +53 -2
  56. package/dist/esm/schema-fields.js.map +1 -1
  57. package/dist/esm/sessions.d.ts +7 -7
  58. package/dist/esm/utils/jsx-editable-transpiler.js +2 -2
  59. package/dist/hooks/use-async-callback.js +1 -1
  60. package/dist/hooks/use-async-external-store.js +1 -1
  61. package/dist/hooks/use-strict-memo.js +1 -1
  62. package/dist/interface/admin-interface.d.ts +44 -2
  63. package/dist/interface/admin-interface.d.ts.map +1 -1
  64. package/dist/interface/admin-interface.js +55 -0
  65. package/dist/interface/admin-interface.js.map +1 -1
  66. package/dist/interface/admin-metrics.d.ts +12 -12
  67. package/dist/interface/conversations.d.ts +31 -31
  68. package/dist/interface/crud/current-user.d.ts +7 -7
  69. package/dist/interface/crud/email-outbox.d.ts +158 -158
  70. package/dist/interface/crud/invoices.d.ts +2 -2
  71. package/dist/interface/crud/products.d.ts +15 -15
  72. package/dist/interface/crud/products.d.ts.map +1 -1
  73. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  74. package/dist/interface/crud/team-member-profiles.d.ts +18 -18
  75. package/dist/interface/crud/transactions.d.ts +20 -20
  76. package/dist/interface/crud/transactions.d.ts.map +1 -1
  77. package/dist/interface/crud/users.d.ts +12 -12
  78. package/dist/interface/plan-usage.d.ts +2 -2
  79. package/dist/interface/webhooks.d.ts +2 -2
  80. package/dist/known-errors.d.ts +1 -1
  81. package/dist/schema-fields.d.ts +35 -2
  82. package/dist/schema-fields.d.ts.map +1 -1
  83. package/dist/schema-fields.js +55 -1
  84. package/dist/schema-fields.js.map +1 -1
  85. package/dist/sessions.d.ts +7 -7
  86. package/dist/utils/jsx-editable-transpiler.js +4 -4
  87. package/package.json +2 -1
  88. package/src/ai/unified-prompts/reminders.ts +2 -1
  89. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +2 -2
  90. package/src/config/format.ts +18 -0
  91. package/src/config-eval.ts +140 -0
  92. package/src/config-rendering.ts +23 -79
  93. package/src/interface/admin-interface.ts +85 -5
  94. package/src/schema-fields.ts +59 -1
  95. package/dist/esm/hexclave-config-file.d.ts +0 -38
  96. package/dist/esm/hexclave-config-file.d.ts.map +0 -1
  97. package/dist/esm/hexclave-config-file.js +0 -144
  98. package/dist/esm/hexclave-config-file.js.map +0 -1
  99. package/dist/hexclave-config-file.d.ts +0 -38
  100. package/dist/hexclave-config-file.d.ts.map +0 -1
  101. package/dist/hexclave-config-file.js +0 -153
  102. package/dist/hexclave-config-file.js.map +0 -1
  103. 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,21 @@ 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;
165
+ html: string | null;
166
+ text: string | null;
166
167
  created_at_millis: number;
168
+ subject: string;
167
169
  updated_at_millis: number;
168
170
  tsx_source: string;
169
171
  theme_id: string | null;
170
172
  to: {
171
- type: "user-primary-email";
172
173
  user_id: string;
174
+ type: "user-primary-email";
173
175
  } | {
174
- type: "user-custom-emails";
175
176
  user_id: string;
177
+ type: "user-custom-emails";
176
178
  emails: string[];
177
179
  } | {
178
180
  type: "custom-emails";
@@ -200,25 +202,25 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
200
202
  has_delivered: boolean;
201
203
  started_rendering_at_millis: number;
202
204
  rendered_at_millis: number;
203
- html: string | null;
204
- text: string | null;
205
205
  is_transactional: boolean;
206
206
  is_high_priority: boolean;
207
207
  notification_category_id: string | null;
208
208
  } | {
209
- id: string;
210
209
  status: "queued";
211
- subject: string;
210
+ id: string;
211
+ html: string | null;
212
+ text: string | null;
212
213
  created_at_millis: number;
214
+ subject: string;
213
215
  updated_at_millis: number;
214
216
  tsx_source: string;
215
217
  theme_id: string | null;
216
218
  to: {
217
- type: "user-primary-email";
218
219
  user_id: string;
220
+ type: "user-primary-email";
219
221
  } | {
220
- type: "user-custom-emails";
221
222
  user_id: string;
223
+ type: "user-custom-emails";
222
224
  emails: string[];
223
225
  } | {
224
226
  type: "custom-emails";
@@ -246,25 +248,25 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
246
248
  has_delivered: boolean;
247
249
  started_rendering_at_millis: number;
248
250
  rendered_at_millis: number;
249
- html: string | null;
250
- text: string | null;
251
251
  is_transactional: boolean;
252
252
  is_high_priority: boolean;
253
253
  notification_category_id: string | null;
254
254
  } | {
255
- id: string;
256
255
  status: "sending";
257
- subject: string;
256
+ id: string;
257
+ html: string | null;
258
+ text: string | null;
258
259
  created_at_millis: number;
260
+ subject: string;
259
261
  updated_at_millis: number;
260
262
  tsx_source: string;
261
263
  theme_id: string | null;
262
264
  to: {
263
- type: "user-primary-email";
264
265
  user_id: string;
266
+ type: "user-primary-email";
265
267
  } | {
266
- type: "user-custom-emails";
267
268
  user_id: string;
269
+ type: "user-custom-emails";
268
270
  emails: string[];
269
271
  } | {
270
272
  type: "custom-emails";
@@ -292,26 +294,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
292
294
  has_delivered: boolean;
293
295
  started_rendering_at_millis: number;
294
296
  rendered_at_millis: number;
295
- html: string | null;
296
- text: string | null;
297
297
  is_transactional: boolean;
298
298
  is_high_priority: boolean;
299
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;
304
+ html: string | null;
305
+ text: string | null;
305
306
  created_at_millis: number;
307
+ subject: string;
306
308
  updated_at_millis: number;
307
309
  tsx_source: string;
308
310
  theme_id: string | null;
309
311
  to: {
310
- type: "user-primary-email";
311
312
  user_id: string;
313
+ type: "user-primary-email";
312
314
  } | {
313
- type: "user-custom-emails";
314
315
  user_id: string;
316
+ type: "user-custom-emails";
315
317
  emails: string[];
316
318
  } | {
317
319
  type: "custom-emails";
@@ -339,8 +341,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
339
341
  has_delivered: boolean;
340
342
  started_rendering_at_millis: number;
341
343
  rendered_at_millis: number;
342
- html: string | null;
343
- text: string | null;
344
344
  is_transactional: boolean;
345
345
  is_high_priority: boolean;
346
346
  notification_category_id: string | null;
@@ -348,27 +348,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
348
348
  error_at_millis: number;
349
349
  server_error: string;
350
350
  } | {
351
+ html?: string | null | undefined;
352
+ text?: string | null | undefined;
351
353
  subject?: string | undefined;
352
354
  started_rendering_at_millis?: number | undefined;
353
355
  rendered_at_millis?: number | undefined;
354
- html?: string | null | undefined;
355
- text?: string | null | undefined;
356
356
  is_transactional?: boolean | undefined;
357
357
  is_high_priority?: boolean | undefined;
358
358
  notification_category_id?: string | null | undefined;
359
359
  started_sending_at_millis?: number | undefined;
360
- id: string;
361
360
  status: "skipped";
361
+ id: string;
362
362
  created_at_millis: number;
363
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,21 @@ 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;
403
+ html: string | null;
404
+ text: string | null;
404
405
  created_at_millis: number;
406
+ subject: string;
405
407
  updated_at_millis: number;
406
408
  tsx_source: string;
407
409
  theme_id: string | null;
408
410
  to: {
409
- type: "user-primary-email";
410
411
  user_id: string;
412
+ type: "user-primary-email";
411
413
  } | {
412
- type: "user-custom-emails";
413
414
  user_id: string;
415
+ type: "user-custom-emails";
414
416
  emails: string[];
415
417
  } | {
416
418
  type: "custom-emails";
@@ -438,27 +440,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
438
440
  has_delivered: boolean;
439
441
  started_rendering_at_millis: number;
440
442
  rendered_at_millis: number;
441
- html: string | null;
442
- text: string | null;
443
443
  is_transactional: boolean;
444
444
  is_high_priority: boolean;
445
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;
451
+ html: string | null;
452
+ text: string | null;
452
453
  created_at_millis: number;
454
+ subject: string;
453
455
  updated_at_millis: number;
454
456
  tsx_source: string;
455
457
  theme_id: string | null;
456
458
  to: {
457
- type: "user-primary-email";
458
459
  user_id: string;
460
+ type: "user-primary-email";
459
461
  } | {
460
- type: "user-custom-emails";
461
462
  user_id: string;
463
+ type: "user-custom-emails";
462
464
  emails: string[];
463
465
  } | {
464
466
  type: "custom-emails";
@@ -486,27 +488,27 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
486
488
  has_delivered: boolean;
487
489
  started_rendering_at_millis: number;
488
490
  rendered_at_millis: number;
489
- html: string | null;
490
- text: string | null;
491
491
  is_transactional: boolean;
492
492
  is_high_priority: boolean;
493
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;
499
+ html: string | null;
500
+ text: string | null;
500
501
  created_at_millis: number;
502
+ subject: string;
501
503
  updated_at_millis: number;
502
504
  tsx_source: string;
503
505
  theme_id: string | null;
504
506
  to: {
505
- type: "user-primary-email";
506
507
  user_id: string;
508
+ type: "user-primary-email";
507
509
  } | {
508
- type: "user-custom-emails";
509
510
  user_id: string;
511
+ type: "user-custom-emails";
510
512
  emails: string[];
511
513
  } | {
512
514
  type: "custom-emails";
@@ -534,8 +536,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
534
536
  has_delivered: boolean;
535
537
  started_rendering_at_millis: number;
536
538
  rendered_at_millis: number;
537
- html: string | null;
538
- text: string | null;
539
539
  is_transactional: boolean;
540
540
  is_high_priority: boolean;
541
541
  notification_category_id: string | null;
@@ -543,19 +543,21 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
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;
548
+ html: string | null;
549
+ text: string | null;
549
550
  created_at_millis: number;
551
+ subject: string;
550
552
  updated_at_millis: number;
551
553
  tsx_source: string;
552
554
  theme_id: string | null;
553
555
  to: {
554
- type: "user-primary-email";
555
556
  user_id: string;
557
+ type: "user-primary-email";
556
558
  } | {
557
- type: "user-custom-emails";
558
559
  user_id: string;
560
+ type: "user-custom-emails";
559
561
  emails: string[];
560
562
  } | {
561
563
  type: "custom-emails";
@@ -583,8 +585,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
583
585
  has_delivered: boolean;
584
586
  started_rendering_at_millis: number;
585
587
  rendered_at_millis: number;
586
- html: string | null;
587
- text: string | null;
588
588
  is_transactional: boolean;
589
589
  is_high_priority: boolean;
590
590
  notification_category_id: string | null;
@@ -593,19 +593,21 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
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;
598
+ html: string | null;
599
+ text: string | null;
599
600
  created_at_millis: number;
601
+ subject: string;
600
602
  updated_at_millis: number;
601
603
  tsx_source: string;
602
604
  theme_id: string | null;
603
605
  to: {
604
- type: "user-primary-email";
605
606
  user_id: string;
607
+ type: "user-primary-email";
606
608
  } | {
607
- type: "user-custom-emails";
608
609
  user_id: string;
610
+ type: "user-custom-emails";
609
611
  emails: string[];
610
612
  } | {
611
613
  type: "custom-emails";
@@ -633,8 +635,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
633
635
  has_delivered: boolean;
634
636
  started_rendering_at_millis: number;
635
637
  rendered_at_millis: number;
636
- html: string | null;
637
- text: string | null;
638
638
  is_transactional: boolean;
639
639
  is_high_priority: boolean;
640
640
  notification_category_id: string | null;
@@ -643,19 +643,21 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
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;
648
+ html: string | null;
649
+ text: string | null;
649
650
  created_at_millis: number;
651
+ subject: string;
650
652
  updated_at_millis: number;
651
653
  tsx_source: string;
652
654
  theme_id: string | null;
653
655
  to: {
654
- type: "user-primary-email";
655
656
  user_id: string;
657
+ type: "user-primary-email";
656
658
  } | {
657
- type: "user-custom-emails";
658
659
  user_id: string;
660
+ type: "user-custom-emails";
659
661
  emails: string[];
660
662
  } | {
661
663
  type: "custom-emails";
@@ -683,8 +685,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
683
685
  has_delivered: boolean;
684
686
  started_rendering_at_millis: number;
685
687
  rendered_at_millis: number;
686
- html: string | null;
687
- text: string | null;
688
688
  is_transactional: boolean;
689
689
  is_high_priority: boolean;
690
690
  notification_category_id: string | null;
@@ -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,21 @@ 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;
885
+ html: string | null;
886
+ text: string | null;
886
887
  created_at_millis: number;
888
+ subject: string;
887
889
  updated_at_millis: number;
888
890
  tsx_source: string;
889
891
  theme_id: string | null;
890
892
  to: {
891
- type: "user-primary-email";
892
893
  user_id: string;
894
+ type: "user-primary-email";
893
895
  } | {
894
- type: "user-custom-emails";
895
896
  user_id: string;
897
+ type: "user-custom-emails";
896
898
  emails: string[];
897
899
  } | {
898
900
  type: "custom-emails";
@@ -920,25 +922,25 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
920
922
  has_delivered: boolean;
921
923
  started_rendering_at_millis: number;
922
924
  rendered_at_millis: number;
923
- html: string | null;
924
- text: string | null;
925
925
  is_transactional: boolean;
926
926
  is_high_priority: boolean;
927
927
  notification_category_id: string | null;
928
928
  } | {
929
- id: string;
930
929
  status: "queued";
931
- subject: string;
930
+ id: string;
931
+ html: string | null;
932
+ text: string | null;
932
933
  created_at_millis: number;
934
+ subject: string;
933
935
  updated_at_millis: number;
934
936
  tsx_source: string;
935
937
  theme_id: string | null;
936
938
  to: {
937
- type: "user-primary-email";
938
939
  user_id: string;
940
+ type: "user-primary-email";
939
941
  } | {
940
- type: "user-custom-emails";
941
942
  user_id: string;
943
+ type: "user-custom-emails";
942
944
  emails: string[];
943
945
  } | {
944
946
  type: "custom-emails";
@@ -966,25 +968,25 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
966
968
  has_delivered: boolean;
967
969
  started_rendering_at_millis: number;
968
970
  rendered_at_millis: number;
969
- html: string | null;
970
- text: string | null;
971
971
  is_transactional: boolean;
972
972
  is_high_priority: boolean;
973
973
  notification_category_id: string | null;
974
974
  } | {
975
- id: string;
976
975
  status: "sending";
977
- subject: string;
976
+ id: string;
977
+ html: string | null;
978
+ text: string | null;
978
979
  created_at_millis: number;
980
+ subject: string;
979
981
  updated_at_millis: number;
980
982
  tsx_source: string;
981
983
  theme_id: string | null;
982
984
  to: {
983
- type: "user-primary-email";
984
985
  user_id: string;
986
+ type: "user-primary-email";
985
987
  } | {
986
- type: "user-custom-emails";
987
988
  user_id: string;
989
+ type: "user-custom-emails";
988
990
  emails: string[];
989
991
  } | {
990
992
  type: "custom-emails";
@@ -1012,26 +1014,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1012
1014
  has_delivered: boolean;
1013
1015
  started_rendering_at_millis: number;
1014
1016
  rendered_at_millis: number;
1015
- html: string | null;
1016
- text: string | null;
1017
1017
  is_transactional: boolean;
1018
1018
  is_high_priority: boolean;
1019
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;
1024
+ html: string | null;
1025
+ text: string | null;
1025
1026
  created_at_millis: number;
1027
+ subject: string;
1026
1028
  updated_at_millis: number;
1027
1029
  tsx_source: string;
1028
1030
  theme_id: string | null;
1029
1031
  to: {
1030
- type: "user-primary-email";
1031
1032
  user_id: string;
1033
+ type: "user-primary-email";
1032
1034
  } | {
1033
- type: "user-custom-emails";
1034
1035
  user_id: string;
1036
+ type: "user-custom-emails";
1035
1037
  emails: string[];
1036
1038
  } | {
1037
1039
  type: "custom-emails";
@@ -1059,8 +1061,6 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1059
1061
  has_delivered: boolean;
1060
1062
  started_rendering_at_millis: number;
1061
1063
  rendered_at_millis: number;
1062
- html: string | null;
1063
- text: string | null;
1064
1064
  is_transactional: boolean;
1065
1065
  is_high_priority: boolean;
1066
1066
  notification_category_id: string | null;
@@ -1068,27 +1068,27 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1068
1068
  error_at_millis: number;
1069
1069
  server_error: string;
1070
1070
  } | {
1071
+ html?: string | null | undefined;
1072
+ text?: string | null | undefined;
1071
1073
  subject?: string | undefined;
1072
1074
  started_rendering_at_millis?: number | undefined;
1073
1075
  rendered_at_millis?: number | undefined;
1074
- html?: string | null | undefined;
1075
- text?: string | null | undefined;
1076
1076
  is_transactional?: boolean | undefined;
1077
1077
  is_high_priority?: boolean | undefined;
1078
1078
  notification_category_id?: string | null | undefined;
1079
1079
  started_sending_at_millis?: number | undefined;
1080
- id: string;
1081
1080
  status: "skipped";
1081
+ id: string;
1082
1082
  created_at_millis: number;
1083
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,21 @@ 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;
1123
+ html: string | null;
1124
+ text: string | null;
1124
1125
  created_at_millis: number;
1126
+ subject: string;
1125
1127
  updated_at_millis: number;
1126
1128
  tsx_source: string;
1127
1129
  theme_id: string | null;
1128
1130
  to: {
1129
- type: "user-primary-email";
1130
1131
  user_id: string;
1132
+ type: "user-primary-email";
1131
1133
  } | {
1132
- type: "user-custom-emails";
1133
1134
  user_id: string;
1135
+ type: "user-custom-emails";
1134
1136
  emails: string[];
1135
1137
  } | {
1136
1138
  type: "custom-emails";
@@ -1158,27 +1160,27 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1158
1160
  has_delivered: boolean;
1159
1161
  started_rendering_at_millis: number;
1160
1162
  rendered_at_millis: number;
1161
- html: string | null;
1162
- text: string | null;
1163
1163
  is_transactional: boolean;
1164
1164
  is_high_priority: boolean;
1165
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;
1171
+ html: string | null;
1172
+ text: string | null;
1172
1173
  created_at_millis: number;
1174
+ subject: string;
1173
1175
  updated_at_millis: number;
1174
1176
  tsx_source: string;
1175
1177
  theme_id: string | null;
1176
1178
  to: {
1177
- type: "user-primary-email";
1178
1179
  user_id: string;
1180
+ type: "user-primary-email";
1179
1181
  } | {
1180
- type: "user-custom-emails";
1181
1182
  user_id: string;
1183
+ type: "user-custom-emails";
1182
1184
  emails: string[];
1183
1185
  } | {
1184
1186
  type: "custom-emails";
@@ -1206,27 +1208,27 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1206
1208
  has_delivered: boolean;
1207
1209
  started_rendering_at_millis: number;
1208
1210
  rendered_at_millis: number;
1209
- html: string | null;
1210
- text: string | null;
1211
1211
  is_transactional: boolean;
1212
1212
  is_high_priority: boolean;
1213
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;
1219
+ html: string | null;
1220
+ text: string | null;
1220
1221
  created_at_millis: number;
1222
+ subject: string;
1221
1223
  updated_at_millis: number;
1222
1224
  tsx_source: string;
1223
1225
  theme_id: string | null;
1224
1226
  to: {
1225
- type: "user-primary-email";
1226
1227
  user_id: string;
1228
+ type: "user-primary-email";
1227
1229
  } | {
1228
- type: "user-custom-emails";
1229
1230
  user_id: string;
1231
+ type: "user-custom-emails";
1230
1232
  emails: string[];
1231
1233
  } | {
1232
1234
  type: "custom-emails";
@@ -1254,8 +1256,6 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1254
1256
  has_delivered: boolean;
1255
1257
  started_rendering_at_millis: number;
1256
1258
  rendered_at_millis: number;
1257
- html: string | null;
1258
- text: string | null;
1259
1259
  is_transactional: boolean;
1260
1260
  is_high_priority: boolean;
1261
1261
  notification_category_id: string | null;
@@ -1263,19 +1263,21 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
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;
1268
+ html: string | null;
1269
+ text: string | null;
1269
1270
  created_at_millis: number;
1271
+ subject: string;
1270
1272
  updated_at_millis: number;
1271
1273
  tsx_source: string;
1272
1274
  theme_id: string | null;
1273
1275
  to: {
1274
- type: "user-primary-email";
1275
1276
  user_id: string;
1277
+ type: "user-primary-email";
1276
1278
  } | {
1277
- type: "user-custom-emails";
1278
1279
  user_id: string;
1280
+ type: "user-custom-emails";
1279
1281
  emails: string[];
1280
1282
  } | {
1281
1283
  type: "custom-emails";
@@ -1303,8 +1305,6 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1303
1305
  has_delivered: boolean;
1304
1306
  started_rendering_at_millis: number;
1305
1307
  rendered_at_millis: number;
1306
- html: string | null;
1307
- text: string | null;
1308
1308
  is_transactional: boolean;
1309
1309
  is_high_priority: boolean;
1310
1310
  notification_category_id: string | null;
@@ -1313,19 +1313,21 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
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;
1318
+ html: string | null;
1319
+ text: string | null;
1319
1320
  created_at_millis: number;
1321
+ subject: string;
1320
1322
  updated_at_millis: number;
1321
1323
  tsx_source: string;
1322
1324
  theme_id: string | null;
1323
1325
  to: {
1324
- type: "user-primary-email";
1325
1326
  user_id: string;
1327
+ type: "user-primary-email";
1326
1328
  } | {
1327
- type: "user-custom-emails";
1328
1329
  user_id: string;
1330
+ type: "user-custom-emails";
1329
1331
  emails: string[];
1330
1332
  } | {
1331
1333
  type: "custom-emails";
@@ -1353,8 +1355,6 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1353
1355
  has_delivered: boolean;
1354
1356
  started_rendering_at_millis: number;
1355
1357
  rendered_at_millis: number;
1356
- html: string | null;
1357
- text: string | null;
1358
1358
  is_transactional: boolean;
1359
1359
  is_high_priority: boolean;
1360
1360
  notification_category_id: string | null;
@@ -1363,19 +1363,21 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
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;
1368
+ html: string | null;
1369
+ text: string | null;
1369
1370
  created_at_millis: number;
1371
+ subject: string;
1370
1372
  updated_at_millis: number;
1371
1373
  tsx_source: string;
1372
1374
  theme_id: string | null;
1373
1375
  to: {
1374
- type: "user-primary-email";
1375
1376
  user_id: string;
1377
+ type: "user-primary-email";
1376
1378
  } | {
1377
- type: "user-custom-emails";
1378
1379
  user_id: string;
1380
+ type: "user-custom-emails";
1379
1381
  emails: string[];
1380
1382
  } | {
1381
1383
  type: "custom-emails";
@@ -1403,8 +1405,6 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1403
1405
  has_delivered: boolean;
1404
1406
  started_rendering_at_millis: number;
1405
1407
  rendered_at_millis: number;
1406
- html: string | null;
1407
- text: string | null;
1408
1408
  is_transactional: boolean;
1409
1409
  is_high_priority: boolean;
1410
1410
  notification_category_id: string | null;
@@ -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";