From ccb204ab9f02101b65f3bb7432ee774463cac79b Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Mon, 20 Jul 2026 15:25:18 +0200 Subject: [PATCH] feat(editor): Expose `AuthenticationMethod` as a runtime import from `@n8n/api-types` (no-changelog) (#34559) Co-authored-by: Claude Opus 4.8 --- packages/@n8n/api-types/src/frontend-settings.ts | 10 +++++++++- packages/@n8n/api-types/src/index.ts | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/@n8n/api-types/src/frontend-settings.ts b/packages/@n8n/api-types/src/frontend-settings.ts index 7595a5b2a9d..4a95452fce3 100644 --- a/packages/@n8n/api-types/src/frontend-settings.ts +++ b/packages/@n8n/api-types/src/frontend-settings.ts @@ -29,7 +29,15 @@ export interface ITelemetrySettings { config?: ITelemetryClientConfig; } -export type AuthenticationMethod = 'email' | 'ldap' | 'saml' | 'oidc' | 'token-exchange'; +export const AuthenticationMethod = { + Email: 'email', + Ldap: 'ldap', + Saml: 'saml', + Oidc: 'oidc', + TokenExchange: 'token-exchange', +} as const; + +export type AuthenticationMethod = (typeof AuthenticationMethod)[keyof typeof AuthenticationMethod]; export interface IUserManagementSettings { quota: number; diff --git a/packages/@n8n/api-types/src/index.ts b/packages/@n8n/api-types/src/index.ts index 14602bd523f..58cd70a6958 100644 --- a/packages/@n8n/api-types/src/index.ts +++ b/packages/@n8n/api-types/src/index.ts @@ -3,7 +3,7 @@ export type * from './datetime'; export * from './dto'; export type * from './push'; export type * from './scaling'; -export type * from './frontend-settings'; +export * from './frontend-settings'; export type * from './user'; export type * from './api-keys'; export type * from './community-node-types';