@hexclave/shared 1.0.9 → 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 (86) hide show
  1. package/dist/ai/unified-prompts/reminders.js +1 -0
  2. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  3. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  4. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +10 -2
  5. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  6. package/dist/config/schema.d.ts +175 -175
  7. package/dist/config-rendering.d.ts.map +1 -1
  8. package/dist/config-rendering.js +7 -2
  9. package/dist/config-rendering.js.map +1 -1
  10. package/dist/esm/ai/unified-prompts/reminders.js +1 -0
  11. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  12. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  13. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +10 -2
  14. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  15. package/dist/esm/config/schema.d.ts +175 -175
  16. package/dist/esm/config-rendering.d.ts.map +1 -1
  17. package/dist/esm/config-rendering.js +7 -2
  18. package/dist/esm/config-rendering.js.map +1 -1
  19. package/dist/esm/hexclave-config-file.d.ts.map +1 -1
  20. package/dist/esm/hexclave-config-file.js +2 -1
  21. package/dist/esm/hexclave-config-file.js.map +1 -1
  22. package/dist/esm/interface/admin-interface.d.ts +9 -1
  23. package/dist/esm/interface/admin-interface.d.ts.map +1 -1
  24. package/dist/esm/interface/admin-interface.js +32 -2
  25. package/dist/esm/interface/admin-interface.js.map +1 -1
  26. package/dist/esm/interface/admin-metrics.d.ts +123 -7
  27. package/dist/esm/interface/admin-metrics.d.ts.map +1 -1
  28. package/dist/esm/interface/admin-metrics.js +21 -2
  29. package/dist/esm/interface/admin-metrics.js.map +1 -1
  30. package/dist/esm/interface/conversations.d.ts +27 -27
  31. package/dist/esm/interface/crud/current-user.d.ts +6 -6
  32. package/dist/esm/interface/crud/email-outbox.d.ts +228 -228
  33. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  34. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  35. package/dist/esm/interface/crud/projects.d.ts +99 -99
  36. package/dist/esm/interface/crud/team-member-profiles.d.ts +16 -16
  37. package/dist/esm/interface/crud/users.d.ts +2 -2
  38. package/dist/esm/schema-fields.d.ts.map +1 -1
  39. package/dist/esm/schema-fields.js +1 -1
  40. package/dist/esm/schema-fields.js.map +1 -1
  41. package/dist/esm/sessions.d.ts +10 -0
  42. package/dist/esm/sessions.d.ts.map +1 -1
  43. package/dist/esm/sessions.js +20 -2
  44. package/dist/esm/sessions.js.map +1 -1
  45. package/dist/esm/sessions.test.d.ts +1 -0
  46. package/dist/esm/sessions.test.js +178 -0
  47. package/dist/esm/sessions.test.js.map +1 -0
  48. package/dist/hexclave-config-file.d.ts.map +1 -1
  49. package/dist/hexclave-config-file.js +2 -1
  50. package/dist/hexclave-config-file.js.map +1 -1
  51. package/dist/interface/admin-interface.d.ts +9 -1
  52. package/dist/interface/admin-interface.d.ts.map +1 -1
  53. package/dist/interface/admin-interface.js +32 -2
  54. package/dist/interface/admin-interface.js.map +1 -1
  55. package/dist/interface/admin-metrics.d.ts +123 -7
  56. package/dist/interface/admin-metrics.d.ts.map +1 -1
  57. package/dist/interface/admin-metrics.js +22 -1
  58. package/dist/interface/admin-metrics.js.map +1 -1
  59. package/dist/interface/conversations.d.ts +27 -27
  60. package/dist/interface/crud/current-user.d.ts +6 -6
  61. package/dist/interface/crud/email-outbox.d.ts +228 -228
  62. package/dist/interface/crud/invoices.d.ts +2 -2
  63. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  64. package/dist/interface/crud/projects.d.ts +99 -99
  65. package/dist/interface/crud/team-member-profiles.d.ts +16 -16
  66. package/dist/interface/crud/users.d.ts +2 -2
  67. package/dist/schema-fields.d.ts.map +1 -1
  68. package/dist/schema-fields.js +1 -1
  69. package/dist/schema-fields.js.map +1 -1
  70. package/dist/sessions.d.ts +10 -0
  71. package/dist/sessions.d.ts.map +1 -1
  72. package/dist/sessions.js +20 -2
  73. package/dist/sessions.js.map +1 -1
  74. package/dist/sessions.test.d.ts +1 -0
  75. package/dist/sessions.test.js +178 -0
  76. package/dist/sessions.test.js.map +1 -0
  77. package/package.json +1 -1
  78. package/src/ai/unified-prompts/reminders.ts +1 -0
  79. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +10 -2
  80. package/src/config-rendering.ts +11 -2
  81. package/src/hexclave-config-file.ts +7 -1
  82. package/src/interface/admin-interface.ts +49 -2
  83. package/src/interface/admin-metrics.ts +33 -2
  84. package/src/schema-fields.ts +4 -1
  85. package/src/sessions.test.ts +147 -0
  86. 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,21 +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
- updated_at_millis: number;
168
- tsx_source: string;
169
- theme_id: string | null;
170
166
  to: {
171
167
  user_id: string;
172
168
  type: "user-primary-email";
173
169
  } | {
170
+ emails: string[];
174
171
  user_id: string;
175
172
  type: "user-custom-emails";
176
- emails: string[];
177
173
  } | {
178
- type: "custom-emails";
179
174
  emails: string[];
175
+ type: "custom-emails";
180
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;
181
183
  variables: Record<string, {} | null>;
182
184
  skip_deliverability_check: boolean;
183
185
  scheduled_at_millis: number;
@@ -200,8 +202,6 @@ 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;
@@ -209,21 +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
- updated_at_millis: number;
214
- tsx_source: string;
215
- theme_id: string | null;
216
212
  to: {
217
213
  user_id: string;
218
214
  type: "user-primary-email";
219
215
  } | {
216
+ emails: string[];
220
217
  user_id: string;
221
218
  type: "user-custom-emails";
222
- emails: string[];
223
219
  } | {
224
- type: "custom-emails";
225
220
  emails: string[];
221
+ type: "custom-emails";
226
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;
227
229
  variables: Record<string, {} | null>;
228
230
  skip_deliverability_check: boolean;
229
231
  scheduled_at_millis: number;
@@ -246,8 +248,6 @@ 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;
@@ -255,21 +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
- updated_at_millis: number;
260
- tsx_source: string;
261
- theme_id: string | null;
262
258
  to: {
263
259
  user_id: string;
264
260
  type: "user-primary-email";
265
261
  } | {
262
+ emails: string[];
266
263
  user_id: string;
267
264
  type: "user-custom-emails";
268
- emails: string[];
269
265
  } | {
270
- type: "custom-emails";
271
266
  emails: string[];
267
+ type: "custom-emails";
272
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;
273
275
  variables: Record<string, {} | null>;
274
276
  skip_deliverability_check: boolean;
275
277
  scheduled_at_millis: number;
@@ -292,8 +294,6 @@ 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;
@@ -302,21 +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
- updated_at_millis: number;
307
- tsx_source: string;
308
- theme_id: string | null;
309
305
  to: {
310
306
  user_id: string;
311
307
  type: "user-primary-email";
312
308
  } | {
309
+ emails: string[];
313
310
  user_id: string;
314
311
  type: "user-custom-emails";
315
- emails: string[];
316
312
  } | {
317
- type: "custom-emails";
318
313
  emails: string[];
314
+ type: "custom-emails";
319
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;
320
322
  variables: Record<string, {} | null>;
321
323
  skip_deliverability_check: boolean;
322
324
  scheduled_at_millis: number;
@@ -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;
@@ -349,31 +349,31 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
349
349
  server_error: string;
350
350
  } | {
351
351
  subject?: string | undefined;
352
- started_rendering_at_millis?: number | undefined;
353
- rendered_at_millis?: number | undefined;
354
352
  html?: string | null | undefined;
355
353
  text?: string | null | undefined;
354
+ started_rendering_at_millis?: number | undefined;
355
+ rendered_at_millis?: number | 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
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,21 +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
- updated_at_millis: number;
406
- tsx_source: string;
407
- theme_id: string | null;
408
404
  to: {
409
405
  user_id: string;
410
406
  type: "user-primary-email";
411
407
  } | {
408
+ emails: string[];
412
409
  user_id: string;
413
410
  type: "user-custom-emails";
414
- emails: string[];
415
411
  } | {
416
- type: "custom-emails";
417
412
  emails: string[];
413
+ type: "custom-emails";
418
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;
419
421
  variables: Record<string, {} | null>;
420
422
  skip_deliverability_check: boolean;
421
423
  scheduled_at_millis: number;
@@ -438,8 +440,6 @@ 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;
@@ -449,21 +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
- updated_at_millis: number;
454
- tsx_source: string;
455
- theme_id: string | null;
456
452
  to: {
457
453
  user_id: string;
458
454
  type: "user-primary-email";
459
455
  } | {
456
+ emails: string[];
460
457
  user_id: string;
461
458
  type: "user-custom-emails";
462
- emails: string[];
463
459
  } | {
464
- type: "custom-emails";
465
460
  emails: string[];
461
+ type: "custom-emails";
466
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;
467
469
  variables: Record<string, {} | null>;
468
470
  skip_deliverability_check: boolean;
469
471
  scheduled_at_millis: number;
@@ -486,8 +488,6 @@ 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;
@@ -497,21 +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
- updated_at_millis: number;
502
- tsx_source: string;
503
- theme_id: string | null;
504
500
  to: {
505
501
  user_id: string;
506
502
  type: "user-primary-email";
507
503
  } | {
504
+ emails: string[];
508
505
  user_id: string;
509
506
  type: "user-custom-emails";
510
- emails: string[];
511
507
  } | {
512
- type: "custom-emails";
513
508
  emails: string[];
509
+ type: "custom-emails";
514
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;
515
517
  variables: Record<string, {} | null>;
516
518
  skip_deliverability_check: boolean;
517
519
  scheduled_at_millis: number;
@@ -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;
@@ -546,21 +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
- updated_at_millis: number;
551
- tsx_source: string;
552
- theme_id: string | null;
553
549
  to: {
554
550
  user_id: string;
555
551
  type: "user-primary-email";
556
552
  } | {
553
+ emails: string[];
557
554
  user_id: string;
558
555
  type: "user-custom-emails";
559
- emails: string[];
560
556
  } | {
561
- type: "custom-emails";
562
557
  emails: string[];
558
+ type: "custom-emails";
563
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;
564
566
  variables: Record<string, {} | null>;
565
567
  skip_deliverability_check: boolean;
566
568
  scheduled_at_millis: number;
@@ -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;
@@ -596,21 +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
- updated_at_millis: number;
601
- tsx_source: string;
602
- theme_id: string | null;
603
599
  to: {
604
600
  user_id: string;
605
601
  type: "user-primary-email";
606
602
  } | {
603
+ emails: string[];
607
604
  user_id: string;
608
605
  type: "user-custom-emails";
609
- emails: string[];
610
606
  } | {
611
- type: "custom-emails";
612
607
  emails: string[];
608
+ type: "custom-emails";
613
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;
614
616
  variables: Record<string, {} | null>;
615
617
  skip_deliverability_check: boolean;
616
618
  scheduled_at_millis: number;
@@ -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;
@@ -646,21 +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
- updated_at_millis: number;
651
- tsx_source: string;
652
- theme_id: string | null;
653
649
  to: {
654
650
  user_id: string;
655
651
  type: "user-primary-email";
656
652
  } | {
653
+ emails: string[];
657
654
  user_id: string;
658
655
  type: "user-custom-emails";
659
- emails: string[];
660
656
  } | {
661
- type: "custom-emails";
662
657
  emails: string[];
658
+ type: "custom-emails";
663
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;
664
666
  variables: Record<string, {} | null>;
665
667
  skip_deliverability_check: boolean;
666
668
  scheduled_at_millis: number;
@@ -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;
@@ -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,21 +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
- updated_at_millis: number;
888
- tsx_source: string;
889
- theme_id: string | null;
890
886
  to: {
891
887
  user_id: string;
892
888
  type: "user-primary-email";
893
889
  } | {
890
+ emails: string[];
894
891
  user_id: string;
895
892
  type: "user-custom-emails";
896
- emails: string[];
897
893
  } | {
898
- type: "custom-emails";
899
894
  emails: string[];
895
+ type: "custom-emails";
900
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;
901
903
  variables: Record<string, {} | null>;
902
904
  skip_deliverability_check: boolean;
903
905
  scheduled_at_millis: number;
@@ -920,8 +922,6 @@ 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;
@@ -929,21 +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
- updated_at_millis: number;
934
- tsx_source: string;
935
- theme_id: string | null;
936
932
  to: {
937
933
  user_id: string;
938
934
  type: "user-primary-email";
939
935
  } | {
936
+ emails: string[];
940
937
  user_id: string;
941
938
  type: "user-custom-emails";
942
- emails: string[];
943
939
  } | {
944
- type: "custom-emails";
945
940
  emails: string[];
941
+ type: "custom-emails";
946
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;
947
949
  variables: Record<string, {} | null>;
948
950
  skip_deliverability_check: boolean;
949
951
  scheduled_at_millis: number;
@@ -966,8 +968,6 @@ 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;
@@ -975,21 +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
- updated_at_millis: number;
980
- tsx_source: string;
981
- theme_id: string | null;
982
978
  to: {
983
979
  user_id: string;
984
980
  type: "user-primary-email";
985
981
  } | {
982
+ emails: string[];
986
983
  user_id: string;
987
984
  type: "user-custom-emails";
988
- emails: string[];
989
985
  } | {
990
- type: "custom-emails";
991
986
  emails: string[];
987
+ type: "custom-emails";
992
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;
993
995
  variables: Record<string, {} | null>;
994
996
  skip_deliverability_check: boolean;
995
997
  scheduled_at_millis: number;
@@ -1012,8 +1014,6 @@ 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;
@@ -1022,21 +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
- updated_at_millis: number;
1027
- tsx_source: string;
1028
- theme_id: string | null;
1029
1025
  to: {
1030
1026
  user_id: string;
1031
1027
  type: "user-primary-email";
1032
1028
  } | {
1029
+ emails: string[];
1033
1030
  user_id: string;
1034
1031
  type: "user-custom-emails";
1035
- emails: string[];
1036
1032
  } | {
1037
- type: "custom-emails";
1038
1033
  emails: string[];
1034
+ type: "custom-emails";
1039
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;
1040
1042
  variables: Record<string, {} | null>;
1041
1043
  skip_deliverability_check: boolean;
1042
1044
  scheduled_at_millis: number;
@@ -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;
@@ -1069,31 +1069,31 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1069
1069
  server_error: string;
1070
1070
  } | {
1071
1071
  subject?: string | undefined;
1072
- started_rendering_at_millis?: number | undefined;
1073
- rendered_at_millis?: number | undefined;
1074
1072
  html?: string | null | undefined;
1075
1073
  text?: string | null | undefined;
1074
+ started_rendering_at_millis?: number | undefined;
1075
+ rendered_at_millis?: number | 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
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,21 +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
- updated_at_millis: number;
1126
- tsx_source: string;
1127
- theme_id: string | null;
1128
1124
  to: {
1129
1125
  user_id: string;
1130
1126
  type: "user-primary-email";
1131
1127
  } | {
1128
+ emails: string[];
1132
1129
  user_id: string;
1133
1130
  type: "user-custom-emails";
1134
- emails: string[];
1135
1131
  } | {
1136
- type: "custom-emails";
1137
1132
  emails: string[];
1133
+ type: "custom-emails";
1138
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;
1139
1141
  variables: Record<string, {} | null>;
1140
1142
  skip_deliverability_check: boolean;
1141
1143
  scheduled_at_millis: number;
@@ -1158,8 +1160,6 @@ 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;
@@ -1169,21 +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
- updated_at_millis: number;
1174
- tsx_source: string;
1175
- theme_id: string | null;
1176
1172
  to: {
1177
1173
  user_id: string;
1178
1174
  type: "user-primary-email";
1179
1175
  } | {
1176
+ emails: string[];
1180
1177
  user_id: string;
1181
1178
  type: "user-custom-emails";
1182
- emails: string[];
1183
1179
  } | {
1184
- type: "custom-emails";
1185
1180
  emails: string[];
1181
+ type: "custom-emails";
1186
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;
1187
1189
  variables: Record<string, {} | null>;
1188
1190
  skip_deliverability_check: boolean;
1189
1191
  scheduled_at_millis: number;
@@ -1206,8 +1208,6 @@ 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;
@@ -1217,21 +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
- updated_at_millis: number;
1222
- tsx_source: string;
1223
- theme_id: string | null;
1224
1220
  to: {
1225
1221
  user_id: string;
1226
1222
  type: "user-primary-email";
1227
1223
  } | {
1224
+ emails: string[];
1228
1225
  user_id: string;
1229
1226
  type: "user-custom-emails";
1230
- emails: string[];
1231
1227
  } | {
1232
- type: "custom-emails";
1233
1228
  emails: string[];
1229
+ type: "custom-emails";
1234
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;
1235
1237
  variables: Record<string, {} | null>;
1236
1238
  skip_deliverability_check: boolean;
1237
1239
  scheduled_at_millis: number;
@@ -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;
@@ -1266,21 +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
- updated_at_millis: number;
1271
- tsx_source: string;
1272
- theme_id: string | null;
1273
1269
  to: {
1274
1270
  user_id: string;
1275
1271
  type: "user-primary-email";
1276
1272
  } | {
1273
+ emails: string[];
1277
1274
  user_id: string;
1278
1275
  type: "user-custom-emails";
1279
- emails: string[];
1280
1276
  } | {
1281
- type: "custom-emails";
1282
1277
  emails: string[];
1278
+ type: "custom-emails";
1283
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;
1284
1286
  variables: Record<string, {} | null>;
1285
1287
  skip_deliverability_check: boolean;
1286
1288
  scheduled_at_millis: number;
@@ -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;
@@ -1316,21 +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
- updated_at_millis: number;
1321
- tsx_source: string;
1322
- theme_id: string | null;
1323
1319
  to: {
1324
1320
  user_id: string;
1325
1321
  type: "user-primary-email";
1326
1322
  } | {
1323
+ emails: string[];
1327
1324
  user_id: string;
1328
1325
  type: "user-custom-emails";
1329
- emails: string[];
1330
1326
  } | {
1331
- type: "custom-emails";
1332
1327
  emails: string[];
1328
+ type: "custom-emails";
1333
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;
1334
1336
  variables: Record<string, {} | null>;
1335
1337
  skip_deliverability_check: boolean;
1336
1338
  scheduled_at_millis: number;
@@ -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;
@@ -1366,21 +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
- updated_at_millis: number;
1371
- tsx_source: string;
1372
- theme_id: string | null;
1373
1369
  to: {
1374
1370
  user_id: string;
1375
1371
  type: "user-primary-email";
1376
1372
  } | {
1373
+ emails: string[];
1377
1374
  user_id: string;
1378
1375
  type: "user-custom-emails";
1379
- emails: string[];
1380
1376
  } | {
1381
- type: "custom-emails";
1382
1377
  emails: string[];
1378
+ type: "custom-emails";
1383
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;
1384
1386
  variables: Record<string, {} | null>;
1385
1387
  skip_deliverability_check: boolean;
1386
1388
  scheduled_at_millis: number;
@@ -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;
@@ -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;