@stackframe/stack-shared 2.5.20 → 2.5.22
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.
- package/CHANGELOG.md +14 -0
- package/dist/interface/crud/current-user.d.ts +17 -0
- package/dist/interface/crud/current-user.js +1 -0
- package/dist/interface/crud/projects.d.ts +12 -12
- package/dist/interface/crud/team-member-profiles.d.ts +16 -0
- package/dist/interface/crud/teams.d.ts +68 -2
- package/dist/interface/crud/teams.js +8 -1
- package/dist/interface/crud/users.d.ts +40 -0
- package/dist/interface/crud/users.js +2 -0
- package/dist/interface/crud-deprecated/projects.d.ts +9 -9
- package/dist/interface/webhooks.d.ts +28 -0
- package/dist/schema-fields.d.ts +3 -1
- package/dist/schema-fields.js +3 -0
- package/dist/utils/oauth.d.ts +2 -2
- package/dist/utils/oauth.js +3 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @stackframe/stack-shared
|
|
2
2
|
|
|
3
|
+
## 2.5.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Team metadata
|
|
8
|
+
- @stackframe/stack-sc@2.5.22
|
|
9
|
+
|
|
10
|
+
## 2.5.21
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Discord OAuth provider
|
|
15
|
+
- @stackframe/stack-sc@2.5.21
|
|
16
|
+
|
|
3
17
|
## 2.5.20
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -11,6 +11,7 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
11
11
|
primary_email: string | null;
|
|
12
12
|
profile_image_url: string | null;
|
|
13
13
|
client_metadata: {} | null;
|
|
14
|
+
client_read_only_metadata: {} | null;
|
|
14
15
|
primary_email_verified: NonNullable<boolean | undefined>;
|
|
15
16
|
selected_team_id: string | null;
|
|
16
17
|
signed_up_at_millis: number;
|
|
@@ -42,6 +43,8 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
42
43
|
}[];
|
|
43
44
|
} & {
|
|
44
45
|
selected_team: {
|
|
46
|
+
client_metadata?: {} | null | undefined;
|
|
47
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
45
48
|
id: string;
|
|
46
49
|
display_name: string;
|
|
47
50
|
profile_image_url: string | null;
|
|
@@ -55,6 +58,8 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
55
58
|
id: undefined;
|
|
56
59
|
display_name: undefined;
|
|
57
60
|
profile_image_url: undefined;
|
|
61
|
+
client_metadata: undefined;
|
|
62
|
+
client_read_only_metadata: undefined;
|
|
58
63
|
};
|
|
59
64
|
selected_team_id: undefined;
|
|
60
65
|
profile_image_url: undefined;
|
|
@@ -66,6 +71,7 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
66
71
|
auth_methods: undefined;
|
|
67
72
|
connected_accounts: undefined;
|
|
68
73
|
client_metadata: undefined;
|
|
74
|
+
client_read_only_metadata: undefined;
|
|
69
75
|
server_metadata: undefined;
|
|
70
76
|
}, "">;
|
|
71
77
|
serverReadSchema: import("yup").ObjectSchema<{
|
|
@@ -74,6 +80,9 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
74
80
|
primary_email_verified: NonNullable<boolean | undefined>;
|
|
75
81
|
display_name: string | null;
|
|
76
82
|
selected_team: {
|
|
83
|
+
client_metadata?: {} | null | undefined;
|
|
84
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
85
|
+
server_metadata?: {} | null | undefined;
|
|
77
86
|
id: string;
|
|
78
87
|
created_at_millis: number;
|
|
79
88
|
display_name: string;
|
|
@@ -114,6 +123,7 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
114
123
|
};
|
|
115
124
|
}[];
|
|
116
125
|
client_metadata: {} | null;
|
|
126
|
+
client_read_only_metadata: {} | null;
|
|
117
127
|
server_metadata: {} | null;
|
|
118
128
|
} | null, import("yup").AnyObject, {
|
|
119
129
|
id: undefined;
|
|
@@ -124,7 +134,10 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
124
134
|
id: undefined;
|
|
125
135
|
display_name: undefined;
|
|
126
136
|
profile_image_url: undefined;
|
|
137
|
+
client_metadata: undefined;
|
|
138
|
+
client_read_only_metadata: undefined;
|
|
127
139
|
created_at_millis: undefined;
|
|
140
|
+
server_metadata: undefined;
|
|
128
141
|
};
|
|
129
142
|
selected_team_id: undefined;
|
|
130
143
|
profile_image_url: undefined;
|
|
@@ -136,6 +149,7 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
136
149
|
auth_methods: undefined;
|
|
137
150
|
connected_accounts: undefined;
|
|
138
151
|
client_metadata: undefined;
|
|
152
|
+
client_read_only_metadata: undefined;
|
|
139
153
|
server_metadata: undefined;
|
|
140
154
|
}, "">;
|
|
141
155
|
clientUpdateSchema: import("yup").ObjectSchema<{
|
|
@@ -147,6 +161,7 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
147
161
|
display_name: undefined;
|
|
148
162
|
profile_image_url: undefined;
|
|
149
163
|
client_metadata: undefined;
|
|
164
|
+
client_read_only_metadata: undefined;
|
|
150
165
|
server_metadata: undefined;
|
|
151
166
|
primary_email: undefined;
|
|
152
167
|
primary_email_verified: undefined;
|
|
@@ -159,6 +174,7 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
159
174
|
display_name: string | null | undefined;
|
|
160
175
|
profile_image_url: string | undefined;
|
|
161
176
|
client_metadata: {} | null | undefined;
|
|
177
|
+
client_read_only_metadata: {} | null | undefined;
|
|
162
178
|
server_metadata: {} | null | undefined;
|
|
163
179
|
primary_email: string | null | undefined;
|
|
164
180
|
primary_email_verified: boolean | undefined;
|
|
@@ -170,6 +186,7 @@ export declare const currentUserCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
170
186
|
display_name: undefined;
|
|
171
187
|
profile_image_url: undefined;
|
|
172
188
|
client_metadata: undefined;
|
|
189
|
+
client_read_only_metadata: undefined;
|
|
173
190
|
server_metadata: undefined;
|
|
174
191
|
primary_email: undefined;
|
|
175
192
|
primary_email_verified: undefined;
|
|
@@ -18,11 +18,11 @@ export declare const projectsCrudAdminReadSchema: import("yup").ObjectSchema<{
|
|
|
18
18
|
client_secret?: string | undefined;
|
|
19
19
|
facebook_config_id?: string | undefined;
|
|
20
20
|
type: NonNullable<"shared" | "standard" | undefined>;
|
|
21
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
21
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
22
22
|
enabled: NonNullable<boolean | undefined>;
|
|
23
23
|
}[];
|
|
24
24
|
enabled_oauth_providers: {
|
|
25
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
25
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
26
26
|
}[];
|
|
27
27
|
domains: {
|
|
28
28
|
domain: string;
|
|
@@ -85,7 +85,7 @@ export declare const projectsCrudClientReadSchema: import("yup").ObjectSchema<{
|
|
|
85
85
|
magic_link_enabled: NonNullable<boolean | undefined>;
|
|
86
86
|
client_team_creation_enabled: NonNullable<boolean | undefined>;
|
|
87
87
|
enabled_oauth_providers: {
|
|
88
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
88
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
89
89
|
}[];
|
|
90
90
|
};
|
|
91
91
|
}, import("yup").AnyObject, {
|
|
@@ -114,7 +114,7 @@ export declare const projectsCrudAdminUpdateSchema: import("yup").ObjectSchema<{
|
|
|
114
114
|
client_secret?: string | undefined;
|
|
115
115
|
facebook_config_id?: string | undefined;
|
|
116
116
|
type: NonNullable<"shared" | "standard" | undefined>;
|
|
117
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
117
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
118
118
|
enabled: NonNullable<boolean | undefined>;
|
|
119
119
|
}[] | undefined;
|
|
120
120
|
domains?: {
|
|
@@ -159,7 +159,7 @@ export declare const projectsCrudAdminCreateSchema: import("yup").ObjectSchema<{
|
|
|
159
159
|
client_secret?: string | undefined;
|
|
160
160
|
facebook_config_id?: string | undefined;
|
|
161
161
|
type: NonNullable<"shared" | "standard" | undefined>;
|
|
162
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
162
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
163
163
|
enabled: NonNullable<boolean | undefined>;
|
|
164
164
|
}[] | undefined;
|
|
165
165
|
domains?: {
|
|
@@ -202,7 +202,7 @@ export declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
202
202
|
magic_link_enabled: NonNullable<boolean | undefined>;
|
|
203
203
|
client_team_creation_enabled: NonNullable<boolean | undefined>;
|
|
204
204
|
enabled_oauth_providers: {
|
|
205
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
205
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
206
206
|
}[];
|
|
207
207
|
};
|
|
208
208
|
}, import("yup").AnyObject, {
|
|
@@ -235,11 +235,11 @@ export declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
235
235
|
client_secret?: string | undefined;
|
|
236
236
|
facebook_config_id?: string | undefined;
|
|
237
237
|
type: NonNullable<"shared" | "standard" | undefined>;
|
|
238
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
238
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
239
239
|
enabled: NonNullable<boolean | undefined>;
|
|
240
240
|
}[];
|
|
241
241
|
enabled_oauth_providers: {
|
|
242
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
242
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
243
243
|
}[];
|
|
244
244
|
domains: {
|
|
245
245
|
domain: string;
|
|
@@ -308,7 +308,7 @@ export declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
308
308
|
client_secret?: string | undefined;
|
|
309
309
|
facebook_config_id?: string | undefined;
|
|
310
310
|
type: NonNullable<"shared" | "standard" | undefined>;
|
|
311
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
311
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
312
312
|
enabled: NonNullable<boolean | undefined>;
|
|
313
313
|
}[] | undefined;
|
|
314
314
|
domains?: {
|
|
@@ -383,11 +383,11 @@ export declare const internalProjectsCrud: import("../../crud").CrudSchemaFromOp
|
|
|
383
383
|
client_secret?: string | undefined;
|
|
384
384
|
facebook_config_id?: string | undefined;
|
|
385
385
|
type: NonNullable<"shared" | "standard" | undefined>;
|
|
386
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
386
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
387
387
|
enabled: NonNullable<boolean | undefined>;
|
|
388
388
|
}[];
|
|
389
389
|
enabled_oauth_providers: {
|
|
390
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
390
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
391
391
|
}[];
|
|
392
392
|
domains: {
|
|
393
393
|
domain: string;
|
|
@@ -456,7 +456,7 @@ export declare const internalProjectsCrud: import("../../crud").CrudSchemaFromOp
|
|
|
456
456
|
client_secret?: string | undefined;
|
|
457
457
|
facebook_config_id?: string | undefined;
|
|
458
458
|
type: NonNullable<"shared" | "standard" | undefined>;
|
|
459
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
459
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
460
460
|
enabled: NonNullable<boolean | undefined>;
|
|
461
461
|
}[] | undefined;
|
|
462
462
|
domains?: {
|
|
@@ -27,10 +27,14 @@ export declare const teamMemberProfilesCrudServerReadSchema: import("yup").Objec
|
|
|
27
27
|
primary_email: string | null;
|
|
28
28
|
profile_image_url: string | null;
|
|
29
29
|
client_metadata: {} | null;
|
|
30
|
+
client_read_only_metadata: {} | null;
|
|
30
31
|
server_metadata: {} | null;
|
|
31
32
|
primary_email_verified: NonNullable<boolean | undefined>;
|
|
32
33
|
selected_team_id: string | null;
|
|
33
34
|
selected_team: {
|
|
35
|
+
client_metadata?: {} | null | undefined;
|
|
36
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
37
|
+
server_metadata?: {} | null | undefined;
|
|
34
38
|
id: string;
|
|
35
39
|
created_at_millis: number;
|
|
36
40
|
display_name: string;
|
|
@@ -78,7 +82,10 @@ export declare const teamMemberProfilesCrudServerReadSchema: import("yup").Objec
|
|
|
78
82
|
id: undefined;
|
|
79
83
|
display_name: undefined;
|
|
80
84
|
profile_image_url: undefined;
|
|
85
|
+
client_metadata: undefined;
|
|
86
|
+
client_read_only_metadata: undefined;
|
|
81
87
|
created_at_millis: undefined;
|
|
88
|
+
server_metadata: undefined;
|
|
82
89
|
};
|
|
83
90
|
selected_team_id: undefined;
|
|
84
91
|
profile_image_url: undefined;
|
|
@@ -90,6 +97,7 @@ export declare const teamMemberProfilesCrudServerReadSchema: import("yup").Objec
|
|
|
90
97
|
auth_methods: undefined;
|
|
91
98
|
connected_accounts: undefined;
|
|
92
99
|
client_metadata: undefined;
|
|
100
|
+
client_read_only_metadata: undefined;
|
|
93
101
|
server_metadata: undefined;
|
|
94
102
|
};
|
|
95
103
|
}, "">;
|
|
@@ -129,10 +137,14 @@ export declare const teamMemberProfilesCrud: import("../../crud").CrudSchemaFrom
|
|
|
129
137
|
primary_email: string | null;
|
|
130
138
|
profile_image_url: string | null;
|
|
131
139
|
client_metadata: {} | null;
|
|
140
|
+
client_read_only_metadata: {} | null;
|
|
132
141
|
server_metadata: {} | null;
|
|
133
142
|
primary_email_verified: NonNullable<boolean | undefined>;
|
|
134
143
|
selected_team_id: string | null;
|
|
135
144
|
selected_team: {
|
|
145
|
+
client_metadata?: {} | null | undefined;
|
|
146
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
147
|
+
server_metadata?: {} | null | undefined;
|
|
136
148
|
id: string;
|
|
137
149
|
created_at_millis: number;
|
|
138
150
|
display_name: string;
|
|
@@ -180,7 +192,10 @@ export declare const teamMemberProfilesCrud: import("../../crud").CrudSchemaFrom
|
|
|
180
192
|
id: undefined;
|
|
181
193
|
display_name: undefined;
|
|
182
194
|
profile_image_url: undefined;
|
|
195
|
+
client_metadata: undefined;
|
|
196
|
+
client_read_only_metadata: undefined;
|
|
183
197
|
created_at_millis: undefined;
|
|
198
|
+
server_metadata: undefined;
|
|
184
199
|
};
|
|
185
200
|
selected_team_id: undefined;
|
|
186
201
|
profile_image_url: undefined;
|
|
@@ -192,6 +207,7 @@ export declare const teamMemberProfilesCrud: import("../../crud").CrudSchemaFrom
|
|
|
192
207
|
auth_methods: undefined;
|
|
193
208
|
connected_accounts: undefined;
|
|
194
209
|
client_metadata: undefined;
|
|
210
|
+
client_read_only_metadata: undefined;
|
|
195
211
|
server_metadata: undefined;
|
|
196
212
|
};
|
|
197
213
|
}, "">;
|
|
@@ -3,54 +3,81 @@ export declare const teamsCrudClientReadSchema: import("yup").ObjectSchema<{
|
|
|
3
3
|
id: string;
|
|
4
4
|
display_name: string;
|
|
5
5
|
profile_image_url: string | null;
|
|
6
|
+
client_metadata: {} | null | undefined;
|
|
7
|
+
client_read_only_metadata: {} | null | undefined;
|
|
6
8
|
}, import("yup").AnyObject, {
|
|
7
9
|
id: undefined;
|
|
8
10
|
display_name: undefined;
|
|
9
11
|
profile_image_url: undefined;
|
|
12
|
+
client_metadata: undefined;
|
|
13
|
+
client_read_only_metadata: undefined;
|
|
10
14
|
}, "">;
|
|
11
15
|
export declare const teamsCrudServerReadSchema: import("yup").ObjectSchema<{
|
|
12
16
|
id: string;
|
|
13
17
|
display_name: string;
|
|
14
18
|
profile_image_url: string | null;
|
|
19
|
+
client_metadata: {} | null | undefined;
|
|
20
|
+
client_read_only_metadata: {} | null | undefined;
|
|
15
21
|
} & {
|
|
16
22
|
created_at_millis: number;
|
|
23
|
+
server_metadata: {} | null | undefined;
|
|
17
24
|
}, import("yup").AnyObject, {
|
|
18
25
|
id: undefined;
|
|
19
26
|
display_name: undefined;
|
|
20
27
|
profile_image_url: undefined;
|
|
28
|
+
client_metadata: undefined;
|
|
29
|
+
client_read_only_metadata: undefined;
|
|
21
30
|
created_at_millis: undefined;
|
|
31
|
+
server_metadata: undefined;
|
|
22
32
|
}, "">;
|
|
23
33
|
export declare const teamsCrudClientUpdateSchema: import("yup").ObjectSchema<{
|
|
24
34
|
display_name: string | undefined;
|
|
25
35
|
profile_image_url: string | null | undefined;
|
|
36
|
+
client_metadata: {} | null | undefined;
|
|
26
37
|
}, import("yup").AnyObject, {
|
|
27
38
|
display_name: undefined;
|
|
28
39
|
profile_image_url: undefined;
|
|
40
|
+
client_metadata: undefined;
|
|
29
41
|
}, "">;
|
|
30
42
|
export declare const teamsCrudServerUpdateSchema: import("yup").ObjectSchema<{
|
|
31
43
|
display_name: string | undefined;
|
|
32
44
|
profile_image_url: string | null | undefined;
|
|
33
|
-
|
|
45
|
+
client_metadata: {} | null | undefined;
|
|
46
|
+
} & {
|
|
47
|
+
client_read_only_metadata: {} | null | undefined;
|
|
48
|
+
server_metadata: {} | null | undefined;
|
|
49
|
+
}, import("yup").AnyObject, {
|
|
34
50
|
display_name: undefined;
|
|
35
51
|
profile_image_url: undefined;
|
|
52
|
+
client_metadata: undefined;
|
|
53
|
+
client_read_only_metadata: undefined;
|
|
54
|
+
server_metadata: undefined;
|
|
36
55
|
}, "">;
|
|
37
56
|
export declare const teamsCrudClientCreateSchema: import("yup").ObjectSchema<{
|
|
38
57
|
display_name: string;
|
|
39
58
|
profile_image_url: string | null | undefined;
|
|
59
|
+
client_metadata: {} | null | undefined;
|
|
40
60
|
} & {
|
|
41
61
|
display_name: string;
|
|
42
62
|
}, import("yup").AnyObject, {
|
|
43
63
|
display_name: undefined;
|
|
44
64
|
profile_image_url: undefined;
|
|
65
|
+
client_metadata: undefined;
|
|
45
66
|
}, "">;
|
|
46
67
|
export declare const teamsCrudServerCreateSchema: import("yup").ObjectSchema<{
|
|
47
68
|
display_name: string;
|
|
48
69
|
profile_image_url: string | null | undefined;
|
|
70
|
+
client_metadata: {} | null | undefined;
|
|
71
|
+
client_read_only_metadata: {} | null | undefined;
|
|
72
|
+
server_metadata: {} | null | undefined;
|
|
49
73
|
} & {
|
|
50
74
|
display_name: string;
|
|
51
75
|
}, import("yup").AnyObject, {
|
|
52
76
|
display_name: undefined;
|
|
53
77
|
profile_image_url: undefined;
|
|
78
|
+
client_metadata: undefined;
|
|
79
|
+
client_read_only_metadata: undefined;
|
|
80
|
+
server_metadata: undefined;
|
|
54
81
|
}, "">;
|
|
55
82
|
export declare const teamsCrudClientDeleteSchema: import("yup").MixedSchema<{} | undefined, import("yup").AnyObject, undefined, "">;
|
|
56
83
|
export declare const teamsCrudServerDeleteSchema: import("yup").MixedSchema<{} | undefined, import("yup").AnyObject, undefined, "">;
|
|
@@ -59,55 +86,82 @@ export declare const teamsCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
59
86
|
id: string;
|
|
60
87
|
display_name: string;
|
|
61
88
|
profile_image_url: string | null;
|
|
89
|
+
client_metadata: {} | null | undefined;
|
|
90
|
+
client_read_only_metadata: {} | null | undefined;
|
|
62
91
|
}, import("yup").AnyObject, {
|
|
63
92
|
id: undefined;
|
|
64
93
|
display_name: undefined;
|
|
65
94
|
profile_image_url: undefined;
|
|
95
|
+
client_metadata: undefined;
|
|
96
|
+
client_read_only_metadata: undefined;
|
|
66
97
|
}, "">;
|
|
67
98
|
clientUpdateSchema: import("yup").ObjectSchema<{
|
|
68
99
|
display_name: string | undefined;
|
|
69
100
|
profile_image_url: string | null | undefined;
|
|
101
|
+
client_metadata: {} | null | undefined;
|
|
70
102
|
}, import("yup").AnyObject, {
|
|
71
103
|
display_name: undefined;
|
|
72
104
|
profile_image_url: undefined;
|
|
105
|
+
client_metadata: undefined;
|
|
73
106
|
}, "">;
|
|
74
107
|
clientCreateSchema: import("yup").ObjectSchema<{
|
|
75
108
|
display_name: string;
|
|
76
109
|
profile_image_url: string | null | undefined;
|
|
110
|
+
client_metadata: {} | null | undefined;
|
|
77
111
|
} & {
|
|
78
112
|
display_name: string;
|
|
79
113
|
}, import("yup").AnyObject, {
|
|
80
114
|
display_name: undefined;
|
|
81
115
|
profile_image_url: undefined;
|
|
116
|
+
client_metadata: undefined;
|
|
82
117
|
}, "">;
|
|
83
118
|
clientDeleteSchema: import("yup").MixedSchema<{} | undefined, import("yup").AnyObject, undefined, "">;
|
|
84
119
|
serverReadSchema: import("yup").ObjectSchema<{
|
|
85
120
|
id: string;
|
|
86
121
|
display_name: string;
|
|
87
122
|
profile_image_url: string | null;
|
|
123
|
+
client_metadata: {} | null | undefined;
|
|
124
|
+
client_read_only_metadata: {} | null | undefined;
|
|
88
125
|
} & {
|
|
89
126
|
created_at_millis: number;
|
|
127
|
+
server_metadata: {} | null | undefined;
|
|
90
128
|
}, import("yup").AnyObject, {
|
|
91
129
|
id: undefined;
|
|
92
130
|
display_name: undefined;
|
|
93
131
|
profile_image_url: undefined;
|
|
132
|
+
client_metadata: undefined;
|
|
133
|
+
client_read_only_metadata: undefined;
|
|
94
134
|
created_at_millis: undefined;
|
|
135
|
+
server_metadata: undefined;
|
|
95
136
|
}, "">;
|
|
96
137
|
serverUpdateSchema: import("yup").ObjectSchema<{
|
|
97
138
|
display_name: string | undefined;
|
|
98
139
|
profile_image_url: string | null | undefined;
|
|
99
|
-
|
|
140
|
+
client_metadata: {} | null | undefined;
|
|
141
|
+
} & {
|
|
142
|
+
client_read_only_metadata: {} | null | undefined;
|
|
143
|
+
server_metadata: {} | null | undefined;
|
|
144
|
+
}, import("yup").AnyObject, {
|
|
100
145
|
display_name: undefined;
|
|
101
146
|
profile_image_url: undefined;
|
|
147
|
+
client_metadata: undefined;
|
|
148
|
+
client_read_only_metadata: undefined;
|
|
149
|
+
server_metadata: undefined;
|
|
102
150
|
}, "">;
|
|
103
151
|
serverCreateSchema: import("yup").ObjectSchema<{
|
|
104
152
|
display_name: string;
|
|
105
153
|
profile_image_url: string | null | undefined;
|
|
154
|
+
client_metadata: {} | null | undefined;
|
|
155
|
+
client_read_only_metadata: {} | null | undefined;
|
|
156
|
+
server_metadata: {} | null | undefined;
|
|
106
157
|
} & {
|
|
107
158
|
display_name: string;
|
|
108
159
|
}, import("yup").AnyObject, {
|
|
109
160
|
display_name: undefined;
|
|
110
161
|
profile_image_url: undefined;
|
|
162
|
+
client_metadata: undefined;
|
|
163
|
+
client_read_only_metadata: undefined;
|
|
164
|
+
server_metadata: undefined;
|
|
111
165
|
}, "">;
|
|
112
166
|
serverDeleteSchema: import("yup").MixedSchema<{} | undefined, import("yup").AnyObject, undefined, "">;
|
|
113
167
|
docs: {
|
|
@@ -170,13 +224,19 @@ export declare const teamCreatedWebhookEvent: {
|
|
|
170
224
|
id: string;
|
|
171
225
|
display_name: string;
|
|
172
226
|
profile_image_url: string | null;
|
|
227
|
+
client_metadata: {} | null | undefined;
|
|
228
|
+
client_read_only_metadata: {} | null | undefined;
|
|
173
229
|
} & {
|
|
174
230
|
created_at_millis: number;
|
|
231
|
+
server_metadata: {} | null | undefined;
|
|
175
232
|
}, import("yup").AnyObject, {
|
|
176
233
|
id: undefined;
|
|
177
234
|
display_name: undefined;
|
|
178
235
|
profile_image_url: undefined;
|
|
236
|
+
client_metadata: undefined;
|
|
237
|
+
client_read_only_metadata: undefined;
|
|
179
238
|
created_at_millis: undefined;
|
|
239
|
+
server_metadata: undefined;
|
|
180
240
|
}, "">;
|
|
181
241
|
metadata: {
|
|
182
242
|
summary: string;
|
|
@@ -190,13 +250,19 @@ export declare const teamUpdatedWebhookEvent: {
|
|
|
190
250
|
id: string;
|
|
191
251
|
display_name: string;
|
|
192
252
|
profile_image_url: string | null;
|
|
253
|
+
client_metadata: {} | null | undefined;
|
|
254
|
+
client_read_only_metadata: {} | null | undefined;
|
|
193
255
|
} & {
|
|
194
256
|
created_at_millis: number;
|
|
257
|
+
server_metadata: {} | null | undefined;
|
|
195
258
|
}, import("yup").AnyObject, {
|
|
196
259
|
id: undefined;
|
|
197
260
|
display_name: undefined;
|
|
198
261
|
profile_image_url: undefined;
|
|
262
|
+
client_metadata: undefined;
|
|
263
|
+
client_read_only_metadata: undefined;
|
|
199
264
|
created_at_millis: undefined;
|
|
265
|
+
server_metadata: undefined;
|
|
200
266
|
}, "">;
|
|
201
267
|
metadata: {
|
|
202
268
|
summary: string;
|
|
@@ -6,16 +6,23 @@ export const teamsCrudClientReadSchema = yupObject({
|
|
|
6
6
|
id: fieldSchema.teamIdSchema.required(),
|
|
7
7
|
display_name: fieldSchema.teamDisplayNameSchema.required(),
|
|
8
8
|
profile_image_url: fieldSchema.teamProfileImageUrlSchema.nullable().defined(),
|
|
9
|
+
client_metadata: fieldSchema.teamClientMetadataSchema.optional(),
|
|
10
|
+
client_read_only_metadata: fieldSchema.teamClientReadOnlyMetadataSchema.optional(),
|
|
9
11
|
}).required();
|
|
10
12
|
export const teamsCrudServerReadSchema = teamsCrudClientReadSchema.concat(yupObject({
|
|
11
13
|
created_at_millis: fieldSchema.teamCreatedAtMillisSchema.required(),
|
|
14
|
+
server_metadata: fieldSchema.teamServerMetadataSchema.optional(),
|
|
12
15
|
}).required());
|
|
13
16
|
// Update
|
|
14
17
|
export const teamsCrudClientUpdateSchema = yupObject({
|
|
15
18
|
display_name: fieldSchema.teamDisplayNameSchema.optional(),
|
|
16
19
|
profile_image_url: fieldSchema.teamProfileImageUrlSchema.nullable().optional(),
|
|
20
|
+
client_metadata: fieldSchema.teamClientMetadataSchema.optional(),
|
|
17
21
|
}).required();
|
|
18
|
-
export const teamsCrudServerUpdateSchema = teamsCrudClientUpdateSchema.concat(yupObject({
|
|
22
|
+
export const teamsCrudServerUpdateSchema = teamsCrudClientUpdateSchema.concat(yupObject({
|
|
23
|
+
client_read_only_metadata: fieldSchema.teamClientReadOnlyMetadataSchema.optional(),
|
|
24
|
+
server_metadata: fieldSchema.teamServerMetadataSchema.optional(),
|
|
25
|
+
}).required());
|
|
19
26
|
// Create
|
|
20
27
|
export const teamsCrudClientCreateSchema = teamsCrudClientUpdateSchema.concat(yupObject({
|
|
21
28
|
display_name: fieldSchema.teamDisplayNameSchema.required(),
|
|
@@ -3,6 +3,7 @@ export declare const usersCrudServerUpdateSchema: import("yup").ObjectSchema<{
|
|
|
3
3
|
display_name: string | null | undefined;
|
|
4
4
|
profile_image_url: string | undefined;
|
|
5
5
|
client_metadata: {} | null | undefined;
|
|
6
|
+
client_read_only_metadata: {} | null | undefined;
|
|
6
7
|
server_metadata: {} | null | undefined;
|
|
7
8
|
primary_email: string | null | undefined;
|
|
8
9
|
primary_email_verified: boolean | undefined;
|
|
@@ -14,6 +15,7 @@ export declare const usersCrudServerUpdateSchema: import("yup").ObjectSchema<{
|
|
|
14
15
|
display_name: undefined;
|
|
15
16
|
profile_image_url: undefined;
|
|
16
17
|
client_metadata: undefined;
|
|
18
|
+
client_read_only_metadata: undefined;
|
|
17
19
|
server_metadata: undefined;
|
|
18
20
|
primary_email: undefined;
|
|
19
21
|
primary_email_verified: undefined;
|
|
@@ -28,6 +30,9 @@ export declare const usersCrudServerReadSchema: import("yup").ObjectSchema<{
|
|
|
28
30
|
primary_email_verified: NonNullable<boolean | undefined>;
|
|
29
31
|
display_name: string | null;
|
|
30
32
|
selected_team: {
|
|
33
|
+
client_metadata?: {} | null | undefined;
|
|
34
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
35
|
+
server_metadata?: {} | null | undefined;
|
|
31
36
|
id: string;
|
|
32
37
|
created_at_millis: number;
|
|
33
38
|
display_name: string;
|
|
@@ -68,6 +73,7 @@ export declare const usersCrudServerReadSchema: import("yup").ObjectSchema<{
|
|
|
68
73
|
};
|
|
69
74
|
}[];
|
|
70
75
|
client_metadata: {} | null;
|
|
76
|
+
client_read_only_metadata: {} | null;
|
|
71
77
|
server_metadata: {} | null;
|
|
72
78
|
}, import("yup").AnyObject, {
|
|
73
79
|
id: undefined;
|
|
@@ -78,7 +84,10 @@ export declare const usersCrudServerReadSchema: import("yup").ObjectSchema<{
|
|
|
78
84
|
id: undefined;
|
|
79
85
|
display_name: undefined;
|
|
80
86
|
profile_image_url: undefined;
|
|
87
|
+
client_metadata: undefined;
|
|
88
|
+
client_read_only_metadata: undefined;
|
|
81
89
|
created_at_millis: undefined;
|
|
90
|
+
server_metadata: undefined;
|
|
82
91
|
};
|
|
83
92
|
selected_team_id: undefined;
|
|
84
93
|
profile_image_url: undefined;
|
|
@@ -90,12 +99,14 @@ export declare const usersCrudServerReadSchema: import("yup").ObjectSchema<{
|
|
|
90
99
|
auth_methods: undefined;
|
|
91
100
|
connected_accounts: undefined;
|
|
92
101
|
client_metadata: undefined;
|
|
102
|
+
client_read_only_metadata: undefined;
|
|
93
103
|
server_metadata: undefined;
|
|
94
104
|
}, "">;
|
|
95
105
|
export declare const usersCrudServerCreateSchema: import("yup").ObjectSchema<{
|
|
96
106
|
display_name: string | null | undefined;
|
|
97
107
|
profile_image_url: string | undefined;
|
|
98
108
|
client_metadata: {} | null | undefined;
|
|
109
|
+
client_read_only_metadata: {} | null | undefined;
|
|
99
110
|
server_metadata: {} | null | undefined;
|
|
100
111
|
primary_email: string | null | undefined;
|
|
101
112
|
primary_email_verified: boolean | undefined;
|
|
@@ -113,6 +124,7 @@ export declare const usersCrudServerCreateSchema: import("yup").ObjectSchema<{
|
|
|
113
124
|
display_name: undefined;
|
|
114
125
|
profile_image_url: undefined;
|
|
115
126
|
client_metadata: undefined;
|
|
127
|
+
client_read_only_metadata: undefined;
|
|
116
128
|
server_metadata: undefined;
|
|
117
129
|
primary_email: undefined;
|
|
118
130
|
primary_email_verified: undefined;
|
|
@@ -130,6 +142,9 @@ export declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
130
142
|
primary_email_verified: NonNullable<boolean | undefined>;
|
|
131
143
|
display_name: string | null;
|
|
132
144
|
selected_team: {
|
|
145
|
+
client_metadata?: {} | null | undefined;
|
|
146
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
147
|
+
server_metadata?: {} | null | undefined;
|
|
133
148
|
id: string;
|
|
134
149
|
created_at_millis: number;
|
|
135
150
|
display_name: string;
|
|
@@ -170,6 +185,7 @@ export declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
170
185
|
};
|
|
171
186
|
}[];
|
|
172
187
|
client_metadata: {} | null;
|
|
188
|
+
client_read_only_metadata: {} | null;
|
|
173
189
|
server_metadata: {} | null;
|
|
174
190
|
}, import("yup").AnyObject, {
|
|
175
191
|
id: undefined;
|
|
@@ -180,7 +196,10 @@ export declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
180
196
|
id: undefined;
|
|
181
197
|
display_name: undefined;
|
|
182
198
|
profile_image_url: undefined;
|
|
199
|
+
client_metadata: undefined;
|
|
200
|
+
client_read_only_metadata: undefined;
|
|
183
201
|
created_at_millis: undefined;
|
|
202
|
+
server_metadata: undefined;
|
|
184
203
|
};
|
|
185
204
|
selected_team_id: undefined;
|
|
186
205
|
profile_image_url: undefined;
|
|
@@ -192,12 +211,14 @@ export declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
192
211
|
auth_methods: undefined;
|
|
193
212
|
connected_accounts: undefined;
|
|
194
213
|
client_metadata: undefined;
|
|
214
|
+
client_read_only_metadata: undefined;
|
|
195
215
|
server_metadata: undefined;
|
|
196
216
|
}, "">;
|
|
197
217
|
serverUpdateSchema: import("yup").ObjectSchema<{
|
|
198
218
|
display_name: string | null | undefined;
|
|
199
219
|
profile_image_url: string | undefined;
|
|
200
220
|
client_metadata: {} | null | undefined;
|
|
221
|
+
client_read_only_metadata: {} | null | undefined;
|
|
201
222
|
server_metadata: {} | null | undefined;
|
|
202
223
|
primary_email: string | null | undefined;
|
|
203
224
|
primary_email_verified: boolean | undefined;
|
|
@@ -209,6 +230,7 @@ export declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
209
230
|
display_name: undefined;
|
|
210
231
|
profile_image_url: undefined;
|
|
211
232
|
client_metadata: undefined;
|
|
233
|
+
client_read_only_metadata: undefined;
|
|
212
234
|
server_metadata: undefined;
|
|
213
235
|
primary_email: undefined;
|
|
214
236
|
primary_email_verified: undefined;
|
|
@@ -221,6 +243,7 @@ export declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
221
243
|
display_name: string | null | undefined;
|
|
222
244
|
profile_image_url: string | undefined;
|
|
223
245
|
client_metadata: {} | null | undefined;
|
|
246
|
+
client_read_only_metadata: {} | null | undefined;
|
|
224
247
|
server_metadata: {} | null | undefined;
|
|
225
248
|
primary_email: string | null | undefined;
|
|
226
249
|
primary_email_verified: boolean | undefined;
|
|
@@ -238,6 +261,7 @@ export declare const usersCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
238
261
|
display_name: undefined;
|
|
239
262
|
profile_image_url: undefined;
|
|
240
263
|
client_metadata: undefined;
|
|
264
|
+
client_read_only_metadata: undefined;
|
|
241
265
|
server_metadata: undefined;
|
|
242
266
|
primary_email: undefined;
|
|
243
267
|
primary_email_verified: undefined;
|
|
@@ -285,6 +309,9 @@ export declare const userCreatedWebhookEvent: {
|
|
|
285
309
|
primary_email_verified: NonNullable<boolean | undefined>;
|
|
286
310
|
display_name: string | null;
|
|
287
311
|
selected_team: {
|
|
312
|
+
client_metadata?: {} | null | undefined;
|
|
313
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
314
|
+
server_metadata?: {} | null | undefined;
|
|
288
315
|
id: string;
|
|
289
316
|
created_at_millis: number;
|
|
290
317
|
display_name: string;
|
|
@@ -325,6 +352,7 @@ export declare const userCreatedWebhookEvent: {
|
|
|
325
352
|
};
|
|
326
353
|
}[];
|
|
327
354
|
client_metadata: {} | null;
|
|
355
|
+
client_read_only_metadata: {} | null;
|
|
328
356
|
server_metadata: {} | null;
|
|
329
357
|
}, import("yup").AnyObject, {
|
|
330
358
|
id: undefined;
|
|
@@ -335,7 +363,10 @@ export declare const userCreatedWebhookEvent: {
|
|
|
335
363
|
id: undefined;
|
|
336
364
|
display_name: undefined;
|
|
337
365
|
profile_image_url: undefined;
|
|
366
|
+
client_metadata: undefined;
|
|
367
|
+
client_read_only_metadata: undefined;
|
|
338
368
|
created_at_millis: undefined;
|
|
369
|
+
server_metadata: undefined;
|
|
339
370
|
};
|
|
340
371
|
selected_team_id: undefined;
|
|
341
372
|
profile_image_url: undefined;
|
|
@@ -347,6 +378,7 @@ export declare const userCreatedWebhookEvent: {
|
|
|
347
378
|
auth_methods: undefined;
|
|
348
379
|
connected_accounts: undefined;
|
|
349
380
|
client_metadata: undefined;
|
|
381
|
+
client_read_only_metadata: undefined;
|
|
350
382
|
server_metadata: undefined;
|
|
351
383
|
}, "">;
|
|
352
384
|
metadata: {
|
|
@@ -363,6 +395,9 @@ export declare const userUpdatedWebhookEvent: {
|
|
|
363
395
|
primary_email_verified: NonNullable<boolean | undefined>;
|
|
364
396
|
display_name: string | null;
|
|
365
397
|
selected_team: {
|
|
398
|
+
client_metadata?: {} | null | undefined;
|
|
399
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
400
|
+
server_metadata?: {} | null | undefined;
|
|
366
401
|
id: string;
|
|
367
402
|
created_at_millis: number;
|
|
368
403
|
display_name: string;
|
|
@@ -403,6 +438,7 @@ export declare const userUpdatedWebhookEvent: {
|
|
|
403
438
|
};
|
|
404
439
|
}[];
|
|
405
440
|
client_metadata: {} | null;
|
|
441
|
+
client_read_only_metadata: {} | null;
|
|
406
442
|
server_metadata: {} | null;
|
|
407
443
|
}, import("yup").AnyObject, {
|
|
408
444
|
id: undefined;
|
|
@@ -413,7 +449,10 @@ export declare const userUpdatedWebhookEvent: {
|
|
|
413
449
|
id: undefined;
|
|
414
450
|
display_name: undefined;
|
|
415
451
|
profile_image_url: undefined;
|
|
452
|
+
client_metadata: undefined;
|
|
453
|
+
client_read_only_metadata: undefined;
|
|
416
454
|
created_at_millis: undefined;
|
|
455
|
+
server_metadata: undefined;
|
|
417
456
|
};
|
|
418
457
|
selected_team_id: undefined;
|
|
419
458
|
profile_image_url: undefined;
|
|
@@ -425,6 +464,7 @@ export declare const userUpdatedWebhookEvent: {
|
|
|
425
464
|
auth_methods: undefined;
|
|
426
465
|
connected_accounts: undefined;
|
|
427
466
|
client_metadata: undefined;
|
|
467
|
+
client_read_only_metadata: undefined;
|
|
428
468
|
server_metadata: undefined;
|
|
429
469
|
}, "">;
|
|
430
470
|
metadata: {
|
|
@@ -5,6 +5,7 @@ export const usersCrudServerUpdateSchema = fieldSchema.yupObject({
|
|
|
5
5
|
display_name: fieldSchema.userDisplayNameSchema.optional(),
|
|
6
6
|
profile_image_url: fieldSchema.profileImageUrlSchema.optional(),
|
|
7
7
|
client_metadata: fieldSchema.userClientMetadataSchema.optional(),
|
|
8
|
+
client_read_only_metadata: fieldSchema.userClientReadOnlyMetadataSchema.optional(),
|
|
8
9
|
server_metadata: fieldSchema.userServerMetadataSchema.optional(),
|
|
9
10
|
primary_email: fieldSchema.primaryEmailSchema.nullable().optional(),
|
|
10
11
|
primary_email_verified: fieldSchema.primaryEmailVerifiedSchema.optional(),
|
|
@@ -57,6 +58,7 @@ export const usersCrudServerReadSchema = fieldSchema.yupObject({
|
|
|
57
58
|
provider: fieldSchema.userOAuthProviderSchema.required(),
|
|
58
59
|
}).required())).required().meta({ openapiField: { hidden: true, description: 'A list of connected accounts to this user', exampleValue: [{ "provider": { "provider_user_id": "12345", "type": "google", }, "type": "oauth", }] } }),
|
|
59
60
|
client_metadata: fieldSchema.userClientMetadataSchema,
|
|
61
|
+
client_read_only_metadata: fieldSchema.userClientReadOnlyMetadataSchema,
|
|
60
62
|
server_metadata: fieldSchema.userServerMetadataSchema,
|
|
61
63
|
}).required();
|
|
62
64
|
export const usersCrudServerCreateSchema = usersCrudServerUpdateSchema.concat(fieldSchema.yupObject({
|
|
@@ -15,7 +15,7 @@ export declare const projectsCrudAdminReadSchema: import("yup").ObjectSchema<{
|
|
|
15
15
|
client_id?: string | undefined;
|
|
16
16
|
client_secret?: string | undefined;
|
|
17
17
|
type: NonNullable<"shared" | "standard" | undefined>;
|
|
18
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
18
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
19
19
|
enabled: NonNullable<boolean | undefined>;
|
|
20
20
|
}[];
|
|
21
21
|
domains: {
|
|
@@ -72,7 +72,7 @@ export declare const projectsCrudClientReadSchema: import("yup").ObjectSchema<{
|
|
|
72
72
|
credential_enabled: NonNullable<boolean | undefined>;
|
|
73
73
|
magic_link_enabled: NonNullable<boolean | undefined>;
|
|
74
74
|
oauth_providers: {
|
|
75
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
75
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
76
76
|
}[];
|
|
77
77
|
};
|
|
78
78
|
}, import("yup").AnyObject, {
|
|
@@ -96,7 +96,7 @@ export declare const projectsCrudAdminUpdateSchema: import("yup").ObjectSchema<{
|
|
|
96
96
|
client_id?: string | undefined;
|
|
97
97
|
client_secret?: string | undefined;
|
|
98
98
|
type: NonNullable<"shared" | "standard" | undefined>;
|
|
99
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
99
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
100
100
|
enabled: NonNullable<boolean | undefined>;
|
|
101
101
|
}[] | undefined;
|
|
102
102
|
domains?: {
|
|
@@ -138,7 +138,7 @@ export declare const projectsCrudAdminCreateSchema: import("yup").ObjectSchema<{
|
|
|
138
138
|
client_id?: string | undefined;
|
|
139
139
|
client_secret?: string | undefined;
|
|
140
140
|
type: NonNullable<"shared" | "standard" | undefined>;
|
|
141
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
141
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
142
142
|
enabled: NonNullable<boolean | undefined>;
|
|
143
143
|
}[] | undefined;
|
|
144
144
|
domains?: {
|
|
@@ -178,7 +178,7 @@ export declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
178
178
|
credential_enabled: NonNullable<boolean | undefined>;
|
|
179
179
|
magic_link_enabled: NonNullable<boolean | undefined>;
|
|
180
180
|
oauth_providers: {
|
|
181
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
181
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
182
182
|
}[];
|
|
183
183
|
};
|
|
184
184
|
}, import("yup").AnyObject, {
|
|
@@ -206,7 +206,7 @@ export declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
206
206
|
client_id?: string | undefined;
|
|
207
207
|
client_secret?: string | undefined;
|
|
208
208
|
type: NonNullable<"shared" | "standard" | undefined>;
|
|
209
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
209
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
210
210
|
enabled: NonNullable<boolean | undefined>;
|
|
211
211
|
}[];
|
|
212
212
|
domains: {
|
|
@@ -268,7 +268,7 @@ export declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
268
268
|
client_id?: string | undefined;
|
|
269
269
|
client_secret?: string | undefined;
|
|
270
270
|
type: NonNullable<"shared" | "standard" | undefined>;
|
|
271
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
271
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
272
272
|
enabled: NonNullable<boolean | undefined>;
|
|
273
273
|
}[] | undefined;
|
|
274
274
|
domains?: {
|
|
@@ -334,7 +334,7 @@ export declare const internalProjectsCrud: import("../../crud").CrudSchemaFromOp
|
|
|
334
334
|
client_id?: string | undefined;
|
|
335
335
|
client_secret?: string | undefined;
|
|
336
336
|
type: NonNullable<"shared" | "standard" | undefined>;
|
|
337
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
337
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
338
338
|
enabled: NonNullable<boolean | undefined>;
|
|
339
339
|
}[];
|
|
340
340
|
domains: {
|
|
@@ -396,7 +396,7 @@ export declare const internalProjectsCrud: import("../../crud").CrudSchemaFromOp
|
|
|
396
396
|
client_id?: string | undefined;
|
|
397
397
|
client_secret?: string | undefined;
|
|
398
398
|
type: NonNullable<"shared" | "standard" | undefined>;
|
|
399
|
-
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
|
|
399
|
+
id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined>;
|
|
400
400
|
enabled: NonNullable<boolean | undefined>;
|
|
401
401
|
}[] | undefined;
|
|
402
402
|
domains?: {
|
|
@@ -16,6 +16,9 @@ export declare const webhookEvents: readonly [{
|
|
|
16
16
|
primary_email_verified: NonNullable<boolean | undefined>;
|
|
17
17
|
display_name: string | null;
|
|
18
18
|
selected_team: {
|
|
19
|
+
client_metadata?: {} | null | undefined;
|
|
20
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
21
|
+
server_metadata?: {} | null | undefined;
|
|
19
22
|
id: string;
|
|
20
23
|
created_at_millis: number;
|
|
21
24
|
display_name: string;
|
|
@@ -56,6 +59,7 @@ export declare const webhookEvents: readonly [{
|
|
|
56
59
|
};
|
|
57
60
|
}[];
|
|
58
61
|
client_metadata: {} | null;
|
|
62
|
+
client_read_only_metadata: {} | null;
|
|
59
63
|
server_metadata: {} | null;
|
|
60
64
|
}, yup.AnyObject, {
|
|
61
65
|
id: undefined;
|
|
@@ -66,7 +70,10 @@ export declare const webhookEvents: readonly [{
|
|
|
66
70
|
id: undefined;
|
|
67
71
|
display_name: undefined;
|
|
68
72
|
profile_image_url: undefined;
|
|
73
|
+
client_metadata: undefined;
|
|
74
|
+
client_read_only_metadata: undefined;
|
|
69
75
|
created_at_millis: undefined;
|
|
76
|
+
server_metadata: undefined;
|
|
70
77
|
};
|
|
71
78
|
selected_team_id: undefined;
|
|
72
79
|
profile_image_url: undefined;
|
|
@@ -78,6 +85,7 @@ export declare const webhookEvents: readonly [{
|
|
|
78
85
|
auth_methods: undefined;
|
|
79
86
|
connected_accounts: undefined;
|
|
80
87
|
client_metadata: undefined;
|
|
88
|
+
client_read_only_metadata: undefined;
|
|
81
89
|
server_metadata: undefined;
|
|
82
90
|
}, "">;
|
|
83
91
|
metadata: {
|
|
@@ -93,6 +101,9 @@ export declare const webhookEvents: readonly [{
|
|
|
93
101
|
primary_email_verified: NonNullable<boolean | undefined>;
|
|
94
102
|
display_name: string | null;
|
|
95
103
|
selected_team: {
|
|
104
|
+
client_metadata?: {} | null | undefined;
|
|
105
|
+
client_read_only_metadata?: {} | null | undefined;
|
|
106
|
+
server_metadata?: {} | null | undefined;
|
|
96
107
|
id: string;
|
|
97
108
|
created_at_millis: number;
|
|
98
109
|
display_name: string;
|
|
@@ -133,6 +144,7 @@ export declare const webhookEvents: readonly [{
|
|
|
133
144
|
};
|
|
134
145
|
}[];
|
|
135
146
|
client_metadata: {} | null;
|
|
147
|
+
client_read_only_metadata: {} | null;
|
|
136
148
|
server_metadata: {} | null;
|
|
137
149
|
}, yup.AnyObject, {
|
|
138
150
|
id: undefined;
|
|
@@ -143,7 +155,10 @@ export declare const webhookEvents: readonly [{
|
|
|
143
155
|
id: undefined;
|
|
144
156
|
display_name: undefined;
|
|
145
157
|
profile_image_url: undefined;
|
|
158
|
+
client_metadata: undefined;
|
|
159
|
+
client_read_only_metadata: undefined;
|
|
146
160
|
created_at_millis: undefined;
|
|
161
|
+
server_metadata: undefined;
|
|
147
162
|
};
|
|
148
163
|
selected_team_id: undefined;
|
|
149
164
|
profile_image_url: undefined;
|
|
@@ -155,6 +170,7 @@ export declare const webhookEvents: readonly [{
|
|
|
155
170
|
auth_methods: undefined;
|
|
156
171
|
connected_accounts: undefined;
|
|
157
172
|
client_metadata: undefined;
|
|
173
|
+
client_read_only_metadata: undefined;
|
|
158
174
|
server_metadata: undefined;
|
|
159
175
|
}, "">;
|
|
160
176
|
metadata: {
|
|
@@ -180,13 +196,19 @@ export declare const webhookEvents: readonly [{
|
|
|
180
196
|
id: string;
|
|
181
197
|
display_name: string;
|
|
182
198
|
profile_image_url: string | null;
|
|
199
|
+
client_metadata: {} | null | undefined;
|
|
200
|
+
client_read_only_metadata: {} | null | undefined;
|
|
183
201
|
} & {
|
|
184
202
|
created_at_millis: number;
|
|
203
|
+
server_metadata: {} | null | undefined;
|
|
185
204
|
}, yup.AnyObject, {
|
|
186
205
|
id: undefined;
|
|
187
206
|
display_name: undefined;
|
|
188
207
|
profile_image_url: undefined;
|
|
208
|
+
client_metadata: undefined;
|
|
209
|
+
client_read_only_metadata: undefined;
|
|
189
210
|
created_at_millis: undefined;
|
|
211
|
+
server_metadata: undefined;
|
|
190
212
|
}, "">;
|
|
191
213
|
metadata: {
|
|
192
214
|
summary: string;
|
|
@@ -199,13 +221,19 @@ export declare const webhookEvents: readonly [{
|
|
|
199
221
|
id: string;
|
|
200
222
|
display_name: string;
|
|
201
223
|
profile_image_url: string | null;
|
|
224
|
+
client_metadata: {} | null | undefined;
|
|
225
|
+
client_read_only_metadata: {} | null | undefined;
|
|
202
226
|
} & {
|
|
203
227
|
created_at_millis: number;
|
|
228
|
+
server_metadata: {} | null | undefined;
|
|
204
229
|
}, yup.AnyObject, {
|
|
205
230
|
id: undefined;
|
|
206
231
|
display_name: undefined;
|
|
207
232
|
profile_image_url: undefined;
|
|
233
|
+
client_metadata: undefined;
|
|
234
|
+
client_read_only_metadata: undefined;
|
|
208
235
|
created_at_millis: undefined;
|
|
236
|
+
server_metadata: undefined;
|
|
209
237
|
}, "">;
|
|
210
238
|
metadata: {
|
|
211
239
|
summary: string;
|
package/dist/schema-fields.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export declare const projectMagicLinkEnabledSchema: yup.BooleanSchema<boolean |
|
|
|
39
39
|
export declare const projectClientTeamCreationEnabledSchema: yup.BooleanSchema<boolean | undefined, yup.AnyObject, undefined, "">;
|
|
40
40
|
export declare const projectSignUpEnabledSchema: yup.BooleanSchema<boolean | undefined, yup.AnyObject, undefined, "">;
|
|
41
41
|
export declare const projectCredentialEnabledSchema: yup.BooleanSchema<boolean | undefined, yup.AnyObject, undefined, "">;
|
|
42
|
-
export declare const oauthIdSchema: yup.StringSchema<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined, yup.AnyObject, undefined, "">;
|
|
42
|
+
export declare const oauthIdSchema: yup.StringSchema<"google" | "github" | "facebook" | "microsoft" | "spotify" | "discord" | undefined, yup.AnyObject, undefined, "">;
|
|
43
43
|
export declare const oauthEnabledSchema: yup.BooleanSchema<boolean | undefined, yup.AnyObject, undefined, "">;
|
|
44
44
|
export declare const oauthTypeSchema: yup.StringSchema<"shared" | "standard" | undefined, yup.AnyObject, undefined, "">;
|
|
45
45
|
export declare const oauthClientIdSchema: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
|
|
@@ -66,6 +66,7 @@ export declare const selectedTeamIdSchema: yup.StringSchema<string | undefined,
|
|
|
66
66
|
export declare const profileImageUrlSchema: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
|
|
67
67
|
export declare const signedUpAtMillisSchema: yup.NumberSchema<number | undefined, yup.AnyObject, undefined, "">;
|
|
68
68
|
export declare const userClientMetadataSchema: yup.MixedSchema<{} | null, yup.AnyObject, undefined, "">;
|
|
69
|
+
export declare const userClientReadOnlyMetadataSchema: yup.MixedSchema<{} | null, yup.AnyObject, undefined, "">;
|
|
69
70
|
export declare const userServerMetadataSchema: yup.MixedSchema<{} | null, yup.AnyObject, undefined, "">;
|
|
70
71
|
export declare const userOAuthProviderSchema: yup.ObjectSchema<{
|
|
71
72
|
type: string;
|
|
@@ -99,6 +100,7 @@ export declare const teamIdSchema: yup.StringSchema<string | undefined, yup.AnyO
|
|
|
99
100
|
export declare const teamDisplayNameSchema: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
|
|
100
101
|
export declare const teamProfileImageUrlSchema: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
|
|
101
102
|
export declare const teamClientMetadataSchema: yup.MixedSchema<{} | null, yup.AnyObject, undefined, "">;
|
|
103
|
+
export declare const teamClientReadOnlyMetadataSchema: yup.MixedSchema<{} | null, yup.AnyObject, undefined, "">;
|
|
102
104
|
export declare const teamServerMetadataSchema: yup.MixedSchema<{} | null, yup.AnyObject, undefined, "">;
|
|
103
105
|
export declare const teamCreatedAtMillisSchema: yup.NumberSchema<number | undefined, yup.AnyObject, undefined, "">;
|
|
104
106
|
export declare const teamInvitationEmailSchema: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
|
package/dist/schema-fields.js
CHANGED
|
@@ -6,6 +6,7 @@ import { isUuid } from "./utils/uuids";
|
|
|
6
6
|
const _idDescription = (identify) => `The unique identifier of this ${identify}`;
|
|
7
7
|
const _displayNameDescription = (identify) => `Human-readable ${identify} display name. This is not a unique identifier.`;
|
|
8
8
|
const _clientMetaDataDescription = (identify) => `Client metadata. Used as a data store, accessible from the client side. Do not store information that should not be exposed to the client.`;
|
|
9
|
+
const _clientReadOnlyMetaDataDescription = (identify) => `Client read-only, server-writable metadata. Used as a data store, accessible from the client side. Do not store information that should not be exposed to the client. The client can read this data, but cannot modify it. This is useful for things like subscription status.`;
|
|
9
10
|
const _profileImageUrlDescription = (identify) => `URL of the profile image for ${identify}. Can be a Base64 encoded image. Please compress and crop to a square before passing in.`;
|
|
10
11
|
const _serverMetaDataDescription = (identify) => `Server metadata. Used as a data store, only accessible from the server side. You can store secret information related to the ${identify} here.`;
|
|
11
12
|
const _atMillisDescription = (identify) => `(the number of milliseconds since epoch, January 1, 1970, UTC)`;
|
|
@@ -194,6 +195,7 @@ export const selectedTeamIdSchema = yupString().uuid().meta({ openapiField: { de
|
|
|
194
195
|
export const profileImageUrlSchema = yupString().meta({ openapiField: { description: _profileImageUrlDescription('user'), exampleValue: 'https://example.com/image.jpg' } });
|
|
195
196
|
export const signedUpAtMillisSchema = yupNumber().meta({ openapiField: { description: _signedUpAtMillisDescription, exampleValue: 1630000000000 } });
|
|
196
197
|
export const userClientMetadataSchema = jsonSchema.meta({ openapiField: { description: _clientMetaDataDescription('user'), exampleValue: { key: 'value' } } });
|
|
198
|
+
export const userClientReadOnlyMetadataSchema = jsonSchema.meta({ openapiField: { description: _clientReadOnlyMetaDataDescription('user'), exampleValue: { key: 'value' } } });
|
|
197
199
|
export const userServerMetadataSchema = jsonSchema.meta({ openapiField: { description: _serverMetaDataDescription('user'), exampleValue: { key: 'value' } } });
|
|
198
200
|
export const userOAuthProviderSchema = yupObject({
|
|
199
201
|
type: yupString().required(),
|
|
@@ -240,6 +242,7 @@ export const teamIdSchema = yupString().uuid().meta({ openapiField: { descriptio
|
|
|
240
242
|
export const teamDisplayNameSchema = yupString().meta({ openapiField: { description: _displayNameDescription('team'), exampleValue: 'My Team' } });
|
|
241
243
|
export const teamProfileImageUrlSchema = yupString().meta({ openapiField: { description: _profileImageUrlDescription('team'), exampleValue: 'https://example.com/image.jpg' } });
|
|
242
244
|
export const teamClientMetadataSchema = jsonSchema.meta({ openapiField: { description: _clientMetaDataDescription('team'), exampleValue: { key: 'value' } } });
|
|
245
|
+
export const teamClientReadOnlyMetadataSchema = jsonSchema.meta({ openapiField: { description: _clientReadOnlyMetaDataDescription('team'), exampleValue: { key: 'value' } } });
|
|
243
246
|
export const teamServerMetadataSchema = jsonSchema.meta({ openapiField: { description: _serverMetaDataDescription('team'), exampleValue: { key: 'value' } } });
|
|
244
247
|
export const teamCreatedAtMillisSchema = yupNumber().meta({ openapiField: { description: _createdAtMillisDescription('team'), exampleValue: 1630000000000 } });
|
|
245
248
|
export const teamInvitationEmailSchema = emailSchema.meta({ openapiField: { description: 'The email to sign in with.', exampleValue: 'johndoe@example.com' } });
|
package/dist/utils/oauth.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const standardProviders: readonly ["google", "github", "facebook", "microsoft", "spotify"];
|
|
1
|
+
export declare const standardProviders: readonly ["google", "github", "facebook", "microsoft", "spotify", "discord"];
|
|
2
2
|
export declare const sharedProviders: readonly ["google", "github", "facebook", "microsoft", "spotify"];
|
|
3
|
-
export declare const allProviders: readonly ["google", "github", "facebook", "microsoft", "spotify"];
|
|
3
|
+
export declare const allProviders: readonly ["google", "github", "facebook", "microsoft", "spotify", "discord"];
|
|
4
4
|
export type ProviderType = typeof allProviders[number];
|
|
5
5
|
export type StandardProviderType = typeof standardProviders[number];
|
|
6
6
|
export type SharedProviderType = typeof sharedProviders[number];
|
package/dist/utils/oauth.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export const standardProviders = ["google", "github", "facebook", "microsoft", "spotify"];
|
|
1
|
+
export const standardProviders = ["google", "github", "facebook", "microsoft", "spotify", "discord"];
|
|
2
|
+
// No more shared providers should be added except for special cases
|
|
2
3
|
export const sharedProviders = ["google", "github", "facebook", "microsoft", "spotify"];
|
|
3
|
-
export const allProviders = ["google", "github", "facebook", "microsoft", "spotify"];
|
|
4
|
+
export const allProviders = ["google", "github", "facebook", "microsoft", "spotify", "discord"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackframe/stack-shared",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.22",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"jose": "^5.2.2",
|
|
37
37
|
"oauth4webapi": "^2.10.3",
|
|
38
38
|
"uuid": "^9.0.1",
|
|
39
|
-
"@stackframe/stack-sc": "2.5.
|
|
39
|
+
"@stackframe/stack-sc": "2.5.22"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"rimraf": "^5.0.5",
|