@hexclave/shared 1.0.10 → 1.0.11

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 (81) hide show
  1. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  2. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +10 -2
  3. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  4. package/dist/config/schema.d.ts +44 -44
  5. package/dist/config-rendering.d.ts.map +1 -1
  6. package/dist/config-rendering.js +7 -2
  7. package/dist/config-rendering.js.map +1 -1
  8. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  9. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +10 -2
  10. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  11. package/dist/esm/config/schema.d.ts +44 -44
  12. package/dist/esm/config-rendering.d.ts.map +1 -1
  13. package/dist/esm/config-rendering.js +7 -2
  14. package/dist/esm/config-rendering.js.map +1 -1
  15. package/dist/esm/hexclave-config-file.d.ts.map +1 -1
  16. package/dist/esm/hexclave-config-file.js +2 -1
  17. package/dist/esm/hexclave-config-file.js.map +1 -1
  18. package/dist/esm/interface/admin-interface.d.ts +9 -1
  19. package/dist/esm/interface/admin-interface.d.ts.map +1 -1
  20. package/dist/esm/interface/admin-interface.js +32 -2
  21. package/dist/esm/interface/admin-interface.js.map +1 -1
  22. package/dist/esm/interface/admin-metrics.d.ts +123 -7
  23. package/dist/esm/interface/admin-metrics.d.ts.map +1 -1
  24. package/dist/esm/interface/admin-metrics.js +21 -2
  25. package/dist/esm/interface/admin-metrics.js.map +1 -1
  26. package/dist/esm/interface/conversations.d.ts +27 -27
  27. package/dist/esm/interface/crud/current-user.d.ts +6 -6
  28. package/dist/esm/interface/crud/email-outbox.d.ts +224 -224
  29. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  30. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  31. package/dist/esm/interface/crud/projects.d.ts +99 -99
  32. package/dist/esm/interface/crud/team-member-profiles.d.ts +16 -16
  33. package/dist/esm/interface/crud/users.d.ts +2 -2
  34. package/dist/esm/schema-fields.d.ts.map +1 -1
  35. package/dist/esm/schema-fields.js +1 -1
  36. package/dist/esm/schema-fields.js.map +1 -1
  37. package/dist/esm/sessions.d.ts +10 -0
  38. package/dist/esm/sessions.d.ts.map +1 -1
  39. package/dist/esm/sessions.js +20 -2
  40. package/dist/esm/sessions.js.map +1 -1
  41. package/dist/esm/sessions.test.d.ts +1 -0
  42. package/dist/esm/sessions.test.js +178 -0
  43. package/dist/esm/sessions.test.js.map +1 -0
  44. package/dist/hexclave-config-file.d.ts.map +1 -1
  45. package/dist/hexclave-config-file.js +2 -1
  46. package/dist/hexclave-config-file.js.map +1 -1
  47. package/dist/interface/admin-interface.d.ts +9 -1
  48. package/dist/interface/admin-interface.d.ts.map +1 -1
  49. package/dist/interface/admin-interface.js +32 -2
  50. package/dist/interface/admin-interface.js.map +1 -1
  51. package/dist/interface/admin-metrics.d.ts +123 -7
  52. package/dist/interface/admin-metrics.d.ts.map +1 -1
  53. package/dist/interface/admin-metrics.js +22 -1
  54. package/dist/interface/admin-metrics.js.map +1 -1
  55. package/dist/interface/conversations.d.ts +27 -27
  56. package/dist/interface/crud/current-user.d.ts +6 -6
  57. package/dist/interface/crud/email-outbox.d.ts +224 -224
  58. package/dist/interface/crud/invoices.d.ts +2 -2
  59. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  60. package/dist/interface/crud/projects.d.ts +99 -99
  61. package/dist/interface/crud/team-member-profiles.d.ts +16 -16
  62. package/dist/interface/crud/users.d.ts +2 -2
  63. package/dist/schema-fields.d.ts.map +1 -1
  64. package/dist/schema-fields.js +1 -1
  65. package/dist/schema-fields.js.map +1 -1
  66. package/dist/sessions.d.ts +10 -0
  67. package/dist/sessions.d.ts.map +1 -1
  68. package/dist/sessions.js +20 -2
  69. package/dist/sessions.js.map +1 -1
  70. package/dist/sessions.test.d.ts +1 -0
  71. package/dist/sessions.test.js +178 -0
  72. package/dist/sessions.test.js.map +1 -0
  73. package/package.json +1 -1
  74. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +10 -2
  75. package/src/config-rendering.ts +11 -2
  76. package/src/hexclave-config-file.ts +7 -1
  77. package/src/interface/admin-interface.ts +49 -2
  78. package/src/interface/admin-metrics.ts +33 -2
  79. package/src/schema-fields.ts +4 -1
  80. package/src/sessions.test.ts +147 -0
  81. package/src/sessions.ts +26 -0
@@ -5,21 +5,21 @@ import * as yup$1 from "yup";
5
5
  declare const emailOutboxReadSchema: yup$1.MixedSchema<{
6
6
  status: "paused";
7
7
  id: string;
8
- created_at_millis: number;
9
- updated_at_millis: number;
10
- tsx_source: string;
11
- theme_id: string | null;
12
8
  to: {
13
9
  user_id: string;
14
10
  type: "user-primary-email";
15
11
  } | {
12
+ emails: string[];
16
13
  user_id: string;
17
14
  type: "user-custom-emails";
18
- emails: string[];
19
15
  } | {
20
- type: "custom-emails";
21
16
  emails: string[];
17
+ type: "custom-emails";
22
18
  };
19
+ created_at_millis: number;
20
+ updated_at_millis: number;
21
+ tsx_source: string;
22
+ theme_id: string | null;
23
23
  variables: Record<string, {} | null>;
24
24
  skip_deliverability_check: boolean;
25
25
  scheduled_at_millis: number;
@@ -43,21 +43,21 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
43
43
  } | {
44
44
  status: "preparing";
45
45
  id: string;
46
- created_at_millis: number;
47
- updated_at_millis: number;
48
- tsx_source: string;
49
- theme_id: string | null;
50
46
  to: {
51
47
  user_id: string;
52
48
  type: "user-primary-email";
53
49
  } | {
50
+ emails: string[];
54
51
  user_id: string;
55
52
  type: "user-custom-emails";
56
- emails: string[];
57
53
  } | {
58
- type: "custom-emails";
59
54
  emails: string[];
55
+ type: "custom-emails";
60
56
  };
57
+ created_at_millis: number;
58
+ updated_at_millis: number;
59
+ tsx_source: string;
60
+ theme_id: string | null;
61
61
  variables: Record<string, {} | null>;
62
62
  skip_deliverability_check: boolean;
63
63
  scheduled_at_millis: number;
@@ -81,21 +81,21 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
81
81
  } | {
82
82
  status: "rendering";
83
83
  id: string;
84
- created_at_millis: number;
85
- updated_at_millis: number;
86
- tsx_source: string;
87
- theme_id: string | null;
88
84
  to: {
89
85
  user_id: string;
90
86
  type: "user-primary-email";
91
87
  } | {
88
+ emails: string[];
92
89
  user_id: string;
93
90
  type: "user-custom-emails";
94
- emails: string[];
95
91
  } | {
96
- type: "custom-emails";
97
92
  emails: string[];
93
+ type: "custom-emails";
98
94
  };
95
+ created_at_millis: number;
96
+ updated_at_millis: number;
97
+ tsx_source: string;
98
+ theme_id: string | null;
99
99
  variables: Record<string, {} | null>;
100
100
  skip_deliverability_check: boolean;
101
101
  scheduled_at_millis: number;
@@ -120,21 +120,21 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
120
120
  } | {
121
121
  status: "render-error";
122
122
  id: string;
123
- created_at_millis: number;
124
- updated_at_millis: number;
125
- tsx_source: string;
126
- theme_id: string | null;
127
123
  to: {
128
124
  user_id: string;
129
125
  type: "user-primary-email";
130
126
  } | {
127
+ emails: string[];
131
128
  user_id: string;
132
129
  type: "user-custom-emails";
133
- emails: string[];
134
130
  } | {
135
- type: "custom-emails";
136
131
  emails: string[];
132
+ type: "custom-emails";
137
133
  };
134
+ created_at_millis: number;
135
+ updated_at_millis: number;
136
+ tsx_source: string;
137
+ theme_id: string | null;
138
138
  variables: Record<string, {} | null>;
139
139
  skip_deliverability_check: boolean;
140
140
  scheduled_at_millis: number;
@@ -162,23 +162,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
162
162
  status: "scheduled";
163
163
  id: string;
164
164
  subject: string;
165
- created_at_millis: number;
166
- html: string | null;
167
- text: string | null;
168
- updated_at_millis: number;
169
- tsx_source: string;
170
- theme_id: string | null;
171
165
  to: {
172
166
  user_id: string;
173
167
  type: "user-primary-email";
174
168
  } | {
169
+ emails: string[];
175
170
  user_id: string;
176
171
  type: "user-custom-emails";
177
- emails: string[];
178
172
  } | {
179
- type: "custom-emails";
180
173
  emails: string[];
174
+ type: "custom-emails";
181
175
  };
176
+ created_at_millis: number;
177
+ html: string | null;
178
+ text: string | null;
179
+ updated_at_millis: number;
180
+ tsx_source: string;
181
+ theme_id: string | null;
182
182
  variables: Record<string, {} | null>;
183
183
  skip_deliverability_check: boolean;
184
184
  scheduled_at_millis: number;
@@ -208,23 +208,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
208
208
  status: "queued";
209
209
  id: string;
210
210
  subject: string;
211
- created_at_millis: number;
212
- html: string | null;
213
- text: string | null;
214
- updated_at_millis: number;
215
- tsx_source: string;
216
- theme_id: string | null;
217
211
  to: {
218
212
  user_id: string;
219
213
  type: "user-primary-email";
220
214
  } | {
215
+ emails: string[];
221
216
  user_id: string;
222
217
  type: "user-custom-emails";
223
- emails: string[];
224
218
  } | {
225
- type: "custom-emails";
226
219
  emails: string[];
220
+ type: "custom-emails";
227
221
  };
222
+ created_at_millis: number;
223
+ html: string | null;
224
+ text: string | null;
225
+ updated_at_millis: number;
226
+ tsx_source: string;
227
+ theme_id: string | null;
228
228
  variables: Record<string, {} | null>;
229
229
  skip_deliverability_check: boolean;
230
230
  scheduled_at_millis: number;
@@ -254,23 +254,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
254
254
  status: "sending";
255
255
  id: string;
256
256
  subject: string;
257
- created_at_millis: number;
258
- html: string | null;
259
- text: string | null;
260
- updated_at_millis: number;
261
- tsx_source: string;
262
- theme_id: string | null;
263
257
  to: {
264
258
  user_id: string;
265
259
  type: "user-primary-email";
266
260
  } | {
261
+ emails: string[];
267
262
  user_id: string;
268
263
  type: "user-custom-emails";
269
- emails: string[];
270
264
  } | {
271
- type: "custom-emails";
272
265
  emails: string[];
266
+ type: "custom-emails";
273
267
  };
268
+ created_at_millis: number;
269
+ html: string | null;
270
+ text: string | null;
271
+ updated_at_millis: number;
272
+ tsx_source: string;
273
+ theme_id: string | null;
274
274
  variables: Record<string, {} | null>;
275
275
  skip_deliverability_check: boolean;
276
276
  scheduled_at_millis: number;
@@ -301,23 +301,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
301
301
  status: "server-error";
302
302
  id: string;
303
303
  subject: string;
304
- created_at_millis: number;
305
- html: string | null;
306
- text: string | null;
307
- updated_at_millis: number;
308
- tsx_source: string;
309
- theme_id: string | null;
310
304
  to: {
311
305
  user_id: string;
312
306
  type: "user-primary-email";
313
307
  } | {
308
+ emails: string[];
314
309
  user_id: string;
315
310
  type: "user-custom-emails";
316
- emails: string[];
317
311
  } | {
318
- type: "custom-emails";
319
312
  emails: string[];
313
+ type: "custom-emails";
320
314
  };
315
+ created_at_millis: number;
316
+ html: string | null;
317
+ text: string | null;
318
+ updated_at_millis: number;
319
+ tsx_source: string;
320
+ theme_id: string | null;
321
321
  variables: Record<string, {} | null>;
322
322
  skip_deliverability_check: boolean;
323
323
  scheduled_at_millis: number;
@@ -358,21 +358,21 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
358
358
  started_sending_at_millis?: number | undefined;
359
359
  status: "skipped";
360
360
  id: string;
361
- created_at_millis: number;
362
- updated_at_millis: number;
363
- tsx_source: string;
364
- theme_id: string | null;
365
361
  to: {
366
362
  user_id: string;
367
363
  type: "user-primary-email";
368
364
  } | {
365
+ emails: string[];
369
366
  user_id: string;
370
367
  type: "user-custom-emails";
371
- emails: string[];
372
368
  } | {
373
- type: "custom-emails";
374
369
  emails: string[];
370
+ type: "custom-emails";
375
371
  };
372
+ created_at_millis: number;
373
+ updated_at_millis: number;
374
+ tsx_source: string;
375
+ theme_id: string | null;
376
376
  variables: Record<string, {} | null>;
377
377
  skip_deliverability_check: boolean;
378
378
  scheduled_at_millis: number;
@@ -400,23 +400,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
400
400
  status: "bounced";
401
401
  id: string;
402
402
  subject: string;
403
- created_at_millis: number;
404
- html: string | null;
405
- text: string | null;
406
- updated_at_millis: number;
407
- tsx_source: string;
408
- theme_id: string | null;
409
403
  to: {
410
404
  user_id: string;
411
405
  type: "user-primary-email";
412
406
  } | {
407
+ emails: string[];
413
408
  user_id: string;
414
409
  type: "user-custom-emails";
415
- emails: string[];
416
410
  } | {
417
- type: "custom-emails";
418
411
  emails: string[];
412
+ type: "custom-emails";
419
413
  };
414
+ created_at_millis: number;
415
+ html: string | null;
416
+ text: string | null;
417
+ updated_at_millis: number;
418
+ tsx_source: string;
419
+ theme_id: string | null;
420
420
  variables: Record<string, {} | null>;
421
421
  skip_deliverability_check: boolean;
422
422
  scheduled_at_millis: number;
@@ -448,23 +448,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
448
448
  status: "delivery-delayed";
449
449
  id: string;
450
450
  subject: string;
451
- created_at_millis: number;
452
- html: string | null;
453
- text: string | null;
454
- updated_at_millis: number;
455
- tsx_source: string;
456
- theme_id: string | null;
457
451
  to: {
458
452
  user_id: string;
459
453
  type: "user-primary-email";
460
454
  } | {
455
+ emails: string[];
461
456
  user_id: string;
462
457
  type: "user-custom-emails";
463
- emails: string[];
464
458
  } | {
465
- type: "custom-emails";
466
459
  emails: string[];
460
+ type: "custom-emails";
467
461
  };
462
+ created_at_millis: number;
463
+ html: string | null;
464
+ text: string | null;
465
+ updated_at_millis: number;
466
+ tsx_source: string;
467
+ theme_id: string | null;
468
468
  variables: Record<string, {} | null>;
469
469
  skip_deliverability_check: boolean;
470
470
  scheduled_at_millis: number;
@@ -496,23 +496,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
496
496
  status: "sent";
497
497
  id: string;
498
498
  subject: string;
499
- created_at_millis: number;
500
- html: string | null;
501
- text: string | null;
502
- updated_at_millis: number;
503
- tsx_source: string;
504
- theme_id: string | null;
505
499
  to: {
506
500
  user_id: string;
507
501
  type: "user-primary-email";
508
502
  } | {
503
+ emails: string[];
509
504
  user_id: string;
510
505
  type: "user-custom-emails";
511
- emails: string[];
512
506
  } | {
513
- type: "custom-emails";
514
507
  emails: string[];
508
+ type: "custom-emails";
515
509
  };
510
+ created_at_millis: number;
511
+ html: string | null;
512
+ text: string | null;
513
+ updated_at_millis: number;
514
+ tsx_source: string;
515
+ theme_id: string | null;
516
516
  variables: Record<string, {} | null>;
517
517
  skip_deliverability_check: boolean;
518
518
  scheduled_at_millis: number;
@@ -545,23 +545,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
545
545
  status: "opened";
546
546
  id: string;
547
547
  subject: string;
548
- created_at_millis: number;
549
- html: string | null;
550
- text: string | null;
551
- updated_at_millis: number;
552
- tsx_source: string;
553
- theme_id: string | null;
554
548
  to: {
555
549
  user_id: string;
556
550
  type: "user-primary-email";
557
551
  } | {
552
+ emails: string[];
558
553
  user_id: string;
559
554
  type: "user-custom-emails";
560
- emails: string[];
561
555
  } | {
562
- type: "custom-emails";
563
556
  emails: string[];
557
+ type: "custom-emails";
564
558
  };
559
+ created_at_millis: number;
560
+ html: string | null;
561
+ text: string | null;
562
+ updated_at_millis: number;
563
+ tsx_source: string;
564
+ theme_id: string | null;
565
565
  variables: Record<string, {} | null>;
566
566
  skip_deliverability_check: boolean;
567
567
  scheduled_at_millis: number;
@@ -595,23 +595,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
595
595
  status: "clicked";
596
596
  id: string;
597
597
  subject: string;
598
- created_at_millis: number;
599
- html: string | null;
600
- text: string | null;
601
- updated_at_millis: number;
602
- tsx_source: string;
603
- theme_id: string | null;
604
598
  to: {
605
599
  user_id: string;
606
600
  type: "user-primary-email";
607
601
  } | {
602
+ emails: string[];
608
603
  user_id: string;
609
604
  type: "user-custom-emails";
610
- emails: string[];
611
605
  } | {
612
- type: "custom-emails";
613
606
  emails: string[];
607
+ type: "custom-emails";
614
608
  };
609
+ created_at_millis: number;
610
+ html: string | null;
611
+ text: string | null;
612
+ updated_at_millis: number;
613
+ tsx_source: string;
614
+ theme_id: string | null;
615
615
  variables: Record<string, {} | null>;
616
616
  skip_deliverability_check: boolean;
617
617
  scheduled_at_millis: number;
@@ -645,23 +645,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
645
645
  status: "marked-as-spam";
646
646
  id: string;
647
647
  subject: string;
648
- created_at_millis: number;
649
- html: string | null;
650
- text: string | null;
651
- updated_at_millis: number;
652
- tsx_source: string;
653
- theme_id: string | null;
654
648
  to: {
655
649
  user_id: string;
656
650
  type: "user-primary-email";
657
651
  } | {
652
+ emails: string[];
658
653
  user_id: string;
659
654
  type: "user-custom-emails";
660
- emails: string[];
661
655
  } | {
662
- type: "custom-emails";
663
656
  emails: string[];
657
+ type: "custom-emails";
664
658
  };
659
+ created_at_millis: number;
660
+ html: string | null;
661
+ text: string | null;
662
+ updated_at_millis: number;
663
+ tsx_source: string;
664
+ theme_id: string | null;
665
665
  variables: Record<string, {} | null>;
666
666
  skip_deliverability_check: boolean;
667
667
  scheduled_at_millis: number;
@@ -699,12 +699,12 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
699
699
  user_id: string;
700
700
  type: "user-primary-email";
701
701
  } | {
702
+ emails: string[];
702
703
  user_id: string;
703
704
  type: "user-custom-emails";
704
- emails: string[];
705
705
  } | {
706
- type: "custom-emails";
707
706
  emails: string[];
707
+ type: "custom-emails";
708
708
  } | undefined;
709
709
  variables: Record<string, {} | null> | undefined;
710
710
  skip_deliverability_check: boolean | undefined;
@@ -725,21 +725,21 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
725
725
  serverReadSchema: yup$1.MixedSchema<{
726
726
  status: "paused";
727
727
  id: string;
728
- created_at_millis: number;
729
- updated_at_millis: number;
730
- tsx_source: string;
731
- theme_id: string | null;
732
728
  to: {
733
729
  user_id: string;
734
730
  type: "user-primary-email";
735
731
  } | {
732
+ emails: string[];
736
733
  user_id: string;
737
734
  type: "user-custom-emails";
738
- emails: string[];
739
735
  } | {
740
- type: "custom-emails";
741
736
  emails: string[];
737
+ type: "custom-emails";
742
738
  };
739
+ created_at_millis: number;
740
+ updated_at_millis: number;
741
+ tsx_source: string;
742
+ theme_id: string | null;
743
743
  variables: Record<string, {} | null>;
744
744
  skip_deliverability_check: boolean;
745
745
  scheduled_at_millis: number;
@@ -763,21 +763,21 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
763
763
  } | {
764
764
  status: "preparing";
765
765
  id: string;
766
- created_at_millis: number;
767
- updated_at_millis: number;
768
- tsx_source: string;
769
- theme_id: string | null;
770
766
  to: {
771
767
  user_id: string;
772
768
  type: "user-primary-email";
773
769
  } | {
770
+ emails: string[];
774
771
  user_id: string;
775
772
  type: "user-custom-emails";
776
- emails: string[];
777
773
  } | {
778
- type: "custom-emails";
779
774
  emails: string[];
775
+ type: "custom-emails";
780
776
  };
777
+ created_at_millis: number;
778
+ updated_at_millis: number;
779
+ tsx_source: string;
780
+ theme_id: string | null;
781
781
  variables: Record<string, {} | null>;
782
782
  skip_deliverability_check: boolean;
783
783
  scheduled_at_millis: number;
@@ -801,21 +801,21 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
801
801
  } | {
802
802
  status: "rendering";
803
803
  id: string;
804
- created_at_millis: number;
805
- updated_at_millis: number;
806
- tsx_source: string;
807
- theme_id: string | null;
808
804
  to: {
809
805
  user_id: string;
810
806
  type: "user-primary-email";
811
807
  } | {
808
+ emails: string[];
812
809
  user_id: string;
813
810
  type: "user-custom-emails";
814
- emails: string[];
815
811
  } | {
816
- type: "custom-emails";
817
812
  emails: string[];
813
+ type: "custom-emails";
818
814
  };
815
+ created_at_millis: number;
816
+ updated_at_millis: number;
817
+ tsx_source: string;
818
+ theme_id: string | null;
819
819
  variables: Record<string, {} | null>;
820
820
  skip_deliverability_check: boolean;
821
821
  scheduled_at_millis: number;
@@ -840,21 +840,21 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
840
840
  } | {
841
841
  status: "render-error";
842
842
  id: string;
843
- created_at_millis: number;
844
- updated_at_millis: number;
845
- tsx_source: string;
846
- theme_id: string | null;
847
843
  to: {
848
844
  user_id: string;
849
845
  type: "user-primary-email";
850
846
  } | {
847
+ emails: string[];
851
848
  user_id: string;
852
849
  type: "user-custom-emails";
853
- emails: string[];
854
850
  } | {
855
- type: "custom-emails";
856
851
  emails: string[];
852
+ type: "custom-emails";
857
853
  };
854
+ created_at_millis: number;
855
+ updated_at_millis: number;
856
+ tsx_source: string;
857
+ theme_id: string | null;
858
858
  variables: Record<string, {} | null>;
859
859
  skip_deliverability_check: boolean;
860
860
  scheduled_at_millis: number;
@@ -882,23 +882,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
882
882
  status: "scheduled";
883
883
  id: string;
884
884
  subject: string;
885
- created_at_millis: number;
886
- html: string | null;
887
- text: string | null;
888
- updated_at_millis: number;
889
- tsx_source: string;
890
- theme_id: string | null;
891
885
  to: {
892
886
  user_id: string;
893
887
  type: "user-primary-email";
894
888
  } | {
889
+ emails: string[];
895
890
  user_id: string;
896
891
  type: "user-custom-emails";
897
- emails: string[];
898
892
  } | {
899
- type: "custom-emails";
900
893
  emails: string[];
894
+ type: "custom-emails";
901
895
  };
896
+ created_at_millis: number;
897
+ html: string | null;
898
+ text: string | null;
899
+ updated_at_millis: number;
900
+ tsx_source: string;
901
+ theme_id: string | null;
902
902
  variables: Record<string, {} | null>;
903
903
  skip_deliverability_check: boolean;
904
904
  scheduled_at_millis: number;
@@ -928,23 +928,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
928
928
  status: "queued";
929
929
  id: string;
930
930
  subject: string;
931
- created_at_millis: number;
932
- html: string | null;
933
- text: string | null;
934
- updated_at_millis: number;
935
- tsx_source: string;
936
- theme_id: string | null;
937
931
  to: {
938
932
  user_id: string;
939
933
  type: "user-primary-email";
940
934
  } | {
935
+ emails: string[];
941
936
  user_id: string;
942
937
  type: "user-custom-emails";
943
- emails: string[];
944
938
  } | {
945
- type: "custom-emails";
946
939
  emails: string[];
940
+ type: "custom-emails";
947
941
  };
942
+ created_at_millis: number;
943
+ html: string | null;
944
+ text: string | null;
945
+ updated_at_millis: number;
946
+ tsx_source: string;
947
+ theme_id: string | null;
948
948
  variables: Record<string, {} | null>;
949
949
  skip_deliverability_check: boolean;
950
950
  scheduled_at_millis: number;
@@ -974,23 +974,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
974
974
  status: "sending";
975
975
  id: string;
976
976
  subject: string;
977
- created_at_millis: number;
978
- html: string | null;
979
- text: string | null;
980
- updated_at_millis: number;
981
- tsx_source: string;
982
- theme_id: string | null;
983
977
  to: {
984
978
  user_id: string;
985
979
  type: "user-primary-email";
986
980
  } | {
981
+ emails: string[];
987
982
  user_id: string;
988
983
  type: "user-custom-emails";
989
- emails: string[];
990
984
  } | {
991
- type: "custom-emails";
992
985
  emails: string[];
986
+ type: "custom-emails";
993
987
  };
988
+ created_at_millis: number;
989
+ html: string | null;
990
+ text: string | null;
991
+ updated_at_millis: number;
992
+ tsx_source: string;
993
+ theme_id: string | null;
994
994
  variables: Record<string, {} | null>;
995
995
  skip_deliverability_check: boolean;
996
996
  scheduled_at_millis: number;
@@ -1021,23 +1021,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1021
1021
  status: "server-error";
1022
1022
  id: string;
1023
1023
  subject: string;
1024
- created_at_millis: number;
1025
- html: string | null;
1026
- text: string | null;
1027
- updated_at_millis: number;
1028
- tsx_source: string;
1029
- theme_id: string | null;
1030
1024
  to: {
1031
1025
  user_id: string;
1032
1026
  type: "user-primary-email";
1033
1027
  } | {
1028
+ emails: string[];
1034
1029
  user_id: string;
1035
1030
  type: "user-custom-emails";
1036
- emails: string[];
1037
1031
  } | {
1038
- type: "custom-emails";
1039
1032
  emails: string[];
1033
+ type: "custom-emails";
1040
1034
  };
1035
+ created_at_millis: number;
1036
+ html: string | null;
1037
+ text: string | null;
1038
+ updated_at_millis: number;
1039
+ tsx_source: string;
1040
+ theme_id: string | null;
1041
1041
  variables: Record<string, {} | null>;
1042
1042
  skip_deliverability_check: boolean;
1043
1043
  scheduled_at_millis: number;
@@ -1078,21 +1078,21 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1078
1078
  started_sending_at_millis?: number | undefined;
1079
1079
  status: "skipped";
1080
1080
  id: string;
1081
- created_at_millis: number;
1082
- updated_at_millis: number;
1083
- tsx_source: string;
1084
- theme_id: string | null;
1085
1081
  to: {
1086
1082
  user_id: string;
1087
1083
  type: "user-primary-email";
1088
1084
  } | {
1085
+ emails: string[];
1089
1086
  user_id: string;
1090
1087
  type: "user-custom-emails";
1091
- emails: string[];
1092
1088
  } | {
1093
- type: "custom-emails";
1094
1089
  emails: string[];
1090
+ type: "custom-emails";
1095
1091
  };
1092
+ created_at_millis: number;
1093
+ updated_at_millis: number;
1094
+ tsx_source: string;
1095
+ theme_id: string | null;
1096
1096
  variables: Record<string, {} | null>;
1097
1097
  skip_deliverability_check: boolean;
1098
1098
  scheduled_at_millis: number;
@@ -1120,23 +1120,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1120
1120
  status: "bounced";
1121
1121
  id: string;
1122
1122
  subject: string;
1123
- created_at_millis: number;
1124
- html: string | null;
1125
- text: string | null;
1126
- updated_at_millis: number;
1127
- tsx_source: string;
1128
- theme_id: string | null;
1129
1123
  to: {
1130
1124
  user_id: string;
1131
1125
  type: "user-primary-email";
1132
1126
  } | {
1127
+ emails: string[];
1133
1128
  user_id: string;
1134
1129
  type: "user-custom-emails";
1135
- emails: string[];
1136
1130
  } | {
1137
- type: "custom-emails";
1138
1131
  emails: string[];
1132
+ type: "custom-emails";
1139
1133
  };
1134
+ created_at_millis: number;
1135
+ html: string | null;
1136
+ text: string | null;
1137
+ updated_at_millis: number;
1138
+ tsx_source: string;
1139
+ theme_id: string | null;
1140
1140
  variables: Record<string, {} | null>;
1141
1141
  skip_deliverability_check: boolean;
1142
1142
  scheduled_at_millis: number;
@@ -1168,23 +1168,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1168
1168
  status: "delivery-delayed";
1169
1169
  id: string;
1170
1170
  subject: string;
1171
- created_at_millis: number;
1172
- html: string | null;
1173
- text: string | null;
1174
- updated_at_millis: number;
1175
- tsx_source: string;
1176
- theme_id: string | null;
1177
1171
  to: {
1178
1172
  user_id: string;
1179
1173
  type: "user-primary-email";
1180
1174
  } | {
1175
+ emails: string[];
1181
1176
  user_id: string;
1182
1177
  type: "user-custom-emails";
1183
- emails: string[];
1184
1178
  } | {
1185
- type: "custom-emails";
1186
1179
  emails: string[];
1180
+ type: "custom-emails";
1187
1181
  };
1182
+ created_at_millis: number;
1183
+ html: string | null;
1184
+ text: string | null;
1185
+ updated_at_millis: number;
1186
+ tsx_source: string;
1187
+ theme_id: string | null;
1188
1188
  variables: Record<string, {} | null>;
1189
1189
  skip_deliverability_check: boolean;
1190
1190
  scheduled_at_millis: number;
@@ -1216,23 +1216,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1216
1216
  status: "sent";
1217
1217
  id: string;
1218
1218
  subject: string;
1219
- created_at_millis: number;
1220
- html: string | null;
1221
- text: string | null;
1222
- updated_at_millis: number;
1223
- tsx_source: string;
1224
- theme_id: string | null;
1225
1219
  to: {
1226
1220
  user_id: string;
1227
1221
  type: "user-primary-email";
1228
1222
  } | {
1223
+ emails: string[];
1229
1224
  user_id: string;
1230
1225
  type: "user-custom-emails";
1231
- emails: string[];
1232
1226
  } | {
1233
- type: "custom-emails";
1234
1227
  emails: string[];
1228
+ type: "custom-emails";
1235
1229
  };
1230
+ created_at_millis: number;
1231
+ html: string | null;
1232
+ text: string | null;
1233
+ updated_at_millis: number;
1234
+ tsx_source: string;
1235
+ theme_id: string | null;
1236
1236
  variables: Record<string, {} | null>;
1237
1237
  skip_deliverability_check: boolean;
1238
1238
  scheduled_at_millis: number;
@@ -1265,23 +1265,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1265
1265
  status: "opened";
1266
1266
  id: string;
1267
1267
  subject: string;
1268
- created_at_millis: number;
1269
- html: string | null;
1270
- text: string | null;
1271
- updated_at_millis: number;
1272
- tsx_source: string;
1273
- theme_id: string | null;
1274
1268
  to: {
1275
1269
  user_id: string;
1276
1270
  type: "user-primary-email";
1277
1271
  } | {
1272
+ emails: string[];
1278
1273
  user_id: string;
1279
1274
  type: "user-custom-emails";
1280
- emails: string[];
1281
1275
  } | {
1282
- type: "custom-emails";
1283
1276
  emails: string[];
1277
+ type: "custom-emails";
1284
1278
  };
1279
+ created_at_millis: number;
1280
+ html: string | null;
1281
+ text: string | null;
1282
+ updated_at_millis: number;
1283
+ tsx_source: string;
1284
+ theme_id: string | null;
1285
1285
  variables: Record<string, {} | null>;
1286
1286
  skip_deliverability_check: boolean;
1287
1287
  scheduled_at_millis: number;
@@ -1315,23 +1315,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1315
1315
  status: "clicked";
1316
1316
  id: string;
1317
1317
  subject: string;
1318
- created_at_millis: number;
1319
- html: string | null;
1320
- text: string | null;
1321
- updated_at_millis: number;
1322
- tsx_source: string;
1323
- theme_id: string | null;
1324
1318
  to: {
1325
1319
  user_id: string;
1326
1320
  type: "user-primary-email";
1327
1321
  } | {
1322
+ emails: string[];
1328
1323
  user_id: string;
1329
1324
  type: "user-custom-emails";
1330
- emails: string[];
1331
1325
  } | {
1332
- type: "custom-emails";
1333
1326
  emails: string[];
1327
+ type: "custom-emails";
1334
1328
  };
1329
+ created_at_millis: number;
1330
+ html: string | null;
1331
+ text: string | null;
1332
+ updated_at_millis: number;
1333
+ tsx_source: string;
1334
+ theme_id: string | null;
1335
1335
  variables: Record<string, {} | null>;
1336
1336
  skip_deliverability_check: boolean;
1337
1337
  scheduled_at_millis: number;
@@ -1365,23 +1365,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1365
1365
  status: "marked-as-spam";
1366
1366
  id: string;
1367
1367
  subject: string;
1368
- created_at_millis: number;
1369
- html: string | null;
1370
- text: string | null;
1371
- updated_at_millis: number;
1372
- tsx_source: string;
1373
- theme_id: string | null;
1374
1368
  to: {
1375
1369
  user_id: string;
1376
1370
  type: "user-primary-email";
1377
1371
  } | {
1372
+ emails: string[];
1378
1373
  user_id: string;
1379
1374
  type: "user-custom-emails";
1380
- emails: string[];
1381
1375
  } | {
1382
- type: "custom-emails";
1383
1376
  emails: string[];
1377
+ type: "custom-emails";
1384
1378
  };
1379
+ created_at_millis: number;
1380
+ html: string | null;
1381
+ text: string | null;
1382
+ updated_at_millis: number;
1383
+ tsx_source: string;
1384
+ theme_id: string | null;
1385
1385
  variables: Record<string, {} | null>;
1386
1386
  skip_deliverability_check: boolean;
1387
1387
  scheduled_at_millis: number;
@@ -1419,12 +1419,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1419
1419
  user_id: string;
1420
1420
  type: "user-primary-email";
1421
1421
  } | {
1422
+ emails: string[];
1422
1423
  user_id: string;
1423
1424
  type: "user-custom-emails";
1424
- emails: string[];
1425
1425
  } | {
1426
- type: "custom-emails";
1427
1426
  emails: string[];
1427
+ type: "custom-emails";
1428
1428
  } | undefined;
1429
1429
  variables: Record<string, {} | null> | undefined;
1430
1430
  skip_deliverability_check: boolean | undefined;