@hexclave/shared 1.0.14 → 1.0.16

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 (122) hide show
  1. package/dist/apps/apps-config.d.ts +6 -0
  2. package/dist/apps/apps-config.js +6 -0
  3. package/dist/apps/apps-config.js.map +1 -1
  4. package/dist/config/schema.d.ts +107 -107
  5. package/dist/config-authoring.d.ts.map +1 -1
  6. package/dist/config-authoring.js.map +1 -1
  7. package/dist/config-authoring.test.js +1 -1
  8. package/dist/config-authoring.test.js.map +1 -1
  9. package/dist/config-rendering.d.ts +2 -2
  10. package/dist/config-rendering.js +16 -0
  11. package/dist/config-rendering.js.map +1 -1
  12. package/dist/esm/apps/apps-config.d.ts +6 -0
  13. package/dist/esm/apps/apps-config.js +6 -0
  14. package/dist/esm/apps/apps-config.js.map +1 -1
  15. package/dist/esm/config/schema.d.ts +107 -107
  16. package/dist/esm/config-authoring.d.ts.map +1 -1
  17. package/dist/esm/config-authoring.js.map +1 -1
  18. package/dist/esm/config-authoring.test.js +1 -1
  19. package/dist/esm/config-authoring.test.js.map +1 -1
  20. package/dist/esm/config-rendering.d.ts +2 -2
  21. package/dist/esm/config-rendering.js +16 -2
  22. package/dist/esm/config-rendering.js.map +1 -1
  23. package/dist/esm/hexclave-config-file.d.ts +24 -1
  24. package/dist/esm/hexclave-config-file.d.ts.map +1 -1
  25. package/dist/esm/hexclave-config-file.js +69 -2
  26. package/dist/esm/hexclave-config-file.js.map +1 -1
  27. package/dist/esm/interface/admin-interface.d.ts +19 -1
  28. package/dist/esm/interface/admin-interface.d.ts.map +1 -1
  29. package/dist/esm/interface/admin-interface.js +14 -0
  30. package/dist/esm/interface/admin-interface.js.map +1 -1
  31. package/dist/esm/interface/admin-metrics.d.ts +115 -21
  32. package/dist/esm/interface/admin-metrics.d.ts.map +1 -1
  33. package/dist/esm/interface/admin-metrics.js +61 -1
  34. package/dist/esm/interface/admin-metrics.js.map +1 -1
  35. package/dist/esm/interface/conversations.d.ts +42 -42
  36. package/dist/esm/interface/crud/current-user.d.ts +15 -15
  37. package/dist/esm/interface/crud/email-outbox.d.ts +220 -220
  38. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  39. package/dist/esm/interface/crud/products.d.ts +17 -17
  40. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  41. package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
  42. package/dist/esm/interface/crud/projects.d.ts +59 -59
  43. package/dist/esm/interface/crud/team-member-profiles.d.ts +26 -26
  44. package/dist/esm/interface/crud/transactions.d.ts +15 -15
  45. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  46. package/dist/esm/interface/crud/users.d.ts +18 -18
  47. package/dist/esm/interface/webhooks.d.ts +4 -4
  48. package/dist/esm/known-errors.d.ts +5 -5
  49. package/dist/esm/schema-fields.d.ts +8 -8
  50. package/dist/esm/sessions.d.ts +7 -7
  51. package/dist/esm/utils/analytics-clickmap-overlay.d.ts +18 -0
  52. package/dist/esm/utils/analytics-clickmap-overlay.d.ts.map +1 -0
  53. package/dist/esm/utils/analytics-clickmap-overlay.js +19 -0
  54. package/dist/esm/utils/analytics-clickmap-overlay.js.map +1 -0
  55. package/dist/esm/utils/dev-tool.d.ts +31 -0
  56. package/dist/esm/utils/dev-tool.d.ts.map +1 -0
  57. package/dist/esm/utils/dev-tool.js +32 -0
  58. package/dist/esm/utils/dev-tool.js.map +1 -0
  59. package/dist/esm/utils/dom.d.ts +7 -1
  60. package/dist/esm/utils/dom.d.ts.map +1 -1
  61. package/dist/esm/utils/dom.js +20 -1
  62. package/dist/esm/utils/dom.js.map +1 -1
  63. package/dist/esm/utils/elements-chain.d.ts +38 -0
  64. package/dist/esm/utils/elements-chain.d.ts.map +1 -0
  65. package/dist/esm/utils/elements-chain.js +297 -0
  66. package/dist/esm/utils/elements-chain.js.map +1 -0
  67. package/dist/hexclave-config-file.d.ts +24 -1
  68. package/dist/hexclave-config-file.d.ts.map +1 -1
  69. package/dist/hexclave-config-file.js +71 -1
  70. package/dist/hexclave-config-file.js.map +1 -1
  71. package/dist/interface/admin-interface.d.ts +19 -1
  72. package/dist/interface/admin-interface.d.ts.map +1 -1
  73. package/dist/interface/admin-interface.js +14 -0
  74. package/dist/interface/admin-interface.js.map +1 -1
  75. package/dist/interface/admin-metrics.d.ts +115 -21
  76. package/dist/interface/admin-metrics.d.ts.map +1 -1
  77. package/dist/interface/admin-metrics.js +65 -0
  78. package/dist/interface/admin-metrics.js.map +1 -1
  79. package/dist/interface/conversations.d.ts +42 -42
  80. package/dist/interface/crud/current-user.d.ts +15 -15
  81. package/dist/interface/crud/email-outbox.d.ts +220 -220
  82. package/dist/interface/crud/invoices.d.ts +2 -2
  83. package/dist/interface/crud/products.d.ts +17 -17
  84. package/dist/interface/crud/products.d.ts.map +1 -1
  85. package/dist/interface/crud/project-api-keys.d.ts +4 -4
  86. package/dist/interface/crud/projects.d.ts +59 -59
  87. package/dist/interface/crud/team-member-profiles.d.ts +26 -26
  88. package/dist/interface/crud/transactions.d.ts +15 -15
  89. package/dist/interface/crud/transactions.d.ts.map +1 -1
  90. package/dist/interface/crud/users.d.ts +18 -18
  91. package/dist/interface/webhooks.d.ts +4 -4
  92. package/dist/known-errors.d.ts +5 -5
  93. package/dist/schema-fields.d.ts +8 -8
  94. package/dist/sessions.d.ts +7 -7
  95. package/dist/utils/analytics-clickmap-overlay.d.ts +18 -0
  96. package/dist/utils/analytics-clickmap-overlay.d.ts.map +1 -0
  97. package/dist/utils/analytics-clickmap-overlay.js +23 -0
  98. package/dist/utils/analytics-clickmap-overlay.js.map +1 -0
  99. package/dist/utils/dev-tool.d.ts +31 -0
  100. package/dist/utils/dev-tool.d.ts.map +1 -0
  101. package/dist/utils/dev-tool.js +37 -0
  102. package/dist/utils/dev-tool.js.map +1 -0
  103. package/dist/utils/dom.d.ts +7 -1
  104. package/dist/utils/dom.d.ts.map +1 -1
  105. package/dist/utils/dom.js +20 -0
  106. package/dist/utils/dom.js.map +1 -1
  107. package/dist/utils/elements-chain.d.ts +38 -0
  108. package/dist/utils/elements-chain.d.ts.map +1 -0
  109. package/dist/utils/elements-chain.js +304 -0
  110. package/dist/utils/elements-chain.js.map +1 -0
  111. package/package.json +1 -1
  112. package/src/apps/apps-config.ts +6 -0
  113. package/src/config-authoring.test.ts +1 -1
  114. package/src/config-authoring.ts +6 -6
  115. package/src/config-rendering.ts +24 -2
  116. package/src/hexclave-config-file.ts +90 -1
  117. package/src/interface/admin-interface.ts +43 -1
  118. package/src/interface/admin-metrics.ts +92 -4
  119. package/src/utils/analytics-clickmap-overlay.tsx +15 -0
  120. package/src/utils/dev-tool.tsx +30 -0
  121. package/src/utils/dom.tsx +42 -0
  122. package/src/utils/elements-chain.tsx +349 -0
@@ -4,22 +4,22 @@ 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
- status: "paused";
8
7
  id: string;
8
+ status: "paused";
9
9
  created_at_millis: number;
10
10
  updated_at_millis: number;
11
11
  tsx_source: string;
12
12
  theme_id: string | null;
13
13
  to: {
14
- user_id: string;
15
14
  type: "user-primary-email";
16
- } | {
17
- emails: string[];
18
15
  user_id: string;
19
- type: "user-custom-emails";
20
16
  } | {
17
+ type: "user-custom-emails";
18
+ user_id: string;
21
19
  emails: string[];
20
+ } | {
22
21
  type: "custom-emails";
22
+ emails: string[];
23
23
  };
24
24
  variables: Record<string, {} | null>;
25
25
  skip_deliverability_check: boolean;
@@ -42,22 +42,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
42
42
  has_rendered: boolean;
43
43
  has_delivered: boolean;
44
44
  } | {
45
- status: "preparing";
46
45
  id: string;
46
+ status: "preparing";
47
47
  created_at_millis: number;
48
48
  updated_at_millis: number;
49
49
  tsx_source: string;
50
50
  theme_id: string | null;
51
51
  to: {
52
- user_id: string;
53
52
  type: "user-primary-email";
54
- } | {
55
- emails: string[];
56
53
  user_id: string;
57
- type: "user-custom-emails";
58
54
  } | {
55
+ type: "user-custom-emails";
56
+ user_id: string;
59
57
  emails: string[];
58
+ } | {
60
59
  type: "custom-emails";
60
+ emails: string[];
61
61
  };
62
62
  variables: Record<string, {} | null>;
63
63
  skip_deliverability_check: boolean;
@@ -80,22 +80,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
80
80
  has_rendered: boolean;
81
81
  has_delivered: boolean;
82
82
  } | {
83
- status: "rendering";
84
83
  id: string;
84
+ status: "rendering";
85
85
  created_at_millis: number;
86
86
  updated_at_millis: number;
87
87
  tsx_source: string;
88
88
  theme_id: string | null;
89
89
  to: {
90
- user_id: string;
91
90
  type: "user-primary-email";
92
- } | {
93
- emails: string[];
94
91
  user_id: string;
95
- type: "user-custom-emails";
96
92
  } | {
93
+ type: "user-custom-emails";
94
+ user_id: string;
97
95
  emails: string[];
96
+ } | {
98
97
  type: "custom-emails";
98
+ emails: string[];
99
99
  };
100
100
  variables: Record<string, {} | null>;
101
101
  skip_deliverability_check: boolean;
@@ -119,22 +119,22 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
119
119
  has_delivered: boolean;
120
120
  started_rendering_at_millis: number;
121
121
  } | {
122
- status: "render-error";
123
122
  id: string;
123
+ status: "render-error";
124
124
  created_at_millis: number;
125
125
  updated_at_millis: number;
126
126
  tsx_source: string;
127
127
  theme_id: string | null;
128
128
  to: {
129
- user_id: string;
130
129
  type: "user-primary-email";
131
- } | {
132
- emails: string[];
133
130
  user_id: string;
134
- type: "user-custom-emails";
135
131
  } | {
132
+ type: "user-custom-emails";
133
+ user_id: string;
136
134
  emails: string[];
135
+ } | {
137
136
  type: "custom-emails";
137
+ emails: string[];
138
138
  };
139
139
  variables: Record<string, {} | null>;
140
140
  skip_deliverability_check: boolean;
@@ -160,26 +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
+ subject: string;
165
+ status: "scheduled";
166
+ created_at_millis: number;
163
167
  html: string | null;
164
168
  text: string | null;
165
- status: "scheduled";
166
- id: string;
167
169
  notification_category_id: string | null;
168
- created_at_millis: number;
169
- subject: string;
170
170
  updated_at_millis: number;
171
171
  tsx_source: string;
172
172
  theme_id: string | null;
173
173
  to: {
174
- user_id: string;
175
174
  type: "user-primary-email";
176
- } | {
177
- emails: string[];
178
175
  user_id: string;
179
- type: "user-custom-emails";
180
176
  } | {
177
+ type: "user-custom-emails";
178
+ user_id: string;
181
179
  emails: string[];
180
+ } | {
182
181
  type: "custom-emails";
182
+ emails: string[];
183
183
  };
184
184
  variables: Record<string, {} | null>;
185
185
  skip_deliverability_check: boolean;
@@ -206,26 +206,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
206
206
  is_transactional: boolean;
207
207
  is_high_priority: boolean;
208
208
  } | {
209
+ id: string;
210
+ subject: string;
211
+ status: "queued";
212
+ created_at_millis: number;
209
213
  html: string | null;
210
214
  text: string | null;
211
- status: "queued";
212
- id: string;
213
215
  notification_category_id: string | null;
214
- created_at_millis: number;
215
- subject: string;
216
216
  updated_at_millis: number;
217
217
  tsx_source: string;
218
218
  theme_id: string | null;
219
219
  to: {
220
- user_id: string;
221
220
  type: "user-primary-email";
222
- } | {
223
- emails: string[];
224
221
  user_id: string;
225
- type: "user-custom-emails";
226
222
  } | {
223
+ type: "user-custom-emails";
224
+ user_id: string;
227
225
  emails: string[];
226
+ } | {
228
227
  type: "custom-emails";
228
+ emails: string[];
229
229
  };
230
230
  variables: Record<string, {} | null>;
231
231
  skip_deliverability_check: boolean;
@@ -252,26 +252,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
252
252
  is_transactional: boolean;
253
253
  is_high_priority: boolean;
254
254
  } | {
255
+ id: string;
256
+ subject: string;
257
+ status: "sending";
258
+ created_at_millis: number;
255
259
  html: string | null;
256
260
  text: string | null;
257
- status: "sending";
258
- id: string;
259
261
  notification_category_id: string | null;
260
- created_at_millis: number;
261
- subject: string;
262
262
  updated_at_millis: number;
263
263
  tsx_source: string;
264
264
  theme_id: string | null;
265
265
  to: {
266
- user_id: string;
267
266
  type: "user-primary-email";
268
- } | {
269
- emails: string[];
270
267
  user_id: string;
271
- type: "user-custom-emails";
272
268
  } | {
269
+ type: "user-custom-emails";
270
+ user_id: string;
273
271
  emails: string[];
272
+ } | {
274
273
  type: "custom-emails";
274
+ emails: string[];
275
275
  };
276
276
  variables: Record<string, {} | null>;
277
277
  skip_deliverability_check: boolean;
@@ -299,26 +299,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
299
299
  is_high_priority: boolean;
300
300
  started_sending_at_millis: number;
301
301
  } | {
302
+ id: string;
303
+ subject: string;
304
+ status: "server-error";
305
+ created_at_millis: number;
302
306
  html: string | null;
303
307
  text: string | null;
304
- status: "server-error";
305
- id: string;
306
308
  notification_category_id: string | null;
307
- created_at_millis: number;
308
- subject: string;
309
309
  updated_at_millis: number;
310
310
  tsx_source: string;
311
311
  theme_id: string | null;
312
312
  to: {
313
- user_id: string;
314
313
  type: "user-primary-email";
315
- } | {
316
- emails: string[];
317
314
  user_id: string;
318
- type: "user-custom-emails";
319
315
  } | {
316
+ type: "user-custom-emails";
317
+ user_id: string;
320
318
  emails: string[];
319
+ } | {
321
320
  type: "custom-emails";
321
+ emails: string[];
322
322
  };
323
323
  variables: Record<string, {} | null>;
324
324
  skip_deliverability_check: boolean;
@@ -348,31 +348,31 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
348
348
  error_at_millis: number;
349
349
  server_error: string;
350
350
  } | {
351
+ subject?: string | undefined;
351
352
  html?: string | null | undefined;
352
353
  text?: string | null | undefined;
353
354
  notification_category_id?: string | null | undefined;
354
- subject?: string | undefined;
355
355
  started_rendering_at_millis?: number | undefined;
356
356
  rendered_at_millis?: number | undefined;
357
357
  is_transactional?: boolean | undefined;
358
358
  is_high_priority?: boolean | undefined;
359
359
  started_sending_at_millis?: number | undefined;
360
- status: "skipped";
361
360
  id: string;
361
+ status: "skipped";
362
362
  created_at_millis: number;
363
363
  updated_at_millis: number;
364
364
  tsx_source: string;
365
365
  theme_id: string | null;
366
366
  to: {
367
- user_id: string;
368
367
  type: "user-primary-email";
369
- } | {
370
- emails: string[];
371
368
  user_id: string;
372
- type: "user-custom-emails";
373
369
  } | {
370
+ type: "user-custom-emails";
371
+ user_id: string;
374
372
  emails: string[];
373
+ } | {
375
374
  type: "custom-emails";
375
+ emails: string[];
376
376
  };
377
377
  variables: Record<string, {} | null>;
378
378
  skip_deliverability_check: boolean;
@@ -398,26 +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
+ subject: string;
403
+ status: "bounced";
404
+ created_at_millis: number;
401
405
  html: string | null;
402
406
  text: string | null;
403
- status: "bounced";
404
- id: string;
405
407
  notification_category_id: string | null;
406
- created_at_millis: number;
407
- subject: string;
408
408
  updated_at_millis: number;
409
409
  tsx_source: string;
410
410
  theme_id: string | null;
411
411
  to: {
412
- user_id: string;
413
412
  type: "user-primary-email";
414
- } | {
415
- emails: string[];
416
413
  user_id: string;
417
- type: "user-custom-emails";
418
414
  } | {
415
+ type: "user-custom-emails";
416
+ user_id: string;
419
417
  emails: string[];
418
+ } | {
420
419
  type: "custom-emails";
420
+ emails: string[];
421
421
  };
422
422
  variables: Record<string, {} | null>;
423
423
  skip_deliverability_check: boolean;
@@ -446,26 +446,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
446
446
  started_sending_at_millis: number;
447
447
  bounced_at_millis: number;
448
448
  } | {
449
+ id: string;
450
+ subject: string;
451
+ status: "delivery-delayed";
452
+ created_at_millis: number;
449
453
  html: string | null;
450
454
  text: string | null;
451
- status: "delivery-delayed";
452
- id: string;
453
455
  notification_category_id: string | null;
454
- created_at_millis: number;
455
- subject: string;
456
456
  updated_at_millis: number;
457
457
  tsx_source: string;
458
458
  theme_id: string | null;
459
459
  to: {
460
- user_id: string;
461
460
  type: "user-primary-email";
462
- } | {
463
- emails: string[];
464
461
  user_id: string;
465
- type: "user-custom-emails";
466
462
  } | {
463
+ type: "user-custom-emails";
464
+ user_id: string;
467
465
  emails: string[];
466
+ } | {
468
467
  type: "custom-emails";
468
+ emails: string[];
469
469
  };
470
470
  variables: Record<string, {} | null>;
471
471
  skip_deliverability_check: boolean;
@@ -494,26 +494,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
494
494
  started_sending_at_millis: number;
495
495
  delivery_delayed_at_millis: number;
496
496
  } | {
497
+ id: string;
498
+ subject: string;
499
+ status: "sent";
500
+ created_at_millis: number;
497
501
  html: string | null;
498
502
  text: string | null;
499
- status: "sent";
500
- id: string;
501
503
  notification_category_id: string | null;
502
- created_at_millis: number;
503
- subject: string;
504
504
  updated_at_millis: number;
505
505
  tsx_source: string;
506
506
  theme_id: string | null;
507
507
  to: {
508
- user_id: string;
509
508
  type: "user-primary-email";
510
- } | {
511
- emails: string[];
512
509
  user_id: string;
513
- type: "user-custom-emails";
514
510
  } | {
511
+ type: "user-custom-emails";
512
+ user_id: string;
515
513
  emails: string[];
514
+ } | {
516
515
  type: "custom-emails";
516
+ emails: string[];
517
517
  };
518
518
  variables: Record<string, {} | null>;
519
519
  skip_deliverability_check: boolean;
@@ -543,26 +543,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
543
543
  delivered_at_millis: number;
544
544
  can_have_delivery_info: boolean;
545
545
  } | {
546
+ id: string;
547
+ subject: string;
548
+ status: "opened";
549
+ created_at_millis: number;
546
550
  html: string | null;
547
551
  text: string | null;
548
- status: "opened";
549
- id: string;
550
552
  notification_category_id: string | null;
551
- created_at_millis: number;
552
- subject: string;
553
553
  updated_at_millis: number;
554
554
  tsx_source: string;
555
555
  theme_id: string | null;
556
556
  to: {
557
- user_id: string;
558
557
  type: "user-primary-email";
559
- } | {
560
- emails: string[];
561
558
  user_id: string;
562
- type: "user-custom-emails";
563
559
  } | {
560
+ type: "user-custom-emails";
561
+ user_id: string;
564
562
  emails: string[];
563
+ } | {
565
564
  type: "custom-emails";
565
+ emails: string[];
566
566
  };
567
567
  variables: Record<string, {} | null>;
568
568
  skip_deliverability_check: boolean;
@@ -593,26 +593,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
593
593
  can_have_delivery_info: boolean;
594
594
  opened_at_millis: number;
595
595
  } | {
596
+ id: string;
597
+ subject: string;
598
+ status: "clicked";
599
+ created_at_millis: number;
596
600
  html: string | null;
597
601
  text: string | null;
598
- status: "clicked";
599
- id: string;
600
602
  notification_category_id: string | null;
601
- created_at_millis: number;
602
- subject: string;
603
603
  updated_at_millis: number;
604
604
  tsx_source: string;
605
605
  theme_id: string | null;
606
606
  to: {
607
- user_id: string;
608
607
  type: "user-primary-email";
609
- } | {
610
- emails: string[];
611
608
  user_id: string;
612
- type: "user-custom-emails";
613
609
  } | {
610
+ type: "user-custom-emails";
611
+ user_id: string;
614
612
  emails: string[];
613
+ } | {
615
614
  type: "custom-emails";
615
+ emails: string[];
616
616
  };
617
617
  variables: Record<string, {} | null>;
618
618
  skip_deliverability_check: boolean;
@@ -643,26 +643,26 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
643
643
  can_have_delivery_info: boolean;
644
644
  clicked_at_millis: number;
645
645
  } | {
646
+ id: string;
647
+ subject: string;
648
+ status: "marked-as-spam";
649
+ created_at_millis: number;
646
650
  html: string | null;
647
651
  text: string | null;
648
- status: "marked-as-spam";
649
- id: string;
650
652
  notification_category_id: string | null;
651
- created_at_millis: number;
652
- subject: string;
653
653
  updated_at_millis: number;
654
654
  tsx_source: string;
655
655
  theme_id: string | null;
656
656
  to: {
657
- user_id: string;
658
657
  type: "user-primary-email";
659
- } | {
660
- emails: string[];
661
658
  user_id: string;
662
- type: "user-custom-emails";
663
659
  } | {
660
+ type: "user-custom-emails";
661
+ user_id: string;
664
662
  emails: string[];
663
+ } | {
665
664
  type: "custom-emails";
665
+ emails: string[];
666
666
  };
667
667
  variables: Record<string, {} | null>;
668
668
  skip_deliverability_check: boolean;
@@ -697,15 +697,15 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
697
697
  tsx_source: string | undefined;
698
698
  theme_id: string | null | undefined;
699
699
  to: {
700
- user_id: string;
701
700
  type: "user-primary-email";
702
- } | {
703
- emails: string[];
704
701
  user_id: string;
705
- type: "user-custom-emails";
706
702
  } | {
703
+ type: "user-custom-emails";
704
+ user_id: string;
707
705
  emails: string[];
706
+ } | {
708
707
  type: "custom-emails";
708
+ emails: string[];
709
709
  } | undefined;
710
710
  variables: Record<string, {} | null> | undefined;
711
711
  skip_deliverability_check: boolean | undefined;
@@ -724,22 +724,22 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
724
724
  }, "">;
725
725
  declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
726
726
  serverReadSchema: yup$1.MixedSchema<{
727
- status: "paused";
728
727
  id: string;
728
+ status: "paused";
729
729
  created_at_millis: number;
730
730
  updated_at_millis: number;
731
731
  tsx_source: string;
732
732
  theme_id: string | null;
733
733
  to: {
734
- user_id: string;
735
734
  type: "user-primary-email";
736
- } | {
737
- emails: string[];
738
735
  user_id: string;
739
- type: "user-custom-emails";
740
736
  } | {
737
+ type: "user-custom-emails";
738
+ user_id: string;
741
739
  emails: string[];
740
+ } | {
742
741
  type: "custom-emails";
742
+ emails: string[];
743
743
  };
744
744
  variables: Record<string, {} | null>;
745
745
  skip_deliverability_check: boolean;
@@ -762,22 +762,22 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
762
762
  has_rendered: boolean;
763
763
  has_delivered: boolean;
764
764
  } | {
765
- status: "preparing";
766
765
  id: string;
766
+ status: "preparing";
767
767
  created_at_millis: number;
768
768
  updated_at_millis: number;
769
769
  tsx_source: string;
770
770
  theme_id: string | null;
771
771
  to: {
772
- user_id: string;
773
772
  type: "user-primary-email";
774
- } | {
775
- emails: string[];
776
773
  user_id: string;
777
- type: "user-custom-emails";
778
774
  } | {
775
+ type: "user-custom-emails";
776
+ user_id: string;
779
777
  emails: string[];
778
+ } | {
780
779
  type: "custom-emails";
780
+ emails: string[];
781
781
  };
782
782
  variables: Record<string, {} | null>;
783
783
  skip_deliverability_check: boolean;
@@ -800,22 +800,22 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
800
800
  has_rendered: boolean;
801
801
  has_delivered: boolean;
802
802
  } | {
803
- status: "rendering";
804
803
  id: string;
804
+ status: "rendering";
805
805
  created_at_millis: number;
806
806
  updated_at_millis: number;
807
807
  tsx_source: string;
808
808
  theme_id: string | null;
809
809
  to: {
810
- user_id: string;
811
810
  type: "user-primary-email";
812
- } | {
813
- emails: string[];
814
811
  user_id: string;
815
- type: "user-custom-emails";
816
812
  } | {
813
+ type: "user-custom-emails";
814
+ user_id: string;
817
815
  emails: string[];
816
+ } | {
818
817
  type: "custom-emails";
818
+ emails: string[];
819
819
  };
820
820
  variables: Record<string, {} | null>;
821
821
  skip_deliverability_check: boolean;
@@ -839,22 +839,22 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
839
839
  has_delivered: boolean;
840
840
  started_rendering_at_millis: number;
841
841
  } | {
842
- status: "render-error";
843
842
  id: string;
843
+ status: "render-error";
844
844
  created_at_millis: number;
845
845
  updated_at_millis: number;
846
846
  tsx_source: string;
847
847
  theme_id: string | null;
848
848
  to: {
849
- user_id: string;
850
849
  type: "user-primary-email";
851
- } | {
852
- emails: string[];
853
850
  user_id: string;
854
- type: "user-custom-emails";
855
851
  } | {
852
+ type: "user-custom-emails";
853
+ user_id: string;
856
854
  emails: string[];
855
+ } | {
857
856
  type: "custom-emails";
857
+ emails: string[];
858
858
  };
859
859
  variables: Record<string, {} | null>;
860
860
  skip_deliverability_check: boolean;
@@ -880,26 +880,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
880
880
  rendered_at_millis: number;
881
881
  render_error: string;
882
882
  } | {
883
+ id: string;
884
+ subject: string;
885
+ status: "scheduled";
886
+ created_at_millis: number;
883
887
  html: string | null;
884
888
  text: string | null;
885
- status: "scheduled";
886
- id: string;
887
889
  notification_category_id: string | null;
888
- created_at_millis: number;
889
- subject: string;
890
890
  updated_at_millis: number;
891
891
  tsx_source: string;
892
892
  theme_id: string | null;
893
893
  to: {
894
- user_id: string;
895
894
  type: "user-primary-email";
896
- } | {
897
- emails: string[];
898
895
  user_id: string;
899
- type: "user-custom-emails";
900
896
  } | {
897
+ type: "user-custom-emails";
898
+ user_id: string;
901
899
  emails: string[];
900
+ } | {
902
901
  type: "custom-emails";
902
+ emails: string[];
903
903
  };
904
904
  variables: Record<string, {} | null>;
905
905
  skip_deliverability_check: boolean;
@@ -926,26 +926,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
926
926
  is_transactional: boolean;
927
927
  is_high_priority: boolean;
928
928
  } | {
929
+ id: string;
930
+ subject: string;
931
+ status: "queued";
932
+ created_at_millis: number;
929
933
  html: string | null;
930
934
  text: string | null;
931
- status: "queued";
932
- id: string;
933
935
  notification_category_id: string | null;
934
- created_at_millis: number;
935
- subject: string;
936
936
  updated_at_millis: number;
937
937
  tsx_source: string;
938
938
  theme_id: string | null;
939
939
  to: {
940
- user_id: string;
941
940
  type: "user-primary-email";
942
- } | {
943
- emails: string[];
944
941
  user_id: string;
945
- type: "user-custom-emails";
946
942
  } | {
943
+ type: "user-custom-emails";
944
+ user_id: string;
947
945
  emails: string[];
946
+ } | {
948
947
  type: "custom-emails";
948
+ emails: string[];
949
949
  };
950
950
  variables: Record<string, {} | null>;
951
951
  skip_deliverability_check: boolean;
@@ -972,26 +972,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
972
972
  is_transactional: boolean;
973
973
  is_high_priority: boolean;
974
974
  } | {
975
+ id: string;
976
+ subject: string;
977
+ status: "sending";
978
+ created_at_millis: number;
975
979
  html: string | null;
976
980
  text: string | null;
977
- status: "sending";
978
- id: string;
979
981
  notification_category_id: string | null;
980
- created_at_millis: number;
981
- subject: string;
982
982
  updated_at_millis: number;
983
983
  tsx_source: string;
984
984
  theme_id: string | null;
985
985
  to: {
986
- user_id: string;
987
986
  type: "user-primary-email";
988
- } | {
989
- emails: string[];
990
987
  user_id: string;
991
- type: "user-custom-emails";
992
988
  } | {
989
+ type: "user-custom-emails";
990
+ user_id: string;
993
991
  emails: string[];
992
+ } | {
994
993
  type: "custom-emails";
994
+ emails: string[];
995
995
  };
996
996
  variables: Record<string, {} | null>;
997
997
  skip_deliverability_check: boolean;
@@ -1019,26 +1019,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1019
1019
  is_high_priority: boolean;
1020
1020
  started_sending_at_millis: number;
1021
1021
  } | {
1022
+ id: string;
1023
+ subject: string;
1024
+ status: "server-error";
1025
+ created_at_millis: number;
1022
1026
  html: string | null;
1023
1027
  text: string | null;
1024
- status: "server-error";
1025
- id: string;
1026
1028
  notification_category_id: string | null;
1027
- created_at_millis: number;
1028
- subject: string;
1029
1029
  updated_at_millis: number;
1030
1030
  tsx_source: string;
1031
1031
  theme_id: string | null;
1032
1032
  to: {
1033
- user_id: string;
1034
1033
  type: "user-primary-email";
1035
- } | {
1036
- emails: string[];
1037
1034
  user_id: string;
1038
- type: "user-custom-emails";
1039
1035
  } | {
1036
+ type: "user-custom-emails";
1037
+ user_id: string;
1040
1038
  emails: string[];
1039
+ } | {
1041
1040
  type: "custom-emails";
1041
+ emails: string[];
1042
1042
  };
1043
1043
  variables: Record<string, {} | null>;
1044
1044
  skip_deliverability_check: boolean;
@@ -1068,31 +1068,31 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1068
1068
  error_at_millis: number;
1069
1069
  server_error: string;
1070
1070
  } | {
1071
+ subject?: string | undefined;
1071
1072
  html?: string | null | undefined;
1072
1073
  text?: string | null | undefined;
1073
1074
  notification_category_id?: string | null | undefined;
1074
- subject?: string | undefined;
1075
1075
  started_rendering_at_millis?: number | undefined;
1076
1076
  rendered_at_millis?: number | undefined;
1077
1077
  is_transactional?: boolean | undefined;
1078
1078
  is_high_priority?: boolean | undefined;
1079
1079
  started_sending_at_millis?: number | undefined;
1080
- status: "skipped";
1081
1080
  id: string;
1081
+ status: "skipped";
1082
1082
  created_at_millis: number;
1083
1083
  updated_at_millis: number;
1084
1084
  tsx_source: string;
1085
1085
  theme_id: string | null;
1086
1086
  to: {
1087
- user_id: string;
1088
1087
  type: "user-primary-email";
1089
- } | {
1090
- emails: string[];
1091
1088
  user_id: string;
1092
- type: "user-custom-emails";
1093
1089
  } | {
1090
+ type: "user-custom-emails";
1091
+ user_id: string;
1094
1092
  emails: string[];
1093
+ } | {
1095
1094
  type: "custom-emails";
1095
+ emails: string[];
1096
1096
  };
1097
1097
  variables: Record<string, {} | null>;
1098
1098
  skip_deliverability_check: boolean;
@@ -1118,26 +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
+ subject: string;
1123
+ status: "bounced";
1124
+ created_at_millis: number;
1121
1125
  html: string | null;
1122
1126
  text: string | null;
1123
- status: "bounced";
1124
- id: string;
1125
1127
  notification_category_id: string | null;
1126
- created_at_millis: number;
1127
- subject: string;
1128
1128
  updated_at_millis: number;
1129
1129
  tsx_source: string;
1130
1130
  theme_id: string | null;
1131
1131
  to: {
1132
- user_id: string;
1133
1132
  type: "user-primary-email";
1134
- } | {
1135
- emails: string[];
1136
1133
  user_id: string;
1137
- type: "user-custom-emails";
1138
1134
  } | {
1135
+ type: "user-custom-emails";
1136
+ user_id: string;
1139
1137
  emails: string[];
1138
+ } | {
1140
1139
  type: "custom-emails";
1140
+ emails: string[];
1141
1141
  };
1142
1142
  variables: Record<string, {} | null>;
1143
1143
  skip_deliverability_check: boolean;
@@ -1166,26 +1166,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1166
1166
  started_sending_at_millis: number;
1167
1167
  bounced_at_millis: number;
1168
1168
  } | {
1169
+ id: string;
1170
+ subject: string;
1171
+ status: "delivery-delayed";
1172
+ created_at_millis: number;
1169
1173
  html: string | null;
1170
1174
  text: string | null;
1171
- status: "delivery-delayed";
1172
- id: string;
1173
1175
  notification_category_id: string | null;
1174
- created_at_millis: number;
1175
- subject: string;
1176
1176
  updated_at_millis: number;
1177
1177
  tsx_source: string;
1178
1178
  theme_id: string | null;
1179
1179
  to: {
1180
- user_id: string;
1181
1180
  type: "user-primary-email";
1182
- } | {
1183
- emails: string[];
1184
1181
  user_id: string;
1185
- type: "user-custom-emails";
1186
1182
  } | {
1183
+ type: "user-custom-emails";
1184
+ user_id: string;
1187
1185
  emails: string[];
1186
+ } | {
1188
1187
  type: "custom-emails";
1188
+ emails: string[];
1189
1189
  };
1190
1190
  variables: Record<string, {} | null>;
1191
1191
  skip_deliverability_check: boolean;
@@ -1214,26 +1214,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1214
1214
  started_sending_at_millis: number;
1215
1215
  delivery_delayed_at_millis: number;
1216
1216
  } | {
1217
+ id: string;
1218
+ subject: string;
1219
+ status: "sent";
1220
+ created_at_millis: number;
1217
1221
  html: string | null;
1218
1222
  text: string | null;
1219
- status: "sent";
1220
- id: string;
1221
1223
  notification_category_id: string | null;
1222
- created_at_millis: number;
1223
- subject: string;
1224
1224
  updated_at_millis: number;
1225
1225
  tsx_source: string;
1226
1226
  theme_id: string | null;
1227
1227
  to: {
1228
- user_id: string;
1229
1228
  type: "user-primary-email";
1230
- } | {
1231
- emails: string[];
1232
1229
  user_id: string;
1233
- type: "user-custom-emails";
1234
1230
  } | {
1231
+ type: "user-custom-emails";
1232
+ user_id: string;
1235
1233
  emails: string[];
1234
+ } | {
1236
1235
  type: "custom-emails";
1236
+ emails: string[];
1237
1237
  };
1238
1238
  variables: Record<string, {} | null>;
1239
1239
  skip_deliverability_check: boolean;
@@ -1263,26 +1263,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1263
1263
  delivered_at_millis: number;
1264
1264
  can_have_delivery_info: boolean;
1265
1265
  } | {
1266
+ id: string;
1267
+ subject: string;
1268
+ status: "opened";
1269
+ created_at_millis: number;
1266
1270
  html: string | null;
1267
1271
  text: string | null;
1268
- status: "opened";
1269
- id: string;
1270
1272
  notification_category_id: string | null;
1271
- created_at_millis: number;
1272
- subject: string;
1273
1273
  updated_at_millis: number;
1274
1274
  tsx_source: string;
1275
1275
  theme_id: string | null;
1276
1276
  to: {
1277
- user_id: string;
1278
1277
  type: "user-primary-email";
1279
- } | {
1280
- emails: string[];
1281
1278
  user_id: string;
1282
- type: "user-custom-emails";
1283
1279
  } | {
1280
+ type: "user-custom-emails";
1281
+ user_id: string;
1284
1282
  emails: string[];
1283
+ } | {
1285
1284
  type: "custom-emails";
1285
+ emails: string[];
1286
1286
  };
1287
1287
  variables: Record<string, {} | null>;
1288
1288
  skip_deliverability_check: boolean;
@@ -1313,26 +1313,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1313
1313
  can_have_delivery_info: boolean;
1314
1314
  opened_at_millis: number;
1315
1315
  } | {
1316
+ id: string;
1317
+ subject: string;
1318
+ status: "clicked";
1319
+ created_at_millis: number;
1316
1320
  html: string | null;
1317
1321
  text: string | null;
1318
- status: "clicked";
1319
- id: string;
1320
1322
  notification_category_id: string | null;
1321
- created_at_millis: number;
1322
- subject: string;
1323
1323
  updated_at_millis: number;
1324
1324
  tsx_source: string;
1325
1325
  theme_id: string | null;
1326
1326
  to: {
1327
- user_id: string;
1328
1327
  type: "user-primary-email";
1329
- } | {
1330
- emails: string[];
1331
1328
  user_id: string;
1332
- type: "user-custom-emails";
1333
1329
  } | {
1330
+ type: "user-custom-emails";
1331
+ user_id: string;
1334
1332
  emails: string[];
1333
+ } | {
1335
1334
  type: "custom-emails";
1335
+ emails: string[];
1336
1336
  };
1337
1337
  variables: Record<string, {} | null>;
1338
1338
  skip_deliverability_check: boolean;
@@ -1363,26 +1363,26 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1363
1363
  can_have_delivery_info: boolean;
1364
1364
  clicked_at_millis: number;
1365
1365
  } | {
1366
+ id: string;
1367
+ subject: string;
1368
+ status: "marked-as-spam";
1369
+ created_at_millis: number;
1366
1370
  html: string | null;
1367
1371
  text: string | null;
1368
- status: "marked-as-spam";
1369
- id: string;
1370
1372
  notification_category_id: string | null;
1371
- created_at_millis: number;
1372
- subject: string;
1373
1373
  updated_at_millis: number;
1374
1374
  tsx_source: string;
1375
1375
  theme_id: string | null;
1376
1376
  to: {
1377
- user_id: string;
1378
1377
  type: "user-primary-email";
1379
- } | {
1380
- emails: string[];
1381
1378
  user_id: string;
1382
- type: "user-custom-emails";
1383
1379
  } | {
1380
+ type: "user-custom-emails";
1381
+ user_id: string;
1384
1382
  emails: string[];
1383
+ } | {
1385
1384
  type: "custom-emails";
1385
+ emails: string[];
1386
1386
  };
1387
1387
  variables: Record<string, {} | null>;
1388
1388
  skip_deliverability_check: boolean;
@@ -1417,15 +1417,15 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1417
1417
  tsx_source: string | undefined;
1418
1418
  theme_id: string | null | undefined;
1419
1419
  to: {
1420
- user_id: string;
1421
1420
  type: "user-primary-email";
1422
- } | {
1423
- emails: string[];
1424
1421
  user_id: string;
1425
- type: "user-custom-emails";
1426
1422
  } | {
1423
+ type: "user-custom-emails";
1424
+ user_id: string;
1427
1425
  emails: string[];
1426
+ } | {
1428
1427
  type: "custom-emails";
1428
+ emails: string[];
1429
1429
  } | undefined;
1430
1430
  variables: Record<string, {} | null> | undefined;
1431
1431
  skip_deliverability_check: boolean | undefined;