@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
@@ -3,7 +3,7 @@ import * as yup$1 from "yup";
3
3
  //#region src/interface/crud/invoices.d.ts
4
4
  declare const customerInvoiceReadSchema: yup$1.ObjectSchema<{
5
5
  created_at_millis: number;
6
- status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
6
+ status: "open" | "draft" | "paid" | "uncollectible" | "void" | null;
7
7
  amount_total: number;
8
8
  hosted_invoice_url: string | null;
9
9
  }, yup$1.AnyObject, {
@@ -15,7 +15,7 @@ declare const customerInvoiceReadSchema: yup$1.ObjectSchema<{
15
15
  type CustomerInvoiceRead = yup$1.InferType<typeof customerInvoiceReadSchema>;
16
16
  declare const customerInvoicesListResponseSchema: yup$1.ObjectSchema<{
17
17
  items: {
18
- status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
18
+ status: "open" | "draft" | "paid" | "uncollectible" | "void" | null;
19
19
  created_at_millis: number;
20
20
  amount_total: number;
21
21
  hosted_invoice_url: string | null;
@@ -26,8 +26,8 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
26
26
  }>;
27
27
  display_name: string;
28
28
  included_items: Record<string, {
29
- repeat?: "never" | DayInterval | undefined;
30
29
  quantity?: number | undefined;
30
+ repeat?: "never" | DayInterval | undefined;
31
31
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
32
32
  }>;
33
33
  };
@@ -61,8 +61,8 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
61
61
  }>;
62
62
  display_name: string;
63
63
  included_items: Record<string, {
64
- repeat?: "never" | DayInterval | undefined;
65
64
  quantity?: number | undefined;
65
+ repeat?: "never" | DayInterval | undefined;
66
66
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
67
67
  }>;
68
68
  };
@@ -124,8 +124,8 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
124
124
  }>;
125
125
  display_name: string;
126
126
  included_items: Record<string, {
127
- repeat?: "never" | DayInterval | undefined;
128
127
  quantity?: number | undefined;
128
+ repeat?: "never" | DayInterval | undefined;
129
129
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
130
130
  }>;
131
131
  };
@@ -152,8 +152,8 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
152
152
  }>;
153
153
  display_name: string;
154
154
  included_items: Record<string, {
155
- repeat?: "never" | DayInterval | undefined;
156
155
  quantity?: number | undefined;
156
+ repeat?: "never" | DayInterval | undefined;
157
157
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
158
158
  }>;
159
159
  };
@@ -78,9 +78,9 @@ declare const userApiKeysCrud: CrudSchemaFromOptions<{
78
78
  is_public: undefined;
79
79
  user_id: undefined;
80
80
  }, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
81
- description: string;
82
81
  user_id: string;
83
82
  type: "user";
83
+ description: string;
84
84
  id: string;
85
85
  created_at_millis: number;
86
86
  expires_at_millis: number | undefined;
@@ -176,9 +176,9 @@ declare const teamApiKeysCrud: CrudSchemaFromOptions<{
176
176
  is_public: undefined;
177
177
  team_id: undefined;
178
178
  }, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
179
- description: string;
180
179
  type: "team";
181
180
  team_id: string;
181
+ description: string;
182
182
  id: string;
183
183
  created_at_millis: number;
184
184
  expires_at_millis: number | undefined;
@@ -3,7 +3,7 @@ import * as yup$1 from "yup";
3
3
 
4
4
  //#region src/interface/crud/projects.d.ts
5
5
  declare const emailConfigSchema: yup$1.ObjectSchema<{
6
- type: "standard" | "shared";
6
+ type: "shared" | "standard";
7
7
  host: string | undefined;
8
8
  port: number | undefined;
9
9
  username: string | undefined;
@@ -20,7 +20,7 @@ declare const emailConfigSchema: yup$1.ObjectSchema<{
20
20
  sender_email: undefined;
21
21
  }, "">;
22
22
  declare const emailConfigWithoutPasswordSchema: yup$1.ObjectSchema<{
23
- type: "standard" | "shared";
23
+ type: "shared" | "standard";
24
24
  host: string | undefined;
25
25
  port: number | undefined;
26
26
  username: string | undefined;
@@ -51,25 +51,25 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
51
51
  onboarding_state: {
52
52
  selected_config_choice: "create-new" | "link-existing";
53
53
  selected_apps: string[];
54
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
54
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
55
55
  selected_email_theme_id: string | null;
56
56
  selected_payments_country: "US" | "OTHER";
57
57
  } | null | undefined;
58
58
  config: {
59
- domains: {
60
- domain: string;
61
- handler_path: string;
62
- }[];
63
59
  oauth_providers: {
64
60
  client_id?: string | undefined;
65
61
  client_secret?: string | undefined;
66
62
  facebook_config_id?: string | undefined;
67
63
  microsoft_tenant_id?: string | undefined;
68
64
  apple_bundle_ids?: string[] | undefined;
69
- type: "standard" | "shared";
65
+ type: "shared" | "standard";
70
66
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
71
67
  provider_config_id: string;
72
68
  }[];
69
+ domains: {
70
+ domain: string;
71
+ handler_path: string;
72
+ }[];
73
73
  allow_localhost: boolean;
74
74
  sign_up_enabled: boolean;
75
75
  credential_enabled: boolean;
@@ -89,7 +89,7 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
89
89
  username?: string | undefined;
90
90
  sender_name?: string | undefined;
91
91
  sender_email?: string | undefined;
92
- type: "standard" | "shared";
92
+ type: "shared" | "standard";
93
93
  };
94
94
  email_theme: string;
95
95
  create_team_on_sign_up: boolean;
@@ -204,24 +204,24 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
204
204
  onboarding_state: {
205
205
  selected_config_choice: "create-new" | "link-existing";
206
206
  selected_apps: string[];
207
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
207
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
208
208
  selected_email_theme_id: string | null;
209
209
  selected_payments_country: "US" | "OTHER";
210
210
  } | null | undefined;
211
211
  config: {
212
- domains?: {
213
- domain: string;
214
- handler_path: string;
215
- }[] | undefined;
216
212
  oauth_providers?: {
217
213
  client_id?: string | undefined;
218
214
  client_secret?: string | undefined;
219
215
  facebook_config_id?: string | undefined;
220
216
  microsoft_tenant_id?: string | undefined;
221
217
  apple_bundle_ids?: string[] | undefined;
222
- type: "standard" | "shared";
218
+ type: "shared" | "standard";
223
219
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
224
220
  }[] | undefined;
221
+ domains?: {
222
+ domain: string;
223
+ handler_path: string;
224
+ }[] | undefined;
225
225
  allow_localhost?: boolean | undefined;
226
226
  sign_up_enabled?: boolean | undefined;
227
227
  credential_enabled?: boolean | undefined;
@@ -238,7 +238,7 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
238
238
  username?: string | undefined;
239
239
  sender_name?: string | undefined;
240
240
  sender_email?: string | undefined;
241
- type: "standard" | "shared";
241
+ type: "shared" | "standard";
242
242
  } | undefined;
243
243
  email_theme?: string | undefined;
244
244
  create_team_on_sign_up?: boolean | undefined;
@@ -284,24 +284,24 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
284
284
  onboarding_state: {
285
285
  selected_config_choice: "create-new" | "link-existing";
286
286
  selected_apps: string[];
287
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
287
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
288
288
  selected_email_theme_id: string | null;
289
289
  selected_payments_country: "US" | "OTHER";
290
290
  } | null | undefined;
291
291
  config: {
292
- domains?: {
293
- domain: string;
294
- handler_path: string;
295
- }[] | undefined;
296
292
  oauth_providers?: {
297
293
  client_id?: string | undefined;
298
294
  client_secret?: string | undefined;
299
295
  facebook_config_id?: string | undefined;
300
296
  microsoft_tenant_id?: string | undefined;
301
297
  apple_bundle_ids?: string[] | undefined;
302
- type: "standard" | "shared";
298
+ type: "shared" | "standard";
303
299
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
304
300
  }[] | undefined;
301
+ domains?: {
302
+ domain: string;
303
+ handler_path: string;
304
+ }[] | undefined;
305
305
  allow_localhost?: boolean | undefined;
306
306
  sign_up_enabled?: boolean | undefined;
307
307
  credential_enabled?: boolean | undefined;
@@ -318,7 +318,7 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
318
318
  username?: string | undefined;
319
319
  sender_name?: string | undefined;
320
320
  sender_email?: string | undefined;
321
- type: "standard" | "shared";
321
+ type: "shared" | "standard";
322
322
  } | undefined;
323
323
  email_theme?: string | undefined;
324
324
  create_team_on_sign_up?: boolean | undefined;
@@ -424,25 +424,25 @@ declare const projectsCrud: CrudSchemaFromOptions<{
424
424
  onboarding_state: {
425
425
  selected_config_choice: "create-new" | "link-existing";
426
426
  selected_apps: string[];
427
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
427
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
428
428
  selected_email_theme_id: string | null;
429
429
  selected_payments_country: "US" | "OTHER";
430
430
  } | null | undefined;
431
431
  config: {
432
- domains: {
433
- domain: string;
434
- handler_path: string;
435
- }[];
436
432
  oauth_providers: {
437
433
  client_id?: string | undefined;
438
434
  client_secret?: string | undefined;
439
435
  facebook_config_id?: string | undefined;
440
436
  microsoft_tenant_id?: string | undefined;
441
437
  apple_bundle_ids?: string[] | undefined;
442
- type: "standard" | "shared";
438
+ type: "shared" | "standard";
443
439
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
444
440
  provider_config_id: string;
445
441
  }[];
442
+ domains: {
443
+ domain: string;
444
+ handler_path: string;
445
+ }[];
446
446
  allow_localhost: boolean;
447
447
  sign_up_enabled: boolean;
448
448
  credential_enabled: boolean;
@@ -462,7 +462,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
462
462
  username?: string | undefined;
463
463
  sender_name?: string | undefined;
464
464
  sender_email?: string | undefined;
465
- type: "standard" | "shared";
465
+ type: "shared" | "standard";
466
466
  };
467
467
  email_theme: string;
468
468
  create_team_on_sign_up: boolean;
@@ -539,24 +539,24 @@ declare const projectsCrud: CrudSchemaFromOptions<{
539
539
  onboarding_state: {
540
540
  selected_config_choice: "create-new" | "link-existing";
541
541
  selected_apps: string[];
542
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
542
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
543
543
  selected_email_theme_id: string | null;
544
544
  selected_payments_country: "US" | "OTHER";
545
545
  } | null | undefined;
546
546
  config: {
547
- domains?: {
548
- domain: string;
549
- handler_path: string;
550
- }[] | undefined;
551
547
  oauth_providers?: {
552
548
  client_id?: string | undefined;
553
549
  client_secret?: string | undefined;
554
550
  facebook_config_id?: string | undefined;
555
551
  microsoft_tenant_id?: string | undefined;
556
552
  apple_bundle_ids?: string[] | undefined;
557
- type: "standard" | "shared";
553
+ type: "shared" | "standard";
558
554
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
559
555
  }[] | undefined;
556
+ domains?: {
557
+ domain: string;
558
+ handler_path: string;
559
+ }[] | undefined;
560
560
  allow_localhost?: boolean | undefined;
561
561
  sign_up_enabled?: boolean | undefined;
562
562
  credential_enabled?: boolean | undefined;
@@ -573,7 +573,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
573
573
  username?: string | undefined;
574
574
  sender_name?: string | undefined;
575
575
  sender_email?: string | undefined;
576
- type: "standard" | "shared";
576
+ type: "shared" | "standard";
577
577
  } | undefined;
578
578
  email_theme?: string | undefined;
579
579
  create_team_on_sign_up?: boolean | undefined;
@@ -647,25 +647,25 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
647
647
  onboarding_state: {
648
648
  selected_config_choice: "create-new" | "link-existing";
649
649
  selected_apps: string[];
650
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
650
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
651
651
  selected_email_theme_id: string | null;
652
652
  selected_payments_country: "US" | "OTHER";
653
653
  } | null | undefined;
654
654
  config: {
655
- domains: {
656
- domain: string;
657
- handler_path: string;
658
- }[];
659
655
  oauth_providers: {
660
656
  client_id?: string | undefined;
661
657
  client_secret?: string | undefined;
662
658
  facebook_config_id?: string | undefined;
663
659
  microsoft_tenant_id?: string | undefined;
664
660
  apple_bundle_ids?: string[] | undefined;
665
- type: "standard" | "shared";
661
+ type: "shared" | "standard";
666
662
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
667
663
  provider_config_id: string;
668
664
  }[];
665
+ domains: {
666
+ domain: string;
667
+ handler_path: string;
668
+ }[];
669
669
  allow_localhost: boolean;
670
670
  sign_up_enabled: boolean;
671
671
  credential_enabled: boolean;
@@ -685,7 +685,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
685
685
  username?: string | undefined;
686
686
  sender_name?: string | undefined;
687
687
  sender_email?: string | undefined;
688
- type: "standard" | "shared";
688
+ type: "shared" | "standard";
689
689
  };
690
690
  email_theme: string;
691
691
  create_team_on_sign_up: boolean;
@@ -762,24 +762,24 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
762
762
  onboarding_state: {
763
763
  selected_config_choice: "create-new" | "link-existing";
764
764
  selected_apps: string[];
765
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
765
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
766
766
  selected_email_theme_id: string | null;
767
767
  selected_payments_country: "US" | "OTHER";
768
768
  } | null | undefined;
769
769
  config: {
770
- domains?: {
771
- domain: string;
772
- handler_path: string;
773
- }[] | undefined;
774
770
  oauth_providers?: {
775
771
  client_id?: string | undefined;
776
772
  client_secret?: string | undefined;
777
773
  facebook_config_id?: string | undefined;
778
774
  microsoft_tenant_id?: string | undefined;
779
775
  apple_bundle_ids?: string[] | undefined;
780
- type: "standard" | "shared";
776
+ type: "shared" | "standard";
781
777
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
782
778
  }[] | undefined;
779
+ domains?: {
780
+ domain: string;
781
+ handler_path: string;
782
+ }[] | undefined;
783
783
  allow_localhost?: boolean | undefined;
784
784
  sign_up_enabled?: boolean | undefined;
785
785
  credential_enabled?: boolean | undefined;
@@ -796,7 +796,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
796
796
  username?: string | undefined;
797
797
  sender_name?: string | undefined;
798
798
  sender_email?: string | undefined;
799
- type: "standard" | "shared";
799
+ type: "shared" | "standard";
800
800
  } | undefined;
801
801
  email_theme?: string | undefined;
802
802
  create_team_on_sign_up?: boolean | undefined;
@@ -33,27 +33,27 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
33
33
  is_anonymous: boolean;
34
34
  is_restricted: boolean;
35
35
  requires_totp_mfa: boolean;
36
+ country_code: string | null;
37
+ profile_image_url: string | null;
38
+ signed_up_at_millis: number;
39
+ last_active_at_millis: number;
36
40
  primary_email_verified: boolean;
37
41
  primary_email_auth_enabled: boolean;
38
- profile_image_url: string | null;
39
42
  selected_team: {
40
43
  client_metadata?: {} | null | undefined;
41
44
  client_read_only_metadata?: {} | null | undefined;
42
45
  server_metadata?: {} | null | undefined;
43
46
  display_name: string;
44
47
  id: string;
45
- profile_image_url: string | null;
46
48
  created_at_millis: number;
49
+ profile_image_url: string | null;
47
50
  } | null;
48
- signed_up_at_millis: number;
49
51
  has_password: boolean;
50
52
  otp_auth_enabled: boolean;
51
53
  passkey_auth_enabled: boolean;
52
- last_active_at_millis: number;
53
54
  restricted_by_admin: boolean;
54
55
  restricted_by_admin_reason: string | null;
55
56
  restricted_by_admin_private_details: string | null;
56
- country_code: string | null;
57
57
  risk_scores: {
58
58
  sign_up: {
59
59
  bot: number;
@@ -156,27 +156,27 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
156
156
  is_anonymous: boolean;
157
157
  is_restricted: boolean;
158
158
  requires_totp_mfa: boolean;
159
+ country_code: string | null;
160
+ profile_image_url: string | null;
161
+ signed_up_at_millis: number;
162
+ last_active_at_millis: number;
159
163
  primary_email_verified: boolean;
160
164
  primary_email_auth_enabled: boolean;
161
- profile_image_url: string | null;
162
165
  selected_team: {
163
166
  client_metadata?: {} | null | undefined;
164
167
  client_read_only_metadata?: {} | null | undefined;
165
168
  server_metadata?: {} | null | undefined;
166
169
  display_name: string;
167
170
  id: string;
168
- profile_image_url: string | null;
169
171
  created_at_millis: number;
172
+ profile_image_url: string | null;
170
173
  } | null;
171
- signed_up_at_millis: number;
172
174
  has_password: boolean;
173
175
  otp_auth_enabled: boolean;
174
176
  passkey_auth_enabled: boolean;
175
- last_active_at_millis: number;
176
177
  restricted_by_admin: boolean;
177
178
  restricted_by_admin_reason: string | null;
178
179
  restricted_by_admin_private_details: string | null;
179
- country_code: string | null;
180
180
  risk_scores: {
181
181
  sign_up: {
182
182
  bot: number;
@@ -58,8 +58,8 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
58
58
  }>;
59
59
  display_name: string;
60
60
  included_items: Record<string, {
61
- repeat?: "never" | DayInterval | undefined;
62
61
  quantity?: number | undefined;
62
+ repeat?: "never" | DayInterval | undefined;
63
63
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
64
64
  }>;
65
65
  };
@@ -142,8 +142,8 @@ declare const transactionSchema: yup$1.ObjectSchema<{
142
142
  }>;
143
143
  display_name: string;
144
144
  included_items: Record<string, {
145
- repeat?: "never" | DayInterval | undefined;
146
145
  quantity?: number | undefined;
146
+ repeat?: "never" | DayInterval | undefined;
147
147
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
148
148
  }>;
149
149
  };
@@ -82,8 +82,8 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
82
82
  server_metadata?: {} | null | undefined;
83
83
  display_name: string;
84
84
  id: string;
85
- profile_image_url: string | null;
86
85
  created_at_millis: number;
86
+ profile_image_url: string | null;
87
87
  } | null;
88
88
  selected_team_id: string | null;
89
89
  profile_image_url: string | null;
@@ -163,21 +163,21 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
163
163
  }, "">;
164
164
  declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
165
165
  primary_email: string | null | undefined;
166
+ password: string | null | undefined;
166
167
  display_name: string | null | undefined;
167
168
  client_metadata: {} | null | undefined;
168
169
  client_read_only_metadata: {} | null | undefined;
169
170
  server_metadata: {} | null | undefined;
170
171
  is_anonymous: boolean | undefined;
171
- password: string | null | undefined;
172
+ country_code: string | null | undefined;
173
+ profile_image_url: string | null | undefined;
172
174
  primary_email_verified: boolean | undefined;
173
175
  primary_email_auth_enabled: boolean | undefined;
174
- profile_image_url: string | null | undefined;
175
176
  otp_auth_enabled: boolean | undefined;
176
177
  passkey_auth_enabled: boolean | undefined;
177
178
  restricted_by_admin: boolean | undefined;
178
179
  restricted_by_admin_reason: string | null | undefined;
179
180
  restricted_by_admin_private_details: string | null | undefined;
180
- country_code: string | null | undefined;
181
181
  risk_scores: {
182
182
  sign_up: {
183
183
  bot: number;
@@ -235,8 +235,8 @@ declare const usersCrud: CrudSchemaFromOptions<{
235
235
  server_metadata?: {} | null | undefined;
236
236
  display_name: string;
237
237
  id: string;
238
- profile_image_url: string | null;
239
238
  created_at_millis: number;
239
+ profile_image_url: string | null;
240
240
  } | null;
241
241
  selected_team_id: string | null;
242
242
  profile_image_url: string | null;
@@ -369,21 +369,21 @@ declare const usersCrud: CrudSchemaFromOptions<{
369
369
  }, "">;
370
370
  serverCreateSchema: yup$1.ObjectSchema<{
371
371
  primary_email: string | null | undefined;
372
+ password: string | null | undefined;
372
373
  display_name: string | null | undefined;
373
374
  client_metadata: {} | null | undefined;
374
375
  client_read_only_metadata: {} | null | undefined;
375
376
  server_metadata: {} | null | undefined;
376
377
  is_anonymous: boolean | undefined;
377
- password: string | null | undefined;
378
+ country_code: string | null | undefined;
379
+ profile_image_url: string | null | undefined;
378
380
  primary_email_verified: boolean | undefined;
379
381
  primary_email_auth_enabled: boolean | undefined;
380
- profile_image_url: string | null | undefined;
381
382
  otp_auth_enabled: boolean | undefined;
382
383
  passkey_auth_enabled: boolean | undefined;
383
384
  restricted_by_admin: boolean | undefined;
384
385
  restricted_by_admin_reason: string | null | undefined;
385
386
  restricted_by_admin_private_details: string | null | undefined;
386
- country_code: string | null | undefined;
387
387
  risk_scores: {
388
388
  sign_up: {
389
389
  bot: number;
@@ -469,8 +469,8 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
469
469
  server_metadata?: {} | null | undefined;
470
470
  display_name: string;
471
471
  id: string;
472
- profile_image_url: string | null;
473
472
  created_at_millis: number;
473
+ profile_image_url: string | null;
474
474
  } | null;
475
475
  selected_team_id: string | null;
476
476
  profile_image_url: string | null;
@@ -560,8 +560,8 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
560
560
  server_metadata?: {} | null | undefined;
561
561
  display_name: string;
562
562
  id: string;
563
- profile_image_url: string | null;
564
563
  created_at_millis: number;
564
+ profile_image_url: string | null;
565
565
  } | null;
566
566
  selected_team_id: string | null;
567
567
  profile_image_url: string | null;
@@ -22,8 +22,8 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
22
22
  server_metadata?: {} | null | undefined;
23
23
  display_name: string;
24
24
  id: string;
25
- profile_image_url: string | null;
26
25
  created_at_millis: number;
26
+ profile_image_url: string | null;
27
27
  } | null;
28
28
  selected_team_id: string | null;
29
29
  profile_image_url: string | null;
@@ -112,8 +112,8 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
112
112
  server_metadata?: {} | null | undefined;
113
113
  display_name: string;
114
114
  id: string;
115
- profile_image_url: string | null;
116
115
  created_at_millis: number;
116
+ profile_image_url: string | null;
117
117
  } | null;
118
118
  selected_team_id: string | null;
119
119
  profile_image_url: string | null;
@@ -140,7 +140,7 @@ declare const projectSignUpEnabledSchema: yup$1.BooleanSchema<boolean | undefine
140
140
  declare const projectCredentialEnabledSchema: yup$1.BooleanSchema<boolean | undefined, yup$1.AnyObject, undefined, "">;
141
141
  declare const oauthIdSchema: yup$1.StringSchema<"google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined, yup$1.AnyObject, undefined, "">;
142
142
  declare const oauthEnabledSchema: yup$1.BooleanSchema<boolean | undefined, yup$1.AnyObject, undefined, "">;
143
- declare const oauthTypeSchema: yup$1.StringSchema<"standard" | "shared" | undefined, yup$1.AnyObject, undefined, "">;
143
+ declare const oauthTypeSchema: yup$1.StringSchema<"shared" | "standard" | undefined, yup$1.AnyObject, undefined, "">;
144
144
  declare const oauthClientIdSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
145
145
  declare const oauthClientSecretSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
146
146
  declare const oauthCustomCallbackUrlSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
@@ -149,7 +149,7 @@ declare const oauthMicrosoftTenantIdSchema: yup$1.StringSchema<string | undefine
149
149
  declare const oauthAppleBundleIdsSchema: yup$1.ArraySchema<string[] | undefined, yup$1.AnyObject, undefined, "">;
150
150
  declare const oauthAppleBundleIdSchema: yup$1.StringSchema<string, yup$1.AnyObject, undefined, "">;
151
151
  declare const oauthAccountMergeStrategySchema: yup$1.StringSchema<"link_method" | "raise_error" | "allow_duplicates" | undefined, yup$1.AnyObject, undefined, "">;
152
- declare const emailTypeSchema: yup$1.StringSchema<"standard" | "shared" | undefined, yup$1.AnyObject, undefined, "">;
152
+ declare const emailTypeSchema: yup$1.StringSchema<"shared" | "standard" | undefined, yup$1.AnyObject, undefined, "">;
153
153
  declare const emailSenderNameSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
154
154
  declare const emailHostSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
155
155
  declare const emailPortSchema: yup$1.NumberSchema<number | undefined, yup$1.AnyObject, undefined, "">;
@@ -312,8 +312,8 @@ declare const inlineProductSchema: yup$1.ObjectSchema<{
312
312
  free_trial?: DayInterval | undefined;
313
313
  }>;
314
314
  included_items: Record<string, {
315
- repeat?: "never" | DayInterval | undefined;
316
315
  quantity?: number | undefined;
316
+ repeat?: "never" | DayInterval | undefined;
317
317
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
318
318
  }>;
319
319
  client_metadata: {} | null | undefined;
@@ -9,8 +9,6 @@ declare class AccessToken {
9
9
  private constructor();
10
10
  get payload(): {
11
11
  exp?: number | undefined;
12
- name: string | null;
13
- sub: string;
14
12
  project_id: string;
15
13
  refresh_token_id: string;
16
14
  email: string | null;
@@ -18,10 +16,12 @@ declare class AccessToken {
18
16
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
19
17
  } | null;
20
18
  branch_id: string;
19
+ sub: string;
21
20
  iat: number;
22
21
  iss: string;
23
22
  aud: string;
24
23
  role: "authenticated";
24
+ name: string | null;
25
25
  email_verified: boolean;
26
26
  selected_team_id: string | null;
27
27
  signed_up_at: number;
@@ -0,0 +1,18 @@
1
+ //#region src/utils/analytics-clickmap-overlay.d.ts
2
+ /**
3
+ * Wire protocol for handing a clickmap overlay token from the dashboard to the
4
+ * in-page dev tool via `sessionStorage` + a window event.
5
+ *
6
+ * The token is a self-describing JWT: its payload already carries the
7
+ * `project_id` and `origin` it was minted for, so the reader derives both from
8
+ * the token itself and the writer only has to hand over a single value. The
9
+ * dashboard (writer) and the dev tool (reader) live in different packages but
10
+ * must agree on these exact names — this module is the single source of truth so
11
+ * they can never silently desync.
12
+ */
13
+ declare const CLICKMAP_OVERLAY_TOKEN_STORAGE_KEY = "hexclave-clickmap-token";
14
+ declare const CLICKMAP_OVERLAY_RESUME_STORAGE_KEY = "hexclave-clickmap-resume";
15
+ declare const CLICKMAP_OVERLAY_TOKEN_UPDATED_EVENT = "hexclave:clickmap-token-updated";
16
+ //#endregion
17
+ export { CLICKMAP_OVERLAY_RESUME_STORAGE_KEY, CLICKMAP_OVERLAY_TOKEN_STORAGE_KEY, CLICKMAP_OVERLAY_TOKEN_UPDATED_EVENT };
18
+ //# sourceMappingURL=analytics-clickmap-overlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics-clickmap-overlay.d.ts","names":[],"sources":["../../src/utils/analytics-clickmap-overlay.tsx"],"mappings":";;AAYA;;;;;AACA;;;;;cADa,kCAAA;AAAA,cACA,mCAAA;AAAA,cACA,oCAAA"}