@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
@@ -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,21 +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
- updated_at_millis: number;
167
- tsx_source: string;
168
- theme_id: string | null;
169
165
  to: {
170
166
  user_id: string;
171
167
  type: "user-primary-email";
172
168
  } | {
169
+ emails: string[];
173
170
  user_id: string;
174
171
  type: "user-custom-emails";
175
- emails: string[];
176
172
  } | {
177
- type: "custom-emails";
178
173
  emails: string[];
174
+ type: "custom-emails";
179
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;
180
182
  variables: Record<string, {} | null>;
181
183
  skip_deliverability_check: boolean;
182
184
  scheduled_at_millis: number;
@@ -199,8 +201,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
199
201
  has_delivered: boolean;
200
202
  started_rendering_at_millis: number;
201
203
  rendered_at_millis: number;
202
- html: string | null;
203
- text: string | null;
204
204
  is_transactional: boolean;
205
205
  is_high_priority: boolean;
206
206
  notification_category_id: string | null;
@@ -208,21 +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
- updated_at_millis: number;
213
- tsx_source: string;
214
- theme_id: string | null;
215
211
  to: {
216
212
  user_id: string;
217
213
  type: "user-primary-email";
218
214
  } | {
215
+ emails: string[];
219
216
  user_id: string;
220
217
  type: "user-custom-emails";
221
- emails: string[];
222
218
  } | {
223
- type: "custom-emails";
224
219
  emails: string[];
220
+ type: "custom-emails";
225
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;
226
228
  variables: Record<string, {} | null>;
227
229
  skip_deliverability_check: boolean;
228
230
  scheduled_at_millis: number;
@@ -245,8 +247,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
245
247
  has_delivered: boolean;
246
248
  started_rendering_at_millis: number;
247
249
  rendered_at_millis: number;
248
- html: string | null;
249
- text: string | null;
250
250
  is_transactional: boolean;
251
251
  is_high_priority: boolean;
252
252
  notification_category_id: string | null;
@@ -254,21 +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
- updated_at_millis: number;
259
- tsx_source: string;
260
- theme_id: string | null;
261
257
  to: {
262
258
  user_id: string;
263
259
  type: "user-primary-email";
264
260
  } | {
261
+ emails: string[];
265
262
  user_id: string;
266
263
  type: "user-custom-emails";
267
- emails: string[];
268
264
  } | {
269
- type: "custom-emails";
270
265
  emails: string[];
266
+ type: "custom-emails";
271
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;
272
274
  variables: Record<string, {} | null>;
273
275
  skip_deliverability_check: boolean;
274
276
  scheduled_at_millis: number;
@@ -291,8 +293,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
291
293
  has_delivered: boolean;
292
294
  started_rendering_at_millis: number;
293
295
  rendered_at_millis: number;
294
- html: string | null;
295
- text: string | null;
296
296
  is_transactional: boolean;
297
297
  is_high_priority: boolean;
298
298
  notification_category_id: string | null;
@@ -301,21 +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
- updated_at_millis: number;
306
- tsx_source: string;
307
- theme_id: string | null;
308
304
  to: {
309
305
  user_id: string;
310
306
  type: "user-primary-email";
311
307
  } | {
308
+ emails: string[];
312
309
  user_id: string;
313
310
  type: "user-custom-emails";
314
- emails: string[];
315
311
  } | {
316
- type: "custom-emails";
317
312
  emails: string[];
313
+ type: "custom-emails";
318
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;
319
321
  variables: Record<string, {} | null>;
320
322
  skip_deliverability_check: boolean;
321
323
  scheduled_at_millis: number;
@@ -338,8 +340,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
338
340
  has_delivered: boolean;
339
341
  started_rendering_at_millis: number;
340
342
  rendered_at_millis: number;
341
- html: string | null;
342
- text: string | null;
343
343
  is_transactional: boolean;
344
344
  is_high_priority: boolean;
345
345
  notification_category_id: string | null;
@@ -348,31 +348,31 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
348
348
  server_error: string;
349
349
  } | {
350
350
  subject?: string | undefined;
351
- started_rendering_at_millis?: number | undefined;
352
- rendered_at_millis?: number | undefined;
353
351
  html?: string | null | undefined;
354
352
  text?: string | null | undefined;
353
+ started_rendering_at_millis?: number | undefined;
354
+ rendered_at_millis?: number | undefined;
355
355
  is_transactional?: boolean | undefined;
356
356
  is_high_priority?: boolean | undefined;
357
357
  notification_category_id?: string | null | undefined;
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,21 +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
- updated_at_millis: number;
405
- tsx_source: string;
406
- theme_id: string | null;
407
403
  to: {
408
404
  user_id: string;
409
405
  type: "user-primary-email";
410
406
  } | {
407
+ emails: string[];
411
408
  user_id: string;
412
409
  type: "user-custom-emails";
413
- emails: string[];
414
410
  } | {
415
- type: "custom-emails";
416
411
  emails: string[];
412
+ type: "custom-emails";
417
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;
418
420
  variables: Record<string, {} | null>;
419
421
  skip_deliverability_check: boolean;
420
422
  scheduled_at_millis: number;
@@ -437,8 +439,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
437
439
  has_delivered: boolean;
438
440
  started_rendering_at_millis: number;
439
441
  rendered_at_millis: number;
440
- html: string | null;
441
- text: string | null;
442
442
  is_transactional: boolean;
443
443
  is_high_priority: boolean;
444
444
  notification_category_id: string | null;
@@ -448,21 +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
- updated_at_millis: number;
453
- tsx_source: string;
454
- theme_id: string | null;
455
451
  to: {
456
452
  user_id: string;
457
453
  type: "user-primary-email";
458
454
  } | {
455
+ emails: string[];
459
456
  user_id: string;
460
457
  type: "user-custom-emails";
461
- emails: string[];
462
458
  } | {
463
- type: "custom-emails";
464
459
  emails: string[];
460
+ type: "custom-emails";
465
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;
466
468
  variables: Record<string, {} | null>;
467
469
  skip_deliverability_check: boolean;
468
470
  scheduled_at_millis: number;
@@ -485,8 +487,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
485
487
  has_delivered: boolean;
486
488
  started_rendering_at_millis: number;
487
489
  rendered_at_millis: number;
488
- html: string | null;
489
- text: string | null;
490
490
  is_transactional: boolean;
491
491
  is_high_priority: boolean;
492
492
  notification_category_id: string | null;
@@ -496,21 +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
- updated_at_millis: number;
501
- tsx_source: string;
502
- theme_id: string | null;
503
499
  to: {
504
500
  user_id: string;
505
501
  type: "user-primary-email";
506
502
  } | {
503
+ emails: string[];
507
504
  user_id: string;
508
505
  type: "user-custom-emails";
509
- emails: string[];
510
506
  } | {
511
- type: "custom-emails";
512
507
  emails: string[];
508
+ type: "custom-emails";
513
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;
514
516
  variables: Record<string, {} | null>;
515
517
  skip_deliverability_check: boolean;
516
518
  scheduled_at_millis: number;
@@ -533,8 +535,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
533
535
  has_delivered: boolean;
534
536
  started_rendering_at_millis: number;
535
537
  rendered_at_millis: number;
536
- html: string | null;
537
- text: string | null;
538
538
  is_transactional: boolean;
539
539
  is_high_priority: boolean;
540
540
  notification_category_id: string | null;
@@ -545,21 +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
- updated_at_millis: number;
550
- tsx_source: string;
551
- theme_id: string | null;
552
548
  to: {
553
549
  user_id: string;
554
550
  type: "user-primary-email";
555
551
  } | {
552
+ emails: string[];
556
553
  user_id: string;
557
554
  type: "user-custom-emails";
558
- emails: string[];
559
555
  } | {
560
- type: "custom-emails";
561
556
  emails: string[];
557
+ type: "custom-emails";
562
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;
563
565
  variables: Record<string, {} | null>;
564
566
  skip_deliverability_check: boolean;
565
567
  scheduled_at_millis: number;
@@ -582,8 +584,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
582
584
  has_delivered: boolean;
583
585
  started_rendering_at_millis: number;
584
586
  rendered_at_millis: number;
585
- html: string | null;
586
- text: string | null;
587
587
  is_transactional: boolean;
588
588
  is_high_priority: boolean;
589
589
  notification_category_id: string | null;
@@ -595,21 +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
- updated_at_millis: number;
600
- tsx_source: string;
601
- theme_id: string | null;
602
598
  to: {
603
599
  user_id: string;
604
600
  type: "user-primary-email";
605
601
  } | {
602
+ emails: string[];
606
603
  user_id: string;
607
604
  type: "user-custom-emails";
608
- emails: string[];
609
605
  } | {
610
- type: "custom-emails";
611
606
  emails: string[];
607
+ type: "custom-emails";
612
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;
613
615
  variables: Record<string, {} | null>;
614
616
  skip_deliverability_check: boolean;
615
617
  scheduled_at_millis: number;
@@ -632,8 +634,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
632
634
  has_delivered: boolean;
633
635
  started_rendering_at_millis: number;
634
636
  rendered_at_millis: number;
635
- html: string | null;
636
- text: string | null;
637
637
  is_transactional: boolean;
638
638
  is_high_priority: boolean;
639
639
  notification_category_id: string | null;
@@ -645,21 +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
- updated_at_millis: number;
650
- tsx_source: string;
651
- theme_id: string | null;
652
648
  to: {
653
649
  user_id: string;
654
650
  type: "user-primary-email";
655
651
  } | {
652
+ emails: string[];
656
653
  user_id: string;
657
654
  type: "user-custom-emails";
658
- emails: string[];
659
655
  } | {
660
- type: "custom-emails";
661
656
  emails: string[];
657
+ type: "custom-emails";
662
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;
663
665
  variables: Record<string, {} | null>;
664
666
  skip_deliverability_check: boolean;
665
667
  scheduled_at_millis: number;
@@ -682,8 +684,6 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
682
684
  has_delivered: boolean;
683
685
  started_rendering_at_millis: number;
684
686
  rendered_at_millis: number;
685
- html: string | null;
686
- text: string | null;
687
687
  is_transactional: boolean;
688
688
  is_high_priority: boolean;
689
689
  notification_category_id: string | null;
@@ -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,21 +882,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
882
882
  status: "scheduled";
883
883
  id: string;
884
884
  subject: string;
885
- created_at_millis: number;
886
- updated_at_millis: number;
887
- tsx_source: string;
888
- theme_id: string | null;
889
885
  to: {
890
886
  user_id: string;
891
887
  type: "user-primary-email";
892
888
  } | {
889
+ emails: string[];
893
890
  user_id: string;
894
891
  type: "user-custom-emails";
895
- emails: string[];
896
892
  } | {
897
- type: "custom-emails";
898
893
  emails: string[];
894
+ type: "custom-emails";
899
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;
900
902
  variables: Record<string, {} | null>;
901
903
  skip_deliverability_check: boolean;
902
904
  scheduled_at_millis: number;
@@ -919,8 +921,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
919
921
  has_delivered: boolean;
920
922
  started_rendering_at_millis: number;
921
923
  rendered_at_millis: number;
922
- html: string | null;
923
- text: string | null;
924
924
  is_transactional: boolean;
925
925
  is_high_priority: boolean;
926
926
  notification_category_id: string | null;
@@ -928,21 +928,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
928
928
  status: "queued";
929
929
  id: string;
930
930
  subject: string;
931
- created_at_millis: number;
932
- updated_at_millis: number;
933
- tsx_source: string;
934
- theme_id: string | null;
935
931
  to: {
936
932
  user_id: string;
937
933
  type: "user-primary-email";
938
934
  } | {
935
+ emails: string[];
939
936
  user_id: string;
940
937
  type: "user-custom-emails";
941
- emails: string[];
942
938
  } | {
943
- type: "custom-emails";
944
939
  emails: string[];
940
+ type: "custom-emails";
945
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;
946
948
  variables: Record<string, {} | null>;
947
949
  skip_deliverability_check: boolean;
948
950
  scheduled_at_millis: number;
@@ -965,8 +967,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
965
967
  has_delivered: boolean;
966
968
  started_rendering_at_millis: number;
967
969
  rendered_at_millis: number;
968
- html: string | null;
969
- text: string | null;
970
970
  is_transactional: boolean;
971
971
  is_high_priority: boolean;
972
972
  notification_category_id: string | null;
@@ -974,21 +974,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
974
974
  status: "sending";
975
975
  id: string;
976
976
  subject: string;
977
- created_at_millis: number;
978
- updated_at_millis: number;
979
- tsx_source: string;
980
- theme_id: string | null;
981
977
  to: {
982
978
  user_id: string;
983
979
  type: "user-primary-email";
984
980
  } | {
981
+ emails: string[];
985
982
  user_id: string;
986
983
  type: "user-custom-emails";
987
- emails: string[];
988
984
  } | {
989
- type: "custom-emails";
990
985
  emails: string[];
986
+ type: "custom-emails";
991
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;
992
994
  variables: Record<string, {} | null>;
993
995
  skip_deliverability_check: boolean;
994
996
  scheduled_at_millis: number;
@@ -1011,8 +1013,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1011
1013
  has_delivered: boolean;
1012
1014
  started_rendering_at_millis: number;
1013
1015
  rendered_at_millis: number;
1014
- html: string | null;
1015
- text: string | null;
1016
1016
  is_transactional: boolean;
1017
1017
  is_high_priority: boolean;
1018
1018
  notification_category_id: string | null;
@@ -1021,21 +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
- updated_at_millis: number;
1026
- tsx_source: string;
1027
- theme_id: string | null;
1028
1024
  to: {
1029
1025
  user_id: string;
1030
1026
  type: "user-primary-email";
1031
1027
  } | {
1028
+ emails: string[];
1032
1029
  user_id: string;
1033
1030
  type: "user-custom-emails";
1034
- emails: string[];
1035
1031
  } | {
1036
- type: "custom-emails";
1037
1032
  emails: string[];
1033
+ type: "custom-emails";
1038
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;
1039
1041
  variables: Record<string, {} | null>;
1040
1042
  skip_deliverability_check: boolean;
1041
1043
  scheduled_at_millis: number;
@@ -1058,8 +1060,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1058
1060
  has_delivered: boolean;
1059
1061
  started_rendering_at_millis: number;
1060
1062
  rendered_at_millis: number;
1061
- html: string | null;
1062
- text: string | null;
1063
1063
  is_transactional: boolean;
1064
1064
  is_high_priority: boolean;
1065
1065
  notification_category_id: string | null;
@@ -1068,31 +1068,31 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1068
1068
  server_error: string;
1069
1069
  } | {
1070
1070
  subject?: string | undefined;
1071
- started_rendering_at_millis?: number | undefined;
1072
- rendered_at_millis?: number | undefined;
1073
1071
  html?: string | null | undefined;
1074
1072
  text?: string | null | undefined;
1073
+ started_rendering_at_millis?: number | undefined;
1074
+ rendered_at_millis?: number | undefined;
1075
1075
  is_transactional?: boolean | undefined;
1076
1076
  is_high_priority?: boolean | undefined;
1077
1077
  notification_category_id?: string | null | undefined;
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,21 +1120,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1120
1120
  status: "bounced";
1121
1121
  id: string;
1122
1122
  subject: string;
1123
- created_at_millis: number;
1124
- updated_at_millis: number;
1125
- tsx_source: string;
1126
- theme_id: string | null;
1127
1123
  to: {
1128
1124
  user_id: string;
1129
1125
  type: "user-primary-email";
1130
1126
  } | {
1127
+ emails: string[];
1131
1128
  user_id: string;
1132
1129
  type: "user-custom-emails";
1133
- emails: string[];
1134
1130
  } | {
1135
- type: "custom-emails";
1136
1131
  emails: string[];
1132
+ type: "custom-emails";
1137
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;
1138
1140
  variables: Record<string, {} | null>;
1139
1141
  skip_deliverability_check: boolean;
1140
1142
  scheduled_at_millis: number;
@@ -1157,8 +1159,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1157
1159
  has_delivered: boolean;
1158
1160
  started_rendering_at_millis: number;
1159
1161
  rendered_at_millis: number;
1160
- html: string | null;
1161
- text: string | null;
1162
1162
  is_transactional: boolean;
1163
1163
  is_high_priority: boolean;
1164
1164
  notification_category_id: string | null;
@@ -1168,21 +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
- updated_at_millis: number;
1173
- tsx_source: string;
1174
- theme_id: string | null;
1175
1171
  to: {
1176
1172
  user_id: string;
1177
1173
  type: "user-primary-email";
1178
1174
  } | {
1175
+ emails: string[];
1179
1176
  user_id: string;
1180
1177
  type: "user-custom-emails";
1181
- emails: string[];
1182
1178
  } | {
1183
- type: "custom-emails";
1184
1179
  emails: string[];
1180
+ type: "custom-emails";
1185
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;
1186
1188
  variables: Record<string, {} | null>;
1187
1189
  skip_deliverability_check: boolean;
1188
1190
  scheduled_at_millis: number;
@@ -1205,8 +1207,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1205
1207
  has_delivered: boolean;
1206
1208
  started_rendering_at_millis: number;
1207
1209
  rendered_at_millis: number;
1208
- html: string | null;
1209
- text: string | null;
1210
1210
  is_transactional: boolean;
1211
1211
  is_high_priority: boolean;
1212
1212
  notification_category_id: string | null;
@@ -1216,21 +1216,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1216
1216
  status: "sent";
1217
1217
  id: string;
1218
1218
  subject: string;
1219
- created_at_millis: number;
1220
- updated_at_millis: number;
1221
- tsx_source: string;
1222
- theme_id: string | null;
1223
1219
  to: {
1224
1220
  user_id: string;
1225
1221
  type: "user-primary-email";
1226
1222
  } | {
1223
+ emails: string[];
1227
1224
  user_id: string;
1228
1225
  type: "user-custom-emails";
1229
- emails: string[];
1230
1226
  } | {
1231
- type: "custom-emails";
1232
1227
  emails: string[];
1228
+ type: "custom-emails";
1233
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;
1234
1236
  variables: Record<string, {} | null>;
1235
1237
  skip_deliverability_check: boolean;
1236
1238
  scheduled_at_millis: number;
@@ -1253,8 +1255,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1253
1255
  has_delivered: boolean;
1254
1256
  started_rendering_at_millis: number;
1255
1257
  rendered_at_millis: number;
1256
- html: string | null;
1257
- text: string | null;
1258
1258
  is_transactional: boolean;
1259
1259
  is_high_priority: boolean;
1260
1260
  notification_category_id: string | null;
@@ -1265,21 +1265,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1265
1265
  status: "opened";
1266
1266
  id: string;
1267
1267
  subject: string;
1268
- created_at_millis: number;
1269
- updated_at_millis: number;
1270
- tsx_source: string;
1271
- theme_id: string | null;
1272
1268
  to: {
1273
1269
  user_id: string;
1274
1270
  type: "user-primary-email";
1275
1271
  } | {
1272
+ emails: string[];
1276
1273
  user_id: string;
1277
1274
  type: "user-custom-emails";
1278
- emails: string[];
1279
1275
  } | {
1280
- type: "custom-emails";
1281
1276
  emails: string[];
1277
+ type: "custom-emails";
1282
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;
1283
1285
  variables: Record<string, {} | null>;
1284
1286
  skip_deliverability_check: boolean;
1285
1287
  scheduled_at_millis: number;
@@ -1302,8 +1304,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1302
1304
  has_delivered: boolean;
1303
1305
  started_rendering_at_millis: number;
1304
1306
  rendered_at_millis: number;
1305
- html: string | null;
1306
- text: string | null;
1307
1307
  is_transactional: boolean;
1308
1308
  is_high_priority: boolean;
1309
1309
  notification_category_id: string | null;
@@ -1315,21 +1315,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1315
1315
  status: "clicked";
1316
1316
  id: string;
1317
1317
  subject: string;
1318
- created_at_millis: number;
1319
- updated_at_millis: number;
1320
- tsx_source: string;
1321
- theme_id: string | null;
1322
1318
  to: {
1323
1319
  user_id: string;
1324
1320
  type: "user-primary-email";
1325
1321
  } | {
1322
+ emails: string[];
1326
1323
  user_id: string;
1327
1324
  type: "user-custom-emails";
1328
- emails: string[];
1329
1325
  } | {
1330
- type: "custom-emails";
1331
1326
  emails: string[];
1327
+ type: "custom-emails";
1332
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;
1333
1335
  variables: Record<string, {} | null>;
1334
1336
  skip_deliverability_check: boolean;
1335
1337
  scheduled_at_millis: number;
@@ -1352,8 +1354,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1352
1354
  has_delivered: boolean;
1353
1355
  started_rendering_at_millis: number;
1354
1356
  rendered_at_millis: number;
1355
- html: string | null;
1356
- text: string | null;
1357
1357
  is_transactional: boolean;
1358
1358
  is_high_priority: boolean;
1359
1359
  notification_category_id: string | null;
@@ -1365,21 +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
- updated_at_millis: number;
1370
- tsx_source: string;
1371
- theme_id: string | null;
1372
1368
  to: {
1373
1369
  user_id: string;
1374
1370
  type: "user-primary-email";
1375
1371
  } | {
1372
+ emails: string[];
1376
1373
  user_id: string;
1377
1374
  type: "user-custom-emails";
1378
- emails: string[];
1379
1375
  } | {
1380
- type: "custom-emails";
1381
1376
  emails: string[];
1377
+ type: "custom-emails";
1382
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;
1383
1385
  variables: Record<string, {} | null>;
1384
1386
  skip_deliverability_check: boolean;
1385
1387
  scheduled_at_millis: number;
@@ -1402,8 +1404,6 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1402
1404
  has_delivered: boolean;
1403
1405
  started_rendering_at_millis: number;
1404
1406
  rendered_at_millis: number;
1405
- html: string | null;
1406
- text: string | null;
1407
1407
  is_transactional: boolean;
1408
1408
  is_high_priority: boolean;
1409
1409
  notification_category_id: string | null;
@@ -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;