@stackframe/stack-shared 2.8.39 → 2.8.41

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 (52) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/esm/interface/client-interface.js +1 -1
  3. package/dist/esm/interface/client-interface.js.map +1 -1
  4. package/dist/esm/schema-fields.js +17 -1
  5. package/dist/esm/schema-fields.js.map +1 -1
  6. package/dist/esm/sessions.js +34 -12
  7. package/dist/esm/sessions.js.map +1 -1
  8. package/dist/esm/utils/paginated-lists.js +230 -0
  9. package/dist/esm/utils/paginated-lists.js.map +1 -0
  10. package/dist/helpers/password.d.mts +3 -3
  11. package/dist/helpers/password.d.ts +3 -3
  12. package/dist/index.d.mts +4 -5
  13. package/dist/index.d.ts +4 -5
  14. package/dist/interface/admin-interface.d.mts +4 -5
  15. package/dist/interface/admin-interface.d.ts +4 -5
  16. package/dist/interface/client-interface.d.mts +0 -1
  17. package/dist/interface/client-interface.d.ts +0 -1
  18. package/dist/interface/client-interface.js +1 -1
  19. package/dist/interface/client-interface.js.map +1 -1
  20. package/dist/interface/crud/current-user.d.mts +4 -4
  21. package/dist/interface/crud/current-user.d.ts +4 -4
  22. package/dist/interface/crud/oauth-providers.d.mts +4 -4
  23. package/dist/interface/crud/oauth-providers.d.ts +4 -4
  24. package/dist/interface/crud/project-api-keys.d.mts +2 -2
  25. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  26. package/dist/interface/crud/projects.d.mts +12 -12
  27. package/dist/interface/crud/projects.d.ts +12 -12
  28. package/dist/interface/crud/team-member-profiles.d.mts +6 -6
  29. package/dist/interface/crud/team-member-profiles.d.ts +6 -6
  30. package/dist/interface/crud/transactions.d.mts +1 -1
  31. package/dist/interface/crud/transactions.d.ts +1 -1
  32. package/dist/interface/crud/users.d.mts +6 -6
  33. package/dist/interface/crud/users.d.ts +6 -6
  34. package/dist/interface/server-interface.d.mts +0 -1
  35. package/dist/interface/server-interface.d.ts +0 -1
  36. package/dist/known-errors.d.mts +3 -3
  37. package/dist/known-errors.d.ts +3 -3
  38. package/dist/schema-fields.d.mts +36 -7
  39. package/dist/schema-fields.d.ts +36 -7
  40. package/dist/schema-fields.js +19 -2
  41. package/dist/schema-fields.js.map +1 -1
  42. package/dist/sessions.d.mts +28 -5
  43. package/dist/sessions.d.ts +28 -5
  44. package/dist/sessions.js +33 -11
  45. package/dist/sessions.js.map +1 -1
  46. package/dist/utils/paginated-lists.d.mts +176 -0
  47. package/dist/utils/paginated-lists.d.ts +176 -0
  48. package/dist/utils/paginated-lists.js +256 -0
  49. package/dist/utils/paginated-lists.js.map +1 -0
  50. package/dist/utils/stores.d.mts +6 -6
  51. package/dist/utils/stores.d.ts +6 -6
  52. package/package.json +1 -1
@@ -84,10 +84,10 @@ declare const userApiKeysCreateOutputSchema: yup.ObjectSchema<{
84
84
  type: "user";
85
85
  description: string;
86
86
  id: string;
87
- user_id: string;
88
87
  created_at_millis: number;
89
88
  expires_at_millis: number | undefined;
90
89
  manually_revoked_at_millis: number | undefined;
90
+ user_id: string;
91
91
  is_public: boolean;
92
92
  } & {
93
93
  value: string;
@@ -184,10 +184,10 @@ declare const teamApiKeysCreateOutputSchema: yup.ObjectSchema<{
184
184
  type: "team";
185
185
  description: string;
186
186
  id: string;
187
- team_id: string;
188
187
  created_at_millis: number;
189
188
  expires_at_millis: number | undefined;
190
189
  manually_revoked_at_millis: number | undefined;
190
+ team_id: string;
191
191
  is_public: boolean;
192
192
  } & {
193
193
  value: string;
@@ -84,10 +84,10 @@ declare const userApiKeysCreateOutputSchema: yup.ObjectSchema<{
84
84
  type: "user";
85
85
  description: string;
86
86
  id: string;
87
- user_id: string;
88
87
  created_at_millis: number;
89
88
  expires_at_millis: number | undefined;
90
89
  manually_revoked_at_millis: number | undefined;
90
+ user_id: string;
91
91
  is_public: boolean;
92
92
  } & {
93
93
  value: string;
@@ -184,10 +184,10 @@ declare const teamApiKeysCreateOutputSchema: yup.ObjectSchema<{
184
184
  type: "team";
185
185
  description: string;
186
186
  id: string;
187
- team_id: string;
188
187
  created_at_millis: number;
189
188
  expires_at_millis: number | undefined;
190
189
  manually_revoked_at_millis: number | undefined;
190
+ team_id: string;
191
191
  is_public: boolean;
192
192
  } & {
193
193
  value: string;
@@ -61,11 +61,11 @@ declare const projectsCrudAdminReadSchema: yup.ObjectSchema<{
61
61
  facebook_config_id?: string | undefined;
62
62
  microsoft_tenant_id?: string | undefined;
63
63
  type: "shared" | "standard";
64
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
64
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
65
65
  provider_config_id: string;
66
66
  }[];
67
67
  enabled_oauth_providers: {
68
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
68
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
69
69
  }[];
70
70
  domains: {
71
71
  domain: string;
@@ -145,7 +145,7 @@ declare const projectsCrudClientReadSchema: yup.ObjectSchema<{
145
145
  allow_user_api_keys: boolean;
146
146
  allow_team_api_keys: boolean;
147
147
  enabled_oauth_providers: {
148
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
148
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
149
149
  }[];
150
150
  };
151
151
  }, yup.AnyObject, {
@@ -185,7 +185,7 @@ declare const projectsCrudAdminUpdateSchema: yup.ObjectSchema<{
185
185
  facebook_config_id?: string | undefined;
186
186
  microsoft_tenant_id?: string | undefined;
187
187
  type: "shared" | "standard";
188
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
188
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
189
189
  }[] | undefined;
190
190
  domains?: {
191
191
  domain: string;
@@ -243,7 +243,7 @@ declare const projectsCrudAdminCreateSchema: yup.ObjectSchema<{
243
243
  facebook_config_id?: string | undefined;
244
244
  microsoft_tenant_id?: string | undefined;
245
245
  type: "shared" | "standard";
246
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
246
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
247
247
  }[] | undefined;
248
248
  domains?: {
249
249
  domain: string;
@@ -298,7 +298,7 @@ declare const clientProjectsCrud: CrudSchemaFromOptions<{
298
298
  allow_user_api_keys: boolean;
299
299
  allow_team_api_keys: boolean;
300
300
  enabled_oauth_providers: {
301
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
301
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
302
302
  }[];
303
303
  };
304
304
  }, yup.AnyObject, {
@@ -351,11 +351,11 @@ declare const projectsCrud: CrudSchemaFromOptions<{
351
351
  facebook_config_id?: string | undefined;
352
352
  microsoft_tenant_id?: string | undefined;
353
353
  type: "shared" | "standard";
354
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
354
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
355
355
  provider_config_id: string;
356
356
  }[];
357
357
  enabled_oauth_providers: {
358
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
358
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
359
359
  }[];
360
360
  domains: {
361
361
  domain: string;
@@ -444,7 +444,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
444
444
  facebook_config_id?: string | undefined;
445
445
  microsoft_tenant_id?: string | undefined;
446
446
  type: "shared" | "standard";
447
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
447
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
448
448
  }[] | undefined;
449
449
  domains?: {
450
450
  domain: string;
@@ -526,11 +526,11 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
526
526
  facebook_config_id?: string | undefined;
527
527
  microsoft_tenant_id?: string | undefined;
528
528
  type: "shared" | "standard";
529
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
529
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
530
530
  provider_config_id: string;
531
531
  }[];
532
532
  enabled_oauth_providers: {
533
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
533
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
534
534
  }[];
535
535
  domains: {
536
536
  domain: string;
@@ -619,7 +619,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
619
619
  facebook_config_id?: string | undefined;
620
620
  microsoft_tenant_id?: string | undefined;
621
621
  type: "shared" | "standard";
622
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
622
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
623
623
  }[] | undefined;
624
624
  domains?: {
625
625
  domain: string;
@@ -61,11 +61,11 @@ declare const projectsCrudAdminReadSchema: yup.ObjectSchema<{
61
61
  facebook_config_id?: string | undefined;
62
62
  microsoft_tenant_id?: string | undefined;
63
63
  type: "shared" | "standard";
64
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
64
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
65
65
  provider_config_id: string;
66
66
  }[];
67
67
  enabled_oauth_providers: {
68
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
68
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
69
69
  }[];
70
70
  domains: {
71
71
  domain: string;
@@ -145,7 +145,7 @@ declare const projectsCrudClientReadSchema: yup.ObjectSchema<{
145
145
  allow_user_api_keys: boolean;
146
146
  allow_team_api_keys: boolean;
147
147
  enabled_oauth_providers: {
148
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
148
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
149
149
  }[];
150
150
  };
151
151
  }, yup.AnyObject, {
@@ -185,7 +185,7 @@ declare const projectsCrudAdminUpdateSchema: yup.ObjectSchema<{
185
185
  facebook_config_id?: string | undefined;
186
186
  microsoft_tenant_id?: string | undefined;
187
187
  type: "shared" | "standard";
188
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
188
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
189
189
  }[] | undefined;
190
190
  domains?: {
191
191
  domain: string;
@@ -243,7 +243,7 @@ declare const projectsCrudAdminCreateSchema: yup.ObjectSchema<{
243
243
  facebook_config_id?: string | undefined;
244
244
  microsoft_tenant_id?: string | undefined;
245
245
  type: "shared" | "standard";
246
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
246
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
247
247
  }[] | undefined;
248
248
  domains?: {
249
249
  domain: string;
@@ -298,7 +298,7 @@ declare const clientProjectsCrud: CrudSchemaFromOptions<{
298
298
  allow_user_api_keys: boolean;
299
299
  allow_team_api_keys: boolean;
300
300
  enabled_oauth_providers: {
301
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
301
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
302
302
  }[];
303
303
  };
304
304
  }, yup.AnyObject, {
@@ -351,11 +351,11 @@ declare const projectsCrud: CrudSchemaFromOptions<{
351
351
  facebook_config_id?: string | undefined;
352
352
  microsoft_tenant_id?: string | undefined;
353
353
  type: "shared" | "standard";
354
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
354
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
355
355
  provider_config_id: string;
356
356
  }[];
357
357
  enabled_oauth_providers: {
358
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
358
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
359
359
  }[];
360
360
  domains: {
361
361
  domain: string;
@@ -444,7 +444,7 @@ declare const projectsCrud: CrudSchemaFromOptions<{
444
444
  facebook_config_id?: string | undefined;
445
445
  microsoft_tenant_id?: string | undefined;
446
446
  type: "shared" | "standard";
447
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
447
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
448
448
  }[] | undefined;
449
449
  domains?: {
450
450
  domain: string;
@@ -526,11 +526,11 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
526
526
  facebook_config_id?: string | undefined;
527
527
  microsoft_tenant_id?: string | undefined;
528
528
  type: "shared" | "standard";
529
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
529
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
530
530
  provider_config_id: string;
531
531
  }[];
532
532
  enabled_oauth_providers: {
533
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
533
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
534
534
  }[];
535
535
  domains: {
536
536
  domain: string;
@@ -619,7 +619,7 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
619
619
  facebook_config_id?: string | undefined;
620
620
  microsoft_tenant_id?: string | undefined;
621
621
  type: "shared" | "standard";
622
- id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch";
622
+ id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
623
623
  }[] | undefined;
624
624
  domains?: {
625
625
  domain: string;
@@ -21,8 +21,9 @@ declare const teamMemberProfilesCrudServerReadSchema: yup.ObjectSchema<{
21
21
  profile_image_url: string | null;
22
22
  } & {
23
23
  user: {
24
+ selected_team_id: string | null;
25
+ is_anonymous: boolean;
24
26
  id: string;
25
- primary_email: string | null;
26
27
  display_name: string | null;
27
28
  oauth_providers: {
28
29
  email?: string | null | undefined;
@@ -33,12 +34,11 @@ declare const teamMemberProfilesCrudServerReadSchema: yup.ObjectSchema<{
33
34
  client_metadata: {} | null;
34
35
  client_read_only_metadata: {} | null;
35
36
  server_metadata: {} | null;
37
+ primary_email: string | null;
36
38
  primary_email_verified: boolean;
37
39
  primary_email_auth_enabled: boolean;
38
40
  passkey_auth_enabled: boolean;
39
41
  otp_auth_enabled: boolean;
40
- selected_team_id: string | null;
41
- is_anonymous: boolean;
42
42
  selected_team: {
43
43
  client_metadata?: {} | null | undefined;
44
44
  client_read_only_metadata?: {} | null | undefined;
@@ -116,8 +116,9 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
116
116
  profile_image_url: string | null;
117
117
  } & {
118
118
  user: {
119
+ selected_team_id: string | null;
120
+ is_anonymous: boolean;
119
121
  id: string;
120
- primary_email: string | null;
121
122
  display_name: string | null;
122
123
  oauth_providers: {
123
124
  email?: string | null | undefined;
@@ -128,12 +129,11 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
128
129
  client_metadata: {} | null;
129
130
  client_read_only_metadata: {} | null;
130
131
  server_metadata: {} | null;
132
+ primary_email: string | null;
131
133
  primary_email_verified: boolean;
132
134
  primary_email_auth_enabled: boolean;
133
135
  passkey_auth_enabled: boolean;
134
136
  otp_auth_enabled: boolean;
135
- selected_team_id: string | null;
136
- is_anonymous: boolean;
137
137
  selected_team: {
138
138
  client_metadata?: {} | null | undefined;
139
139
  client_read_only_metadata?: {} | null | undefined;
@@ -21,8 +21,9 @@ declare const teamMemberProfilesCrudServerReadSchema: yup.ObjectSchema<{
21
21
  profile_image_url: string | null;
22
22
  } & {
23
23
  user: {
24
+ selected_team_id: string | null;
25
+ is_anonymous: boolean;
24
26
  id: string;
25
- primary_email: string | null;
26
27
  display_name: string | null;
27
28
  oauth_providers: {
28
29
  email?: string | null | undefined;
@@ -33,12 +34,11 @@ declare const teamMemberProfilesCrudServerReadSchema: yup.ObjectSchema<{
33
34
  client_metadata: {} | null;
34
35
  client_read_only_metadata: {} | null;
35
36
  server_metadata: {} | null;
37
+ primary_email: string | null;
36
38
  primary_email_verified: boolean;
37
39
  primary_email_auth_enabled: boolean;
38
40
  passkey_auth_enabled: boolean;
39
41
  otp_auth_enabled: boolean;
40
- selected_team_id: string | null;
41
- is_anonymous: boolean;
42
42
  selected_team: {
43
43
  client_metadata?: {} | null | undefined;
44
44
  client_read_only_metadata?: {} | null | undefined;
@@ -116,8 +116,9 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
116
116
  profile_image_url: string | null;
117
117
  } & {
118
118
  user: {
119
+ selected_team_id: string | null;
120
+ is_anonymous: boolean;
119
121
  id: string;
120
- primary_email: string | null;
121
122
  display_name: string | null;
122
123
  oauth_providers: {
123
124
  email?: string | null | undefined;
@@ -128,12 +129,11 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
128
129
  client_metadata: {} | null;
129
130
  client_read_only_metadata: {} | null;
130
131
  server_metadata: {} | null;
132
+ primary_email: string | null;
131
133
  primary_email_verified: boolean;
132
134
  primary_email_auth_enabled: boolean;
133
135
  passkey_auth_enabled: boolean;
134
136
  otp_auth_enabled: boolean;
135
- selected_team_id: string | null;
136
- is_anonymous: boolean;
137
137
  selected_team: {
138
138
  client_metadata?: {} | null | undefined;
139
139
  client_read_only_metadata?: {} | null | undefined;
@@ -6,7 +6,7 @@ declare const adminTransaction: yup.ObjectSchema<{
6
6
  id: string;
7
7
  type: "subscription" | "one_time" | "item_quantity_change";
8
8
  created_at_millis: number;
9
- customer_type: "team" | "user" | "custom";
9
+ customer_type: "user" | "team" | "custom";
10
10
  customer_id: string;
11
11
  quantity: number;
12
12
  test_mode: boolean;
@@ -6,7 +6,7 @@ declare const adminTransaction: yup.ObjectSchema<{
6
6
  id: string;
7
7
  type: "subscription" | "one_time" | "item_quantity_change";
8
8
  created_at_millis: number;
9
- customer_type: "team" | "user" | "custom";
9
+ customer_type: "user" | "team" | "custom";
10
10
  customer_id: string;
11
11
  quantity: number;
12
12
  test_mode: boolean;
@@ -100,24 +100,24 @@ declare const usersCrudServerReadSchema: yup.ObjectSchema<{
100
100
  requires_totp_mfa: undefined;
101
101
  }, "">;
102
102
  declare const usersCrudServerCreateSchema: yup.ObjectSchema<{
103
- primary_email: string | null | undefined;
103
+ is_anonymous: boolean | undefined;
104
104
  password: string | null | undefined;
105
105
  display_name: string | null | undefined;
106
106
  profile_image_url: string | null | undefined;
107
107
  client_metadata: {} | null | undefined;
108
108
  client_read_only_metadata: {} | null | undefined;
109
109
  server_metadata: {} | null | undefined;
110
+ primary_email: string | null | undefined;
110
111
  primary_email_verified: boolean | undefined;
111
112
  primary_email_auth_enabled: boolean | undefined;
112
113
  passkey_auth_enabled: boolean | undefined;
113
114
  password_hash: string | undefined;
114
115
  otp_auth_enabled: boolean | undefined;
115
116
  totp_secret_base64: string | null | undefined;
116
- is_anonymous: boolean | undefined;
117
117
  } & {
118
118
  oauth_providers: {
119
- id: string;
120
119
  email: string | null;
120
+ id: string;
121
121
  account_id: string;
122
122
  }[] | undefined;
123
123
  is_anonymous: boolean | undefined;
@@ -238,24 +238,24 @@ declare const usersCrud: CrudSchemaFromOptions<{
238
238
  is_anonymous: undefined;
239
239
  }, "">;
240
240
  serverCreateSchema: yup.ObjectSchema<{
241
- primary_email: string | null | undefined;
241
+ is_anonymous: boolean | undefined;
242
242
  password: string | null | undefined;
243
243
  display_name: string | null | undefined;
244
244
  profile_image_url: string | null | undefined;
245
245
  client_metadata: {} | null | undefined;
246
246
  client_read_only_metadata: {} | null | undefined;
247
247
  server_metadata: {} | null | undefined;
248
+ primary_email: string | null | undefined;
248
249
  primary_email_verified: boolean | undefined;
249
250
  primary_email_auth_enabled: boolean | undefined;
250
251
  passkey_auth_enabled: boolean | undefined;
251
252
  password_hash: string | undefined;
252
253
  otp_auth_enabled: boolean | undefined;
253
254
  totp_secret_base64: string | null | undefined;
254
- is_anonymous: boolean | undefined;
255
255
  } & {
256
256
  oauth_providers: {
257
- id: string;
258
257
  email: string | null;
258
+ id: string;
259
259
  account_id: string;
260
260
  }[] | undefined;
261
261
  is_anonymous: boolean | undefined;
@@ -100,24 +100,24 @@ declare const usersCrudServerReadSchema: yup.ObjectSchema<{
100
100
  requires_totp_mfa: undefined;
101
101
  }, "">;
102
102
  declare const usersCrudServerCreateSchema: yup.ObjectSchema<{
103
- primary_email: string | null | undefined;
103
+ is_anonymous: boolean | undefined;
104
104
  password: string | null | undefined;
105
105
  display_name: string | null | undefined;
106
106
  profile_image_url: string | null | undefined;
107
107
  client_metadata: {} | null | undefined;
108
108
  client_read_only_metadata: {} | null | undefined;
109
109
  server_metadata: {} | null | undefined;
110
+ primary_email: string | null | undefined;
110
111
  primary_email_verified: boolean | undefined;
111
112
  primary_email_auth_enabled: boolean | undefined;
112
113
  passkey_auth_enabled: boolean | undefined;
113
114
  password_hash: string | undefined;
114
115
  otp_auth_enabled: boolean | undefined;
115
116
  totp_secret_base64: string | null | undefined;
116
- is_anonymous: boolean | undefined;
117
117
  } & {
118
118
  oauth_providers: {
119
- id: string;
120
119
  email: string | null;
120
+ id: string;
121
121
  account_id: string;
122
122
  }[] | undefined;
123
123
  is_anonymous: boolean | undefined;
@@ -238,24 +238,24 @@ declare const usersCrud: CrudSchemaFromOptions<{
238
238
  is_anonymous: undefined;
239
239
  }, "">;
240
240
  serverCreateSchema: yup.ObjectSchema<{
241
- primary_email: string | null | undefined;
241
+ is_anonymous: boolean | undefined;
242
242
  password: string | null | undefined;
243
243
  display_name: string | null | undefined;
244
244
  profile_image_url: string | null | undefined;
245
245
  client_metadata: {} | null | undefined;
246
246
  client_read_only_metadata: {} | null | undefined;
247
247
  server_metadata: {} | null | undefined;
248
+ primary_email: string | null | undefined;
248
249
  primary_email_verified: boolean | undefined;
249
250
  primary_email_auth_enabled: boolean | undefined;
250
251
  passkey_auth_enabled: boolean | undefined;
251
252
  password_hash: string | undefined;
252
253
  otp_auth_enabled: boolean | undefined;
253
254
  totp_secret_base64: string | null | undefined;
254
- is_anonymous: boolean | undefined;
255
255
  } & {
256
256
  oauth_providers: {
257
- id: string;
258
257
  email: string | null;
258
+ id: string;
259
259
  account_id: string;
260
260
  }[] | undefined;
261
261
  is_anonymous: boolean | undefined;
@@ -18,7 +18,6 @@ import { TeamsCrud } from './crud/teams.mjs';
18
18
  import { UsersCrud } from './crud/users.mjs';
19
19
  import '../utils/errors.mjs';
20
20
  import '../utils/json.mjs';
21
- import 'jose';
22
21
  import 'yup';
23
22
  import '../schema-fields.mjs';
24
23
  import '../utils/currency-constants.mjs';
@@ -18,7 +18,6 @@ import { TeamsCrud } from './crud/teams.js';
18
18
  import { UsersCrud } from './crud/users.js';
19
19
  import '../utils/errors.js';
20
20
  import '../utils/json.js';
21
- import 'jose';
22
21
  import 'yup';
23
22
  import '../schema-fields.js';
24
23
  import '../utils/currency-constants.js';
@@ -354,7 +354,7 @@ declare const KnownErrors: {
354
354
  PermissionNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"PERMISSION_NOT_FOUND">, [permissionId: string]> & {
355
355
  errorCode: "PERMISSION_NOT_FOUND";
356
356
  };
357
- PermissionScopeMismatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"WRONG_PERMISSION_SCOPE">, [permissionId: string, expectedScope: "team" | "project", actualScope: "team" | "project" | null]> & {
357
+ PermissionScopeMismatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"WRONG_PERMISSION_SCOPE">, [permissionId: string, expectedScope: "project" | "team", actualScope: "project" | "team" | null]> & {
358
358
  errorCode: "WRONG_PERMISSION_SCOPE";
359
359
  };
360
360
  ContainedPermissionNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"CONTAINED_PERMISSION_NOT_FOUND">, [permissionId: string]> & {
@@ -468,7 +468,7 @@ declare const KnownErrors: {
468
468
  ItemNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_NOT_FOUND">, [itemId: string]> & {
469
469
  errorCode: "ITEM_NOT_FOUND";
470
470
  };
471
- ItemCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH">, [itemId: string, customerId: string, itemCustomerType: "team" | "user" | "custom" | undefined, actualCustomerType: "team" | "user" | "custom"]> & {
471
+ ItemCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH">, [itemId: string, customerId: string, itemCustomerType: "user" | "team" | "custom" | undefined, actualCustomerType: "user" | "team" | "custom"]> & {
472
472
  errorCode: "ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH";
473
473
  };
474
474
  CustomerDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"CUSTOMER_DOES_NOT_EXIST">, [customerId: string]> & {
@@ -477,7 +477,7 @@ declare const KnownErrors: {
477
477
  OfferDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"OFFER_DOES_NOT_EXIST">, [offerId: string, accessType: "client" | "server" | "admin"]> & {
478
478
  errorCode: "OFFER_DOES_NOT_EXIST";
479
479
  };
480
- OfferCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"OFFER_CUSTOMER_TYPE_DOES_NOT_MATCH">, [offerId: string | undefined, customerId: string, offerCustomerType: "team" | "user" | "custom" | undefined, actualCustomerType: "team" | "user" | "custom"]> & {
480
+ OfferCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"OFFER_CUSTOMER_TYPE_DOES_NOT_MATCH">, [offerId: string | undefined, customerId: string, offerCustomerType: "user" | "team" | "custom" | undefined, actualCustomerType: "user" | "team" | "custom"]> & {
481
481
  errorCode: "OFFER_CUSTOMER_TYPE_DOES_NOT_MATCH";
482
482
  };
483
483
  ItemQuantityInsufficientAmount: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_QUANTITY_INSUFFICIENT_AMOUNT">, [itemId: string, customerId: string, quantity: number]> & {
@@ -354,7 +354,7 @@ declare const KnownErrors: {
354
354
  PermissionNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"PERMISSION_NOT_FOUND">, [permissionId: string]> & {
355
355
  errorCode: "PERMISSION_NOT_FOUND";
356
356
  };
357
- PermissionScopeMismatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"WRONG_PERMISSION_SCOPE">, [permissionId: string, expectedScope: "team" | "project", actualScope: "team" | "project" | null]> & {
357
+ PermissionScopeMismatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"WRONG_PERMISSION_SCOPE">, [permissionId: string, expectedScope: "project" | "team", actualScope: "project" | "team" | null]> & {
358
358
  errorCode: "WRONG_PERMISSION_SCOPE";
359
359
  };
360
360
  ContainedPermissionNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"CONTAINED_PERMISSION_NOT_FOUND">, [permissionId: string]> & {
@@ -468,7 +468,7 @@ declare const KnownErrors: {
468
468
  ItemNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_NOT_FOUND">, [itemId: string]> & {
469
469
  errorCode: "ITEM_NOT_FOUND";
470
470
  };
471
- ItemCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH">, [itemId: string, customerId: string, itemCustomerType: "team" | "user" | "custom" | undefined, actualCustomerType: "team" | "user" | "custom"]> & {
471
+ ItemCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH">, [itemId: string, customerId: string, itemCustomerType: "user" | "team" | "custom" | undefined, actualCustomerType: "user" | "team" | "custom"]> & {
472
472
  errorCode: "ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH";
473
473
  };
474
474
  CustomerDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"CUSTOMER_DOES_NOT_EXIST">, [customerId: string]> & {
@@ -477,7 +477,7 @@ declare const KnownErrors: {
477
477
  OfferDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"OFFER_DOES_NOT_EXIST">, [offerId: string, accessType: "client" | "server" | "admin"]> & {
478
478
  errorCode: "OFFER_DOES_NOT_EXIST";
479
479
  };
480
- OfferCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"OFFER_CUSTOMER_TYPE_DOES_NOT_MATCH">, [offerId: string | undefined, customerId: string, offerCustomerType: "team" | "user" | "custom" | undefined, actualCustomerType: "team" | "user" | "custom"]> & {
480
+ OfferCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"OFFER_CUSTOMER_TYPE_DOES_NOT_MATCH">, [offerId: string | undefined, customerId: string, offerCustomerType: "user" | "team" | "custom" | undefined, actualCustomerType: "user" | "team" | "custom"]> & {
481
481
  errorCode: "OFFER_CUSTOMER_TYPE_DOES_NOT_MATCH";
482
482
  };
483
483
  ItemQuantityInsufficientAmount: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_QUANTITY_INSUFFICIENT_AMOUNT">, [itemId: string, customerId: string, quantity: number]> & {