import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient"; import { type NormalizedClientOptions } from "../../../../BaseClient"; import * as core from "../../../../core"; import * as ElevenLabs from "../../../index"; export declare namespace EnvironmentVariablesClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class EnvironmentVariablesClient { protected readonly _options: NormalizedClientOptions; constructor(options?: EnvironmentVariablesClient.Options); /** * List all environment variables for the workspace with optional filtering * * @param {ElevenLabs.EnvironmentVariablesListRequest} request * @param {EnvironmentVariablesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link ElevenLabs.BadRequestError} * @throws {@link ElevenLabs.UnprocessableEntityError} * @throws {@link errors.ElevenLabsError} * @throws {@link errors.ElevenLabsTimeoutError} * * @example * await client.environmentVariables.list({ * cursor: "cursor", * pageSize: 1, * label: "label", * environment: "environment", * type: "string" * }) */ list(request?: ElevenLabs.EnvironmentVariablesListRequest, requestOptions?: EnvironmentVariablesClient.RequestOptions): core.HttpResponsePromise; private __list; /** * Create a new environment variable for the workspace * * @param {ElevenLabs.EnvironmentVariablesCreateRequestBody} request * @param {EnvironmentVariablesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link ElevenLabs.BadRequestError} * @throws {@link ElevenLabs.ConflictError} * @throws {@link ElevenLabs.UnprocessableEntityError} * @throws {@link errors.ElevenLabsError} * @throws {@link errors.ElevenLabsTimeoutError} * * @example * await client.environmentVariables.create({ * type: "string", * label: "label", * values: { * "key": "value" * } * }) */ create(request: ElevenLabs.EnvironmentVariablesCreateRequestBody, requestOptions?: EnvironmentVariablesClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Get a specific environment variable by ID * * @param {string} env_var_id * @param {EnvironmentVariablesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link ElevenLabs.NotFoundError} * @throws {@link ElevenLabs.UnprocessableEntityError} * @throws {@link errors.ElevenLabsError} * @throws {@link errors.ElevenLabsTimeoutError} * * @example * await client.environmentVariables.get("env_var_id") */ get(env_var_id: string, requestOptions?: EnvironmentVariablesClient.RequestOptions): core.HttpResponsePromise; private __get; /** * Delete an environment variable and its values in all environments. WARNING: Agents are not checked. A variable that an agent still uses (custom LLM, webhooks or cloud storage export, on any branch or version) is deleted anyway, and that agent's conversations then fail. The delete is only rejected while tools, MCP servers or the workspace conversation initiation webhook use the variable. * * @param {string} env_var_id * @param {EnvironmentVariablesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link ElevenLabs.NotFoundError} * @throws {@link ElevenLabs.ConflictError} * @throws {@link ElevenLabs.UnprocessableEntityError} * @throws {@link errors.ElevenLabsError} * @throws {@link errors.ElevenLabsTimeoutError} * * @example * await client.environmentVariables.delete("env_var_id") */ delete(env_var_id: string, requestOptions?: EnvironmentVariablesClient.RequestOptions): core.HttpResponsePromise; private __delete; /** * Replace an environment variable's values. Use null to remove its value for an environment (except production); delete an environment with DELETE /v1/convai/environments/{environment}. * * @param {string} env_var_id * @param {ElevenLabs.UpdateEnvironmentVariableRequest} request * @param {EnvironmentVariablesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link ElevenLabs.BadRequestError} * @throws {@link ElevenLabs.NotFoundError} * @throws {@link ElevenLabs.UnprocessableEntityError} * @throws {@link errors.ElevenLabsError} * @throws {@link errors.ElevenLabsTimeoutError} * * @example * await client.environmentVariables.update("env_var_id", { * values: {} * }) */ update(env_var_id: string, request: ElevenLabs.UpdateEnvironmentVariableRequest, requestOptions?: EnvironmentVariablesClient.RequestOptions): core.HttpResponsePromise; private __update; }