@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?: ______utils_dates0.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?: ______utils_dates0.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?: ______utils_dates0.DayInterval | undefined;
25
26
  free_trial?: ______utils_dates0.DayInterval | undefined;
26
27
  }>;
27
- display_name: string;
28
28
  included_items: Record<string, {
29
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
30
29
  quantity?: number | undefined;
30
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
31
31
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
32
32
  }>;
33
33
  };
@@ -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?: ______utils_dates0.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?: ______utils_dates0.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?: ______utils_dates0.DayInterval | undefined;
60
61
  free_trial?: ______utils_dates0.DayInterval | undefined;
61
62
  }>;
62
- display_name: string;
63
63
  included_items: Record<string, {
64
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
65
64
  quantity?: number | undefined;
65
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
66
66
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
67
67
  }>;
68
68
  };
@@ -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?: ______utils_dates0.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?: ______utils_dates0.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?: ______utils_dates0.DayInterval | undefined;
123
124
  free_trial?: ______utils_dates0.DayInterval | undefined;
124
125
  }>;
125
- display_name: string;
126
126
  included_items: Record<string, {
127
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
128
127
  quantity?: number | undefined;
128
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
129
129
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
130
130
  }>;
131
131
  };
132
132
  }[] | undefined;
133
- id: string | null;
134
133
  quantity: number;
134
+ id: string | null;
135
135
  product: {
136
- free_trial?: ______utils_dates0.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?: ______utils_dates0.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?: ______utils_dates0.DayInterval | undefined;
152
153
  free_trial?: ______utils_dates0.DayInterval | undefined;
153
154
  }>;
154
- display_name: string;
155
155
  included_items: Record<string, {
156
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
157
156
  quantity?: number | undefined;
157
+ repeat?: "never" | ______utils_dates0.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,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;qBAMnC,kBAAA,CAAA,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,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;qBAMnC,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
@@ -79,9 +79,9 @@ declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
79
79
  is_public: undefined;
80
80
  user_id: undefined;
81
81
  }, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
82
- id: string;
83
82
  type: "user";
84
83
  user_id: string;
84
+ id: string;
85
85
  description: string;
86
86
  created_at_millis: number;
87
87
  expires_at_millis: number | undefined;
@@ -177,9 +177,9 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
177
177
  is_public: undefined;
178
178
  team_id: undefined;
179
179
  }, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
180
- id: string;
181
180
  type: "team";
182
181
  team_id: string;
182
+ id: string;
183
183
  description: string;
184
184
  created_at_millis: number;
185
185
  expires_at_millis: number | undefined;
@@ -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" | "passkey" | "credential" | "magicLink")[];
55
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
56
56
  selected_email_theme_id: string | null;
57
57
  selected_payments_country: "US" | "OTHER";
58
58
  } | null | undefined;
@@ -69,8 +69,8 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
69
69
  facebook_config_id?: string | undefined;
70
70
  microsoft_tenant_id?: string | undefined;
71
71
  apple_bundle_ids?: string[] | undefined;
72
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
73
72
  type: "shared" | "standard";
73
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
74
74
  provider_config_id: string;
75
75
  }[];
76
76
  domains: {
@@ -225,7 +225,7 @@ 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" | "passkey" | "credential" | "magicLink")[];
228
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
229
229
  selected_email_theme_id: string | null;
230
230
  selected_payments_country: "US" | "OTHER";
231
231
  } | null | undefined;
@@ -236,8 +236,8 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
236
236
  facebook_config_id?: string | undefined;
237
237
  microsoft_tenant_id?: string | undefined;
238
238
  apple_bundle_ids?: string[] | undefined;
239
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
240
239
  type: "shared" | "standard";
240
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
241
241
  }[] | undefined;
242
242
  domains?: {
243
243
  domain: string;
@@ -305,7 +305,7 @@ 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" | "passkey" | "credential" | "magicLink")[];
308
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
309
309
  selected_email_theme_id: string | null;
310
310
  selected_payments_country: "US" | "OTHER";
311
311
  } | null | undefined;
@@ -316,8 +316,8 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
316
316
  facebook_config_id?: string | undefined;
317
317
  microsoft_tenant_id?: string | undefined;
318
318
  apple_bundle_ids?: string[] | undefined;
319
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
320
319
  type: "shared" | "standard";
320
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
321
321
  }[] | undefined;
322
322
  domains?: {
323
323
  domain: string;
@@ -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" | "passkey" | "credential" | "magicLink")[];
458
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
459
459
  selected_email_theme_id: string | null;
460
460
  selected_payments_country: "US" | "OTHER";
461
461
  } | null | undefined;
@@ -472,8 +472,8 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
472
472
  facebook_config_id?: string | undefined;
473
473
  microsoft_tenant_id?: string | undefined;
474
474
  apple_bundle_ids?: string[] | undefined;
475
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
476
475
  type: "shared" | "standard";
476
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
477
477
  provider_config_id: string;
478
478
  }[];
479
479
  domains: {
@@ -580,7 +580,7 @@ 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" | "passkey" | "credential" | "magicLink")[];
583
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
584
584
  selected_email_theme_id: string | null;
585
585
  selected_payments_country: "US" | "OTHER";
586
586
  } | null | undefined;
@@ -591,8 +591,8 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
591
591
  facebook_config_id?: string | undefined;
592
592
  microsoft_tenant_id?: string | undefined;
593
593
  apple_bundle_ids?: string[] | undefined;
594
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
595
594
  type: "shared" | "standard";
595
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
596
596
  }[] | undefined;
597
597
  domains?: {
598
598
  domain: string;
@@ -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" | "passkey" | "credential" | "magicLink")[];
691
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
692
692
  selected_email_theme_id: string | null;
693
693
  selected_payments_country: "US" | "OTHER";
694
694
  } | null | undefined;
@@ -705,8 +705,8 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
705
705
  facebook_config_id?: string | undefined;
706
706
  microsoft_tenant_id?: string | undefined;
707
707
  apple_bundle_ids?: string[] | undefined;
708
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
709
708
  type: "shared" | "standard";
709
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
710
710
  provider_config_id: string;
711
711
  }[];
712
712
  domains: {
@@ -813,7 +813,7 @@ 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" | "passkey" | "credential" | "magicLink")[];
816
+ selected_sign_in_methods: ("passkey" | "google" | "github" | "microsoft" | "credential" | "magicLink")[];
817
817
  selected_email_theme_id: string | null;
818
818
  selected_payments_country: "US" | "OTHER";
819
819
  } | null | undefined;
@@ -824,8 +824,8 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
824
824
  facebook_config_id?: string | undefined;
825
825
  microsoft_tenant_id?: string | undefined;
826
826
  apple_bundle_ids?: string[] | undefined;
827
- id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
828
827
  type: "shared" | "standard";
828
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
829
829
  }[] | undefined;
830
830
  domains?: {
831
831
  domain: string;
@@ -21,40 +21,39 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
21
21
  profile_image_url: string | null;
22
22
  } & {
23
23
  user: {
24
- id: string;
24
+ display_name: string | null;
25
25
  restricted_reason: {
26
26
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
27
27
  } | null;
28
28
  primary_email: string | null;
29
- display_name: string | null;
30
29
  client_metadata: {} | null;
31
30
  client_read_only_metadata: {} | null;
32
31
  server_metadata: {} | null;
33
- selected_team_id: string | null;
34
- is_anonymous: boolean;
35
- is_restricted: boolean;
36
- requires_totp_mfa: boolean;
37
- country_code: string | null;
38
- profile_image_url: string | null;
39
- signed_up_at_millis: number;
40
- last_active_at_millis: number;
32
+ id: string;
41
33
  primary_email_verified: boolean;
42
34
  primary_email_auth_enabled: boolean;
35
+ profile_image_url: string | null;
43
36
  selected_team: {
44
37
  client_metadata?: {} | null | undefined;
45
38
  client_read_only_metadata?: {} | null | undefined;
46
39
  server_metadata?: {} | null | undefined;
47
- id: string;
48
40
  display_name: string;
49
- created_at_millis: number;
41
+ id: string;
50
42
  profile_image_url: string | null;
43
+ created_at_millis: number;
51
44
  } | null;
45
+ selected_team_id: string | null;
46
+ signed_up_at_millis: number;
52
47
  has_password: boolean;
53
48
  otp_auth_enabled: boolean;
54
49
  passkey_auth_enabled: boolean;
50
+ last_active_at_millis: number;
51
+ is_anonymous: boolean;
52
+ is_restricted: boolean;
55
53
  restricted_by_admin: boolean;
56
54
  restricted_by_admin_reason: string | null;
57
55
  restricted_by_admin_private_details: string | null;
56
+ country_code: string | null;
58
57
  risk_scores: {
59
58
  sign_up: {
60
59
  bot: number;
@@ -67,6 +66,7 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
67
66
  account_id: string;
68
67
  }[];
69
68
  auth_with_email: boolean;
69
+ requires_totp_mfa: boolean;
70
70
  };
71
71
  }, yup$1.AnyObject, {
72
72
  team_id: undefined;
@@ -144,40 +144,39 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
144
144
  profile_image_url: string | null;
145
145
  } & {
146
146
  user: {
147
- id: string;
147
+ display_name: string | null;
148
148
  restricted_reason: {
149
149
  type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
150
150
  } | null;
151
151
  primary_email: string | null;
152
- display_name: string | null;
153
152
  client_metadata: {} | null;
154
153
  client_read_only_metadata: {} | null;
155
154
  server_metadata: {} | null;
156
- selected_team_id: string | null;
157
- is_anonymous: boolean;
158
- is_restricted: boolean;
159
- requires_totp_mfa: boolean;
160
- country_code: string | null;
161
- profile_image_url: string | null;
162
- signed_up_at_millis: number;
163
- last_active_at_millis: number;
155
+ id: string;
164
156
  primary_email_verified: boolean;
165
157
  primary_email_auth_enabled: boolean;
158
+ profile_image_url: string | null;
166
159
  selected_team: {
167
160
  client_metadata?: {} | null | undefined;
168
161
  client_read_only_metadata?: {} | null | undefined;
169
162
  server_metadata?: {} | null | undefined;
170
- id: string;
171
163
  display_name: string;
172
- created_at_millis: number;
164
+ id: string;
173
165
  profile_image_url: string | null;
166
+ created_at_millis: number;
174
167
  } | null;
168
+ selected_team_id: string | null;
169
+ signed_up_at_millis: number;
175
170
  has_password: boolean;
176
171
  otp_auth_enabled: boolean;
177
172
  passkey_auth_enabled: boolean;
173
+ last_active_at_millis: number;
174
+ is_anonymous: boolean;
175
+ is_restricted: boolean;
178
176
  restricted_by_admin: boolean;
179
177
  restricted_by_admin_reason: string | null;
180
178
  restricted_by_admin_private_details: string | null;
179
+ country_code: string | null;
181
180
  risk_scores: {
182
181
  sign_up: {
183
182
  bot: number;
@@ -190,6 +189,7 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
190
189
  account_id: string;
191
190
  }[];
192
191
  auth_with_email: boolean;
192
+ requires_totp_mfa: boolean;
193
193
  };
194
194
  }, yup$1.AnyObject, {
195
195
  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?: ______utils_dates0.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?: ______utils_dates0.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?: ______utils_dates0.DayInterval | undefined;
57
58
  free_trial?: ______utils_dates0.DayInterval | undefined;
58
59
  }>;
59
- display_name: string;
60
60
  included_items: Record<string, {
61
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
62
61
  quantity?: number | undefined;
62
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
63
63
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
64
64
  }>;
65
65
  };
@@ -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?: ______utils_dates0.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?: ______utils_dates0.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?: ______utils_dates0.DayInterval | undefined;
141
142
  free_trial?: ______utils_dates0.DayInterval | undefined;
142
143
  }>;
143
- display_name: string;
144
144
  included_items: Record<string, {
145
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
146
145
  quantity?: number | undefined;
146
+ repeat?: "never" | ______utils_dates0.DayInterval | undefined;
147
147
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
148
148
  }>;
149
149
  };
@@ -1 +1 @@
1
- {"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;;;cAwFa,sBAAA,QAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,kBAAA,CAAA,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,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
@@ -81,10 +81,10 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
81
81
  client_metadata?: {} | null | undefined;
82
82
  client_read_only_metadata?: {} | null | undefined;
83
83
  server_metadata?: {} | null | undefined;
84
- id: string;
85
84
  display_name: string;
86
- created_at_millis: number;
85
+ id: string;
87
86
  profile_image_url: string | null;
87
+ created_at_millis: number;
88
88
  } | null;
89
89
  selected_team_id: string | null;
90
90
  profile_image_url: string | null;
@@ -163,34 +163,34 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
163
163
  requires_totp_mfa: undefined;
164
164
  }, "">;
165
165
  declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
166
- primary_email: string | null | undefined;
167
166
  display_name: string | null | undefined;
167
+ primary_email: string | null | undefined;
168
168
  client_metadata: {} | null | undefined;
169
169
  client_read_only_metadata: {} | null | undefined;
170
170
  server_metadata: {} | null | undefined;
171
- is_anonymous: boolean | undefined;
172
- password: string | null | undefined;
173
- country_code: string | null | undefined;
174
- profile_image_url: string | null | undefined;
175
171
  primary_email_verified: boolean | undefined;
176
172
  primary_email_auth_enabled: boolean | undefined;
173
+ profile_image_url: string | null | undefined;
177
174
  otp_auth_enabled: boolean | undefined;
178
175
  passkey_auth_enabled: boolean | undefined;
176
+ is_anonymous: boolean | undefined;
179
177
  restricted_by_admin: boolean | undefined;
180
178
  restricted_by_admin_reason: string | null | undefined;
181
179
  restricted_by_admin_private_details: string | null | undefined;
180
+ country_code: string | null | undefined;
182
181
  risk_scores: {
183
182
  sign_up: {
184
183
  bot: number;
185
184
  free_trial_abuse: number;
186
185
  };
187
186
  } | undefined;
187
+ password: string | null | undefined;
188
188
  password_hash: string | undefined;
189
189
  totp_secret_base64: string | null | undefined;
190
190
  } & {
191
191
  oauth_providers: {
192
- id: string;
193
192
  email: string | null;
193
+ id: string;
194
194
  account_id: string;
195
195
  }[] | undefined;
196
196
  is_anonymous: boolean | undefined;
@@ -234,10 +234,10 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
234
234
  client_metadata?: {} | null | undefined;
235
235
  client_read_only_metadata?: {} | null | undefined;
236
236
  server_metadata?: {} | null | undefined;
237
- id: string;
238
237
  display_name: string;
239
- created_at_millis: number;
238
+ id: string;
240
239
  profile_image_url: string | null;
240
+ created_at_millis: number;
241
241
  } | null;
242
242
  selected_team_id: string | null;
243
243
  profile_image_url: string | null;
@@ -369,34 +369,34 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
369
369
  };
370
370
  }, "">;
371
371
  serverCreateSchema: yup$1.ObjectSchema<{
372
- primary_email: string | null | undefined;
373
372
  display_name: string | null | undefined;
373
+ primary_email: string | null | undefined;
374
374
  client_metadata: {} | null | undefined;
375
375
  client_read_only_metadata: {} | null | undefined;
376
376
  server_metadata: {} | null | undefined;
377
- is_anonymous: boolean | undefined;
378
- password: string | null | undefined;
379
- country_code: string | null | undefined;
380
- profile_image_url: string | null | undefined;
381
377
  primary_email_verified: boolean | undefined;
382
378
  primary_email_auth_enabled: boolean | undefined;
379
+ profile_image_url: string | null | undefined;
383
380
  otp_auth_enabled: boolean | undefined;
384
381
  passkey_auth_enabled: boolean | undefined;
382
+ is_anonymous: boolean | undefined;
385
383
  restricted_by_admin: boolean | undefined;
386
384
  restricted_by_admin_reason: string | null | undefined;
387
385
  restricted_by_admin_private_details: string | null | undefined;
386
+ country_code: string | null | undefined;
388
387
  risk_scores: {
389
388
  sign_up: {
390
389
  bot: number;
391
390
  free_trial_abuse: number;
392
391
  };
393
392
  } | undefined;
393
+ password: string | null | undefined;
394
394
  password_hash: string | undefined;
395
395
  totp_secret_base64: string | null | undefined;
396
396
  } & {
397
397
  oauth_providers: {
398
- id: string;
399
398
  email: string | null;
399
+ id: string;
400
400
  account_id: string;
401
401
  }[] | undefined;
402
402
  is_anonymous: boolean | undefined;
@@ -468,10 +468,10 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
468
468
  client_metadata?: {} | null | undefined;
469
469
  client_read_only_metadata?: {} | null | undefined;
470
470
  server_metadata?: {} | null | undefined;
471
- id: string;
472
471
  display_name: string;
473
- created_at_millis: number;
472
+ id: string;
474
473
  profile_image_url: string | null;
474
+ created_at_millis: number;
475
475
  } | null;
476
476
  selected_team_id: string | null;
477
477
  profile_image_url: string | null;
@@ -559,10 +559,10 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
559
559
  client_metadata?: {} | null | undefined;
560
560
  client_read_only_metadata?: {} | null | undefined;
561
561
  server_metadata?: {} | null | undefined;
562
- id: string;
563
562
  display_name: string;
564
- created_at_millis: number;
563
+ id: string;
565
564
  profile_image_url: string | null;
565
+ created_at_millis: number;
566
566
  } | null;
567
567
  selected_team_id: string | null;
568
568
  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 { 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 };