import { IdPPermission, IdPPermissionCondition, unsafeAllowAllIdPPermission } from "./permission.mjs"; import { IdPEmailConfig, IdPGqlOperations, IdPGqlOperationsInput, IdPInput } from "../../../types/idp.generated.mjs"; import { IdPConfig, IdPExternalConfig, IdpDefinitionBrand } from "./types.mjs"; //#region src/configure/services/idp/index.d.ts /** * Define an IdP service configuration for the Tailor SDK. * @template TClients * @param name - IdP service name * @param config - IdP configuration * @returns Defined IdP service */ export declare function defineIdp(name: string, config: Omit & { clients: TClients; permission?: IdPPermission; }): { readonly name: string; readonly provider: (providerName: string, clientName: TClients[number]) => { readonly name: string; readonly kind: "BuiltInIdP"; readonly namespace: string; readonly clientName: TClients[number]; }; readonly publishEvents?: boolean | undefined; readonly authorization?: "insecure" | "loggedIn" | { cel: string; } | undefined; readonly lang?: "en" | "ja" | undefined; readonly userAuthPolicy?: { useNonEmailIdentifier?: boolean | undefined; allowSelfPasswordReset?: boolean | undefined; passwordRequireUppercase?: boolean | undefined; passwordRequireLowercase?: boolean | undefined; passwordRequireNonAlphanumeric?: boolean | undefined; passwordRequireNumeric?: boolean | undefined; passwordMinLength?: number | undefined; passwordMaxLength?: number | undefined; allowedEmailDomains?: string[] | undefined; allowGoogleOauth?: boolean | undefined; allowMicrosoftOauth?: boolean | undefined; disablePasswordAuth?: boolean | undefined; enableMfa?: boolean | undefined; requireMfa?: boolean | undefined; allowedReturnOrigins?: string[] | undefined; mfaIssuer?: string | undefined; } | undefined; readonly gqlOperations?: "query" | { create?: boolean | undefined; update?: boolean | undefined; delete?: boolean | undefined; read?: boolean | undefined; sendPasswordResetEmail?: boolean | undefined; requestMfaSettingsUrl?: boolean | undefined; unenrollMfa?: boolean | undefined; } | undefined; readonly emailConfig?: import("@tailor-platform/sdk").IdPEmailConfig; readonly clients: TClients; readonly permission?: IdPPermission; } & IdpDefinitionBrand; //#endregion export { type IdPConfig, type IdPEmailConfig, type IdPExternalConfig, type IdPGqlOperations, type IdPGqlOperationsInput as IdPGqlOperationsConfig, type IdPPermission, type IdPPermissionCondition, unsafeAllowAllIdPPermission };