/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Vellum from "../../../index"; export declare namespace Sandboxes { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; apiKey: core.Supplier; /** Override the X-API-Version header */ apiVersion?: core.Supplier; } 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; /** Override the X-API-Version header */ apiVersion?: Vellum.ApiVersionEnum | undefined; /** Additional headers to include in the request. */ headers?: Record; } } export declare class Sandboxes { protected readonly _options: Sandboxes.Options; constructor(_options: Sandboxes.Options); /** * @param {string} id - A UUID string identifying this sandbox. * @param {string} promptVariantId - An ID identifying the Prompt you'd like to deploy. * @param {Vellum.DeploySandboxPromptRequest} request * @param {Sandboxes.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.sandboxes.deployPrompt("id", "prompt_variant_id") */ deployPrompt(id: string, promptVariantId: string, request?: Vellum.DeploySandboxPromptRequest, requestOptions?: Sandboxes.RequestOptions): core.HttpResponsePromise; private __deployPrompt; /** * Upserts a new scenario for a sandbox, keying off of the optionally provided scenario id. * * If an id is provided and has a match, the scenario will be updated. If no id is provided or no match * is found, a new scenario will be appended to the end. * * Note that a full replacement of the scenario is performed, so any fields not provided will be removed * or overwritten with default values. * * @param {string} id - A UUID string identifying this sandbox. * @param {Vellum.UpsertSandboxScenarioRequest} request * @param {Sandboxes.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.sandboxes.upsertSandboxScenario("id", { * inputs: [{ * type: "STRING", * name: "x" * }, { * type: "STRING", * name: "x" * }] * }) */ upsertSandboxScenario(id: string, request: Vellum.UpsertSandboxScenarioRequest, requestOptions?: Sandboxes.RequestOptions): core.HttpResponsePromise; private __upsertSandboxScenario; /** * Deletes an existing scenario from a sandbox, keying off of the provided scenario id. * * @param {string} id - A UUID string identifying this sandbox. * @param {string} scenarioId - An id identifying the scenario that you'd like to delete * @param {Sandboxes.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.sandboxes.deleteSandboxScenario("id", "scenario_id") */ deleteSandboxScenario(id: string, scenarioId: string, requestOptions?: Sandboxes.RequestOptions): core.HttpResponsePromise; private __deleteSandboxScenario; protected _getCustomAuthorizationHeaders(): Promise<{ "X-API-KEY": string; }>; }