@stackframe/stack-shared 2.6.29 → 2.6.30

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,12 @@
1
1
  # @stackframe/stack-shared
2
2
 
3
+ ## 2.6.30
4
+
5
+ ### Patch Changes
6
+
7
+ - Bugfixes
8
+ - @stackframe/stack-sc@2.6.30
9
+
3
10
  ## 2.6.29
4
11
 
5
12
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  import { createCrud } from "../../crud";
2
2
  import * as schemaFields from "../../schema-fields";
3
- import { yupArray, yupObject, yupDefinedWhen, yupString } from "../../schema-fields";
3
+ import { yupArray, yupDefinedWhen, yupObject, yupString } from "../../schema-fields";
4
4
  const teamPermissionSchema = yupObject({
5
5
  id: yupString().defined(),
6
6
  }).defined();
@@ -11,8 +11,8 @@ const oauthProviderSchema = yupObject({
11
11
  client_id: yupDefinedWhen(schemaFields.oauthClientIdSchema, 'type', 'standard'),
12
12
  client_secret: yupDefinedWhen(schemaFields.oauthClientSecretSchema, 'type', 'standard'),
13
13
  // extra params
14
- facebook_config_id: yupString().optional().meta({ openapiField: { description: 'This parameter is the configuration id for Facebook business login (for things like ads and marketing).' } }),
15
- microsoft_tenant_id: yupString().optional().meta({ openapiField: { description: 'This parameter is the Microsoft tenant id for Microsoft directory' } }),
14
+ facebook_config_id: schemaFields.oauthFacebookConfigIdSchema.optional(),
15
+ microsoft_tenant_id: schemaFields.oauthMicrosoftTenantIdSchema.optional(),
16
16
  });
17
17
  const enabledOAuthProviderSchema = yupObject({
18
18
  id: schemaFields.oauthIdSchema.defined(),
@@ -62,6 +62,8 @@ export declare const oauthEnabledSchema: yup.BooleanSchema<boolean | undefined,
62
62
  export declare const oauthTypeSchema: yup.StringSchema<"shared" | "standard" | undefined, yup.AnyObject, undefined, "">;
63
63
  export declare const oauthClientIdSchema: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
64
64
  export declare const oauthClientSecretSchema: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
65
+ export declare const oauthFacebookConfigIdSchema: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
66
+ export declare const oauthMicrosoftTenantIdSchema: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
65
67
  export declare const emailTypeSchema: yup.StringSchema<"shared" | "standard" | undefined, yup.AnyObject, undefined, "">;
66
68
  export declare const emailSenderNameSchema: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
67
69
  export declare const emailHostSchema: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
@@ -236,6 +236,8 @@ export const oauthEnabledSchema = yupBoolean().meta({ openapiField: { descriptio
236
236
  export const oauthTypeSchema = yupString().oneOf(['shared', 'standard']).meta({ openapiField: { description: 'OAuth provider type, one of shared, standard. "shared" uses Stack shared OAuth keys and it is only meant for development. "standard" uses your own OAuth keys and will show your logo and company name when signing in with the provider.', exampleValue: 'standard' } });
237
237
  export const oauthClientIdSchema = yupString().meta({ openapiField: { description: 'OAuth client ID. Needs to be specified when using type="standard"', exampleValue: 'google-oauth-client-id' } });
238
238
  export const oauthClientSecretSchema = yupString().meta({ openapiField: { description: 'OAuth client secret. Needs to be specified when using type="standard"', exampleValue: 'google-oauth-client-secret' } });
239
+ export const oauthFacebookConfigIdSchema = yupString().meta({ openapiField: { description: 'The configuration id for Facebook business login (for things like ads and marketing). This is only required if you are using the standard OAuth with Facebook and you are using Facebook business login.' } });
240
+ export const oauthMicrosoftTenantIdSchema = yupString().meta({ openapiField: { description: 'The Microsoft tenant id for Microsoft directory. This is only required if you are using the standard OAuth with Microsoft and you have an Azure AD tenant.' } });
239
241
  // Project email config
240
242
  export const emailTypeSchema = yupString().oneOf(['shared', 'standard']).meta({ openapiField: { description: 'Email provider type, one of shared, standard. "shared" uses Stack shared email provider and it is only meant for development. "standard" uses your own email server and will have your email address as the sender.', exampleValue: 'standard' } });
241
243
  export const emailSenderNameSchema = yupString().meta({ openapiField: { description: 'Email sender name. Needs to be specified when using type="standard"', exampleValue: 'Stack' } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackframe/stack-shared",
3
- "version": "2.6.29",
3
+ "version": "2.6.30",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -50,7 +50,7 @@
50
50
  "oauth4webapi": "^2.10.3",
51
51
  "semver": "^7.6.3",
52
52
  "uuid": "^9.0.1",
53
- "@stackframe/stack-sc": "2.6.29"
53
+ "@stackframe/stack-sc": "2.6.30"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@simplewebauthn/types": "^11.0.0",