@hexclave/shared 1.0.14 → 1.0.15

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 (116) 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 +68 -68
  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 +68 -68
  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 +101 -7
  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 +38 -38
  36. package/dist/esm/interface/crud/current-user.d.ts +2 -2
  37. package/dist/esm/interface/crud/email-outbox.d.ts +150 -150
  38. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  39. package/dist/esm/interface/crud/products.d.ts +4 -4
  40. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  41. package/dist/esm/interface/crud/projects.d.ts +51 -51
  42. package/dist/esm/interface/crud/team-member-profiles.d.ts +10 -10
  43. package/dist/esm/interface/crud/transactions.d.ts +2 -2
  44. package/dist/esm/interface/crud/users.d.ts +10 -10
  45. package/dist/esm/interface/webhooks.d.ts +2 -2
  46. package/dist/esm/schema-fields.d.ts +3 -3
  47. package/dist/esm/sessions.d.ts +2 -2
  48. package/dist/esm/utils/analytics-clickmap-overlay.d.ts +18 -0
  49. package/dist/esm/utils/analytics-clickmap-overlay.d.ts.map +1 -0
  50. package/dist/esm/utils/analytics-clickmap-overlay.js +19 -0
  51. package/dist/esm/utils/analytics-clickmap-overlay.js.map +1 -0
  52. package/dist/esm/utils/dev-tool.d.ts +31 -0
  53. package/dist/esm/utils/dev-tool.d.ts.map +1 -0
  54. package/dist/esm/utils/dev-tool.js +32 -0
  55. package/dist/esm/utils/dev-tool.js.map +1 -0
  56. package/dist/esm/utils/dom.d.ts +7 -1
  57. package/dist/esm/utils/dom.d.ts.map +1 -1
  58. package/dist/esm/utils/dom.js +20 -1
  59. package/dist/esm/utils/dom.js.map +1 -1
  60. package/dist/esm/utils/elements-chain.d.ts +38 -0
  61. package/dist/esm/utils/elements-chain.d.ts.map +1 -0
  62. package/dist/esm/utils/elements-chain.js +297 -0
  63. package/dist/esm/utils/elements-chain.js.map +1 -0
  64. package/dist/hexclave-config-file.d.ts +24 -1
  65. package/dist/hexclave-config-file.d.ts.map +1 -1
  66. package/dist/hexclave-config-file.js +71 -1
  67. package/dist/hexclave-config-file.js.map +1 -1
  68. package/dist/interface/admin-interface.d.ts +19 -1
  69. package/dist/interface/admin-interface.d.ts.map +1 -1
  70. package/dist/interface/admin-interface.js +14 -0
  71. package/dist/interface/admin-interface.js.map +1 -1
  72. package/dist/interface/admin-metrics.d.ts +101 -7
  73. package/dist/interface/admin-metrics.d.ts.map +1 -1
  74. package/dist/interface/admin-metrics.js +65 -0
  75. package/dist/interface/admin-metrics.js.map +1 -1
  76. package/dist/interface/conversations.d.ts +38 -38
  77. package/dist/interface/crud/current-user.d.ts +2 -2
  78. package/dist/interface/crud/email-outbox.d.ts +150 -150
  79. package/dist/interface/crud/invoices.d.ts +2 -2
  80. package/dist/interface/crud/products.d.ts +4 -4
  81. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  82. package/dist/interface/crud/projects.d.ts +51 -51
  83. package/dist/interface/crud/team-member-profiles.d.ts +10 -10
  84. package/dist/interface/crud/transactions.d.ts +2 -2
  85. package/dist/interface/crud/users.d.ts +10 -10
  86. package/dist/interface/webhooks.d.ts +2 -2
  87. package/dist/schema-fields.d.ts +3 -3
  88. package/dist/sessions.d.ts +2 -2
  89. package/dist/utils/analytics-clickmap-overlay.d.ts +18 -0
  90. package/dist/utils/analytics-clickmap-overlay.d.ts.map +1 -0
  91. package/dist/utils/analytics-clickmap-overlay.js +23 -0
  92. package/dist/utils/analytics-clickmap-overlay.js.map +1 -0
  93. package/dist/utils/dev-tool.d.ts +31 -0
  94. package/dist/utils/dev-tool.d.ts.map +1 -0
  95. package/dist/utils/dev-tool.js +37 -0
  96. package/dist/utils/dev-tool.js.map +1 -0
  97. package/dist/utils/dom.d.ts +7 -1
  98. package/dist/utils/dom.d.ts.map +1 -1
  99. package/dist/utils/dom.js +20 -0
  100. package/dist/utils/dom.js.map +1 -1
  101. package/dist/utils/elements-chain.d.ts +38 -0
  102. package/dist/utils/elements-chain.d.ts.map +1 -0
  103. package/dist/utils/elements-chain.js +304 -0
  104. package/dist/utils/elements-chain.js.map +1 -0
  105. package/package.json +1 -1
  106. package/src/apps/apps-config.ts +6 -0
  107. package/src/config-authoring.test.ts +1 -1
  108. package/src/config-authoring.ts +6 -6
  109. package/src/config-rendering.ts +24 -2
  110. package/src/hexclave-config-file.ts +90 -1
  111. package/src/interface/admin-interface.ts +43 -1
  112. package/src/interface/admin-metrics.ts +92 -4
  113. package/src/utils/analytics-clickmap-overlay.tsx +15 -0
  114. package/src/utils/dev-tool.tsx +30 -0
  115. package/src/utils/dom.tsx +42 -0
  116. package/src/utils/elements-chain.tsx +349 -0
@@ -14,12 +14,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
14
14
  user_id: string;
15
15
  type: "user-primary-email";
16
16
  } | {
17
- emails: string[];
18
17
  user_id: string;
19
18
  type: "user-custom-emails";
20
- } | {
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;
@@ -52,12 +52,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
52
52
  user_id: string;
53
53
  type: "user-primary-email";
54
54
  } | {
55
- emails: string[];
56
55
  user_id: string;
57
56
  type: "user-custom-emails";
58
- } | {
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;
@@ -90,12 +90,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
90
90
  user_id: string;
91
91
  type: "user-primary-email";
92
92
  } | {
93
- emails: string[];
94
93
  user_id: string;
95
94
  type: "user-custom-emails";
96
- } | {
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;
@@ -129,12 +129,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
129
129
  user_id: string;
130
130
  type: "user-primary-email";
131
131
  } | {
132
- emails: string[];
133
132
  user_id: string;
134
133
  type: "user-custom-emails";
135
- } | {
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,13 +160,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
160
160
  rendered_at_millis: number;
161
161
  render_error: string;
162
162
  } | {
163
- html: string | null;
164
- text: string | null;
165
163
  status: "scheduled";
166
164
  id: string;
167
- notification_category_id: string | null;
168
- created_at_millis: number;
169
165
  subject: string;
166
+ created_at_millis: number;
170
167
  updated_at_millis: number;
171
168
  tsx_source: string;
172
169
  theme_id: string | null;
@@ -174,12 +171,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
174
171
  user_id: string;
175
172
  type: "user-primary-email";
176
173
  } | {
177
- emails: string[];
178
174
  user_id: string;
179
175
  type: "user-custom-emails";
180
- } | {
181
176
  emails: string[];
177
+ } | {
182
178
  type: "custom-emails";
179
+ emails: string[];
183
180
  };
184
181
  variables: Record<string, {} | null>;
185
182
  skip_deliverability_check: boolean;
@@ -203,16 +200,16 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
203
200
  has_delivered: boolean;
204
201
  started_rendering_at_millis: number;
205
202
  rendered_at_millis: number;
203
+ html: string | null;
204
+ text: string | null;
206
205
  is_transactional: boolean;
207
206
  is_high_priority: boolean;
207
+ notification_category_id: string | null;
208
208
  } | {
209
- html: string | null;
210
- text: string | null;
211
209
  status: "queued";
212
210
  id: string;
213
- notification_category_id: string | null;
214
- created_at_millis: number;
215
211
  subject: string;
212
+ created_at_millis: number;
216
213
  updated_at_millis: number;
217
214
  tsx_source: string;
218
215
  theme_id: string | null;
@@ -220,12 +217,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
220
217
  user_id: string;
221
218
  type: "user-primary-email";
222
219
  } | {
223
- emails: string[];
224
220
  user_id: string;
225
221
  type: "user-custom-emails";
226
- } | {
227
222
  emails: string[];
223
+ } | {
228
224
  type: "custom-emails";
225
+ emails: string[];
229
226
  };
230
227
  variables: Record<string, {} | null>;
231
228
  skip_deliverability_check: boolean;
@@ -249,16 +246,16 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
249
246
  has_delivered: boolean;
250
247
  started_rendering_at_millis: number;
251
248
  rendered_at_millis: number;
249
+ html: string | null;
250
+ text: string | null;
252
251
  is_transactional: boolean;
253
252
  is_high_priority: boolean;
253
+ notification_category_id: string | null;
254
254
  } | {
255
- html: string | null;
256
- text: string | null;
257
255
  status: "sending";
258
256
  id: string;
259
- notification_category_id: string | null;
260
- created_at_millis: number;
261
257
  subject: string;
258
+ created_at_millis: number;
262
259
  updated_at_millis: number;
263
260
  tsx_source: string;
264
261
  theme_id: string | null;
@@ -266,12 +263,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
266
263
  user_id: string;
267
264
  type: "user-primary-email";
268
265
  } | {
269
- emails: string[];
270
266
  user_id: string;
271
267
  type: "user-custom-emails";
272
- } | {
273
268
  emails: string[];
269
+ } | {
274
270
  type: "custom-emails";
271
+ emails: string[];
275
272
  };
276
273
  variables: Record<string, {} | null>;
277
274
  skip_deliverability_check: boolean;
@@ -295,17 +292,17 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
295
292
  has_delivered: boolean;
296
293
  started_rendering_at_millis: number;
297
294
  rendered_at_millis: number;
295
+ html: string | null;
296
+ 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
- html: string | null;
303
- text: string | null;
304
302
  status: "server-error";
305
303
  id: string;
306
- notification_category_id: string | null;
307
- created_at_millis: number;
308
304
  subject: string;
305
+ created_at_millis: number;
309
306
  updated_at_millis: number;
310
307
  tsx_source: string;
311
308
  theme_id: string | null;
@@ -313,12 +310,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
313
310
  user_id: string;
314
311
  type: "user-primary-email";
315
312
  } | {
316
- emails: string[];
317
313
  user_id: string;
318
314
  type: "user-custom-emails";
319
- } | {
320
315
  emails: string[];
316
+ } | {
321
317
  type: "custom-emails";
318
+ emails: string[];
322
319
  };
323
320
  variables: Record<string, {} | null>;
324
321
  skip_deliverability_check: boolean;
@@ -342,20 +339,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
342
339
  has_delivered: boolean;
343
340
  started_rendering_at_millis: number;
344
341
  rendered_at_millis: number;
342
+ html: string | null;
343
+ 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
- html?: string | null | undefined;
352
- text?: string | null | undefined;
353
- notification_category_id?: string | null | undefined;
354
351
  subject?: string | undefined;
355
352
  started_rendering_at_millis?: number | undefined;
356
353
  rendered_at_millis?: number | undefined;
354
+ html?: string | null | undefined;
355
+ text?: string | null | 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
360
  status: "skipped";
361
361
  id: string;
@@ -367,12 +367,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
367
367
  user_id: string;
368
368
  type: "user-primary-email";
369
369
  } | {
370
- emails: string[];
371
370
  user_id: string;
372
371
  type: "user-custom-emails";
373
- } | {
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,13 +398,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
398
398
  skipped_reason: string;
399
399
  skipped_details: Record<string, {} | null>;
400
400
  } | {
401
- html: string | null;
402
- text: string | null;
403
401
  status: "bounced";
404
402
  id: string;
405
- notification_category_id: string | null;
406
- created_at_millis: number;
407
403
  subject: string;
404
+ created_at_millis: number;
408
405
  updated_at_millis: number;
409
406
  tsx_source: string;
410
407
  theme_id: string | null;
@@ -412,12 +409,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
412
409
  user_id: string;
413
410
  type: "user-primary-email";
414
411
  } | {
415
- emails: string[];
416
412
  user_id: string;
417
413
  type: "user-custom-emails";
418
- } | {
419
414
  emails: string[];
415
+ } | {
420
416
  type: "custom-emails";
417
+ emails: string[];
421
418
  };
422
419
  variables: Record<string, {} | null>;
423
420
  skip_deliverability_check: boolean;
@@ -441,18 +438,18 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
441
438
  has_delivered: boolean;
442
439
  started_rendering_at_millis: number;
443
440
  rendered_at_millis: number;
441
+ html: string | null;
442
+ 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
- html: string | null;
450
- text: string | null;
451
449
  status: "delivery-delayed";
452
450
  id: string;
453
- notification_category_id: string | null;
454
- created_at_millis: number;
455
451
  subject: string;
452
+ created_at_millis: number;
456
453
  updated_at_millis: number;
457
454
  tsx_source: string;
458
455
  theme_id: string | null;
@@ -460,12 +457,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
460
457
  user_id: string;
461
458
  type: "user-primary-email";
462
459
  } | {
463
- emails: string[];
464
460
  user_id: string;
465
461
  type: "user-custom-emails";
466
- } | {
467
462
  emails: string[];
463
+ } | {
468
464
  type: "custom-emails";
465
+ emails: string[];
469
466
  };
470
467
  variables: Record<string, {} | null>;
471
468
  skip_deliverability_check: boolean;
@@ -489,18 +486,18 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
489
486
  has_delivered: boolean;
490
487
  started_rendering_at_millis: number;
491
488
  rendered_at_millis: number;
489
+ html: string | null;
490
+ 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
- html: string | null;
498
- text: string | null;
499
497
  status: "sent";
500
498
  id: string;
501
- notification_category_id: string | null;
502
- created_at_millis: number;
503
499
  subject: string;
500
+ created_at_millis: number;
504
501
  updated_at_millis: number;
505
502
  tsx_source: string;
506
503
  theme_id: string | null;
@@ -508,12 +505,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
508
505
  user_id: string;
509
506
  type: "user-primary-email";
510
507
  } | {
511
- emails: string[];
512
508
  user_id: string;
513
509
  type: "user-custom-emails";
514
- } | {
515
510
  emails: string[];
511
+ } | {
516
512
  type: "custom-emails";
513
+ emails: string[];
517
514
  };
518
515
  variables: Record<string, {} | null>;
519
516
  skip_deliverability_check: boolean;
@@ -537,19 +534,19 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
537
534
  has_delivered: boolean;
538
535
  started_rendering_at_millis: number;
539
536
  rendered_at_millis: number;
537
+ html: string | null;
538
+ 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
- html: string | null;
547
- text: string | null;
548
546
  status: "opened";
549
547
  id: string;
550
- notification_category_id: string | null;
551
- created_at_millis: number;
552
548
  subject: string;
549
+ created_at_millis: number;
553
550
  updated_at_millis: number;
554
551
  tsx_source: string;
555
552
  theme_id: string | null;
@@ -557,12 +554,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
557
554
  user_id: string;
558
555
  type: "user-primary-email";
559
556
  } | {
560
- emails: string[];
561
557
  user_id: string;
562
558
  type: "user-custom-emails";
563
- } | {
564
559
  emails: string[];
560
+ } | {
565
561
  type: "custom-emails";
562
+ emails: string[];
566
563
  };
567
564
  variables: Record<string, {} | null>;
568
565
  skip_deliverability_check: boolean;
@@ -586,20 +583,20 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
586
583
  has_delivered: boolean;
587
584
  started_rendering_at_millis: number;
588
585
  rendered_at_millis: number;
586
+ html: string | null;
587
+ 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
- html: string | null;
597
- text: string | null;
598
596
  status: "clicked";
599
597
  id: string;
600
- notification_category_id: string | null;
601
- created_at_millis: number;
602
598
  subject: string;
599
+ created_at_millis: number;
603
600
  updated_at_millis: number;
604
601
  tsx_source: string;
605
602
  theme_id: string | null;
@@ -607,12 +604,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
607
604
  user_id: string;
608
605
  type: "user-primary-email";
609
606
  } | {
610
- emails: string[];
611
607
  user_id: string;
612
608
  type: "user-custom-emails";
613
- } | {
614
609
  emails: string[];
610
+ } | {
615
611
  type: "custom-emails";
612
+ emails: string[];
616
613
  };
617
614
  variables: Record<string, {} | null>;
618
615
  skip_deliverability_check: boolean;
@@ -636,20 +633,20 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
636
633
  has_delivered: boolean;
637
634
  started_rendering_at_millis: number;
638
635
  rendered_at_millis: number;
636
+ html: string | null;
637
+ 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
- html: string | null;
647
- text: string | null;
648
646
  status: "marked-as-spam";
649
647
  id: string;
650
- notification_category_id: string | null;
651
- created_at_millis: number;
652
648
  subject: string;
649
+ created_at_millis: number;
653
650
  updated_at_millis: number;
654
651
  tsx_source: string;
655
652
  theme_id: string | null;
@@ -657,12 +654,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
657
654
  user_id: string;
658
655
  type: "user-primary-email";
659
656
  } | {
660
- emails: string[];
661
657
  user_id: string;
662
658
  type: "user-custom-emails";
663
- } | {
664
659
  emails: string[];
660
+ } | {
665
661
  type: "custom-emails";
662
+ emails: string[];
666
663
  };
667
664
  variables: Record<string, {} | null>;
668
665
  skip_deliverability_check: boolean;
@@ -686,8 +683,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
686
683
  has_delivered: boolean;
687
684
  started_rendering_at_millis: number;
688
685
  rendered_at_millis: number;
686
+ html: string | null;
687
+ 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;
@@ -700,12 +700,12 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
700
700
  user_id: string;
701
701
  type: "user-primary-email";
702
702
  } | {
703
- emails: string[];
704
703
  user_id: string;
705
704
  type: "user-custom-emails";
706
- } | {
707
705
  emails: string[];
706
+ } | {
708
707
  type: "custom-emails";
708
+ emails: string[];
709
709
  } | undefined;
710
710
  variables: Record<string, {} | null> | undefined;
711
711
  skip_deliverability_check: boolean | undefined;
@@ -734,12 +734,12 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
734
734
  user_id: string;
735
735
  type: "user-primary-email";
736
736
  } | {
737
- emails: string[];
738
737
  user_id: string;
739
738
  type: "user-custom-emails";
740
- } | {
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;
@@ -772,12 +772,12 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
772
772
  user_id: string;
773
773
  type: "user-primary-email";
774
774
  } | {
775
- emails: string[];
776
775
  user_id: string;
777
776
  type: "user-custom-emails";
778
- } | {
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;
@@ -810,12 +810,12 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
810
810
  user_id: string;
811
811
  type: "user-primary-email";
812
812
  } | {
813
- emails: string[];
814
813
  user_id: string;
815
814
  type: "user-custom-emails";
816
- } | {
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;
@@ -849,12 +849,12 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
849
849
  user_id: string;
850
850
  type: "user-primary-email";
851
851
  } | {
852
- emails: string[];
853
852
  user_id: string;
854
853
  type: "user-custom-emails";
855
- } | {
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,13 +880,10 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
880
880
  rendered_at_millis: number;
881
881
  render_error: string;
882
882
  } | {
883
- html: string | null;
884
- text: string | null;
885
883
  status: "scheduled";
886
884
  id: string;
887
- notification_category_id: string | null;
888
- created_at_millis: number;
889
885
  subject: string;
886
+ created_at_millis: number;
890
887
  updated_at_millis: number;
891
888
  tsx_source: string;
892
889
  theme_id: string | null;
@@ -894,12 +891,12 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
894
891
  user_id: string;
895
892
  type: "user-primary-email";
896
893
  } | {
897
- emails: string[];
898
894
  user_id: string;
899
895
  type: "user-custom-emails";
900
- } | {
901
896
  emails: string[];
897
+ } | {
902
898
  type: "custom-emails";
899
+ emails: string[];
903
900
  };
904
901
  variables: Record<string, {} | null>;
905
902
  skip_deliverability_check: boolean;
@@ -923,16 +920,16 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
923
920
  has_delivered: boolean;
924
921
  started_rendering_at_millis: number;
925
922
  rendered_at_millis: number;
923
+ html: string | null;
924
+ text: string | null;
926
925
  is_transactional: boolean;
927
926
  is_high_priority: boolean;
927
+ notification_category_id: string | null;
928
928
  } | {
929
- html: string | null;
930
- text: string | null;
931
929
  status: "queued";
932
930
  id: string;
933
- notification_category_id: string | null;
934
- created_at_millis: number;
935
931
  subject: string;
932
+ created_at_millis: number;
936
933
  updated_at_millis: number;
937
934
  tsx_source: string;
938
935
  theme_id: string | null;
@@ -940,12 +937,12 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
940
937
  user_id: string;
941
938
  type: "user-primary-email";
942
939
  } | {
943
- emails: string[];
944
940
  user_id: string;
945
941
  type: "user-custom-emails";
946
- } | {
947
942
  emails: string[];
943
+ } | {
948
944
  type: "custom-emails";
945
+ emails: string[];
949
946
  };
950
947
  variables: Record<string, {} | null>;
951
948
  skip_deliverability_check: boolean;
@@ -969,16 +966,16 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
969
966
  has_delivered: boolean;
970
967
  started_rendering_at_millis: number;
971
968
  rendered_at_millis: number;
969
+ html: string | null;
970
+ text: string | null;
972
971
  is_transactional: boolean;
973
972
  is_high_priority: boolean;
973
+ notification_category_id: string | null;
974
974
  } | {
975
- html: string | null;
976
- text: string | null;
977
975
  status: "sending";
978
976
  id: string;
979
- notification_category_id: string | null;
980
- created_at_millis: number;
981
977
  subject: string;
978
+ created_at_millis: number;
982
979
  updated_at_millis: number;
983
980
  tsx_source: string;
984
981
  theme_id: string | null;
@@ -986,12 +983,12 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
986
983
  user_id: string;
987
984
  type: "user-primary-email";
988
985
  } | {
989
- emails: string[];
990
986
  user_id: string;
991
987
  type: "user-custom-emails";
992
- } | {
993
988
  emails: string[];
989
+ } | {
994
990
  type: "custom-emails";
991
+ emails: string[];
995
992
  };
996
993
  variables: Record<string, {} | null>;
997
994
  skip_deliverability_check: boolean;
@@ -1015,17 +1012,17 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1015
1012
  has_delivered: boolean;
1016
1013
  started_rendering_at_millis: number;
1017
1014
  rendered_at_millis: number;
1015
+ html: string | null;
1016
+ 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
- html: string | null;
1023
- text: string | null;
1024
1022
  status: "server-error";
1025
1023
  id: string;
1026
- notification_category_id: string | null;
1027
- created_at_millis: number;
1028
1024
  subject: string;
1025
+ created_at_millis: number;
1029
1026
  updated_at_millis: number;
1030
1027
  tsx_source: string;
1031
1028
  theme_id: string | null;
@@ -1033,12 +1030,12 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1033
1030
  user_id: string;
1034
1031
  type: "user-primary-email";
1035
1032
  } | {
1036
- emails: string[];
1037
1033
  user_id: string;
1038
1034
  type: "user-custom-emails";
1039
- } | {
1040
1035
  emails: string[];
1036
+ } | {
1041
1037
  type: "custom-emails";
1038
+ emails: string[];
1042
1039
  };
1043
1040
  variables: Record<string, {} | null>;
1044
1041
  skip_deliverability_check: boolean;
@@ -1062,20 +1059,23 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1062
1059
  has_delivered: boolean;
1063
1060
  started_rendering_at_millis: number;
1064
1061
  rendered_at_millis: number;
1062
+ html: string | null;
1063
+ 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
- html?: string | null | undefined;
1072
- text?: string | null | undefined;
1073
- notification_category_id?: string | null | undefined;
1074
1071
  subject?: string | undefined;
1075
1072
  started_rendering_at_millis?: number | undefined;
1076
1073
  rendered_at_millis?: number | undefined;
1074
+ html?: string | null | undefined;
1075
+ text?: string | null | 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
1080
  status: "skipped";
1081
1081
  id: string;
@@ -1087,12 +1087,12 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1087
1087
  user_id: string;
1088
1088
  type: "user-primary-email";
1089
1089
  } | {
1090
- emails: string[];
1091
1090
  user_id: string;
1092
1091
  type: "user-custom-emails";
1093
- } | {
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,13 +1118,10 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1118
1118
  skipped_reason: string;
1119
1119
  skipped_details: Record<string, {} | null>;
1120
1120
  } | {
1121
- html: string | null;
1122
- text: string | null;
1123
1121
  status: "bounced";
1124
1122
  id: string;
1125
- notification_category_id: string | null;
1126
- created_at_millis: number;
1127
1123
  subject: string;
1124
+ created_at_millis: number;
1128
1125
  updated_at_millis: number;
1129
1126
  tsx_source: string;
1130
1127
  theme_id: string | null;
@@ -1132,12 +1129,12 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1132
1129
  user_id: string;
1133
1130
  type: "user-primary-email";
1134
1131
  } | {
1135
- emails: string[];
1136
1132
  user_id: string;
1137
1133
  type: "user-custom-emails";
1138
- } | {
1139
1134
  emails: string[];
1135
+ } | {
1140
1136
  type: "custom-emails";
1137
+ emails: string[];
1141
1138
  };
1142
1139
  variables: Record<string, {} | null>;
1143
1140
  skip_deliverability_check: boolean;
@@ -1161,18 +1158,18 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1161
1158
  has_delivered: boolean;
1162
1159
  started_rendering_at_millis: number;
1163
1160
  rendered_at_millis: number;
1161
+ html: string | null;
1162
+ 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
- html: string | null;
1170
- text: string | null;
1171
1169
  status: "delivery-delayed";
1172
1170
  id: string;
1173
- notification_category_id: string | null;
1174
- created_at_millis: number;
1175
1171
  subject: string;
1172
+ created_at_millis: number;
1176
1173
  updated_at_millis: number;
1177
1174
  tsx_source: string;
1178
1175
  theme_id: string | null;
@@ -1180,12 +1177,12 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1180
1177
  user_id: string;
1181
1178
  type: "user-primary-email";
1182
1179
  } | {
1183
- emails: string[];
1184
1180
  user_id: string;
1185
1181
  type: "user-custom-emails";
1186
- } | {
1187
1182
  emails: string[];
1183
+ } | {
1188
1184
  type: "custom-emails";
1185
+ emails: string[];
1189
1186
  };
1190
1187
  variables: Record<string, {} | null>;
1191
1188
  skip_deliverability_check: boolean;
@@ -1209,18 +1206,18 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1209
1206
  has_delivered: boolean;
1210
1207
  started_rendering_at_millis: number;
1211
1208
  rendered_at_millis: number;
1209
+ html: string | null;
1210
+ 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
- html: string | null;
1218
- text: string | null;
1219
1217
  status: "sent";
1220
1218
  id: string;
1221
- notification_category_id: string | null;
1222
- created_at_millis: number;
1223
1219
  subject: string;
1220
+ created_at_millis: number;
1224
1221
  updated_at_millis: number;
1225
1222
  tsx_source: string;
1226
1223
  theme_id: string | null;
@@ -1228,12 +1225,12 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1228
1225
  user_id: string;
1229
1226
  type: "user-primary-email";
1230
1227
  } | {
1231
- emails: string[];
1232
1228
  user_id: string;
1233
1229
  type: "user-custom-emails";
1234
- } | {
1235
1230
  emails: string[];
1231
+ } | {
1236
1232
  type: "custom-emails";
1233
+ emails: string[];
1237
1234
  };
1238
1235
  variables: Record<string, {} | null>;
1239
1236
  skip_deliverability_check: boolean;
@@ -1257,19 +1254,19 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1257
1254
  has_delivered: boolean;
1258
1255
  started_rendering_at_millis: number;
1259
1256
  rendered_at_millis: number;
1257
+ html: string | null;
1258
+ 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
- html: string | null;
1267
- text: string | null;
1268
1266
  status: "opened";
1269
1267
  id: string;
1270
- notification_category_id: string | null;
1271
- created_at_millis: number;
1272
1268
  subject: string;
1269
+ created_at_millis: number;
1273
1270
  updated_at_millis: number;
1274
1271
  tsx_source: string;
1275
1272
  theme_id: string | null;
@@ -1277,12 +1274,12 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1277
1274
  user_id: string;
1278
1275
  type: "user-primary-email";
1279
1276
  } | {
1280
- emails: string[];
1281
1277
  user_id: string;
1282
1278
  type: "user-custom-emails";
1283
- } | {
1284
1279
  emails: string[];
1280
+ } | {
1285
1281
  type: "custom-emails";
1282
+ emails: string[];
1286
1283
  };
1287
1284
  variables: Record<string, {} | null>;
1288
1285
  skip_deliverability_check: boolean;
@@ -1306,20 +1303,20 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1306
1303
  has_delivered: boolean;
1307
1304
  started_rendering_at_millis: number;
1308
1305
  rendered_at_millis: number;
1306
+ html: string | null;
1307
+ 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
- html: string | null;
1317
- text: string | null;
1318
1316
  status: "clicked";
1319
1317
  id: string;
1320
- notification_category_id: string | null;
1321
- created_at_millis: number;
1322
1318
  subject: string;
1319
+ created_at_millis: number;
1323
1320
  updated_at_millis: number;
1324
1321
  tsx_source: string;
1325
1322
  theme_id: string | null;
@@ -1327,12 +1324,12 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1327
1324
  user_id: string;
1328
1325
  type: "user-primary-email";
1329
1326
  } | {
1330
- emails: string[];
1331
1327
  user_id: string;
1332
1328
  type: "user-custom-emails";
1333
- } | {
1334
1329
  emails: string[];
1330
+ } | {
1335
1331
  type: "custom-emails";
1332
+ emails: string[];
1336
1333
  };
1337
1334
  variables: Record<string, {} | null>;
1338
1335
  skip_deliverability_check: boolean;
@@ -1356,20 +1353,20 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1356
1353
  has_delivered: boolean;
1357
1354
  started_rendering_at_millis: number;
1358
1355
  rendered_at_millis: number;
1356
+ html: string | null;
1357
+ 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
- html: string | null;
1367
- text: string | null;
1368
1366
  status: "marked-as-spam";
1369
1367
  id: string;
1370
- notification_category_id: string | null;
1371
- created_at_millis: number;
1372
1368
  subject: string;
1369
+ created_at_millis: number;
1373
1370
  updated_at_millis: number;
1374
1371
  tsx_source: string;
1375
1372
  theme_id: string | null;
@@ -1377,12 +1374,12 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1377
1374
  user_id: string;
1378
1375
  type: "user-primary-email";
1379
1376
  } | {
1380
- emails: string[];
1381
1377
  user_id: string;
1382
1378
  type: "user-custom-emails";
1383
- } | {
1384
1379
  emails: string[];
1380
+ } | {
1385
1381
  type: "custom-emails";
1382
+ emails: string[];
1386
1383
  };
1387
1384
  variables: Record<string, {} | null>;
1388
1385
  skip_deliverability_check: boolean;
@@ -1406,8 +1403,11 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1406
1403
  has_delivered: boolean;
1407
1404
  started_rendering_at_millis: number;
1408
1405
  rendered_at_millis: number;
1406
+ html: string | null;
1407
+ 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;
@@ -1420,12 +1420,12 @@ declare const emailOutboxCrud: ______crud0.CrudSchemaFromOptions<{
1420
1420
  user_id: string;
1421
1421
  type: "user-primary-email";
1422
1422
  } | {
1423
- emails: string[];
1424
1423
  user_id: string;
1425
1424
  type: "user-custom-emails";
1426
- } | {
1427
1425
  emails: string[];
1426
+ } | {
1428
1427
  type: "custom-emails";
1428
+ emails: string[];
1429
1429
  } | undefined;
1430
1430
  variables: Record<string, {} | null> | undefined;
1431
1431
  skip_deliverability_check: boolean | undefined;