@hexclave/shared 1.0.25 → 1.0.26

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 (64) hide show
  1. package/dist/config/schema.d.ts +140 -140
  2. package/dist/config-authoring.d.ts +3 -0
  3. package/dist/config-authoring.d.ts.map +1 -1
  4. package/dist/config-authoring.js +3 -0
  5. package/dist/config-authoring.js.map +1 -1
  6. package/dist/esm/config/schema.d.ts +140 -140
  7. package/dist/esm/config-authoring.d.ts +3 -0
  8. package/dist/esm/config-authoring.d.ts.map +1 -1
  9. package/dist/esm/config-authoring.js +3 -0
  10. package/dist/esm/config-authoring.js.map +1 -1
  11. package/dist/esm/interface/admin-interface.d.ts +3 -1
  12. package/dist/esm/interface/admin-interface.d.ts.map +1 -1
  13. package/dist/esm/interface/admin-interface.js +3 -0
  14. package/dist/esm/interface/admin-interface.js.map +1 -1
  15. package/dist/esm/interface/admin-metrics.d.ts +10 -10
  16. package/dist/esm/interface/conversations.d.ts +6 -6
  17. package/dist/esm/interface/crud/current-user.d.ts +5 -5
  18. package/dist/esm/interface/crud/email-outbox.d.ts +206 -206
  19. package/dist/esm/interface/crud/products.d.ts +15 -15
  20. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  21. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  22. package/dist/esm/interface/crud/projects.d.ts +43 -43
  23. package/dist/esm/interface/crud/team-member-profiles.d.ts +8 -8
  24. package/dist/esm/interface/crud/transactions.d.ts +20 -20
  25. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  26. package/dist/esm/interface/crud/users.d.ts +4 -4
  27. package/dist/esm/interface/plan-usage.d.ts +57 -0
  28. package/dist/esm/interface/plan-usage.d.ts.map +1 -0
  29. package/dist/esm/interface/plan-usage.js +35 -0
  30. package/dist/esm/interface/plan-usage.js.map +1 -0
  31. package/dist/esm/known-errors.d.ts +1 -1
  32. package/dist/esm/schema-fields.d.ts +1 -1
  33. package/dist/esm/sessions.d.ts +7 -7
  34. package/dist/{index-fQbeILq7.d.ts → index-nCRuFJTF.d.ts} +1 -1
  35. package/dist/{index-fQbeILq7.d.ts.map → index-nCRuFJTF.d.ts.map} +1 -1
  36. package/dist/interface/admin-interface.d.ts +3 -1
  37. package/dist/interface/admin-interface.d.ts.map +1 -1
  38. package/dist/interface/admin-interface.js +3 -0
  39. package/dist/interface/admin-interface.js.map +1 -1
  40. package/dist/interface/admin-metrics.d.ts +10 -10
  41. package/dist/interface/client-interface.d.ts +1 -1
  42. package/dist/interface/conversations.d.ts +6 -6
  43. package/dist/interface/crud/current-user.d.ts +5 -5
  44. package/dist/interface/crud/email-outbox.d.ts +206 -206
  45. package/dist/interface/crud/products.d.ts +15 -15
  46. package/dist/interface/crud/products.d.ts.map +1 -1
  47. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  48. package/dist/interface/crud/projects.d.ts +43 -43
  49. package/dist/interface/crud/team-member-profiles.d.ts +8 -8
  50. package/dist/interface/crud/transactions.d.ts +20 -20
  51. package/dist/interface/crud/transactions.d.ts.map +1 -1
  52. package/dist/interface/crud/users.d.ts +4 -4
  53. package/dist/interface/plan-usage.d.ts +57 -0
  54. package/dist/interface/plan-usage.d.ts.map +1 -0
  55. package/dist/interface/plan-usage.js +39 -0
  56. package/dist/interface/plan-usage.js.map +1 -0
  57. package/dist/known-errors.d.ts +1 -1
  58. package/dist/schema-fields.d.ts +1 -1
  59. package/dist/sessions.d.ts +7 -7
  60. package/dist/utils/passkey.d.ts +1 -1
  61. package/package.json +1 -1
  62. package/src/config-authoring.ts +3 -1
  63. package/src/interface/admin-interface.ts +14 -0
  64. package/src/interface/plan-usage.ts +34 -0
@@ -4,23 +4,23 @@ import { CrudTypeOf } from "../../crud";
4
4
 
5
5
  //#region src/interface/crud/email-outbox.d.ts
6
6
  declare const emailOutboxReadSchema: yup$1.MixedSchema<{
7
- id: string;
8
7
  status: "paused";
8
+ id: string;
9
9
  created_at_millis: number;
10
+ updated_at_millis: number;
11
+ tsx_source: string;
12
+ theme_id: string | null;
10
13
  to: {
11
- type: "user-primary-email";
12
14
  user_id: string;
15
+ type: "user-primary-email";
13
16
  } | {
14
- type: "user-custom-emails";
15
17
  user_id: string;
18
+ type: "user-custom-emails";
16
19
  emails: string[];
17
20
  } | {
18
21
  type: "custom-emails";
19
22
  emails: string[];
20
23
  };
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;
@@ -42,23 +42,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
42
42
  has_rendered: boolean;
43
43
  has_delivered: boolean;
44
44
  } | {
45
- id: string;
46
45
  status: "preparing";
46
+ id: string;
47
47
  created_at_millis: number;
48
+ updated_at_millis: number;
49
+ tsx_source: string;
50
+ theme_id: string | null;
48
51
  to: {
49
- type: "user-primary-email";
50
52
  user_id: string;
53
+ type: "user-primary-email";
51
54
  } | {
52
- type: "user-custom-emails";
53
55
  user_id: string;
56
+ type: "user-custom-emails";
54
57
  emails: string[];
55
58
  } | {
56
59
  type: "custom-emails";
57
60
  emails: string[];
58
61
  };
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;
@@ -80,23 +80,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
80
80
  has_rendered: boolean;
81
81
  has_delivered: boolean;
82
82
  } | {
83
- id: string;
84
83
  status: "rendering";
84
+ id: string;
85
85
  created_at_millis: number;
86
+ updated_at_millis: number;
87
+ tsx_source: string;
88
+ theme_id: string | null;
86
89
  to: {
87
- type: "user-primary-email";
88
90
  user_id: string;
91
+ type: "user-primary-email";
89
92
  } | {
90
- type: "user-custom-emails";
91
93
  user_id: string;
94
+ type: "user-custom-emails";
92
95
  emails: string[];
93
96
  } | {
94
97
  type: "custom-emails";
95
98
  emails: string[];
96
99
  };
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;
@@ -119,23 +119,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
119
119
  has_delivered: boolean;
120
120
  started_rendering_at_millis: number;
121
121
  } | {
122
- id: string;
123
122
  status: "render-error";
123
+ id: string;
124
124
  created_at_millis: number;
125
+ updated_at_millis: number;
126
+ tsx_source: string;
127
+ theme_id: string | null;
125
128
  to: {
126
- type: "user-primary-email";
127
129
  user_id: string;
130
+ type: "user-primary-email";
128
131
  } | {
129
- type: "user-custom-emails";
130
132
  user_id: string;
133
+ type: "user-custom-emails";
131
134
  emails: string[];
132
135
  } | {
133
136
  type: "custom-emails";
134
137
  emails: string[];
135
138
  };
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;
@@ -160,26 +160,25 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
160
160
  rendered_at_millis: number;
161
161
  render_error: string;
162
162
  } | {
163
+ status: "scheduled";
163
164
  id: string;
164
165
  html: string | null;
165
166
  text: string | null;
166
- status: "scheduled";
167
167
  created_at_millis: number;
168
- subject: string;
168
+ updated_at_millis: number;
169
+ tsx_source: string;
170
+ theme_id: string | null;
169
171
  to: {
170
- type: "user-primary-email";
171
172
  user_id: string;
173
+ type: "user-primary-email";
172
174
  } | {
173
- type: "user-custom-emails";
174
175
  user_id: string;
176
+ type: "user-custom-emails";
175
177
  emails: string[];
176
178
  } | {
177
179
  type: "custom-emails";
178
180
  emails: string[];
179
181
  };
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
+ status: "queued";
209
210
  id: string;
210
211
  html: string | null;
211
212
  text: string | null;
212
- status: "queued";
213
213
  created_at_millis: number;
214
- subject: string;
214
+ updated_at_millis: number;
215
+ tsx_source: string;
216
+ theme_id: string | null;
215
217
  to: {
216
- type: "user-primary-email";
217
218
  user_id: string;
219
+ type: "user-primary-email";
218
220
  } | {
219
- type: "user-custom-emails";
220
221
  user_id: string;
222
+ type: "user-custom-emails";
221
223
  emails: string[];
222
224
  } | {
223
225
  type: "custom-emails";
224
226
  emails: string[];
225
227
  };
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
+ status: "sending";
255
256
  id: string;
256
257
  html: string | null;
257
258
  text: string | null;
258
- status: "sending";
259
259
  created_at_millis: number;
260
- subject: string;
260
+ updated_at_millis: number;
261
+ tsx_source: string;
262
+ theme_id: string | null;
261
263
  to: {
262
- type: "user-primary-email";
263
264
  user_id: string;
265
+ type: "user-primary-email";
264
266
  } | {
265
- type: "user-custom-emails";
266
267
  user_id: string;
268
+ type: "user-custom-emails";
267
269
  emails: string[];
268
270
  } | {
269
271
  type: "custom-emails";
270
272
  emails: string[];
271
273
  };
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,31 +293,31 @@ 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;
300
300
  started_sending_at_millis: number;
301
301
  } | {
302
+ status: "server-error";
302
303
  id: string;
303
304
  html: string | null;
304
305
  text: string | null;
305
- status: "server-error";
306
306
  created_at_millis: number;
307
- subject: string;
307
+ updated_at_millis: number;
308
+ tsx_source: string;
309
+ theme_id: string | null;
308
310
  to: {
309
- type: "user-primary-email";
310
311
  user_id: string;
312
+ type: "user-primary-email";
311
313
  } | {
312
- type: "user-custom-emails";
313
314
  user_id: string;
315
+ type: "user-custom-emails";
314
316
  emails: string[];
315
317
  } | {
316
318
  type: "custom-emails";
317
319
  emails: string[];
318
320
  };
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;
@@ -350,30 +350,30 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
350
350
  } | {
351
351
  html?: string | null | undefined;
352
352
  text?: string | null | undefined;
353
- subject?: string | 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
- id: string;
361
360
  status: "skipped";
361
+ id: string;
362
362
  created_at_millis: number;
363
+ updated_at_millis: number;
364
+ tsx_source: string;
365
+ theme_id: string | null;
363
366
  to: {
364
- type: "user-primary-email";
365
367
  user_id: string;
368
+ type: "user-primary-email";
366
369
  } | {
367
- type: "user-custom-emails";
368
370
  user_id: string;
371
+ type: "user-custom-emails";
369
372
  emails: string[];
370
373
  } | {
371
374
  type: "custom-emails";
372
375
  emails: string[];
373
376
  };
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;
@@ -398,26 +398,25 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
398
398
  skipped_reason: string;
399
399
  skipped_details: Record<string, {} | null>;
400
400
  } | {
401
+ status: "bounced";
401
402
  id: string;
402
403
  html: string | null;
403
404
  text: string | null;
404
- status: "bounced";
405
405
  created_at_millis: number;
406
- subject: string;
406
+ updated_at_millis: number;
407
+ tsx_source: string;
408
+ theme_id: string | null;
407
409
  to: {
408
- type: "user-primary-email";
409
410
  user_id: string;
411
+ type: "user-primary-email";
410
412
  } | {
411
- type: "user-custom-emails";
412
413
  user_id: string;
414
+ type: "user-custom-emails";
413
415
  emails: string[];
414
416
  } | {
415
417
  type: "custom-emails";
416
418
  emails: string[];
417
419
  };
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,32 +439,32 @@ 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;
446
446
  started_sending_at_millis: number;
447
447
  bounced_at_millis: number;
448
448
  } | {
449
+ status: "delivery-delayed";
449
450
  id: string;
450
451
  html: string | null;
451
452
  text: string | null;
452
- status: "delivery-delayed";
453
453
  created_at_millis: number;
454
- subject: string;
454
+ updated_at_millis: number;
455
+ tsx_source: string;
456
+ theme_id: string | null;
455
457
  to: {
456
- type: "user-primary-email";
457
458
  user_id: string;
459
+ type: "user-primary-email";
458
460
  } | {
459
- type: "user-custom-emails";
460
461
  user_id: string;
462
+ type: "user-custom-emails";
461
463
  emails: string[];
462
464
  } | {
463
465
  type: "custom-emails";
464
466
  emails: string[];
465
467
  };
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,32 +487,32 @@ 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;
494
494
  started_sending_at_millis: number;
495
495
  delivery_delayed_at_millis: number;
496
496
  } | {
497
+ status: "sent";
497
498
  id: string;
498
499
  html: string | null;
499
500
  text: string | null;
500
- status: "sent";
501
501
  created_at_millis: number;
502
- subject: string;
502
+ updated_at_millis: number;
503
+ tsx_source: string;
504
+ theme_id: string | null;
503
505
  to: {
504
- type: "user-primary-email";
505
506
  user_id: string;
507
+ type: "user-primary-email";
506
508
  } | {
507
- type: "user-custom-emails";
508
509
  user_id: string;
510
+ type: "user-custom-emails";
509
511
  emails: string[];
510
512
  } | {
511
513
  type: "custom-emails";
512
514
  emails: string[];
513
515
  };
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;
@@ -543,26 +543,25 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
543
543
  delivered_at_millis: number;
544
544
  can_have_delivery_info: boolean;
545
545
  } | {
546
+ status: "opened";
546
547
  id: string;
547
548
  html: string | null;
548
549
  text: string | null;
549
- status: "opened";
550
550
  created_at_millis: number;
551
- subject: string;
551
+ updated_at_millis: number;
552
+ tsx_source: string;
553
+ theme_id: string | null;
552
554
  to: {
553
- type: "user-primary-email";
554
555
  user_id: string;
556
+ type: "user-primary-email";
555
557
  } | {
556
- type: "user-custom-emails";
557
558
  user_id: string;
559
+ type: "user-custom-emails";
558
560
  emails: string[];
559
561
  } | {
560
562
  type: "custom-emails";
561
563
  emails: string[];
562
564
  };
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;
@@ -593,26 +593,25 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
593
593
  can_have_delivery_info: boolean;
594
594
  opened_at_millis: number;
595
595
  } | {
596
+ status: "clicked";
596
597
  id: string;
597
598
  html: string | null;
598
599
  text: string | null;
599
- status: "clicked";
600
600
  created_at_millis: number;
601
- subject: string;
601
+ updated_at_millis: number;
602
+ tsx_source: string;
603
+ theme_id: string | null;
602
604
  to: {
603
- type: "user-primary-email";
604
605
  user_id: string;
606
+ type: "user-primary-email";
605
607
  } | {
606
- type: "user-custom-emails";
607
608
  user_id: string;
609
+ type: "user-custom-emails";
608
610
  emails: string[];
609
611
  } | {
610
612
  type: "custom-emails";
611
613
  emails: string[];
612
614
  };
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;
@@ -643,26 +643,25 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
643
643
  can_have_delivery_info: boolean;
644
644
  clicked_at_millis: number;
645
645
  } | {
646
+ status: "marked-as-spam";
646
647
  id: string;
647
648
  html: string | null;
648
649
  text: string | null;
649
- status: "marked-as-spam";
650
650
  created_at_millis: number;
651
- subject: string;
651
+ updated_at_millis: number;
652
+ tsx_source: string;
653
+ theme_id: string | null;
652
654
  to: {
653
- type: "user-primary-email";
654
655
  user_id: string;
656
+ type: "user-primary-email";
655
657
  } | {
656
- type: "user-custom-emails";
657
658
  user_id: string;
659
+ type: "user-custom-emails";
658
660
  emails: string[];
659
661
  } | {
660
662
  type: "custom-emails";
661
663
  emails: string[];
662
664
  };
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;
@@ -697,11 +697,11 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
697
697
  tsx_source: string | undefined;
698
698
  theme_id: string | null | undefined;
699
699
  to: {
700
- type: "user-primary-email";
701
700
  user_id: string;
701
+ type: "user-primary-email";
702
702
  } | {
703
- type: "user-custom-emails";
704
703
  user_id: string;
704
+ type: "user-custom-emails";
705
705
  emails: string[];
706
706
  } | {
707
707
  type: "custom-emails";
@@ -724,23 +724,23 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
724
724
  }, "">;
725
725
  declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
726
726
  serverReadSchema: yup$1.MixedSchema<{
727
- id: string;
728
727
  status: "paused";
728
+ id: string;
729
729
  created_at_millis: number;
730
+ updated_at_millis: number;
731
+ tsx_source: string;
732
+ theme_id: string | null;
730
733
  to: {
731
- type: "user-primary-email";
732
734
  user_id: string;
735
+ type: "user-primary-email";
733
736
  } | {
734
- type: "user-custom-emails";
735
737
  user_id: string;
738
+ type: "user-custom-emails";
736
739
  emails: string[];
737
740
  } | {
738
741
  type: "custom-emails";
739
742
  emails: string[];
740
743
  };
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;
@@ -762,23 +762,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
762
762
  has_rendered: boolean;
763
763
  has_delivered: boolean;
764
764
  } | {
765
- id: string;
766
765
  status: "preparing";
766
+ id: string;
767
767
  created_at_millis: number;
768
+ updated_at_millis: number;
769
+ tsx_source: string;
770
+ theme_id: string | null;
768
771
  to: {
769
- type: "user-primary-email";
770
772
  user_id: string;
773
+ type: "user-primary-email";
771
774
  } | {
772
- type: "user-custom-emails";
773
775
  user_id: string;
776
+ type: "user-custom-emails";
774
777
  emails: string[];
775
778
  } | {
776
779
  type: "custom-emails";
777
780
  emails: string[];
778
781
  };
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;
@@ -800,23 +800,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
800
800
  has_rendered: boolean;
801
801
  has_delivered: boolean;
802
802
  } | {
803
- id: string;
804
803
  status: "rendering";
804
+ id: string;
805
805
  created_at_millis: number;
806
+ updated_at_millis: number;
807
+ tsx_source: string;
808
+ theme_id: string | null;
806
809
  to: {
807
- type: "user-primary-email";
808
810
  user_id: string;
811
+ type: "user-primary-email";
809
812
  } | {
810
- type: "user-custom-emails";
811
813
  user_id: string;
814
+ type: "user-custom-emails";
812
815
  emails: string[];
813
816
  } | {
814
817
  type: "custom-emails";
815
818
  emails: string[];
816
819
  };
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;
@@ -839,23 +839,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
839
839
  has_delivered: boolean;
840
840
  started_rendering_at_millis: number;
841
841
  } | {
842
- id: string;
843
842
  status: "render-error";
843
+ id: string;
844
844
  created_at_millis: number;
845
+ updated_at_millis: number;
846
+ tsx_source: string;
847
+ theme_id: string | null;
845
848
  to: {
846
- type: "user-primary-email";
847
849
  user_id: string;
850
+ type: "user-primary-email";
848
851
  } | {
849
- type: "user-custom-emails";
850
852
  user_id: string;
853
+ type: "user-custom-emails";
851
854
  emails: string[];
852
855
  } | {
853
856
  type: "custom-emails";
854
857
  emails: string[];
855
858
  };
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;
@@ -880,26 +880,25 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
880
880
  rendered_at_millis: number;
881
881
  render_error: string;
882
882
  } | {
883
+ status: "scheduled";
883
884
  id: string;
884
885
  html: string | null;
885
886
  text: string | null;
886
- status: "scheduled";
887
887
  created_at_millis: number;
888
- subject: string;
888
+ updated_at_millis: number;
889
+ tsx_source: string;
890
+ theme_id: string | null;
889
891
  to: {
890
- type: "user-primary-email";
891
892
  user_id: string;
893
+ type: "user-primary-email";
892
894
  } | {
893
- type: "user-custom-emails";
894
895
  user_id: string;
896
+ type: "user-custom-emails";
895
897
  emails: string[];
896
898
  } | {
897
899
  type: "custom-emails";
898
900
  emails: string[];
899
901
  };
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
+ status: "queued";
929
930
  id: string;
930
931
  html: string | null;
931
932
  text: string | null;
932
- status: "queued";
933
933
  created_at_millis: number;
934
- subject: string;
934
+ updated_at_millis: number;
935
+ tsx_source: string;
936
+ theme_id: string | null;
935
937
  to: {
936
- type: "user-primary-email";
937
938
  user_id: string;
939
+ type: "user-primary-email";
938
940
  } | {
939
- type: "user-custom-emails";
940
941
  user_id: string;
942
+ type: "user-custom-emails";
941
943
  emails: string[];
942
944
  } | {
943
945
  type: "custom-emails";
944
946
  emails: string[];
945
947
  };
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
+ status: "sending";
975
976
  id: string;
976
977
  html: string | null;
977
978
  text: string | null;
978
- status: "sending";
979
979
  created_at_millis: number;
980
- subject: string;
980
+ updated_at_millis: number;
981
+ tsx_source: string;
982
+ theme_id: string | null;
981
983
  to: {
982
- type: "user-primary-email";
983
984
  user_id: string;
985
+ type: "user-primary-email";
984
986
  } | {
985
- type: "user-custom-emails";
986
987
  user_id: string;
988
+ type: "user-custom-emails";
987
989
  emails: string[];
988
990
  } | {
989
991
  type: "custom-emails";
990
992
  emails: string[];
991
993
  };
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,31 +1013,31 @@ 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;
1020
1020
  started_sending_at_millis: number;
1021
1021
  } | {
1022
+ status: "server-error";
1022
1023
  id: string;
1023
1024
  html: string | null;
1024
1025
  text: string | null;
1025
- status: "server-error";
1026
1026
  created_at_millis: number;
1027
- subject: string;
1027
+ updated_at_millis: number;
1028
+ tsx_source: string;
1029
+ theme_id: string | null;
1028
1030
  to: {
1029
- type: "user-primary-email";
1030
1031
  user_id: string;
1032
+ type: "user-primary-email";
1031
1033
  } | {
1032
- type: "user-custom-emails";
1033
1034
  user_id: string;
1035
+ type: "user-custom-emails";
1034
1036
  emails: string[];
1035
1037
  } | {
1036
1038
  type: "custom-emails";
1037
1039
  emails: string[];
1038
1040
  };
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;
@@ -1070,30 +1070,30 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1070
1070
  } | {
1071
1071
  html?: string | null | undefined;
1072
1072
  text?: string | null | undefined;
1073
- subject?: string | 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
- id: string;
1081
1080
  status: "skipped";
1081
+ id: string;
1082
1082
  created_at_millis: number;
1083
+ updated_at_millis: number;
1084
+ tsx_source: string;
1085
+ theme_id: string | null;
1083
1086
  to: {
1084
- type: "user-primary-email";
1085
1087
  user_id: string;
1088
+ type: "user-primary-email";
1086
1089
  } | {
1087
- type: "user-custom-emails";
1088
1090
  user_id: string;
1091
+ type: "user-custom-emails";
1089
1092
  emails: string[];
1090
1093
  } | {
1091
1094
  type: "custom-emails";
1092
1095
  emails: string[];
1093
1096
  };
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;
@@ -1118,26 +1118,25 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1118
1118
  skipped_reason: string;
1119
1119
  skipped_details: Record<string, {} | null>;
1120
1120
  } | {
1121
+ status: "bounced";
1121
1122
  id: string;
1122
1123
  html: string | null;
1123
1124
  text: string | null;
1124
- status: "bounced";
1125
1125
  created_at_millis: number;
1126
- subject: string;
1126
+ updated_at_millis: number;
1127
+ tsx_source: string;
1128
+ theme_id: string | null;
1127
1129
  to: {
1128
- type: "user-primary-email";
1129
1130
  user_id: string;
1131
+ type: "user-primary-email";
1130
1132
  } | {
1131
- type: "user-custom-emails";
1132
1133
  user_id: string;
1134
+ type: "user-custom-emails";
1133
1135
  emails: string[];
1134
1136
  } | {
1135
1137
  type: "custom-emails";
1136
1138
  emails: string[];
1137
1139
  };
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,32 +1159,32 @@ 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;
1166
1166
  started_sending_at_millis: number;
1167
1167
  bounced_at_millis: number;
1168
1168
  } | {
1169
+ status: "delivery-delayed";
1169
1170
  id: string;
1170
1171
  html: string | null;
1171
1172
  text: string | null;
1172
- status: "delivery-delayed";
1173
1173
  created_at_millis: number;
1174
- subject: string;
1174
+ updated_at_millis: number;
1175
+ tsx_source: string;
1176
+ theme_id: string | null;
1175
1177
  to: {
1176
- type: "user-primary-email";
1177
1178
  user_id: string;
1179
+ type: "user-primary-email";
1178
1180
  } | {
1179
- type: "user-custom-emails";
1180
1181
  user_id: string;
1182
+ type: "user-custom-emails";
1181
1183
  emails: string[];
1182
1184
  } | {
1183
1185
  type: "custom-emails";
1184
1186
  emails: string[];
1185
1187
  };
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,32 +1207,32 @@ 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;
1214
1214
  started_sending_at_millis: number;
1215
1215
  delivery_delayed_at_millis: number;
1216
1216
  } | {
1217
+ status: "sent";
1217
1218
  id: string;
1218
1219
  html: string | null;
1219
1220
  text: string | null;
1220
- status: "sent";
1221
1221
  created_at_millis: number;
1222
- subject: string;
1222
+ updated_at_millis: number;
1223
+ tsx_source: string;
1224
+ theme_id: string | null;
1223
1225
  to: {
1224
- type: "user-primary-email";
1225
1226
  user_id: string;
1227
+ type: "user-primary-email";
1226
1228
  } | {
1227
- type: "user-custom-emails";
1228
1229
  user_id: string;
1230
+ type: "user-custom-emails";
1229
1231
  emails: string[];
1230
1232
  } | {
1231
1233
  type: "custom-emails";
1232
1234
  emails: string[];
1233
1235
  };
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;
@@ -1263,26 +1263,25 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1263
1263
  delivered_at_millis: number;
1264
1264
  can_have_delivery_info: boolean;
1265
1265
  } | {
1266
+ status: "opened";
1266
1267
  id: string;
1267
1268
  html: string | null;
1268
1269
  text: string | null;
1269
- status: "opened";
1270
1270
  created_at_millis: number;
1271
- subject: string;
1271
+ updated_at_millis: number;
1272
+ tsx_source: string;
1273
+ theme_id: string | null;
1272
1274
  to: {
1273
- type: "user-primary-email";
1274
1275
  user_id: string;
1276
+ type: "user-primary-email";
1275
1277
  } | {
1276
- type: "user-custom-emails";
1277
1278
  user_id: string;
1279
+ type: "user-custom-emails";
1278
1280
  emails: string[];
1279
1281
  } | {
1280
1282
  type: "custom-emails";
1281
1283
  emails: string[];
1282
1284
  };
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;
@@ -1313,26 +1313,25 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1313
1313
  can_have_delivery_info: boolean;
1314
1314
  opened_at_millis: number;
1315
1315
  } | {
1316
+ status: "clicked";
1316
1317
  id: string;
1317
1318
  html: string | null;
1318
1319
  text: string | null;
1319
- status: "clicked";
1320
1320
  created_at_millis: number;
1321
- subject: string;
1321
+ updated_at_millis: number;
1322
+ tsx_source: string;
1323
+ theme_id: string | null;
1322
1324
  to: {
1323
- type: "user-primary-email";
1324
1325
  user_id: string;
1326
+ type: "user-primary-email";
1325
1327
  } | {
1326
- type: "user-custom-emails";
1327
1328
  user_id: string;
1329
+ type: "user-custom-emails";
1328
1330
  emails: string[];
1329
1331
  } | {
1330
1332
  type: "custom-emails";
1331
1333
  emails: string[];
1332
1334
  };
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;
@@ -1363,26 +1363,25 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1363
1363
  can_have_delivery_info: boolean;
1364
1364
  clicked_at_millis: number;
1365
1365
  } | {
1366
+ status: "marked-as-spam";
1366
1367
  id: string;
1367
1368
  html: string | null;
1368
1369
  text: string | null;
1369
- status: "marked-as-spam";
1370
1370
  created_at_millis: number;
1371
- subject: string;
1371
+ updated_at_millis: number;
1372
+ tsx_source: string;
1373
+ theme_id: string | null;
1372
1374
  to: {
1373
- type: "user-primary-email";
1374
1375
  user_id: string;
1376
+ type: "user-primary-email";
1375
1377
  } | {
1376
- type: "user-custom-emails";
1377
1378
  user_id: string;
1379
+ type: "user-custom-emails";
1378
1380
  emails: string[];
1379
1381
  } | {
1380
1382
  type: "custom-emails";
1381
1383
  emails: string[];
1382
1384
  };
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;
@@ -1417,11 +1417,11 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1417
1417
  tsx_source: string | undefined;
1418
1418
  theme_id: string | null | undefined;
1419
1419
  to: {
1420
- type: "user-primary-email";
1421
1420
  user_id: string;
1421
+ type: "user-primary-email";
1422
1422
  } | {
1423
- type: "user-custom-emails";
1424
1423
  user_id: string;
1424
+ type: "user-custom-emails";
1425
1425
  emails: string[];
1426
1426
  } | {
1427
1427
  type: "custom-emails";