@hexclave/shared 1.0.51 → 1.0.53

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 (126) hide show
  1. package/dist/{admin-interface-CoReEE6d.d.ts → admin-interface-D9wMduWc.d.ts} +10 -10
  2. package/dist/{admin-interface-CoReEE6d.d.ts.map → admin-interface-D9wMduWc.d.ts.map} +1 -1
  3. package/dist/{admin-metrics-mSeJUgs_.d.ts → admin-metrics-bsOkw4YQ.d.ts} +11 -11
  4. package/dist/{admin-metrics-mSeJUgs_.d.ts.map → admin-metrics-bsOkw4YQ.d.ts.map} +1 -1
  5. package/dist/ai/llms/llms.d.ts.map +1 -1
  6. package/dist/ai/llms/llms.js +9 -0
  7. package/dist/ai/llms/llms.js.map +1 -1
  8. package/dist/ai/unified-prompts/reminders.js +1 -0
  9. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  10. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  11. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +11 -2
  12. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  13. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts +5 -4
  14. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +5 -2
  15. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -1
  16. package/dist/apps/apps-config.d.ts +6 -0
  17. package/dist/apps/apps-config.d.ts.map +1 -1
  18. package/dist/apps/apps-config.js +6 -0
  19. package/dist/apps/apps-config.js.map +1 -1
  20. package/dist/{client-interface-Dq3rFlfp.d.ts → client-interface-BQz4jNAC.d.ts} +8 -8
  21. package/dist/{client-interface-Dq3rFlfp.d.ts.map → client-interface-BQz4jNAC.d.ts.map} +1 -1
  22. package/dist/config/schema.d.ts +1 -1
  23. package/dist/config-authoring.d.ts +1 -1
  24. package/dist/{current-user-yKG-BuFC.d.ts → current-user-BBoN3hsn.d.ts} +6 -6
  25. package/dist/{current-user-yKG-BuFC.d.ts.map → current-user-BBoN3hsn.d.ts.map} +1 -1
  26. package/dist/{email-outbox-szT3xGTQ.d.ts → email-outbox-B1wmVPRG.d.ts} +95 -95
  27. package/dist/{email-outbox-szT3xGTQ.d.ts.map → email-outbox-B1wmVPRG.d.ts.map} +1 -1
  28. package/dist/esm/ai/llms/llms.d.ts.map +1 -1
  29. package/dist/esm/ai/llms/llms.js +9 -0
  30. package/dist/esm/ai/llms/llms.js.map +1 -1
  31. package/dist/esm/ai/unified-prompts/reminders.js +1 -0
  32. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  33. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  34. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +11 -2
  35. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  36. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts +5 -4
  37. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +5 -2
  38. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -1
  39. package/dist/esm/apps/apps-config.d.ts +6 -0
  40. package/dist/esm/apps/apps-config.d.ts.map +1 -1
  41. package/dist/esm/apps/apps-config.js +6 -0
  42. package/dist/esm/apps/apps-config.js.map +1 -1
  43. package/dist/esm/config/schema.d.ts +5 -5
  44. package/dist/esm/interface/admin-interface.js +1 -1
  45. package/dist/esm/interface/admin-metrics.d.ts +10 -10
  46. package/dist/esm/interface/client-interface.js +1 -1
  47. package/dist/esm/interface/conversations.d.ts +4 -4
  48. package/dist/esm/interface/crud/current-user.d.ts +5 -5
  49. package/dist/esm/interface/crud/email-outbox.d.ts +94 -94
  50. package/dist/esm/interface/crud/products.d.ts +15 -15
  51. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  52. package/dist/esm/interface/crud/team-member-profiles.d.ts +8 -8
  53. package/dist/esm/interface/crud/transactions.d.ts +20 -20
  54. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  55. package/dist/esm/interface/crud/users.d.ts +6 -6
  56. package/dist/esm/interface/plan-usage.d.ts +2 -2
  57. package/dist/esm/interface/server-interface.js +1 -1
  58. package/dist/esm/known-errors.d.ts +1 -1
  59. package/dist/esm/schema-fields.d.ts +2 -2
  60. package/dist/esm/sessions.d.ts +7 -7
  61. package/dist/esm/utils/esbuild.d.ts.map +1 -1
  62. package/dist/esm/utils/esbuild.js +8 -3
  63. package/dist/esm/utils/esbuild.js.map +1 -1
  64. package/dist/esm/utils/promises.d.ts +3 -1
  65. package/dist/esm/utils/promises.d.ts.map +1 -1
  66. package/dist/esm/utils/promises.js +5 -2
  67. package/dist/esm/utils/promises.js.map +1 -1
  68. package/dist/helpers/password.d.ts +1 -1
  69. package/dist/index.d.ts +4 -4
  70. package/dist/interface/admin-interface.d.ts +2 -2
  71. package/dist/interface/admin-interface.js +1 -1
  72. package/dist/interface/admin-metrics.d.ts +1 -1
  73. package/dist/interface/client-interface.d.ts +1 -1
  74. package/dist/interface/client-interface.js +1 -1
  75. package/dist/interface/conversations.d.ts +4 -4
  76. package/dist/interface/crud/current-user.d.ts +1 -1
  77. package/dist/interface/crud/email-outbox.d.ts +1 -1
  78. package/dist/interface/crud/products.d.ts +1 -1
  79. package/dist/interface/crud/project-api-keys.d.ts +1 -1
  80. package/dist/interface/crud/team-member-profiles.d.ts +1 -1
  81. package/dist/interface/crud/transactions.d.ts +1 -1
  82. package/dist/interface/crud/users.d.ts +1 -1
  83. package/dist/interface/plan-usage.d.ts +1 -1
  84. package/dist/interface/server-interface.d.ts +1 -1
  85. package/dist/interface/server-interface.js +1 -1
  86. package/dist/{known-errors-BFf8SVm8.d.ts → known-errors-Bm4a61wL.d.ts} +2 -2
  87. package/dist/{known-errors-BFf8SVm8.d.ts.map → known-errors-Bm4a61wL.d.ts.map} +1 -1
  88. package/dist/known-errors.d.ts +1 -1
  89. package/dist/{plan-usage-CFwV688o.d.ts → plan-usage-BaDxcLZ1.d.ts} +3 -3
  90. package/dist/{plan-usage-CFwV688o.d.ts.map → plan-usage-BaDxcLZ1.d.ts.map} +1 -1
  91. package/dist/{products-DzedG6oU.d.ts → products-D4o8A2W0.d.ts} +16 -16
  92. package/dist/{products-DzedG6oU.d.ts.map → products-D4o8A2W0.d.ts.map} +1 -1
  93. package/dist/{project-api-keys-Di2ENRam.d.ts → project-api-keys--7V5X_UW.d.ts} +3 -3
  94. package/dist/{project-api-keys-Di2ENRam.d.ts.map → project-api-keys--7V5X_UW.d.ts.map} +1 -1
  95. package/dist/{schema-Hy94hCXp.d.ts → schema-DV0SQUbY.d.ts} +6 -6
  96. package/dist/{schema-Hy94hCXp.d.ts.map → schema-DV0SQUbY.d.ts.map} +1 -1
  97. package/dist/{schema-fields-DhryPaD4.d.ts → schema-fields-DZtDQEEO.d.ts} +3 -3
  98. package/dist/{schema-fields-DhryPaD4.d.ts.map → schema-fields-DZtDQEEO.d.ts.map} +1 -1
  99. package/dist/schema-fields.d.ts +1 -1
  100. package/dist/{server-interface-CCkVoW9E.d.ts → server-interface-BjY-eS4Q.d.ts} +8 -8
  101. package/dist/{server-interface-CCkVoW9E.d.ts.map → server-interface-BjY-eS4Q.d.ts.map} +1 -1
  102. package/dist/{sessions-CKNkS48M.d.ts → sessions-CI-0TBQb.d.ts} +9 -9
  103. package/dist/{sessions-CKNkS48M.d.ts.map → sessions-CI-0TBQb.d.ts.map} +1 -1
  104. package/dist/sessions.d.ts +1 -1
  105. package/dist/{team-member-profiles-jSNAduek.d.ts → team-member-profiles-BoDEqx-0.d.ts} +9 -9
  106. package/dist/{team-member-profiles-jSNAduek.d.ts.map → team-member-profiles-BoDEqx-0.d.ts.map} +1 -1
  107. package/dist/{transactions-icyjJzs-.d.ts → transactions-CHNUJ42J.d.ts} +21 -21
  108. package/dist/transactions-CHNUJ42J.d.ts.map +1 -0
  109. package/dist/{users-CCg66YDE.d.ts → users-DHNRwoSz.d.ts} +7 -7
  110. package/dist/{users-CCg66YDE.d.ts.map → users-DHNRwoSz.d.ts.map} +1 -1
  111. package/dist/utils/esbuild.d.ts.map +1 -1
  112. package/dist/utils/esbuild.js +8 -3
  113. package/dist/utils/esbuild.js.map +1 -1
  114. package/dist/utils/promises.d.ts +3 -1
  115. package/dist/utils/promises.d.ts.map +1 -1
  116. package/dist/utils/promises.js +5 -2
  117. package/dist/utils/promises.js.map +1 -1
  118. package/package.json +1 -1
  119. package/src/ai/llms/llms.ts +9 -0
  120. package/src/ai/unified-prompts/reminders.ts +1 -0
  121. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +41 -2
  122. package/src/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.ts +7 -4
  123. package/src/apps/apps-config.ts +6 -0
  124. package/src/utils/esbuild.tsx +18 -3
  125. package/src/utils/promises.tsx +9 -2
  126. package/dist/transactions-icyjJzs-.d.ts.map +0 -1
@@ -2,18 +2,18 @@ import { CrudTypeOf } from "../../crud.js";
2
2
 
3
3
  //#region src/interface/crud/email-outbox.d.ts
4
4
  declare const emailOutboxReadSchema: import("yup").MixedSchema<{
5
- id: string;
6
5
  status: "paused";
6
+ id: string;
7
7
  created_at_millis: number;
8
8
  updated_at_millis: number;
9
9
  tsx_source: string;
10
10
  theme_id: string | null;
11
11
  to: {
12
- type: "user-primary-email";
13
12
  user_id: string;
13
+ type: "user-primary-email";
14
14
  } | {
15
- type: "user-custom-emails";
16
15
  user_id: string;
16
+ type: "user-custom-emails";
17
17
  emails: string[];
18
18
  } | {
19
19
  type: "custom-emails";
@@ -40,18 +40,18 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
40
40
  has_rendered: boolean;
41
41
  has_delivered: boolean;
42
42
  } | {
43
- id: string;
44
43
  status: "preparing";
44
+ id: string;
45
45
  created_at_millis: number;
46
46
  updated_at_millis: number;
47
47
  tsx_source: string;
48
48
  theme_id: string | null;
49
49
  to: {
50
- type: "user-primary-email";
51
50
  user_id: string;
51
+ type: "user-primary-email";
52
52
  } | {
53
- type: "user-custom-emails";
54
53
  user_id: string;
54
+ type: "user-custom-emails";
55
55
  emails: string[];
56
56
  } | {
57
57
  type: "custom-emails";
@@ -78,18 +78,18 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
78
78
  has_rendered: boolean;
79
79
  has_delivered: boolean;
80
80
  } | {
81
- id: string;
82
81
  status: "rendering";
82
+ id: string;
83
83
  created_at_millis: number;
84
84
  updated_at_millis: number;
85
85
  tsx_source: string;
86
86
  theme_id: string | null;
87
87
  to: {
88
- type: "user-primary-email";
89
88
  user_id: string;
89
+ type: "user-primary-email";
90
90
  } | {
91
- type: "user-custom-emails";
92
91
  user_id: string;
92
+ type: "user-custom-emails";
93
93
  emails: string[];
94
94
  } | {
95
95
  type: "custom-emails";
@@ -117,18 +117,18 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
117
117
  has_delivered: boolean;
118
118
  started_rendering_at_millis: number;
119
119
  } | {
120
- id: string;
121
120
  status: "render-error";
121
+ id: string;
122
122
  created_at_millis: number;
123
123
  updated_at_millis: number;
124
124
  tsx_source: string;
125
125
  theme_id: string | null;
126
126
  to: {
127
- type: "user-primary-email";
128
127
  user_id: string;
128
+ type: "user-primary-email";
129
129
  } | {
130
- type: "user-custom-emails";
131
130
  user_id: string;
131
+ type: "user-custom-emails";
132
132
  emails: string[];
133
133
  } | {
134
134
  type: "custom-emails";
@@ -158,8 +158,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
158
158
  rendered_at_millis: number;
159
159
  render_error: string;
160
160
  } | {
161
- id: string;
162
161
  status: "scheduled";
162
+ id: string;
163
163
  subject: string;
164
164
  created_at_millis: number;
165
165
  html: string | null;
@@ -168,11 +168,11 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
168
168
  tsx_source: string;
169
169
  theme_id: string | null;
170
170
  to: {
171
- type: "user-primary-email";
172
171
  user_id: string;
172
+ type: "user-primary-email";
173
173
  } | {
174
- type: "user-custom-emails";
175
174
  user_id: string;
175
+ type: "user-custom-emails";
176
176
  emails: string[];
177
177
  } | {
178
178
  type: "custom-emails";
@@ -204,8 +204,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
204
204
  is_high_priority: boolean;
205
205
  notification_category_id: string | null;
206
206
  } | {
207
- id: string;
208
207
  status: "queued";
208
+ id: string;
209
209
  subject: string;
210
210
  created_at_millis: number;
211
211
  html: string | null;
@@ -214,11 +214,11 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
214
214
  tsx_source: string;
215
215
  theme_id: string | null;
216
216
  to: {
217
- type: "user-primary-email";
218
217
  user_id: string;
218
+ type: "user-primary-email";
219
219
  } | {
220
- type: "user-custom-emails";
221
220
  user_id: string;
221
+ type: "user-custom-emails";
222
222
  emails: string[];
223
223
  } | {
224
224
  type: "custom-emails";
@@ -250,8 +250,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
250
250
  is_high_priority: boolean;
251
251
  notification_category_id: string | null;
252
252
  } | {
253
- id: string;
254
253
  status: "sending";
254
+ id: string;
255
255
  subject: string;
256
256
  created_at_millis: number;
257
257
  html: string | null;
@@ -260,11 +260,11 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
260
260
  tsx_source: string;
261
261
  theme_id: string | null;
262
262
  to: {
263
- type: "user-primary-email";
264
263
  user_id: string;
264
+ type: "user-primary-email";
265
265
  } | {
266
- type: "user-custom-emails";
267
266
  user_id: string;
267
+ type: "user-custom-emails";
268
268
  emails: string[];
269
269
  } | {
270
270
  type: "custom-emails";
@@ -297,8 +297,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
297
297
  notification_category_id: string | null;
298
298
  started_sending_at_millis: number;
299
299
  } | {
300
- id: string;
301
300
  status: "server-error";
301
+ id: string;
302
302
  subject: string;
303
303
  created_at_millis: number;
304
304
  html: string | null;
@@ -307,11 +307,11 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
307
307
  tsx_source: string;
308
308
  theme_id: string | null;
309
309
  to: {
310
- type: "user-primary-email";
311
310
  user_id: string;
311
+ type: "user-primary-email";
312
312
  } | {
313
- type: "user-custom-emails";
314
313
  user_id: string;
314
+ type: "user-custom-emails";
315
315
  emails: string[];
316
316
  } | {
317
317
  type: "custom-emails";
@@ -355,18 +355,18 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
355
355
  is_high_priority?: boolean | undefined;
356
356
  notification_category_id?: string | null | undefined;
357
357
  started_sending_at_millis?: number | undefined;
358
- id: string;
359
358
  status: "skipped";
359
+ id: string;
360
360
  created_at_millis: number;
361
361
  updated_at_millis: number;
362
362
  tsx_source: string;
363
363
  theme_id: string | null;
364
364
  to: {
365
- type: "user-primary-email";
366
365
  user_id: string;
366
+ type: "user-primary-email";
367
367
  } | {
368
- type: "user-custom-emails";
369
368
  user_id: string;
369
+ type: "user-custom-emails";
370
370
  emails: string[];
371
371
  } | {
372
372
  type: "custom-emails";
@@ -396,8 +396,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
396
396
  skipped_reason: string;
397
397
  skipped_details: Record<string, {} | null>;
398
398
  } | {
399
- id: string;
400
399
  status: "bounced";
400
+ id: string;
401
401
  subject: string;
402
402
  created_at_millis: number;
403
403
  html: string | null;
@@ -406,11 +406,11 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
406
406
  tsx_source: string;
407
407
  theme_id: string | null;
408
408
  to: {
409
- type: "user-primary-email";
410
409
  user_id: string;
410
+ type: "user-primary-email";
411
411
  } | {
412
- type: "user-custom-emails";
413
412
  user_id: string;
413
+ type: "user-custom-emails";
414
414
  emails: string[];
415
415
  } | {
416
416
  type: "custom-emails";
@@ -444,8 +444,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
444
444
  started_sending_at_millis: number;
445
445
  bounced_at_millis: number;
446
446
  } | {
447
- id: string;
448
447
  status: "delivery-delayed";
448
+ id: string;
449
449
  subject: string;
450
450
  created_at_millis: number;
451
451
  html: string | null;
@@ -454,11 +454,11 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
454
454
  tsx_source: string;
455
455
  theme_id: string | null;
456
456
  to: {
457
- type: "user-primary-email";
458
457
  user_id: string;
458
+ type: "user-primary-email";
459
459
  } | {
460
- type: "user-custom-emails";
461
460
  user_id: string;
461
+ type: "user-custom-emails";
462
462
  emails: string[];
463
463
  } | {
464
464
  type: "custom-emails";
@@ -492,8 +492,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
492
492
  started_sending_at_millis: number;
493
493
  delivery_delayed_at_millis: number;
494
494
  } | {
495
- id: string;
496
495
  status: "sent";
496
+ id: string;
497
497
  subject: string;
498
498
  created_at_millis: number;
499
499
  html: string | null;
@@ -502,11 +502,11 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
502
502
  tsx_source: string;
503
503
  theme_id: string | null;
504
504
  to: {
505
- type: "user-primary-email";
506
505
  user_id: string;
506
+ type: "user-primary-email";
507
507
  } | {
508
- type: "user-custom-emails";
509
508
  user_id: string;
509
+ type: "user-custom-emails";
510
510
  emails: string[];
511
511
  } | {
512
512
  type: "custom-emails";
@@ -541,8 +541,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
541
541
  delivered_at_millis: number;
542
542
  can_have_delivery_info: boolean;
543
543
  } | {
544
- id: string;
545
544
  status: "opened";
545
+ id: string;
546
546
  subject: string;
547
547
  created_at_millis: number;
548
548
  html: string | null;
@@ -551,11 +551,11 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
551
551
  tsx_source: string;
552
552
  theme_id: string | null;
553
553
  to: {
554
- type: "user-primary-email";
555
554
  user_id: string;
555
+ type: "user-primary-email";
556
556
  } | {
557
- type: "user-custom-emails";
558
557
  user_id: string;
558
+ type: "user-custom-emails";
559
559
  emails: string[];
560
560
  } | {
561
561
  type: "custom-emails";
@@ -591,8 +591,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
591
591
  can_have_delivery_info: boolean;
592
592
  opened_at_millis: number;
593
593
  } | {
594
- id: string;
595
594
  status: "clicked";
595
+ id: string;
596
596
  subject: string;
597
597
  created_at_millis: number;
598
598
  html: string | null;
@@ -601,11 +601,11 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
601
601
  tsx_source: string;
602
602
  theme_id: string | null;
603
603
  to: {
604
- type: "user-primary-email";
605
604
  user_id: string;
605
+ type: "user-primary-email";
606
606
  } | {
607
- type: "user-custom-emails";
608
607
  user_id: string;
608
+ type: "user-custom-emails";
609
609
  emails: string[];
610
610
  } | {
611
611
  type: "custom-emails";
@@ -641,8 +641,8 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
641
641
  can_have_delivery_info: boolean;
642
642
  clicked_at_millis: number;
643
643
  } | {
644
- id: string;
645
644
  status: "marked-as-spam";
645
+ id: string;
646
646
  subject: string;
647
647
  created_at_millis: number;
648
648
  html: string | null;
@@ -651,11 +651,11 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
651
651
  tsx_source: string;
652
652
  theme_id: string | null;
653
653
  to: {
654
- type: "user-primary-email";
655
654
  user_id: string;
655
+ type: "user-primary-email";
656
656
  } | {
657
- type: "user-custom-emails";
658
657
  user_id: string;
658
+ type: "user-custom-emails";
659
659
  emails: string[];
660
660
  } | {
661
661
  type: "custom-emails";
@@ -695,11 +695,11 @@ declare const emailOutboxUpdateSchema: import("yup").ObjectSchema<{
695
695
  tsx_source: string | undefined;
696
696
  theme_id: string | null | undefined;
697
697
  to: {
698
- type: "user-primary-email";
699
698
  user_id: string;
699
+ type: "user-primary-email";
700
700
  } | {
701
- type: "user-custom-emails";
702
701
  user_id: string;
702
+ type: "user-custom-emails";
703
703
  emails: string[];
704
704
  } | {
705
705
  type: "custom-emails";
@@ -722,18 +722,18 @@ declare const emailOutboxUpdateSchema: import("yup").ObjectSchema<{
722
722
  }, "">;
723
723
  declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
724
724
  serverReadSchema: import("yup").MixedSchema<{
725
- id: string;
726
725
  status: "paused";
726
+ id: string;
727
727
  created_at_millis: number;
728
728
  updated_at_millis: number;
729
729
  tsx_source: string;
730
730
  theme_id: string | null;
731
731
  to: {
732
- type: "user-primary-email";
733
732
  user_id: string;
733
+ type: "user-primary-email";
734
734
  } | {
735
- type: "user-custom-emails";
736
735
  user_id: string;
736
+ type: "user-custom-emails";
737
737
  emails: string[];
738
738
  } | {
739
739
  type: "custom-emails";
@@ -760,18 +760,18 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
760
760
  has_rendered: boolean;
761
761
  has_delivered: boolean;
762
762
  } | {
763
- id: string;
764
763
  status: "preparing";
764
+ id: string;
765
765
  created_at_millis: number;
766
766
  updated_at_millis: number;
767
767
  tsx_source: string;
768
768
  theme_id: string | null;
769
769
  to: {
770
- type: "user-primary-email";
771
770
  user_id: string;
771
+ type: "user-primary-email";
772
772
  } | {
773
- type: "user-custom-emails";
774
773
  user_id: string;
774
+ type: "user-custom-emails";
775
775
  emails: string[];
776
776
  } | {
777
777
  type: "custom-emails";
@@ -798,18 +798,18 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
798
798
  has_rendered: boolean;
799
799
  has_delivered: boolean;
800
800
  } | {
801
- id: string;
802
801
  status: "rendering";
802
+ id: string;
803
803
  created_at_millis: number;
804
804
  updated_at_millis: number;
805
805
  tsx_source: string;
806
806
  theme_id: string | null;
807
807
  to: {
808
- type: "user-primary-email";
809
808
  user_id: string;
809
+ type: "user-primary-email";
810
810
  } | {
811
- type: "user-custom-emails";
812
811
  user_id: string;
812
+ type: "user-custom-emails";
813
813
  emails: string[];
814
814
  } | {
815
815
  type: "custom-emails";
@@ -837,18 +837,18 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
837
837
  has_delivered: boolean;
838
838
  started_rendering_at_millis: number;
839
839
  } | {
840
- id: string;
841
840
  status: "render-error";
841
+ id: string;
842
842
  created_at_millis: number;
843
843
  updated_at_millis: number;
844
844
  tsx_source: string;
845
845
  theme_id: string | null;
846
846
  to: {
847
- type: "user-primary-email";
848
847
  user_id: string;
848
+ type: "user-primary-email";
849
849
  } | {
850
- type: "user-custom-emails";
851
850
  user_id: string;
851
+ type: "user-custom-emails";
852
852
  emails: string[];
853
853
  } | {
854
854
  type: "custom-emails";
@@ -878,8 +878,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
878
878
  rendered_at_millis: number;
879
879
  render_error: string;
880
880
  } | {
881
- id: string;
882
881
  status: "scheduled";
882
+ id: string;
883
883
  subject: string;
884
884
  created_at_millis: number;
885
885
  html: string | null;
@@ -888,11 +888,11 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
888
888
  tsx_source: string;
889
889
  theme_id: string | null;
890
890
  to: {
891
- type: "user-primary-email";
892
891
  user_id: string;
892
+ type: "user-primary-email";
893
893
  } | {
894
- type: "user-custom-emails";
895
894
  user_id: string;
895
+ type: "user-custom-emails";
896
896
  emails: string[];
897
897
  } | {
898
898
  type: "custom-emails";
@@ -924,8 +924,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
924
924
  is_high_priority: boolean;
925
925
  notification_category_id: string | null;
926
926
  } | {
927
- id: string;
928
927
  status: "queued";
928
+ id: string;
929
929
  subject: string;
930
930
  created_at_millis: number;
931
931
  html: string | null;
@@ -934,11 +934,11 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
934
934
  tsx_source: string;
935
935
  theme_id: string | null;
936
936
  to: {
937
- type: "user-primary-email";
938
937
  user_id: string;
938
+ type: "user-primary-email";
939
939
  } | {
940
- type: "user-custom-emails";
941
940
  user_id: string;
941
+ type: "user-custom-emails";
942
942
  emails: string[];
943
943
  } | {
944
944
  type: "custom-emails";
@@ -970,8 +970,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
970
970
  is_high_priority: boolean;
971
971
  notification_category_id: string | null;
972
972
  } | {
973
- id: string;
974
973
  status: "sending";
974
+ id: string;
975
975
  subject: string;
976
976
  created_at_millis: number;
977
977
  html: string | null;
@@ -980,11 +980,11 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
980
980
  tsx_source: string;
981
981
  theme_id: string | null;
982
982
  to: {
983
- type: "user-primary-email";
984
983
  user_id: string;
984
+ type: "user-primary-email";
985
985
  } | {
986
- type: "user-custom-emails";
987
986
  user_id: string;
987
+ type: "user-custom-emails";
988
988
  emails: string[];
989
989
  } | {
990
990
  type: "custom-emails";
@@ -1017,8 +1017,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1017
1017
  notification_category_id: string | null;
1018
1018
  started_sending_at_millis: number;
1019
1019
  } | {
1020
- id: string;
1021
1020
  status: "server-error";
1021
+ id: string;
1022
1022
  subject: string;
1023
1023
  created_at_millis: number;
1024
1024
  html: string | null;
@@ -1027,11 +1027,11 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1027
1027
  tsx_source: string;
1028
1028
  theme_id: string | null;
1029
1029
  to: {
1030
- type: "user-primary-email";
1031
1030
  user_id: string;
1031
+ type: "user-primary-email";
1032
1032
  } | {
1033
- type: "user-custom-emails";
1034
1033
  user_id: string;
1034
+ type: "user-custom-emails";
1035
1035
  emails: string[];
1036
1036
  } | {
1037
1037
  type: "custom-emails";
@@ -1075,18 +1075,18 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1075
1075
  is_high_priority?: boolean | undefined;
1076
1076
  notification_category_id?: string | null | undefined;
1077
1077
  started_sending_at_millis?: number | undefined;
1078
- id: string;
1079
1078
  status: "skipped";
1079
+ id: string;
1080
1080
  created_at_millis: number;
1081
1081
  updated_at_millis: number;
1082
1082
  tsx_source: string;
1083
1083
  theme_id: string | null;
1084
1084
  to: {
1085
- type: "user-primary-email";
1086
1085
  user_id: string;
1086
+ type: "user-primary-email";
1087
1087
  } | {
1088
- type: "user-custom-emails";
1089
1088
  user_id: string;
1089
+ type: "user-custom-emails";
1090
1090
  emails: string[];
1091
1091
  } | {
1092
1092
  type: "custom-emails";
@@ -1116,8 +1116,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1116
1116
  skipped_reason: string;
1117
1117
  skipped_details: Record<string, {} | null>;
1118
1118
  } | {
1119
- id: string;
1120
1119
  status: "bounced";
1120
+ id: string;
1121
1121
  subject: string;
1122
1122
  created_at_millis: number;
1123
1123
  html: string | null;
@@ -1126,11 +1126,11 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1126
1126
  tsx_source: string;
1127
1127
  theme_id: string | null;
1128
1128
  to: {
1129
- type: "user-primary-email";
1130
1129
  user_id: string;
1130
+ type: "user-primary-email";
1131
1131
  } | {
1132
- type: "user-custom-emails";
1133
1132
  user_id: string;
1133
+ type: "user-custom-emails";
1134
1134
  emails: string[];
1135
1135
  } | {
1136
1136
  type: "custom-emails";
@@ -1164,8 +1164,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1164
1164
  started_sending_at_millis: number;
1165
1165
  bounced_at_millis: number;
1166
1166
  } | {
1167
- id: string;
1168
1167
  status: "delivery-delayed";
1168
+ id: string;
1169
1169
  subject: string;
1170
1170
  created_at_millis: number;
1171
1171
  html: string | null;
@@ -1174,11 +1174,11 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1174
1174
  tsx_source: string;
1175
1175
  theme_id: string | null;
1176
1176
  to: {
1177
- type: "user-primary-email";
1178
1177
  user_id: string;
1178
+ type: "user-primary-email";
1179
1179
  } | {
1180
- type: "user-custom-emails";
1181
1180
  user_id: string;
1181
+ type: "user-custom-emails";
1182
1182
  emails: string[];
1183
1183
  } | {
1184
1184
  type: "custom-emails";
@@ -1212,8 +1212,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1212
1212
  started_sending_at_millis: number;
1213
1213
  delivery_delayed_at_millis: number;
1214
1214
  } | {
1215
- id: string;
1216
1215
  status: "sent";
1216
+ id: string;
1217
1217
  subject: string;
1218
1218
  created_at_millis: number;
1219
1219
  html: string | null;
@@ -1222,11 +1222,11 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1222
1222
  tsx_source: string;
1223
1223
  theme_id: string | null;
1224
1224
  to: {
1225
- type: "user-primary-email";
1226
1225
  user_id: string;
1226
+ type: "user-primary-email";
1227
1227
  } | {
1228
- type: "user-custom-emails";
1229
1228
  user_id: string;
1229
+ type: "user-custom-emails";
1230
1230
  emails: string[];
1231
1231
  } | {
1232
1232
  type: "custom-emails";
@@ -1261,8 +1261,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1261
1261
  delivered_at_millis: number;
1262
1262
  can_have_delivery_info: boolean;
1263
1263
  } | {
1264
- id: string;
1265
1264
  status: "opened";
1265
+ id: string;
1266
1266
  subject: string;
1267
1267
  created_at_millis: number;
1268
1268
  html: string | null;
@@ -1271,11 +1271,11 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1271
1271
  tsx_source: string;
1272
1272
  theme_id: string | null;
1273
1273
  to: {
1274
- type: "user-primary-email";
1275
1274
  user_id: string;
1275
+ type: "user-primary-email";
1276
1276
  } | {
1277
- type: "user-custom-emails";
1278
1277
  user_id: string;
1278
+ type: "user-custom-emails";
1279
1279
  emails: string[];
1280
1280
  } | {
1281
1281
  type: "custom-emails";
@@ -1311,8 +1311,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1311
1311
  can_have_delivery_info: boolean;
1312
1312
  opened_at_millis: number;
1313
1313
  } | {
1314
- id: string;
1315
1314
  status: "clicked";
1315
+ id: string;
1316
1316
  subject: string;
1317
1317
  created_at_millis: number;
1318
1318
  html: string | null;
@@ -1321,11 +1321,11 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1321
1321
  tsx_source: string;
1322
1322
  theme_id: string | null;
1323
1323
  to: {
1324
- type: "user-primary-email";
1325
1324
  user_id: string;
1325
+ type: "user-primary-email";
1326
1326
  } | {
1327
- type: "user-custom-emails";
1328
1327
  user_id: string;
1328
+ type: "user-custom-emails";
1329
1329
  emails: string[];
1330
1330
  } | {
1331
1331
  type: "custom-emails";
@@ -1361,8 +1361,8 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1361
1361
  can_have_delivery_info: boolean;
1362
1362
  clicked_at_millis: number;
1363
1363
  } | {
1364
- id: string;
1365
1364
  status: "marked-as-spam";
1365
+ id: string;
1366
1366
  subject: string;
1367
1367
  created_at_millis: number;
1368
1368
  html: string | null;
@@ -1371,11 +1371,11 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1371
1371
  tsx_source: string;
1372
1372
  theme_id: string | null;
1373
1373
  to: {
1374
- type: "user-primary-email";
1375
1374
  user_id: string;
1375
+ type: "user-primary-email";
1376
1376
  } | {
1377
- type: "user-custom-emails";
1378
1377
  user_id: string;
1378
+ type: "user-custom-emails";
1379
1379
  emails: string[];
1380
1380
  } | {
1381
1381
  type: "custom-emails";
@@ -1415,11 +1415,11 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
1415
1415
  tsx_source: string | undefined;
1416
1416
  theme_id: string | null | undefined;
1417
1417
  to: {
1418
- type: "user-primary-email";
1419
1418
  user_id: string;
1419
+ type: "user-primary-email";
1420
1420
  } | {
1421
- type: "user-custom-emails";
1422
1421
  user_id: string;
1422
+ type: "user-custom-emails";
1423
1423
  emails: string[];
1424
1424
  } | {
1425
1425
  type: "custom-emails";