@stackframe/stack-shared 2.5.3 → 2.5.5

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 (71) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/crud.d.ts +10 -3
  3. package/dist/helpers/production-mode.d.ts +6 -0
  4. package/dist/helpers/production-mode.js +43 -0
  5. package/dist/index.d.ts +4 -4
  6. package/dist/index.js +4 -4
  7. package/dist/interface/adminInterface.d.ts +28 -67
  8. package/dist/interface/adminInterface.js +63 -21
  9. package/dist/interface/clientInterface.d.ts +21 -133
  10. package/dist/interface/clientInterface.js +92 -118
  11. package/dist/interface/crud/api-keys.d.ts +134 -0
  12. package/dist/interface/crud/api-keys.js +61 -0
  13. package/dist/interface/crud/current-user.d.ts +47 -11
  14. package/dist/interface/crud/current-user.js +7 -3
  15. package/dist/interface/crud/email-templates.d.ts +53 -34
  16. package/dist/interface/crud/email-templates.js +37 -24
  17. package/dist/interface/crud/oauth.d.ts +8 -9
  18. package/dist/interface/crud/oauth.js +5 -5
  19. package/dist/interface/crud/projects.d.ts +458 -0
  20. package/dist/interface/crud/projects.js +112 -0
  21. package/dist/interface/crud/team-memberships.d.ts +22 -0
  22. package/dist/interface/crud/team-memberships.js +22 -0
  23. package/dist/interface/crud/team-permissions.d.ts +129 -0
  24. package/dist/interface/crud/team-permissions.js +83 -0
  25. package/dist/interface/crud/teams.d.ts +148 -0
  26. package/dist/interface/crud/teams.js +80 -0
  27. package/dist/interface/crud/users.d.ts +88 -33
  28. package/dist/interface/crud/users.js +22 -14
  29. package/dist/interface/crud-deprecated/api-keys.d.ts +134 -0
  30. package/dist/interface/crud-deprecated/api-keys.js +61 -0
  31. package/dist/interface/crud-deprecated/current-user.d.ts +127 -0
  32. package/dist/interface/crud-deprecated/current-user.js +49 -0
  33. package/dist/interface/crud-deprecated/email-templates.d.ts +75 -0
  34. package/dist/interface/crud-deprecated/email-templates.js +41 -0
  35. package/dist/interface/crud-deprecated/oauth.d.ts +24 -0
  36. package/dist/interface/crud-deprecated/oauth.js +12 -0
  37. package/dist/interface/crud-deprecated/projects.d.ts +440 -0
  38. package/dist/interface/crud-deprecated/projects.js +109 -0
  39. package/dist/interface/crud-deprecated/team-memberships.d.ts +22 -0
  40. package/dist/interface/crud-deprecated/team-memberships.js +22 -0
  41. package/dist/interface/crud-deprecated/team-permissions.d.ts +129 -0
  42. package/dist/interface/crud-deprecated/team-permissions.js +83 -0
  43. package/dist/interface/crud-deprecated/teams.d.ts +126 -0
  44. package/dist/interface/crud-deprecated/teams.js +78 -0
  45. package/dist/interface/crud-deprecated/users.d.ts +201 -0
  46. package/dist/interface/crud-deprecated/users.js +75 -0
  47. package/dist/interface/serverInterface.d.ts +33 -60
  48. package/dist/interface/serverInterface.js +74 -101
  49. package/dist/known-errors.d.ts +43 -26
  50. package/dist/known-errors.js +132 -85
  51. package/dist/schema-fields.d.ts +53 -4
  52. package/dist/schema-fields.js +156 -25
  53. package/dist/sessions.d.ts +1 -0
  54. package/dist/sessions.js +13 -3
  55. package/dist/utils/compile-time.d.ts +3 -1
  56. package/dist/utils/compile-time.js +3 -1
  57. package/dist/utils/errors.d.ts +8 -1
  58. package/dist/utils/errors.js +17 -4
  59. package/dist/utils/objects.d.ts +4 -1
  60. package/dist/utils/objects.js +16 -8
  61. package/dist/utils/promises.js +6 -1
  62. package/dist/utils/proxies.d.ts +1 -0
  63. package/dist/utils/proxies.js +65 -0
  64. package/dist/utils/react.d.ts +1 -1
  65. package/dist/utils/react.js +2 -2
  66. package/dist/utils/strings.js +3 -3
  67. package/dist/utils/urls.d.ts +1 -0
  68. package/dist/utils/urls.js +8 -0
  69. package/package.json +2 -2
  70. package/dist/utils/yup.d.ts +0 -3
  71. package/dist/utils/yup.js +0 -13
@@ -0,0 +1,129 @@
1
+ import { CrudTypeOf } from "../../crud";
2
+ export declare const teamPermissionsCrudClientReadSchema: import("yup").ObjectSchema<{
3
+ id: string;
4
+ user_id: string;
5
+ team_id: string;
6
+ }, import("yup").AnyObject, {
7
+ id: undefined;
8
+ user_id: undefined;
9
+ team_id: undefined;
10
+ }, "">;
11
+ export declare const teamPermissionsCrudServerCreateSchema: import("yup").ObjectSchema<{}, import("yup").AnyObject, {}, "">;
12
+ export declare const teamPermissionsCrudServerDeleteSchema: import("yup").MixedSchema<{} | undefined, import("yup").AnyObject, undefined, "">;
13
+ export declare const teamPermissionsCrud: import("../../crud").CrudSchemaFromOptions<{
14
+ clientReadSchema: import("yup").ObjectSchema<{
15
+ id: string;
16
+ user_id: string;
17
+ team_id: string;
18
+ }, import("yup").AnyObject, {
19
+ id: undefined;
20
+ user_id: undefined;
21
+ team_id: undefined;
22
+ }, "">;
23
+ serverCreateSchema: import("yup").ObjectSchema<{}, import("yup").AnyObject, {}, "">;
24
+ serverDeleteSchema: import("yup").MixedSchema<{} | undefined, import("yup").AnyObject, undefined, "">;
25
+ docs: {
26
+ clientList: {
27
+ summary: string;
28
+ description: string;
29
+ tags: string[];
30
+ };
31
+ serverList: {
32
+ summary: string;
33
+ description: string;
34
+ tags: string[];
35
+ };
36
+ serverCreate: {
37
+ summary: string;
38
+ description: string;
39
+ tags: string[];
40
+ };
41
+ serverDelete: {
42
+ summary: string;
43
+ description: string;
44
+ tags: string[];
45
+ };
46
+ };
47
+ }>;
48
+ export type TeamPermissionsCrud = CrudTypeOf<typeof teamPermissionsCrud>;
49
+ export declare const teamPermissionDefinitionsCrudAdminReadSchema: import("yup").ObjectSchema<{
50
+ id: string;
51
+ description: string | undefined;
52
+ contained_permission_ids: string[];
53
+ }, import("yup").AnyObject, {
54
+ id: undefined;
55
+ description: undefined;
56
+ contained_permission_ids: undefined;
57
+ }, "">;
58
+ export declare const teamPermissionDefinitionsCrudAdminCreateSchema: import("yup").ObjectSchema<{
59
+ id: string;
60
+ description: string | undefined;
61
+ contained_permission_ids: string[] | undefined;
62
+ }, import("yup").AnyObject, {
63
+ id: undefined;
64
+ description: undefined;
65
+ contained_permission_ids: undefined;
66
+ }, "">;
67
+ export declare const teamPermissionDefinitionsCrudAdminUpdateSchema: import("yup").ObjectSchema<{
68
+ id: string | undefined;
69
+ description: string | undefined;
70
+ contained_permission_ids: string[] | undefined;
71
+ }, import("yup").AnyObject, {
72
+ id: undefined;
73
+ description: undefined;
74
+ contained_permission_ids: undefined;
75
+ }, "">;
76
+ export declare const teamPermissionDefinitionsCrudAdminDeleteSchema: import("yup").MixedSchema<{} | undefined, import("yup").AnyObject, undefined, "">;
77
+ export declare const teamPermissionDefinitionsCrud: import("../../crud").CrudSchemaFromOptions<{
78
+ adminReadSchema: import("yup").ObjectSchema<{
79
+ id: string;
80
+ description: string | undefined;
81
+ contained_permission_ids: string[];
82
+ }, import("yup").AnyObject, {
83
+ id: undefined;
84
+ description: undefined;
85
+ contained_permission_ids: undefined;
86
+ }, "">;
87
+ adminCreateSchema: import("yup").ObjectSchema<{
88
+ id: string;
89
+ description: string | undefined;
90
+ contained_permission_ids: string[] | undefined;
91
+ }, import("yup").AnyObject, {
92
+ id: undefined;
93
+ description: undefined;
94
+ contained_permission_ids: undefined;
95
+ }, "">;
96
+ adminUpdateSchema: import("yup").ObjectSchema<{
97
+ id: string | undefined;
98
+ description: string | undefined;
99
+ contained_permission_ids: string[] | undefined;
100
+ }, import("yup").AnyObject, {
101
+ id: undefined;
102
+ description: undefined;
103
+ contained_permission_ids: undefined;
104
+ }, "">;
105
+ adminDeleteSchema: import("yup").MixedSchema<{} | undefined, import("yup").AnyObject, undefined, "">;
106
+ docs: {
107
+ adminList: {
108
+ summary: string;
109
+ description: string;
110
+ tags: string[];
111
+ };
112
+ adminCreate: {
113
+ summary: string;
114
+ description: string;
115
+ tags: string[];
116
+ };
117
+ adminUpdate: {
118
+ summary: string;
119
+ description: string;
120
+ tags: string[];
121
+ };
122
+ adminDelete: {
123
+ summary: string;
124
+ description: string;
125
+ tags: string[];
126
+ };
127
+ };
128
+ }>;
129
+ export type TeamPermissionDefinitionsCrud = CrudTypeOf<typeof teamPermissionDefinitionsCrud>;
@@ -0,0 +1,83 @@
1
+ import { createCrud } from "../../crud";
2
+ import * as schemaFields from "../../schema-fields";
3
+ import { yupMixed, yupObject } from "../../schema-fields";
4
+ // =============== Team permissions =================
5
+ export const teamPermissionsCrudClientReadSchema = yupObject({
6
+ id: schemaFields.teamPermissionIdSchema.required(),
7
+ user_id: schemaFields.userIdSchema.required(),
8
+ team_id: schemaFields.teamIdSchema.required(),
9
+ }).required();
10
+ export const teamPermissionsCrudServerCreateSchema = yupObject({}).required();
11
+ export const teamPermissionsCrudServerDeleteSchema = yupMixed();
12
+ export const teamPermissionsCrud = createCrud({
13
+ clientReadSchema: teamPermissionsCrudClientReadSchema,
14
+ serverCreateSchema: teamPermissionsCrudServerCreateSchema,
15
+ serverDeleteSchema: teamPermissionsCrudServerDeleteSchema,
16
+ docs: {
17
+ clientList: {
18
+ summary: "List team permissions of the current user",
19
+ description: "user_id=me needs to be set",
20
+ tags: ["Permissions"],
21
+ },
22
+ serverList: {
23
+ summary: "List team permissions of a user",
24
+ description: "Query and filter the permission with team_id, user_id, and permission_id",
25
+ tags: ["Permissions"],
26
+ },
27
+ serverCreate: {
28
+ summary: "Grant a team permission to a user",
29
+ description: "Grant a team permission to a user (the team permission must be created first on the Stack dashboard)",
30
+ tags: ["Permissions"],
31
+ },
32
+ serverDelete: {
33
+ summary: "Revoke a team permission from a user",
34
+ description: "Revoke a team permission from a user",
35
+ tags: ["Permissions"],
36
+ },
37
+ },
38
+ });
39
+ // =============== Team permission definitions =================
40
+ export const teamPermissionDefinitionsCrudAdminReadSchema = yupObject({
41
+ id: schemaFields.teamPermissionIdSchema.required(),
42
+ description: schemaFields.teamPermissionDescriptionSchema.optional(),
43
+ contained_permission_ids: schemaFields.containedPermissionIdsSchema.required()
44
+ }).required();
45
+ export const teamPermissionDefinitionsCrudAdminCreateSchema = yupObject({
46
+ id: schemaFields.customTeamPermissionIdSchema.required(),
47
+ description: schemaFields.teamPermissionDescriptionSchema.optional(),
48
+ contained_permission_ids: schemaFields.containedPermissionIdsSchema.optional()
49
+ }).required();
50
+ export const teamPermissionDefinitionsCrudAdminUpdateSchema = yupObject({
51
+ id: schemaFields.customTeamPermissionIdSchema.optional(),
52
+ description: schemaFields.teamPermissionDescriptionSchema.optional(),
53
+ contained_permission_ids: schemaFields.containedPermissionIdsSchema.optional()
54
+ }).required();
55
+ export const teamPermissionDefinitionsCrudAdminDeleteSchema = yupMixed();
56
+ export const teamPermissionDefinitionsCrud = createCrud({
57
+ adminReadSchema: teamPermissionDefinitionsCrudAdminReadSchema,
58
+ adminCreateSchema: teamPermissionDefinitionsCrudAdminCreateSchema,
59
+ adminUpdateSchema: teamPermissionDefinitionsCrudAdminUpdateSchema,
60
+ adminDeleteSchema: teamPermissionDefinitionsCrudAdminDeleteSchema,
61
+ docs: {
62
+ adminList: {
63
+ summary: "List team permission definitions",
64
+ description: "Query and filter the permission with team_id, user_id, and permission_id (the equivalent of listing permissions on the Stack dashboard)",
65
+ tags: ["Permissions"],
66
+ },
67
+ adminCreate: {
68
+ summary: "Create a new team permission definition",
69
+ description: "Create a new permission definition (the equivalent of creating a new permission on the Stack dashboard)",
70
+ tags: ["Permissions"],
71
+ },
72
+ adminUpdate: {
73
+ summary: "Update a team permission definition",
74
+ description: "Update a permission definition (the equivalent of updating a permission on the Stack dashboard)",
75
+ tags: ["Permissions"],
76
+ },
77
+ adminDelete: {
78
+ summary: "Delete a team permission definition",
79
+ description: "Delete a permission definition (the equivalent of deleting a permission on the Stack dashboard)",
80
+ tags: ["Permissions"],
81
+ },
82
+ },
83
+ });
@@ -0,0 +1,148 @@
1
+ import { CrudTypeOf } from "../../crud";
2
+ export declare const teamsCrudClientReadSchema: import("yup").ObjectSchema<{
3
+ id: string;
4
+ display_name: string;
5
+ profile_image_url: string | null;
6
+ }, import("yup").AnyObject, {
7
+ id: undefined;
8
+ display_name: undefined;
9
+ profile_image_url: undefined;
10
+ }, "">;
11
+ export declare const teamsCrudServerReadSchema: import("yup").ObjectSchema<{
12
+ id: string;
13
+ display_name: string;
14
+ profile_image_url: string | null;
15
+ } & {
16
+ created_at_millis: number;
17
+ }, import("yup").AnyObject, {
18
+ id: undefined;
19
+ display_name: undefined;
20
+ profile_image_url: undefined;
21
+ created_at_millis: undefined;
22
+ }, "">;
23
+ export declare const teamsCrudClientUpdateSchema: import("yup").ObjectSchema<{
24
+ display_name: string | undefined;
25
+ profile_image_url: string | null | undefined;
26
+ }, import("yup").AnyObject, {
27
+ display_name: undefined;
28
+ profile_image_url: undefined;
29
+ }, "">;
30
+ export declare const teamsCrudServerUpdateSchema: import("yup").ObjectSchema<{
31
+ display_name: string | undefined;
32
+ profile_image_url: string | null | undefined;
33
+ } & {}, import("yup").AnyObject, {
34
+ display_name: undefined;
35
+ profile_image_url: undefined;
36
+ }, "">;
37
+ export declare const teamsCrudClientCreateSchema: import("yup").ObjectSchema<{
38
+ display_name: string;
39
+ profile_image_url: string | null | undefined;
40
+ } & {
41
+ display_name: string;
42
+ }, import("yup").AnyObject, {
43
+ display_name: undefined;
44
+ profile_image_url: undefined;
45
+ }, "">;
46
+ export declare const teamsCrudServerCreateSchema: import("yup").ObjectSchema<{
47
+ display_name: string;
48
+ profile_image_url: string | null | undefined;
49
+ } & {
50
+ display_name: string;
51
+ }, import("yup").AnyObject, {
52
+ display_name: undefined;
53
+ profile_image_url: undefined;
54
+ }, "">;
55
+ export declare const teamsCrudClientDeleteSchema: import("yup").MixedSchema<{} | undefined, import("yup").AnyObject, undefined, "">;
56
+ export declare const teamsCrudServerDeleteSchema: import("yup").MixedSchema<{} | undefined, import("yup").AnyObject, undefined, "">;
57
+ export declare const teamsCrud: import("../../crud").CrudSchemaFromOptions<{
58
+ clientReadSchema: import("yup").ObjectSchema<{
59
+ id: string;
60
+ display_name: string;
61
+ profile_image_url: string | null;
62
+ }, import("yup").AnyObject, {
63
+ id: undefined;
64
+ display_name: undefined;
65
+ profile_image_url: undefined;
66
+ }, "">;
67
+ clientCreateSchema: import("yup").ObjectSchema<{
68
+ display_name: string;
69
+ profile_image_url: string | null | undefined;
70
+ } & {
71
+ display_name: string;
72
+ }, import("yup").AnyObject, {
73
+ display_name: undefined;
74
+ profile_image_url: undefined;
75
+ }, "">;
76
+ serverReadSchema: import("yup").ObjectSchema<{
77
+ id: string;
78
+ display_name: string;
79
+ profile_image_url: string | null;
80
+ } & {
81
+ created_at_millis: number;
82
+ }, import("yup").AnyObject, {
83
+ id: undefined;
84
+ display_name: undefined;
85
+ profile_image_url: undefined;
86
+ created_at_millis: undefined;
87
+ }, "">;
88
+ serverUpdateSchema: import("yup").ObjectSchema<{
89
+ display_name: string | undefined;
90
+ profile_image_url: string | null | undefined;
91
+ } & {}, import("yup").AnyObject, {
92
+ display_name: undefined;
93
+ profile_image_url: undefined;
94
+ }, "">;
95
+ serverCreateSchema: import("yup").ObjectSchema<{
96
+ display_name: string;
97
+ profile_image_url: string | null | undefined;
98
+ } & {
99
+ display_name: string;
100
+ }, import("yup").AnyObject, {
101
+ display_name: undefined;
102
+ profile_image_url: undefined;
103
+ }, "">;
104
+ serverDeleteSchema: import("yup").MixedSchema<{} | undefined, import("yup").AnyObject, undefined, "">;
105
+ docs: {
106
+ clientList: {
107
+ summary: string;
108
+ description: string;
109
+ tags: string[];
110
+ };
111
+ clientCreate: {
112
+ summary: string;
113
+ description: string;
114
+ tags: string[];
115
+ };
116
+ clientRead: {
117
+ summary: string;
118
+ description: string;
119
+ tags: string[];
120
+ };
121
+ serverCreate: {
122
+ summary: string;
123
+ description: string;
124
+ tags: string[];
125
+ };
126
+ serverList: {
127
+ summary: string;
128
+ description: string;
129
+ tags: string[];
130
+ };
131
+ serverRead: {
132
+ summary: string;
133
+ description: string;
134
+ tags: string[];
135
+ };
136
+ serverUpdate: {
137
+ summary: string;
138
+ description: string;
139
+ tags: string[];
140
+ };
141
+ serverDelete: {
142
+ summary: string;
143
+ description: string;
144
+ tags: string[];
145
+ };
146
+ };
147
+ }>;
148
+ export type TeamsCrud = CrudTypeOf<typeof teamsCrud>;
@@ -0,0 +1,80 @@
1
+ import { createCrud } from "../../crud";
2
+ import * as fieldSchema from "../../schema-fields";
3
+ import { yupMixed, yupObject } from "../../schema-fields";
4
+ // Read
5
+ export const teamsCrudClientReadSchema = yupObject({
6
+ id: fieldSchema.teamIdSchema.required(),
7
+ display_name: fieldSchema.teamDisplayNameSchema.required(),
8
+ profile_image_url: fieldSchema.profileImageUrlSchema.nullable().defined(),
9
+ }).required();
10
+ export const teamsCrudServerReadSchema = teamsCrudClientReadSchema.concat(yupObject({
11
+ created_at_millis: fieldSchema.teamCreatedAtMillisSchema.required(),
12
+ }).required());
13
+ // Update
14
+ export const teamsCrudClientUpdateSchema = yupObject({
15
+ display_name: fieldSchema.teamDisplayNameSchema.optional(),
16
+ profile_image_url: fieldSchema.profileImageUrlSchema.nullable().optional(),
17
+ }).required();
18
+ export const teamsCrudServerUpdateSchema = teamsCrudClientUpdateSchema.concat(yupObject({}).required());
19
+ // Create
20
+ export const teamsCrudClientCreateSchema = teamsCrudClientUpdateSchema.concat(yupObject({
21
+ display_name: fieldSchema.teamDisplayNameSchema.required(),
22
+ }).required());
23
+ export const teamsCrudServerCreateSchema = teamsCrudServerUpdateSchema.concat(yupObject({
24
+ display_name: fieldSchema.teamDisplayNameSchema.required(),
25
+ }).required());
26
+ // Delete
27
+ export const teamsCrudClientDeleteSchema = yupMixed();
28
+ export const teamsCrudServerDeleteSchema = teamsCrudClientDeleteSchema;
29
+ export const teamsCrud = createCrud({
30
+ clientReadSchema: teamsCrudClientReadSchema,
31
+ // clientUpdateSchema: teamsCrudClientUpdateSchema,
32
+ clientCreateSchema: teamsCrudClientCreateSchema,
33
+ // clientDeleteSchema: teamsCrudClientDeleteSchema,
34
+ serverReadSchema: teamsCrudServerReadSchema,
35
+ serverUpdateSchema: teamsCrudServerUpdateSchema,
36
+ serverCreateSchema: teamsCrudServerCreateSchema,
37
+ serverDeleteSchema: teamsCrudServerDeleteSchema,
38
+ docs: {
39
+ clientList: {
40
+ summary: "List teams",
41
+ description: "List all the teams that the current user is a member of.",
42
+ tags: ["Teams"],
43
+ },
44
+ clientCreate: {
45
+ summary: "Create a team",
46
+ description: "Create a new team and add the current user as a member.",
47
+ tags: ["Teams"],
48
+ },
49
+ clientRead: {
50
+ summary: "Get a team",
51
+ description: "Get a team that the current user is a member of.",
52
+ tags: ["Teams"],
53
+ },
54
+ serverCreate: {
55
+ summary: "Create a team",
56
+ description: "Create a new team and add the current user as a member.",
57
+ tags: ["Teams"],
58
+ },
59
+ serverList: {
60
+ summary: "List teams",
61
+ description: "List all the teams in the project.",
62
+ tags: ["Teams"],
63
+ },
64
+ serverRead: {
65
+ summary: "Get a team",
66
+ description: "Get a team by ID.",
67
+ tags: ["Teams"],
68
+ },
69
+ serverUpdate: {
70
+ summary: "Update a team",
71
+ description: "Update a team by ID.",
72
+ tags: ["Teams"],
73
+ },
74
+ serverDelete: {
75
+ summary: "Delete a team",
76
+ description: "Delete a team by ID.",
77
+ tags: ["Teams"],
78
+ },
79
+ },
80
+ });
@@ -1,42 +1,61 @@
1
1
  import { CrudTypeOf } from "../../crud";
2
- import * as yup from "yup";
3
- export declare const usersCrudServerUpdateSchema: yup.ObjectSchema<{
2
+ export declare const usersCrudServerUpdateSchema: import("yup").ObjectSchema<{
4
3
  display_name: string | null | undefined;
4
+ profile_image_url: string | undefined;
5
5
  client_metadata: {} | null | undefined;
6
6
  server_metadata: {} | null | undefined;
7
7
  primary_email: string | null | undefined;
8
8
  primary_email_verified: boolean | undefined;
9
+ primary_email_auth_enabled: boolean | undefined;
10
+ password: string | null | undefined;
9
11
  selected_team_id: string | null | undefined;
10
- }, yup.AnyObject, {
12
+ }, import("yup").AnyObject, {
11
13
  display_name: undefined;
14
+ profile_image_url: undefined;
12
15
  client_metadata: undefined;
13
16
  server_metadata: undefined;
14
17
  primary_email: undefined;
15
18
  primary_email_verified: undefined;
19
+ primary_email_auth_enabled: undefined;
20
+ password: undefined;
16
21
  selected_team_id: undefined;
17
22
  }, "">;
18
- export declare const usersCrudServerReadSchema: yup.ObjectSchema<{
23
+ export declare const usersCrudServerReadSchema: import("yup").ObjectSchema<{
19
24
  project_id: string;
20
25
  id: string;
21
26
  primary_email: string | null;
22
27
  primary_email_verified: NonNullable<boolean | undefined>;
23
28
  display_name: string | null;
24
- selected_team: {} | null;
29
+ selected_team: {
30
+ id: string;
31
+ created_at_millis: number;
32
+ display_name: string;
33
+ profile_image_url: string | null;
34
+ } | null;
25
35
  selected_team_id: string | null;
26
36
  profile_image_url: string | null;
27
37
  signed_up_at_millis: number;
28
38
  has_password: NonNullable<boolean | undefined>;
29
39
  auth_with_email: NonNullable<boolean | undefined>;
30
- oauth_providers: string[];
40
+ oauth_providers: {
41
+ email?: string | null | undefined;
42
+ id: string;
43
+ account_id: string;
44
+ }[];
31
45
  client_metadata: {} | null;
32
46
  server_metadata: {} | null;
33
- }, yup.AnyObject, {
47
+ }, import("yup").AnyObject, {
34
48
  project_id: undefined;
35
49
  id: undefined;
36
50
  primary_email: undefined;
37
51
  primary_email_verified: undefined;
38
52
  display_name: undefined;
39
- selected_team: undefined;
53
+ selected_team: {
54
+ id: undefined;
55
+ display_name: undefined;
56
+ profile_image_url: undefined;
57
+ created_at_millis: undefined;
58
+ };
40
59
  selected_team_id: undefined;
41
60
  profile_image_url: undefined;
42
61
  signed_up_at_millis: undefined;
@@ -46,50 +65,72 @@ export declare const usersCrudServerReadSchema: yup.ObjectSchema<{
46
65
  client_metadata: undefined;
47
66
  server_metadata: undefined;
48
67
  }, "">;
49
- export declare const usersCrudServerCreateSchema: yup.ObjectSchema<{
68
+ export declare const usersCrudServerCreateSchema: import("yup").ObjectSchema<{
50
69
  display_name: string | null | undefined;
70
+ profile_image_url: string | undefined;
51
71
  client_metadata: {} | null | undefined;
52
72
  server_metadata: {} | null | undefined;
53
- primary_email: string;
54
- primary_email_verified: NonNullable<boolean | undefined>;
73
+ primary_email: string | null | undefined;
74
+ primary_email_verified: boolean | undefined;
75
+ primary_email_auth_enabled: boolean | undefined;
76
+ password: string | null | undefined;
55
77
  selected_team_id: string | null | undefined;
56
78
  } & {
57
- primary_email: string;
58
- primary_email_verified: NonNullable<boolean | undefined>;
59
- auth_with_email: NonNullable<boolean | undefined>;
60
- }, yup.AnyObject, {
79
+ oauth_providers: {
80
+ id: string;
81
+ email: string | null;
82
+ account_id: string;
83
+ }[] | undefined;
84
+ }, import("yup").AnyObject, {
61
85
  display_name: undefined;
86
+ profile_image_url: undefined;
62
87
  client_metadata: undefined;
63
88
  server_metadata: undefined;
64
89
  primary_email: undefined;
65
90
  primary_email_verified: undefined;
91
+ primary_email_auth_enabled: undefined;
92
+ password: undefined;
66
93
  selected_team_id: undefined;
67
- auth_with_email: undefined;
94
+ oauth_providers: undefined;
68
95
  }, "">;
69
- export declare const usersCrudServerDeleteSchema: yup.MixedSchema<{} | undefined, yup.AnyObject, undefined, "">;
96
+ export declare const usersCrudServerDeleteSchema: import("yup").MixedSchema<{} | undefined, import("yup").AnyObject, undefined, "">;
70
97
  export declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
71
- serverReadSchema: yup.ObjectSchema<{
98
+ serverReadSchema: import("yup").ObjectSchema<{
72
99
  project_id: string;
73
100
  id: string;
74
101
  primary_email: string | null;
75
102
  primary_email_verified: NonNullable<boolean | undefined>;
76
103
  display_name: string | null;
77
- selected_team: {} | null;
104
+ selected_team: {
105
+ id: string;
106
+ created_at_millis: number;
107
+ display_name: string;
108
+ profile_image_url: string | null;
109
+ } | null;
78
110
  selected_team_id: string | null;
79
111
  profile_image_url: string | null;
80
112
  signed_up_at_millis: number;
81
113
  has_password: NonNullable<boolean | undefined>;
82
114
  auth_with_email: NonNullable<boolean | undefined>;
83
- oauth_providers: string[];
115
+ oauth_providers: {
116
+ email?: string | null | undefined;
117
+ id: string;
118
+ account_id: string;
119
+ }[];
84
120
  client_metadata: {} | null;
85
121
  server_metadata: {} | null;
86
- }, yup.AnyObject, {
122
+ }, import("yup").AnyObject, {
87
123
  project_id: undefined;
88
124
  id: undefined;
89
125
  primary_email: undefined;
90
126
  primary_email_verified: undefined;
91
127
  display_name: undefined;
92
- selected_team: undefined;
128
+ selected_team: {
129
+ id: undefined;
130
+ display_name: undefined;
131
+ profile_image_url: undefined;
132
+ created_at_millis: undefined;
133
+ };
93
134
  selected_team_id: undefined;
94
135
  profile_image_url: undefined;
95
136
  signed_up_at_millis: undefined;
@@ -99,42 +140,56 @@ export declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
99
140
  client_metadata: undefined;
100
141
  server_metadata: undefined;
101
142
  }, "">;
102
- serverUpdateSchema: yup.ObjectSchema<{
143
+ serverUpdateSchema: import("yup").ObjectSchema<{
103
144
  display_name: string | null | undefined;
145
+ profile_image_url: string | undefined;
104
146
  client_metadata: {} | null | undefined;
105
147
  server_metadata: {} | null | undefined;
106
148
  primary_email: string | null | undefined;
107
149
  primary_email_verified: boolean | undefined;
150
+ primary_email_auth_enabled: boolean | undefined;
151
+ password: string | null | undefined;
108
152
  selected_team_id: string | null | undefined;
109
- }, yup.AnyObject, {
153
+ }, import("yup").AnyObject, {
110
154
  display_name: undefined;
155
+ profile_image_url: undefined;
111
156
  client_metadata: undefined;
112
157
  server_metadata: undefined;
113
158
  primary_email: undefined;
114
159
  primary_email_verified: undefined;
160
+ primary_email_auth_enabled: undefined;
161
+ password: undefined;
115
162
  selected_team_id: undefined;
116
163
  }, "">;
117
- serverCreateSchema: yup.ObjectSchema<{
164
+ serverCreateSchema: import("yup").ObjectSchema<{
118
165
  display_name: string | null | undefined;
166
+ profile_image_url: string | undefined;
119
167
  client_metadata: {} | null | undefined;
120
168
  server_metadata: {} | null | undefined;
121
- primary_email: string;
122
- primary_email_verified: NonNullable<boolean | undefined>;
169
+ primary_email: string | null | undefined;
170
+ primary_email_verified: boolean | undefined;
171
+ primary_email_auth_enabled: boolean | undefined;
172
+ password: string | null | undefined;
123
173
  selected_team_id: string | null | undefined;
124
174
  } & {
125
- primary_email: string;
126
- primary_email_verified: NonNullable<boolean | undefined>;
127
- auth_with_email: NonNullable<boolean | undefined>;
128
- }, yup.AnyObject, {
175
+ oauth_providers: {
176
+ id: string;
177
+ email: string | null;
178
+ account_id: string;
179
+ }[] | undefined;
180
+ }, import("yup").AnyObject, {
129
181
  display_name: undefined;
182
+ profile_image_url: undefined;
130
183
  client_metadata: undefined;
131
184
  server_metadata: undefined;
132
185
  primary_email: undefined;
133
186
  primary_email_verified: undefined;
187
+ primary_email_auth_enabled: undefined;
188
+ password: undefined;
134
189
  selected_team_id: undefined;
135
- auth_with_email: undefined;
190
+ oauth_providers: undefined;
136
191
  }, "">;
137
- serverDeleteSchema: yup.MixedSchema<{} | undefined, yup.AnyObject, undefined, "">;
192
+ serverDeleteSchema: import("yup").MixedSchema<{} | undefined, import("yup").AnyObject, undefined, "">;
138
193
  docs: {
139
194
  serverCreate: {
140
195
  tags: string[];