/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments.js"; import * as core from "../../../../core/index.js"; import * as CortexAI from "../../../index.js"; export declare namespace Tenant { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; token?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ headers?: Record | undefined>; } } export declare class Tenant { protected readonly _options: Tenant.Options; constructor(_options?: Tenant.Options); /** * @param {CortexAI.TenantCreateRequest} request * @param {Tenant.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link CortexAI.BadRequestError} * @throws {@link CortexAI.UnauthorizedError} * @throws {@link CortexAI.ForbiddenError} * @throws {@link CortexAI.NotFoundError} * @throws {@link CortexAI.UnprocessableEntityError} * @throws {@link CortexAI.InternalServerError} * @throws {@link CortexAI.ServiceUnavailableError} * * @example * await client.tenant.create({ * tenant_id: "tenant_1234" * }) */ create(request: CortexAI.TenantCreateRequest, requestOptions?: Tenant.RequestOptions): core.HttpResponsePromise; private __create; /** * @param {CortexAI.TenantGetSubTenantIdsRequest} request * @param {Tenant.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link CortexAI.BadRequestError} * @throws {@link CortexAI.UnauthorizedError} * @throws {@link CortexAI.ForbiddenError} * @throws {@link CortexAI.NotFoundError} * @throws {@link CortexAI.UnprocessableEntityError} * @throws {@link CortexAI.InternalServerError} * @throws {@link CortexAI.ServiceUnavailableError} * * @example * await client.tenant.getSubTenantIds({ * tenant_id: "tenant_1234" * }) */ getSubTenantIds(request: CortexAI.TenantGetSubTenantIdsRequest, requestOptions?: Tenant.RequestOptions): core.HttpResponsePromise; private __getSubTenantIds; /** * @param {CortexAI.TenantGetInfraStatusRequest} request * @param {Tenant.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link CortexAI.BadRequestError} * @throws {@link CortexAI.UnauthorizedError} * @throws {@link CortexAI.ForbiddenError} * @throws {@link CortexAI.NotFoundError} * @throws {@link CortexAI.UnprocessableEntityError} * @throws {@link CortexAI.InternalServerError} * @throws {@link CortexAI.ServiceUnavailableError} * * @example * await client.tenant.getInfraStatus({ * tenant_id: "tenant_1234" * }) */ getInfraStatus(request: CortexAI.TenantGetInfraStatusRequest, requestOptions?: Tenant.RequestOptions): core.HttpResponsePromise; private __getInfraStatus; /** * @param {CortexAI.TenantDeleteTenantRequest} request * @param {Tenant.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link CortexAI.BadRequestError} * @throws {@link CortexAI.UnauthorizedError} * @throws {@link CortexAI.ForbiddenError} * @throws {@link CortexAI.NotFoundError} * @throws {@link CortexAI.UnprocessableEntityError} * @throws {@link CortexAI.InternalServerError} * @throws {@link CortexAI.ServiceUnavailableError} * * @example * await client.tenant.deleteTenant({ * tenant_id: "tenant_1234" * }) */ deleteTenant(request: CortexAI.TenantDeleteTenantRequest, requestOptions?: Tenant.RequestOptions): core.HttpResponsePromise; private __deleteTenant; /** * @param {CortexAI.TenantMonitorRequest} request * @param {Tenant.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link CortexAI.BadRequestError} * @throws {@link CortexAI.UnauthorizedError} * @throws {@link CortexAI.ForbiddenError} * @throws {@link CortexAI.NotFoundError} * @throws {@link CortexAI.UnprocessableEntityError} * @throws {@link CortexAI.InternalServerError} * @throws {@link CortexAI.ServiceUnavailableError} * * @example * await client.tenant.monitor({ * tenant_id: "tenant_1234" * }) */ monitor(request: CortexAI.TenantMonitorRequest, requestOptions?: Tenant.RequestOptions): core.HttpResponsePromise; private __monitor; protected _getAuthorizationHeader(): Promise; }