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