enterprise.ts 410 B

1234567891011121314
  1. import { get } from './base'
  2. import type { EnterpriseFeatures } from '@/types/enterprise'
  3. export const getEnterpriseFeatures = () => {
  4. return get<EnterpriseFeatures>('/enterprise-features')
  5. }
  6. export const getSAMLSSOUrl = () => {
  7. return get<{ url: string }>('/enterprise/sso/saml/login')
  8. }
  9. export const getOIDCSSOUrl = () => {
  10. return get<{ url: string; state: string }>('/enterprise/sso/oidc/login')
  11. }