@hexclave/shared 1.0.27 → 1.0.29

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 (50) hide show
  1. package/dist/config/schema.d.ts +35 -35
  2. package/dist/esm/config/schema.d.ts +35 -35
  3. package/dist/esm/interface/admin-metrics.d.ts +18 -18
  4. package/dist/esm/interface/conversations.d.ts +13 -13
  5. package/dist/esm/interface/crud/current-user.d.ts +12 -12
  6. package/dist/esm/interface/crud/email-outbox.d.ts +140 -140
  7. package/dist/esm/interface/crud/products.d.ts +13 -13
  8. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  9. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  10. package/dist/esm/interface/crud/projects.d.ts +14 -14
  11. package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
  12. package/dist/esm/interface/crud/transactions.d.ts +6 -6
  13. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  14. package/dist/esm/interface/crud/users.d.ts +20 -20
  15. package/dist/esm/interface/plan-usage.d.ts +2 -2
  16. package/dist/esm/interface/webhooks.d.ts +4 -4
  17. package/dist/esm/schema-fields.d.ts +1 -1
  18. package/dist/esm/sessions.d.ts +7 -7
  19. package/dist/esm/utils/passkey.d.ts +1 -1
  20. package/dist/esm/utils/promises.d.ts +12 -1
  21. package/dist/esm/utils/promises.d.ts.map +1 -1
  22. package/dist/esm/utils/promises.js +57 -1
  23. package/dist/esm/utils/promises.js.map +1 -1
  24. package/dist/interface/admin-metrics.d.ts +18 -18
  25. package/dist/interface/client-interface.d.ts +1 -1
  26. package/dist/interface/conversations.d.ts +13 -13
  27. package/dist/interface/crud/current-user.d.ts +12 -12
  28. package/dist/interface/crud/email-outbox.d.ts +140 -140
  29. package/dist/interface/crud/products.d.ts +13 -13
  30. package/dist/interface/crud/products.d.ts.map +1 -1
  31. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  32. package/dist/interface/crud/projects.d.ts +14 -14
  33. package/dist/interface/crud/team-member-profiles.d.ts +24 -24
  34. package/dist/interface/crud/transactions.d.ts +6 -6
  35. package/dist/interface/crud/transactions.d.ts.map +1 -1
  36. package/dist/interface/crud/users.d.ts +20 -20
  37. package/dist/interface/plan-usage.d.ts +2 -2
  38. package/dist/interface/webhooks.d.ts +4 -4
  39. package/dist/schema-fields.d.ts +1 -1
  40. package/dist/sessions.d.ts +7 -7
  41. package/dist/utils/passkey.d.ts +1 -1
  42. package/dist/utils/promises.d.ts +12 -1
  43. package/dist/utils/promises.d.ts.map +1 -1
  44. package/dist/utils/promises.js +57 -0
  45. package/dist/utils/promises.js.map +1 -1
  46. package/package.json +3 -7
  47. package/src/utils/passkey.tsx +1 -1
  48. package/src/utils/promises.tsx +65 -0
  49. package/dist/index-nCRuFJTF.d.ts +0 -153
  50. package/dist/index-nCRuFJTF.d.ts.map +0 -1
@@ -6,10 +6,11 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
6
6
  id: string | null;
7
7
  quantity: number;
8
8
  product: {
9
- free_trial?: DayInterval | undefined;
10
9
  client_metadata?: {} | null | undefined;
11
10
  client_read_only_metadata?: {} | null | undefined;
12
11
  server_metadata?: {} | null | undefined;
12
+ free_trial?: DayInterval | undefined;
13
+ display_name: string;
13
14
  server_only: boolean;
14
15
  customer_type: "team" | "user" | "custom";
15
16
  stackable: boolean;
@@ -24,10 +25,9 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
24
25
  interval?: DayInterval | undefined;
25
26
  free_trial?: DayInterval | undefined;
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
  };
@@ -41,10 +41,11 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
41
41
  switch_options: {
42
42
  product_id: string;
43
43
  product: {
44
- free_trial?: DayInterval | undefined;
45
44
  client_metadata?: {} | null | undefined;
46
45
  client_read_only_metadata?: {} | null | undefined;
47
46
  server_metadata?: {} | null | undefined;
47
+ free_trial?: DayInterval | undefined;
48
+ display_name: string;
48
49
  server_only: boolean;
49
50
  customer_type: "team" | "user" | "custom";
50
51
  stackable: boolean;
@@ -59,10 +60,9 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
59
60
  interval?: DayInterval | undefined;
60
61
  free_trial?: DayInterval | undefined;
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
  };
@@ -104,10 +104,11 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
104
104
  switch_options?: {
105
105
  product_id: string;
106
106
  product: {
107
- free_trial?: DayInterval | undefined;
108
107
  client_metadata?: {} | null | undefined;
109
108
  client_read_only_metadata?: {} | null | undefined;
110
109
  server_metadata?: {} | null | undefined;
110
+ free_trial?: DayInterval | undefined;
111
+ display_name: string;
111
112
  server_only: boolean;
112
113
  customer_type: "team" | "user" | "custom";
113
114
  stackable: boolean;
@@ -122,21 +123,21 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
122
123
  interval?: DayInterval | undefined;
123
124
  free_trial?: DayInterval | undefined;
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;
134
+ id: string | null;
135
135
  product: {
136
- free_trial?: DayInterval | undefined;
137
136
  client_metadata?: {} | null | undefined;
138
137
  client_read_only_metadata?: {} | null | undefined;
139
138
  server_metadata?: {} | null | undefined;
139
+ free_trial?: DayInterval | undefined;
140
+ display_name: string;
140
141
  server_only: boolean;
141
142
  customer_type: "team" | "user" | "custom";
142
143
  stackable: boolean;
@@ -151,10 +152,9 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
151
152
  interval?: DayInterval | undefined;
152
153
  free_trial?: DayInterval | undefined;
153
154
  }>;
154
- display_name: string;
155
155
  included_items: Record<string, {
156
- repeat?: "never" | DayInterval | undefined;
157
156
  quantity?: number | undefined;
157
+ repeat?: "never" | DayInterval | undefined;
158
158
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
159
159
  }>;
160
160
  };
@@ -1 +1 @@
1
- {"version":3,"file":"products.d.ts","names":[],"sources":["../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;iBAc1B,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;qBAMnC,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
1
+ {"version":3,"file":"products.d.ts","names":[],"sources":["../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;;;;iBAc1B,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;qBAMnC,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
@@ -78,9 +78,9 @@ declare const userApiKeysCrud: CrudSchemaFromOptions<{
78
78
  is_public: undefined;
79
79
  user_id: undefined;
80
80
  }, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
81
- id: string;
82
81
  type: "user";
83
82
  user_id: string;
83
+ id: string;
84
84
  description: string;
85
85
  created_at_millis: number;
86
86
  expires_at_millis: number | undefined;
@@ -176,9 +176,9 @@ declare const teamApiKeysCrud: CrudSchemaFromOptions<{
176
176
  is_public: undefined;
177
177
  team_id: undefined;
178
178
  }, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
179
- id: string;
180
179
  type: "team";
181
180
  team_id: string;
181
+ id: string;
182
182
  description: string;
183
183
  created_at_millis: number;
184
184
  expires_at_millis: number | undefined;
@@ -51,7 +51,7 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
51
51
  onboarding_state: {
52
52
  selected_config_choice: "create-new" | "link-existing";
53
53
  selected_apps: string[];
54
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
54
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
55
55
  selected_email_theme_id: string | null;
56
56
  selected_payments_country: "US" | "OTHER";
57
57
  } | null | undefined;
@@ -68,8 +68,8 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
68
68
  facebook_config_id?: string | undefined;
69
69
  microsoft_tenant_id?: string | undefined;
70
70
  apple_bundle_ids?: string[] | undefined;
71
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
72
71
  type: "shared" | "standard";
72
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
73
73
  provider_config_id: string;
74
74
  }[];
75
75
  domains: {
@@ -224,7 +224,7 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
224
224
  onboarding_state: {
225
225
  selected_config_choice: "create-new" | "link-existing";
226
226
  selected_apps: string[];
227
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
227
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
228
228
  selected_email_theme_id: string | null;
229
229
  selected_payments_country: "US" | "OTHER";
230
230
  } | null | undefined;
@@ -235,8 +235,8 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
235
235
  facebook_config_id?: string | undefined;
236
236
  microsoft_tenant_id?: string | undefined;
237
237
  apple_bundle_ids?: string[] | undefined;
238
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
239
238
  type: "shared" | "standard";
239
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
240
240
  }[] | undefined;
241
241
  domains?: {
242
242
  domain: string;
@@ -304,7 +304,7 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
304
304
  onboarding_state: {
305
305
  selected_config_choice: "create-new" | "link-existing";
306
306
  selected_apps: string[];
307
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
307
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
308
308
  selected_email_theme_id: string | null;
309
309
  selected_payments_country: "US" | "OTHER";
310
310
  } | null | undefined;
@@ -315,8 +315,8 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
315
315
  facebook_config_id?: string | undefined;
316
316
  microsoft_tenant_id?: string | undefined;
317
317
  apple_bundle_ids?: string[] | undefined;
318
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
319
318
  type: "shared" | "standard";
319
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
320
320
  }[] | undefined;
321
321
  domains?: {
322
322
  domain: string;
@@ -454,7 +454,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
454
454
  onboarding_state: {
455
455
  selected_config_choice: "create-new" | "link-existing";
456
456
  selected_apps: string[];
457
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
457
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
458
458
  selected_email_theme_id: string | null;
459
459
  selected_payments_country: "US" | "OTHER";
460
460
  } | null | undefined;
@@ -471,8 +471,8 @@ declare const projectsCrud: CrudSchemaFromOptions<{
471
471
  facebook_config_id?: string | undefined;
472
472
  microsoft_tenant_id?: string | undefined;
473
473
  apple_bundle_ids?: string[] | undefined;
474
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
475
474
  type: "shared" | "standard";
475
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
476
476
  provider_config_id: string;
477
477
  }[];
478
478
  domains: {
@@ -579,7 +579,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
579
579
  onboarding_state: {
580
580
  selected_config_choice: "create-new" | "link-existing";
581
581
  selected_apps: string[];
582
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
582
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
583
583
  selected_email_theme_id: string | null;
584
584
  selected_payments_country: "US" | "OTHER";
585
585
  } | null | undefined;
@@ -590,8 +590,8 @@ declare const projectsCrud: CrudSchemaFromOptions<{
590
590
  facebook_config_id?: string | undefined;
591
591
  microsoft_tenant_id?: string | undefined;
592
592
  apple_bundle_ids?: string[] | undefined;
593
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
594
593
  type: "shared" | "standard";
594
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
595
595
  }[] | undefined;
596
596
  domains?: {
597
597
  domain: string;
@@ -687,7 +687,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
687
687
  onboarding_state: {
688
688
  selected_config_choice: "create-new" | "link-existing";
689
689
  selected_apps: string[];
690
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
690
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
691
691
  selected_email_theme_id: string | null;
692
692
  selected_payments_country: "US" | "OTHER";
693
693
  } | null | undefined;
@@ -704,8 +704,8 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
704
704
  facebook_config_id?: string | undefined;
705
705
  microsoft_tenant_id?: string | undefined;
706
706
  apple_bundle_ids?: string[] | undefined;
707
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
708
707
  type: "shared" | "standard";
708
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
709
709
  provider_config_id: string;
710
710
  }[];
711
711
  domains: {
@@ -812,7 +812,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
812
812
  onboarding_state: {
813
813
  selected_config_choice: "create-new" | "link-existing";
814
814
  selected_apps: string[];
815
- selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
815
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
816
816
  selected_email_theme_id: string | null;
817
817
  selected_payments_country: "US" | "OTHER";
818
818
  } | null | undefined;
@@ -823,8 +823,8 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
823
823
  facebook_config_id?: string | undefined;
824
824
  microsoft_tenant_id?: string | undefined;
825
825
  apple_bundle_ids?: string[] | undefined;
826
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
827
826
  type: "shared" | "standard";
827
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
828
828
  }[] | undefined;
829
829
  domains?: {
830
830
  domain: string;
@@ -20,40 +20,39 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
20
20
  profile_image_url: string | null;
21
21
  } & {
22
22
  user: {
23
- id: string;
23
+ display_name: string | null;
24
24
  restricted_reason: {
25
25
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
26
26
  } | null;
27
27
  primary_email: string | null;
28
- display_name: string | null;
29
28
  client_metadata: {} | null;
30
29
  client_read_only_metadata: {} | null;
31
30
  server_metadata: {} | null;
32
- selected_team_id: string | null;
33
- is_anonymous: boolean;
34
- is_restricted: boolean;
35
- requires_totp_mfa: boolean;
36
- country_code: string | null;
37
- profile_image_url: string | null;
38
- signed_up_at_millis: number;
39
- last_active_at_millis: number;
31
+ id: string;
40
32
  primary_email_verified: boolean;
41
33
  primary_email_auth_enabled: boolean;
34
+ profile_image_url: string | null;
42
35
  selected_team: {
43
36
  client_metadata?: {} | null | undefined;
44
37
  client_read_only_metadata?: {} | null | undefined;
45
38
  server_metadata?: {} | null | undefined;
46
- id: string;
47
39
  display_name: string;
48
- created_at_millis: number;
40
+ id: string;
49
41
  profile_image_url: string | null;
42
+ created_at_millis: number;
50
43
  } | null;
44
+ selected_team_id: string | null;
45
+ signed_up_at_millis: number;
51
46
  has_password: boolean;
52
47
  otp_auth_enabled: boolean;
53
48
  passkey_auth_enabled: boolean;
49
+ last_active_at_millis: number;
50
+ is_anonymous: boolean;
51
+ is_restricted: boolean;
54
52
  restricted_by_admin: boolean;
55
53
  restricted_by_admin_reason: string | null;
56
54
  restricted_by_admin_private_details: string | null;
55
+ country_code: string | null;
57
56
  risk_scores: {
58
57
  sign_up: {
59
58
  bot: number;
@@ -66,6 +65,7 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
66
65
  account_id: string;
67
66
  }[];
68
67
  auth_with_email: boolean;
68
+ requires_totp_mfa: boolean;
69
69
  };
70
70
  }, yup$1.AnyObject, {
71
71
  team_id: undefined;
@@ -143,40 +143,39 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
143
143
  profile_image_url: string | null;
144
144
  } & {
145
145
  user: {
146
- id: string;
146
+ display_name: string | null;
147
147
  restricted_reason: {
148
148
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
149
149
  } | null;
150
150
  primary_email: string | null;
151
- display_name: string | null;
152
151
  client_metadata: {} | null;
153
152
  client_read_only_metadata: {} | null;
154
153
  server_metadata: {} | null;
155
- selected_team_id: string | null;
156
- is_anonymous: boolean;
157
- is_restricted: boolean;
158
- requires_totp_mfa: boolean;
159
- country_code: string | null;
160
- profile_image_url: string | null;
161
- signed_up_at_millis: number;
162
- last_active_at_millis: number;
154
+ id: string;
163
155
  primary_email_verified: boolean;
164
156
  primary_email_auth_enabled: boolean;
157
+ profile_image_url: string | null;
165
158
  selected_team: {
166
159
  client_metadata?: {} | null | undefined;
167
160
  client_read_only_metadata?: {} | null | undefined;
168
161
  server_metadata?: {} | null | undefined;
169
- id: string;
170
162
  display_name: string;
171
- created_at_millis: number;
163
+ id: string;
172
164
  profile_image_url: string | null;
165
+ created_at_millis: number;
173
166
  } | null;
167
+ selected_team_id: string | null;
168
+ signed_up_at_millis: number;
174
169
  has_password: boolean;
175
170
  otp_auth_enabled: boolean;
176
171
  passkey_auth_enabled: boolean;
172
+ last_active_at_millis: number;
173
+ is_anonymous: boolean;
174
+ is_restricted: boolean;
177
175
  restricted_by_admin: boolean;
178
176
  restricted_by_admin_reason: string | null;
179
177
  restricted_by_admin_private_details: string | null;
178
+ country_code: string | null;
180
179
  risk_scores: {
181
180
  sign_up: {
182
181
  bot: number;
@@ -189,6 +188,7 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
189
188
  account_id: string;
190
189
  }[];
191
190
  auth_with_email: boolean;
191
+ requires_totp_mfa: boolean;
192
192
  };
193
193
  }, yup$1.AnyObject, {
194
194
  team_id: undefined;
@@ -38,10 +38,11 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
38
38
  quantity: number;
39
39
  customer_type: "team" | "user" | "custom";
40
40
  product: {
41
- free_trial?: DayInterval | undefined;
42
41
  client_metadata?: {} | null | undefined;
43
42
  client_read_only_metadata?: {} | null | undefined;
44
43
  server_metadata?: {} | null | undefined;
44
+ free_trial?: DayInterval | undefined;
45
+ display_name: string;
45
46
  server_only: boolean;
46
47
  customer_type: "team" | "user" | "custom";
47
48
  stackable: boolean;
@@ -56,10 +57,9 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
56
57
  interval?: DayInterval | undefined;
57
58
  free_trial?: DayInterval | undefined;
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
  };
@@ -122,10 +122,11 @@ declare const transactionSchema: yup$1.ObjectSchema<{
122
122
  quantity: number;
123
123
  customer_type: "team" | "user" | "custom";
124
124
  product: {
125
- free_trial?: DayInterval | undefined;
126
125
  client_metadata?: {} | null | undefined;
127
126
  client_read_only_metadata?: {} | null | undefined;
128
127
  server_metadata?: {} | null | undefined;
128
+ free_trial?: DayInterval | undefined;
129
+ display_name: string;
129
130
  server_only: boolean;
130
131
  customer_type: "team" | "user" | "custom";
131
132
  stackable: boolean;
@@ -140,10 +141,9 @@ declare const transactionSchema: yup$1.ObjectSchema<{
140
141
  interval?: DayInterval | undefined;
141
142
  free_trial?: DayInterval | undefined;
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
  };
@@ -1 +1 @@
1
- {"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../src/interface/crud/transactions.ts"],"mappings":";;;;;cAwFa,sBAAA,QAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
1
+ {"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../src/interface/crud/transactions.ts"],"mappings":";;;;;cAwFa,sBAAA,QAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
@@ -80,10 +80,10 @@ 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;
85
- created_at_millis: number;
84
+ id: string;
86
85
  profile_image_url: string | null;
86
+ created_at_millis: number;
87
87
  } | null;
88
88
  selected_team_id: string | null;
89
89
  profile_image_url: string | null;
@@ -162,34 +162,34 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
162
162
  requires_totp_mfa: undefined;
163
163
  }, "">;
164
164
  declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
165
- primary_email: string | null | undefined;
166
165
  display_name: string | null | undefined;
166
+ primary_email: string | null | undefined;
167
167
  client_metadata: {} | null | undefined;
168
168
  client_read_only_metadata: {} | null | undefined;
169
169
  server_metadata: {} | null | undefined;
170
- is_anonymous: boolean | undefined;
171
- password: string | null | undefined;
172
- country_code: string | null | undefined;
173
- profile_image_url: string | null | undefined;
174
170
  primary_email_verified: boolean | undefined;
175
171
  primary_email_auth_enabled: boolean | undefined;
172
+ profile_image_url: string | null | undefined;
176
173
  otp_auth_enabled: boolean | undefined;
177
174
  passkey_auth_enabled: boolean | undefined;
175
+ is_anonymous: boolean | undefined;
178
176
  restricted_by_admin: boolean | undefined;
179
177
  restricted_by_admin_reason: string | null | undefined;
180
178
  restricted_by_admin_private_details: string | null | undefined;
179
+ country_code: string | null | undefined;
181
180
  risk_scores: {
182
181
  sign_up: {
183
182
  bot: number;
184
183
  free_trial_abuse: number;
185
184
  };
186
185
  } | undefined;
186
+ password: string | null | undefined;
187
187
  password_hash: string | undefined;
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,10 +233,10 @@ 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;
238
- created_at_millis: number;
237
+ id: string;
239
238
  profile_image_url: string | null;
239
+ created_at_millis: number;
240
240
  } | null;
241
241
  selected_team_id: string | null;
242
242
  profile_image_url: string | null;
@@ -368,34 +368,34 @@ declare const usersCrud: CrudSchemaFromOptions<{
368
368
  };
369
369
  }, "">;
370
370
  serverCreateSchema: yup$1.ObjectSchema<{
371
- primary_email: string | null | undefined;
372
371
  display_name: string | null | undefined;
372
+ primary_email: string | null | undefined;
373
373
  client_metadata: {} | null | undefined;
374
374
  client_read_only_metadata: {} | null | undefined;
375
375
  server_metadata: {} | null | undefined;
376
- is_anonymous: boolean | undefined;
377
- password: string | null | undefined;
378
- country_code: string | null | undefined;
379
- profile_image_url: string | null | undefined;
380
376
  primary_email_verified: boolean | undefined;
381
377
  primary_email_auth_enabled: boolean | undefined;
378
+ profile_image_url: string | null | undefined;
382
379
  otp_auth_enabled: boolean | undefined;
383
380
  passkey_auth_enabled: boolean | undefined;
381
+ is_anonymous: boolean | undefined;
384
382
  restricted_by_admin: boolean | undefined;
385
383
  restricted_by_admin_reason: string | null | undefined;
386
384
  restricted_by_admin_private_details: string | null | undefined;
385
+ country_code: string | null | undefined;
387
386
  risk_scores: {
388
387
  sign_up: {
389
388
  bot: number;
390
389
  free_trial_abuse: number;
391
390
  };
392
391
  } | undefined;
392
+ password: string | null | undefined;
393
393
  password_hash: string | undefined;
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,10 +467,10 @@ 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;
472
- created_at_millis: number;
471
+ id: string;
473
472
  profile_image_url: string | null;
473
+ created_at_millis: number;
474
474
  } | null;
475
475
  selected_team_id: string | null;
476
476
  profile_image_url: string | null;
@@ -558,10 +558,10 @@ 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;
563
- created_at_millis: number;
562
+ id: string;
564
563
  profile_image_url: string | null;
564
+ created_at_millis: number;
565
565
  } | null;
566
566
  selected_team_id: string | null;
567
567
  profile_image_url: string | null;
@@ -24,15 +24,15 @@ declare const planUsageRowSchema: yup$1.ObjectSchema<{
24
24
  declare const planUsageResponseSchema: yup$1.ObjectSchema<{
25
25
  owner_team_id: string;
26
26
  owner_team_display_name: string;
27
- plan_id: "team" | "free" | "growth";
27
+ plan_id: "free" | "team" | "growth";
28
28
  plan_display_name: string;
29
29
  period_start_millis: number;
30
30
  period_end_millis: number;
31
31
  next_plan_id: "team" | "growth" | null;
32
32
  rows: {
33
+ kind: "current" | "metered" | "capability";
33
34
  item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
34
35
  display_name: string;
35
- kind: "current" | "metered" | "capability";
36
36
  used: number | null;
37
37
  limit: number | null;
38
38
  remaining: number | null;
@@ -20,10 +20,10 @@ 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;
25
- created_at_millis: number;
24
+ id: string;
26
25
  profile_image_url: string | null;
26
+ created_at_millis: number;
27
27
  } | null;
28
28
  selected_team_id: string | null;
29
29
  profile_image_url: string | null;
@@ -110,10 +110,10 @@ 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;
115
- created_at_millis: number;
114
+ id: string;
116
115
  profile_image_url: string | null;
116
+ created_at_millis: number;
117
117
  } | null;
118
118
  selected_team_id: string | null;
119
119
  profile_image_url: string | 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,15 +16,18 @@ declare class AccessToken {
19
16
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
20
17
  } | null;
21
18
  branch_id: string;
19
+ name: string | null;
20
+ sub: string;
21
+ selected_team_id: string | null;
22
+ is_anonymous: boolean;
23
+ is_restricted: boolean;
24
+ requires_totp_mfa: boolean;
25
+ role: "authenticated";
22
26
  iat: number;
23
27
  iss: string;
24
28
  aud: string;
25
29
  email_verified: boolean;
26
- selected_team_id: string | null;
27
30
  signed_up_at: number;
28
- is_anonymous: boolean;
29
- is_restricted: boolean;
30
- requires_totp_mfa: boolean;
31
31
  };
32
32
  get expiresAt(): Date;
33
33
  get issuedAt(): Date;
@@ -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 };