@hexclave/shared 1.0.19 → 1.0.20

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 (73) hide show
  1. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  2. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +4 -5
  3. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  4. package/dist/config/schema-fuzzer.test.js +4 -1
  5. package/dist/config/schema-fuzzer.test.js.map +1 -1
  6. package/dist/config/schema.d.ts +192 -183
  7. package/dist/config/schema.d.ts.map +1 -1
  8. package/dist/config/schema.js +7 -3
  9. package/dist/config/schema.js.map +1 -1
  10. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  11. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +4 -5
  12. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  13. package/dist/esm/config/schema-fuzzer.test.js +4 -1
  14. package/dist/esm/config/schema-fuzzer.test.js.map +1 -1
  15. package/dist/esm/config/schema.d.ts +192 -183
  16. package/dist/esm/config/schema.d.ts.map +1 -1
  17. package/dist/esm/config/schema.js +8 -4
  18. package/dist/esm/config/schema.js.map +1 -1
  19. package/dist/esm/interface/admin-metrics.d.ts +10 -10
  20. package/dist/esm/interface/conversations.d.ts +8 -8
  21. package/dist/esm/interface/crud/current-user.d.ts +5 -5
  22. package/dist/esm/interface/crud/email-outbox.d.ts +250 -250
  23. package/dist/esm/interface/crud/products.d.ts +15 -15
  24. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  25. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  26. package/dist/esm/interface/crud/team-member-profiles.d.ts +8 -8
  27. package/dist/esm/interface/crud/transactions.d.ts +21 -21
  28. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  29. package/dist/esm/interface/crud/users.d.ts +4 -4
  30. package/dist/esm/interface/page-component-versions.d.ts.map +1 -1
  31. package/dist/esm/interface/page-component-versions.js +20 -4
  32. package/dist/esm/interface/page-component-versions.js.map +1 -1
  33. package/dist/esm/known-errors.d.ts +5 -5
  34. package/dist/esm/schema-fields.d.ts +8 -6
  35. package/dist/esm/schema-fields.d.ts.map +1 -1
  36. package/dist/esm/schema-fields.js +9 -1
  37. package/dist/esm/schema-fields.js.map +1 -1
  38. package/dist/esm/sessions.d.ts +7 -7
  39. package/dist/esm/utils/oauth.d.ts +8 -1
  40. package/dist/esm/utils/oauth.d.ts.map +1 -1
  41. package/dist/esm/utils/oauth.js +7 -1
  42. package/dist/esm/utils/oauth.js.map +1 -1
  43. package/dist/interface/admin-metrics.d.ts +10 -10
  44. package/dist/interface/conversations.d.ts +8 -8
  45. package/dist/interface/crud/current-user.d.ts +5 -5
  46. package/dist/interface/crud/email-outbox.d.ts +250 -250
  47. package/dist/interface/crud/products.d.ts +15 -15
  48. package/dist/interface/crud/products.d.ts.map +1 -1
  49. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  50. package/dist/interface/crud/team-member-profiles.d.ts +8 -8
  51. package/dist/interface/crud/transactions.d.ts +21 -21
  52. package/dist/interface/crud/transactions.d.ts.map +1 -1
  53. package/dist/interface/crud/users.d.ts +4 -4
  54. package/dist/interface/page-component-versions.d.ts.map +1 -1
  55. package/dist/interface/page-component-versions.js +20 -4
  56. package/dist/interface/page-component-versions.js.map +1 -1
  57. package/dist/known-errors.d.ts +5 -5
  58. package/dist/schema-fields.d.ts +8 -6
  59. package/dist/schema-fields.d.ts.map +1 -1
  60. package/dist/schema-fields.js +10 -0
  61. package/dist/schema-fields.js.map +1 -1
  62. package/dist/sessions.d.ts +7 -7
  63. package/dist/utils/oauth.d.ts +8 -1
  64. package/dist/utils/oauth.d.ts.map +1 -1
  65. package/dist/utils/oauth.js +7 -0
  66. package/dist/utils/oauth.js.map +1 -1
  67. package/package.json +1 -1
  68. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +4 -5
  69. package/src/config/schema-fuzzer.test.ts +3 -0
  70. package/src/config/schema.ts +9 -4
  71. package/src/interface/page-component-versions.ts +20 -4
  72. package/src/schema-fields.ts +2 -0
  73. package/src/utils/oauth.tsx +8 -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,25 +160,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
160
160
  rendered_at_millis: number;
161
161
  render_error: string;
162
162
  } | {
163
- id: string;
164
163
  status: "scheduled";
164
+ id: string;
165
165
  subject: string;
166
166
  created_at_millis: number;
167
- notification_category_id: string | null;
167
+ html: string | null;
168
+ text: string | null;
169
+ updated_at_millis: number;
170
+ tsx_source: string;
171
+ theme_id: string | null;
168
172
  to: {
169
- type: "user-primary-email";
170
173
  user_id: string;
174
+ type: "user-primary-email";
171
175
  } | {
172
- type: "user-custom-emails";
173
176
  user_id: string;
177
+ type: "user-custom-emails";
174
178
  emails: string[];
175
179
  } | {
176
180
  type: "custom-emails";
177
181
  emails: string[];
178
182
  };
179
- updated_at_millis: number;
180
- tsx_source: string;
181
- theme_id: string | null;
182
183
  variables: Record<string, {} | null>;
183
184
  skip_deliverability_check: boolean;
184
185
  scheduled_at_millis: number;
@@ -201,30 +202,30 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
201
202
  has_delivered: boolean;
202
203
  started_rendering_at_millis: number;
203
204
  rendered_at_millis: number;
204
- html: string | null;
205
- text: string | null;
206
205
  is_transactional: boolean;
207
206
  is_high_priority: boolean;
207
+ notification_category_id: string | null;
208
208
  } | {
209
- id: string;
210
209
  status: "queued";
210
+ id: string;
211
211
  subject: string;
212
212
  created_at_millis: number;
213
- notification_category_id: string | null;
213
+ html: string | null;
214
+ text: string | null;
215
+ updated_at_millis: number;
216
+ tsx_source: string;
217
+ theme_id: string | null;
214
218
  to: {
215
- type: "user-primary-email";
216
219
  user_id: string;
220
+ type: "user-primary-email";
217
221
  } | {
218
- type: "user-custom-emails";
219
222
  user_id: string;
223
+ type: "user-custom-emails";
220
224
  emails: string[];
221
225
  } | {
222
226
  type: "custom-emails";
223
227
  emails: string[];
224
228
  };
225
- updated_at_millis: number;
226
- tsx_source: string;
227
- theme_id: string | null;
228
229
  variables: Record<string, {} | null>;
229
230
  skip_deliverability_check: boolean;
230
231
  scheduled_at_millis: number;
@@ -247,30 +248,30 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
247
248
  has_delivered: boolean;
248
249
  started_rendering_at_millis: number;
249
250
  rendered_at_millis: number;
250
- html: string | null;
251
- text: string | null;
252
251
  is_transactional: boolean;
253
252
  is_high_priority: boolean;
253
+ notification_category_id: string | null;
254
254
  } | {
255
- id: string;
256
255
  status: "sending";
256
+ id: string;
257
257
  subject: string;
258
258
  created_at_millis: number;
259
- notification_category_id: string | null;
259
+ html: string | null;
260
+ text: string | null;
261
+ updated_at_millis: number;
262
+ tsx_source: string;
263
+ theme_id: string | null;
260
264
  to: {
261
- type: "user-primary-email";
262
265
  user_id: string;
266
+ type: "user-primary-email";
263
267
  } | {
264
- type: "user-custom-emails";
265
268
  user_id: string;
269
+ type: "user-custom-emails";
266
270
  emails: string[];
267
271
  } | {
268
272
  type: "custom-emails";
269
273
  emails: string[];
270
274
  };
271
- updated_at_millis: number;
272
- tsx_source: string;
273
- theme_id: string | null;
274
275
  variables: Record<string, {} | null>;
275
276
  skip_deliverability_check: boolean;
276
277
  scheduled_at_millis: number;
@@ -293,31 +294,31 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
293
294
  has_delivered: boolean;
294
295
  started_rendering_at_millis: number;
295
296
  rendered_at_millis: number;
296
- html: string | null;
297
- text: string | null;
298
297
  is_transactional: boolean;
299
298
  is_high_priority: boolean;
299
+ notification_category_id: string | null;
300
300
  started_sending_at_millis: number;
301
301
  } | {
302
- id: string;
303
302
  status: "server-error";
303
+ id: string;
304
304
  subject: string;
305
305
  created_at_millis: number;
306
- notification_category_id: string | null;
306
+ html: string | null;
307
+ text: string | null;
308
+ updated_at_millis: number;
309
+ tsx_source: string;
310
+ theme_id: string | null;
307
311
  to: {
308
- type: "user-primary-email";
309
312
  user_id: string;
313
+ type: "user-primary-email";
310
314
  } | {
311
- type: "user-custom-emails";
312
315
  user_id: string;
316
+ type: "user-custom-emails";
313
317
  emails: string[];
314
318
  } | {
315
319
  type: "custom-emails";
316
320
  emails: string[];
317
321
  };
318
- updated_at_millis: number;
319
- tsx_source: string;
320
- theme_id: string | null;
321
322
  variables: Record<string, {} | null>;
322
323
  skip_deliverability_check: boolean;
323
324
  scheduled_at_millis: number;
@@ -340,40 +341,39 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
340
341
  has_delivered: boolean;
341
342
  started_rendering_at_millis: number;
342
343
  rendered_at_millis: number;
343
- html: string | null;
344
- text: string | null;
345
344
  is_transactional: boolean;
346
345
  is_high_priority: boolean;
346
+ notification_category_id: string | null;
347
347
  started_sending_at_millis: number;
348
348
  error_at_millis: number;
349
349
  server_error: string;
350
350
  } | {
351
351
  subject?: string | undefined;
352
- notification_category_id?: string | null | undefined;
353
- started_rendering_at_millis?: number | undefined;
354
- rendered_at_millis?: number | undefined;
355
352
  html?: string | null | undefined;
356
353
  text?: string | null | undefined;
354
+ started_rendering_at_millis?: number | undefined;
355
+ rendered_at_millis?: number | undefined;
357
356
  is_transactional?: boolean | undefined;
358
357
  is_high_priority?: boolean | undefined;
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,25 +398,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
398
398
  skipped_reason: string;
399
399
  skipped_details: Record<string, {} | null>;
400
400
  } | {
401
- id: string;
402
401
  status: "bounced";
402
+ id: string;
403
403
  subject: string;
404
404
  created_at_millis: number;
405
- notification_category_id: string | null;
405
+ html: string | null;
406
+ text: string | null;
407
+ updated_at_millis: number;
408
+ tsx_source: string;
409
+ theme_id: string | null;
406
410
  to: {
407
- type: "user-primary-email";
408
411
  user_id: string;
412
+ type: "user-primary-email";
409
413
  } | {
410
- type: "user-custom-emails";
411
414
  user_id: string;
415
+ type: "user-custom-emails";
412
416
  emails: string[];
413
417
  } | {
414
418
  type: "custom-emails";
415
419
  emails: string[];
416
420
  };
417
- updated_at_millis: number;
418
- tsx_source: string;
419
- theme_id: string | null;
420
421
  variables: Record<string, {} | null>;
421
422
  skip_deliverability_check: boolean;
422
423
  scheduled_at_millis: number;
@@ -439,32 +440,32 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
439
440
  has_delivered: boolean;
440
441
  started_rendering_at_millis: number;
441
442
  rendered_at_millis: number;
442
- html: string | null;
443
- text: string | null;
444
443
  is_transactional: boolean;
445
444
  is_high_priority: boolean;
445
+ notification_category_id: string | null;
446
446
  started_sending_at_millis: number;
447
447
  bounced_at_millis: number;
448
448
  } | {
449
- id: string;
450
449
  status: "delivery-delayed";
450
+ id: string;
451
451
  subject: string;
452
452
  created_at_millis: number;
453
- notification_category_id: string | null;
453
+ html: string | null;
454
+ text: string | null;
455
+ updated_at_millis: number;
456
+ tsx_source: string;
457
+ theme_id: string | null;
454
458
  to: {
455
- type: "user-primary-email";
456
459
  user_id: string;
460
+ type: "user-primary-email";
457
461
  } | {
458
- type: "user-custom-emails";
459
462
  user_id: string;
463
+ type: "user-custom-emails";
460
464
  emails: string[];
461
465
  } | {
462
466
  type: "custom-emails";
463
467
  emails: string[];
464
468
  };
465
- updated_at_millis: number;
466
- tsx_source: string;
467
- theme_id: string | null;
468
469
  variables: Record<string, {} | null>;
469
470
  skip_deliverability_check: boolean;
470
471
  scheduled_at_millis: number;
@@ -487,32 +488,32 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
487
488
  has_delivered: boolean;
488
489
  started_rendering_at_millis: number;
489
490
  rendered_at_millis: number;
490
- html: string | null;
491
- text: string | null;
492
491
  is_transactional: boolean;
493
492
  is_high_priority: boolean;
493
+ notification_category_id: string | null;
494
494
  started_sending_at_millis: number;
495
495
  delivery_delayed_at_millis: number;
496
496
  } | {
497
- id: string;
498
497
  status: "sent";
498
+ id: string;
499
499
  subject: string;
500
500
  created_at_millis: number;
501
- notification_category_id: string | null;
501
+ html: string | null;
502
+ text: string | null;
503
+ updated_at_millis: number;
504
+ tsx_source: string;
505
+ theme_id: string | null;
502
506
  to: {
503
- type: "user-primary-email";
504
507
  user_id: string;
508
+ type: "user-primary-email";
505
509
  } | {
506
- type: "user-custom-emails";
507
510
  user_id: string;
511
+ type: "user-custom-emails";
508
512
  emails: string[];
509
513
  } | {
510
514
  type: "custom-emails";
511
515
  emails: string[];
512
516
  };
513
- updated_at_millis: number;
514
- tsx_source: string;
515
- theme_id: string | null;
516
517
  variables: Record<string, {} | null>;
517
518
  skip_deliverability_check: boolean;
518
519
  scheduled_at_millis: number;
@@ -535,33 +536,33 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
535
536
  has_delivered: boolean;
536
537
  started_rendering_at_millis: number;
537
538
  rendered_at_millis: number;
538
- html: string | null;
539
- text: string | null;
540
539
  is_transactional: boolean;
541
540
  is_high_priority: boolean;
541
+ notification_category_id: string | null;
542
542
  started_sending_at_millis: number;
543
543
  delivered_at_millis: number;
544
544
  can_have_delivery_info: boolean;
545
545
  } | {
546
- id: string;
547
546
  status: "opened";
547
+ id: string;
548
548
  subject: string;
549
549
  created_at_millis: number;
550
- notification_category_id: string | null;
550
+ html: string | null;
551
+ text: string | null;
552
+ updated_at_millis: number;
553
+ tsx_source: string;
554
+ theme_id: string | null;
551
555
  to: {
552
- type: "user-primary-email";
553
556
  user_id: string;
557
+ type: "user-primary-email";
554
558
  } | {
555
- type: "user-custom-emails";
556
559
  user_id: string;
560
+ type: "user-custom-emails";
557
561
  emails: string[];
558
562
  } | {
559
563
  type: "custom-emails";
560
564
  emails: string[];
561
565
  };
562
- updated_at_millis: number;
563
- tsx_source: string;
564
- theme_id: string | null;
565
566
  variables: Record<string, {} | null>;
566
567
  skip_deliverability_check: boolean;
567
568
  scheduled_at_millis: number;
@@ -584,34 +585,34 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
584
585
  has_delivered: boolean;
585
586
  started_rendering_at_millis: number;
586
587
  rendered_at_millis: number;
587
- html: string | null;
588
- text: string | null;
589
588
  is_transactional: boolean;
590
589
  is_high_priority: boolean;
590
+ notification_category_id: string | null;
591
591
  started_sending_at_millis: number;
592
592
  delivered_at_millis: number;
593
593
  can_have_delivery_info: boolean;
594
594
  opened_at_millis: number;
595
595
  } | {
596
- id: string;
597
596
  status: "clicked";
597
+ id: string;
598
598
  subject: string;
599
599
  created_at_millis: number;
600
- notification_category_id: string | null;
600
+ html: string | null;
601
+ text: string | null;
602
+ updated_at_millis: number;
603
+ tsx_source: string;
604
+ theme_id: string | null;
601
605
  to: {
602
- type: "user-primary-email";
603
606
  user_id: string;
607
+ type: "user-primary-email";
604
608
  } | {
605
- type: "user-custom-emails";
606
609
  user_id: string;
610
+ type: "user-custom-emails";
607
611
  emails: string[];
608
612
  } | {
609
613
  type: "custom-emails";
610
614
  emails: string[];
611
615
  };
612
- updated_at_millis: number;
613
- tsx_source: string;
614
- theme_id: string | null;
615
616
  variables: Record<string, {} | null>;
616
617
  skip_deliverability_check: boolean;
617
618
  scheduled_at_millis: number;
@@ -634,34 +635,34 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
634
635
  has_delivered: boolean;
635
636
  started_rendering_at_millis: number;
636
637
  rendered_at_millis: number;
637
- html: string | null;
638
- text: string | null;
639
638
  is_transactional: boolean;
640
639
  is_high_priority: boolean;
640
+ notification_category_id: string | null;
641
641
  started_sending_at_millis: number;
642
642
  delivered_at_millis: number;
643
643
  can_have_delivery_info: boolean;
644
644
  clicked_at_millis: number;
645
645
  } | {
646
- id: string;
647
646
  status: "marked-as-spam";
647
+ id: string;
648
648
  subject: string;
649
649
  created_at_millis: number;
650
- notification_category_id: string | null;
650
+ html: string | null;
651
+ text: string | null;
652
+ updated_at_millis: number;
653
+ tsx_source: string;
654
+ theme_id: string | null;
651
655
  to: {
652
- type: "user-primary-email";
653
656
  user_id: string;
657
+ type: "user-primary-email";
654
658
  } | {
655
- type: "user-custom-emails";
656
659
  user_id: string;
660
+ type: "user-custom-emails";
657
661
  emails: string[];
658
662
  } | {
659
663
  type: "custom-emails";
660
664
  emails: string[];
661
665
  };
662
- updated_at_millis: number;
663
- tsx_source: string;
664
- theme_id: string | null;
665
666
  variables: Record<string, {} | null>;
666
667
  skip_deliverability_check: boolean;
667
668
  scheduled_at_millis: number;
@@ -684,10 +685,9 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
684
685
  has_delivered: boolean;
685
686
  started_rendering_at_millis: number;
686
687
  rendered_at_millis: number;
687
- html: string | null;
688
- text: string | null;
689
688
  is_transactional: boolean;
690
689
  is_high_priority: boolean;
690
+ notification_category_id: string | null;
691
691
  started_sending_at_millis: number;
692
692
  delivered_at_millis: number;
693
693
  can_have_delivery_info: boolean;
@@ -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,25 +880,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
880
880
  rendered_at_millis: number;
881
881
  render_error: string;
882
882
  } | {
883
- id: string;
884
883
  status: "scheduled";
884
+ id: string;
885
885
  subject: string;
886
886
  created_at_millis: number;
887
- notification_category_id: string | null;
887
+ html: string | null;
888
+ text: string | null;
889
+ updated_at_millis: number;
890
+ tsx_source: string;
891
+ theme_id: string | null;
888
892
  to: {
889
- type: "user-primary-email";
890
893
  user_id: string;
894
+ type: "user-primary-email";
891
895
  } | {
892
- type: "user-custom-emails";
893
896
  user_id: string;
897
+ type: "user-custom-emails";
894
898
  emails: string[];
895
899
  } | {
896
900
  type: "custom-emails";
897
901
  emails: string[];
898
902
  };
899
- updated_at_millis: number;
900
- tsx_source: string;
901
- theme_id: string | null;
902
903
  variables: Record<string, {} | null>;
903
904
  skip_deliverability_check: boolean;
904
905
  scheduled_at_millis: number;
@@ -921,30 +922,30 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
921
922
  has_delivered: boolean;
922
923
  started_rendering_at_millis: number;
923
924
  rendered_at_millis: number;
924
- html: string | null;
925
- text: string | null;
926
925
  is_transactional: boolean;
927
926
  is_high_priority: boolean;
927
+ notification_category_id: string | null;
928
928
  } | {
929
- id: string;
930
929
  status: "queued";
930
+ id: string;
931
931
  subject: string;
932
932
  created_at_millis: number;
933
- notification_category_id: string | null;
933
+ html: string | null;
934
+ text: string | null;
935
+ updated_at_millis: number;
936
+ tsx_source: string;
937
+ theme_id: string | null;
934
938
  to: {
935
- type: "user-primary-email";
936
939
  user_id: string;
940
+ type: "user-primary-email";
937
941
  } | {
938
- type: "user-custom-emails";
939
942
  user_id: string;
943
+ type: "user-custom-emails";
940
944
  emails: string[];
941
945
  } | {
942
946
  type: "custom-emails";
943
947
  emails: string[];
944
948
  };
945
- updated_at_millis: number;
946
- tsx_source: string;
947
- theme_id: string | null;
948
949
  variables: Record<string, {} | null>;
949
950
  skip_deliverability_check: boolean;
950
951
  scheduled_at_millis: number;
@@ -967,30 +968,30 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
967
968
  has_delivered: boolean;
968
969
  started_rendering_at_millis: number;
969
970
  rendered_at_millis: number;
970
- html: string | null;
971
- text: string | null;
972
971
  is_transactional: boolean;
973
972
  is_high_priority: boolean;
973
+ notification_category_id: string | null;
974
974
  } | {
975
- id: string;
976
975
  status: "sending";
976
+ id: string;
977
977
  subject: string;
978
978
  created_at_millis: number;
979
- notification_category_id: string | null;
979
+ html: string | null;
980
+ text: string | null;
981
+ updated_at_millis: number;
982
+ tsx_source: string;
983
+ theme_id: string | null;
980
984
  to: {
981
- type: "user-primary-email";
982
985
  user_id: string;
986
+ type: "user-primary-email";
983
987
  } | {
984
- type: "user-custom-emails";
985
988
  user_id: string;
989
+ type: "user-custom-emails";
986
990
  emails: string[];
987
991
  } | {
988
992
  type: "custom-emails";
989
993
  emails: string[];
990
994
  };
991
- updated_at_millis: number;
992
- tsx_source: string;
993
- theme_id: string | null;
994
995
  variables: Record<string, {} | null>;
995
996
  skip_deliverability_check: boolean;
996
997
  scheduled_at_millis: number;
@@ -1013,31 +1014,31 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1013
1014
  has_delivered: boolean;
1014
1015
  started_rendering_at_millis: number;
1015
1016
  rendered_at_millis: number;
1016
- html: string | null;
1017
- text: string | null;
1018
1017
  is_transactional: boolean;
1019
1018
  is_high_priority: boolean;
1019
+ notification_category_id: string | null;
1020
1020
  started_sending_at_millis: number;
1021
1021
  } | {
1022
- id: string;
1023
1022
  status: "server-error";
1023
+ id: string;
1024
1024
  subject: string;
1025
1025
  created_at_millis: number;
1026
- notification_category_id: string | null;
1026
+ html: string | null;
1027
+ text: string | null;
1028
+ updated_at_millis: number;
1029
+ tsx_source: string;
1030
+ theme_id: string | null;
1027
1031
  to: {
1028
- type: "user-primary-email";
1029
1032
  user_id: string;
1033
+ type: "user-primary-email";
1030
1034
  } | {
1031
- type: "user-custom-emails";
1032
1035
  user_id: string;
1036
+ type: "user-custom-emails";
1033
1037
  emails: string[];
1034
1038
  } | {
1035
1039
  type: "custom-emails";
1036
1040
  emails: string[];
1037
1041
  };
1038
- updated_at_millis: number;
1039
- tsx_source: string;
1040
- theme_id: string | null;
1041
1042
  variables: Record<string, {} | null>;
1042
1043
  skip_deliverability_check: boolean;
1043
1044
  scheduled_at_millis: number;
@@ -1060,40 +1061,39 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1060
1061
  has_delivered: boolean;
1061
1062
  started_rendering_at_millis: number;
1062
1063
  rendered_at_millis: number;
1063
- html: string | null;
1064
- text: string | null;
1065
1064
  is_transactional: boolean;
1066
1065
  is_high_priority: boolean;
1066
+ notification_category_id: string | null;
1067
1067
  started_sending_at_millis: number;
1068
1068
  error_at_millis: number;
1069
1069
  server_error: string;
1070
1070
  } | {
1071
1071
  subject?: string | undefined;
1072
- notification_category_id?: string | null | undefined;
1073
- started_rendering_at_millis?: number | undefined;
1074
- rendered_at_millis?: number | undefined;
1075
1072
  html?: string | null | undefined;
1076
1073
  text?: string | null | undefined;
1074
+ started_rendering_at_millis?: number | undefined;
1075
+ rendered_at_millis?: number | undefined;
1077
1076
  is_transactional?: boolean | undefined;
1078
1077
  is_high_priority?: boolean | undefined;
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,25 +1118,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1118
1118
  skipped_reason: string;
1119
1119
  skipped_details: Record<string, {} | null>;
1120
1120
  } | {
1121
- id: string;
1122
1121
  status: "bounced";
1122
+ id: string;
1123
1123
  subject: string;
1124
1124
  created_at_millis: number;
1125
- notification_category_id: string | null;
1125
+ html: string | null;
1126
+ text: string | null;
1127
+ updated_at_millis: number;
1128
+ tsx_source: string;
1129
+ theme_id: string | null;
1126
1130
  to: {
1127
- type: "user-primary-email";
1128
1131
  user_id: string;
1132
+ type: "user-primary-email";
1129
1133
  } | {
1130
- type: "user-custom-emails";
1131
1134
  user_id: string;
1135
+ type: "user-custom-emails";
1132
1136
  emails: string[];
1133
1137
  } | {
1134
1138
  type: "custom-emails";
1135
1139
  emails: string[];
1136
1140
  };
1137
- updated_at_millis: number;
1138
- tsx_source: string;
1139
- theme_id: string | null;
1140
1141
  variables: Record<string, {} | null>;
1141
1142
  skip_deliverability_check: boolean;
1142
1143
  scheduled_at_millis: number;
@@ -1159,32 +1160,32 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1159
1160
  has_delivered: boolean;
1160
1161
  started_rendering_at_millis: number;
1161
1162
  rendered_at_millis: number;
1162
- html: string | null;
1163
- text: string | null;
1164
1163
  is_transactional: boolean;
1165
1164
  is_high_priority: boolean;
1165
+ notification_category_id: string | null;
1166
1166
  started_sending_at_millis: number;
1167
1167
  bounced_at_millis: number;
1168
1168
  } | {
1169
- id: string;
1170
1169
  status: "delivery-delayed";
1170
+ id: string;
1171
1171
  subject: string;
1172
1172
  created_at_millis: number;
1173
- notification_category_id: string | null;
1173
+ html: string | null;
1174
+ text: string | null;
1175
+ updated_at_millis: number;
1176
+ tsx_source: string;
1177
+ theme_id: string | null;
1174
1178
  to: {
1175
- type: "user-primary-email";
1176
1179
  user_id: string;
1180
+ type: "user-primary-email";
1177
1181
  } | {
1178
- type: "user-custom-emails";
1179
1182
  user_id: string;
1183
+ type: "user-custom-emails";
1180
1184
  emails: string[];
1181
1185
  } | {
1182
1186
  type: "custom-emails";
1183
1187
  emails: string[];
1184
1188
  };
1185
- updated_at_millis: number;
1186
- tsx_source: string;
1187
- theme_id: string | null;
1188
1189
  variables: Record<string, {} | null>;
1189
1190
  skip_deliverability_check: boolean;
1190
1191
  scheduled_at_millis: number;
@@ -1207,32 +1208,32 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1207
1208
  has_delivered: boolean;
1208
1209
  started_rendering_at_millis: number;
1209
1210
  rendered_at_millis: number;
1210
- html: string | null;
1211
- text: string | null;
1212
1211
  is_transactional: boolean;
1213
1212
  is_high_priority: boolean;
1213
+ notification_category_id: string | null;
1214
1214
  started_sending_at_millis: number;
1215
1215
  delivery_delayed_at_millis: number;
1216
1216
  } | {
1217
- id: string;
1218
1217
  status: "sent";
1218
+ id: string;
1219
1219
  subject: string;
1220
1220
  created_at_millis: number;
1221
- notification_category_id: string | null;
1221
+ html: string | null;
1222
+ text: string | null;
1223
+ updated_at_millis: number;
1224
+ tsx_source: string;
1225
+ theme_id: string | null;
1222
1226
  to: {
1223
- type: "user-primary-email";
1224
1227
  user_id: string;
1228
+ type: "user-primary-email";
1225
1229
  } | {
1226
- type: "user-custom-emails";
1227
1230
  user_id: string;
1231
+ type: "user-custom-emails";
1228
1232
  emails: string[];
1229
1233
  } | {
1230
1234
  type: "custom-emails";
1231
1235
  emails: string[];
1232
1236
  };
1233
- updated_at_millis: number;
1234
- tsx_source: string;
1235
- theme_id: string | null;
1236
1237
  variables: Record<string, {} | null>;
1237
1238
  skip_deliverability_check: boolean;
1238
1239
  scheduled_at_millis: number;
@@ -1255,33 +1256,33 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1255
1256
  has_delivered: boolean;
1256
1257
  started_rendering_at_millis: number;
1257
1258
  rendered_at_millis: number;
1258
- html: string | null;
1259
- text: string | null;
1260
1259
  is_transactional: boolean;
1261
1260
  is_high_priority: boolean;
1261
+ notification_category_id: string | null;
1262
1262
  started_sending_at_millis: number;
1263
1263
  delivered_at_millis: number;
1264
1264
  can_have_delivery_info: boolean;
1265
1265
  } | {
1266
- id: string;
1267
1266
  status: "opened";
1267
+ id: string;
1268
1268
  subject: string;
1269
1269
  created_at_millis: number;
1270
- notification_category_id: string | null;
1270
+ html: string | null;
1271
+ text: string | null;
1272
+ updated_at_millis: number;
1273
+ tsx_source: string;
1274
+ theme_id: string | null;
1271
1275
  to: {
1272
- type: "user-primary-email";
1273
1276
  user_id: string;
1277
+ type: "user-primary-email";
1274
1278
  } | {
1275
- type: "user-custom-emails";
1276
1279
  user_id: string;
1280
+ type: "user-custom-emails";
1277
1281
  emails: string[];
1278
1282
  } | {
1279
1283
  type: "custom-emails";
1280
1284
  emails: string[];
1281
1285
  };
1282
- updated_at_millis: number;
1283
- tsx_source: string;
1284
- theme_id: string | null;
1285
1286
  variables: Record<string, {} | null>;
1286
1287
  skip_deliverability_check: boolean;
1287
1288
  scheduled_at_millis: number;
@@ -1304,34 +1305,34 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1304
1305
  has_delivered: boolean;
1305
1306
  started_rendering_at_millis: number;
1306
1307
  rendered_at_millis: number;
1307
- html: string | null;
1308
- text: string | null;
1309
1308
  is_transactional: boolean;
1310
1309
  is_high_priority: boolean;
1310
+ notification_category_id: string | null;
1311
1311
  started_sending_at_millis: number;
1312
1312
  delivered_at_millis: number;
1313
1313
  can_have_delivery_info: boolean;
1314
1314
  opened_at_millis: number;
1315
1315
  } | {
1316
- id: string;
1317
1316
  status: "clicked";
1317
+ id: string;
1318
1318
  subject: string;
1319
1319
  created_at_millis: number;
1320
- notification_category_id: string | null;
1320
+ html: string | null;
1321
+ text: string | null;
1322
+ updated_at_millis: number;
1323
+ tsx_source: string;
1324
+ theme_id: string | null;
1321
1325
  to: {
1322
- type: "user-primary-email";
1323
1326
  user_id: string;
1327
+ type: "user-primary-email";
1324
1328
  } | {
1325
- type: "user-custom-emails";
1326
1329
  user_id: string;
1330
+ type: "user-custom-emails";
1327
1331
  emails: string[];
1328
1332
  } | {
1329
1333
  type: "custom-emails";
1330
1334
  emails: string[];
1331
1335
  };
1332
- updated_at_millis: number;
1333
- tsx_source: string;
1334
- theme_id: string | null;
1335
1336
  variables: Record<string, {} | null>;
1336
1337
  skip_deliverability_check: boolean;
1337
1338
  scheduled_at_millis: number;
@@ -1354,34 +1355,34 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1354
1355
  has_delivered: boolean;
1355
1356
  started_rendering_at_millis: number;
1356
1357
  rendered_at_millis: number;
1357
- html: string | null;
1358
- text: string | null;
1359
1358
  is_transactional: boolean;
1360
1359
  is_high_priority: boolean;
1360
+ notification_category_id: string | null;
1361
1361
  started_sending_at_millis: number;
1362
1362
  delivered_at_millis: number;
1363
1363
  can_have_delivery_info: boolean;
1364
1364
  clicked_at_millis: number;
1365
1365
  } | {
1366
- id: string;
1367
1366
  status: "marked-as-spam";
1367
+ id: string;
1368
1368
  subject: string;
1369
1369
  created_at_millis: number;
1370
- notification_category_id: string | null;
1370
+ html: string | null;
1371
+ text: string | null;
1372
+ updated_at_millis: number;
1373
+ tsx_source: string;
1374
+ theme_id: string | null;
1371
1375
  to: {
1372
- type: "user-primary-email";
1373
1376
  user_id: string;
1377
+ type: "user-primary-email";
1374
1378
  } | {
1375
- type: "user-custom-emails";
1376
1379
  user_id: string;
1380
+ type: "user-custom-emails";
1377
1381
  emails: string[];
1378
1382
  } | {
1379
1383
  type: "custom-emails";
1380
1384
  emails: string[];
1381
1385
  };
1382
- updated_at_millis: number;
1383
- tsx_source: string;
1384
- theme_id: string | null;
1385
1386
  variables: Record<string, {} | null>;
1386
1387
  skip_deliverability_check: boolean;
1387
1388
  scheduled_at_millis: number;
@@ -1404,10 +1405,9 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1404
1405
  has_delivered: boolean;
1405
1406
  started_rendering_at_millis: number;
1406
1407
  rendered_at_millis: number;
1407
- html: string | null;
1408
- text: string | null;
1409
1408
  is_transactional: boolean;
1410
1409
  is_high_priority: boolean;
1410
+ notification_category_id: string | null;
1411
1411
  started_sending_at_millis: number;
1412
1412
  delivered_at_millis: number;
1413
1413
  can_have_delivery_info: boolean;
@@ -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";