@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
@@ -13,12 +13,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
13
13
  user_id: string;
14
14
  type: "user-primary-email";
15
15
  } | {
16
- emails: string[];
17
16
  user_id: string;
18
17
  type: "user-custom-emails";
19
- } | {
20
18
  emails: string[];
19
+ } | {
21
20
  type: "custom-emails";
21
+ emails: string[];
22
22
  };
23
23
  variables: Record<string, {} | null>;
24
24
  skip_deliverability_check: boolean;
@@ -51,12 +51,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
51
51
  user_id: string;
52
52
  type: "user-primary-email";
53
53
  } | {
54
- emails: string[];
55
54
  user_id: string;
56
55
  type: "user-custom-emails";
57
- } | {
58
56
  emails: string[];
57
+ } | {
59
58
  type: "custom-emails";
59
+ emails: string[];
60
60
  };
61
61
  variables: Record<string, {} | null>;
62
62
  skip_deliverability_check: boolean;
@@ -89,12 +89,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
89
89
  user_id: string;
90
90
  type: "user-primary-email";
91
91
  } | {
92
- emails: string[];
93
92
  user_id: string;
94
93
  type: "user-custom-emails";
95
- } | {
96
94
  emails: string[];
95
+ } | {
97
96
  type: "custom-emails";
97
+ emails: string[];
98
98
  };
99
99
  variables: Record<string, {} | null>;
100
100
  skip_deliverability_check: boolean;
@@ -128,12 +128,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
128
128
  user_id: string;
129
129
  type: "user-primary-email";
130
130
  } | {
131
- emails: string[];
132
131
  user_id: string;
133
132
  type: "user-custom-emails";
134
- } | {
135
133
  emails: string[];
134
+ } | {
136
135
  type: "custom-emails";
136
+ emails: string[];
137
137
  };
138
138
  variables: Record<string, {} | null>;
139
139
  skip_deliverability_check: boolean;
@@ -159,13 +159,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
159
159
  rendered_at_millis: number;
160
160
  render_error: string;
161
161
  } | {
162
- html: string | null;
163
- text: string | null;
164
162
  status: "scheduled";
165
163
  id: string;
166
- notification_category_id: string | null;
167
- created_at_millis: number;
168
164
  subject: string;
165
+ created_at_millis: number;
169
166
  updated_at_millis: number;
170
167
  tsx_source: string;
171
168
  theme_id: string | null;
@@ -173,12 +170,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
173
170
  user_id: string;
174
171
  type: "user-primary-email";
175
172
  } | {
176
- emails: string[];
177
173
  user_id: string;
178
174
  type: "user-custom-emails";
179
- } | {
180
175
  emails: string[];
176
+ } | {
181
177
  type: "custom-emails";
178
+ emails: string[];
182
179
  };
183
180
  variables: Record<string, {} | null>;
184
181
  skip_deliverability_check: boolean;
@@ -202,16 +199,16 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
202
199
  has_delivered: boolean;
203
200
  started_rendering_at_millis: number;
204
201
  rendered_at_millis: number;
202
+ html: string | null;
203
+ text: string | null;
205
204
  is_transactional: boolean;
206
205
  is_high_priority: boolean;
206
+ notification_category_id: string | null;
207
207
  } | {
208
- html: string | null;
209
- text: string | null;
210
208
  status: "queued";
211
209
  id: string;
212
- notification_category_id: string | null;
213
- created_at_millis: number;
214
210
  subject: string;
211
+ created_at_millis: number;
215
212
  updated_at_millis: number;
216
213
  tsx_source: string;
217
214
  theme_id: string | null;
@@ -219,12 +216,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
219
216
  user_id: string;
220
217
  type: "user-primary-email";
221
218
  } | {
222
- emails: string[];
223
219
  user_id: string;
224
220
  type: "user-custom-emails";
225
- } | {
226
221
  emails: string[];
222
+ } | {
227
223
  type: "custom-emails";
224
+ emails: string[];
228
225
  };
229
226
  variables: Record<string, {} | null>;
230
227
  skip_deliverability_check: boolean;
@@ -248,16 +245,16 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
248
245
  has_delivered: boolean;
249
246
  started_rendering_at_millis: number;
250
247
  rendered_at_millis: number;
248
+ html: string | null;
249
+ text: string | null;
251
250
  is_transactional: boolean;
252
251
  is_high_priority: boolean;
252
+ notification_category_id: string | null;
253
253
  } | {
254
- html: string | null;
255
- text: string | null;
256
254
  status: "sending";
257
255
  id: string;
258
- notification_category_id: string | null;
259
- created_at_millis: number;
260
256
  subject: string;
257
+ created_at_millis: number;
261
258
  updated_at_millis: number;
262
259
  tsx_source: string;
263
260
  theme_id: string | null;
@@ -265,12 +262,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
265
262
  user_id: string;
266
263
  type: "user-primary-email";
267
264
  } | {
268
- emails: string[];
269
265
  user_id: string;
270
266
  type: "user-custom-emails";
271
- } | {
272
267
  emails: string[];
268
+ } | {
273
269
  type: "custom-emails";
270
+ emails: string[];
274
271
  };
275
272
  variables: Record<string, {} | null>;
276
273
  skip_deliverability_check: boolean;
@@ -294,17 +291,17 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
294
291
  has_delivered: boolean;
295
292
  started_rendering_at_millis: number;
296
293
  rendered_at_millis: number;
294
+ html: string | null;
295
+ text: string | null;
297
296
  is_transactional: boolean;
298
297
  is_high_priority: boolean;
298
+ notification_category_id: string | null;
299
299
  started_sending_at_millis: number;
300
300
  } | {
301
- html: string | null;
302
- text: string | null;
303
301
  status: "server-error";
304
302
  id: string;
305
- notification_category_id: string | null;
306
- created_at_millis: number;
307
303
  subject: string;
304
+ created_at_millis: number;
308
305
  updated_at_millis: number;
309
306
  tsx_source: string;
310
307
  theme_id: string | null;
@@ -312,12 +309,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
312
309
  user_id: string;
313
310
  type: "user-primary-email";
314
311
  } | {
315
- emails: string[];
316
312
  user_id: string;
317
313
  type: "user-custom-emails";
318
- } | {
319
314
  emails: string[];
315
+ } | {
320
316
  type: "custom-emails";
317
+ emails: string[];
321
318
  };
322
319
  variables: Record<string, {} | null>;
323
320
  skip_deliverability_check: boolean;
@@ -341,20 +338,23 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
341
338
  has_delivered: boolean;
342
339
  started_rendering_at_millis: number;
343
340
  rendered_at_millis: number;
341
+ html: string | null;
342
+ text: string | null;
344
343
  is_transactional: boolean;
345
344
  is_high_priority: boolean;
345
+ notification_category_id: string | null;
346
346
  started_sending_at_millis: number;
347
347
  error_at_millis: number;
348
348
  server_error: string;
349
349
  } | {
350
- html?: string | null | undefined;
351
- text?: string | null | undefined;
352
- notification_category_id?: string | null | undefined;
353
350
  subject?: string | undefined;
354
351
  started_rendering_at_millis?: number | undefined;
355
352
  rendered_at_millis?: number | undefined;
353
+ html?: string | null | undefined;
354
+ text?: string | null | undefined;
356
355
  is_transactional?: boolean | undefined;
357
356
  is_high_priority?: boolean | undefined;
357
+ notification_category_id?: string | null | undefined;
358
358
  started_sending_at_millis?: number | undefined;
359
359
  status: "skipped";
360
360
  id: string;
@@ -366,12 +366,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
366
366
  user_id: string;
367
367
  type: "user-primary-email";
368
368
  } | {
369
- emails: string[];
370
369
  user_id: string;
371
370
  type: "user-custom-emails";
372
- } | {
373
371
  emails: string[];
372
+ } | {
374
373
  type: "custom-emails";
374
+ emails: string[];
375
375
  };
376
376
  variables: Record<string, {} | null>;
377
377
  skip_deliverability_check: boolean;
@@ -397,13 +397,10 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
397
397
  skipped_reason: string;
398
398
  skipped_details: Record<string, {} | null>;
399
399
  } | {
400
- html: string | null;
401
- text: string | null;
402
400
  status: "bounced";
403
401
  id: string;
404
- notification_category_id: string | null;
405
- created_at_millis: number;
406
402
  subject: string;
403
+ created_at_millis: number;
407
404
  updated_at_millis: number;
408
405
  tsx_source: string;
409
406
  theme_id: string | null;
@@ -411,12 +408,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
411
408
  user_id: string;
412
409
  type: "user-primary-email";
413
410
  } | {
414
- emails: string[];
415
411
  user_id: string;
416
412
  type: "user-custom-emails";
417
- } | {
418
413
  emails: string[];
414
+ } | {
419
415
  type: "custom-emails";
416
+ emails: string[];
420
417
  };
421
418
  variables: Record<string, {} | null>;
422
419
  skip_deliverability_check: boolean;
@@ -440,18 +437,18 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
440
437
  has_delivered: boolean;
441
438
  started_rendering_at_millis: number;
442
439
  rendered_at_millis: number;
440
+ html: string | null;
441
+ text: string | null;
443
442
  is_transactional: boolean;
444
443
  is_high_priority: boolean;
444
+ notification_category_id: string | null;
445
445
  started_sending_at_millis: number;
446
446
  bounced_at_millis: number;
447
447
  } | {
448
- html: string | null;
449
- text: string | null;
450
448
  status: "delivery-delayed";
451
449
  id: string;
452
- notification_category_id: string | null;
453
- created_at_millis: number;
454
450
  subject: string;
451
+ created_at_millis: number;
455
452
  updated_at_millis: number;
456
453
  tsx_source: string;
457
454
  theme_id: string | null;
@@ -459,12 +456,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
459
456
  user_id: string;
460
457
  type: "user-primary-email";
461
458
  } | {
462
- emails: string[];
463
459
  user_id: string;
464
460
  type: "user-custom-emails";
465
- } | {
466
461
  emails: string[];
462
+ } | {
467
463
  type: "custom-emails";
464
+ emails: string[];
468
465
  };
469
466
  variables: Record<string, {} | null>;
470
467
  skip_deliverability_check: boolean;
@@ -488,18 +485,18 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
488
485
  has_delivered: boolean;
489
486
  started_rendering_at_millis: number;
490
487
  rendered_at_millis: number;
488
+ html: string | null;
489
+ text: string | null;
491
490
  is_transactional: boolean;
492
491
  is_high_priority: boolean;
492
+ notification_category_id: string | null;
493
493
  started_sending_at_millis: number;
494
494
  delivery_delayed_at_millis: number;
495
495
  } | {
496
- html: string | null;
497
- text: string | null;
498
496
  status: "sent";
499
497
  id: string;
500
- notification_category_id: string | null;
501
- created_at_millis: number;
502
498
  subject: string;
499
+ created_at_millis: number;
503
500
  updated_at_millis: number;
504
501
  tsx_source: string;
505
502
  theme_id: string | null;
@@ -507,12 +504,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
507
504
  user_id: string;
508
505
  type: "user-primary-email";
509
506
  } | {
510
- emails: string[];
511
507
  user_id: string;
512
508
  type: "user-custom-emails";
513
- } | {
514
509
  emails: string[];
510
+ } | {
515
511
  type: "custom-emails";
512
+ emails: string[];
516
513
  };
517
514
  variables: Record<string, {} | null>;
518
515
  skip_deliverability_check: boolean;
@@ -536,19 +533,19 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
536
533
  has_delivered: boolean;
537
534
  started_rendering_at_millis: number;
538
535
  rendered_at_millis: number;
536
+ html: string | null;
537
+ text: string | null;
539
538
  is_transactional: boolean;
540
539
  is_high_priority: boolean;
540
+ notification_category_id: string | null;
541
541
  started_sending_at_millis: number;
542
542
  delivered_at_millis: number;
543
543
  can_have_delivery_info: boolean;
544
544
  } | {
545
- html: string | null;
546
- text: string | null;
547
545
  status: "opened";
548
546
  id: string;
549
- notification_category_id: string | null;
550
- created_at_millis: number;
551
547
  subject: string;
548
+ created_at_millis: number;
552
549
  updated_at_millis: number;
553
550
  tsx_source: string;
554
551
  theme_id: string | null;
@@ -556,12 +553,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
556
553
  user_id: string;
557
554
  type: "user-primary-email";
558
555
  } | {
559
- emails: string[];
560
556
  user_id: string;
561
557
  type: "user-custom-emails";
562
- } | {
563
558
  emails: string[];
559
+ } | {
564
560
  type: "custom-emails";
561
+ emails: string[];
565
562
  };
566
563
  variables: Record<string, {} | null>;
567
564
  skip_deliverability_check: boolean;
@@ -585,20 +582,20 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
585
582
  has_delivered: boolean;
586
583
  started_rendering_at_millis: number;
587
584
  rendered_at_millis: number;
585
+ html: string | null;
586
+ text: string | null;
588
587
  is_transactional: boolean;
589
588
  is_high_priority: boolean;
589
+ notification_category_id: string | null;
590
590
  started_sending_at_millis: number;
591
591
  delivered_at_millis: number;
592
592
  can_have_delivery_info: boolean;
593
593
  opened_at_millis: number;
594
594
  } | {
595
- html: string | null;
596
- text: string | null;
597
595
  status: "clicked";
598
596
  id: string;
599
- notification_category_id: string | null;
600
- created_at_millis: number;
601
597
  subject: string;
598
+ created_at_millis: number;
602
599
  updated_at_millis: number;
603
600
  tsx_source: string;
604
601
  theme_id: string | null;
@@ -606,12 +603,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
606
603
  user_id: string;
607
604
  type: "user-primary-email";
608
605
  } | {
609
- emails: string[];
610
606
  user_id: string;
611
607
  type: "user-custom-emails";
612
- } | {
613
608
  emails: string[];
609
+ } | {
614
610
  type: "custom-emails";
611
+ emails: string[];
615
612
  };
616
613
  variables: Record<string, {} | null>;
617
614
  skip_deliverability_check: boolean;
@@ -635,20 +632,20 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
635
632
  has_delivered: boolean;
636
633
  started_rendering_at_millis: number;
637
634
  rendered_at_millis: number;
635
+ html: string | null;
636
+ text: string | null;
638
637
  is_transactional: boolean;
639
638
  is_high_priority: boolean;
639
+ notification_category_id: string | null;
640
640
  started_sending_at_millis: number;
641
641
  delivered_at_millis: number;
642
642
  can_have_delivery_info: boolean;
643
643
  clicked_at_millis: number;
644
644
  } | {
645
- html: string | null;
646
- text: string | null;
647
645
  status: "marked-as-spam";
648
646
  id: string;
649
- notification_category_id: string | null;
650
- created_at_millis: number;
651
647
  subject: string;
648
+ created_at_millis: number;
652
649
  updated_at_millis: number;
653
650
  tsx_source: string;
654
651
  theme_id: string | null;
@@ -656,12 +653,12 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
656
653
  user_id: string;
657
654
  type: "user-primary-email";
658
655
  } | {
659
- emails: string[];
660
656
  user_id: string;
661
657
  type: "user-custom-emails";
662
- } | {
663
658
  emails: string[];
659
+ } | {
664
660
  type: "custom-emails";
661
+ emails: string[];
665
662
  };
666
663
  variables: Record<string, {} | null>;
667
664
  skip_deliverability_check: boolean;
@@ -685,8 +682,11 @@ declare const emailOutboxReadSchema: yup$1.MixedSchema<{
685
682
  has_delivered: boolean;
686
683
  started_rendering_at_millis: number;
687
684
  rendered_at_millis: number;
685
+ html: string | null;
686
+ text: string | null;
688
687
  is_transactional: boolean;
689
688
  is_high_priority: boolean;
689
+ notification_category_id: string | null;
690
690
  started_sending_at_millis: number;
691
691
  delivered_at_millis: number;
692
692
  can_have_delivery_info: boolean;
@@ -699,12 +699,12 @@ declare const emailOutboxUpdateSchema: yup$1.ObjectSchema<{
699
699
  user_id: string;
700
700
  type: "user-primary-email";
701
701
  } | {
702
- emails: string[];
703
702
  user_id: string;
704
703
  type: "user-custom-emails";
705
- } | {
706
704
  emails: string[];
705
+ } | {
707
706
  type: "custom-emails";
707
+ emails: string[];
708
708
  } | undefined;
709
709
  variables: Record<string, {} | null> | undefined;
710
710
  skip_deliverability_check: boolean | undefined;
@@ -733,12 +733,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
733
733
  user_id: string;
734
734
  type: "user-primary-email";
735
735
  } | {
736
- emails: string[];
737
736
  user_id: string;
738
737
  type: "user-custom-emails";
739
- } | {
740
738
  emails: string[];
739
+ } | {
741
740
  type: "custom-emails";
741
+ emails: string[];
742
742
  };
743
743
  variables: Record<string, {} | null>;
744
744
  skip_deliverability_check: boolean;
@@ -771,12 +771,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
771
771
  user_id: string;
772
772
  type: "user-primary-email";
773
773
  } | {
774
- emails: string[];
775
774
  user_id: string;
776
775
  type: "user-custom-emails";
777
- } | {
778
776
  emails: string[];
777
+ } | {
779
778
  type: "custom-emails";
779
+ emails: string[];
780
780
  };
781
781
  variables: Record<string, {} | null>;
782
782
  skip_deliverability_check: boolean;
@@ -809,12 +809,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
809
809
  user_id: string;
810
810
  type: "user-primary-email";
811
811
  } | {
812
- emails: string[];
813
812
  user_id: string;
814
813
  type: "user-custom-emails";
815
- } | {
816
814
  emails: string[];
815
+ } | {
817
816
  type: "custom-emails";
817
+ emails: string[];
818
818
  };
819
819
  variables: Record<string, {} | null>;
820
820
  skip_deliverability_check: boolean;
@@ -848,12 +848,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
848
848
  user_id: string;
849
849
  type: "user-primary-email";
850
850
  } | {
851
- emails: string[];
852
851
  user_id: string;
853
852
  type: "user-custom-emails";
854
- } | {
855
853
  emails: string[];
854
+ } | {
856
855
  type: "custom-emails";
856
+ emails: string[];
857
857
  };
858
858
  variables: Record<string, {} | null>;
859
859
  skip_deliverability_check: boolean;
@@ -879,13 +879,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
879
879
  rendered_at_millis: number;
880
880
  render_error: string;
881
881
  } | {
882
- html: string | null;
883
- text: string | null;
884
882
  status: "scheduled";
885
883
  id: string;
886
- notification_category_id: string | null;
887
- created_at_millis: number;
888
884
  subject: string;
885
+ created_at_millis: number;
889
886
  updated_at_millis: number;
890
887
  tsx_source: string;
891
888
  theme_id: string | null;
@@ -893,12 +890,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
893
890
  user_id: string;
894
891
  type: "user-primary-email";
895
892
  } | {
896
- emails: string[];
897
893
  user_id: string;
898
894
  type: "user-custom-emails";
899
- } | {
900
895
  emails: string[];
896
+ } | {
901
897
  type: "custom-emails";
898
+ emails: string[];
902
899
  };
903
900
  variables: Record<string, {} | null>;
904
901
  skip_deliverability_check: boolean;
@@ -922,16 +919,16 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
922
919
  has_delivered: boolean;
923
920
  started_rendering_at_millis: number;
924
921
  rendered_at_millis: number;
922
+ html: string | null;
923
+ text: string | null;
925
924
  is_transactional: boolean;
926
925
  is_high_priority: boolean;
926
+ notification_category_id: string | null;
927
927
  } | {
928
- html: string | null;
929
- text: string | null;
930
928
  status: "queued";
931
929
  id: string;
932
- notification_category_id: string | null;
933
- created_at_millis: number;
934
930
  subject: string;
931
+ created_at_millis: number;
935
932
  updated_at_millis: number;
936
933
  tsx_source: string;
937
934
  theme_id: string | null;
@@ -939,12 +936,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
939
936
  user_id: string;
940
937
  type: "user-primary-email";
941
938
  } | {
942
- emails: string[];
943
939
  user_id: string;
944
940
  type: "user-custom-emails";
945
- } | {
946
941
  emails: string[];
942
+ } | {
947
943
  type: "custom-emails";
944
+ emails: string[];
948
945
  };
949
946
  variables: Record<string, {} | null>;
950
947
  skip_deliverability_check: boolean;
@@ -968,16 +965,16 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
968
965
  has_delivered: boolean;
969
966
  started_rendering_at_millis: number;
970
967
  rendered_at_millis: number;
968
+ html: string | null;
969
+ text: string | null;
971
970
  is_transactional: boolean;
972
971
  is_high_priority: boolean;
972
+ notification_category_id: string | null;
973
973
  } | {
974
- html: string | null;
975
- text: string | null;
976
974
  status: "sending";
977
975
  id: string;
978
- notification_category_id: string | null;
979
- created_at_millis: number;
980
976
  subject: string;
977
+ created_at_millis: number;
981
978
  updated_at_millis: number;
982
979
  tsx_source: string;
983
980
  theme_id: string | null;
@@ -985,12 +982,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
985
982
  user_id: string;
986
983
  type: "user-primary-email";
987
984
  } | {
988
- emails: string[];
989
985
  user_id: string;
990
986
  type: "user-custom-emails";
991
- } | {
992
987
  emails: string[];
988
+ } | {
993
989
  type: "custom-emails";
990
+ emails: string[];
994
991
  };
995
992
  variables: Record<string, {} | null>;
996
993
  skip_deliverability_check: boolean;
@@ -1014,17 +1011,17 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1014
1011
  has_delivered: boolean;
1015
1012
  started_rendering_at_millis: number;
1016
1013
  rendered_at_millis: number;
1014
+ html: string | null;
1015
+ text: string | null;
1017
1016
  is_transactional: boolean;
1018
1017
  is_high_priority: boolean;
1018
+ notification_category_id: string | null;
1019
1019
  started_sending_at_millis: number;
1020
1020
  } | {
1021
- html: string | null;
1022
- text: string | null;
1023
1021
  status: "server-error";
1024
1022
  id: string;
1025
- notification_category_id: string | null;
1026
- created_at_millis: number;
1027
1023
  subject: string;
1024
+ created_at_millis: number;
1028
1025
  updated_at_millis: number;
1029
1026
  tsx_source: string;
1030
1027
  theme_id: string | null;
@@ -1032,12 +1029,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1032
1029
  user_id: string;
1033
1030
  type: "user-primary-email";
1034
1031
  } | {
1035
- emails: string[];
1036
1032
  user_id: string;
1037
1033
  type: "user-custom-emails";
1038
- } | {
1039
1034
  emails: string[];
1035
+ } | {
1040
1036
  type: "custom-emails";
1037
+ emails: string[];
1041
1038
  };
1042
1039
  variables: Record<string, {} | null>;
1043
1040
  skip_deliverability_check: boolean;
@@ -1061,20 +1058,23 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1061
1058
  has_delivered: boolean;
1062
1059
  started_rendering_at_millis: number;
1063
1060
  rendered_at_millis: number;
1061
+ html: string | null;
1062
+ text: string | null;
1064
1063
  is_transactional: boolean;
1065
1064
  is_high_priority: boolean;
1065
+ notification_category_id: string | null;
1066
1066
  started_sending_at_millis: number;
1067
1067
  error_at_millis: number;
1068
1068
  server_error: string;
1069
1069
  } | {
1070
- html?: string | null | undefined;
1071
- text?: string | null | undefined;
1072
- notification_category_id?: string | null | undefined;
1073
1070
  subject?: string | undefined;
1074
1071
  started_rendering_at_millis?: number | undefined;
1075
1072
  rendered_at_millis?: number | undefined;
1073
+ html?: string | null | undefined;
1074
+ text?: string | null | undefined;
1076
1075
  is_transactional?: boolean | undefined;
1077
1076
  is_high_priority?: boolean | undefined;
1077
+ notification_category_id?: string | null | undefined;
1078
1078
  started_sending_at_millis?: number | undefined;
1079
1079
  status: "skipped";
1080
1080
  id: string;
@@ -1086,12 +1086,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1086
1086
  user_id: string;
1087
1087
  type: "user-primary-email";
1088
1088
  } | {
1089
- emails: string[];
1090
1089
  user_id: string;
1091
1090
  type: "user-custom-emails";
1092
- } | {
1093
1091
  emails: string[];
1092
+ } | {
1094
1093
  type: "custom-emails";
1094
+ emails: string[];
1095
1095
  };
1096
1096
  variables: Record<string, {} | null>;
1097
1097
  skip_deliverability_check: boolean;
@@ -1117,13 +1117,10 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1117
1117
  skipped_reason: string;
1118
1118
  skipped_details: Record<string, {} | null>;
1119
1119
  } | {
1120
- html: string | null;
1121
- text: string | null;
1122
1120
  status: "bounced";
1123
1121
  id: string;
1124
- notification_category_id: string | null;
1125
- created_at_millis: number;
1126
1122
  subject: string;
1123
+ created_at_millis: number;
1127
1124
  updated_at_millis: number;
1128
1125
  tsx_source: string;
1129
1126
  theme_id: string | null;
@@ -1131,12 +1128,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1131
1128
  user_id: string;
1132
1129
  type: "user-primary-email";
1133
1130
  } | {
1134
- emails: string[];
1135
1131
  user_id: string;
1136
1132
  type: "user-custom-emails";
1137
- } | {
1138
1133
  emails: string[];
1134
+ } | {
1139
1135
  type: "custom-emails";
1136
+ emails: string[];
1140
1137
  };
1141
1138
  variables: Record<string, {} | null>;
1142
1139
  skip_deliverability_check: boolean;
@@ -1160,18 +1157,18 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1160
1157
  has_delivered: boolean;
1161
1158
  started_rendering_at_millis: number;
1162
1159
  rendered_at_millis: number;
1160
+ html: string | null;
1161
+ text: string | null;
1163
1162
  is_transactional: boolean;
1164
1163
  is_high_priority: boolean;
1164
+ notification_category_id: string | null;
1165
1165
  started_sending_at_millis: number;
1166
1166
  bounced_at_millis: number;
1167
1167
  } | {
1168
- html: string | null;
1169
- text: string | null;
1170
1168
  status: "delivery-delayed";
1171
1169
  id: string;
1172
- notification_category_id: string | null;
1173
- created_at_millis: number;
1174
1170
  subject: string;
1171
+ created_at_millis: number;
1175
1172
  updated_at_millis: number;
1176
1173
  tsx_source: string;
1177
1174
  theme_id: string | null;
@@ -1179,12 +1176,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1179
1176
  user_id: string;
1180
1177
  type: "user-primary-email";
1181
1178
  } | {
1182
- emails: string[];
1183
1179
  user_id: string;
1184
1180
  type: "user-custom-emails";
1185
- } | {
1186
1181
  emails: string[];
1182
+ } | {
1187
1183
  type: "custom-emails";
1184
+ emails: string[];
1188
1185
  };
1189
1186
  variables: Record<string, {} | null>;
1190
1187
  skip_deliverability_check: boolean;
@@ -1208,18 +1205,18 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1208
1205
  has_delivered: boolean;
1209
1206
  started_rendering_at_millis: number;
1210
1207
  rendered_at_millis: number;
1208
+ html: string | null;
1209
+ text: string | null;
1211
1210
  is_transactional: boolean;
1212
1211
  is_high_priority: boolean;
1212
+ notification_category_id: string | null;
1213
1213
  started_sending_at_millis: number;
1214
1214
  delivery_delayed_at_millis: number;
1215
1215
  } | {
1216
- html: string | null;
1217
- text: string | null;
1218
1216
  status: "sent";
1219
1217
  id: string;
1220
- notification_category_id: string | null;
1221
- created_at_millis: number;
1222
1218
  subject: string;
1219
+ created_at_millis: number;
1223
1220
  updated_at_millis: number;
1224
1221
  tsx_source: string;
1225
1222
  theme_id: string | null;
@@ -1227,12 +1224,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1227
1224
  user_id: string;
1228
1225
  type: "user-primary-email";
1229
1226
  } | {
1230
- emails: string[];
1231
1227
  user_id: string;
1232
1228
  type: "user-custom-emails";
1233
- } | {
1234
1229
  emails: string[];
1230
+ } | {
1235
1231
  type: "custom-emails";
1232
+ emails: string[];
1236
1233
  };
1237
1234
  variables: Record<string, {} | null>;
1238
1235
  skip_deliverability_check: boolean;
@@ -1256,19 +1253,19 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1256
1253
  has_delivered: boolean;
1257
1254
  started_rendering_at_millis: number;
1258
1255
  rendered_at_millis: number;
1256
+ html: string | null;
1257
+ text: string | null;
1259
1258
  is_transactional: boolean;
1260
1259
  is_high_priority: boolean;
1260
+ notification_category_id: string | null;
1261
1261
  started_sending_at_millis: number;
1262
1262
  delivered_at_millis: number;
1263
1263
  can_have_delivery_info: boolean;
1264
1264
  } | {
1265
- html: string | null;
1266
- text: string | null;
1267
1265
  status: "opened";
1268
1266
  id: string;
1269
- notification_category_id: string | null;
1270
- created_at_millis: number;
1271
1267
  subject: string;
1268
+ created_at_millis: number;
1272
1269
  updated_at_millis: number;
1273
1270
  tsx_source: string;
1274
1271
  theme_id: string | null;
@@ -1276,12 +1273,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1276
1273
  user_id: string;
1277
1274
  type: "user-primary-email";
1278
1275
  } | {
1279
- emails: string[];
1280
1276
  user_id: string;
1281
1277
  type: "user-custom-emails";
1282
- } | {
1283
1278
  emails: string[];
1279
+ } | {
1284
1280
  type: "custom-emails";
1281
+ emails: string[];
1285
1282
  };
1286
1283
  variables: Record<string, {} | null>;
1287
1284
  skip_deliverability_check: boolean;
@@ -1305,20 +1302,20 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1305
1302
  has_delivered: boolean;
1306
1303
  started_rendering_at_millis: number;
1307
1304
  rendered_at_millis: number;
1305
+ html: string | null;
1306
+ text: string | null;
1308
1307
  is_transactional: boolean;
1309
1308
  is_high_priority: boolean;
1309
+ notification_category_id: string | null;
1310
1310
  started_sending_at_millis: number;
1311
1311
  delivered_at_millis: number;
1312
1312
  can_have_delivery_info: boolean;
1313
1313
  opened_at_millis: number;
1314
1314
  } | {
1315
- html: string | null;
1316
- text: string | null;
1317
1315
  status: "clicked";
1318
1316
  id: string;
1319
- notification_category_id: string | null;
1320
- created_at_millis: number;
1321
1317
  subject: string;
1318
+ created_at_millis: number;
1322
1319
  updated_at_millis: number;
1323
1320
  tsx_source: string;
1324
1321
  theme_id: string | null;
@@ -1326,12 +1323,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1326
1323
  user_id: string;
1327
1324
  type: "user-primary-email";
1328
1325
  } | {
1329
- emails: string[];
1330
1326
  user_id: string;
1331
1327
  type: "user-custom-emails";
1332
- } | {
1333
1328
  emails: string[];
1329
+ } | {
1334
1330
  type: "custom-emails";
1331
+ emails: string[];
1335
1332
  };
1336
1333
  variables: Record<string, {} | null>;
1337
1334
  skip_deliverability_check: boolean;
@@ -1355,20 +1352,20 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1355
1352
  has_delivered: boolean;
1356
1353
  started_rendering_at_millis: number;
1357
1354
  rendered_at_millis: number;
1355
+ html: string | null;
1356
+ text: string | null;
1358
1357
  is_transactional: boolean;
1359
1358
  is_high_priority: boolean;
1359
+ notification_category_id: string | null;
1360
1360
  started_sending_at_millis: number;
1361
1361
  delivered_at_millis: number;
1362
1362
  can_have_delivery_info: boolean;
1363
1363
  clicked_at_millis: number;
1364
1364
  } | {
1365
- html: string | null;
1366
- text: string | null;
1367
1365
  status: "marked-as-spam";
1368
1366
  id: string;
1369
- notification_category_id: string | null;
1370
- created_at_millis: number;
1371
1367
  subject: string;
1368
+ created_at_millis: number;
1372
1369
  updated_at_millis: number;
1373
1370
  tsx_source: string;
1374
1371
  theme_id: string | null;
@@ -1376,12 +1373,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1376
1373
  user_id: string;
1377
1374
  type: "user-primary-email";
1378
1375
  } | {
1379
- emails: string[];
1380
1376
  user_id: string;
1381
1377
  type: "user-custom-emails";
1382
- } | {
1383
1378
  emails: string[];
1379
+ } | {
1384
1380
  type: "custom-emails";
1381
+ emails: string[];
1385
1382
  };
1386
1383
  variables: Record<string, {} | null>;
1387
1384
  skip_deliverability_check: boolean;
@@ -1405,8 +1402,11 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1405
1402
  has_delivered: boolean;
1406
1403
  started_rendering_at_millis: number;
1407
1404
  rendered_at_millis: number;
1405
+ html: string | null;
1406
+ text: string | null;
1408
1407
  is_transactional: boolean;
1409
1408
  is_high_priority: boolean;
1409
+ notification_category_id: string | null;
1410
1410
  started_sending_at_millis: number;
1411
1411
  delivered_at_millis: number;
1412
1412
  can_have_delivery_info: boolean;
@@ -1419,12 +1419,12 @@ declare const emailOutboxCrud: CrudSchemaFromOptions<{
1419
1419
  user_id: string;
1420
1420
  type: "user-primary-email";
1421
1421
  } | {
1422
- emails: string[];
1423
1422
  user_id: string;
1424
1423
  type: "user-custom-emails";
1425
- } | {
1426
1424
  emails: string[];
1425
+ } | {
1427
1426
  type: "custom-emails";
1427
+ emails: string[];
1428
1428
  } | undefined;
1429
1429
  variables: Record<string, {} | null> | undefined;
1430
1430
  skip_deliverability_check: boolean | undefined;