/** * @fileoverview * Mapi (Management API) proxy is an endpoint in Logto Cloud that proxies the requests to the * corresponding Management API. It has the following benefits: * * - When we migrate the tenant management from API resources to tenant organizations, we can * migrate Console to use the mapi proxy endpoint by changing only the base URL. * - It decouples the access control of Cloud user collaboration from the machine-to-machine access * control of the Management API. * - The mapi proxy endpoint shares the same domain with Logto Cloud, so it can be used in the * browser without CORS. * * This module provides utilities to manage mapi proxy. */ import { type Role, type CreateApplication } from '../db-entries/index.js'; /** * Given a tenant ID, return the role data for the mapi proxy. * * It follows a convention to generate all the fields which can be used across the system. See * source code for details. */ export declare const getMapiProxyRole: (tenantId: string) => Readonly; /** * Given a tenant ID, return the application create data for the mapi proxy. The proxy will use the * application to access the Management API. * * It follows a convention to generate all the fields which can be used across the system. See * source code for details. */ export declare const getMapiProxyM2mApp: (tenantId: string) => Readonly;