/** * 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 TestSuites { 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 TestSuites { protected readonly _options: TestSuites.Options; constructor(_options: TestSuites.Options); /** * List the Test Cases associated with a Test Suite * * @param {string} id - Either the Test Suites' ID or its unique name * @param {Vellum.ListTestSuiteTestCasesRequest} request * @param {TestSuites.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.testSuites.listTestSuiteTestCases("id") */ listTestSuiteTestCases(id: string, request?: Vellum.ListTestSuiteTestCasesRequest, requestOptions?: TestSuites.RequestOptions): core.HttpResponsePromise; private __listTestSuiteTestCases; /** * Upserts a new test case for a test suite, keying off of the optionally provided test case id. * * If an id is provided and has a match, the test case will be updated. If no id is provided or no match * is found, a new test case will be appended to the end. * * Note that a full replacement of the test case is performed, so any fields not provided will be removed * or overwritten with default values. * * @param {string} id - Either the Test Suites' ID or its unique name * @param {Vellum.UpsertTestSuiteTestCaseRequest} request * @param {TestSuites.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.testSuites.upsertTestSuiteTestCase("id", { * inputValues: [{ * type: "STRING", * name: "x" * }, { * type: "STRING", * name: "x" * }], * evaluationValues: [{ * type: "STRING", * name: "x" * }, { * type: "STRING", * name: "x" * }] * }) */ upsertTestSuiteTestCase(id: string, request: Vellum.UpsertTestSuiteTestCaseRequest, requestOptions?: TestSuites.RequestOptions): core.HttpResponsePromise; private __upsertTestSuiteTestCase; /** * Created, replace, and delete Test Cases within the specified Test Suite in bulk */ testSuiteTestCasesBulk(id: string, request: Vellum.TestSuiteTestCaseBulkOperationRequest[], requestOptions?: TestSuites.RequestOptions): core.HttpResponsePromise>; private __testSuiteTestCasesBulk; /** * Deletes an existing test case for a test suite, keying off of the test case id. * * @param {string} id - Either the Test Suites' ID or its unique name * @param {string} testCaseId - An id identifying the test case that you'd like to delete * @param {TestSuites.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.testSuites.deleteTestSuiteTestCase("id", "test_case_id") */ deleteTestSuiteTestCase(id: string, testCaseId: string, requestOptions?: TestSuites.RequestOptions): core.HttpResponsePromise; private __deleteTestSuiteTestCase; protected _getCustomAuthorizationHeaders(): Promise<{ "X-API-KEY": string; }>; }