Download web/types/feature.ts from ZHZ1024/dify: direct link, hf CLI and curl.
- Browser
- Download file 921 Bytes
-
https://huggingface.co/spaces/ZHZ1024/dify/resolve/main/web/types/feature.ts
- Command line
-
hf download hf://spaces/ZHZ1024/dify/web/types/feature.ts
-
curl -L -o feature.ts https://huggingface.co/spaces/ZHZ1024/dify/resolve/main/web/types/feature.ts
921 Bytes
| export enum SSOProtocol { | |
| SAML = 'saml', | |
| OIDC = 'oidc', | |
| OAuth2 = 'oauth2', | |
| } | |
| export type SystemFeatures = { | |
| sso_enforced_for_signin: boolean | |
| sso_enforced_for_signin_protocol: SSOProtocol | '' | |
| sso_enforced_for_web: boolean | |
| sso_enforced_for_web_protocol: SSOProtocol | '' | |
| enable_web_sso_switch_component: boolean | |
| enable_email_code_login: boolean | |
| enable_email_password_login: boolean | |
| enable_social_oauth_login: boolean | |
| is_allow_create_workspace: boolean | |
| is_allow_register: boolean | |
| } | |
| export const defaultSystemFeatures: SystemFeatures = { | |
| sso_enforced_for_signin: false, | |
| sso_enforced_for_signin_protocol: '', | |
| sso_enforced_for_web: false, | |
| sso_enforced_for_web_protocol: '', | |
| enable_web_sso_switch_component: false, | |
| enable_email_code_login: false, | |
| enable_email_password_login: false, | |
| enable_social_oauth_login: false, | |
| is_allow_create_workspace: false, | |
| is_allow_register: false, | |
| } | |