@stackframe/stack-shared 2.5.4 → 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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @stackframe/stack-shared
2
2
 
3
+ ## 2.5.5
4
+
5
+ ### Patch Changes
6
+
7
+ - @stackframe/stack-sc@2.5.5
8
+
3
9
  ## 2.5.4
4
10
 
5
11
  ### Patch Changes
@@ -18,6 +18,9 @@ export declare const projectsCrudServerReadSchema: import("yup").ObjectSchema<{
18
18
  id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
19
19
  enabled: NonNullable<boolean | undefined>;
20
20
  }[];
21
+ enabled_oauth_providers: {
22
+ id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
23
+ }[];
21
24
  domains: {
22
25
  domain: string;
23
26
  handler_path: string;
@@ -52,6 +55,7 @@ export declare const projectsCrudServerReadSchema: import("yup").ObjectSchema<{
52
55
  credential_enabled: undefined;
53
56
  magic_link_enabled: undefined;
54
57
  oauth_providers: undefined;
58
+ enabled_oauth_providers: undefined;
55
59
  domains: undefined;
56
60
  email_config: {
57
61
  type: undefined;
@@ -73,7 +77,7 @@ export declare const projectsCrudClientReadSchema: import("yup").ObjectSchema<{
73
77
  config: {
74
78
  credential_enabled: NonNullable<boolean | undefined>;
75
79
  magic_link_enabled: NonNullable<boolean | undefined>;
76
- oauth_providers: {
80
+ enabled_oauth_providers: {
77
81
  id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
78
82
  }[];
79
83
  };
@@ -83,7 +87,7 @@ export declare const projectsCrudClientReadSchema: import("yup").ObjectSchema<{
83
87
  config: {
84
88
  credential_enabled: undefined;
85
89
  magic_link_enabled: undefined;
86
- oauth_providers: undefined;
90
+ enabled_oauth_providers: undefined;
87
91
  };
88
92
  }, "">;
89
93
  export declare const projectsCrudServerUpdateSchema: import("yup").ObjectSchema<{
@@ -179,7 +183,7 @@ export declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
179
183
  config: {
180
184
  credential_enabled: NonNullable<boolean | undefined>;
181
185
  magic_link_enabled: NonNullable<boolean | undefined>;
182
- oauth_providers: {
186
+ enabled_oauth_providers: {
183
187
  id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
184
188
  }[];
185
189
  };
@@ -189,7 +193,7 @@ export declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
189
193
  config: {
190
194
  credential_enabled: undefined;
191
195
  magic_link_enabled: undefined;
192
- oauth_providers: undefined;
196
+ enabled_oauth_providers: undefined;
193
197
  };
194
198
  }, "">;
195
199
  serverReadSchema: import("yup").ObjectSchema<{
@@ -211,6 +215,9 @@ export declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
211
215
  id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
212
216
  enabled: NonNullable<boolean | undefined>;
213
217
  }[];
218
+ enabled_oauth_providers: {
219
+ id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
220
+ }[];
214
221
  domains: {
215
222
  domain: string;
216
223
  handler_path: string;
@@ -245,6 +252,7 @@ export declare const projectsCrud: import("../../crud").CrudSchemaFromOptions<{
245
252
  credential_enabled: undefined;
246
253
  magic_link_enabled: undefined;
247
254
  oauth_providers: undefined;
255
+ enabled_oauth_providers: undefined;
248
256
  domains: undefined;
249
257
  email_config: {
250
258
  type: undefined;
@@ -341,6 +349,9 @@ export declare const internalProjectsCrud: import("../../crud").CrudSchemaFromOp
341
349
  id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
342
350
  enabled: NonNullable<boolean | undefined>;
343
351
  }[];
352
+ enabled_oauth_providers: {
353
+ id: NonNullable<"google" | "github" | "facebook" | "microsoft" | "spotify" | undefined>;
354
+ }[];
344
355
  domains: {
345
356
  domain: string;
346
357
  handler_path: string;
@@ -375,6 +386,7 @@ export declare const internalProjectsCrud: import("../../crud").CrudSchemaFromOp
375
386
  credential_enabled: undefined;
376
387
  magic_link_enabled: undefined;
377
388
  oauth_providers: undefined;
389
+ enabled_oauth_providers: undefined;
378
390
  domains: undefined;
379
391
  email_config: {
380
392
  type: undefined;
@@ -11,6 +11,9 @@ const oauthProviderSchema = yupObject({
11
11
  client_id: yupRequiredWhen(schemaFields.oauthClientIdSchema, 'type', 'standard'),
12
12
  client_secret: yupRequiredWhen(schemaFields.oauthClientSecretSchema, 'type', 'standard'),
13
13
  });
14
+ const enabledOAuthProviderSchema = yupObject({
15
+ id: schemaFields.oauthIdSchema.required(),
16
+ });
14
17
  const emailConfigSchema = yupObject({
15
18
  type: schemaFields.emailTypeSchema.required(),
16
19
  host: yupRequiredWhen(schemaFields.emailHostSchema, 'type', 'standard'),
@@ -37,6 +40,7 @@ export const projectsCrudServerReadSchema = yupObject({
37
40
  credential_enabled: schemaFields.projectCredentialEnabledSchema.required(),
38
41
  magic_link_enabled: schemaFields.projectMagicLinkEnabledSchema.required(),
39
42
  oauth_providers: yupArray(oauthProviderSchema.required()).required(),
43
+ enabled_oauth_providers: yupArray(enabledOAuthProviderSchema.required()).required(),
40
44
  domains: yupArray(domainSchema.required()).required(),
41
45
  email_config: emailConfigSchema.required(),
42
46
  create_team_on_sign_up: schemaFields.projectCreateTeamOnSignUpSchema.required(),
@@ -50,9 +54,7 @@ export const projectsCrudClientReadSchema = yupObject({
50
54
  config: yupObject({
51
55
  credential_enabled: schemaFields.projectCredentialEnabledSchema.required(),
52
56
  magic_link_enabled: schemaFields.projectMagicLinkEnabledSchema.required(),
53
- oauth_providers: yupArray(yupObject({
54
- id: schemaFields.oauthIdSchema.required(),
55
- }).required()).required(),
57
+ enabled_oauth_providers: yupArray(enabledOAuthProviderSchema.required()).required(),
56
58
  }).required(),
57
59
  }).required();
58
60
  export const projectsCrudServerUpdateSchema = yupObject({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackframe/stack-shared",
3
- "version": "2.5.4",
3
+ "version": "2.5.5",
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.4"
39
+ "@stackframe/stack-sc": "2.5.5"
40
40
  },
41
41
  "devDependencies": {
42
42
  "rimraf": "^5.0.5",