@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" | ______utils_dates0.DayInterval | undefined;
30
29
  quantity?: number | undefined;
30
+ repeat?: "never" | ______utils_dates0.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" | ______utils_dates0.DayInterval | undefined;
65
64
  quantity?: number | undefined;
65
+ repeat?: "never" | ______utils_dates0.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" | ______utils_dates0.DayInterval | undefined;
128
127
  quantity?: number | undefined;
128
+ repeat?: "never" | ______utils_dates0.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" | ______utils_dates0.DayInterval | undefined;
156
155
  quantity?: number | undefined;
156
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
157
157
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
158
158
  }>;
159
159
  };
@@ -79,9 +79,9 @@ declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
79
79
  is_public: undefined;
80
80
  user_id: undefined;
81
81
  }, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
82
- description: string;
83
82
  user_id: string;
84
83
  type: "user";
84
+ description: string;
85
85
  id: string;
86
86
  created_at_millis: number;
87
87
  expires_at_millis: number | undefined;
@@ -177,9 +177,9 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
177
177
  is_public: undefined;
178
178
  team_id: undefined;
179
179
  }, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
180
- description: string;
181
180
  type: "team";
182
181
  team_id: string;
182
+ description: string;
183
183
  id: string;
184
184
  created_at_millis: number;
185
185
  expires_at_millis: number | undefined;
@@ -4,7 +4,7 @@ import { CrudTypeOf } from "../../crud";
4
4
 
5
5
  //#region src/interface/crud/projects.d.ts
6
6
  declare const emailConfigSchema: yup$1.ObjectSchema<{
7
- type: "standard" | "shared";
7
+ type: "shared" | "standard";
8
8
  host: string | undefined;
9
9
  port: number | undefined;
10
10
  username: string | undefined;
@@ -21,7 +21,7 @@ declare const emailConfigSchema: yup$1.ObjectSchema<{
21
21
  sender_email: undefined;
22
22
  }, "">;
23
23
  declare const emailConfigWithoutPasswordSchema: yup$1.ObjectSchema<{
24
- type: "standard" | "shared";
24
+ type: "shared" | "standard";
25
25
  host: string | undefined;
26
26
  port: number | undefined;
27
27
  username: string | undefined;
@@ -52,25 +52,25 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
52
52
  onboarding_state: {
53
53
  selected_config_choice: "create-new" | "link-existing";
54
54
  selected_apps: string[];
55
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
55
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
56
56
  selected_email_theme_id: string | null;
57
57
  selected_payments_country: "US" | "OTHER";
58
58
  } | null | undefined;
59
59
  config: {
60
- domains: {
61
- domain: string;
62
- handler_path: string;
63
- }[];
64
60
  oauth_providers: {
65
61
  client_id?: string | undefined;
66
62
  client_secret?: string | undefined;
67
63
  facebook_config_id?: string | undefined;
68
64
  microsoft_tenant_id?: string | undefined;
69
65
  apple_bundle_ids?: string[] | undefined;
70
- type: "standard" | "shared";
66
+ type: "shared" | "standard";
71
67
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
72
68
  provider_config_id: string;
73
69
  }[];
70
+ domains: {
71
+ domain: string;
72
+ handler_path: string;
73
+ }[];
74
74
  allow_localhost: boolean;
75
75
  sign_up_enabled: boolean;
76
76
  credential_enabled: boolean;
@@ -90,7 +90,7 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
90
90
  username?: string | undefined;
91
91
  sender_name?: string | undefined;
92
92
  sender_email?: string | undefined;
93
- type: "standard" | "shared";
93
+ type: "shared" | "standard";
94
94
  };
95
95
  email_theme: string;
96
96
  create_team_on_sign_up: boolean;
@@ -205,24 +205,24 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
205
205
  onboarding_state: {
206
206
  selected_config_choice: "create-new" | "link-existing";
207
207
  selected_apps: string[];
208
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
208
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
209
209
  selected_email_theme_id: string | null;
210
210
  selected_payments_country: "US" | "OTHER";
211
211
  } | null | undefined;
212
212
  config: {
213
- domains?: {
214
- domain: string;
215
- handler_path: string;
216
- }[] | undefined;
217
213
  oauth_providers?: {
218
214
  client_id?: string | undefined;
219
215
  client_secret?: string | undefined;
220
216
  facebook_config_id?: string | undefined;
221
217
  microsoft_tenant_id?: string | undefined;
222
218
  apple_bundle_ids?: string[] | undefined;
223
- type: "standard" | "shared";
219
+ type: "shared" | "standard";
224
220
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
225
221
  }[] | undefined;
222
+ domains?: {
223
+ domain: string;
224
+ handler_path: string;
225
+ }[] | undefined;
226
226
  allow_localhost?: boolean | undefined;
227
227
  sign_up_enabled?: boolean | undefined;
228
228
  credential_enabled?: boolean | undefined;
@@ -239,7 +239,7 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
239
239
  username?: string | undefined;
240
240
  sender_name?: string | undefined;
241
241
  sender_email?: string | undefined;
242
- type: "standard" | "shared";
242
+ type: "shared" | "standard";
243
243
  } | undefined;
244
244
  email_theme?: string | undefined;
245
245
  create_team_on_sign_up?: boolean | undefined;
@@ -285,24 +285,24 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
285
285
  onboarding_state: {
286
286
  selected_config_choice: "create-new" | "link-existing";
287
287
  selected_apps: string[];
288
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
288
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
289
289
  selected_email_theme_id: string | null;
290
290
  selected_payments_country: "US" | "OTHER";
291
291
  } | null | undefined;
292
292
  config: {
293
- domains?: {
294
- domain: string;
295
- handler_path: string;
296
- }[] | undefined;
297
293
  oauth_providers?: {
298
294
  client_id?: string | undefined;
299
295
  client_secret?: string | undefined;
300
296
  facebook_config_id?: string | undefined;
301
297
  microsoft_tenant_id?: string | undefined;
302
298
  apple_bundle_ids?: string[] | undefined;
303
- type: "standard" | "shared";
299
+ type: "shared" | "standard";
304
300
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
305
301
  }[] | undefined;
302
+ domains?: {
303
+ domain: string;
304
+ handler_path: string;
305
+ }[] | undefined;
306
306
  allow_localhost?: boolean | undefined;
307
307
  sign_up_enabled?: boolean | undefined;
308
308
  credential_enabled?: boolean | undefined;
@@ -319,7 +319,7 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
319
319
  username?: string | undefined;
320
320
  sender_name?: string | undefined;
321
321
  sender_email?: string | undefined;
322
- type: "standard" | "shared";
322
+ type: "shared" | "standard";
323
323
  } | undefined;
324
324
  email_theme?: string | undefined;
325
325
  create_team_on_sign_up?: boolean | undefined;
@@ -425,25 +425,25 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
425
425
  onboarding_state: {
426
426
  selected_config_choice: "create-new" | "link-existing";
427
427
  selected_apps: string[];
428
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
428
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
429
429
  selected_email_theme_id: string | null;
430
430
  selected_payments_country: "US" | "OTHER";
431
431
  } | null | undefined;
432
432
  config: {
433
- domains: {
434
- domain: string;
435
- handler_path: string;
436
- }[];
437
433
  oauth_providers: {
438
434
  client_id?: string | undefined;
439
435
  client_secret?: string | undefined;
440
436
  facebook_config_id?: string | undefined;
441
437
  microsoft_tenant_id?: string | undefined;
442
438
  apple_bundle_ids?: string[] | undefined;
443
- type: "standard" | "shared";
439
+ type: "shared" | "standard";
444
440
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
445
441
  provider_config_id: string;
446
442
  }[];
443
+ domains: {
444
+ domain: string;
445
+ handler_path: string;
446
+ }[];
447
447
  allow_localhost: boolean;
448
448
  sign_up_enabled: boolean;
449
449
  credential_enabled: boolean;
@@ -463,7 +463,7 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
463
463
  username?: string | undefined;
464
464
  sender_name?: string | undefined;
465
465
  sender_email?: string | undefined;
466
- type: "standard" | "shared";
466
+ type: "shared" | "standard";
467
467
  };
468
468
  email_theme: string;
469
469
  create_team_on_sign_up: boolean;
@@ -540,24 +540,24 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
540
540
  onboarding_state: {
541
541
  selected_config_choice: "create-new" | "link-existing";
542
542
  selected_apps: string[];
543
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
543
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
544
544
  selected_email_theme_id: string | null;
545
545
  selected_payments_country: "US" | "OTHER";
546
546
  } | null | undefined;
547
547
  config: {
548
- domains?: {
549
- domain: string;
550
- handler_path: string;
551
- }[] | undefined;
552
548
  oauth_providers?: {
553
549
  client_id?: string | undefined;
554
550
  client_secret?: string | undefined;
555
551
  facebook_config_id?: string | undefined;
556
552
  microsoft_tenant_id?: string | undefined;
557
553
  apple_bundle_ids?: string[] | undefined;
558
- type: "standard" | "shared";
554
+ type: "shared" | "standard";
559
555
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
560
556
  }[] | undefined;
557
+ domains?: {
558
+ domain: string;
559
+ handler_path: string;
560
+ }[] | undefined;
561
561
  allow_localhost?: boolean | undefined;
562
562
  sign_up_enabled?: boolean | undefined;
563
563
  credential_enabled?: boolean | undefined;
@@ -574,7 +574,7 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
574
574
  username?: string | undefined;
575
575
  sender_name?: string | undefined;
576
576
  sender_email?: string | undefined;
577
- type: "standard" | "shared";
577
+ type: "shared" | "standard";
578
578
  } | undefined;
579
579
  email_theme?: string | undefined;
580
580
  create_team_on_sign_up?: boolean | undefined;
@@ -648,25 +648,25 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
648
648
  onboarding_state: {
649
649
  selected_config_choice: "create-new" | "link-existing";
650
650
  selected_apps: string[];
651
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
651
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
652
652
  selected_email_theme_id: string | null;
653
653
  selected_payments_country: "US" | "OTHER";
654
654
  } | null | undefined;
655
655
  config: {
656
- domains: {
657
- domain: string;
658
- handler_path: string;
659
- }[];
660
656
  oauth_providers: {
661
657
  client_id?: string | undefined;
662
658
  client_secret?: string | undefined;
663
659
  facebook_config_id?: string | undefined;
664
660
  microsoft_tenant_id?: string | undefined;
665
661
  apple_bundle_ids?: string[] | undefined;
666
- type: "standard" | "shared";
662
+ type: "shared" | "standard";
667
663
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
668
664
  provider_config_id: string;
669
665
  }[];
666
+ domains: {
667
+ domain: string;
668
+ handler_path: string;
669
+ }[];
670
670
  allow_localhost: boolean;
671
671
  sign_up_enabled: boolean;
672
672
  credential_enabled: boolean;
@@ -686,7 +686,7 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
686
686
  username?: string | undefined;
687
687
  sender_name?: string | undefined;
688
688
  sender_email?: string | undefined;
689
- type: "standard" | "shared";
689
+ type: "shared" | "standard";
690
690
  };
691
691
  email_theme: string;
692
692
  create_team_on_sign_up: boolean;
@@ -763,24 +763,24 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
763
763
  onboarding_state: {
764
764
  selected_config_choice: "create-new" | "link-existing";
765
765
  selected_apps: string[];
766
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
766
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
767
767
  selected_email_theme_id: string | null;
768
768
  selected_payments_country: "US" | "OTHER";
769
769
  } | null | undefined;
770
770
  config: {
771
- domains?: {
772
- domain: string;
773
- handler_path: string;
774
- }[] | undefined;
775
771
  oauth_providers?: {
776
772
  client_id?: string | undefined;
777
773
  client_secret?: string | undefined;
778
774
  facebook_config_id?: string | undefined;
779
775
  microsoft_tenant_id?: string | undefined;
780
776
  apple_bundle_ids?: string[] | undefined;
781
- type: "standard" | "shared";
777
+ type: "shared" | "standard";
782
778
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
783
779
  }[] | undefined;
780
+ domains?: {
781
+ domain: string;
782
+ handler_path: string;
783
+ }[] | undefined;
784
784
  allow_localhost?: boolean | undefined;
785
785
  sign_up_enabled?: boolean | undefined;
786
786
  credential_enabled?: boolean | undefined;
@@ -797,7 +797,7 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
797
797
  username?: string | undefined;
798
798
  sender_name?: string | undefined;
799
799
  sender_email?: string | undefined;
800
- type: "standard" | "shared";
800
+ type: "shared" | "standard";
801
801
  } | undefined;
802
802
  email_theme?: string | undefined;
803
803
  create_team_on_sign_up?: boolean | undefined;
@@ -34,27 +34,27 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
34
34
  is_anonymous: boolean;
35
35
  is_restricted: boolean;
36
36
  requires_totp_mfa: boolean;
37
+ country_code: string | null;
38
+ profile_image_url: string | null;
39
+ signed_up_at_millis: number;
40
+ last_active_at_millis: number;
37
41
  primary_email_verified: boolean;
38
42
  primary_email_auth_enabled: boolean;
39
- profile_image_url: string | null;
40
43
  selected_team: {
41
44
  client_metadata?: {} | null | undefined;
42
45
  client_read_only_metadata?: {} | null | undefined;
43
46
  server_metadata?: {} | null | undefined;
44
47
  display_name: string;
45
48
  id: string;
46
- profile_image_url: string | null;
47
49
  created_at_millis: number;
50
+ profile_image_url: string | null;
48
51
  } | null;
49
- signed_up_at_millis: number;
50
52
  has_password: boolean;
51
53
  otp_auth_enabled: boolean;
52
54
  passkey_auth_enabled: boolean;
53
- last_active_at_millis: number;
54
55
  restricted_by_admin: boolean;
55
56
  restricted_by_admin_reason: string | null;
56
57
  restricted_by_admin_private_details: string | null;
57
- country_code: string | null;
58
58
  risk_scores: {
59
59
  sign_up: {
60
60
  bot: number;
@@ -157,27 +157,27 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
157
157
  is_anonymous: boolean;
158
158
  is_restricted: boolean;
159
159
  requires_totp_mfa: boolean;
160
+ country_code: string | null;
161
+ profile_image_url: string | null;
162
+ signed_up_at_millis: number;
163
+ last_active_at_millis: number;
160
164
  primary_email_verified: boolean;
161
165
  primary_email_auth_enabled: boolean;
162
- profile_image_url: string | null;
163
166
  selected_team: {
164
167
  client_metadata?: {} | null | undefined;
165
168
  client_read_only_metadata?: {} | null | undefined;
166
169
  server_metadata?: {} | null | undefined;
167
170
  display_name: string;
168
171
  id: string;
169
- profile_image_url: string | null;
170
172
  created_at_millis: number;
173
+ profile_image_url: string | null;
171
174
  } | null;
172
- signed_up_at_millis: number;
173
175
  has_password: boolean;
174
176
  otp_auth_enabled: boolean;
175
177
  passkey_auth_enabled: boolean;
176
- last_active_at_millis: number;
177
178
  restricted_by_admin: boolean;
178
179
  restricted_by_admin_reason: string | null;
179
180
  restricted_by_admin_private_details: string | null;
180
- country_code: string | null;
181
181
  risk_scores: {
182
182
  sign_up: {
183
183
  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" | ______utils_dates0.DayInterval | undefined;
62
61
  quantity?: number | undefined;
62
+ repeat?: "never" | ______utils_dates0.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" | ______utils_dates0.DayInterval | undefined;
146
145
  quantity?: number | undefined;
146
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
147
147
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
148
148
  }>;
149
149
  };
@@ -83,8 +83,8 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
83
83
  server_metadata?: {} | null | undefined;
84
84
  display_name: string;
85
85
  id: string;
86
- profile_image_url: string | null;
87
86
  created_at_millis: number;
87
+ profile_image_url: string | null;
88
88
  } | null;
89
89
  selected_team_id: string | null;
90
90
  profile_image_url: string | null;
@@ -164,21 +164,21 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
164
164
  }, "">;
165
165
  declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
166
166
  primary_email: string | null | undefined;
167
+ password: string | null | undefined;
167
168
  display_name: string | null | undefined;
168
169
  client_metadata: {} | null | undefined;
169
170
  client_read_only_metadata: {} | null | undefined;
170
171
  server_metadata: {} | null | undefined;
171
172
  is_anonymous: boolean | undefined;
172
- password: string | null | undefined;
173
+ country_code: string | null | undefined;
174
+ profile_image_url: string | null | undefined;
173
175
  primary_email_verified: boolean | undefined;
174
176
  primary_email_auth_enabled: boolean | undefined;
175
- profile_image_url: string | null | undefined;
176
177
  otp_auth_enabled: boolean | undefined;
177
178
  passkey_auth_enabled: boolean | undefined;
178
179
  restricted_by_admin: boolean | undefined;
179
180
  restricted_by_admin_reason: string | null | undefined;
180
181
  restricted_by_admin_private_details: string | null | undefined;
181
- country_code: string | null | undefined;
182
182
  risk_scores: {
183
183
  sign_up: {
184
184
  bot: number;
@@ -236,8 +236,8 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
236
236
  server_metadata?: {} | null | undefined;
237
237
  display_name: string;
238
238
  id: string;
239
- profile_image_url: string | null;
240
239
  created_at_millis: number;
240
+ profile_image_url: string | null;
241
241
  } | null;
242
242
  selected_team_id: string | null;
243
243
  profile_image_url: string | null;
@@ -370,21 +370,21 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
370
370
  }, "">;
371
371
  serverCreateSchema: yup$1.ObjectSchema<{
372
372
  primary_email: string | null | undefined;
373
+ password: string | null | undefined;
373
374
  display_name: string | null | undefined;
374
375
  client_metadata: {} | null | undefined;
375
376
  client_read_only_metadata: {} | null | undefined;
376
377
  server_metadata: {} | null | undefined;
377
378
  is_anonymous: boolean | undefined;
378
- password: string | null | undefined;
379
+ country_code: string | null | undefined;
380
+ profile_image_url: string | null | undefined;
379
381
  primary_email_verified: boolean | undefined;
380
382
  primary_email_auth_enabled: boolean | undefined;
381
- profile_image_url: string | null | undefined;
382
383
  otp_auth_enabled: boolean | undefined;
383
384
  passkey_auth_enabled: boolean | undefined;
384
385
  restricted_by_admin: boolean | undefined;
385
386
  restricted_by_admin_reason: string | null | undefined;
386
387
  restricted_by_admin_private_details: string | null | undefined;
387
- country_code: string | null | undefined;
388
388
  risk_scores: {
389
389
  sign_up: {
390
390
  bot: number;
@@ -470,8 +470,8 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
470
470
  server_metadata?: {} | null | undefined;
471
471
  display_name: string;
472
472
  id: string;
473
- profile_image_url: string | null;
474
473
  created_at_millis: number;
474
+ profile_image_url: string | null;
475
475
  } | null;
476
476
  selected_team_id: string | null;
477
477
  profile_image_url: string | null;
@@ -561,8 +561,8 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
561
561
  server_metadata?: {} | null | undefined;
562
562
  display_name: string;
563
563
  id: string;
564
- profile_image_url: string | null;
565
564
  created_at_millis: number;
565
+ profile_image_url: string | null;
566
566
  } | null;
567
567
  selected_team_id: string | null;
568
568
  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"}