@gentrace/core
Version:
Core Gentrace Node.JS library
1 lines • 87.1 kB
Source Map (JSON)
{"version":3,"file":"v1-api.mjs","sources":["v1-api.js"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Gentrace API\n * These API routes are designed to ingest events from clients.\n *\n * The version of the OpenAPI document: 0.27.0\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport axiosWithOptionalFetch from \"../axios-instance\";\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, } from \"../common\";\n// @ts-ignore\nimport { BASE_PATH, BaseAPI, } from \"../base\";\n/**\n * V1Api - axios parameter creator\n * @export\n */\nexport const V1ApiAxiosParamCreator = function (configuration) {\n return {\n /**\n *\n * @summary Submit feedback\n * @param {FeedbackRequest} feedbackRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1FeedbackPost: (feedbackRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {\n // verify required parameter 'feedbackRequest' is not null or undefined\n assertParamExists(\"v1FeedbackPost\", \"feedbackRequest\", feedbackRequest);\n const localVarPath = `/v1/feedback`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n const localVarRequestOptions = Object.assign(Object.assign({ method: \"POST\" }, baseOptions), options);\n const localVarHeaderParameter = {};\n const localVarQueryParameter = {};\n // authentication bearerAuth required\n // http bearer authentication required\n yield setBearerAuthToObject(localVarHeaderParameter, configuration);\n localVarHeaderParameter[\"Content-Type\"] = \"application/json\";\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);\n localVarRequestOptions.data = serializeDataIfNeeded(feedbackRequest, localVarRequestOptions, configuration);\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n }),\n /**\n *\n * @summary Upload an image file\n * @param {string} [org] (If not using an organization API Key) the ID of the organization\n * @param {File} [file] The file to upload.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1FilesUploadPost: (org, file, options = {}) => __awaiter(this, void 0, void 0, function* () {\n const localVarPath = `/v1/files/upload`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n const localVarRequestOptions = Object.assign(Object.assign({ method: \"POST\" }, baseOptions), options);\n const localVarHeaderParameter = {};\n const localVarQueryParameter = {};\n const localVarFormParams = new ((configuration &&\n configuration.formDataCtor) ||\n FormData)();\n // authentication bearerAuth required\n // http bearer authentication required\n yield setBearerAuthToObject(localVarHeaderParameter, configuration);\n if (org !== undefined) {\n localVarQueryParameter[\"org\"] = org;\n }\n if (file !== undefined) {\n localVarFormParams.append(\"file\", file);\n }\n localVarHeaderParameter[\"Content-Type\"] = \"multipart/form-data\";\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);\n localVarRequestOptions.data = localVarFormParams;\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n }),\n /**\n *\n * @summary Get pipelines, optionally filtered by label\n * @param {string} [label] The label to filter pipelines by\n * @param {string} [slug] The slug to filter pipelines by\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1PipelinesGet: (label, slug, options = {}) => __awaiter(this, void 0, void 0, function* () {\n const localVarPath = `/v1/pipelines`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n const localVarRequestOptions = Object.assign(Object.assign({ method: \"GET\" }, baseOptions), options);\n const localVarHeaderParameter = {};\n const localVarQueryParameter = {};\n // authentication bearerAuth required\n // http bearer authentication required\n yield setBearerAuthToObject(localVarHeaderParameter, configuration);\n if (label !== undefined) {\n localVarQueryParameter[\"label\"] = label;\n }\n if (slug !== undefined) {\n localVarQueryParameter[\"slug\"] = slug;\n }\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n }),\n /**\n *\n * @summary Create a run\n * @param {RunRequest} runRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1RunPost: (runRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {\n // verify required parameter 'runRequest' is not null or undefined\n assertParamExists(\"v1RunPost\", \"runRequest\", runRequest);\n const localVarPath = `/v1/run`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n const localVarRequestOptions = Object.assign(Object.assign({ method: \"POST\" }, baseOptions), options);\n const localVarHeaderParameter = {};\n const localVarQueryParameter = {};\n // authentication bearerAuth required\n // http bearer authentication required\n yield setBearerAuthToObject(localVarHeaderParameter, configuration);\n localVarHeaderParameter[\"Content-Type\"] = \"application/json\";\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);\n localVarRequestOptions.data = serializeDataIfNeeded(runRequest, localVarRequestOptions, configuration);\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n }),\n /**\n * At least one of datasetId, pipelineId, or pipelineSlug must be provided\n * @summary Get test cases for a pipeline or dataset\n * @param {string} [datasetId] The ID of the Dataset to retrieve test cases for\n * @param {string} [pipelineId] The ID of the Pipeline to retrieve test cases for\n * @param {string} [pipelineSlug] The slug of the Pipeline to retrieve test cases for\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestCaseGet: (datasetId, pipelineId, pipelineSlug, options = {}) => __awaiter(this, void 0, void 0, function* () {\n const localVarPath = `/v1/test-case`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n const localVarRequestOptions = Object.assign(Object.assign({ method: \"GET\" }, baseOptions), options);\n const localVarHeaderParameter = {};\n const localVarQueryParameter = {};\n // authentication bearerAuth required\n // http bearer authentication required\n yield setBearerAuthToObject(localVarHeaderParameter, configuration);\n if (datasetId !== undefined) {\n localVarQueryParameter[\"datasetId\"] = datasetId;\n }\n if (pipelineId !== undefined) {\n localVarQueryParameter[\"pipelineId\"] = pipelineId;\n }\n if (pipelineSlug !== undefined) {\n localVarQueryParameter[\"pipelineSlug\"] = pipelineSlug;\n }\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n }),\n /**\n *\n * @summary Update an existing test case\n * @param {UpdateTestCase} updateTestCase\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestCasePatch: (updateTestCase, options = {}) => __awaiter(this, void 0, void 0, function* () {\n // verify required parameter 'updateTestCase' is not null or undefined\n assertParamExists(\"v1TestCasePatch\", \"updateTestCase\", updateTestCase);\n const localVarPath = `/v1/test-case`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n const localVarRequestOptions = Object.assign(Object.assign({ method: \"PATCH\" }, baseOptions), options);\n const localVarHeaderParameter = {};\n const localVarQueryParameter = {};\n // authentication bearerAuth required\n // http bearer authentication required\n yield setBearerAuthToObject(localVarHeaderParameter, configuration);\n localVarHeaderParameter[\"Content-Type\"] = \"application/json\";\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);\n localVarRequestOptions.data = serializeDataIfNeeded(updateTestCase, localVarRequestOptions, configuration);\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n }),\n /**\n *\n * @summary Create a new test case\n * @param {V1TestCasePostRequest} v1TestCasePostRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestCasePost: (v1TestCasePostRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {\n // verify required parameter 'v1TestCasePostRequest' is not null or undefined\n assertParamExists(\"v1TestCasePost\", \"v1TestCasePostRequest\", v1TestCasePostRequest);\n const localVarPath = `/v1/test-case`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n const localVarRequestOptions = Object.assign(Object.assign({ method: \"POST\" }, baseOptions), options);\n const localVarHeaderParameter = {};\n const localVarQueryParameter = {};\n // authentication bearerAuth required\n // http bearer authentication required\n yield setBearerAuthToObject(localVarHeaderParameter, configuration);\n localVarHeaderParameter[\"Content-Type\"] = \"application/json\";\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);\n localVarRequestOptions.data = serializeDataIfNeeded(v1TestCasePostRequest, localVarRequestOptions, configuration);\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n }),\n /**\n *\n * @summary Get test results for a pipeline\n * @param {string} pipelineSlug The slug of the pipeline\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultGet: (pipelineSlug, options = {}) => __awaiter(this, void 0, void 0, function* () {\n // verify required parameter 'pipelineSlug' is not null or undefined\n assertParamExists(\"v1TestResultGet\", \"pipelineSlug\", pipelineSlug);\n const localVarPath = `/v1/test-result`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n const localVarRequestOptions = Object.assign(Object.assign({ method: \"GET\" }, baseOptions), options);\n const localVarHeaderParameter = {};\n const localVarQueryParameter = {};\n // authentication bearerAuth required\n // http bearer authentication required\n yield setBearerAuthToObject(localVarHeaderParameter, configuration);\n if (pipelineSlug !== undefined) {\n localVarQueryParameter[\"pipelineSlug\"] = pipelineSlug;\n }\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n }),\n /**\n *\n * @summary Fetch test result by ID\n * @param {string} id The ID of the test result\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultIdGet: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {\n // verify required parameter 'id' is not null or undefined\n assertParamExists(\"v1TestResultIdGet\", \"id\", id);\n const localVarPath = `/v1/test-result/{id}`.replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n const localVarRequestOptions = Object.assign(Object.assign({ method: \"GET\" }, baseOptions), options);\n const localVarHeaderParameter = {};\n const localVarQueryParameter = {};\n // authentication bearerAuth required\n // http bearer authentication required\n yield setBearerAuthToObject(localVarHeaderParameter, configuration);\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n }),\n /**\n *\n * @summary Add more test runs to a result\n * @param {string} id The ID of the test result\n * @param {V1TestResultIdPostRequest} v1TestResultIdPostRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultIdPost: (id, v1TestResultIdPostRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {\n // verify required parameter 'id' is not null or undefined\n assertParamExists(\"v1TestResultIdPost\", \"id\", id);\n // verify required parameter 'v1TestResultIdPostRequest' is not null or undefined\n assertParamExists(\"v1TestResultIdPost\", \"v1TestResultIdPostRequest\", v1TestResultIdPostRequest);\n const localVarPath = `/v1/test-result/{id}`.replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n const localVarRequestOptions = Object.assign(Object.assign({ method: \"POST\" }, baseOptions), options);\n const localVarHeaderParameter = {};\n const localVarQueryParameter = {};\n // authentication bearerAuth required\n // http bearer authentication required\n yield setBearerAuthToObject(localVarHeaderParameter, configuration);\n localVarHeaderParameter[\"Content-Type\"] = \"application/json\";\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);\n localVarRequestOptions.data = serializeDataIfNeeded(v1TestResultIdPostRequest, localVarRequestOptions, configuration);\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n }),\n /**\n *\n * @summary Create a new test result from runs\n * @param {V1TestResultPostRequest} v1TestResultPostRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultPost: (v1TestResultPostRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {\n // verify required parameter 'v1TestResultPostRequest' is not null or undefined\n assertParamExists(\"v1TestResultPost\", \"v1TestResultPostRequest\", v1TestResultPostRequest);\n const localVarPath = `/v1/test-result`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n const localVarRequestOptions = Object.assign(Object.assign({ method: \"POST\" }, baseOptions), options);\n const localVarHeaderParameter = {};\n const localVarQueryParameter = {};\n // authentication bearerAuth required\n // http bearer authentication required\n yield setBearerAuthToObject(localVarHeaderParameter, configuration);\n localVarHeaderParameter[\"Content-Type\"] = \"application/json\";\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);\n localVarRequestOptions.data = serializeDataIfNeeded(v1TestResultPostRequest, localVarRequestOptions, configuration);\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n }),\n /**\n *\n * @summary Add more test runs to a result (simple version)\n * @param {string} id The ID of the test result\n * @param {V1TestResultSimpleIdPostRequest} v1TestResultSimpleIdPostRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultSimpleIdPost: (id, v1TestResultSimpleIdPostRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {\n // verify required parameter 'id' is not null or undefined\n assertParamExists(\"v1TestResultSimpleIdPost\", \"id\", id);\n // verify required parameter 'v1TestResultSimpleIdPostRequest' is not null or undefined\n assertParamExists(\"v1TestResultSimpleIdPost\", \"v1TestResultSimpleIdPostRequest\", v1TestResultSimpleIdPostRequest);\n const localVarPath = `/v1/test-result-simple/{id}`.replace(`{${\"id\"}}`, encodeURIComponent(String(id)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n const localVarRequestOptions = Object.assign(Object.assign({ method: \"POST\" }, baseOptions), options);\n const localVarHeaderParameter = {};\n const localVarQueryParameter = {};\n // authentication bearerAuth required\n // http bearer authentication required\n yield setBearerAuthToObject(localVarHeaderParameter, configuration);\n localVarHeaderParameter[\"Content-Type\"] = \"application/json\";\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);\n localVarRequestOptions.data = serializeDataIfNeeded(v1TestResultSimpleIdPostRequest, localVarRequestOptions, configuration);\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n }),\n /**\n *\n * @summary Create a new test result from test runs\n * @param {V1TestResultSimplePostRequest} v1TestResultSimplePostRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultSimplePost: (v1TestResultSimplePostRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {\n // verify required parameter 'v1TestResultSimplePostRequest' is not null or undefined\n assertParamExists(\"v1TestResultSimplePost\", \"v1TestResultSimplePostRequest\", v1TestResultSimplePostRequest);\n const localVarPath = `/v1/test-result-simple`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n const localVarRequestOptions = Object.assign(Object.assign({ method: \"POST\" }, baseOptions), options);\n const localVarHeaderParameter = {};\n const localVarQueryParameter = {};\n // authentication bearerAuth required\n // http bearer authentication required\n yield setBearerAuthToObject(localVarHeaderParameter, configuration);\n localVarHeaderParameter[\"Content-Type\"] = \"application/json\";\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);\n localVarRequestOptions.data = serializeDataIfNeeded(v1TestResultSimplePostRequest, localVarRequestOptions, configuration);\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n }),\n /**\n *\n * @summary Get status of the test result\n * @param {string} id The ID of the test result\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultStatusGet: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {\n // verify required parameter 'id' is not null or undefined\n assertParamExists(\"v1TestResultStatusGet\", \"id\", id);\n const localVarPath = `/v1/test-result/status`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n const localVarRequestOptions = Object.assign(Object.assign({ method: \"GET\" }, baseOptions), options);\n const localVarHeaderParameter = {};\n const localVarQueryParameter = {};\n // authentication bearerAuth required\n // http bearer authentication required\n yield setBearerAuthToObject(localVarHeaderParameter, configuration);\n if (id !== undefined) {\n localVarQueryParameter[\"id\"] = id;\n }\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n }),\n };\n};\n/**\n * V1Api - functional programming interface\n * @export\n */\nexport const V1ApiFp = function (configuration) {\n const localVarAxiosParamCreator = V1ApiAxiosParamCreator(configuration);\n return {\n /**\n *\n * @summary Submit feedback\n * @param {FeedbackRequest} feedbackRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1FeedbackPost(feedbackRequest, options) {\n return __awaiter(this, void 0, void 0, function* () {\n const localVarAxiosArgs = yield localVarAxiosParamCreator.v1FeedbackPost(feedbackRequest, options);\n return createRequestFunction(localVarAxiosArgs, axiosWithOptionalFetch, BASE_PATH, configuration);\n });\n },\n /**\n *\n * @summary Upload an image file\n * @param {string} [org] (If not using an organization API Key) the ID of the organization\n * @param {File} [file] The file to upload.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1FilesUploadPost(org, file, options) {\n return __awaiter(this, void 0, void 0, function* () {\n const localVarAxiosArgs = yield localVarAxiosParamCreator.v1FilesUploadPost(org, file, options);\n return createRequestFunction(localVarAxiosArgs, axiosWithOptionalFetch, BASE_PATH, configuration);\n });\n },\n /**\n *\n * @summary Get pipelines, optionally filtered by label\n * @param {string} [label] The label to filter pipelines by\n * @param {string} [slug] The slug to filter pipelines by\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1PipelinesGet(label, slug, options) {\n return __awaiter(this, void 0, void 0, function* () {\n const localVarAxiosArgs = yield localVarAxiosParamCreator.v1PipelinesGet(label, slug, options);\n return createRequestFunction(localVarAxiosArgs, axiosWithOptionalFetch, BASE_PATH, configuration);\n });\n },\n /**\n *\n * @summary Create a run\n * @param {RunRequest} runRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1RunPost(runRequest, options) {\n return __awaiter(this, void 0, void 0, function* () {\n const localVarAxiosArgs = yield localVarAxiosParamCreator.v1RunPost(runRequest, options);\n return createRequestFunction(localVarAxiosArgs, axiosWithOptionalFetch, BASE_PATH, configuration);\n });\n },\n /**\n * At least one of datasetId, pipelineId, or pipelineSlug must be provided\n * @summary Get test cases for a pipeline or dataset\n * @param {string} [datasetId] The ID of the Dataset to retrieve test cases for\n * @param {string} [pipelineId] The ID of the Pipeline to retrieve test cases for\n * @param {string} [pipelineSlug] The slug of the Pipeline to retrieve test cases for\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestCaseGet(datasetId, pipelineId, pipelineSlug, options) {\n return __awaiter(this, void 0, void 0, function* () {\n const localVarAxiosArgs = yield localVarAxiosParamCreator.v1TestCaseGet(datasetId, pipelineId, pipelineSlug, options);\n return createRequestFunction(localVarAxiosArgs, axiosWithOptionalFetch, BASE_PATH, configuration);\n });\n },\n /**\n *\n * @summary Update an existing test case\n * @param {UpdateTestCase} updateTestCase\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestCasePatch(updateTestCase, options) {\n return __awaiter(this, void 0, void 0, function* () {\n const localVarAxiosArgs = yield localVarAxiosParamCreator.v1TestCasePatch(updateTestCase, options);\n return createRequestFunction(localVarAxiosArgs, axiosWithOptionalFetch, BASE_PATH, configuration);\n });\n },\n /**\n *\n * @summary Create a new test case\n * @param {V1TestCasePostRequest} v1TestCasePostRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestCasePost(v1TestCasePostRequest, options) {\n return __awaiter(this, void 0, void 0, function* () {\n const localVarAxiosArgs = yield localVarAxiosParamCreator.v1TestCasePost(v1TestCasePostRequest, options);\n return createRequestFunction(localVarAxiosArgs, axiosWithOptionalFetch, BASE_PATH, configuration);\n });\n },\n /**\n *\n * @summary Get test results for a pipeline\n * @param {string} pipelineSlug The slug of the pipeline\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultGet(pipelineSlug, options) {\n return __awaiter(this, void 0, void 0, function* () {\n const localVarAxiosArgs = yield localVarAxiosParamCreator.v1TestResultGet(pipelineSlug, options);\n return createRequestFunction(localVarAxiosArgs, axiosWithOptionalFetch, BASE_PATH, configuration);\n });\n },\n /**\n *\n * @summary Fetch test result by ID\n * @param {string} id The ID of the test result\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultIdGet(id, options) {\n return __awaiter(this, void 0, void 0, function* () {\n const localVarAxiosArgs = yield localVarAxiosParamCreator.v1TestResultIdGet(id, options);\n return createRequestFunction(localVarAxiosArgs, axiosWithOptionalFetch, BASE_PATH, configuration);\n });\n },\n /**\n *\n * @summary Add more test runs to a result\n * @param {string} id The ID of the test result\n * @param {V1TestResultIdPostRequest} v1TestResultIdPostRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultIdPost(id, v1TestResultIdPostRequest, options) {\n return __awaiter(this, void 0, void 0, function* () {\n const localVarAxiosArgs = yield localVarAxiosParamCreator.v1TestResultIdPost(id, v1TestResultIdPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, axiosWithOptionalFetch, BASE_PATH, configuration);\n });\n },\n /**\n *\n * @summary Create a new test result from runs\n * @param {V1TestResultPostRequest} v1TestResultPostRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultPost(v1TestResultPostRequest, options) {\n return __awaiter(this, void 0, void 0, function* () {\n const localVarAxiosArgs = yield localVarAxiosParamCreator.v1TestResultPost(v1TestResultPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, axiosWithOptionalFetch, BASE_PATH, configuration);\n });\n },\n /**\n *\n * @summary Add more test runs to a result (simple version)\n * @param {string} id The ID of the test result\n * @param {V1TestResultSimpleIdPostRequest} v1TestResultSimpleIdPostRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultSimpleIdPost(id, v1TestResultSimpleIdPostRequest, options) {\n return __awaiter(this, void 0, void 0, function* () {\n const localVarAxiosArgs = yield localVarAxiosParamCreator.v1TestResultSimpleIdPost(id, v1TestResultSimpleIdPostRequest, options);\n return createRequestFunction(localVarAxiosArgs, axiosWithOptionalFetch, BASE_PATH, configuration);\n });\n },\n /**\n *\n * @summary Create a new test result from test runs\n * @param {V1TestResultSimplePostRequest} v1TestResultSimplePostRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultSimplePost(v1TestResultSimplePostRequest, options) {\n return __awaiter(this, void 0, void 0, function* () {\n const localVarAxiosArgs = yield localVarAxiosParamCreator.v1TestResultSimplePost(v1TestResultSimplePostRequest, options);\n return createRequestFunction(localVarAxiosArgs, axiosWithOptionalFetch, BASE_PATH, configuration);\n });\n },\n /**\n *\n * @summary Get status of the test result\n * @param {string} id The ID of the test result\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultStatusGet(id, options) {\n return __awaiter(this, void 0, void 0, function* () {\n const localVarAxiosArgs = yield localVarAxiosParamCreator.v1TestResultStatusGet(id, options);\n return createRequestFunction(localVarAxiosArgs, axiosWithOptionalFetch, BASE_PATH, configuration);\n });\n },\n };\n};\n/**\n * V1Api - factory interface\n * @export\n */\nexport const V1ApiFactory = function (configuration, basePath, axios) {\n const localVarFp = V1ApiFp(configuration);\n return {\n /**\n *\n * @summary Submit feedback\n * @param {FeedbackRequest} feedbackRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1FeedbackPost(feedbackRequest, options) {\n return localVarFp\n .v1FeedbackPost(feedbackRequest, options)\n .then((request) => request(axios, basePath));\n },\n /**\n *\n * @summary Upload an image file\n * @param {string} [org] (If not using an organization API Key) the ID of the organization\n * @param {File} [file] The file to upload.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1FilesUploadPost(org, file, options) {\n return localVarFp\n .v1FilesUploadPost(org, file, options)\n .then((request) => request(axios, basePath));\n },\n /**\n *\n * @summary Get pipelines, optionally filtered by label\n * @param {string} [label] The label to filter pipelines by\n * @param {string} [slug] The slug to filter pipelines by\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1PipelinesGet(label, slug, options) {\n return localVarFp\n .v1PipelinesGet(label, slug, options)\n .then((request) => request(axios, basePath));\n },\n /**\n *\n * @summary Create a run\n * @param {RunRequest} runRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1RunPost(runRequest, options) {\n return localVarFp\n .v1RunPost(runRequest, options)\n .then((request) => request(axios, basePath));\n },\n /**\n * At least one of datasetId, pipelineId, or pipelineSlug must be provided\n * @summary Get test cases for a pipeline or dataset\n * @param {string} [datasetId] The ID of the Dataset to retrieve test cases for\n * @param {string} [pipelineId] The ID of the Pipeline to retrieve test cases for\n * @param {string} [pipelineSlug] The slug of the Pipeline to retrieve test cases for\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestCaseGet(datasetId, pipelineId, pipelineSlug, options) {\n return localVarFp\n .v1TestCaseGet(datasetId, pipelineId, pipelineSlug, options)\n .then((request) => request(axios, basePath));\n },\n /**\n *\n * @summary Update an existing test case\n * @param {UpdateTestCase} updateTestCase\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestCasePatch(updateTestCase, options) {\n return localVarFp\n .v1TestCasePatch(updateTestCase, options)\n .then((request) => request(axios, basePath));\n },\n /**\n *\n * @summary Create a new test case\n * @param {V1TestCasePostRequest} v1TestCasePostRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestCasePost(v1TestCasePostRequest, options) {\n return localVarFp\n .v1TestCasePost(v1TestCasePostRequest, options)\n .then((request) => request(axios, basePath));\n },\n /**\n *\n * @summary Get test results for a pipeline\n * @param {string} pipelineSlug The slug of the pipeline\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultGet(pipelineSlug, options) {\n return localVarFp\n .v1TestResultGet(pipelineSlug, options)\n .then((request) => request(axios, basePath));\n },\n /**\n *\n * @summary Fetch test result by ID\n * @param {string} id The ID of the test result\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultIdGet(id, options) {\n return localVarFp\n .v1TestResultIdGet(id, options)\n .then((request) => request(axios, basePath));\n },\n /**\n *\n * @summary Add more test runs to a result\n * @param {string} id The ID of the test result\n * @param {V1TestResultIdPostRequest} v1TestResultIdPostRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultIdPost(id, v1TestResultIdPostRequest, options) {\n return localVarFp\n .v1TestResultIdPost(id, v1TestResultIdPostRequest, options)\n .then((request) => request(axios, basePath));\n },\n /**\n *\n * @summary Create a new test result from runs\n * @param {V1TestResultPostRequest} v1TestResultPostRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultPost(v1TestResultPostRequest, options) {\n return localVarFp\n .v1TestResultPost(v1TestResultPostRequest, options)\n .then((request) => request(axios, basePath));\n },\n /**\n *\n * @summary Add more test runs to a result (simple version)\n * @param {string} id The ID of the test result\n * @param {V1TestResultSimpleIdPostRequest} v1TestResultSimpleIdPostRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultSimpleIdPost(id, v1TestResultSimpleIdPostRequest, options) {\n return localVarFp\n .v1TestResultSimpleIdPost(id, v1TestResultSimpleIdPostRequest, options)\n .then((request) => request(axios, basePath));\n },\n /**\n *\n * @summary Create a new test result from test runs\n * @param {V1TestResultSimplePostRequest} v1TestResultSimplePostRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultSimplePost(v1TestResultSimplePostRequest, options) {\n return localVarFp\n .v1TestResultSimplePost(v1TestResultSimplePostRequest, options)\n .then((request) => request(axios, basePath));\n },\n /**\n *\n * @summary Get status of the test result\n * @param {string} id The ID of the test result\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n v1TestResultStatusGet(id, options) {\n return localVarFp\n .v1TestResultStatusGet(id, options)\n .then((request) => request(axios, basePath));\n },\n };\n};\n/**\n * V1Api - object-oriented interface\n * @export\n * @class V1Api\n * @extends {BaseAPI}\n */\nexport class V1Api extends BaseAPI {\n /**\n *\n * @summary Submit feedback\n * @param {FeedbackRequest} feedbackRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof V1Api\n */\n v1FeedbackPost(feedbackRequest, options) {\n return V1ApiFp(this.configuration)\n .v1FeedbackPost(feedbackRequest, options)\n .then((request) => request(this.axios, this.basePath));\n }\n /**\n *\n * @summary Upload an image file\n * @param {string} [org] (If not using an organization API Key) the ID of the organization\n * @param {File} [file] The file to upload.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof V1Api\n */\n v1FilesUploadPost(org, file, options) {\n return V1ApiFp(this.configuration)\n .v1FilesUploadPost(org, file, options)\n .then((request) => request(this.axios, this.basePath));\n }\n /**\n *\n * @summary Get pipelines, optionally filtered by label\n * @param {string} [label] The label to filter pipelines by\n * @param {string} [slug] The slug to filter pipelines by\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof V1Api\n */\n v1PipelinesGet(label, slug, options) {\n return V1ApiFp(this.configuration)\n .v1PipelinesGet(label, slug, options)\n .then((request) => request(this.axios, this.basePath));\n }\n /**\n *\n * @summary Create a run\n * @param {RunRequest} runRequest\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof V1Api\n */\n v1RunPost(runRequest, options) {\n return V1ApiFp(this.configuration)\n .v1RunPost(runRequest, options)\n .then((request) => request(this.axios, this.basePath));\n }\n /**\n * At least one of datasetId, pipelineId, or pipelineSlug must be provided\n * @summary Get test cases for a pipeline or dataset\n * @param {string} [datasetId] The ID of the Dataset to retrieve test cases for\n * @param {string} [pipelineId] The ID of the Pipeline to retrieve test cases for\n * @param