@hexclave/shared 1.0.27 → 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 (51) hide show
  1. package/dist/config/schema.d.ts +24 -24
  2. package/dist/esm/config/schema.d.ts +24 -24
  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 +13 -13
  8. package/dist/esm/interface/client-interface.js +1 -1
  9. package/dist/esm/interface/conversations.d.ts +37 -37
  10. package/dist/esm/interface/crud/current-user.d.ts +4 -4
  11. package/dist/esm/interface/crud/email-outbox.d.ts +168 -168
  12. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  13. package/dist/esm/interface/crud/products.d.ts +5 -5
  14. package/dist/esm/interface/crud/project-api-keys.d.ts +5 -5
  15. package/dist/esm/interface/crud/projects.d.ts +35 -35
  16. package/dist/esm/interface/crud/team-member-profiles.d.ts +10 -10
  17. package/dist/esm/interface/crud/transactions.d.ts +2 -2
  18. package/dist/esm/interface/crud/users.d.ts +8 -8
  19. package/dist/esm/interface/server-interface.js +1 -1
  20. package/dist/esm/interface/webhooks.d.ts +2 -2
  21. package/dist/esm/schema-fields.d.ts +1 -1
  22. package/dist/esm/sessions.d.ts +3 -3
  23. package/dist/esm/utils/passkey.d.ts +1 -1
  24. package/dist/esm/utils/promises.js +1 -1
  25. package/dist/hooks/use-async-callback.js +1 -1
  26. package/dist/hooks/use-async-external-store.js +1 -1
  27. package/dist/hooks/use-strict-memo.js +1 -1
  28. package/dist/interface/admin-interface.js +1 -1
  29. package/dist/interface/admin-metrics.d.ts +13 -13
  30. package/dist/interface/client-interface.d.ts +1 -1
  31. package/dist/interface/client-interface.js +1 -1
  32. package/dist/interface/conversations.d.ts +37 -37
  33. package/dist/interface/crud/current-user.d.ts +4 -4
  34. package/dist/interface/crud/email-outbox.d.ts +168 -168
  35. package/dist/interface/crud/invoices.d.ts +2 -2
  36. package/dist/interface/crud/products.d.ts +5 -5
  37. package/dist/interface/crud/project-api-keys.d.ts +5 -5
  38. package/dist/interface/crud/projects.d.ts +35 -35
  39. package/dist/interface/crud/team-member-profiles.d.ts +10 -10
  40. package/dist/interface/crud/transactions.d.ts +2 -2
  41. package/dist/interface/crud/users.d.ts +8 -8
  42. package/dist/interface/server-interface.js +1 -1
  43. package/dist/interface/webhooks.d.ts +2 -2
  44. package/dist/schema-fields.d.ts +1 -1
  45. package/dist/sessions.d.ts +3 -3
  46. package/dist/utils/passkey.d.ts +1 -1
  47. package/dist/utils/promises.js +1 -1
  48. package/package.json +3 -7
  49. package/src/utils/passkey.tsx +1 -1
  50. package/dist/index-nCRuFJTF.d.ts +0 -153
  51. package/dist/index-nCRuFJTF.d.ts.map +0 -1
@@ -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: "open" | "draft" | "paid" | "uncollectible" | "void" | null;
6
+ status: "draft" | "open" | "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: "open" | "draft" | "paid" | "uncollectible" | "void" | null;
18
+ status: "draft" | "open" | "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,13 +124,12 @@ 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
  };
132
132
  }[] | undefined;
133
- id: string | null;
134
133
  quantity: number;
135
134
  product: {
136
135
  free_trial?: DayInterval | undefined;
@@ -153,11 +152,12 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
153
152
  }>;
154
153
  display_name: string;
155
154
  included_items: Record<string, {
156
- repeat?: "never" | DayInterval | undefined;
157
155
  quantity?: number | undefined;
156
+ repeat?: "never" | DayInterval | undefined;
158
157
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
159
158
  }>;
160
159
  };
160
+ id: string | null;
161
161
  }[];
162
162
  is_paginated: boolean;
163
163
  pagination: {
@@ -78,13 +78,13 @@ declare const userApiKeysCrud: CrudSchemaFromOptions<{
78
78
  is_public: undefined;
79
79
  user_id: undefined;
80
80
  }, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
81
- id: string;
82
- type: "user";
83
81
  user_id: string;
82
+ type: "user";
84
83
  description: string;
85
- created_at_millis: number;
84
+ id: string;
86
85
  expires_at_millis: number | undefined;
87
86
  manually_revoked_at_millis: number | undefined;
87
+ created_at_millis: number;
88
88
  is_public: boolean;
89
89
  } & {
90
90
  value: string;
@@ -176,13 +176,13 @@ declare const teamApiKeysCrud: CrudSchemaFromOptions<{
176
176
  is_public: undefined;
177
177
  team_id: undefined;
178
178
  }, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
179
- id: string;
180
179
  type: "team";
181
180
  team_id: string;
182
181
  description: string;
183
- created_at_millis: number;
182
+ id: string;
184
183
  expires_at_millis: number | undefined;
185
184
  manually_revoked_at_millis: number | undefined;
185
+ created_at_millis: number;
186
186
  is_public: boolean;
187
187
  } & {
188
188
  value: string;
@@ -62,20 +62,20 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
62
62
  message: string;
63
63
  }[];
64
64
  config: {
65
+ domains: {
66
+ domain: string;
67
+ handler_path: string;
68
+ }[];
65
69
  oauth_providers: {
66
70
  client_id?: string | undefined;
67
71
  client_secret?: string | undefined;
68
72
  facebook_config_id?: string | undefined;
69
73
  microsoft_tenant_id?: string | undefined;
70
74
  apple_bundle_ids?: string[] | undefined;
71
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
72
75
  type: "shared" | "standard";
76
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
73
77
  provider_config_id: string;
74
78
  }[];
75
- domains: {
76
- domain: string;
77
- handler_path: string;
78
- }[];
79
79
  allow_localhost: boolean;
80
80
  sign_up_enabled: boolean;
81
81
  credential_enabled: boolean;
@@ -229,18 +229,18 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
229
229
  selected_payments_country: "US" | "OTHER";
230
230
  } | null | undefined;
231
231
  config: {
232
+ domains?: {
233
+ domain: string;
234
+ handler_path: string;
235
+ }[] | undefined;
232
236
  oauth_providers?: {
233
237
  client_id?: string | undefined;
234
238
  client_secret?: string | undefined;
235
239
  facebook_config_id?: string | undefined;
236
240
  microsoft_tenant_id?: string | undefined;
237
241
  apple_bundle_ids?: string[] | undefined;
238
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
239
242
  type: "shared" | "standard";
240
- }[] | undefined;
241
- domains?: {
242
- domain: string;
243
- handler_path: string;
243
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
244
244
  }[] | undefined;
245
245
  allow_localhost?: boolean | undefined;
246
246
  sign_up_enabled?: boolean | undefined;
@@ -309,18 +309,18 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
309
309
  selected_payments_country: "US" | "OTHER";
310
310
  } | null | undefined;
311
311
  config: {
312
+ domains?: {
313
+ domain: string;
314
+ handler_path: string;
315
+ }[] | undefined;
312
316
  oauth_providers?: {
313
317
  client_id?: string | undefined;
314
318
  client_secret?: string | undefined;
315
319
  facebook_config_id?: string | undefined;
316
320
  microsoft_tenant_id?: string | undefined;
317
321
  apple_bundle_ids?: string[] | undefined;
318
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
319
322
  type: "shared" | "standard";
320
- }[] | undefined;
321
- domains?: {
322
- domain: string;
323
- handler_path: string;
323
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
324
324
  }[] | undefined;
325
325
  allow_localhost?: boolean | undefined;
326
326
  sign_up_enabled?: boolean | undefined;
@@ -465,20 +465,20 @@ declare const projectsCrud: CrudSchemaFromOptions<{
465
465
  message: string;
466
466
  }[];
467
467
  config: {
468
+ domains: {
469
+ domain: string;
470
+ handler_path: string;
471
+ }[];
468
472
  oauth_providers: {
469
473
  client_id?: string | undefined;
470
474
  client_secret?: string | undefined;
471
475
  facebook_config_id?: string | undefined;
472
476
  microsoft_tenant_id?: string | undefined;
473
477
  apple_bundle_ids?: string[] | undefined;
474
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
475
478
  type: "shared" | "standard";
479
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
476
480
  provider_config_id: string;
477
481
  }[];
478
- domains: {
479
- domain: string;
480
- handler_path: string;
481
- }[];
482
482
  allow_localhost: boolean;
483
483
  sign_up_enabled: boolean;
484
484
  credential_enabled: boolean;
@@ -584,18 +584,18 @@ declare const projectsCrud: CrudSchemaFromOptions<{
584
584
  selected_payments_country: "US" | "OTHER";
585
585
  } | null | undefined;
586
586
  config: {
587
+ domains?: {
588
+ domain: string;
589
+ handler_path: string;
590
+ }[] | undefined;
587
591
  oauth_providers?: {
588
592
  client_id?: string | undefined;
589
593
  client_secret?: string | undefined;
590
594
  facebook_config_id?: string | undefined;
591
595
  microsoft_tenant_id?: string | undefined;
592
596
  apple_bundle_ids?: string[] | undefined;
593
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
594
597
  type: "shared" | "standard";
595
- }[] | undefined;
596
- domains?: {
597
- domain: string;
598
- handler_path: string;
598
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
599
599
  }[] | undefined;
600
600
  allow_localhost?: boolean | undefined;
601
601
  sign_up_enabled?: boolean | undefined;
@@ -698,20 +698,20 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
698
698
  message: string;
699
699
  }[];
700
700
  config: {
701
+ domains: {
702
+ domain: string;
703
+ handler_path: string;
704
+ }[];
701
705
  oauth_providers: {
702
706
  client_id?: string | undefined;
703
707
  client_secret?: string | undefined;
704
708
  facebook_config_id?: string | undefined;
705
709
  microsoft_tenant_id?: string | undefined;
706
710
  apple_bundle_ids?: string[] | undefined;
707
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
708
711
  type: "shared" | "standard";
712
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
709
713
  provider_config_id: string;
710
714
  }[];
711
- domains: {
712
- domain: string;
713
- handler_path: string;
714
- }[];
715
715
  allow_localhost: boolean;
716
716
  sign_up_enabled: boolean;
717
717
  credential_enabled: boolean;
@@ -817,18 +817,18 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
817
817
  selected_payments_country: "US" | "OTHER";
818
818
  } | null | undefined;
819
819
  config: {
820
+ domains?: {
821
+ domain: string;
822
+ handler_path: string;
823
+ }[] | undefined;
820
824
  oauth_providers?: {
821
825
  client_id?: string | undefined;
822
826
  client_secret?: string | undefined;
823
827
  facebook_config_id?: string | undefined;
824
828
  microsoft_tenant_id?: string | undefined;
825
829
  apple_bundle_ids?: string[] | undefined;
826
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
827
830
  type: "shared" | "standard";
828
- }[] | undefined;
829
- domains?: {
830
- domain: string;
831
- handler_path: string;
831
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
832
832
  }[] | undefined;
833
833
  allow_localhost?: boolean | undefined;
834
834
  sign_up_enabled?: boolean | undefined;
@@ -20,7 +20,6 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
20
20
  profile_image_url: string | null;
21
21
  } & {
22
22
  user: {
23
- id: string;
24
23
  restricted_reason: {
25
24
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
26
25
  } | null;
@@ -29,31 +28,32 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
29
28
  client_metadata: {} | null;
30
29
  client_read_only_metadata: {} | null;
31
30
  server_metadata: {} | null;
31
+ id: string;
32
32
  selected_team_id: string | null;
33
33
  is_anonymous: boolean;
34
34
  is_restricted: boolean;
35
35
  requires_totp_mfa: boolean;
36
- country_code: string | null;
37
36
  profile_image_url: string | null;
38
- signed_up_at_millis: number;
39
- last_active_at_millis: number;
40
37
  primary_email_verified: boolean;
41
38
  primary_email_auth_enabled: boolean;
42
39
  selected_team: {
43
40
  client_metadata?: {} | null | undefined;
44
41
  client_read_only_metadata?: {} | null | undefined;
45
42
  server_metadata?: {} | null | undefined;
46
- id: string;
47
43
  display_name: string;
44
+ id: string;
48
45
  created_at_millis: number;
49
46
  profile_image_url: string | null;
50
47
  } | null;
48
+ signed_up_at_millis: number;
51
49
  has_password: boolean;
52
50
  otp_auth_enabled: boolean;
53
51
  passkey_auth_enabled: boolean;
52
+ last_active_at_millis: number;
54
53
  restricted_by_admin: boolean;
55
54
  restricted_by_admin_reason: string | null;
56
55
  restricted_by_admin_private_details: string | null;
56
+ country_code: string | null;
57
57
  risk_scores: {
58
58
  sign_up: {
59
59
  bot: number;
@@ -143,7 +143,6 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
143
143
  profile_image_url: string | null;
144
144
  } & {
145
145
  user: {
146
- id: string;
147
146
  restricted_reason: {
148
147
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
149
148
  } | null;
@@ -152,31 +151,32 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
152
151
  client_metadata: {} | null;
153
152
  client_read_only_metadata: {} | null;
154
153
  server_metadata: {} | null;
154
+ id: string;
155
155
  selected_team_id: string | null;
156
156
  is_anonymous: boolean;
157
157
  is_restricted: boolean;
158
158
  requires_totp_mfa: boolean;
159
- country_code: string | null;
160
159
  profile_image_url: string | null;
161
- signed_up_at_millis: number;
162
- last_active_at_millis: number;
163
160
  primary_email_verified: boolean;
164
161
  primary_email_auth_enabled: boolean;
165
162
  selected_team: {
166
163
  client_metadata?: {} | null | undefined;
167
164
  client_read_only_metadata?: {} | null | undefined;
168
165
  server_metadata?: {} | null | undefined;
169
- id: string;
170
166
  display_name: string;
167
+ id: string;
171
168
  created_at_millis: number;
172
169
  profile_image_url: string | null;
173
170
  } | null;
171
+ signed_up_at_millis: number;
174
172
  has_password: boolean;
175
173
  otp_auth_enabled: boolean;
176
174
  passkey_auth_enabled: boolean;
175
+ last_active_at_millis: number;
177
176
  restricted_by_admin: boolean;
178
177
  restricted_by_admin_reason: string | null;
179
178
  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
  };
@@ -80,8 +80,8 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
80
80
  client_metadata?: {} | null | undefined;
81
81
  client_read_only_metadata?: {} | null | undefined;
82
82
  server_metadata?: {} | null | undefined;
83
- id: string;
84
83
  display_name: string;
84
+ id: string;
85
85
  created_at_millis: number;
86
86
  profile_image_url: string | null;
87
87
  } | null;
@@ -169,7 +169,6 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
169
169
  server_metadata: {} | null | undefined;
170
170
  is_anonymous: boolean | undefined;
171
171
  password: string | null | undefined;
172
- country_code: string | null | undefined;
173
172
  profile_image_url: string | null | undefined;
174
173
  primary_email_verified: boolean | undefined;
175
174
  primary_email_auth_enabled: boolean | undefined;
@@ -178,6 +177,7 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
178
177
  restricted_by_admin: boolean | undefined;
179
178
  restricted_by_admin_reason: string | null | undefined;
180
179
  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;
@@ -188,8 +188,8 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
188
188
  totp_secret_base64: string | null | undefined;
189
189
  } & {
190
190
  oauth_providers: {
191
- id: string;
192
191
  email: string | null;
192
+ id: string;
193
193
  account_id: string;
194
194
  }[] | undefined;
195
195
  is_anonymous: boolean | undefined;
@@ -233,8 +233,8 @@ declare const usersCrud: CrudSchemaFromOptions<{
233
233
  client_metadata?: {} | null | undefined;
234
234
  client_read_only_metadata?: {} | null | undefined;
235
235
  server_metadata?: {} | null | undefined;
236
- id: string;
237
236
  display_name: string;
237
+ id: string;
238
238
  created_at_millis: number;
239
239
  profile_image_url: string | null;
240
240
  } | null;
@@ -375,7 +375,6 @@ declare const usersCrud: CrudSchemaFromOptions<{
375
375
  server_metadata: {} | null | undefined;
376
376
  is_anonymous: boolean | undefined;
377
377
  password: string | null | undefined;
378
- country_code: string | null | undefined;
379
378
  profile_image_url: string | null | undefined;
380
379
  primary_email_verified: boolean | undefined;
381
380
  primary_email_auth_enabled: boolean | undefined;
@@ -384,6 +383,7 @@ declare const usersCrud: CrudSchemaFromOptions<{
384
383
  restricted_by_admin: boolean | undefined;
385
384
  restricted_by_admin_reason: string | null | undefined;
386
385
  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;
@@ -394,8 +394,8 @@ declare const usersCrud: CrudSchemaFromOptions<{
394
394
  totp_secret_base64: string | null | undefined;
395
395
  } & {
396
396
  oauth_providers: {
397
- id: string;
398
397
  email: string | null;
398
+ id: string;
399
399
  account_id: string;
400
400
  }[] | undefined;
401
401
  is_anonymous: boolean | undefined;
@@ -467,8 +467,8 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
467
467
  client_metadata?: {} | null | undefined;
468
468
  client_read_only_metadata?: {} | null | undefined;
469
469
  server_metadata?: {} | null | undefined;
470
- id: string;
471
470
  display_name: string;
471
+ id: string;
472
472
  created_at_millis: number;
473
473
  profile_image_url: string | null;
474
474
  } | null;
@@ -558,8 +558,8 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
558
558
  client_metadata?: {} | null | undefined;
559
559
  client_read_only_metadata?: {} | null | undefined;
560
560
  server_metadata?: {} | null | undefined;
561
- id: string;
562
561
  display_name: string;
562
+ id: string;
563
563
  created_at_millis: number;
564
564
  profile_image_url: string | null;
565
565
  } | null;
@@ -3,8 +3,8 @@ const require_chunk = require('../chunk-BE-pF4vm.js');
3
3
  let ___utils_errors_js = require("../utils/errors.js");
4
4
  let ___utils_objects_js = require("../utils/objects.js");
5
5
  let ___utils_results_js = require("../utils/results.js");
6
- let ___utils_urls_js = require("../utils/urls.js");
7
6
  let ___known_errors_js = require("../known-errors.js");
7
+ let ___utils_urls_js = require("../utils/urls.js");
8
8
  let ___sessions_js = require("../sessions.js");
9
9
  let __client_interface_js = require("./client-interface.js");
10
10
  let ___helpers_vault_client_side_js = require("../helpers/vault/client-side.js");
@@ -20,8 +20,8 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
20
20
  client_metadata?: {} | null | undefined;
21
21
  client_read_only_metadata?: {} | null | undefined;
22
22
  server_metadata?: {} | null | undefined;
23
- id: string;
24
23
  display_name: string;
24
+ id: string;
25
25
  created_at_millis: number;
26
26
  profile_image_url: string | null;
27
27
  } | null;
@@ -110,8 +110,8 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
110
110
  client_metadata?: {} | null | undefined;
111
111
  client_read_only_metadata?: {} | null | undefined;
112
112
  server_metadata?: {} | null | undefined;
113
- id: string;
114
113
  display_name: string;
114
+ id: string;
115
115
  created_at_millis: number;
116
116
  profile_image_url: string | null;
117
117
  } | null;
@@ -314,8 +314,8 @@ declare const inlineProductSchema: yup$1.ObjectSchema<{
314
314
  free_trial?: DayInterval | undefined;
315
315
  }>;
316
316
  included_items: Record<string, {
317
- repeat?: "never" | DayInterval | undefined;
318
317
  quantity?: number | undefined;
318
+ repeat?: "never" | DayInterval | undefined;
319
319
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
320
320
  }>;
321
321
  client_metadata: {} | null | undefined;
@@ -9,9 +9,6 @@ declare class AccessToken {
9
9
  private constructor();
10
10
  get payload(): {
11
11
  exp?: number | undefined;
12
- name: string | null;
13
- role: "authenticated";
14
- sub: string;
15
12
  project_id: string;
16
13
  refresh_token_id: string;
17
14
  email: string | null;
@@ -19,9 +16,12 @@ declare class AccessToken {
19
16
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
20
17
  } | null;
21
18
  branch_id: string;
19
+ sub: string;
20
+ name: string | null;
22
21
  iat: number;
23
22
  iss: string;
24
23
  aud: string;
24
+ role: "authenticated";
25
25
  email_verified: boolean;
26
26
  selected_team_id: string | null;
27
27
  signed_up_at: number;
@@ -1,2 +1,2 @@
1
- import { a as RegistrationResponseJSON, i as PublicKeyCredentialRequestOptionsJSON, n as AuthenticatorAttestationResponseJSON, r as PublicKeyCredentialCreationOptionsJSON, t as AuthenticationResponseJSON } from "../index-nCRuFJTF.js";
1
+ import { AuthenticationResponseJSON, AuthenticatorAttestationResponseJSON, PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialRequestOptionsJSON, RegistrationResponseJSON } from "@simplewebauthn/browser";
2
2
  export { type AuthenticationResponseJSON, type AuthenticatorAttestationResponseJSON, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type RegistrationResponseJSON };
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_chunk = require('../chunk-BE-pF4vm.js');
3
- let ___index_js = require("../index.js");
4
3
  let __errors_js = require("./errors.js");
5
4
  let __env_js = require("./env.js");
6
5
  let __maps_js = require("./maps.js");
7
6
  let __results_js = require("./results.js");
8
7
  let __telemetry_js = require("./telemetry.js");
8
+ let ___index_js = require("../index.js");
9
9
  let __uuids_js = require("./uuids.js");
10
10
 
11
11
  //#region src/utils/promises.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexclave/shared",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "repository": "https://github.com/hexclave/hexclave",
5
5
  "files": [
6
6
  "README.md",
@@ -62,7 +62,7 @@
62
62
  "@babel/traverse": "^7.28.5",
63
63
  "@babel/types": "^7.28.5",
64
64
  "@opentelemetry/api": "^1.9.0",
65
- "@simplewebauthn/browser": "^11.0.0",
65
+ "@simplewebauthn/browser": "^13.2.2",
66
66
  "@vercel/functions": "^2.0.0",
67
67
  "async-mutex": "^0.5.0",
68
68
  "bcryptjs": "^3.0.2",
@@ -72,19 +72,15 @@
72
72
  "ip-regex": "^5.0.0",
73
73
  "jose": "^6.1.3",
74
74
  "oauth4webapi": "^3.8.3",
75
- "semver": "^7.6.3",
76
- "uuid": "^9.0.1"
75
+ "semver": "^7.6.3"
77
76
  },
78
77
  "devDependencies": {
79
78
  "@sentry/nextjs": "^10.11.0",
80
- "@simplewebauthn/types": "^11.0.0",
81
79
  "@types/babel__core": "^7.20.5",
82
80
  "@types/babel__generator": "^7.27.0",
83
81
  "@types/babel__traverse": "^7.28.0",
84
- "@types/bcryptjs": "^3.0.0",
85
82
  "@types/elliptic": "^6.4.18",
86
83
  "@types/semver": "^7.5.8",
87
- "@types/uuid": "^9.0.8",
88
84
  "react": "^19.0.1",
89
85
  "react-dom": "^19.0.1",
90
86
  "rimraf": "^6.1.2"
@@ -1 +1 @@
1
- export type { AuthenticationResponseJSON, RegistrationResponseJSON, PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialRequestOptionsJSON, AuthenticatorAttestationResponseJSON } from "@simplewebauthn/types";
1
+ export type { AuthenticationResponseJSON, RegistrationResponseJSON, PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialRequestOptionsJSON, AuthenticatorAttestationResponseJSON } from "@simplewebauthn/browser";