@hexclave/shared 1.0.11 → 1.0.13

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 (30) hide show
  1. package/dist/ai/unified-prompts/reminders.js +1 -1
  2. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  3. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -2
  4. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  5. package/dist/config/schema.d.ts +165 -165
  6. package/dist/esm/ai/unified-prompts/reminders.js +1 -1
  7. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  8. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -2
  9. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  10. package/dist/esm/config/schema.d.ts +165 -165
  11. package/dist/esm/interface/admin-metrics.d.ts +2 -2
  12. package/dist/esm/interface/conversations.d.ts +8 -8
  13. package/dist/esm/interface/crud/current-user.d.ts +7 -7
  14. package/dist/esm/interface/crud/email-outbox.d.ts +246 -246
  15. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  16. package/dist/esm/interface/crud/projects.d.ts +99 -99
  17. package/dist/esm/interface/crud/team-member-profiles.d.ts +14 -14
  18. package/dist/esm/interface/crud/users.d.ts +6 -6
  19. package/dist/esm/interface/webhooks.d.ts +2 -2
  20. package/dist/interface/admin-metrics.d.ts +2 -2
  21. package/dist/interface/conversations.d.ts +8 -8
  22. package/dist/interface/crud/current-user.d.ts +7 -7
  23. package/dist/interface/crud/email-outbox.d.ts +246 -246
  24. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  25. package/dist/interface/crud/projects.d.ts +99 -99
  26. package/dist/interface/crud/team-member-profiles.d.ts +14 -14
  27. package/dist/interface/crud/users.d.ts +6 -6
  28. package/dist/interface/webhooks.d.ts +2 -2
  29. package/package.json +1 -1
  30. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +1 -2
@@ -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;
9
13
  to: {
10
14
  user_id: string;
11
15
  type: "user-primary-email";
12
16
  } | {
13
- emails: string[];
14
17
  user_id: string;
15
18
  type: "user-custom-emails";
16
- } | {
17
19
  emails: string[];
20
+ } | {
18
21
  type: "custom-emails";
22
+ emails: string[];
19
23
  };
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;
47
51
  to: {
48
52
  user_id: string;
49
53
  type: "user-primary-email";
50
54
  } | {
51
- emails: string[];
52
55
  user_id: string;
53
56
  type: "user-custom-emails";
54
- } | {
55
57
  emails: string[];
58
+ } | {
56
59
  type: "custom-emails";
60
+ emails: string[];
57
61
  };
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;
85
89
  to: {
86
90
  user_id: string;
87
91
  type: "user-primary-email";
88
92
  } | {
89
- emails: string[];
90
93
  user_id: string;
91
94
  type: "user-custom-emails";
92
- } | {
93
95
  emails: string[];
96
+ } | {
94
97
  type: "custom-emails";
98
+ emails: string[];
95
99
  };
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;
124
128
  to: {
125
129
  user_id: string;
126
130
  type: "user-primary-email";
127
131
  } | {
128
- emails: string[];
129
132
  user_id: string;
130
133
  type: "user-custom-emails";
131
- } | {
132
134
  emails: string[];
135
+ } | {
133
136
  type: "custom-emails";
137
+ emails: string[];
134
138
  };
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;
@@ -162,24 +162,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
162
162
  } | {
163
163
  status: "scheduled";
164
164
  id: string;
165
- subject: string;
165
+ html: string | null;
166
+ text: string | null;
167
+ created_at_millis: number;
168
+ updated_at_millis: number;
169
+ tsx_source: string;
170
+ theme_id: string | null;
166
171
  to: {
167
172
  user_id: string;
168
173
  type: "user-primary-email";
169
174
  } | {
170
- emails: string[];
171
175
  user_id: string;
172
176
  type: "user-custom-emails";
173
- } | {
174
177
  emails: string[];
178
+ } | {
175
179
  type: "custom-emails";
180
+ emails: string[];
176
181
  };
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
182
  variables: Record<string, {} | null>;
184
183
  skip_deliverability_check: boolean;
185
184
  scheduled_at_millis: number;
@@ -202,30 +201,30 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
202
201
  has_delivered: boolean;
203
202
  started_rendering_at_millis: number;
204
203
  rendered_at_millis: number;
204
+ subject: string;
205
205
  is_transactional: boolean;
206
206
  is_high_priority: boolean;
207
207
  notification_category_id: string | null;
208
208
  } | {
209
209
  status: "queued";
210
210
  id: string;
211
- subject: string;
211
+ html: string | null;
212
+ text: string | null;
213
+ created_at_millis: number;
214
+ updated_at_millis: number;
215
+ tsx_source: string;
216
+ theme_id: string | null;
212
217
  to: {
213
218
  user_id: string;
214
219
  type: "user-primary-email";
215
220
  } | {
216
- emails: string[];
217
221
  user_id: string;
218
222
  type: "user-custom-emails";
219
- } | {
220
223
  emails: string[];
224
+ } | {
221
225
  type: "custom-emails";
226
+ emails: string[];
222
227
  };
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
228
  variables: Record<string, {} | null>;
230
229
  skip_deliverability_check: boolean;
231
230
  scheduled_at_millis: number;
@@ -248,30 +247,30 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
248
247
  has_delivered: boolean;
249
248
  started_rendering_at_millis: number;
250
249
  rendered_at_millis: number;
250
+ subject: string;
251
251
  is_transactional: boolean;
252
252
  is_high_priority: boolean;
253
253
  notification_category_id: string | null;
254
254
  } | {
255
255
  status: "sending";
256
256
  id: string;
257
- subject: string;
257
+ html: string | null;
258
+ text: string | null;
259
+ created_at_millis: number;
260
+ updated_at_millis: number;
261
+ tsx_source: string;
262
+ theme_id: string | null;
258
263
  to: {
259
264
  user_id: string;
260
265
  type: "user-primary-email";
261
266
  } | {
262
- emails: string[];
263
267
  user_id: string;
264
268
  type: "user-custom-emails";
265
- } | {
266
269
  emails: string[];
270
+ } | {
267
271
  type: "custom-emails";
272
+ emails: string[];
268
273
  };
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
274
  variables: Record<string, {} | null>;
276
275
  skip_deliverability_check: boolean;
277
276
  scheduled_at_millis: number;
@@ -294,6 +293,7 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
294
293
  has_delivered: boolean;
295
294
  started_rendering_at_millis: number;
296
295
  rendered_at_millis: number;
296
+ subject: string;
297
297
  is_transactional: boolean;
298
298
  is_high_priority: boolean;
299
299
  notification_category_id: string | null;
@@ -301,24 +301,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
301
301
  } | {
302
302
  status: "server-error";
303
303
  id: string;
304
- subject: string;
304
+ html: string | null;
305
+ text: string | null;
306
+ created_at_millis: number;
307
+ updated_at_millis: number;
308
+ tsx_source: string;
309
+ theme_id: string | null;
305
310
  to: {
306
311
  user_id: string;
307
312
  type: "user-primary-email";
308
313
  } | {
309
- emails: string[];
310
314
  user_id: string;
311
315
  type: "user-custom-emails";
312
- } | {
313
316
  emails: string[];
317
+ } | {
314
318
  type: "custom-emails";
319
+ emails: string[];
315
320
  };
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
321
  variables: Record<string, {} | null>;
323
322
  skip_deliverability_check: boolean;
324
323
  scheduled_at_millis: number;
@@ -341,6 +340,7 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
341
340
  has_delivered: boolean;
342
341
  started_rendering_at_millis: number;
343
342
  rendered_at_millis: number;
343
+ subject: string;
344
344
  is_transactional: boolean;
345
345
  is_high_priority: boolean;
346
346
  notification_category_id: string | null;
@@ -348,32 +348,32 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
348
348
  error_at_millis: number;
349
349
  server_error: string;
350
350
  } | {
351
- subject?: string | undefined;
352
351
  html?: string | null | undefined;
353
352
  text?: string | null | undefined;
354
353
  started_rendering_at_millis?: number | undefined;
355
354
  rendered_at_millis?: number | undefined;
355
+ subject?: string | 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;
362
366
  to: {
363
367
  user_id: string;
364
368
  type: "user-primary-email";
365
369
  } | {
366
- emails: string[];
367
370
  user_id: string;
368
371
  type: "user-custom-emails";
369
- } | {
370
372
  emails: string[];
373
+ } | {
371
374
  type: "custom-emails";
375
+ emails: string[];
372
376
  };
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;
@@ -400,24 +400,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
400
400
  } | {
401
401
  status: "bounced";
402
402
  id: string;
403
- subject: string;
403
+ html: string | null;
404
+ text: string | null;
405
+ created_at_millis: number;
406
+ updated_at_millis: number;
407
+ tsx_source: string;
408
+ theme_id: string | null;
404
409
  to: {
405
410
  user_id: string;
406
411
  type: "user-primary-email";
407
412
  } | {
408
- emails: string[];
409
413
  user_id: string;
410
414
  type: "user-custom-emails";
411
- } | {
412
415
  emails: string[];
416
+ } | {
413
417
  type: "custom-emails";
418
+ emails: string[];
414
419
  };
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
420
  variables: Record<string, {} | null>;
422
421
  skip_deliverability_check: boolean;
423
422
  scheduled_at_millis: number;
@@ -440,6 +439,7 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
440
439
  has_delivered: boolean;
441
440
  started_rendering_at_millis: number;
442
441
  rendered_at_millis: number;
442
+ subject: string;
443
443
  is_transactional: boolean;
444
444
  is_high_priority: boolean;
445
445
  notification_category_id: string | null;
@@ -448,24 +448,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
448
448
  } | {
449
449
  status: "delivery-delayed";
450
450
  id: string;
451
- subject: string;
451
+ html: string | null;
452
+ text: string | null;
453
+ created_at_millis: number;
454
+ updated_at_millis: number;
455
+ tsx_source: string;
456
+ theme_id: string | null;
452
457
  to: {
453
458
  user_id: string;
454
459
  type: "user-primary-email";
455
460
  } | {
456
- emails: string[];
457
461
  user_id: string;
458
462
  type: "user-custom-emails";
459
- } | {
460
463
  emails: string[];
464
+ } | {
461
465
  type: "custom-emails";
466
+ emails: string[];
462
467
  };
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
468
  variables: Record<string, {} | null>;
470
469
  skip_deliverability_check: boolean;
471
470
  scheduled_at_millis: number;
@@ -488,6 +487,7 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
488
487
  has_delivered: boolean;
489
488
  started_rendering_at_millis: number;
490
489
  rendered_at_millis: number;
490
+ subject: string;
491
491
  is_transactional: boolean;
492
492
  is_high_priority: boolean;
493
493
  notification_category_id: string | null;
@@ -496,24 +496,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
496
496
  } | {
497
497
  status: "sent";
498
498
  id: string;
499
- subject: string;
499
+ html: string | null;
500
+ text: string | null;
501
+ created_at_millis: number;
502
+ updated_at_millis: number;
503
+ tsx_source: string;
504
+ theme_id: string | null;
500
505
  to: {
501
506
  user_id: string;
502
507
  type: "user-primary-email";
503
508
  } | {
504
- emails: string[];
505
509
  user_id: string;
506
510
  type: "user-custom-emails";
507
- } | {
508
511
  emails: string[];
512
+ } | {
509
513
  type: "custom-emails";
514
+ emails: string[];
510
515
  };
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
516
  variables: Record<string, {} | null>;
518
517
  skip_deliverability_check: boolean;
519
518
  scheduled_at_millis: number;
@@ -536,6 +535,7 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
536
535
  has_delivered: boolean;
537
536
  started_rendering_at_millis: number;
538
537
  rendered_at_millis: number;
538
+ subject: string;
539
539
  is_transactional: boolean;
540
540
  is_high_priority: boolean;
541
541
  notification_category_id: string | null;
@@ -545,24 +545,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
545
545
  } | {
546
546
  status: "opened";
547
547
  id: string;
548
- subject: string;
548
+ html: string | null;
549
+ text: string | null;
550
+ created_at_millis: number;
551
+ updated_at_millis: number;
552
+ tsx_source: string;
553
+ theme_id: string | null;
549
554
  to: {
550
555
  user_id: string;
551
556
  type: "user-primary-email";
552
557
  } | {
553
- emails: string[];
554
558
  user_id: string;
555
559
  type: "user-custom-emails";
556
- } | {
557
560
  emails: string[];
561
+ } | {
558
562
  type: "custom-emails";
563
+ emails: string[];
559
564
  };
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
565
  variables: Record<string, {} | null>;
567
566
  skip_deliverability_check: boolean;
568
567
  scheduled_at_millis: number;
@@ -585,6 +584,7 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
585
584
  has_delivered: boolean;
586
585
  started_rendering_at_millis: number;
587
586
  rendered_at_millis: number;
587
+ subject: string;
588
588
  is_transactional: boolean;
589
589
  is_high_priority: boolean;
590
590
  notification_category_id: string | null;
@@ -595,24 +595,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
595
595
  } | {
596
596
  status: "clicked";
597
597
  id: string;
598
- subject: string;
598
+ html: string | null;
599
+ text: string | null;
600
+ created_at_millis: number;
601
+ updated_at_millis: number;
602
+ tsx_source: string;
603
+ theme_id: string | null;
599
604
  to: {
600
605
  user_id: string;
601
606
  type: "user-primary-email";
602
607
  } | {
603
- emails: string[];
604
608
  user_id: string;
605
609
  type: "user-custom-emails";
606
- } | {
607
610
  emails: string[];
611
+ } | {
608
612
  type: "custom-emails";
613
+ emails: string[];
609
614
  };
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
615
  variables: Record<string, {} | null>;
617
616
  skip_deliverability_check: boolean;
618
617
  scheduled_at_millis: number;
@@ -635,6 +634,7 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
635
634
  has_delivered: boolean;
636
635
  started_rendering_at_millis: number;
637
636
  rendered_at_millis: number;
637
+ subject: string;
638
638
  is_transactional: boolean;
639
639
  is_high_priority: boolean;
640
640
  notification_category_id: string | null;
@@ -645,24 +645,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
645
645
  } | {
646
646
  status: "marked-as-spam";
647
647
  id: string;
648
- subject: string;
648
+ html: string | null;
649
+ text: string | null;
650
+ created_at_millis: number;
651
+ updated_at_millis: number;
652
+ tsx_source: string;
653
+ theme_id: string | null;
649
654
  to: {
650
655
  user_id: string;
651
656
  type: "user-primary-email";
652
657
  } | {
653
- emails: string[];
654
658
  user_id: string;
655
659
  type: "user-custom-emails";
656
- } | {
657
660
  emails: string[];
661
+ } | {
658
662
  type: "custom-emails";
663
+ emails: string[];
659
664
  };
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
665
  variables: Record<string, {} | null>;
667
666
  skip_deliverability_check: boolean;
668
667
  scheduled_at_millis: number;
@@ -685,6 +684,7 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
685
684
  has_delivered: boolean;
686
685
  started_rendering_at_millis: number;
687
686
  rendered_at_millis: number;
687
+ subject: string;
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[];
704
703
  user_id: string;
705
704
  type: "user-custom-emails";
706
- } | {
707
705
  emails: string[];
706
+ } | {
708
707
  type: "custom-emails";
708
+ emails: string[];
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;
729
733
  to: {
730
734
  user_id: string;
731
735
  type: "user-primary-email";
732
736
  } | {
733
- emails: string[];
734
737
  user_id: string;
735
738
  type: "user-custom-emails";
736
- } | {
737
739
  emails: string[];
740
+ } | {
738
741
  type: "custom-emails";
742
+ emails: string[];
739
743
  };
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;
767
771
  to: {
768
772
  user_id: string;
769
773
  type: "user-primary-email";
770
774
  } | {
771
- emails: string[];
772
775
  user_id: string;
773
776
  type: "user-custom-emails";
774
- } | {
775
777
  emails: string[];
778
+ } | {
776
779
  type: "custom-emails";
780
+ emails: string[];
777
781
  };
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;
805
809
  to: {
806
810
  user_id: string;
807
811
  type: "user-primary-email";
808
812
  } | {
809
- emails: string[];
810
813
  user_id: string;
811
814
  type: "user-custom-emails";
812
- } | {
813
815
  emails: string[];
816
+ } | {
814
817
  type: "custom-emails";
818
+ emails: string[];
815
819
  };
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;
844
848
  to: {
845
849
  user_id: string;
846
850
  type: "user-primary-email";
847
851
  } | {
848
- emails: string[];
849
852
  user_id: string;
850
853
  type: "user-custom-emails";
851
- } | {
852
854
  emails: string[];
855
+ } | {
853
856
  type: "custom-emails";
857
+ emails: string[];
854
858
  };
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;
@@ -882,24 +882,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
882
882
  } | {
883
883
  status: "scheduled";
884
884
  id: string;
885
- subject: string;
885
+ html: string | null;
886
+ text: string | null;
887
+ created_at_millis: number;
888
+ updated_at_millis: number;
889
+ tsx_source: string;
890
+ theme_id: string | null;
886
891
  to: {
887
892
  user_id: string;
888
893
  type: "user-primary-email";
889
894
  } | {
890
- emails: string[];
891
895
  user_id: string;
892
896
  type: "user-custom-emails";
893
- } | {
894
897
  emails: string[];
898
+ } | {
895
899
  type: "custom-emails";
900
+ emails: string[];
896
901
  };
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
902
  variables: Record<string, {} | null>;
904
903
  skip_deliverability_check: boolean;
905
904
  scheduled_at_millis: number;
@@ -922,30 +921,30 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
922
921
  has_delivered: boolean;
923
922
  started_rendering_at_millis: number;
924
923
  rendered_at_millis: number;
924
+ subject: string;
925
925
  is_transactional: boolean;
926
926
  is_high_priority: boolean;
927
927
  notification_category_id: string | null;
928
928
  } | {
929
929
  status: "queued";
930
930
  id: string;
931
- subject: string;
931
+ html: string | null;
932
+ text: string | null;
933
+ created_at_millis: number;
934
+ updated_at_millis: number;
935
+ tsx_source: string;
936
+ theme_id: string | null;
932
937
  to: {
933
938
  user_id: string;
934
939
  type: "user-primary-email";
935
940
  } | {
936
- emails: string[];
937
941
  user_id: string;
938
942
  type: "user-custom-emails";
939
- } | {
940
943
  emails: string[];
944
+ } | {
941
945
  type: "custom-emails";
946
+ emails: string[];
942
947
  };
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
948
  variables: Record<string, {} | null>;
950
949
  skip_deliverability_check: boolean;
951
950
  scheduled_at_millis: number;
@@ -968,30 +967,30 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
968
967
  has_delivered: boolean;
969
968
  started_rendering_at_millis: number;
970
969
  rendered_at_millis: number;
970
+ subject: string;
971
971
  is_transactional: boolean;
972
972
  is_high_priority: boolean;
973
973
  notification_category_id: string | null;
974
974
  } | {
975
975
  status: "sending";
976
976
  id: string;
977
- subject: string;
977
+ html: string | null;
978
+ text: string | null;
979
+ created_at_millis: number;
980
+ updated_at_millis: number;
981
+ tsx_source: string;
982
+ theme_id: string | null;
978
983
  to: {
979
984
  user_id: string;
980
985
  type: "user-primary-email";
981
986
  } | {
982
- emails: string[];
983
987
  user_id: string;
984
988
  type: "user-custom-emails";
985
- } | {
986
989
  emails: string[];
990
+ } | {
987
991
  type: "custom-emails";
992
+ emails: string[];
988
993
  };
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
994
  variables: Record<string, {} | null>;
996
995
  skip_deliverability_check: boolean;
997
996
  scheduled_at_millis: number;
@@ -1014,6 +1013,7 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1014
1013
  has_delivered: boolean;
1015
1014
  started_rendering_at_millis: number;
1016
1015
  rendered_at_millis: number;
1016
+ subject: string;
1017
1017
  is_transactional: boolean;
1018
1018
  is_high_priority: boolean;
1019
1019
  notification_category_id: string | null;
@@ -1021,24 +1021,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1021
1021
  } | {
1022
1022
  status: "server-error";
1023
1023
  id: string;
1024
- subject: string;
1024
+ html: string | null;
1025
+ text: string | null;
1026
+ created_at_millis: number;
1027
+ updated_at_millis: number;
1028
+ tsx_source: string;
1029
+ theme_id: string | null;
1025
1030
  to: {
1026
1031
  user_id: string;
1027
1032
  type: "user-primary-email";
1028
1033
  } | {
1029
- emails: string[];
1030
1034
  user_id: string;
1031
1035
  type: "user-custom-emails";
1032
- } | {
1033
1036
  emails: string[];
1037
+ } | {
1034
1038
  type: "custom-emails";
1039
+ emails: string[];
1035
1040
  };
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
1041
  variables: Record<string, {} | null>;
1043
1042
  skip_deliverability_check: boolean;
1044
1043
  scheduled_at_millis: number;
@@ -1061,6 +1060,7 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1061
1060
  has_delivered: boolean;
1062
1061
  started_rendering_at_millis: number;
1063
1062
  rendered_at_millis: number;
1063
+ subject: string;
1064
1064
  is_transactional: boolean;
1065
1065
  is_high_priority: boolean;
1066
1066
  notification_category_id: string | null;
@@ -1068,32 +1068,32 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1068
1068
  error_at_millis: number;
1069
1069
  server_error: string;
1070
1070
  } | {
1071
- subject?: string | undefined;
1072
1071
  html?: string | null | undefined;
1073
1072
  text?: string | null | undefined;
1074
1073
  started_rendering_at_millis?: number | undefined;
1075
1074
  rendered_at_millis?: number | undefined;
1075
+ subject?: string | 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;
1082
1086
  to: {
1083
1087
  user_id: string;
1084
1088
  type: "user-primary-email";
1085
1089
  } | {
1086
- emails: string[];
1087
1090
  user_id: string;
1088
1091
  type: "user-custom-emails";
1089
- } | {
1090
1092
  emails: string[];
1093
+ } | {
1091
1094
  type: "custom-emails";
1095
+ emails: string[];
1092
1096
  };
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;
@@ -1120,24 +1120,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1120
1120
  } | {
1121
1121
  status: "bounced";
1122
1122
  id: string;
1123
- subject: string;
1123
+ html: string | null;
1124
+ text: string | null;
1125
+ created_at_millis: number;
1126
+ updated_at_millis: number;
1127
+ tsx_source: string;
1128
+ theme_id: string | null;
1124
1129
  to: {
1125
1130
  user_id: string;
1126
1131
  type: "user-primary-email";
1127
1132
  } | {
1128
- emails: string[];
1129
1133
  user_id: string;
1130
1134
  type: "user-custom-emails";
1131
- } | {
1132
1135
  emails: string[];
1136
+ } | {
1133
1137
  type: "custom-emails";
1138
+ emails: string[];
1134
1139
  };
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
1140
  variables: Record<string, {} | null>;
1142
1141
  skip_deliverability_check: boolean;
1143
1142
  scheduled_at_millis: number;
@@ -1160,6 +1159,7 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1160
1159
  has_delivered: boolean;
1161
1160
  started_rendering_at_millis: number;
1162
1161
  rendered_at_millis: number;
1162
+ subject: string;
1163
1163
  is_transactional: boolean;
1164
1164
  is_high_priority: boolean;
1165
1165
  notification_category_id: string | null;
@@ -1168,24 +1168,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1168
1168
  } | {
1169
1169
  status: "delivery-delayed";
1170
1170
  id: string;
1171
- subject: string;
1171
+ html: string | null;
1172
+ text: string | null;
1173
+ created_at_millis: number;
1174
+ updated_at_millis: number;
1175
+ tsx_source: string;
1176
+ theme_id: string | null;
1172
1177
  to: {
1173
1178
  user_id: string;
1174
1179
  type: "user-primary-email";
1175
1180
  } | {
1176
- emails: string[];
1177
1181
  user_id: string;
1178
1182
  type: "user-custom-emails";
1179
- } | {
1180
1183
  emails: string[];
1184
+ } | {
1181
1185
  type: "custom-emails";
1186
+ emails: string[];
1182
1187
  };
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
1188
  variables: Record<string, {} | null>;
1190
1189
  skip_deliverability_check: boolean;
1191
1190
  scheduled_at_millis: number;
@@ -1208,6 +1207,7 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1208
1207
  has_delivered: boolean;
1209
1208
  started_rendering_at_millis: number;
1210
1209
  rendered_at_millis: number;
1210
+ subject: string;
1211
1211
  is_transactional: boolean;
1212
1212
  is_high_priority: boolean;
1213
1213
  notification_category_id: string | null;
@@ -1216,24 +1216,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1216
1216
  } | {
1217
1217
  status: "sent";
1218
1218
  id: string;
1219
- subject: string;
1219
+ html: string | null;
1220
+ text: string | null;
1221
+ created_at_millis: number;
1222
+ updated_at_millis: number;
1223
+ tsx_source: string;
1224
+ theme_id: string | null;
1220
1225
  to: {
1221
1226
  user_id: string;
1222
1227
  type: "user-primary-email";
1223
1228
  } | {
1224
- emails: string[];
1225
1229
  user_id: string;
1226
1230
  type: "user-custom-emails";
1227
- } | {
1228
1231
  emails: string[];
1232
+ } | {
1229
1233
  type: "custom-emails";
1234
+ emails: string[];
1230
1235
  };
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
1236
  variables: Record<string, {} | null>;
1238
1237
  skip_deliverability_check: boolean;
1239
1238
  scheduled_at_millis: number;
@@ -1256,6 +1255,7 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1256
1255
  has_delivered: boolean;
1257
1256
  started_rendering_at_millis: number;
1258
1257
  rendered_at_millis: number;
1258
+ subject: string;
1259
1259
  is_transactional: boolean;
1260
1260
  is_high_priority: boolean;
1261
1261
  notification_category_id: string | null;
@@ -1265,24 +1265,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1265
1265
  } | {
1266
1266
  status: "opened";
1267
1267
  id: string;
1268
- subject: string;
1268
+ html: string | null;
1269
+ text: string | null;
1270
+ created_at_millis: number;
1271
+ updated_at_millis: number;
1272
+ tsx_source: string;
1273
+ theme_id: string | null;
1269
1274
  to: {
1270
1275
  user_id: string;
1271
1276
  type: "user-primary-email";
1272
1277
  } | {
1273
- emails: string[];
1274
1278
  user_id: string;
1275
1279
  type: "user-custom-emails";
1276
- } | {
1277
1280
  emails: string[];
1281
+ } | {
1278
1282
  type: "custom-emails";
1283
+ emails: string[];
1279
1284
  };
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
1285
  variables: Record<string, {} | null>;
1287
1286
  skip_deliverability_check: boolean;
1288
1287
  scheduled_at_millis: number;
@@ -1305,6 +1304,7 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1305
1304
  has_delivered: boolean;
1306
1305
  started_rendering_at_millis: number;
1307
1306
  rendered_at_millis: number;
1307
+ subject: string;
1308
1308
  is_transactional: boolean;
1309
1309
  is_high_priority: boolean;
1310
1310
  notification_category_id: string | null;
@@ -1315,24 +1315,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1315
1315
  } | {
1316
1316
  status: "clicked";
1317
1317
  id: string;
1318
- subject: string;
1318
+ html: string | null;
1319
+ text: string | null;
1320
+ created_at_millis: number;
1321
+ updated_at_millis: number;
1322
+ tsx_source: string;
1323
+ theme_id: string | null;
1319
1324
  to: {
1320
1325
  user_id: string;
1321
1326
  type: "user-primary-email";
1322
1327
  } | {
1323
- emails: string[];
1324
1328
  user_id: string;
1325
1329
  type: "user-custom-emails";
1326
- } | {
1327
1330
  emails: string[];
1331
+ } | {
1328
1332
  type: "custom-emails";
1333
+ emails: string[];
1329
1334
  };
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
1335
  variables: Record<string, {} | null>;
1337
1336
  skip_deliverability_check: boolean;
1338
1337
  scheduled_at_millis: number;
@@ -1355,6 +1354,7 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1355
1354
  has_delivered: boolean;
1356
1355
  started_rendering_at_millis: number;
1357
1356
  rendered_at_millis: number;
1357
+ subject: string;
1358
1358
  is_transactional: boolean;
1359
1359
  is_high_priority: boolean;
1360
1360
  notification_category_id: string | null;
@@ -1365,24 +1365,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1365
1365
  } | {
1366
1366
  status: "marked-as-spam";
1367
1367
  id: string;
1368
- subject: string;
1368
+ html: string | null;
1369
+ text: string | null;
1370
+ created_at_millis: number;
1371
+ updated_at_millis: number;
1372
+ tsx_source: string;
1373
+ theme_id: string | null;
1369
1374
  to: {
1370
1375
  user_id: string;
1371
1376
  type: "user-primary-email";
1372
1377
  } | {
1373
- emails: string[];
1374
1378
  user_id: string;
1375
1379
  type: "user-custom-emails";
1376
- } | {
1377
1380
  emails: string[];
1381
+ } | {
1378
1382
  type: "custom-emails";
1383
+ emails: string[];
1379
1384
  };
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
1385
  variables: Record<string, {} | null>;
1387
1386
  skip_deliverability_check: boolean;
1388
1387
  scheduled_at_millis: number;
@@ -1405,6 +1404,7 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1405
1404
  has_delivered: boolean;
1406
1405
  started_rendering_at_millis: number;
1407
1406
  rendered_at_millis: number;
1407
+ subject: string;
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[];
1424
1423
  user_id: string;
1425
1424
  type: "user-custom-emails";
1426
- } | {
1427
1425
  emails: string[];
1426
+ } | {
1428
1427
  type: "custom-emails";
1428
+ emails: string[];
1429
1429
  } | undefined;
1430
1430
  variables: Record<string, {} | null> | undefined;
1431
1431
  skip_deliverability_check: boolean | undefined;