@hexclave/shared 1.0.26 → 1.0.28

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 (43) hide show
  1. package/dist/config/schema.d.ts +154 -154
  2. package/dist/esm/config/schema.d.ts +154 -154
  3. package/dist/esm/hooks/use-async-callback.js +1 -1
  4. package/dist/esm/hooks/use-async-external-store.js +1 -1
  5. package/dist/esm/hooks/use-strict-memo.js +1 -1
  6. package/dist/esm/interface/admin-interface.js +1 -1
  7. package/dist/esm/interface/admin-metrics.d.ts +3 -3
  8. package/dist/esm/interface/client-interface.js +1 -1
  9. package/dist/esm/interface/conversations.d.ts +5 -5
  10. package/dist/esm/interface/crud/current-user.d.ts +7 -7
  11. package/dist/esm/interface/crud/email-outbox.d.ts +184 -184
  12. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  13. package/dist/esm/interface/crud/projects.d.ts +43 -43
  14. package/dist/esm/interface/crud/team-member-profiles.d.ts +12 -12
  15. package/dist/esm/interface/crud/users.d.ts +10 -10
  16. package/dist/esm/interface/server-interface.js +1 -1
  17. package/dist/esm/interface/webhooks.d.ts +2 -2
  18. package/dist/esm/sessions.d.ts +1 -1
  19. package/dist/esm/utils/passkey.d.ts +1 -1
  20. package/dist/esm/utils/promises.js +1 -1
  21. package/dist/hooks/use-async-callback.js +1 -1
  22. package/dist/hooks/use-async-external-store.js +1 -1
  23. package/dist/hooks/use-strict-memo.js +1 -1
  24. package/dist/interface/admin-interface.js +1 -1
  25. package/dist/interface/admin-metrics.d.ts +3 -3
  26. package/dist/interface/client-interface.d.ts +1 -1
  27. package/dist/interface/client-interface.js +1 -1
  28. package/dist/interface/conversations.d.ts +5 -5
  29. package/dist/interface/crud/current-user.d.ts +7 -7
  30. package/dist/interface/crud/email-outbox.d.ts +184 -184
  31. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  32. package/dist/interface/crud/projects.d.ts +43 -43
  33. package/dist/interface/crud/team-member-profiles.d.ts +12 -12
  34. package/dist/interface/crud/users.d.ts +10 -10
  35. package/dist/interface/server-interface.js +1 -1
  36. package/dist/interface/webhooks.d.ts +2 -2
  37. package/dist/sessions.d.ts +1 -1
  38. package/dist/utils/passkey.d.ts +1 -1
  39. package/dist/utils/promises.js +1 -1
  40. package/package.json +3 -7
  41. package/src/utils/passkey.tsx +1 -1
  42. package/dist/index-nCRuFJTF.d.ts +0 -153
  43. package/dist/index-nCRuFJTF.d.ts.map +0 -1
@@ -83,9 +83,9 @@ declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
83
83
  type: "user";
84
84
  description: string;
85
85
  id: string;
86
- created_at_millis: number;
87
86
  expires_at_millis: number | undefined;
88
87
  manually_revoked_at_millis: number | undefined;
88
+ created_at_millis: number;
89
89
  is_public: boolean;
90
90
  } & {
91
91
  value: string;
@@ -181,9 +181,9 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
181
181
  team_id: string;
182
182
  description: string;
183
183
  id: string;
184
- created_at_millis: number;
185
184
  expires_at_millis: number | undefined;
186
185
  manually_revoked_at_millis: number | undefined;
186
+ created_at_millis: number;
187
187
  is_public: boolean;
188
188
  } & {
189
189
  value: string;
@@ -52,7 +52,7 @@ 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" | "credential" | "magicLink" | "passkey")[];
55
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
56
56
  selected_email_theme_id: string | null;
57
57
  selected_payments_country: "US" | "OTHER";
58
58
  } | null | undefined;
@@ -63,6 +63,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
63
63
  message: string;
64
64
  }[];
65
65
  config: {
66
+ domains: {
67
+ domain: string;
68
+ handler_path: string;
69
+ }[];
66
70
  oauth_providers: {
67
71
  client_id?: string | undefined;
68
72
  client_secret?: string | undefined;
@@ -85,10 +89,6 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
85
89
  enabled_oauth_providers: {
86
90
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
87
91
  }[];
88
- domains: {
89
- domain: string;
90
- handler_path: string;
91
- }[];
92
92
  email_config: {
93
93
  password?: string | undefined;
94
94
  host?: string | undefined;
@@ -175,6 +175,10 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
175
175
  message: string;
176
176
  }[];
177
177
  config: {
178
+ domains: {
179
+ domain: string;
180
+ handler_path: string;
181
+ }[];
178
182
  allow_localhost: boolean;
179
183
  sign_up_enabled: boolean;
180
184
  credential_enabled: boolean;
@@ -187,10 +191,6 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
187
191
  enabled_oauth_providers: {
188
192
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
189
193
  }[];
190
- domains: {
191
- domain: string;
192
- handler_path: string;
193
- }[];
194
194
  };
195
195
  }, yup$1.AnyObject, {
196
196
  id: undefined;
@@ -225,11 +225,15 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
225
225
  onboarding_state: {
226
226
  selected_config_choice: "create-new" | "link-existing";
227
227
  selected_apps: string[];
228
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
228
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
229
229
  selected_email_theme_id: string | null;
230
230
  selected_payments_country: "US" | "OTHER";
231
231
  } | null | undefined;
232
232
  config: {
233
+ domains?: {
234
+ domain: string;
235
+ handler_path: string;
236
+ }[] | undefined;
233
237
  oauth_providers?: {
234
238
  client_id?: string | undefined;
235
239
  client_secret?: string | undefined;
@@ -248,10 +252,6 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
248
252
  client_user_deletion_enabled?: boolean | undefined;
249
253
  allow_user_api_keys?: boolean | undefined;
250
254
  allow_team_api_keys?: boolean | undefined;
251
- domains?: {
252
- domain: string;
253
- handler_path: string;
254
- }[] | undefined;
255
255
  email_config?: {
256
256
  password?: string | undefined;
257
257
  host?: string | undefined;
@@ -305,11 +305,15 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
305
305
  onboarding_state: {
306
306
  selected_config_choice: "create-new" | "link-existing";
307
307
  selected_apps: string[];
308
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
308
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
309
309
  selected_email_theme_id: string | null;
310
310
  selected_payments_country: "US" | "OTHER";
311
311
  } | null | undefined;
312
312
  config: {
313
+ domains?: {
314
+ domain: string;
315
+ handler_path: string;
316
+ }[] | undefined;
313
317
  oauth_providers?: {
314
318
  client_id?: string | undefined;
315
319
  client_secret?: string | undefined;
@@ -328,10 +332,6 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
328
332
  client_user_deletion_enabled?: boolean | undefined;
329
333
  allow_user_api_keys?: boolean | undefined;
330
334
  allow_team_api_keys?: boolean | undefined;
331
- domains?: {
332
- domain: string;
333
- handler_path: string;
334
- }[] | undefined;
335
335
  email_config?: {
336
336
  password?: string | undefined;
337
337
  host?: string | undefined;
@@ -391,6 +391,10 @@ declare const clientProjectsCrud: ______crud0.CrudSchemaFromOptions<{
391
391
  message: string;
392
392
  }[];
393
393
  config: {
394
+ domains: {
395
+ domain: string;
396
+ handler_path: string;
397
+ }[];
394
398
  allow_localhost: boolean;
395
399
  sign_up_enabled: boolean;
396
400
  credential_enabled: boolean;
@@ -403,10 +407,6 @@ declare const clientProjectsCrud: ______crud0.CrudSchemaFromOptions<{
403
407
  enabled_oauth_providers: {
404
408
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
405
409
  }[];
406
- domains: {
407
- domain: string;
408
- handler_path: string;
409
- }[];
410
410
  };
411
411
  }, yup$1.AnyObject, {
412
412
  id: undefined;
@@ -455,7 +455,7 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
455
455
  onboarding_state: {
456
456
  selected_config_choice: "create-new" | "link-existing";
457
457
  selected_apps: string[];
458
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
458
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
459
459
  selected_email_theme_id: string | null;
460
460
  selected_payments_country: "US" | "OTHER";
461
461
  } | null | undefined;
@@ -466,6 +466,10 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
466
466
  message: string;
467
467
  }[];
468
468
  config: {
469
+ domains: {
470
+ domain: string;
471
+ handler_path: string;
472
+ }[];
469
473
  oauth_providers: {
470
474
  client_id?: string | undefined;
471
475
  client_secret?: string | undefined;
@@ -488,10 +492,6 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
488
492
  enabled_oauth_providers: {
489
493
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
490
494
  }[];
491
- domains: {
492
- domain: string;
493
- handler_path: string;
494
- }[];
495
495
  email_config: {
496
496
  password?: string | undefined;
497
497
  host?: string | undefined;
@@ -580,11 +580,15 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
580
580
  onboarding_state: {
581
581
  selected_config_choice: "create-new" | "link-existing";
582
582
  selected_apps: string[];
583
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
583
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
584
584
  selected_email_theme_id: string | null;
585
585
  selected_payments_country: "US" | "OTHER";
586
586
  } | null | undefined;
587
587
  config: {
588
+ domains?: {
589
+ domain: string;
590
+ handler_path: string;
591
+ }[] | undefined;
588
592
  oauth_providers?: {
589
593
  client_id?: string | undefined;
590
594
  client_secret?: string | undefined;
@@ -603,10 +607,6 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
603
607
  client_user_deletion_enabled?: boolean | undefined;
604
608
  allow_user_api_keys?: boolean | undefined;
605
609
  allow_team_api_keys?: boolean | undefined;
606
- domains?: {
607
- domain: string;
608
- handler_path: string;
609
- }[] | undefined;
610
610
  email_config?: {
611
611
  password?: string | undefined;
612
612
  host?: string | undefined;
@@ -688,7 +688,7 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
688
688
  onboarding_state: {
689
689
  selected_config_choice: "create-new" | "link-existing";
690
690
  selected_apps: string[];
691
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
691
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
692
692
  selected_email_theme_id: string | null;
693
693
  selected_payments_country: "US" | "OTHER";
694
694
  } | null | undefined;
@@ -699,6 +699,10 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
699
699
  message: string;
700
700
  }[];
701
701
  config: {
702
+ domains: {
703
+ domain: string;
704
+ handler_path: string;
705
+ }[];
702
706
  oauth_providers: {
703
707
  client_id?: string | undefined;
704
708
  client_secret?: string | undefined;
@@ -721,10 +725,6 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
721
725
  enabled_oauth_providers: {
722
726
  id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
723
727
  }[];
724
- domains: {
725
- domain: string;
726
- handler_path: string;
727
- }[];
728
728
  email_config: {
729
729
  password?: string | undefined;
730
730
  host?: string | undefined;
@@ -813,11 +813,15 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
813
813
  onboarding_state: {
814
814
  selected_config_choice: "create-new" | "link-existing";
815
815
  selected_apps: string[];
816
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "credential" | "magicLink" | "passkey")[];
816
+ selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
817
817
  selected_email_theme_id: string | null;
818
818
  selected_payments_country: "US" | "OTHER";
819
819
  } | null | undefined;
820
820
  config: {
821
+ domains?: {
822
+ domain: string;
823
+ handler_path: string;
824
+ }[] | undefined;
821
825
  oauth_providers?: {
822
826
  client_id?: string | undefined;
823
827
  client_secret?: string | undefined;
@@ -836,10 +840,6 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
836
840
  client_user_deletion_enabled?: boolean | undefined;
837
841
  allow_user_api_keys?: boolean | undefined;
838
842
  allow_team_api_keys?: boolean | undefined;
839
- domains?: {
840
- domain: string;
841
- handler_path: string;
842
- }[] | undefined;
843
843
  email_config?: {
844
844
  password?: string | undefined;
845
845
  host?: string | undefined;
@@ -25,26 +25,26 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
25
25
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
26
26
  } | null;
27
27
  primary_email: string | null;
28
- selected_team_id: string | null;
29
- is_anonymous: boolean;
30
- is_restricted: boolean;
31
- requires_totp_mfa: boolean;
32
28
  display_name: string | null;
33
29
  client_metadata: {} | null;
34
30
  client_read_only_metadata: {} | null;
35
31
  server_metadata: {} | null;
36
32
  id: string;
33
+ selected_team_id: string | null;
34
+ is_anonymous: boolean;
35
+ is_restricted: boolean;
36
+ requires_totp_mfa: boolean;
37
+ profile_image_url: string | null;
37
38
  primary_email_verified: boolean;
38
39
  primary_email_auth_enabled: boolean;
39
- profile_image_url: string | null;
40
40
  selected_team: {
41
41
  client_metadata?: {} | null | undefined;
42
42
  client_read_only_metadata?: {} | null | undefined;
43
43
  server_metadata?: {} | null | undefined;
44
44
  display_name: string;
45
45
  id: string;
46
- profile_image_url: string | null;
47
46
  created_at_millis: number;
47
+ profile_image_url: string | null;
48
48
  } | null;
49
49
  signed_up_at_millis: number;
50
50
  has_password: boolean;
@@ -148,26 +148,26 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
148
148
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
149
149
  } | null;
150
150
  primary_email: string | null;
151
- selected_team_id: string | null;
152
- is_anonymous: boolean;
153
- is_restricted: boolean;
154
- requires_totp_mfa: boolean;
155
151
  display_name: string | null;
156
152
  client_metadata: {} | null;
157
153
  client_read_only_metadata: {} | null;
158
154
  server_metadata: {} | null;
159
155
  id: string;
156
+ selected_team_id: string | null;
157
+ is_anonymous: boolean;
158
+ is_restricted: boolean;
159
+ requires_totp_mfa: boolean;
160
+ profile_image_url: string | null;
160
161
  primary_email_verified: boolean;
161
162
  primary_email_auth_enabled: boolean;
162
- profile_image_url: string | null;
163
163
  selected_team: {
164
164
  client_metadata?: {} | null | undefined;
165
165
  client_read_only_metadata?: {} | null | undefined;
166
166
  server_metadata?: {} | null | undefined;
167
167
  display_name: string;
168
168
  id: string;
169
- profile_image_url: string | null;
170
169
  created_at_millis: number;
170
+ profile_image_url: string | null;
171
171
  } | null;
172
172
  signed_up_at_millis: number;
173
173
  has_password: boolean;
@@ -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,14 +164,15 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
164
164
  }, "">;
165
165
  declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
166
166
  primary_email: string | null | undefined;
167
- is_anonymous: boolean | undefined;
168
167
  display_name: string | null | undefined;
169
168
  client_metadata: {} | null | undefined;
170
169
  client_read_only_metadata: {} | null | undefined;
171
170
  server_metadata: {} | null | undefined;
171
+ is_anonymous: boolean | undefined;
172
+ password: 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;
@@ -184,7 +185,6 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
184
185
  free_trial_abuse: number;
185
186
  };
186
187
  } | undefined;
187
- password: string | null | undefined;
188
188
  password_hash: string | undefined;
189
189
  totp_secret_base64: string | null | undefined;
190
190
  } & {
@@ -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,14 +370,15 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
370
370
  }, "">;
371
371
  serverCreateSchema: yup$1.ObjectSchema<{
372
372
  primary_email: string | null | undefined;
373
- is_anonymous: boolean | undefined;
374
373
  display_name: string | null | undefined;
375
374
  client_metadata: {} | null | undefined;
376
375
  client_read_only_metadata: {} | null | undefined;
377
376
  server_metadata: {} | null | undefined;
377
+ is_anonymous: boolean | undefined;
378
+ password: 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;
@@ -390,7 +391,6 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
390
391
  free_trial_abuse: number;
391
392
  };
392
393
  } | undefined;
393
- password: string | null | undefined;
394
394
  password_hash: string | undefined;
395
395
  totp_secret_base64: string | null | undefined;
396
396
  } & {
@@ -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;
@@ -1,8 +1,8 @@
1
1
  import { HexclaveAssertionError } from "../utils/errors.js";
2
2
  import { filterUndefined } from "../utils/objects.js";
3
3
  import { Result } from "../utils/results.js";
4
- import { urlString } from "../utils/urls.js";
5
4
  import { KnownErrors } from "../known-errors.js";
5
+ import { urlString } from "../utils/urls.js";
6
6
  import { InternalSession } from "../sessions.js";
7
7
  import { HexclaveClientInterface } from "./client-interface.js";
8
8
  import { decryptValue, encryptValue, hashKey } from "../helpers/vault/client-side.js";
@@ -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;
@@ -17,11 +17,11 @@ declare class AccessToken {
17
17
  } | null;
18
18
  branch_id: string;
19
19
  sub: string;
20
+ name: string | null;
20
21
  iat: number;
21
22
  iss: string;
22
23
  aud: string;
23
24
  role: "authenticated";
24
- name: string | null;
25
25
  email_verified: boolean;
26
26
  selected_team_id: string | null;
27
27
  signed_up_at: number;
@@ -1,2 +1,2 @@
1
- import { AuthenticationResponseJSON, AuthenticatorAttestationResponseJSON, PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialRequestOptionsJSON, RegistrationResponseJSON } from "@simplewebauthn/types";
1
+ import { AuthenticationResponseJSON, AuthenticatorAttestationResponseJSON, PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialRequestOptionsJSON, RegistrationResponseJSON } from "@simplewebauthn/browser";
2
2
  export { type AuthenticationResponseJSON, type AuthenticatorAttestationResponseJSON, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type RegistrationResponseJSON };
@@ -1,9 +1,9 @@
1
- import { KnownError } from "../index.js";
2
1
  import { HexclaveAssertionError, captureError, concatStacktraces, errorToNiceString } from "./errors.js";
3
2
  import { getProcessEnv } from "./env.js";
4
3
  import { DependenciesMap } from "./maps.js";
5
4
  import { Result } from "./results.js";
6
5
  import { traceSpan } from "./telemetry.js";
6
+ import { KnownError } from "../index.js";
7
7
  import { generateUuid } from "./uuids.js";
8
8
 
9
9
  //#region src/utils/promises.tsx
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_chunk = require('../chunk-BE-pF4vm.js');
3
+ let ___utils_errors_js = require("../utils/errors.js");
3
4
  let react = require("react");
4
5
  react = require_chunk.__toESM(react);
5
- let ___utils_errors_js = require("../utils/errors.js");
6
6
 
7
7
  //#region src/hooks/use-async-callback.tsx
8
8
  function useAsyncCallback(callback, deps) {
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_chunk = require('../chunk-BE-pF4vm.js');
3
- let react = require("react");
4
3
  let ___utils_results_js = require("../utils/results.js");
4
+ let react = require("react");
5
5
 
6
6
  //#region src/hooks/use-async-external-store.tsx
7
7
  function useAsyncExternalStore(subscribe) {
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_chunk = require('../chunk-BE-pF4vm.js');
3
- let react = require("react");
4
3
  let ___utils_results_js = require("../utils/results.js");
4
+ let react = require("react");
5
5
 
6
6
  //#region src/hooks/use-strict-memo.tsx
7
7
  const cached = /* @__PURE__ */ new Map();
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_chunk = require('../chunk-BE-pF4vm.js');
3
3
  let ___utils_results_js = require("../utils/results.js");
4
- let ___utils_urls_js = require("../utils/urls.js");
5
4
  let ___known_errors_js = require("../known-errors.js");
5
+ let ___utils_urls_js = require("../utils/urls.js");
6
6
  let __server_interface_js = require("./server-interface.js");
7
7
 
8
8
  //#region src/interface/admin-interface.ts
@@ -159,8 +159,8 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
159
159
  recent_emails: {
160
160
  status: string;
161
161
  id: string;
162
- created_at_millis: number;
163
162
  subject: string;
163
+ created_at_millis: number;
164
164
  }[];
165
165
  deliverability_status: {
166
166
  error: number;
@@ -369,7 +369,7 @@ declare const UserActivityResponseBodySchema: yup.ObjectSchema<{
369
369
  data_points: undefined;
370
370
  }, "">;
371
371
  declare const AnalyticsClickmapKindSchema: yup.StringSchema<"team_user_hour_of_week" | "session_replay_clicks", yup.AnyObject, undefined, "">;
372
- declare const AnalyticsClickmapDeviceSchema: yup.StringSchema<"mobile" | "tv" | "widescreen" | "desktop" | "laptop" | "tablet", yup.AnyObject, undefined, "">;
372
+ declare const AnalyticsClickmapDeviceSchema: yup.StringSchema<"tv" | "widescreen" | "desktop" | "laptop" | "tablet" | "mobile", yup.AnyObject, undefined, "">;
373
373
  declare const AnalyticsClickmapTokenResponseBodySchema: yup.ObjectSchema<{
374
374
  token: string;
375
375
  origin: string;
@@ -572,8 +572,8 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
572
572
  recent_emails: {
573
573
  status: string;
574
574
  id: string;
575
- created_at_millis: number;
576
575
  subject: string;
576
+ created_at_millis: number;
577
577
  }[];
578
578
  deliverability_status: {
579
579
  error: number;
@@ -6,7 +6,7 @@ import { AccessToken, InternalSession, RefreshToken } from "../sessions.js";
6
6
  import { ProjectPermissionsCrud } from "./crud/project-permissions.js";
7
7
  import { AdminUserProjectsCrud, ClientProjectsCrud } from "./crud/projects.js";
8
8
  import { TeamPermissionsCrud } from "./crud/team-permissions.js";
9
- import { a as RegistrationResponseJSON, i as PublicKeyCredentialRequestOptionsJSON, r as PublicKeyCredentialCreationOptionsJSON, t as AuthenticationResponseJSON } from "../index-nCRuFJTF.js";
9
+ import { AuthenticationResponseJSON, PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialRequestOptionsJSON, RegistrationResponseJSON } from "../utils/passkey.js";
10
10
  import { ConnectedAccountAccessTokenCrud, ConnectedAccountCrud } from "./crud/connected-accounts.js";
11
11
  import { ContactChannelsCrud } from "./crud/contact-channels.js";
12
12
  import { CurrentUserCrud } from "./crud/current-user.js";
@@ -5,8 +5,8 @@ let ___utils_objects_js = require("../utils/objects.js");
5
5
  let ___utils_strings_js = require("../utils/strings.js");
6
6
  let ___utils_oauth_js = require("../utils/oauth.js");
7
7
  let ___utils_results_js = require("../utils/results.js");
8
- let ___utils_urls_js = require("../utils/urls.js");
9
8
  let ___known_errors_js = require("../known-errors.js");
9
+ let ___utils_urls_js = require("../utils/urls.js");
10
10
  let ___sessions_js = require("../sessions.js");
11
11
  let ___utils_crypto_js = require("../utils/crypto.js");
12
12
  let ___utils_globals_js = require("../utils/globals.js");
@@ -185,8 +185,8 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
185
185
  lastCustomerReplyAt: string | null;
186
186
  lastAgentReplyAt: string | null;
187
187
  };
188
- subject: string;
189
188
  priority: "low" | "normal" | "high" | "urgent";
189
+ subject: string;
190
190
  conversationId: string;
191
191
  userId: string | null;
192
192
  teamId: string | null;
@@ -223,8 +223,8 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
223
223
  lastCustomerReplyAt: string | null;
224
224
  lastAgentReplyAt: string | null;
225
225
  };
226
- subject: string;
227
226
  priority: "low" | "normal" | "high" | "urgent";
227
+ subject: string;
228
228
  conversationId: string;
229
229
  userId: string | null;
230
230
  teamId: string | null;
@@ -237,12 +237,12 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
237
237
  };
238
238
  messages: {
239
239
  status: "pending" | "open" | "closed";
240
- id: string;
241
240
  body: string | null;
242
241
  source: "email" | "manual" | "chat" | "api";
243
242
  metadata: {} | null;
244
- subject: string;
243
+ id: string;
245
244
  priority: "low" | "normal" | "high" | "urgent";
245
+ subject: string;
246
246
  conversationId: string;
247
247
  userId: string | null;
248
248
  teamId: string | null;
@@ -257,8 +257,8 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
257
257
  };
258
258
  }[];
259
259
  entryPoints: {
260
- id: string;
261
260
  metadata: {} | null;
261
+ id: string;
262
262
  createdAt: string;
263
263
  updatedAt: string;
264
264
  channelType: string;
@@ -8,16 +8,16 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
8
8
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
9
9
  } | null;
10
10
  primary_email: string | null;
11
- selected_team_id: string | null;
12
- is_anonymous: boolean;
13
- is_restricted: boolean;
14
- requires_totp_mfa: boolean;
15
11
  display_name: string | null;
16
12
  client_metadata: {} | null;
17
13
  client_read_only_metadata: {} | null;
18
14
  id: string;
19
- primary_email_verified: boolean;
15
+ selected_team_id: string | null;
16
+ is_anonymous: boolean;
17
+ is_restricted: boolean;
18
+ requires_totp_mfa: boolean;
20
19
  profile_image_url: string | null;
20
+ primary_email_verified: boolean;
21
21
  signed_up_at_millis: number;
22
22
  has_password: boolean;
23
23
  otp_auth_enabled: boolean;
@@ -92,8 +92,8 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
92
92
  server_metadata?: {} | null | undefined;
93
93
  display_name: string;
94
94
  id: string;
95
- profile_image_url: string | null;
96
95
  created_at_millis: number;
96
+ profile_image_url: string | null;
97
97
  } | null;
98
98
  selected_team_id: string | null;
99
99
  profile_image_url: string | null;
@@ -173,9 +173,9 @@ declare const currentUserCrud: CrudSchemaFromOptions<{
173
173
  }, "">;
174
174
  clientUpdateSchema: yup$1.ObjectSchema<{
175
175
  primary_email: string | null | undefined;
176
- selected_team_id: string | null | undefined;
177
176
  display_name: string | null | undefined;
178
177
  client_metadata: {} | null | undefined;
178
+ selected_team_id: string | null | undefined;
179
179
  profile_image_url: string | null | undefined;
180
180
  otp_auth_enabled: boolean | undefined;
181
181
  passkey_auth_enabled: boolean | undefined;