mirror of
https://github.com/langgenius/dify.git
synced 2026-06-07 16:32:01 +08:00
24 lines
718 B
TypeScript
24 lines
718 B
TypeScript
import type { GetSystemFeaturesResponse } from '@dify/contracts/api/console/system-features/types.gen'
|
|
|
|
export const SSOProtocol = {
|
|
SAML: 'saml',
|
|
OIDC: 'oidc',
|
|
OAuth2: 'oauth2',
|
|
} as const
|
|
|
|
export const LicenseStatus = {
|
|
NONE: 'none',
|
|
INACTIVE: 'inactive',
|
|
ACTIVE: 'active',
|
|
EXPIRING: 'expiring',
|
|
EXPIRED: 'expired',
|
|
LOST: 'lost',
|
|
} as const satisfies Record<string, GetSystemFeaturesResponse['license']['status']>
|
|
|
|
export const InstallationScope = {
|
|
ALL: 'all',
|
|
NONE: 'none',
|
|
OFFICIAL_ONLY: 'official_only',
|
|
OFFICIAL_AND_PARTNER: 'official_and_specific_partners',
|
|
} as const satisfies Record<string, GetSystemFeaturesResponse['plugin_installation_permission']['plugin_installation_scope']>
|