/** * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import { FlowMetadataResponse, GetFlowMetaRequestConfig } from '../../models/v2/flow-meta-v2'; /** * Fetches aggregated flow metadata from the `GET /flow/meta` endpoint. * * The response includes: * - Application or OU details depending on the `type` parameter * - Resolved design configuration (theme and layout) * - i18n translations filtered by `language` and `namespace` * - Registration flow enablement status * * @param config - Request configuration including `baseUrl`/`url`, and optional * `type`, `id`, `language`, and `namespace` filters. When `type` * and `id` are omitted the server returns i18n-only metadata. * @returns A promise that resolves to the {@link FlowMetadataResponse}. * * @throws {AsgardeoAPIError} When the server returns a non-OK response. * * @example * ```typescript * import getFlowMetaV2 from './api/v2/getFlowMetaV2'; * import { FlowMetaType } from './models/v2/flow-meta-v2'; * * const meta = await getFlowMetaV2({ * baseUrl: 'https://localhost:8090', * type: FlowMetaType.App, * id: '60a9b38b-6eba-9f9e-55f9-267067de4680', * language: 'en', * namespace: 'auth', * }); * * console.log(meta.application?.name); * console.log(meta.i18n.translations); * ``` * * @experimental This function targets the Asgardeo V2 platform API */ declare const getFlowMetaV2: ({ url, baseUrl, type, id, language, namespace, ...requestConfig }: GetFlowMetaRequestConfig) => Promise; export default getFlowMetaV2; //# sourceMappingURL=getFlowMetaV2.d.ts.map