@aignostics/sdk 3.5.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aignostics-sdk-3.6.0.tgz +0 -0
- package/dist/{api-CrZaHZZr.d.cts → api-B0sQ1mLM.d.cts} +36 -6
- package/dist/{api-CrZaHZZr.d.ts → api-B0sQ1mLM.d.ts} +36 -6
- package/dist/index.cjs +112 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -10
- package/dist/index.d.ts +52 -10
- package/dist/index.js +112 -22
- package/dist/index.js.map +1 -1
- package/dist/test-utils/http-mocks.d.cts +1 -1
- package/dist/test-utils/http-mocks.d.ts +1 -1
- package/package.json +1 -1
- package/dist/aignostics-sdk-3.5.0.tgz +0 -0
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../package.json","../src/generated/base.ts","../src/generated/common.ts","../src/generated/api.ts","../src/generated/configuration.ts","../src/errors.ts","../src/entities/application-run/utils.ts","../src/entities/application-run/process-application-run.ts","../src/entities/run-item/utils.ts","../src/entities/run-item/process-run-item.ts","../../../node_modules/is-network-error/index.js","../../../node_modules/p-retry/index.js","../src/utils/downloadWithRetry.ts","../src/platform-sdk.ts","../src/index.ts"],"names":["globalAxios","BASE_PATH","context","isAxiosError"],"mappings":";;;;AAAA,IAAA,eAAA,GAAA;AAAA,EAEE,OAAA,EAAW,mBAmDb,CAAA;AChCO,IAAM,SAAA,GAAY,6CAAA,CAA8C,OAAA,CAAQ,MAAA,EAAQ,EAAE,CAAA;AA4BlF,IAAM,UAAN,MAAc;AAAA,EAGjB,WAAA,CAAY,aAAA,EAAyC,QAAA,GAAmB,SAAA,EAAqB,QAAuBA,YAAA,EAAa;AAA5E,IAAA,IAAA,CAAA,QAAA,GAAA,QAAA;AAAwC,IAAA,IAAA,CAAA,KAAA,GAAA,KAAA;AACzF,IAAA,IAAI,aAAA,EAAe;AACf,MAA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ACxpBA,IAAO,aAAA,GAAQ","file":"index.js","sourcesContent":["{\n \"name\": \"@aignostics/sdk\",\n \"version\": \"0.0.0-development\",\n \"description\": \"The TypeScript SDK for Aignostics\",\n \"type\": \"module\",\n \"main\": \"./dist/index.cjs\",\n \"module\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\",\n \"require\": \"./dist/index.cjs\"\n },\n \"./test\": {\n \"types\": \"./dist/test-utils/http-mocks.d.ts\",\n \"import\": \"./dist/test-utils/http-mocks.js\",\n \"require\": \"./dist/test-utils/http-mocks.cjs\"\n },\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"dist\",\n \"README.md\",\n \"LICENSE\"\n ],\n \"publishConfig\": {\n \"registry\": \"https://registry.npmjs.org\",\n \"access\": \"public\"\n },\n \"scripts\": {\n \"build\": \"nx build\",\n \"test\": \"nx test\",\n \"lint\": \"nx lint\",\n \"typecheck\": \"nx typecheck\"\n },\n \"keywords\": [\n \"aignostics\",\n \"platform\",\n \"sdk\",\n \"typescript\",\n \"api\"\n ],\n \"author\": \"Aignostics\",\n \"license\": \"MIT\",\n \"dependencies\": {\n \"axios\": \"^1.12.2\",\n \"p-retry\": \"^8.0.0\",\n \"zod\": \"^4.0.17\"\n },\n \"engines\": {\n \"node\": \">=18.0.0\"\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Aignostics Platform API\n * The Aignostics Platform is a cloud-based service that enables organizations to access advanced computational pathology applications through a secure API. The platform provides standardized access to Aignostics\\' portfolio of computational pathology solutions, with Atlas H&E-TME serving as an example of the available API endpoints. To begin using the platform, your organization must first be registered by our business support team. If you don\\'t have an account yet, please contact your account manager or email support@aignostics.com to get started. More information about our applications can be found on [https://platform.aignostics.com](https://platform.aignostics.com). **How to authorize and test API endpoints:** 1. Click the \\\"Authorize\\\" button in the right corner below 3. Click \\\"Authorize\\\" button in the dialog to log in with your Aignostics Platform credentials 4. After successful login, you\\'ll be redirected back and can use \\\"Try it out\\\" on any endpoint **Note**: You only need to authorize once per session. The lock icons next to endpoints will show green when authorized. \n *\n * The version of the OpenAPI document: 1.6.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 */\n\n\nimport type { Configuration } from './configuration.js';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://platform-staging.aignostics.com/api\".replace(/\\/+$/, \"\");\n\n/**\n *\n * @export\n */\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\n/**\n *\n * @export\n * @interface RequestArgs\n */\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\n/**\n *\n * @export\n * @class BaseAPI\n */\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\n/**\n *\n * @export\n * @class RequiredError\n * @extends {Error}\n */\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\n/**\n *\n * @export\n */\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Aignostics Platform API\n * The Aignostics Platform is a cloud-based service that enables organizations to access advanced computational pathology applications through a secure API. The platform provides standardized access to Aignostics\\' portfolio of computational pathology solutions, with Atlas H&E-TME serving as an example of the available API endpoints. To begin using the platform, your organization must first be registered by our business support team. If you don\\'t have an account yet, please contact your account manager or email support@aignostics.com to get started. More information about our applications can be found on [https://platform.aignostics.com](https://platform.aignostics.com). **How to authorize and test API endpoints:** 1. Click the \\\"Authorize\\\" button in the right corner below 3. Click \\\"Authorize\\\" button in the dialog to log in with your Aignostics Platform credentials 4. After successful login, you\\'ll be redirected back and can use \\\"Try it out\\\" on any endpoint **Note**: You only need to authorize once per session. The lock icons next to endpoints will show green when authorized. \n *\n * The version of the OpenAPI document: 1.6.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 */\n\n\nimport type { Configuration } from \"./configuration.js\";\nimport type { RequestArgs } from \"./base.js\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base.js\";\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Aignostics Platform API\n * The Aignostics Platform is a cloud-based service that enables organizations to access advanced computational pathology applications through a secure API. The platform provides standardized access to Aignostics\\' portfolio of computational pathology solutions, with Atlas H&E-TME serving as an example of the available API endpoints. To begin using the platform, your organization must first be registered by our business support team. If you don\\'t have an account yet, please contact your account manager or email support@aignostics.com to get started. More information about our applications can be found on [https://platform.aignostics.com](https://platform.aignostics.com). **How to authorize and test API endpoints:** 1. Click the \\\"Authorize\\\" button in the right corner below 3. Click \\\"Authorize\\\" button in the dialog to log in with your Aignostics Platform credentials 4. After successful login, you\\'ll be redirected back and can use \\\"Try it out\\\" on any endpoint **Note**: You only need to authorize once per session. The lock icons next to endpoints will show green when authorized. \n *\n * The version of the OpenAPI document: 1.6.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 */\n\n\nimport type { Configuration } from './configuration.js';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';\nimport type { RequestArgs } from './base.js';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base.js';\n\n/**\n * Response schema for `List available applications` and `Read Application by Id` endpoints\n * @export\n * @interface ApplicationReadResponse\n */\nexport interface ApplicationReadResponse {\n /**\n * Application ID\n * @type {string}\n * @memberof ApplicationReadResponse\n */\n 'application_id': string;\n /**\n * Application display name\n * @type {string}\n * @memberof ApplicationReadResponse\n */\n 'name': string;\n /**\n * Regulatory classes, to which the applications comply with. Possible values include: RUO, IVDR, FDA.\n * @type {Array<string>}\n * @memberof ApplicationReadResponse\n */\n 'regulatory_classes': Array<string>;\n /**\n * Describing what the application can do \n * @type {string}\n * @memberof ApplicationReadResponse\n */\n 'description': string;\n /**\n * All version numbers available to the user\n * @type {Array<ApplicationVersion>}\n * @memberof ApplicationReadResponse\n */\n 'versions': Array<ApplicationVersion>;\n}\n/**\n * Response schema for `List available applications` and `Read Application by Id` endpoints\n * @export\n * @interface ApplicationReadShortResponse\n */\nexport interface ApplicationReadShortResponse {\n /**\n * Application ID\n * @type {string}\n * @memberof ApplicationReadShortResponse\n */\n 'application_id': string;\n /**\n * Application display name\n * @type {string}\n * @memberof ApplicationReadShortResponse\n */\n 'name': string;\n /**\n * Regulatory classes, to which the applications comply with. Possible values include: RUO, IVDR, FDA.\n * @type {Array<string>}\n * @memberof ApplicationReadShortResponse\n */\n 'regulatory_classes': Array<string>;\n /**\n * Describing what the application can do \n * @type {string}\n * @memberof ApplicationReadShortResponse\n */\n 'description': string;\n /**\n * \n * @type {ApplicationVersion}\n * @memberof ApplicationReadShortResponse\n */\n 'latest_version'?: ApplicationVersion | null;\n}\n/**\n * \n * @export\n * @interface ApplicationVersion\n */\nexport interface ApplicationVersion {\n /**\n * The number of the latest version\n * @type {string}\n * @memberof ApplicationVersion\n */\n 'number': string;\n /**\n * The timestamp for when the application version was made available in the Platform\n * @type {string}\n * @memberof ApplicationVersion\n */\n 'released_at': string;\n}\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const ArtifactOutput = {\n None: 'NONE',\n Available: 'AVAILABLE',\n DeletedByUser: 'DELETED_BY_USER',\n DeletedBySystem: 'DELETED_BY_SYSTEM'\n} as const;\n\nexport type ArtifactOutput = typeof ArtifactOutput[keyof typeof ArtifactOutput];\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const ArtifactState = {\n Pending: 'PENDING',\n Processing: 'PROCESSING',\n Terminated: 'TERMINATED'\n} as const;\n\nexport type ArtifactState = typeof ArtifactState[keyof typeof ArtifactState];\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const ArtifactTerminationReason = {\n Succeeded: 'SUCCEEDED',\n UserError: 'USER_ERROR',\n SystemError: 'SYSTEM_ERROR',\n Skipped: 'SKIPPED'\n} as const;\n\nexport type ArtifactTerminationReason = typeof ArtifactTerminationReason[keyof typeof ArtifactTerminationReason];\n\n\n/**\n * \n * @export\n * @interface CustomMetadataUpdateRequest\n */\nexport interface CustomMetadataUpdateRequest {\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof CustomMetadataUpdateRequest\n */\n 'custom_metadata'?: { [key: string]: any; } | null;\n /**\n * \n * @type {string}\n * @memberof CustomMetadataUpdateRequest\n */\n 'custom_metadata_checksum'?: string | null;\n}\n/**\n * \n * @export\n * @interface CustomMetadataUpdateResponse\n */\nexport interface CustomMetadataUpdateResponse {\n /**\n * \n * @type {string}\n * @memberof CustomMetadataUpdateResponse\n */\n 'custom_metadata_checksum': string | null;\n}\n/**\n * \n * @export\n * @interface GrantCreateRequest\n */\nexport interface GrantCreateRequest {\n /**\n * \n * @type {ResourceType}\n * @memberof GrantCreateRequest\n */\n 'resource_type': ResourceType;\n /**\n * \n * @type {string}\n * @memberof GrantCreateRequest\n */\n 'resource_id': string;\n /**\n * \n * @type {SubjectType}\n * @memberof GrantCreateRequest\n */\n 'subject_type': SubjectType;\n /**\n * \n * @type {string}\n * @memberof GrantCreateRequest\n */\n 'subject_id'?: string | null;\n /**\n * \n * @type {string}\n * @memberof GrantCreateRequest\n */\n 'subject_email'?: string | null;\n /**\n * \n * @type {GrantRelation}\n * @memberof GrantCreateRequest\n */\n 'relation': GrantRelation;\n}\n\n\n/**\n * \n * @export\n * @interface GrantReadResponse\n */\nexport interface GrantReadResponse {\n /**\n * \n * @type {string}\n * @memberof GrantReadResponse\n */\n 'grant_id': string;\n /**\n * \n * @type {ResourceType}\n * @memberof GrantReadResponse\n */\n 'resource_type': ResourceType;\n /**\n * \n * @type {string}\n * @memberof GrantReadResponse\n */\n 'resource_id': string;\n /**\n * \n * @type {SubjectType}\n * @memberof GrantReadResponse\n */\n 'subject_type': SubjectType;\n /**\n * \n * @type {string}\n * @memberof GrantReadResponse\n */\n 'subject_id': string;\n /**\n * \n * @type {GrantRelation}\n * @memberof GrantReadResponse\n */\n 'relation': GrantRelation;\n /**\n * \n * @type {string}\n * @memberof GrantReadResponse\n */\n 'created_by': string;\n /**\n * \n * @type {string}\n * @memberof GrantReadResponse\n */\n 'created_at': string;\n /**\n * \n * @type {boolean}\n * @memberof GrantReadResponse\n */\n 'revoked': boolean;\n}\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const GrantRelation = {\n Owner: 'owner',\n Editor: 'editor',\n Viewer: 'viewer'\n} as const;\n\nexport type GrantRelation = typeof GrantRelation[keyof typeof GrantRelation];\n\n\n/**\n * \n * @export\n * @interface HTTPValidationError\n */\nexport interface HTTPValidationError {\n /**\n * \n * @type {Array<ValidationError>}\n * @memberof HTTPValidationError\n */\n 'detail'?: Array<ValidationError>;\n}\n/**\n * \n * @export\n * @interface InputArtifact\n */\nexport interface InputArtifact {\n /**\n * \n * @type {string}\n * @memberof InputArtifact\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof InputArtifact\n */\n 'mime_type': string;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof InputArtifact\n */\n 'metadata_schema': { [key: string]: any; };\n}\n/**\n * Input artifact containing the slide image and associated metadata.\n * @export\n * @interface InputArtifactCreationRequest\n */\nexport interface InputArtifactCreationRequest {\n /**\n * Type of artifact. For Atlas H&E-TME, use \\\"input_slide\\\"\n * @type {string}\n * @memberof InputArtifactCreationRequest\n */\n 'name': string;\n /**\n * [Signed URL](https://cloud.google.com/cdn/docs/using-signed-urls) to the input artifact file. The URL should be valid for at least 6 days from the payload submission time.\n * @type {string}\n * @memberof InputArtifactCreationRequest\n */\n 'download_url': string;\n /**\n * The metadata of the artifact, required by the application version. The JSON schema of the metadata can be requested by `/v1/versions/{application_version_id}`. The schema is located in `input_artifacts.[].metadata_schema`\n * @type {{ [key: string]: any; }}\n * @memberof InputArtifactCreationRequest\n */\n 'metadata': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface InputArtifactResultReadResponse\n */\nexport interface InputArtifactResultReadResponse {\n /**\n * The Id of the artifact. Used internally\n * @type {string}\n * @memberof InputArtifactResultReadResponse\n */\n 'input_artifact_id': string;\n /**\n * Name of the input from the schema from the `/v1/versions/{version_id}` endpoint.\n * @type {string}\n * @memberof InputArtifactResultReadResponse\n */\n 'name': string;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof InputArtifactResultReadResponse\n */\n 'metadata'?: { [key: string]: any; } | null;\n /**\n * \n * @type {string}\n * @memberof InputArtifactResultReadResponse\n */\n 'download_url'?: string | null;\n}\n/**\n * Individual item (slide) to be processed in a run.\n * @export\n * @interface ItemCreationRequest\n */\nexport interface ItemCreationRequest {\n /**\n * Unique identifier for this item within the run. Used for referencing items. Must be unique across all items in the same run\n * @type {string}\n * @memberof ItemCreationRequest\n */\n 'external_id': string;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof ItemCreationRequest\n */\n 'custom_metadata'?: { [key: string]: any; } | null;\n /**\n * List of input artifacts for this item. For Atlas H&E-TME, typically contains one artifact (the slide image)\n * @type {Array<InputArtifactCreationRequest>}\n * @memberof ItemCreationRequest\n */\n 'input_artifacts': Array<InputArtifactCreationRequest>;\n}\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const ItemOutput = {\n None: 'NONE',\n Full: 'FULL'\n} as const;\n\nexport type ItemOutput = typeof ItemOutput[keyof typeof ItemOutput];\n\n\n/**\n * Response schema for items in `List Run Items` endpoint\n * @export\n * @interface ItemResultReadResponse\n */\nexport interface ItemResultReadResponse {\n /**\n * Item UUID generated by the Platform\n * @type {string}\n * @memberof ItemResultReadResponse\n */\n 'item_id': string;\n /**\n * The external_id of the item from the user payload\n * @type {string}\n * @memberof ItemResultReadResponse\n */\n 'external_id': string;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof ItemResultReadResponse\n */\n 'custom_metadata': { [key: string]: any; } | null;\n /**\n * \n * @type {string}\n * @memberof ItemResultReadResponse\n */\n 'custom_metadata_checksum'?: string | null;\n /**\n * \n * @type {number}\n * @memberof ItemResultReadResponse\n */\n 'queue_position_org'?: number | null;\n /**\n * \n * @type {number}\n * @memberof ItemResultReadResponse\n */\n 'queue_position_platform'?: number | null;\n /**\n * The item moves from `PENDING` to `PROCESSING` to `TERMINATED` state. When terminated, consult the `termination_reason` property to see whether it was successful. \n * @type {ItemState}\n * @memberof ItemResultReadResponse\n */\n 'state': ItemState;\n /**\n * The output status of the item (NONE, FULL)\n * @type {ItemOutput}\n * @memberof ItemResultReadResponse\n */\n 'output': ItemOutput;\n /**\n * \n * @type {ItemTerminationReason}\n * @memberof ItemResultReadResponse\n */\n 'termination_reason'?: ItemTerminationReason | null;\n /**\n * \n * @type {string}\n * @memberof ItemResultReadResponse\n */\n 'error_code'?: string | null;\n /**\n * \n * @type {string}\n * @memberof ItemResultReadResponse\n */\n 'error_message'?: string | null;\n /**\n * \n * @type {string}\n * @memberof ItemResultReadResponse\n */\n 'terminated_at'?: string | null;\n /**\n * The input artifact(s) provided by the user. For most applications, this will be one artifact that defines the whole slide image to be processed. \n * @type {Array<InputArtifactResultReadResponse>}\n * @memberof ItemResultReadResponse\n */\n 'input_artifacts': Array<InputArtifactResultReadResponse>;\n /**\n * The list of the results generated by the application algorithm. The number of files and their types depend on the particular application version, call `/v1/versions/{version_id}` to get the details. \n * @type {Array<OutputArtifactResultReadResponse>}\n * @memberof ItemResultReadResponse\n */\n 'output_artifacts': Array<OutputArtifactResultReadResponse>;\n}\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const ItemState = {\n Pending: 'PENDING',\n Processing: 'PROCESSING',\n Terminated: 'TERMINATED'\n} as const;\n\nexport type ItemState = typeof ItemState[keyof typeof ItemState];\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const ItemTerminationReason = {\n Succeeded: 'SUCCEEDED',\n UserError: 'USER_ERROR',\n SystemError: 'SYSTEM_ERROR',\n Skipped: 'SKIPPED'\n} as const;\n\nexport type ItemTerminationReason = typeof ItemTerminationReason[keyof typeof ItemTerminationReason];\n\n\n/**\n * Response schema for `Get current user` endpoint\n * @export\n * @interface MeReadResponse\n */\nexport interface MeReadResponse {\n /**\n * \n * @type {UserReadResponse}\n * @memberof MeReadResponse\n */\n 'user': UserReadResponse;\n /**\n * \n * @type {OrganizationReadResponse}\n * @memberof MeReadResponse\n */\n 'organization': OrganizationReadResponse;\n}\n/**\n * Part of response schema for Organization object in `Get current user` endpoint. This model corresponds to the response schema returned from Auth0 GET /v2/organizations/{id} endpoint, flattens out the metadata out and doesn\\'t return branding or token_quota objects. For details, see: https://auth0.com/docs/api/management/v2/organizations/get-organizations-by-id #### Configuration for integrating with Aignostics Platform services. The Aignostics Platform API requires signed URLs for input artifacts (slide images). To simplify this process, Aignostics provides a dedicated storage bucket. The HMAC credentials below grant read and write access to this bucket, allowing you to upload files and generate the signed URLs needed for API calls. Additionally, logging and error reporting tokens enable Aignostics to provide better support and monitor system performance for your integration.\n * @export\n * @interface OrganizationReadResponse\n */\nexport interface OrganizationReadResponse {\n /**\n * Unique organization identifier\n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'id': string;\n /**\n * \n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'name'?: string | null;\n /**\n * \n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'display_name'?: string | null;\n /**\n * HMAC access key ID for the Aignostics-provided storage bucket. Used to authenticate requests for uploading files and generating signed URLs\n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_bucket_hmac_access_key_id': string;\n /**\n * HMAC secret access key paired with the access key ID. Keep this credential secure.\n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_bucket_hmac_secret_access_key': string;\n /**\n * Name of the bucket provided by Aignostics for storing input artifacts (slide images)\n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_bucket_name': string;\n /**\n * Protocol to use for bucket access. Defines the URL scheme for connecting to the storage service\n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_bucket_protocol': string;\n /**\n * Authentication token for Logfire observability service. Enables sending application logs and performance metrics to Aignostics for monitoring and support\n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_logfire_token': string;\n /**\n * Data Source Name (DSN) for Sentry error tracking service. Allows automatic reporting of errors and exceptions to Aignostics support team\n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_sentry_dsn': string;\n}\n/**\n * \n * @export\n * @interface OutputArtifact\n */\nexport interface OutputArtifact {\n /**\n * \n * @type {string}\n * @memberof OutputArtifact\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof OutputArtifact\n */\n 'mime_type': string;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof OutputArtifact\n */\n 'metadata_schema': { [key: string]: any; };\n /**\n * \n * @type {OutputArtifactScope}\n * @memberof OutputArtifact\n */\n 'scope': OutputArtifactScope;\n /**\n * \n * @type {OutputArtifactVisibility}\n * @memberof OutputArtifact\n */\n 'visibility': OutputArtifactVisibility;\n}\n\n\n/**\n * \n * @export\n * @interface OutputArtifactResultReadResponse\n */\nexport interface OutputArtifactResultReadResponse {\n /**\n * The Id of the artifact. Used internally\n * @type {string}\n * @memberof OutputArtifactResultReadResponse\n */\n 'output_artifact_id': string;\n /**\n * Name of the output from the output schema from the `/v1/versions/{version_id}` endpoint. \n * @type {string}\n * @memberof OutputArtifactResultReadResponse\n */\n 'name': string;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof OutputArtifactResultReadResponse\n */\n 'metadata'?: { [key: string]: any; } | null;\n /**\n * The current state of the artifact (PENDING, PROCESSING, TERMINATED)\n * @type {ArtifactState}\n * @memberof OutputArtifactResultReadResponse\n */\n 'state': ArtifactState;\n /**\n * \n * @type {ArtifactTerminationReason}\n * @memberof OutputArtifactResultReadResponse\n */\n 'termination_reason'?: ArtifactTerminationReason | null;\n /**\n * The output status of the artifact (NONE, FULL)\n * @type {ArtifactOutput}\n * @memberof OutputArtifactResultReadResponse\n */\n 'output': ArtifactOutput;\n /**\n * \n * @type {string}\n * @memberof OutputArtifactResultReadResponse\n */\n 'error_code'?: string | null;\n /**\n * \n * @type {string}\n * @memberof OutputArtifactResultReadResponse\n */\n 'error_message'?: string | null;\n /**\n * \n * @type {string}\n * @memberof OutputArtifactResultReadResponse\n */\n 'download_url'?: string | null;\n}\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const OutputArtifactScope = {\n Item: 'ITEM',\n Global: 'GLOBAL'\n} as const;\n\nexport type OutputArtifactScope = typeof OutputArtifactScope[keyof typeof OutputArtifactScope];\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const OutputArtifactVisibility = {\n Internal: 'INTERNAL',\n External: 'EXTERNAL'\n} as const;\n\nexport type OutputArtifactVisibility = typeof OutputArtifactVisibility[keyof typeof OutputArtifactVisibility];\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const ResourceType = {\n Run: 'run',\n Item: 'item',\n OutputArtifact: 'output_artifact',\n ShareToken: 'share_token'\n} as const;\n\nexport type ResourceType = typeof ResourceType[keyof typeof ResourceType];\n\n\n/**\n * Request schema for `Initiate Run` endpoint. It describes which application version is chosen, and which user data should be processed.\n * @export\n * @interface RunCreationRequest\n */\nexport interface RunCreationRequest {\n /**\n * Unique ID for the application to use for processing\n * @type {string}\n * @memberof RunCreationRequest\n */\n 'application_id': string;\n /**\n * \n * @type {string}\n * @memberof RunCreationRequest\n */\n 'version_number'?: string | null;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof RunCreationRequest\n */\n 'custom_metadata'?: { [key: string]: any; } | null;\n /**\n * \n * @type {SchedulingRequest}\n * @memberof RunCreationRequest\n */\n 'scheduling'?: SchedulingRequest | null;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof RunCreationRequest\n */\n 'callback_context'?: { [key: string]: any; } | null;\n /**\n * List of items (slides) to process. Each item represents a whole slide image (WSI) with its associated metadata and artifacts\n * @type {Array<ItemCreationRequest>}\n * @memberof RunCreationRequest\n */\n 'items': Array<ItemCreationRequest>;\n}\n/**\n * \n * @export\n * @interface RunCreationResponse\n */\nexport interface RunCreationResponse {\n /**\n * \n * @type {string}\n * @memberof RunCreationResponse\n */\n 'run_id': string;\n}\n/**\n * \n * @export\n * @interface RunItemStatistics\n */\nexport interface RunItemStatistics {\n /**\n * Total number of the items in the run\n * @type {number}\n * @memberof RunItemStatistics\n */\n 'item_count': number;\n /**\n * The number of items in `PENDING` state\n * @type {number}\n * @memberof RunItemStatistics\n */\n 'item_pending_count': number;\n /**\n * The number of items in `PROCESSING` state\n * @type {number}\n * @memberof RunItemStatistics\n */\n 'item_processing_count': number;\n /**\n * The number of items in `TERMINATED` state, and the item termination reason is `USER_ERROR`\n * @type {number}\n * @memberof RunItemStatistics\n */\n 'item_user_error_count': number;\n /**\n * The number of items in `TERMINATED` state, and the item termination reason is `SYSTEM_ERROR`\n * @type {number}\n * @memberof RunItemStatistics\n */\n 'item_system_error_count': number;\n /**\n * The number of items in `TERMINATED` state, and the item termination reason is `SKIPPED`\n * @type {number}\n * @memberof RunItemStatistics\n */\n 'item_skipped_count': number;\n /**\n * The number of items in `TERMINATED` state, and the item termination reason is `SUCCEEDED`\n * @type {number}\n * @memberof RunItemStatistics\n */\n 'item_succeeded_count': number;\n}\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const RunOutput = {\n None: 'NONE',\n Partial: 'PARTIAL',\n Full: 'FULL'\n} as const;\n\nexport type RunOutput = typeof RunOutput[keyof typeof RunOutput];\n\n\n/**\n * Response schema for `Get run details` endpoint\n * @export\n * @interface RunReadResponse\n */\nexport interface RunReadResponse {\n /**\n * UUID of the application\n * @type {string}\n * @memberof RunReadResponse\n */\n 'run_id': string;\n /**\n * Application id\n * @type {string}\n * @memberof RunReadResponse\n */\n 'application_id': string;\n /**\n * Application version number\n * @type {string}\n * @memberof RunReadResponse\n */\n 'version_number': string;\n /**\n * When the run request is received by the Platform, the `state` of it is set to `PENDING`. The state changes to `PROCESSING` when at least one item is being processed. After `PROCESSING`, the state of the run can switch back to `PENDING` if there are no processing items, or to `TERMINATED` when the run finished processing.\n * @type {RunState}\n * @memberof RunReadResponse\n */\n 'state': RunState;\n /**\n * The status of the output of the run. When 0 items are successfully processed the output is `NONE`, after one item is successfully processed, the value is set to `PARTIAL`. When all items of the run are successfully processed, the output is set to `FULL`.\n * @type {RunOutput}\n * @memberof RunReadResponse\n */\n 'output': RunOutput;\n /**\n * \n * @type {RunTerminationReason}\n * @memberof RunReadResponse\n */\n 'termination_reason': RunTerminationReason | null;\n /**\n * \n * @type {string}\n * @memberof RunReadResponse\n */\n 'error_code': string | null;\n /**\n * \n * @type {string}\n * @memberof RunReadResponse\n */\n 'error_message': string | null;\n /**\n * Aggregated statistics of the run execution\n * @type {RunItemStatistics}\n * @memberof RunReadResponse\n */\n 'statistics': RunItemStatistics;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof RunReadResponse\n */\n 'custom_metadata'?: { [key: string]: any; } | null;\n /**\n * \n * @type {string}\n * @memberof RunReadResponse\n */\n 'custom_metadata_checksum'?: string | null;\n /**\n * Timestamp showing when the run was triggered\n * @type {string}\n * @memberof RunReadResponse\n */\n 'submitted_at': string;\n /**\n * Id of the user who triggered the run\n * @type {string}\n * @memberof RunReadResponse\n */\n 'submitted_by': string;\n /**\n * \n * @type {string}\n * @memberof RunReadResponse\n */\n 'terminated_at'?: string | null;\n /**\n * \n * @type {number}\n * @memberof RunReadResponse\n */\n 'num_preceding_items_org'?: number | null;\n /**\n * \n * @type {number}\n * @memberof RunReadResponse\n */\n 'num_preceding_items_platform'?: number | null;\n /**\n * \n * @type {SchedulingResponse}\n * @memberof RunReadResponse\n */\n 'scheduling'?: SchedulingResponse | null;\n}\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const RunState = {\n Pending: 'PENDING',\n Processing: 'PROCESSING',\n Terminated: 'TERMINATED'\n} as const;\n\nexport type RunState = typeof RunState[keyof typeof RunState];\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const RunTerminationReason = {\n AllItemsProcessed: 'ALL_ITEMS_PROCESSED',\n CanceledBySystem: 'CANCELED_BY_SYSTEM',\n CanceledByUser: 'CANCELED_BY_USER'\n} as const;\n\nexport type RunTerminationReason = typeof RunTerminationReason[keyof typeof RunTerminationReason];\n\n\n/**\n * Scheduling constraints for a run.\n * @export\n * @interface SchedulingRequest\n */\nexport interface SchedulingRequest {\n /**\n * \n * @type {string}\n * @memberof SchedulingRequest\n */\n 'due_date'?: string | null;\n /**\n * \n * @type {string}\n * @memberof SchedulingRequest\n */\n 'deadline'?: string | null;\n}\n/**\n * Scheduling fields returned in run responses.\n * @export\n * @interface SchedulingResponse\n */\nexport interface SchedulingResponse {\n /**\n * \n * @type {string}\n * @memberof SchedulingResponse\n */\n 'due_date'?: string | null;\n /**\n * \n * @type {string}\n * @memberof SchedulingResponse\n */\n 'deadline'?: string | null;\n}\n/**\n * \n * @export\n * @interface ShareTokenCreateRequest\n */\nexport interface ShareTokenCreateRequest {\n /**\n * \n * @type {string}\n * @memberof ShareTokenCreateRequest\n */\n 'expires_at'?: string | null;\n}\n/**\n * Returned only on POST — includes the one-time share_token.\n * @export\n * @interface ShareTokenCreateResponse\n */\nexport interface ShareTokenCreateResponse {\n /**\n * \n * @type {string}\n * @memberof ShareTokenCreateResponse\n */\n 'share_token_id': string;\n /**\n * \n * @type {string}\n * @memberof ShareTokenCreateResponse\n */\n 'share_token': string;\n /**\n * \n * @type {string}\n * @memberof ShareTokenCreateResponse\n */\n 'created_at': string;\n /**\n * \n * @type {string}\n * @memberof ShareTokenCreateResponse\n */\n 'expires_at': string | null;\n /**\n * \n * @type {boolean}\n * @memberof ShareTokenCreateResponse\n */\n 'revoked': boolean;\n}\n/**\n * Returned on GET endpoints — omits share_token.\n * @export\n * @interface ShareTokenReadResponse\n */\nexport interface ShareTokenReadResponse {\n /**\n * \n * @type {string}\n * @memberof ShareTokenReadResponse\n */\n 'share_token_id': string;\n /**\n * \n * @type {string}\n * @memberof ShareTokenReadResponse\n */\n 'created_at': string;\n /**\n * \n * @type {string}\n * @memberof ShareTokenReadResponse\n */\n 'expires_at': string | null;\n /**\n * \n * @type {boolean}\n * @memberof ShareTokenReadResponse\n */\n 'revoked': boolean;\n}\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const SubjectType = {\n User: 'user',\n OrganizationAdmin: 'organization_admin',\n OrganizationUser: 'organization_user',\n ShareToken: 'share_token'\n} as const;\n\nexport type SubjectType = typeof SubjectType[keyof typeof SubjectType];\n\n\n/**\n * Part of response schema for User object in `Get current user` endpoint. This model corresponds to the response schema returned from Auth0 GET /v2/users/{id} endpoint. For details, see: https://auth0.com/docs/api/management/v2/users/get-users-by-id\n * @export\n * @interface UserReadResponse\n */\nexport interface UserReadResponse {\n /**\n * Unique user identifier\n * @type {string}\n * @memberof UserReadResponse\n */\n 'id': string;\n /**\n * \n * @type {string}\n * @memberof UserReadResponse\n */\n 'email'?: string | null;\n /**\n * \n * @type {boolean}\n * @memberof UserReadResponse\n */\n 'email_verified'?: boolean | null;\n /**\n * \n * @type {string}\n * @memberof UserReadResponse\n */\n 'name'?: string | null;\n /**\n * \n * @type {string}\n * @memberof UserReadResponse\n */\n 'given_name'?: string | null;\n /**\n * \n * @type {string}\n * @memberof UserReadResponse\n */\n 'family_name'?: string | null;\n /**\n * \n * @type {string}\n * @memberof UserReadResponse\n */\n 'nickname'?: string | null;\n /**\n * \n * @type {string}\n * @memberof UserReadResponse\n */\n 'picture'?: string | null;\n /**\n * \n * @type {string}\n * @memberof UserReadResponse\n */\n 'updated_at'?: string | null;\n}\n/**\n * \n * @export\n * @interface ValidationError\n */\nexport interface ValidationError {\n /**\n * \n * @type {Array<ValidationErrorLocInner>}\n * @memberof ValidationError\n */\n 'loc': Array<ValidationErrorLocInner>;\n /**\n * \n * @type {string}\n * @memberof ValidationError\n */\n 'msg': string;\n /**\n * \n * @type {string}\n * @memberof ValidationError\n */\n 'type': string;\n /**\n * \n * @type {any}\n * @memberof ValidationError\n */\n 'input'?: any;\n /**\n * \n * @type {object}\n * @memberof ValidationError\n */\n 'ctx'?: object;\n}\n/**\n * \n * @export\n * @interface ValidationErrorLocInner\n */\nexport interface ValidationErrorLocInner {\n}\n/**\n * \n * @export\n * @interface VersionDocumentResponse\n */\nexport interface VersionDocumentResponse {\n /**\n * \n * @type {string}\n * @memberof VersionDocumentResponse\n */\n 'id': string;\n /**\n * \n * @type {string}\n * @memberof VersionDocumentResponse\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof VersionDocumentResponse\n */\n 'mime_type': string;\n /**\n * \n * @type {VersionDocumentVisibility}\n * @memberof VersionDocumentResponse\n */\n 'visibility': VersionDocumentVisibility;\n /**\n * \n * @type {string}\n * @memberof VersionDocumentResponse\n */\n 'created_at': string;\n /**\n * \n * @type {string}\n * @memberof VersionDocumentResponse\n */\n 'updated_at': string;\n}\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const VersionDocumentVisibility = {\n Public: 'public',\n Internal: 'internal'\n} as const;\n\nexport type VersionDocumentVisibility = typeof VersionDocumentVisibility[keyof typeof VersionDocumentVisibility];\n\n\n/**\n * Base Response schema for the `Application Version Details` endpoint\n * @export\n * @interface VersionReadResponse\n */\nexport interface VersionReadResponse {\n /**\n * Semantic version of the application\n * @type {string}\n * @memberof VersionReadResponse\n */\n 'version_number': string;\n /**\n * Description of the changes relative to the previous version\n * @type {string}\n * @memberof VersionReadResponse\n */\n 'changelog': string;\n /**\n * List of the input fields, provided by the User\n * @type {Array<InputArtifact>}\n * @memberof VersionReadResponse\n */\n 'input_artifacts': Array<InputArtifact>;\n /**\n * List of the output fields, generated by the application\n * @type {Array<OutputArtifact>}\n * @memberof VersionReadResponse\n */\n 'output_artifacts': Array<OutputArtifact>;\n /**\n * The timestamp when the application version was registered\n * @type {string}\n * @memberof VersionReadResponse\n */\n 'released_at': string;\n}\n\n/**\n * PublicApi - axios parameter creator\n * @export\n */\nexport const PublicApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Get the application version details. Allows caller to retrieve information about application version based on provided application version ID.\n * @summary Application Version Details\n * @param {string} applicationId \n * @param {string} version \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet: async (applicationId: string, version: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'applicationId' is not null or undefined\n assertParamExists('applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet', 'applicationId', applicationId)\n // verify required parameter 'version' is not null or undefined\n assertParamExists('applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet', 'version', version)\n const localVarPath = `/v1/applications/{application_id}/versions/{version}`\n .replace(`{${\"application_id\"}}`, encodeURIComponent(String(applicationId)))\n .replace(`{${\"version\"}}`, encodeURIComponent(String(version)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * The run can be canceled by the user who created the run. The execution can be canceled any time while the run is not in the terminated state. The pending items of a canceled run will not be processed and will not add to the cost. When the run is canceled, the already completed items remain available for download.\n * @summary Cancel Run\n * @param {string} runId Run id, returned by `POST /runs/` endpoint\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n cancelRunV1RunsRunIdCancelPost: async (runId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runId' is not null or undefined\n assertParamExists('cancelRunV1RunsRunIdCancelPost', 'runId', runId)\n const localVarPath = `/v1/runs/{run_id}/cancel`\n .replace(`{${\"run_id\"}}`, encodeURIComponent(String(runId)));\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\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Create a grant to share access to a resource with a subject (user or organization).\n * @summary Create Grant\n * @param {GrantCreateRequest} grantCreateRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createGrantV1AccessGrantsPost: async (grantCreateRequest: GrantCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'grantCreateRequest' is not null or undefined\n assertParamExists('createGrantV1AccessGrantsPost', 'grantCreateRequest', grantCreateRequest)\n const localVarPath = `/v1/access/grants`;\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\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(grantCreateRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * This endpoint initiates a processing run for a selected application and version, and returns a `run_id` for tracking purposes. Slide processing occurs asynchronously, allowing you to retrieve results for individual slides as soon as they complete processing. The system typically processes slides in batches. Below is an example of the required payload for initiating an Atlas H&E TME processing run. ### Payload The payload includes `application_id`, optional `version_number`, and `items` base fields. `application_id` is the unique identifier for the application. `version_number` is the semantic version to use. If not provided, the latest available version will be used. `items` includes the list of the items to process (slides, in case of HETA application). Every item has a set of standard fields defined by the API, plus the custom_metadata, specific to the chosen application. Example payload structure with the comments: ``` { application_id: \\\"he-tme\\\", version_number: \\\"1.0.0-beta\\\", items: [{ \\\"external_id\\\": \\\"slide_1\\\", \\\"custom_metadata\\\": {\\\"project\\\": \\\"sample-study\\\"}, \\\"input_artifacts\\\": [{ \\\"name\\\": \\\"user_slide\\\", \\\"download_url\\\": \\\"https://...\\\", \\\"metadata\\\": { \\\"specimen\\\": { \\\"disease\\\": \\\"LUNG_CANCER\\\", \\\"tissue\\\": \\\"LUNG\\\" }, \\\"staining_method\\\": \\\"H&E\\\", \\\"width_px\\\": 136223, \\\"height_px\\\": 87761, \\\"resolution_mpp\\\": 0.2628238, \\\"media-type\\\":\\\"image/tiff\\\", \\\"checksum_base64_crc32c\\\": \\\"64RKKA==\\\" } }] }] } ``` | Parameter | Description | | :---- | :---- | | `application_id` required | Unique ID for the application | | `version_number` optional | Semantic version of the application. If not provided, the latest available version will be used | | `items` required | List of submitted items i.e. whole slide images (WSIs) with parameters described below. | | `external_id` required | Unique WSI name or ID for easy reference to items, provided by the caller. The `external_id` should be unique across all items of the run. | | `input_artifacts` required | List of provided artifacts for a WSI; at the moment Atlas H&E-TME receives only 1 artifact per slide (the slide itself), but for some other applications this can be a slide and a segmentation map | | `name` required | Type of artifact; Atlas H&E-TME supports only `\\\"input_slide\\\"` | | `download_url` required | Signed URL to the input file in the S3 or GCS; Should be valid for at least 6 days | | `specimen: disease` required | Supported cancer types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `specimen: tissue` required | Supported tissue types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `staining_method` required | WSI stain bio-marker; Atlas H&E-TME supports only `\\\"H&E\\\"` | | `width_px` required | Integer value. Number of pixels of the WSI in the X dimension. | | `height_px` required | Integer value. Number of pixels of the WSI in the Y dimension. | | `resolution_mpp` required | Resolution of WSI in micrometers per pixel; check allowed range in Atlas H&E-TME manual | | `media-type` required | Supported media formats; available values are: image/tiff (for .tiff or .tif WSI), application/dicom (for DICOM ), application/zip (for zipped DICOM), and application/octet-stream (for .svs WSI) | | `checksum_base64_crc32c` required | Base64-encoded big-endian CRC32C checksum of the WSI image | ### Response The endpoint returns the run UUID. After that, the job is scheduled for the execution in the background. To check the status of the run, call `GET v1/runs/{run_id}` endpoint with the returned run UUID. ### Rejection Apart from the authentication, authorization, and malformed input error, the request can be rejected when specific quota limit is exceeded. More details on quotas is described in the documentation\n * @summary Initiate Run\n * @param {RunCreationRequest} runCreationRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createRunV1RunsPost: async (runCreationRequest: RunCreationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runCreationRequest' is not null or undefined\n assertParamExists('createRunV1RunsPost', 'runCreationRequest', runCreationRequest)\n const localVarPath = `/v1/runs`;\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\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(runCreationRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Create a share token. The returned share_token value is shown only once and is never stored. Use POST /access/grants with subject_type=share_token to grant access to a resource.\n * @summary Create Share Token\n * @param {ShareTokenCreateRequest} shareTokenCreateRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createShareTokenV1AccessShareTokensPost: async (shareTokenCreateRequest: ShareTokenCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'shareTokenCreateRequest' is not null or undefined\n assertParamExists('createShareTokenV1AccessShareTokensPost', 'shareTokenCreateRequest', shareTokenCreateRequest)\n const localVarPath = `/v1/access/share-tokens`;\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\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(shareTokenCreateRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * This endpoint allows the caller to explicitly delete artifacts generated by a run. It can only be invoked when the run has reached a final state, i.e. `PROCESSED`, `CANCELED_SYSTEM`, or `CANCELED_USER`. Note that by default, all artifacts are automatically deleted 30 days after the run finishes, regardless of whether the caller explicitly requests such deletion.\n * @summary Delete Run Items\n * @param {string} runId Run id, returned by `POST /runs/` endpoint\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteRunItemsV1RunsRunIdArtifactsDelete: async (runId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runId' is not null or undefined\n assertParamExists('deleteRunItemsV1RunsRunIdArtifactsDelete', 'runId', runId)\n const localVarPath = `/v1/runs/{run_id}/artifacts`\n .replace(`{${\"run_id\"}}`, encodeURIComponent(String(runId)));\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\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Download the artifact file with the specified artifact_id, belonging to the specified run. The artifact_is is returned by the `GET /v1/runs/{run_id}/items` endpoint as part of the item results, and can also be retrieved via `GET /v1/runs/{run_id}/items/{external_id}`. The endpoint may return a redirect response with a presigned URL to download the artifact file from the storage bucket. The presigned URL is valid for a limited time, so it should be used immediately after receiving the response.\n * @summary Get Artifact Url\n * @param {string} runId Run id, returned by `POST /runs/` endpoint\n * @param {string} artifactId The artifact id to download\n * @param {string | null} [shareToken] Share token for accessing shared runs\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet: async (runId: string, artifactId: string, shareToken?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runId' is not null or undefined\n assertParamExists('getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet', 'runId', runId)\n // verify required parameter 'artifactId' is not null or undefined\n assertParamExists('getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet', 'artifactId', artifactId)\n const localVarPath = `/v1/runs/{run_id}/artifacts/{artifact_id}/file`\n .replace(`{${\"run_id\"}}`, encodeURIComponent(String(runId)))\n .replace(`{${\"artifact_id\"}}`, encodeURIComponent(String(artifactId)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n if (shareToken !== undefined) {\n localVarQueryParameter['share_token'] = shareToken;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get a grant by its ID.\n * @summary Get Grant\n * @param {string} grantId Grant ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getGrantV1AccessGrantsGrantIdGet: async (grantId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'grantId' is not null or undefined\n assertParamExists('getGrantV1AccessGrantsGrantIdGet', 'grantId', grantId)\n const localVarPath = `/v1/access/grants/{grant_id}`\n .replace(`{${\"grant_id\"}}`, encodeURIComponent(String(grantId)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieve details of a specific item (slide) by its external ID and the run ID.\n * @summary Get Item By Run\n * @param {string} runId The run id, returned by `POST /runs/` endpoint\n * @param {string} externalId The `external_id` that was defined for the item by the customer that triggered the run.\n * @param {string | null} [shareToken] Share token for accessing shared runs\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getItemByRunV1RunsRunIdItemsExternalIdGet: async (runId: string, externalId: string, shareToken?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runId' is not null or undefined\n assertParamExists('getItemByRunV1RunsRunIdItemsExternalIdGet', 'runId', runId)\n // verify required parameter 'externalId' is not null or undefined\n assertParamExists('getItemByRunV1RunsRunIdItemsExternalIdGet', 'externalId', externalId)\n const localVarPath = `/v1/runs/{run_id}/items/{external_id}`\n .replace(`{${\"run_id\"}}`, encodeURIComponent(String(runId)))\n .replace(`{${\"external_id\"}}`, encodeURIComponent(String(externalId)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n if (shareToken !== undefined) {\n localVarQueryParameter['share_token'] = shareToken;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves your identity details, including name, email, and organization. This is useful for verifying that the request is being made under the correct user profile and organization context, as well as confirming that the expected environment variables are correctly set (in case you are using Python SDK)\n * @summary Get current user\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getMeV1MeGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/me`;\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * This endpoint allows the caller to retrieve the current status of a run along with other relevant run details. A run becomes available immediately after it is created through the `POST /v1/runs/` endpoint. To download the output results, use `GET /v1/runs/{run_id}/` items to get outputs for all slides. Access to a run is restricted to the user who created it, or users with an active grant or valid share token.\n * @summary Get run details\n * @param {string} runId Run id, returned by `POST /v1/runs/` endpoint\n * @param {string | null} [shareToken] Share token for accessing shared runs\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getRunV1RunsRunIdGet: async (runId: string, shareToken?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runId' is not null or undefined\n assertParamExists('getRunV1RunsRunIdGet', 'runId', runId)\n const localVarPath = `/v1/runs/{run_id}`\n .replace(`{${\"run_id\"}}`, encodeURIComponent(String(runId)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n if (shareToken !== undefined) {\n localVarQueryParameter['share_token'] = shareToken;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get a share token by its ID.\n * @summary Get Share Token\n * @param {string} shareTokenId Share token ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getShareTokenV1AccessShareTokensShareTokenIdGet: async (shareTokenId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'shareTokenId' is not null or undefined\n assertParamExists('getShareTokenV1AccessShareTokensShareTokenIdGet', 'shareTokenId', shareTokenId)\n const localVarPath = `/v1/access/share-tokens/{share_token_id}`\n .replace(`{${\"share_token_id\"}}`, encodeURIComponent(String(shareTokenId)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Return metadata for a single public document attached to an application version.\n * @summary Get version document metadata\n * @param {string} applicationId \n * @param {string} version \n * @param {string} name \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getVersionDocument: async (applicationId: string, version: string, name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'applicationId' is not null or undefined\n assertParamExists('getVersionDocument', 'applicationId', applicationId)\n // verify required parameter 'version' is not null or undefined\n assertParamExists('getVersionDocument', 'version', version)\n // verify required parameter 'name' is not null or undefined\n assertParamExists('getVersionDocument', 'name', name)\n const localVarPath = `/v1/applications/{application_id}/versions/{version}/documents/{name}`\n .replace(`{${\"application_id\"}}`, encodeURIComponent(String(applicationId)))\n .replace(`{${\"version\"}}`, encodeURIComponent(String(version)))\n .replace(`{${\"name\"}}`, encodeURIComponent(String(name)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * 307 redirect to a short-lived GCS signed URL for streaming document content. Unlike ``/file``, no ``Content-Disposition`` override is set — GCS serves the object body with its stored ``Content-Type``. Intended for programmatic clients that follow redirects and consume the content directly. Response carries ``Cache-Control: no-store``.\n * @summary Stream version document content (programmatic)\n * @param {string} applicationId \n * @param {string} version \n * @param {string} name \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getVersionDocumentContent: async (applicationId: string, version: string, name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'applicationId' is not null or undefined\n assertParamExists('getVersionDocumentContent', 'applicationId', applicationId)\n // verify required parameter 'version' is not null or undefined\n assertParamExists('getVersionDocumentContent', 'version', version)\n // verify required parameter 'name' is not null or undefined\n assertParamExists('getVersionDocumentContent', 'name', name)\n const localVarPath = `/v1/applications/{application_id}/versions/{version}/documents/{name}/content`\n .replace(`{${\"application_id\"}}`, encodeURIComponent(String(applicationId)))\n .replace(`{${\"version\"}}`, encodeURIComponent(String(version)))\n .replace(`{${\"name\"}}`, encodeURIComponent(String(name)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * 307 redirect to a short-lived GCS signed URL for downloading a document. The signed URL includes ``response-content-disposition=attachment; filename=\\\"<name>\\\"`` so browsers prompt a save-as dialog rather than rendering inline. Response carries ``Cache-Control: no-store``.\n * @summary Download version document (browser)\n * @param {string} applicationId \n * @param {string} version \n * @param {string} name \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getVersionDocumentFile: async (applicationId: string, version: string, name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'applicationId' is not null or undefined\n assertParamExists('getVersionDocumentFile', 'applicationId', applicationId)\n // verify required parameter 'version' is not null or undefined\n assertParamExists('getVersionDocumentFile', 'version', version)\n // verify required parameter 'name' is not null or undefined\n assertParamExists('getVersionDocumentFile', 'name', name)\n const localVarPath = `/v1/applications/{application_id}/versions/{version}/documents/{name}/file`\n .replace(`{${\"application_id\"}}`, encodeURIComponent(String(applicationId)))\n .replace(`{${\"version\"}}`, encodeURIComponent(String(version)))\n .replace(`{${\"name\"}}`, encodeURIComponent(String(name)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Returns the list of the applications, available to the caller. The application is available if any of the versions of the application is assigned to the caller\\'s organization. The response is paginated and sorted according to the provided parameters.\n * @summary List available applications\n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] Sort the results by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `application_id` - `name` - `description` - `regulatory_classes` **Examples:** - `?sort=application_id` - Sort by application_id ascending - `?sort=-name` - Sort by name descending - `?sort=+description&sort=name` - Sort by description ascending, then name descending\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listApplicationsV1ApplicationsGet: async (page?: number, pageSize?: number, sort?: Array<string> | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/applications`;\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n if (page !== undefined) {\n localVarQueryParameter['page'] = page;\n }\n\n if (pageSize !== undefined) {\n localVarQueryParameter['page-size'] = pageSize;\n }\n\n if (sort) {\n localVarQueryParameter['sort'] = sort;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List grants. Org admins see all grants for all resources in their organization. Regular users see grants for all resources they submitted.\n * @summary List Grants\n * @param {ResourceType | null} [resourceType] \n * @param {string | null} [resourceId] \n * @param {SubjectType | null} [subjectType] \n * @param {string | null} [subjectId] \n * @param {boolean | null} [revoked] \n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] Sort the results by one or more fields. Use `+` for ascending and `-` for descending order.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listGrantsV1AccessGrantsGet: async (resourceType?: ResourceType | null, resourceId?: string | null, subjectType?: SubjectType | null, subjectId?: string | null, revoked?: boolean | null, page?: number, pageSize?: number, sort?: Array<string> | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/access/grants`;\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n if (resourceType !== undefined) {\n localVarQueryParameter['resource_type'] = resourceType;\n }\n\n if (resourceId !== undefined) {\n localVarQueryParameter['resource_id'] = resourceId;\n }\n\n if (subjectType !== undefined) {\n localVarQueryParameter['subject_type'] = subjectType;\n }\n\n if (subjectId !== undefined) {\n localVarQueryParameter['subject_id'] = subjectId;\n }\n\n if (revoked !== undefined) {\n localVarQueryParameter['revoked'] = revoked;\n }\n\n if (page !== undefined) {\n localVarQueryParameter['page'] = page;\n }\n\n if (pageSize !== undefined) {\n localVarQueryParameter['page_size'] = pageSize;\n }\n\n if (sort) {\n localVarQueryParameter['sort'] = sort;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List items in a run with filtering, sorting, and pagination capabilities. Returns paginated items within a specific run. Results can be filtered by `item_id`, `external_ids`, `custom_metadata`, `terminated_at`, and `termination_reason` using JSONPath expressions. ## JSONPath Metadata Filtering Use PostgreSQL JSONPath expressions to filter items using their custom_metadata. ### Examples: - **Field existence**: `$.case_id` - Results that have a case_id field defined - **Exact value match**: `$.priority ? (@ == \\\"high\\\")` - Results with high priority - **Numeric comparison**: `$.confidence_score ? (@ > 0.95)` - Results with high confidence - **Array operations**: `$.flags[*] ? (@ == \\\"reviewed\\\")` - Results flagged as reviewed - **Complex conditions**: `$.metrics ? (@.accuracy > 0.9 && @.recall > 0.8)` - Results meeting performance thresholds ## Notes - JSONPath expressions are evaluated using PostgreSQL\\'s `@?` operator - The `$.` prefix is automatically added to root-level field references if missing - String values in conditions must be enclosed in double quotes - Use `&&` for AND operations and `||` for OR operations\n * @summary List Run Items\n * @param {string} runId Run id, returned by `POST /v1/runs/` endpoint\n * @param {string | null} [shareToken] Share token for accessing shared runs\n * @param {Array<string> | null} [itemIdIn] Filter for item ids\n * @param {Array<string> | null} [externalIdIn] Filter for items by their external_id from the input payload\n * @param {ItemState | null} [state] Filter items by their state\n * @param {ItemTerminationReason | null} [terminationReason] Filter items by their termination reason. Only applies to TERMINATED items.\n * @param {string | null} [customMetadata] JSONPath expression to filter items by their custom_metadata\n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] Sort the items by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `item_id` - `external_id` - `custom_metadata` - `terminated_at` - `termination_reason` **Examples:** - `?sort=item_id` - Sort by id of the item (ascending) - `?sort=-external_id` - Sort by external ID (descending) - `?sort=custom_metadata&sort=-external_id` - Sort by metadata, then by external ID (descending)\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listRunItemsV1RunsRunIdItemsGet: async (runId: string, shareToken?: string | null, itemIdIn?: Array<string> | null, externalIdIn?: Array<string> | null, state?: ItemState | null, terminationReason?: ItemTerminationReason | null, customMetadata?: string | null, page?: number, pageSize?: number, sort?: Array<string> | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runId' is not null or undefined\n assertParamExists('listRunItemsV1RunsRunIdItemsGet', 'runId', runId)\n const localVarPath = `/v1/runs/{run_id}/items`\n .replace(`{${\"run_id\"}}`, encodeURIComponent(String(runId)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n if (shareToken !== undefined) {\n localVarQueryParameter['share_token'] = shareToken;\n }\n\n if (itemIdIn) {\n localVarQueryParameter['item_id__in'] = itemIdIn;\n }\n\n if (externalIdIn) {\n localVarQueryParameter['external_id__in'] = externalIdIn;\n }\n\n if (state !== undefined) {\n localVarQueryParameter['state'] = state;\n }\n\n if (terminationReason !== undefined) {\n localVarQueryParameter['termination_reason'] = terminationReason;\n }\n\n if (customMetadata !== undefined) {\n localVarQueryParameter['custom_metadata'] = customMetadata;\n }\n\n if (page !== undefined) {\n localVarQueryParameter['page'] = page;\n }\n\n if (pageSize !== undefined) {\n localVarQueryParameter['page_size'] = pageSize;\n }\n\n if (sort) {\n localVarQueryParameter['sort'] = sort;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List runs with filtering, sorting, and pagination capabilities. Returns paginated runs that were submitted by the user.\n * @summary List Runs\n * @param {string | null} [applicationId] Optional application ID filter\n * @param {string | null} [applicationVersion] Optional Version Name\n * @param {string | null} [externalId] Optionally filter runs by items with this external ID\n * @param {string | null} [customMetadata] Use PostgreSQL JSONPath expressions to filter runs by their custom_metadata. #### URL Encoding Required **Important**: JSONPath expressions contain special characters that must be URL-encoded when used in query parameters. Most HTTP clients handle this automatically, but when constructing URLs manually, please ensure proper encoding. #### Examples (Clear Format): - **Field existence**: `$.study` - Runs that have a study field defined - **Exact value match**: `$.study ? (@ == \\"high\\")` - Runs with specific study value - **Numeric comparison**: `$.confidence_score ? (@ > 0.75)` - Runs with confidence score greater than 0.75 - **Array operations**: `$.tags[*] ? (@ == \\"draft\\")` - Runs with tags array containing \\"draft\\" - **Complex conditions**: `$.resources ? (@.gpu_count > 2 && @.memory_gb >= 16)` - Runs with high resource requirements #### Examples (URL-Encoded Format): - **Field existence**: `%24.study` - **Exact value match**: `%24.study%20%3F%20(%40%20%3D%3D%20%22high%22)` - **Numeric comparison**: `%24.confidence_score%20%3F%20(%40%20%3E%200.75)` - **Array operations**: `%24.tags%5B*%5D%20%3F%20(%40%20%3D%3D%20%22draft%22)` - **Complex conditions**: `%24.resources%20%3F%20(%40.gpu_count%20%3E%202%20%26%26%20%40.memory_gb%20%3E%3D%2016)` #### Notes - JSONPath expressions are evaluated using PostgreSQL\\'s `@?` operator - The `$.` prefix is automatically added to root-level field references if missing - String values in conditions must be enclosed in double quotes - Use `&&` for AND operations and `||` for OR operations - Regular expressions use `like_regex` with standard regex syntax - **Please remember to URL-encode the entire JSONPath expression when making HTTP requests** \n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {string | null} [forOrganization] Filter runs by organization ID. Available for superadmins (any org) and admins (own org only). When provided, returns all runs for the specified organization instead of only the caller\\'s own runs.\n * @param {Array<string> | null} [sort] Sort the results by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `run_id` - `application_id` - `version_number` - `custom_metadata` - `submitted_at` - `submitted_by` - `terminated_at` - `termination_reason` **Examples:** - `?sort=submitted_at` - Sort by creation time (ascending) - `?sort=-submitted_at` - Sort by creation time (descending) - `?sort=state&sort=-submitted_at` - Sort by state, then by time (descending) \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listRunsV1RunsGet: async (applicationId?: string | null, applicationVersion?: string | null, externalId?: string | null, customMetadata?: string | null, page?: number, pageSize?: number, forOrganization?: string | null, sort?: Array<string> | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/runs`;\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n if (applicationId !== undefined) {\n localVarQueryParameter['application_id'] = applicationId;\n }\n\n if (applicationVersion !== undefined) {\n localVarQueryParameter['application_version'] = applicationVersion;\n }\n\n if (externalId !== undefined) {\n localVarQueryParameter['external_id'] = externalId;\n }\n\n if (customMetadata !== undefined) {\n localVarQueryParameter['custom_metadata'] = customMetadata;\n }\n\n if (page !== undefined) {\n localVarQueryParameter['page'] = page;\n }\n\n if (pageSize !== undefined) {\n localVarQueryParameter['page_size'] = pageSize;\n }\n\n if (forOrganization !== undefined) {\n localVarQueryParameter['for_organization'] = forOrganization;\n }\n\n if (sort) {\n localVarQueryParameter['sort'] = sort;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List share tokens. Service and Superadmin see all tokens; other users see only their own.\n * @summary List Share Tokens\n * @param {string | null} [runId] Filter by run ID\n * @param {string | null} [createdBy] Filter by share token creator\n * @param {boolean | null} [revoked] \n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] Sort the results by one or more fields. Use `+` for ascending and `-` for descending order.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listShareTokensV1AccessShareTokensGet: async (runId?: string | null, createdBy?: string | null, revoked?: boolean | null, page?: number, pageSize?: number, sort?: Array<string> | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/access/share-tokens`;\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n if (runId !== undefined) {\n localVarQueryParameter['run_id'] = runId;\n }\n\n if (createdBy !== undefined) {\n localVarQueryParameter['created_by'] = createdBy;\n }\n\n if (revoked !== undefined) {\n localVarQueryParameter['revoked'] = revoked;\n }\n\n if (page !== undefined) {\n localVarQueryParameter['page'] = page;\n }\n\n if (pageSize !== undefined) {\n localVarQueryParameter['page_size'] = pageSize;\n }\n\n if (sort) {\n localVarQueryParameter['sort'] = sort;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List public documents attached to an application version. Returns only documents with ``visibility=public`` and ``status=uploaded``.\n * @summary List version documents\n * @param {string} applicationId \n * @param {string} version \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listVersionDocuments: async (applicationId: string, version: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'applicationId' is not null or undefined\n assertParamExists('listVersionDocuments', 'applicationId', applicationId)\n // verify required parameter 'version' is not null or undefined\n assertParamExists('listVersionDocuments', 'version', version)\n const localVarPath = `/v1/applications/{application_id}/versions/{version}/documents`\n .replace(`{${\"application_id\"}}`, encodeURIComponent(String(applicationId)))\n .replace(`{${\"version\"}}`, encodeURIComponent(String(version)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Update the custom metadata of the item with the specified `external_id`, belonging to the specified run. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for individual items via `GET /v1/runs/{run_id}/items/{external_id}`, and for all items of a run via `GET /v1/runs/{run_id}/items`.\n * @summary Put Item Custom Metadata By Run\n * @param {string} runId The run id, returned by `POST /runs/` endpoint\n * @param {string} externalId The `external_id` that was defined for the item by the customer that triggered the run.\n * @param {CustomMetadataUpdateRequest} customMetadataUpdateRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut: async (runId: string, externalId: string, customMetadataUpdateRequest: CustomMetadataUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runId' is not null or undefined\n assertParamExists('putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut', 'runId', runId)\n // verify required parameter 'externalId' is not null or undefined\n assertParamExists('putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut', 'externalId', externalId)\n // verify required parameter 'customMetadataUpdateRequest' is not null or undefined\n assertParamExists('putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut', 'customMetadataUpdateRequest', customMetadataUpdateRequest)\n const localVarPath = `/v1/runs/{run_id}/items/{external_id}/custom-metadata`\n .replace(`{${\"run_id\"}}`, encodeURIComponent(String(runId)))\n .replace(`{${\"external_id\"}}`, encodeURIComponent(String(externalId)));\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\n const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(customMetadataUpdateRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Update the custom metadata of a run with the specified `run_id`. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for the run via the `GET /v1/runs/{run_id}` endpoint. **Note on deadlines:** Run deadlines must be set during run creation and cannot be modified afterward. Any deadline changes in custom metadata will be ignored by the system.\n * @summary Put Run Custom Metadata\n * @param {string} runId Run id, returned by `POST /runs/` endpoint\n * @param {CustomMetadataUpdateRequest} customMetadataUpdateRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n putRunCustomMetadataV1RunsRunIdCustomMetadataPut: async (runId: string, customMetadataUpdateRequest: CustomMetadataUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runId' is not null or undefined\n assertParamExists('putRunCustomMetadataV1RunsRunIdCustomMetadataPut', 'runId', runId)\n // verify required parameter 'customMetadataUpdateRequest' is not null or undefined\n assertParamExists('putRunCustomMetadataV1RunsRunIdCustomMetadataPut', 'customMetadataUpdateRequest', customMetadataUpdateRequest)\n const localVarPath = `/v1/runs/{run_id}/custom-metadata`\n .replace(`{${\"run_id\"}}`, encodeURIComponent(String(runId)));\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\n const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(customMetadataUpdateRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieve details of a specific application by its ID.\n * @summary Read Application By Id\n * @param {string} applicationId \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n readApplicationByIdV1ApplicationsApplicationIdGet: async (applicationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'applicationId' is not null or undefined\n assertParamExists('readApplicationByIdV1ApplicationsApplicationIdGet', 'applicationId', applicationId)\n const localVarPath = `/v1/applications/{application_id}`\n .replace(`{${\"application_id\"}}`, encodeURIComponent(String(applicationId)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Revoke a grant by its ID. Sets the revoked_at timestamp on the grant.\n * @summary Revoke Grant\n * @param {string} grantId Grant ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n revokeGrantV1AccessGrantsGrantIdDelete: async (grantId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'grantId' is not null or undefined\n assertParamExists('revokeGrantV1AccessGrantsGrantIdDelete', 'grantId', grantId)\n const localVarPath = `/v1/access/grants/{grant_id}`\n .replace(`{${\"grant_id\"}}`, encodeURIComponent(String(grantId)));\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\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Revoke a share token by its ID. Invalidates the credential regardless of any active grants.\n * @summary Revoke Share Token\n * @param {string} shareTokenId Share token ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n revokeShareTokenV1AccessShareTokensShareTokenIdDelete: async (shareTokenId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'shareTokenId' is not null or undefined\n assertParamExists('revokeShareTokenV1AccessShareTokensShareTokenIdDelete', 'shareTokenId', shareTokenId)\n const localVarPath = `/v1/access/share-tokens/{share_token_id}`\n .replace(`{${\"share_token_id\"}}`, encodeURIComponent(String(shareTokenId)));\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\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * PublicApi - functional programming interface\n * @export\n */\nexport const PublicApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = PublicApiAxiosParamCreator(configuration)\n return {\n /**\n * Get the application version details. Allows caller to retrieve information about application version based on provided application version ID.\n * @summary Application Version Details\n * @param {string} applicationId \n * @param {string} version \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet(applicationId: string, version: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VersionReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet(applicationId, version, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * The run can be canceled by the user who created the run. The execution can be canceled any time while the run is not in the terminated state. The pending items of a canceled run will not be processed and will not add to the cost. When the run is canceled, the already completed items remain available for download.\n * @summary Cancel Run\n * @param {string} runId Run id, returned by `POST /runs/` endpoint\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async cancelRunV1RunsRunIdCancelPost(runId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.cancelRunV1RunsRunIdCancelPost(runId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.cancelRunV1RunsRunIdCancelPost']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Create a grant to share access to a resource with a subject (user or organization).\n * @summary Create Grant\n * @param {GrantCreateRequest} grantCreateRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createGrantV1AccessGrantsPost(grantCreateRequest: GrantCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GrantReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createGrantV1AccessGrantsPost(grantCreateRequest, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.createGrantV1AccessGrantsPost']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * This endpoint initiates a processing run for a selected application and version, and returns a `run_id` for tracking purposes. Slide processing occurs asynchronously, allowing you to retrieve results for individual slides as soon as they complete processing. The system typically processes slides in batches. Below is an example of the required payload for initiating an Atlas H&E TME processing run. ### Payload The payload includes `application_id`, optional `version_number`, and `items` base fields. `application_id` is the unique identifier for the application. `version_number` is the semantic version to use. If not provided, the latest available version will be used. `items` includes the list of the items to process (slides, in case of HETA application). Every item has a set of standard fields defined by the API, plus the custom_metadata, specific to the chosen application. Example payload structure with the comments: ``` { application_id: \\\"he-tme\\\", version_number: \\\"1.0.0-beta\\\", items: [{ \\\"external_id\\\": \\\"slide_1\\\", \\\"custom_metadata\\\": {\\\"project\\\": \\\"sample-study\\\"}, \\\"input_artifacts\\\": [{ \\\"name\\\": \\\"user_slide\\\", \\\"download_url\\\": \\\"https://...\\\", \\\"metadata\\\": { \\\"specimen\\\": { \\\"disease\\\": \\\"LUNG_CANCER\\\", \\\"tissue\\\": \\\"LUNG\\\" }, \\\"staining_method\\\": \\\"H&E\\\", \\\"width_px\\\": 136223, \\\"height_px\\\": 87761, \\\"resolution_mpp\\\": 0.2628238, \\\"media-type\\\":\\\"image/tiff\\\", \\\"checksum_base64_crc32c\\\": \\\"64RKKA==\\\" } }] }] } ``` | Parameter | Description | | :---- | :---- | | `application_id` required | Unique ID for the application | | `version_number` optional | Semantic version of the application. If not provided, the latest available version will be used | | `items` required | List of submitted items i.e. whole slide images (WSIs) with parameters described below. | | `external_id` required | Unique WSI name or ID for easy reference to items, provided by the caller. The `external_id` should be unique across all items of the run. | | `input_artifacts` required | List of provided artifacts for a WSI; at the moment Atlas H&E-TME receives only 1 artifact per slide (the slide itself), but for some other applications this can be a slide and a segmentation map | | `name` required | Type of artifact; Atlas H&E-TME supports only `\\\"input_slide\\\"` | | `download_url` required | Signed URL to the input file in the S3 or GCS; Should be valid for at least 6 days | | `specimen: disease` required | Supported cancer types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `specimen: tissue` required | Supported tissue types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `staining_method` required | WSI stain bio-marker; Atlas H&E-TME supports only `\\\"H&E\\\"` | | `width_px` required | Integer value. Number of pixels of the WSI in the X dimension. | | `height_px` required | Integer value. Number of pixels of the WSI in the Y dimension. | | `resolution_mpp` required | Resolution of WSI in micrometers per pixel; check allowed range in Atlas H&E-TME manual | | `media-type` required | Supported media formats; available values are: image/tiff (for .tiff or .tif WSI), application/dicom (for DICOM ), application/zip (for zipped DICOM), and application/octet-stream (for .svs WSI) | | `checksum_base64_crc32c` required | Base64-encoded big-endian CRC32C checksum of the WSI image | ### Response The endpoint returns the run UUID. After that, the job is scheduled for the execution in the background. To check the status of the run, call `GET v1/runs/{run_id}` endpoint with the returned run UUID. ### Rejection Apart from the authentication, authorization, and malformed input error, the request can be rejected when specific quota limit is exceeded. More details on quotas is described in the documentation\n * @summary Initiate Run\n * @param {RunCreationRequest} runCreationRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createRunV1RunsPost(runCreationRequest: RunCreationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunCreationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createRunV1RunsPost(runCreationRequest, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.createRunV1RunsPost']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Create a share token. The returned share_token value is shown only once and is never stored. Use POST /access/grants with subject_type=share_token to grant access to a resource.\n * @summary Create Share Token\n * @param {ShareTokenCreateRequest} shareTokenCreateRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createShareTokenV1AccessShareTokensPost(shareTokenCreateRequest: ShareTokenCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShareTokenCreateResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createShareTokenV1AccessShareTokensPost(shareTokenCreateRequest, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.createShareTokenV1AccessShareTokensPost']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * This endpoint allows the caller to explicitly delete artifacts generated by a run. It can only be invoked when the run has reached a final state, i.e. `PROCESSED`, `CANCELED_SYSTEM`, or `CANCELED_USER`. Note that by default, all artifacts are automatically deleted 30 days after the run finishes, regardless of whether the caller explicitly requests such deletion.\n * @summary Delete Run Items\n * @param {string} runId Run id, returned by `POST /runs/` endpoint\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async deleteRunItemsV1RunsRunIdArtifactsDelete(runId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRunItemsV1RunsRunIdArtifactsDelete(runId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.deleteRunItemsV1RunsRunIdArtifactsDelete']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Download the artifact file with the specified artifact_id, belonging to the specified run. The artifact_is is returned by the `GET /v1/runs/{run_id}/items` endpoint as part of the item results, and can also be retrieved via `GET /v1/runs/{run_id}/items/{external_id}`. The endpoint may return a redirect response with a presigned URL to download the artifact file from the storage bucket. The presigned URL is valid for a limited time, so it should be used immediately after receiving the response.\n * @summary Get Artifact Url\n * @param {string} runId Run id, returned by `POST /runs/` endpoint\n * @param {string} artifactId The artifact id to download\n * @param {string | null} [shareToken] Share token for accessing shared runs\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet(runId: string, artifactId: string, shareToken?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet(runId, artifactId, shareToken, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Get a grant by its ID.\n * @summary Get Grant\n * @param {string} grantId Grant ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getGrantV1AccessGrantsGrantIdGet(grantId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GrantReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getGrantV1AccessGrantsGrantIdGet(grantId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getGrantV1AccessGrantsGrantIdGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Retrieve details of a specific item (slide) by its external ID and the run ID.\n * @summary Get Item By Run\n * @param {string} runId The run id, returned by `POST /runs/` endpoint\n * @param {string} externalId The `external_id` that was defined for the item by the customer that triggered the run.\n * @param {string | null} [shareToken] Share token for accessing shared runs\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getItemByRunV1RunsRunIdItemsExternalIdGet(runId: string, externalId: string, shareToken?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ItemResultReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getItemByRunV1RunsRunIdItemsExternalIdGet(runId, externalId, shareToken, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getItemByRunV1RunsRunIdItemsExternalIdGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Retrieves your identity details, including name, email, and organization. This is useful for verifying that the request is being made under the correct user profile and organization context, as well as confirming that the expected environment variables are correctly set (in case you are using Python SDK)\n * @summary Get current user\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getMeV1MeGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MeReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getMeV1MeGet(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getMeV1MeGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * This endpoint allows the caller to retrieve the current status of a run along with other relevant run details. A run becomes available immediately after it is created through the `POST /v1/runs/` endpoint. To download the output results, use `GET /v1/runs/{run_id}/` items to get outputs for all slides. Access to a run is restricted to the user who created it, or users with an active grant or valid share token.\n * @summary Get run details\n * @param {string} runId Run id, returned by `POST /v1/runs/` endpoint\n * @param {string | null} [shareToken] Share token for accessing shared runs\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getRunV1RunsRunIdGet(runId: string, shareToken?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getRunV1RunsRunIdGet(runId, shareToken, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getRunV1RunsRunIdGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Get a share token by its ID.\n * @summary Get Share Token\n * @param {string} shareTokenId Share token ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getShareTokenV1AccessShareTokensShareTokenIdGet(shareTokenId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShareTokenReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getShareTokenV1AccessShareTokensShareTokenIdGet(shareTokenId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getShareTokenV1AccessShareTokensShareTokenIdGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Return metadata for a single public document attached to an application version.\n * @summary Get version document metadata\n * @param {string} applicationId \n * @param {string} version \n * @param {string} name \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getVersionDocument(applicationId: string, version: string, name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VersionDocumentResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getVersionDocument(applicationId, version, name, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getVersionDocument']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * 307 redirect to a short-lived GCS signed URL for streaming document content. Unlike ``/file``, no ``Content-Disposition`` override is set — GCS serves the object body with its stored ``Content-Type``. Intended for programmatic clients that follow redirects and consume the content directly. Response carries ``Cache-Control: no-store``.\n * @summary Stream version document content (programmatic)\n * @param {string} applicationId \n * @param {string} version \n * @param {string} name \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getVersionDocumentContent(applicationId: string, version: string, name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getVersionDocumentContent(applicationId, version, name, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getVersionDocumentContent']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * 307 redirect to a short-lived GCS signed URL for downloading a document. The signed URL includes ``response-content-disposition=attachment; filename=\\\"<name>\\\"`` so browsers prompt a save-as dialog rather than rendering inline. Response carries ``Cache-Control: no-store``.\n * @summary Download version document (browser)\n * @param {string} applicationId \n * @param {string} version \n * @param {string} name \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getVersionDocumentFile(applicationId: string, version: string, name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getVersionDocumentFile(applicationId, version, name, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getVersionDocumentFile']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Returns the list of the applications, available to the caller. The application is available if any of the versions of the application is assigned to the caller\\'s organization. The response is paginated and sorted according to the provided parameters.\n * @summary List available applications\n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] Sort the results by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `application_id` - `name` - `description` - `regulatory_classes` **Examples:** - `?sort=application_id` - Sort by application_id ascending - `?sort=-name` - Sort by name descending - `?sort=+description&sort=name` - Sort by description ascending, then name descending\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listApplicationsV1ApplicationsGet(page?: number, pageSize?: number, sort?: Array<string> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApplicationReadShortResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listApplicationsV1ApplicationsGet(page, pageSize, sort, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.listApplicationsV1ApplicationsGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * List grants. Org admins see all grants for all resources in their organization. Regular users see grants for all resources they submitted.\n * @summary List Grants\n * @param {ResourceType | null} [resourceType] \n * @param {string | null} [resourceId] \n * @param {SubjectType | null} [subjectType] \n * @param {string | null} [subjectId] \n * @param {boolean | null} [revoked] \n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] Sort the results by one or more fields. Use `+` for ascending and `-` for descending order.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listGrantsV1AccessGrantsGet(resourceType?: ResourceType | null, resourceId?: string | null, subjectType?: SubjectType | null, subjectId?: string | null, revoked?: boolean | null, page?: number, pageSize?: number, sort?: Array<string> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GrantReadResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listGrantsV1AccessGrantsGet(resourceType, resourceId, subjectType, subjectId, revoked, page, pageSize, sort, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.listGrantsV1AccessGrantsGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * List items in a run with filtering, sorting, and pagination capabilities. Returns paginated items within a specific run. Results can be filtered by `item_id`, `external_ids`, `custom_metadata`, `terminated_at`, and `termination_reason` using JSONPath expressions. ## JSONPath Metadata Filtering Use PostgreSQL JSONPath expressions to filter items using their custom_metadata. ### Examples: - **Field existence**: `$.case_id` - Results that have a case_id field defined - **Exact value match**: `$.priority ? (@ == \\\"high\\\")` - Results with high priority - **Numeric comparison**: `$.confidence_score ? (@ > 0.95)` - Results with high confidence - **Array operations**: `$.flags[*] ? (@ == \\\"reviewed\\\")` - Results flagged as reviewed - **Complex conditions**: `$.metrics ? (@.accuracy > 0.9 && @.recall > 0.8)` - Results meeting performance thresholds ## Notes - JSONPath expressions are evaluated using PostgreSQL\\'s `@?` operator - The `$.` prefix is automatically added to root-level field references if missing - String values in conditions must be enclosed in double quotes - Use `&&` for AND operations and `||` for OR operations\n * @summary List Run Items\n * @param {string} runId Run id, returned by `POST /v1/runs/` endpoint\n * @param {string | null} [shareToken] Share token for accessing shared runs\n * @param {Array<string> | null} [itemIdIn] Filter for item ids\n * @param {Array<string> | null} [externalIdIn] Filter for items by their external_id from the input payload\n * @param {ItemState | null} [state] Filter items by their state\n * @param {ItemTerminationReason | null} [terminationReason] Filter items by their termination reason. Only applies to TERMINATED items.\n * @param {string | null} [customMetadata] JSONPath expression to filter items by their custom_metadata\n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] Sort the items by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `item_id` - `external_id` - `custom_metadata` - `terminated_at` - `termination_reason` **Examples:** - `?sort=item_id` - Sort by id of the item (ascending) - `?sort=-external_id` - Sort by external ID (descending) - `?sort=custom_metadata&sort=-external_id` - Sort by metadata, then by external ID (descending)\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listRunItemsV1RunsRunIdItemsGet(runId: string, shareToken?: string | null, itemIdIn?: Array<string> | null, externalIdIn?: Array<string> | null, state?: ItemState | null, terminationReason?: ItemTerminationReason | null, customMetadata?: string | null, page?: number, pageSize?: number, sort?: Array<string> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ItemResultReadResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listRunItemsV1RunsRunIdItemsGet(runId, shareToken, itemIdIn, externalIdIn, state, terminationReason, customMetadata, page, pageSize, sort, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.listRunItemsV1RunsRunIdItemsGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * List runs with filtering, sorting, and pagination capabilities. Returns paginated runs that were submitted by the user.\n * @summary List Runs\n * @param {string | null} [applicationId] Optional application ID filter\n * @param {string | null} [applicationVersion] Optional Version Name\n * @param {string | null} [externalId] Optionally filter runs by items with this external ID\n * @param {string | null} [customMetadata] Use PostgreSQL JSONPath expressions to filter runs by their custom_metadata. #### URL Encoding Required **Important**: JSONPath expressions contain special characters that must be URL-encoded when used in query parameters. Most HTTP clients handle this automatically, but when constructing URLs manually, please ensure proper encoding. #### Examples (Clear Format): - **Field existence**: `$.study` - Runs that have a study field defined - **Exact value match**: `$.study ? (@ == \\"high\\")` - Runs with specific study value - **Numeric comparison**: `$.confidence_score ? (@ > 0.75)` - Runs with confidence score greater than 0.75 - **Array operations**: `$.tags[*] ? (@ == \\"draft\\")` - Runs with tags array containing \\"draft\\" - **Complex conditions**: `$.resources ? (@.gpu_count > 2 && @.memory_gb >= 16)` - Runs with high resource requirements #### Examples (URL-Encoded Format): - **Field existence**: `%24.study` - **Exact value match**: `%24.study%20%3F%20(%40%20%3D%3D%20%22high%22)` - **Numeric comparison**: `%24.confidence_score%20%3F%20(%40%20%3E%200.75)` - **Array operations**: `%24.tags%5B*%5D%20%3F%20(%40%20%3D%3D%20%22draft%22)` - **Complex conditions**: `%24.resources%20%3F%20(%40.gpu_count%20%3E%202%20%26%26%20%40.memory_gb%20%3E%3D%2016)` #### Notes - JSONPath expressions are evaluated using PostgreSQL\\'s `@?` operator - The `$.` prefix is automatically added to root-level field references if missing - String values in conditions must be enclosed in double quotes - Use `&&` for AND operations and `||` for OR operations - Regular expressions use `like_regex` with standard regex syntax - **Please remember to URL-encode the entire JSONPath expression when making HTTP requests** \n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {string | null} [forOrganization] Filter runs by organization ID. Available for superadmins (any org) and admins (own org only). When provided, returns all runs for the specified organization instead of only the caller\\'s own runs.\n * @param {Array<string> | null} [sort] Sort the results by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `run_id` - `application_id` - `version_number` - `custom_metadata` - `submitted_at` - `submitted_by` - `terminated_at` - `termination_reason` **Examples:** - `?sort=submitted_at` - Sort by creation time (ascending) - `?sort=-submitted_at` - Sort by creation time (descending) - `?sort=state&sort=-submitted_at` - Sort by state, then by time (descending) \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listRunsV1RunsGet(applicationId?: string | null, applicationVersion?: string | null, externalId?: string | null, customMetadata?: string | null, page?: number, pageSize?: number, forOrganization?: string | null, sort?: Array<string> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RunReadResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listRunsV1RunsGet(applicationId, applicationVersion, externalId, customMetadata, page, pageSize, forOrganization, sort, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.listRunsV1RunsGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * List share tokens. Service and Superadmin see all tokens; other users see only their own.\n * @summary List Share Tokens\n * @param {string | null} [runId] Filter by run ID\n * @param {string | null} [createdBy] Filter by share token creator\n * @param {boolean | null} [revoked] \n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] Sort the results by one or more fields. Use `+` for ascending and `-` for descending order.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listShareTokensV1AccessShareTokensGet(runId?: string | null, createdBy?: string | null, revoked?: boolean | null, page?: number, pageSize?: number, sort?: Array<string> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ShareTokenReadResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listShareTokensV1AccessShareTokensGet(runId, createdBy, revoked, page, pageSize, sort, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.listShareTokensV1AccessShareTokensGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * List public documents attached to an application version. Returns only documents with ``visibility=public`` and ``status=uploaded``.\n * @summary List version documents\n * @param {string} applicationId \n * @param {string} version \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listVersionDocuments(applicationId: string, version: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VersionDocumentResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listVersionDocuments(applicationId, version, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.listVersionDocuments']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Update the custom metadata of the item with the specified `external_id`, belonging to the specified run. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for individual items via `GET /v1/runs/{run_id}/items/{external_id}`, and for all items of a run via `GET /v1/runs/{run_id}/items`.\n * @summary Put Item Custom Metadata By Run\n * @param {string} runId The run id, returned by `POST /runs/` endpoint\n * @param {string} externalId The `external_id` that was defined for the item by the customer that triggered the run.\n * @param {CustomMetadataUpdateRequest} customMetadataUpdateRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut(runId: string, externalId: string, customMetadataUpdateRequest: CustomMetadataUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomMetadataUpdateResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut(runId, externalId, customMetadataUpdateRequest, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Update the custom metadata of a run with the specified `run_id`. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for the run via the `GET /v1/runs/{run_id}` endpoint. **Note on deadlines:** Run deadlines must be set during run creation and cannot be modified afterward. Any deadline changes in custom metadata will be ignored by the system.\n * @summary Put Run Custom Metadata\n * @param {string} runId Run id, returned by `POST /runs/` endpoint\n * @param {CustomMetadataUpdateRequest} customMetadataUpdateRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async putRunCustomMetadataV1RunsRunIdCustomMetadataPut(runId: string, customMetadataUpdateRequest: CustomMetadataUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomMetadataUpdateResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.putRunCustomMetadataV1RunsRunIdCustomMetadataPut(runId, customMetadataUpdateRequest, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.putRunCustomMetadataV1RunsRunIdCustomMetadataPut']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Retrieve details of a specific application by its ID.\n * @summary Read Application By Id\n * @param {string} applicationId \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async readApplicationByIdV1ApplicationsApplicationIdGet(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApplicationReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.readApplicationByIdV1ApplicationsApplicationIdGet(applicationId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.readApplicationByIdV1ApplicationsApplicationIdGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Revoke a grant by its ID. Sets the revoked_at timestamp on the grant.\n * @summary Revoke Grant\n * @param {string} grantId Grant ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async revokeGrantV1AccessGrantsGrantIdDelete(grantId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GrantReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.revokeGrantV1AccessGrantsGrantIdDelete(grantId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.revokeGrantV1AccessGrantsGrantIdDelete']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Revoke a share token by its ID. Invalidates the credential regardless of any active grants.\n * @summary Revoke Share Token\n * @param {string} shareTokenId Share token ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async revokeShareTokenV1AccessShareTokensShareTokenIdDelete(shareTokenId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShareTokenReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.revokeShareTokenV1AccessShareTokensShareTokenIdDelete(shareTokenId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.revokeShareTokenV1AccessShareTokensShareTokenIdDelete']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * PublicApi - factory interface\n * @export\n */\nexport const PublicApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = PublicApiFp(configuration)\n return {\n /**\n * Get the application version details. Allows caller to retrieve information about application version based on provided application version ID.\n * @summary Application Version Details\n * @param {PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet(requestParameters: PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<VersionReadResponse> {\n return localVarFp.applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet(requestParameters.applicationId, requestParameters.version, options).then((request) => request(axios, basePath));\n },\n /**\n * The run can be canceled by the user who created the run. The execution can be canceled any time while the run is not in the terminated state. The pending items of a canceled run will not be processed and will not add to the cost. When the run is canceled, the already completed items remain available for download.\n * @summary Cancel Run\n * @param {PublicApiCancelRunV1RunsRunIdCancelPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n cancelRunV1RunsRunIdCancelPost(requestParameters: PublicApiCancelRunV1RunsRunIdCancelPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<any> {\n return localVarFp.cancelRunV1RunsRunIdCancelPost(requestParameters.runId, options).then((request) => request(axios, basePath));\n },\n /**\n * Create a grant to share access to a resource with a subject (user or organization).\n * @summary Create Grant\n * @param {PublicApiCreateGrantV1AccessGrantsPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createGrantV1AccessGrantsPost(requestParameters: PublicApiCreateGrantV1AccessGrantsPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<GrantReadResponse> {\n return localVarFp.createGrantV1AccessGrantsPost(requestParameters.grantCreateRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * This endpoint initiates a processing run for a selected application and version, and returns a `run_id` for tracking purposes. Slide processing occurs asynchronously, allowing you to retrieve results for individual slides as soon as they complete processing. The system typically processes slides in batches. Below is an example of the required payload for initiating an Atlas H&E TME processing run. ### Payload The payload includes `application_id`, optional `version_number`, and `items` base fields. `application_id` is the unique identifier for the application. `version_number` is the semantic version to use. If not provided, the latest available version will be used. `items` includes the list of the items to process (slides, in case of HETA application). Every item has a set of standard fields defined by the API, plus the custom_metadata, specific to the chosen application. Example payload structure with the comments: ``` { application_id: \\\"he-tme\\\", version_number: \\\"1.0.0-beta\\\", items: [{ \\\"external_id\\\": \\\"slide_1\\\", \\\"custom_metadata\\\": {\\\"project\\\": \\\"sample-study\\\"}, \\\"input_artifacts\\\": [{ \\\"name\\\": \\\"user_slide\\\", \\\"download_url\\\": \\\"https://...\\\", \\\"metadata\\\": { \\\"specimen\\\": { \\\"disease\\\": \\\"LUNG_CANCER\\\", \\\"tissue\\\": \\\"LUNG\\\" }, \\\"staining_method\\\": \\\"H&E\\\", \\\"width_px\\\": 136223, \\\"height_px\\\": 87761, \\\"resolution_mpp\\\": 0.2628238, \\\"media-type\\\":\\\"image/tiff\\\", \\\"checksum_base64_crc32c\\\": \\\"64RKKA==\\\" } }] }] } ``` | Parameter | Description | | :---- | :---- | | `application_id` required | Unique ID for the application | | `version_number` optional | Semantic version of the application. If not provided, the latest available version will be used | | `items` required | List of submitted items i.e. whole slide images (WSIs) with parameters described below. | | `external_id` required | Unique WSI name or ID for easy reference to items, provided by the caller. The `external_id` should be unique across all items of the run. | | `input_artifacts` required | List of provided artifacts for a WSI; at the moment Atlas H&E-TME receives only 1 artifact per slide (the slide itself), but for some other applications this can be a slide and a segmentation map | | `name` required | Type of artifact; Atlas H&E-TME supports only `\\\"input_slide\\\"` | | `download_url` required | Signed URL to the input file in the S3 or GCS; Should be valid for at least 6 days | | `specimen: disease` required | Supported cancer types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `specimen: tissue` required | Supported tissue types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `staining_method` required | WSI stain bio-marker; Atlas H&E-TME supports only `\\\"H&E\\\"` | | `width_px` required | Integer value. Number of pixels of the WSI in the X dimension. | | `height_px` required | Integer value. Number of pixels of the WSI in the Y dimension. | | `resolution_mpp` required | Resolution of WSI in micrometers per pixel; check allowed range in Atlas H&E-TME manual | | `media-type` required | Supported media formats; available values are: image/tiff (for .tiff or .tif WSI), application/dicom (for DICOM ), application/zip (for zipped DICOM), and application/octet-stream (for .svs WSI) | | `checksum_base64_crc32c` required | Base64-encoded big-endian CRC32C checksum of the WSI image | ### Response The endpoint returns the run UUID. After that, the job is scheduled for the execution in the background. To check the status of the run, call `GET v1/runs/{run_id}` endpoint with the returned run UUID. ### Rejection Apart from the authentication, authorization, and malformed input error, the request can be rejected when specific quota limit is exceeded. More details on quotas is described in the documentation\n * @summary Initiate Run\n * @param {PublicApiCreateRunV1RunsPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createRunV1RunsPost(requestParameters: PublicApiCreateRunV1RunsPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<RunCreationResponse> {\n return localVarFp.createRunV1RunsPost(requestParameters.runCreationRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * Create a share token. The returned share_token value is shown only once and is never stored. Use POST /access/grants with subject_type=share_token to grant access to a resource.\n * @summary Create Share Token\n * @param {PublicApiCreateShareTokenV1AccessShareTokensPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createShareTokenV1AccessShareTokensPost(requestParameters: PublicApiCreateShareTokenV1AccessShareTokensPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShareTokenCreateResponse> {\n return localVarFp.createShareTokenV1AccessShareTokensPost(requestParameters.shareTokenCreateRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * This endpoint allows the caller to explicitly delete artifacts generated by a run. It can only be invoked when the run has reached a final state, i.e. `PROCESSED`, `CANCELED_SYSTEM`, or `CANCELED_USER`. Note that by default, all artifacts are automatically deleted 30 days after the run finishes, regardless of whether the caller explicitly requests such deletion.\n * @summary Delete Run Items\n * @param {PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteRunItemsV1RunsRunIdArtifactsDelete(requestParameters: PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<any> {\n return localVarFp.deleteRunItemsV1RunsRunIdArtifactsDelete(requestParameters.runId, options).then((request) => request(axios, basePath));\n },\n /**\n * Download the artifact file with the specified artifact_id, belonging to the specified run. The artifact_is is returned by the `GET /v1/runs/{run_id}/items` endpoint as part of the item results, and can also be retrieved via `GET /v1/runs/{run_id}/items/{external_id}`. The endpoint may return a redirect response with a presigned URL to download the artifact file from the storage bucket. The presigned URL is valid for a limited time, so it should be used immediately after receiving the response.\n * @summary Get Artifact Url\n * @param {PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet(requestParameters: PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<any> {\n return localVarFp.getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet(requestParameters.runId, requestParameters.artifactId, requestParameters.shareToken, options).then((request) => request(axios, basePath));\n },\n /**\n * Get a grant by its ID.\n * @summary Get Grant\n * @param {PublicApiGetGrantV1AccessGrantsGrantIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getGrantV1AccessGrantsGrantIdGet(requestParameters: PublicApiGetGrantV1AccessGrantsGrantIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<GrantReadResponse> {\n return localVarFp.getGrantV1AccessGrantsGrantIdGet(requestParameters.grantId, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieve details of a specific item (slide) by its external ID and the run ID.\n * @summary Get Item By Run\n * @param {PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getItemByRunV1RunsRunIdItemsExternalIdGet(requestParameters: PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ItemResultReadResponse> {\n return localVarFp.getItemByRunV1RunsRunIdItemsExternalIdGet(requestParameters.runId, requestParameters.externalId, requestParameters.shareToken, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves your identity details, including name, email, and organization. This is useful for verifying that the request is being made under the correct user profile and organization context, as well as confirming that the expected environment variables are correctly set (in case you are using Python SDK)\n * @summary Get current user\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getMeV1MeGet(options?: RawAxiosRequestConfig): AxiosPromise<MeReadResponse> {\n return localVarFp.getMeV1MeGet(options).then((request) => request(axios, basePath));\n },\n /**\n * This endpoint allows the caller to retrieve the current status of a run along with other relevant run details. A run becomes available immediately after it is created through the `POST /v1/runs/` endpoint. To download the output results, use `GET /v1/runs/{run_id}/` items to get outputs for all slides. Access to a run is restricted to the user who created it, or users with an active grant or valid share token.\n * @summary Get run details\n * @param {PublicApiGetRunV1RunsRunIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getRunV1RunsRunIdGet(requestParameters: PublicApiGetRunV1RunsRunIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<RunReadResponse> {\n return localVarFp.getRunV1RunsRunIdGet(requestParameters.runId, requestParameters.shareToken, options).then((request) => request(axios, basePath));\n },\n /**\n * Get a share token by its ID.\n * @summary Get Share Token\n * @param {PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getShareTokenV1AccessShareTokensShareTokenIdGet(requestParameters: PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShareTokenReadResponse> {\n return localVarFp.getShareTokenV1AccessShareTokensShareTokenIdGet(requestParameters.shareTokenId, options).then((request) => request(axios, basePath));\n },\n /**\n * Return metadata for a single public document attached to an application version.\n * @summary Get version document metadata\n * @param {PublicApiGetVersionDocumentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getVersionDocument(requestParameters: PublicApiGetVersionDocumentRequest, options?: RawAxiosRequestConfig): AxiosPromise<VersionDocumentResponse> {\n return localVarFp.getVersionDocument(requestParameters.applicationId, requestParameters.version, requestParameters.name, options).then((request) => request(axios, basePath));\n },\n /**\n * 307 redirect to a short-lived GCS signed URL for streaming document content. Unlike ``/file``, no ``Content-Disposition`` override is set — GCS serves the object body with its stored ``Content-Type``. Intended for programmatic clients that follow redirects and consume the content directly. Response carries ``Cache-Control: no-store``.\n * @summary Stream version document content (programmatic)\n * @param {PublicApiGetVersionDocumentContentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getVersionDocumentContent(requestParameters: PublicApiGetVersionDocumentContentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.getVersionDocumentContent(requestParameters.applicationId, requestParameters.version, requestParameters.name, options).then((request) => request(axios, basePath));\n },\n /**\n * 307 redirect to a short-lived GCS signed URL for downloading a document. The signed URL includes ``response-content-disposition=attachment; filename=\\\"<name>\\\"`` so browsers prompt a save-as dialog rather than rendering inline. Response carries ``Cache-Control: no-store``.\n * @summary Download version document (browser)\n * @param {PublicApiGetVersionDocumentFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getVersionDocumentFile(requestParameters: PublicApiGetVersionDocumentFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.getVersionDocumentFile(requestParameters.applicationId, requestParameters.version, requestParameters.name, options).then((request) => request(axios, basePath));\n },\n /**\n * Returns the list of the applications, available to the caller. The application is available if any of the versions of the application is assigned to the caller\\'s organization. The response is paginated and sorted according to the provided parameters.\n * @summary List available applications\n * @param {PublicApiListApplicationsV1ApplicationsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listApplicationsV1ApplicationsGet(requestParameters: PublicApiListApplicationsV1ApplicationsGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApplicationReadShortResponse>> {\n return localVarFp.listApplicationsV1ApplicationsGet(requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(axios, basePath));\n },\n /**\n * List grants. Org admins see all grants for all resources in their organization. Regular users see grants for all resources they submitted.\n * @summary List Grants\n * @param {PublicApiListGrantsV1AccessGrantsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listGrantsV1AccessGrantsGet(requestParameters: PublicApiListGrantsV1AccessGrantsGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<GrantReadResponse>> {\n return localVarFp.listGrantsV1AccessGrantsGet(requestParameters.resourceType, requestParameters.resourceId, requestParameters.subjectType, requestParameters.subjectId, requestParameters.revoked, requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(axios, basePath));\n },\n /**\n * List items in a run with filtering, sorting, and pagination capabilities. Returns paginated items within a specific run. Results can be filtered by `item_id`, `external_ids`, `custom_metadata`, `terminated_at`, and `termination_reason` using JSONPath expressions. ## JSONPath Metadata Filtering Use PostgreSQL JSONPath expressions to filter items using their custom_metadata. ### Examples: - **Field existence**: `$.case_id` - Results that have a case_id field defined - **Exact value match**: `$.priority ? (@ == \\\"high\\\")` - Results with high priority - **Numeric comparison**: `$.confidence_score ? (@ > 0.95)` - Results with high confidence - **Array operations**: `$.flags[*] ? (@ == \\\"reviewed\\\")` - Results flagged as reviewed - **Complex conditions**: `$.metrics ? (@.accuracy > 0.9 && @.recall > 0.8)` - Results meeting performance thresholds ## Notes - JSONPath expressions are evaluated using PostgreSQL\\'s `@?` operator - The `$.` prefix is automatically added to root-level field references if missing - String values in conditions must be enclosed in double quotes - Use `&&` for AND operations and `||` for OR operations\n * @summary List Run Items\n * @param {PublicApiListRunItemsV1RunsRunIdItemsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listRunItemsV1RunsRunIdItemsGet(requestParameters: PublicApiListRunItemsV1RunsRunIdItemsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ItemResultReadResponse>> {\n return localVarFp.listRunItemsV1RunsRunIdItemsGet(requestParameters.runId, requestParameters.shareToken, requestParameters.itemIdIn, requestParameters.externalIdIn, requestParameters.state, requestParameters.terminationReason, requestParameters.customMetadata, requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(axios, basePath));\n },\n /**\n * List runs with filtering, sorting, and pagination capabilities. Returns paginated runs that were submitted by the user.\n * @summary List Runs\n * @param {PublicApiListRunsV1RunsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listRunsV1RunsGet(requestParameters: PublicApiListRunsV1RunsGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<RunReadResponse>> {\n return localVarFp.listRunsV1RunsGet(requestParameters.applicationId, requestParameters.applicationVersion, requestParameters.externalId, requestParameters.customMetadata, requestParameters.page, requestParameters.pageSize, requestParameters.forOrganization, requestParameters.sort, options).then((request) => request(axios, basePath));\n },\n /**\n * List share tokens. Service and Superadmin see all tokens; other users see only their own.\n * @summary List Share Tokens\n * @param {PublicApiListShareTokensV1AccessShareTokensGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listShareTokensV1AccessShareTokensGet(requestParameters: PublicApiListShareTokensV1AccessShareTokensGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<ShareTokenReadResponse>> {\n return localVarFp.listShareTokensV1AccessShareTokensGet(requestParameters.runId, requestParameters.createdBy, requestParameters.revoked, requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(axios, basePath));\n },\n /**\n * List public documents attached to an application version. Returns only documents with ``visibility=public`` and ``status=uploaded``.\n * @summary List version documents\n * @param {PublicApiListVersionDocumentsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listVersionDocuments(requestParameters: PublicApiListVersionDocumentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<VersionDocumentResponse>> {\n return localVarFp.listVersionDocuments(requestParameters.applicationId, requestParameters.version, options).then((request) => request(axios, basePath));\n },\n /**\n * Update the custom metadata of the item with the specified `external_id`, belonging to the specified run. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for individual items via `GET /v1/runs/{run_id}/items/{external_id}`, and for all items of a run via `GET /v1/runs/{run_id}/items`.\n * @summary Put Item Custom Metadata By Run\n * @param {PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut(requestParameters: PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomMetadataUpdateResponse> {\n return localVarFp.putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut(requestParameters.runId, requestParameters.externalId, requestParameters.customMetadataUpdateRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * Update the custom metadata of a run with the specified `run_id`. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for the run via the `GET /v1/runs/{run_id}` endpoint. **Note on deadlines:** Run deadlines must be set during run creation and cannot be modified afterward. Any deadline changes in custom metadata will be ignored by the system.\n * @summary Put Run Custom Metadata\n * @param {PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n putRunCustomMetadataV1RunsRunIdCustomMetadataPut(requestParameters: PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomMetadataUpdateResponse> {\n return localVarFp.putRunCustomMetadataV1RunsRunIdCustomMetadataPut(requestParameters.runId, requestParameters.customMetadataUpdateRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieve details of a specific application by its ID.\n * @summary Read Application By Id\n * @param {PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n readApplicationByIdV1ApplicationsApplicationIdGet(requestParameters: PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApplicationReadResponse> {\n return localVarFp.readApplicationByIdV1ApplicationsApplicationIdGet(requestParameters.applicationId, options).then((request) => request(axios, basePath));\n },\n /**\n * Revoke a grant by its ID. Sets the revoked_at timestamp on the grant.\n * @summary Revoke Grant\n * @param {PublicApiRevokeGrantV1AccessGrantsGrantIdDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n revokeGrantV1AccessGrantsGrantIdDelete(requestParameters: PublicApiRevokeGrantV1AccessGrantsGrantIdDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<GrantReadResponse> {\n return localVarFp.revokeGrantV1AccessGrantsGrantIdDelete(requestParameters.grantId, options).then((request) => request(axios, basePath));\n },\n /**\n * Revoke a share token by its ID. Invalidates the credential regardless of any active grants.\n * @summary Revoke Share Token\n * @param {PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n revokeShareTokenV1AccessShareTokensShareTokenIdDelete(requestParameters: PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShareTokenReadResponse> {\n return localVarFp.revokeShareTokenV1AccessShareTokensShareTokenIdDelete(requestParameters.shareTokenId, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * PublicApi - interface\n * @export\n * @interface PublicApi\n */\nexport interface PublicApiInterface {\n /**\n * Get the application version details. Allows caller to retrieve information about application version based on provided application version ID.\n * @summary Application Version Details\n * @param {PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet(requestParameters: PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<VersionReadResponse>;\n\n /**\n * The run can be canceled by the user who created the run. The execution can be canceled any time while the run is not in the terminated state. The pending items of a canceled run will not be processed and will not add to the cost. When the run is canceled, the already completed items remain available for download.\n * @summary Cancel Run\n * @param {PublicApiCancelRunV1RunsRunIdCancelPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n cancelRunV1RunsRunIdCancelPost(requestParameters: PublicApiCancelRunV1RunsRunIdCancelPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<any>;\n\n /**\n * Create a grant to share access to a resource with a subject (user or organization).\n * @summary Create Grant\n * @param {PublicApiCreateGrantV1AccessGrantsPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n createGrantV1AccessGrantsPost(requestParameters: PublicApiCreateGrantV1AccessGrantsPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<GrantReadResponse>;\n\n /**\n * This endpoint initiates a processing run for a selected application and version, and returns a `run_id` for tracking purposes. Slide processing occurs asynchronously, allowing you to retrieve results for individual slides as soon as they complete processing. The system typically processes slides in batches. Below is an example of the required payload for initiating an Atlas H&E TME processing run. ### Payload The payload includes `application_id`, optional `version_number`, and `items` base fields. `application_id` is the unique identifier for the application. `version_number` is the semantic version to use. If not provided, the latest available version will be used. `items` includes the list of the items to process (slides, in case of HETA application). Every item has a set of standard fields defined by the API, plus the custom_metadata, specific to the chosen application. Example payload structure with the comments: ``` { application_id: \\\"he-tme\\\", version_number: \\\"1.0.0-beta\\\", items: [{ \\\"external_id\\\": \\\"slide_1\\\", \\\"custom_metadata\\\": {\\\"project\\\": \\\"sample-study\\\"}, \\\"input_artifacts\\\": [{ \\\"name\\\": \\\"user_slide\\\", \\\"download_url\\\": \\\"https://...\\\", \\\"metadata\\\": { \\\"specimen\\\": { \\\"disease\\\": \\\"LUNG_CANCER\\\", \\\"tissue\\\": \\\"LUNG\\\" }, \\\"staining_method\\\": \\\"H&E\\\", \\\"width_px\\\": 136223, \\\"height_px\\\": 87761, \\\"resolution_mpp\\\": 0.2628238, \\\"media-type\\\":\\\"image/tiff\\\", \\\"checksum_base64_crc32c\\\": \\\"64RKKA==\\\" } }] }] } ``` | Parameter | Description | | :---- | :---- | | `application_id` required | Unique ID for the application | | `version_number` optional | Semantic version of the application. If not provided, the latest available version will be used | | `items` required | List of submitted items i.e. whole slide images (WSIs) with parameters described below. | | `external_id` required | Unique WSI name or ID for easy reference to items, provided by the caller. The `external_id` should be unique across all items of the run. | | `input_artifacts` required | List of provided artifacts for a WSI; at the moment Atlas H&E-TME receives only 1 artifact per slide (the slide itself), but for some other applications this can be a slide and a segmentation map | | `name` required | Type of artifact; Atlas H&E-TME supports only `\\\"input_slide\\\"` | | `download_url` required | Signed URL to the input file in the S3 or GCS; Should be valid for at least 6 days | | `specimen: disease` required | Supported cancer types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `specimen: tissue` required | Supported tissue types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `staining_method` required | WSI stain bio-marker; Atlas H&E-TME supports only `\\\"H&E\\\"` | | `width_px` required | Integer value. Number of pixels of the WSI in the X dimension. | | `height_px` required | Integer value. Number of pixels of the WSI in the Y dimension. | | `resolution_mpp` required | Resolution of WSI in micrometers per pixel; check allowed range in Atlas H&E-TME manual | | `media-type` required | Supported media formats; available values are: image/tiff (for .tiff or .tif WSI), application/dicom (for DICOM ), application/zip (for zipped DICOM), and application/octet-stream (for .svs WSI) | | `checksum_base64_crc32c` required | Base64-encoded big-endian CRC32C checksum of the WSI image | ### Response The endpoint returns the run UUID. After that, the job is scheduled for the execution in the background. To check the status of the run, call `GET v1/runs/{run_id}` endpoint with the returned run UUID. ### Rejection Apart from the authentication, authorization, and malformed input error, the request can be rejected when specific quota limit is exceeded. More details on quotas is described in the documentation\n * @summary Initiate Run\n * @param {PublicApiCreateRunV1RunsPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n createRunV1RunsPost(requestParameters: PublicApiCreateRunV1RunsPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<RunCreationResponse>;\n\n /**\n * Create a share token. The returned share_token value is shown only once and is never stored. Use POST /access/grants with subject_type=share_token to grant access to a resource.\n * @summary Create Share Token\n * @param {PublicApiCreateShareTokenV1AccessShareTokensPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n createShareTokenV1AccessShareTokensPost(requestParameters: PublicApiCreateShareTokenV1AccessShareTokensPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShareTokenCreateResponse>;\n\n /**\n * This endpoint allows the caller to explicitly delete artifacts generated by a run. It can only be invoked when the run has reached a final state, i.e. `PROCESSED`, `CANCELED_SYSTEM`, or `CANCELED_USER`. Note that by default, all artifacts are automatically deleted 30 days after the run finishes, regardless of whether the caller explicitly requests such deletion.\n * @summary Delete Run Items\n * @param {PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n deleteRunItemsV1RunsRunIdArtifactsDelete(requestParameters: PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<any>;\n\n /**\n * Download the artifact file with the specified artifact_id, belonging to the specified run. The artifact_is is returned by the `GET /v1/runs/{run_id}/items` endpoint as part of the item results, and can also be retrieved via `GET /v1/runs/{run_id}/items/{external_id}`. The endpoint may return a redirect response with a presigned URL to download the artifact file from the storage bucket. The presigned URL is valid for a limited time, so it should be used immediately after receiving the response.\n * @summary Get Artifact Url\n * @param {PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet(requestParameters: PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<any>;\n\n /**\n * Get a grant by its ID.\n * @summary Get Grant\n * @param {PublicApiGetGrantV1AccessGrantsGrantIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getGrantV1AccessGrantsGrantIdGet(requestParameters: PublicApiGetGrantV1AccessGrantsGrantIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<GrantReadResponse>;\n\n /**\n * Retrieve details of a specific item (slide) by its external ID and the run ID.\n * @summary Get Item By Run\n * @param {PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getItemByRunV1RunsRunIdItemsExternalIdGet(requestParameters: PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ItemResultReadResponse>;\n\n /**\n * Retrieves your identity details, including name, email, and organization. This is useful for verifying that the request is being made under the correct user profile and organization context, as well as confirming that the expected environment variables are correctly set (in case you are using Python SDK)\n * @summary Get current user\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getMeV1MeGet(options?: RawAxiosRequestConfig): AxiosPromise<MeReadResponse>;\n\n /**\n * This endpoint allows the caller to retrieve the current status of a run along with other relevant run details. A run becomes available immediately after it is created through the `POST /v1/runs/` endpoint. To download the output results, use `GET /v1/runs/{run_id}/` items to get outputs for all slides. Access to a run is restricted to the user who created it, or users with an active grant or valid share token.\n * @summary Get run details\n * @param {PublicApiGetRunV1RunsRunIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getRunV1RunsRunIdGet(requestParameters: PublicApiGetRunV1RunsRunIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<RunReadResponse>;\n\n /**\n * Get a share token by its ID.\n * @summary Get Share Token\n * @param {PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getShareTokenV1AccessShareTokensShareTokenIdGet(requestParameters: PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShareTokenReadResponse>;\n\n /**\n * Return metadata for a single public document attached to an application version.\n * @summary Get version document metadata\n * @param {PublicApiGetVersionDocumentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getVersionDocument(requestParameters: PublicApiGetVersionDocumentRequest, options?: RawAxiosRequestConfig): AxiosPromise<VersionDocumentResponse>;\n\n /**\n * 307 redirect to a short-lived GCS signed URL for streaming document content. Unlike ``/file``, no ``Content-Disposition`` override is set — GCS serves the object body with its stored ``Content-Type``. Intended for programmatic clients that follow redirects and consume the content directly. Response carries ``Cache-Control: no-store``.\n * @summary Stream version document content (programmatic)\n * @param {PublicApiGetVersionDocumentContentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getVersionDocumentContent(requestParameters: PublicApiGetVersionDocumentContentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;\n\n /**\n * 307 redirect to a short-lived GCS signed URL for downloading a document. The signed URL includes ``response-content-disposition=attachment; filename=\\\"<name>\\\"`` so browsers prompt a save-as dialog rather than rendering inline. Response carries ``Cache-Control: no-store``.\n * @summary Download version document (browser)\n * @param {PublicApiGetVersionDocumentFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getVersionDocumentFile(requestParameters: PublicApiGetVersionDocumentFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;\n\n /**\n * Returns the list of the applications, available to the caller. The application is available if any of the versions of the application is assigned to the caller\\'s organization. The response is paginated and sorted according to the provided parameters.\n * @summary List available applications\n * @param {PublicApiListApplicationsV1ApplicationsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n listApplicationsV1ApplicationsGet(requestParameters?: PublicApiListApplicationsV1ApplicationsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApplicationReadShortResponse>>;\n\n /**\n * List grants. Org admins see all grants for all resources in their organization. Regular users see grants for all resources they submitted.\n * @summary List Grants\n * @param {PublicApiListGrantsV1AccessGrantsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n listGrantsV1AccessGrantsGet(requestParameters?: PublicApiListGrantsV1AccessGrantsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<GrantReadResponse>>;\n\n /**\n * List items in a run with filtering, sorting, and pagination capabilities. Returns paginated items within a specific run. Results can be filtered by `item_id`, `external_ids`, `custom_metadata`, `terminated_at`, and `termination_reason` using JSONPath expressions. ## JSONPath Metadata Filtering Use PostgreSQL JSONPath expressions to filter items using their custom_metadata. ### Examples: - **Field existence**: `$.case_id` - Results that have a case_id field defined - **Exact value match**: `$.priority ? (@ == \\\"high\\\")` - Results with high priority - **Numeric comparison**: `$.confidence_score ? (@ > 0.95)` - Results with high confidence - **Array operations**: `$.flags[*] ? (@ == \\\"reviewed\\\")` - Results flagged as reviewed - **Complex conditions**: `$.metrics ? (@.accuracy > 0.9 && @.recall > 0.8)` - Results meeting performance thresholds ## Notes - JSONPath expressions are evaluated using PostgreSQL\\'s `@?` operator - The `$.` prefix is automatically added to root-level field references if missing - String values in conditions must be enclosed in double quotes - Use `&&` for AND operations and `||` for OR operations\n * @summary List Run Items\n * @param {PublicApiListRunItemsV1RunsRunIdItemsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n listRunItemsV1RunsRunIdItemsGet(requestParameters: PublicApiListRunItemsV1RunsRunIdItemsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ItemResultReadResponse>>;\n\n /**\n * List runs with filtering, sorting, and pagination capabilities. Returns paginated runs that were submitted by the user.\n * @summary List Runs\n * @param {PublicApiListRunsV1RunsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n listRunsV1RunsGet(requestParameters?: PublicApiListRunsV1RunsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<RunReadResponse>>;\n\n /**\n * List share tokens. Service and Superadmin see all tokens; other users see only their own.\n * @summary List Share Tokens\n * @param {PublicApiListShareTokensV1AccessShareTokensGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n listShareTokensV1AccessShareTokensGet(requestParameters?: PublicApiListShareTokensV1AccessShareTokensGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ShareTokenReadResponse>>;\n\n /**\n * List public documents attached to an application version. Returns only documents with ``visibility=public`` and ``status=uploaded``.\n * @summary List version documents\n * @param {PublicApiListVersionDocumentsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n listVersionDocuments(requestParameters: PublicApiListVersionDocumentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<VersionDocumentResponse>>;\n\n /**\n * Update the custom metadata of the item with the specified `external_id`, belonging to the specified run. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for individual items via `GET /v1/runs/{run_id}/items/{external_id}`, and for all items of a run via `GET /v1/runs/{run_id}/items`.\n * @summary Put Item Custom Metadata By Run\n * @param {PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut(requestParameters: PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomMetadataUpdateResponse>;\n\n /**\n * Update the custom metadata of a run with the specified `run_id`. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for the run via the `GET /v1/runs/{run_id}` endpoint. **Note on deadlines:** Run deadlines must be set during run creation and cannot be modified afterward. Any deadline changes in custom metadata will be ignored by the system.\n * @summary Put Run Custom Metadata\n * @param {PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n putRunCustomMetadataV1RunsRunIdCustomMetadataPut(requestParameters: PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomMetadataUpdateResponse>;\n\n /**\n * Retrieve details of a specific application by its ID.\n * @summary Read Application By Id\n * @param {PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n readApplicationByIdV1ApplicationsApplicationIdGet(requestParameters: PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApplicationReadResponse>;\n\n /**\n * Revoke a grant by its ID. Sets the revoked_at timestamp on the grant.\n * @summary Revoke Grant\n * @param {PublicApiRevokeGrantV1AccessGrantsGrantIdDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n revokeGrantV1AccessGrantsGrantIdDelete(requestParameters: PublicApiRevokeGrantV1AccessGrantsGrantIdDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<GrantReadResponse>;\n\n /**\n * Revoke a share token by its ID. Invalidates the credential regardless of any active grants.\n * @summary Revoke Share Token\n * @param {PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n revokeShareTokenV1AccessShareTokensShareTokenIdDelete(requestParameters: PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShareTokenReadResponse>;\n\n}\n\n/**\n * Request parameters for applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet operation in PublicApi.\n * @export\n * @interface PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest\n */\nexport interface PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest {\n /**\n * \n * @type {string}\n * @memberof PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet\n */\n readonly applicationId: string\n\n /**\n * \n * @type {string}\n * @memberof PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet\n */\n readonly version: string\n}\n\n/**\n * Request parameters for cancelRunV1RunsRunIdCancelPost operation in PublicApi.\n * @export\n * @interface PublicApiCancelRunV1RunsRunIdCancelPostRequest\n */\nexport interface PublicApiCancelRunV1RunsRunIdCancelPostRequest {\n /**\n * Run id, returned by `POST /runs/` endpoint\n * @type {string}\n * @memberof PublicApiCancelRunV1RunsRunIdCancelPost\n */\n readonly runId: string\n}\n\n/**\n * Request parameters for createGrantV1AccessGrantsPost operation in PublicApi.\n * @export\n * @interface PublicApiCreateGrantV1AccessGrantsPostRequest\n */\nexport interface PublicApiCreateGrantV1AccessGrantsPostRequest {\n /**\n * \n * @type {GrantCreateRequest}\n * @memberof PublicApiCreateGrantV1AccessGrantsPost\n */\n readonly grantCreateRequest: GrantCreateRequest\n}\n\n/**\n * Request parameters for createRunV1RunsPost operation in PublicApi.\n * @export\n * @interface PublicApiCreateRunV1RunsPostRequest\n */\nexport interface PublicApiCreateRunV1RunsPostRequest {\n /**\n * \n * @type {RunCreationRequest}\n * @memberof PublicApiCreateRunV1RunsPost\n */\n readonly runCreationRequest: RunCreationRequest\n}\n\n/**\n * Request parameters for createShareTokenV1AccessShareTokensPost operation in PublicApi.\n * @export\n * @interface PublicApiCreateShareTokenV1AccessShareTokensPostRequest\n */\nexport interface PublicApiCreateShareTokenV1AccessShareTokensPostRequest {\n /**\n * \n * @type {ShareTokenCreateRequest}\n * @memberof PublicApiCreateShareTokenV1AccessShareTokensPost\n */\n readonly shareTokenCreateRequest: ShareTokenCreateRequest\n}\n\n/**\n * Request parameters for deleteRunItemsV1RunsRunIdArtifactsDelete operation in PublicApi.\n * @export\n * @interface PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest\n */\nexport interface PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest {\n /**\n * Run id, returned by `POST /runs/` endpoint\n * @type {string}\n * @memberof PublicApiDeleteRunItemsV1RunsRunIdArtifactsDelete\n */\n readonly runId: string\n}\n\n/**\n * Request parameters for getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet operation in PublicApi.\n * @export\n * @interface PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGetRequest\n */\nexport interface PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGetRequest {\n /**\n * Run id, returned by `POST /runs/` endpoint\n * @type {string}\n * @memberof PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet\n */\n readonly runId: string\n\n /**\n * The artifact id to download\n * @type {string}\n * @memberof PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet\n */\n readonly artifactId: string\n\n /**\n * Share token for accessing shared runs\n * @type {string}\n * @memberof PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet\n */\n readonly shareToken?: string | null\n}\n\n/**\n * Request parameters for getGrantV1AccessGrantsGrantIdGet operation in PublicApi.\n * @export\n * @interface PublicApiGetGrantV1AccessGrantsGrantIdGetRequest\n */\nexport interface PublicApiGetGrantV1AccessGrantsGrantIdGetRequest {\n /**\n * Grant ID\n * @type {string}\n * @memberof PublicApiGetGrantV1AccessGrantsGrantIdGet\n */\n readonly grantId: string\n}\n\n/**\n * Request parameters for getItemByRunV1RunsRunIdItemsExternalIdGet operation in PublicApi.\n * @export\n * @interface PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest\n */\nexport interface PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest {\n /**\n * The run id, returned by `POST /runs/` endpoint\n * @type {string}\n * @memberof PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGet\n */\n readonly runId: string\n\n /**\n * The `external_id` that was defined for the item by the customer that triggered the run.\n * @type {string}\n * @memberof PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGet\n */\n readonly externalId: string\n\n /**\n * Share token for accessing shared runs\n * @type {string}\n * @memberof PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGet\n */\n readonly shareToken?: string | null\n}\n\n/**\n * Request parameters for getRunV1RunsRunIdGet operation in PublicApi.\n * @export\n * @interface PublicApiGetRunV1RunsRunIdGetRequest\n */\nexport interface PublicApiGetRunV1RunsRunIdGetRequest {\n /**\n * Run id, returned by `POST /v1/runs/` endpoint\n * @type {string}\n * @memberof PublicApiGetRunV1RunsRunIdGet\n */\n readonly runId: string\n\n /**\n * Share token for accessing shared runs\n * @type {string}\n * @memberof PublicApiGetRunV1RunsRunIdGet\n */\n readonly shareToken?: string | null\n}\n\n/**\n * Request parameters for getShareTokenV1AccessShareTokensShareTokenIdGet operation in PublicApi.\n * @export\n * @interface PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGetRequest\n */\nexport interface PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGetRequest {\n /**\n * Share token ID\n * @type {string}\n * @memberof PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGet\n */\n readonly shareTokenId: string\n}\n\n/**\n * Request parameters for getVersionDocument operation in PublicApi.\n * @export\n * @interface PublicApiGetVersionDocumentRequest\n */\nexport interface PublicApiGetVersionDocumentRequest {\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocument\n */\n readonly applicationId: string\n\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocument\n */\n readonly version: string\n\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocument\n */\n readonly name: string\n}\n\n/**\n * Request parameters for getVersionDocumentContent operation in PublicApi.\n * @export\n * @interface PublicApiGetVersionDocumentContentRequest\n */\nexport interface PublicApiGetVersionDocumentContentRequest {\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocumentContent\n */\n readonly applicationId: string\n\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocumentContent\n */\n readonly version: string\n\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocumentContent\n */\n readonly name: string\n}\n\n/**\n * Request parameters for getVersionDocumentFile operation in PublicApi.\n * @export\n * @interface PublicApiGetVersionDocumentFileRequest\n */\nexport interface PublicApiGetVersionDocumentFileRequest {\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocumentFile\n */\n readonly applicationId: string\n\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocumentFile\n */\n readonly version: string\n\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocumentFile\n */\n readonly name: string\n}\n\n/**\n * Request parameters for listApplicationsV1ApplicationsGet operation in PublicApi.\n * @export\n * @interface PublicApiListApplicationsV1ApplicationsGetRequest\n */\nexport interface PublicApiListApplicationsV1ApplicationsGetRequest {\n /**\n * \n * @type {number}\n * @memberof PublicApiListApplicationsV1ApplicationsGet\n */\n readonly page?: number\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListApplicationsV1ApplicationsGet\n */\n readonly pageSize?: number\n\n /**\n * Sort the results by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `application_id` - `name` - `description` - `regulatory_classes` **Examples:** - `?sort=application_id` - Sort by application_id ascending - `?sort=-name` - Sort by name descending - `?sort=+description&sort=name` - Sort by description ascending, then name descending\n * @type {Array<string>}\n * @memberof PublicApiListApplicationsV1ApplicationsGet\n */\n readonly sort?: Array<string> | null\n}\n\n/**\n * Request parameters for listGrantsV1AccessGrantsGet operation in PublicApi.\n * @export\n * @interface PublicApiListGrantsV1AccessGrantsGetRequest\n */\nexport interface PublicApiListGrantsV1AccessGrantsGetRequest {\n /**\n * \n * @type {ResourceType}\n * @memberof PublicApiListGrantsV1AccessGrantsGet\n */\n readonly resourceType?: ResourceType | null\n\n /**\n * \n * @type {string}\n * @memberof PublicApiListGrantsV1AccessGrantsGet\n */\n readonly resourceId?: string | null\n\n /**\n * \n * @type {SubjectType}\n * @memberof PublicApiListGrantsV1AccessGrantsGet\n */\n readonly subjectType?: SubjectType | null\n\n /**\n * \n * @type {string}\n * @memberof PublicApiListGrantsV1AccessGrantsGet\n */\n readonly subjectId?: string | null\n\n /**\n * \n * @type {boolean}\n * @memberof PublicApiListGrantsV1AccessGrantsGet\n */\n readonly revoked?: boolean | null\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListGrantsV1AccessGrantsGet\n */\n readonly page?: number\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListGrantsV1AccessGrantsGet\n */\n readonly pageSize?: number\n\n /**\n * Sort the results by one or more fields. Use `+` for ascending and `-` for descending order.\n * @type {Array<string>}\n * @memberof PublicApiListGrantsV1AccessGrantsGet\n */\n readonly sort?: Array<string> | null\n}\n\n/**\n * Request parameters for listRunItemsV1RunsRunIdItemsGet operation in PublicApi.\n * @export\n * @interface PublicApiListRunItemsV1RunsRunIdItemsGetRequest\n */\nexport interface PublicApiListRunItemsV1RunsRunIdItemsGetRequest {\n /**\n * Run id, returned by `POST /v1/runs/` endpoint\n * @type {string}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly runId: string\n\n /**\n * Share token for accessing shared runs\n * @type {string}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly shareToken?: string | null\n\n /**\n * Filter for item ids\n * @type {Array<string>}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly itemIdIn?: Array<string> | null\n\n /**\n * Filter for items by their external_id from the input payload\n * @type {Array<string>}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly externalIdIn?: Array<string> | null\n\n /**\n * Filter items by their state\n * @type {ItemState}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly state?: ItemState | null\n\n /**\n * Filter items by their termination reason. Only applies to TERMINATED items.\n * @type {ItemTerminationReason}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly terminationReason?: ItemTerminationReason | null\n\n /**\n * JSONPath expression to filter items by their custom_metadata\n * @type {string}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly customMetadata?: string | null\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly page?: number\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly pageSize?: number\n\n /**\n * Sort the items by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `item_id` - `external_id` - `custom_metadata` - `terminated_at` - `termination_reason` **Examples:** - `?sort=item_id` - Sort by id of the item (ascending) - `?sort=-external_id` - Sort by external ID (descending) - `?sort=custom_metadata&sort=-external_id` - Sort by metadata, then by external ID (descending)\n * @type {Array<string>}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly sort?: Array<string> | null\n}\n\n/**\n * Request parameters for listRunsV1RunsGet operation in PublicApi.\n * @export\n * @interface PublicApiListRunsV1RunsGetRequest\n */\nexport interface PublicApiListRunsV1RunsGetRequest {\n /**\n * Optional application ID filter\n * @type {string}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly applicationId?: string | null\n\n /**\n * Optional Version Name\n * @type {string}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly applicationVersion?: string | null\n\n /**\n * Optionally filter runs by items with this external ID\n * @type {string}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly externalId?: string | null\n\n /**\n * Use PostgreSQL JSONPath expressions to filter runs by their custom_metadata. #### URL Encoding Required **Important**: JSONPath expressions contain special characters that must be URL-encoded when used in query parameters. Most HTTP clients handle this automatically, but when constructing URLs manually, please ensure proper encoding. #### Examples (Clear Format): - **Field existence**: `$.study` - Runs that have a study field defined - **Exact value match**: `$.study ? (@ == \\"high\\")` - Runs with specific study value - **Numeric comparison**: `$.confidence_score ? (@ > 0.75)` - Runs with confidence score greater than 0.75 - **Array operations**: `$.tags[*] ? (@ == \\"draft\\")` - Runs with tags array containing \\"draft\\" - **Complex conditions**: `$.resources ? (@.gpu_count > 2 && @.memory_gb >= 16)` - Runs with high resource requirements #### Examples (URL-Encoded Format): - **Field existence**: `%24.study` - **Exact value match**: `%24.study%20%3F%20(%40%20%3D%3D%20%22high%22)` - **Numeric comparison**: `%24.confidence_score%20%3F%20(%40%20%3E%200.75)` - **Array operations**: `%24.tags%5B*%5D%20%3F%20(%40%20%3D%3D%20%22draft%22)` - **Complex conditions**: `%24.resources%20%3F%20(%40.gpu_count%20%3E%202%20%26%26%20%40.memory_gb%20%3E%3D%2016)` #### Notes - JSONPath expressions are evaluated using PostgreSQL\\'s `@?` operator - The `$.` prefix is automatically added to root-level field references if missing - String values in conditions must be enclosed in double quotes - Use `&&` for AND operations and `||` for OR operations - Regular expressions use `like_regex` with standard regex syntax - **Please remember to URL-encode the entire JSONPath expression when making HTTP requests** \n * @type {string}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly customMetadata?: string | null\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly page?: number\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly pageSize?: number\n\n /**\n * Filter runs by organization ID. Available for superadmins (any org) and admins (own org only). When provided, returns all runs for the specified organization instead of only the caller\\'s own runs.\n * @type {string}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly forOrganization?: string | null\n\n /**\n * Sort the results by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `run_id` - `application_id` - `version_number` - `custom_metadata` - `submitted_at` - `submitted_by` - `terminated_at` - `termination_reason` **Examples:** - `?sort=submitted_at` - Sort by creation time (ascending) - `?sort=-submitted_at` - Sort by creation time (descending) - `?sort=state&sort=-submitted_at` - Sort by state, then by time (descending) \n * @type {Array<string>}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly sort?: Array<string> | null\n}\n\n/**\n * Request parameters for listShareTokensV1AccessShareTokensGet operation in PublicApi.\n * @export\n * @interface PublicApiListShareTokensV1AccessShareTokensGetRequest\n */\nexport interface PublicApiListShareTokensV1AccessShareTokensGetRequest {\n /**\n * Filter by run ID\n * @type {string}\n * @memberof PublicApiListShareTokensV1AccessShareTokensGet\n */\n readonly runId?: string | null\n\n /**\n * Filter by share token creator\n * @type {string}\n * @memberof PublicApiListShareTokensV1AccessShareTokensGet\n */\n readonly createdBy?: string | null\n\n /**\n * \n * @type {boolean}\n * @memberof PublicApiListShareTokensV1AccessShareTokensGet\n */\n readonly revoked?: boolean | null\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListShareTokensV1AccessShareTokensGet\n */\n readonly page?: number\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListShareTokensV1AccessShareTokensGet\n */\n readonly pageSize?: number\n\n /**\n * Sort the results by one or more fields. Use `+` for ascending and `-` for descending order.\n * @type {Array<string>}\n * @memberof PublicApiListShareTokensV1AccessShareTokensGet\n */\n readonly sort?: Array<string> | null\n}\n\n/**\n * Request parameters for listVersionDocuments operation in PublicApi.\n * @export\n * @interface PublicApiListVersionDocumentsRequest\n */\nexport interface PublicApiListVersionDocumentsRequest {\n /**\n * \n * @type {string}\n * @memberof PublicApiListVersionDocuments\n */\n readonly applicationId: string\n\n /**\n * \n * @type {string}\n * @memberof PublicApiListVersionDocuments\n */\n readonly version: string\n}\n\n/**\n * Request parameters for putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut operation in PublicApi.\n * @export\n * @interface PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest\n */\nexport interface PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest {\n /**\n * The run id, returned by `POST /runs/` endpoint\n * @type {string}\n * @memberof PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut\n */\n readonly runId: string\n\n /**\n * The `external_id` that was defined for the item by the customer that triggered the run.\n * @type {string}\n * @memberof PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut\n */\n readonly externalId: string\n\n /**\n * \n * @type {CustomMetadataUpdateRequest}\n * @memberof PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut\n */\n readonly customMetadataUpdateRequest: CustomMetadataUpdateRequest\n}\n\n/**\n * Request parameters for putRunCustomMetadataV1RunsRunIdCustomMetadataPut operation in PublicApi.\n * @export\n * @interface PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest\n */\nexport interface PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest {\n /**\n * Run id, returned by `POST /runs/` endpoint\n * @type {string}\n * @memberof PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPut\n */\n readonly runId: string\n\n /**\n * \n * @type {CustomMetadataUpdateRequest}\n * @memberof PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPut\n */\n readonly customMetadataUpdateRequest: CustomMetadataUpdateRequest\n}\n\n/**\n * Request parameters for readApplicationByIdV1ApplicationsApplicationIdGet operation in PublicApi.\n * @export\n * @interface PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest\n */\nexport interface PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest {\n /**\n * \n * @type {string}\n * @memberof PublicApiReadApplicationByIdV1ApplicationsApplicationIdGet\n */\n readonly applicationId: string\n}\n\n/**\n * Request parameters for revokeGrantV1AccessGrantsGrantIdDelete operation in PublicApi.\n * @export\n * @interface PublicApiRevokeGrantV1AccessGrantsGrantIdDeleteRequest\n */\nexport interface PublicApiRevokeGrantV1AccessGrantsGrantIdDeleteRequest {\n /**\n * Grant ID\n * @type {string}\n * @memberof PublicApiRevokeGrantV1AccessGrantsGrantIdDelete\n */\n readonly grantId: string\n}\n\n/**\n * Request parameters for revokeShareTokenV1AccessShareTokensShareTokenIdDelete operation in PublicApi.\n * @export\n * @interface PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDeleteRequest\n */\nexport interface PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDeleteRequest {\n /**\n * Share token ID\n * @type {string}\n * @memberof PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDelete\n */\n readonly shareTokenId: string\n}\n\n/**\n * PublicApi - object-oriented interface\n * @export\n * @class PublicApi\n * @extends {BaseAPI}\n */\nexport class PublicApi extends BaseAPI implements PublicApiInterface {\n /**\n * Get the application version details. Allows caller to retrieve information about application version based on provided application version ID.\n * @summary Application Version Details\n * @param {PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet(requestParameters: PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet(requestParameters.applicationId, requestParameters.version, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * The run can be canceled by the user who created the run. The execution can be canceled any time while the run is not in the terminated state. The pending items of a canceled run will not be processed and will not add to the cost. When the run is canceled, the already completed items remain available for download.\n * @summary Cancel Run\n * @param {PublicApiCancelRunV1RunsRunIdCancelPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public cancelRunV1RunsRunIdCancelPost(requestParameters: PublicApiCancelRunV1RunsRunIdCancelPostRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).cancelRunV1RunsRunIdCancelPost(requestParameters.runId, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Create a grant to share access to a resource with a subject (user or organization).\n * @summary Create Grant\n * @param {PublicApiCreateGrantV1AccessGrantsPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public createGrantV1AccessGrantsPost(requestParameters: PublicApiCreateGrantV1AccessGrantsPostRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).createGrantV1AccessGrantsPost(requestParameters.grantCreateRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * This endpoint initiates a processing run for a selected application and version, and returns a `run_id` for tracking purposes. Slide processing occurs asynchronously, allowing you to retrieve results for individual slides as soon as they complete processing. The system typically processes slides in batches. Below is an example of the required payload for initiating an Atlas H&E TME processing run. ### Payload The payload includes `application_id`, optional `version_number`, and `items` base fields. `application_id` is the unique identifier for the application. `version_number` is the semantic version to use. If not provided, the latest available version will be used. `items` includes the list of the items to process (slides, in case of HETA application). Every item has a set of standard fields defined by the API, plus the custom_metadata, specific to the chosen application. Example payload structure with the comments: ``` { application_id: \\\"he-tme\\\", version_number: \\\"1.0.0-beta\\\", items: [{ \\\"external_id\\\": \\\"slide_1\\\", \\\"custom_metadata\\\": {\\\"project\\\": \\\"sample-study\\\"}, \\\"input_artifacts\\\": [{ \\\"name\\\": \\\"user_slide\\\", \\\"download_url\\\": \\\"https://...\\\", \\\"metadata\\\": { \\\"specimen\\\": { \\\"disease\\\": \\\"LUNG_CANCER\\\", \\\"tissue\\\": \\\"LUNG\\\" }, \\\"staining_method\\\": \\\"H&E\\\", \\\"width_px\\\": 136223, \\\"height_px\\\": 87761, \\\"resolution_mpp\\\": 0.2628238, \\\"media-type\\\":\\\"image/tiff\\\", \\\"checksum_base64_crc32c\\\": \\\"64RKKA==\\\" } }] }] } ``` | Parameter | Description | | :---- | :---- | | `application_id` required | Unique ID for the application | | `version_number` optional | Semantic version of the application. If not provided, the latest available version will be used | | `items` required | List of submitted items i.e. whole slide images (WSIs) with parameters described below. | | `external_id` required | Unique WSI name or ID for easy reference to items, provided by the caller. The `external_id` should be unique across all items of the run. | | `input_artifacts` required | List of provided artifacts for a WSI; at the moment Atlas H&E-TME receives only 1 artifact per slide (the slide itself), but for some other applications this can be a slide and a segmentation map | | `name` required | Type of artifact; Atlas H&E-TME supports only `\\\"input_slide\\\"` | | `download_url` required | Signed URL to the input file in the S3 or GCS; Should be valid for at least 6 days | | `specimen: disease` required | Supported cancer types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `specimen: tissue` required | Supported tissue types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `staining_method` required | WSI stain bio-marker; Atlas H&E-TME supports only `\\\"H&E\\\"` | | `width_px` required | Integer value. Number of pixels of the WSI in the X dimension. | | `height_px` required | Integer value. Number of pixels of the WSI in the Y dimension. | | `resolution_mpp` required | Resolution of WSI in micrometers per pixel; check allowed range in Atlas H&E-TME manual | | `media-type` required | Supported media formats; available values are: image/tiff (for .tiff or .tif WSI), application/dicom (for DICOM ), application/zip (for zipped DICOM), and application/octet-stream (for .svs WSI) | | `checksum_base64_crc32c` required | Base64-encoded big-endian CRC32C checksum of the WSI image | ### Response The endpoint returns the run UUID. After that, the job is scheduled for the execution in the background. To check the status of the run, call `GET v1/runs/{run_id}` endpoint with the returned run UUID. ### Rejection Apart from the authentication, authorization, and malformed input error, the request can be rejected when specific quota limit is exceeded. More details on quotas is described in the documentation\n * @summary Initiate Run\n * @param {PublicApiCreateRunV1RunsPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public createRunV1RunsPost(requestParameters: PublicApiCreateRunV1RunsPostRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).createRunV1RunsPost(requestParameters.runCreationRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Create a share token. The returned share_token value is shown only once and is never stored. Use POST /access/grants with subject_type=share_token to grant access to a resource.\n * @summary Create Share Token\n * @param {PublicApiCreateShareTokenV1AccessShareTokensPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public createShareTokenV1AccessShareTokensPost(requestParameters: PublicApiCreateShareTokenV1AccessShareTokensPostRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).createShareTokenV1AccessShareTokensPost(requestParameters.shareTokenCreateRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * This endpoint allows the caller to explicitly delete artifacts generated by a run. It can only be invoked when the run has reached a final state, i.e. `PROCESSED`, `CANCELED_SYSTEM`, or `CANCELED_USER`. Note that by default, all artifacts are automatically deleted 30 days after the run finishes, regardless of whether the caller explicitly requests such deletion.\n * @summary Delete Run Items\n * @param {PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public deleteRunItemsV1RunsRunIdArtifactsDelete(requestParameters: PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).deleteRunItemsV1RunsRunIdArtifactsDelete(requestParameters.runId, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Download the artifact file with the specified artifact_id, belonging to the specified run. The artifact_is is returned by the `GET /v1/runs/{run_id}/items` endpoint as part of the item results, and can also be retrieved via `GET /v1/runs/{run_id}/items/{external_id}`. The endpoint may return a redirect response with a presigned URL to download the artifact file from the storage bucket. The presigned URL is valid for a limited time, so it should be used immediately after receiving the response.\n * @summary Get Artifact Url\n * @param {PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet(requestParameters: PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet(requestParameters.runId, requestParameters.artifactId, requestParameters.shareToken, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get a grant by its ID.\n * @summary Get Grant\n * @param {PublicApiGetGrantV1AccessGrantsGrantIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getGrantV1AccessGrantsGrantIdGet(requestParameters: PublicApiGetGrantV1AccessGrantsGrantIdGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getGrantV1AccessGrantsGrantIdGet(requestParameters.grantId, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieve details of a specific item (slide) by its external ID and the run ID.\n * @summary Get Item By Run\n * @param {PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getItemByRunV1RunsRunIdItemsExternalIdGet(requestParameters: PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getItemByRunV1RunsRunIdItemsExternalIdGet(requestParameters.runId, requestParameters.externalId, requestParameters.shareToken, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves your identity details, including name, email, and organization. This is useful for verifying that the request is being made under the correct user profile and organization context, as well as confirming that the expected environment variables are correctly set (in case you are using Python SDK)\n * @summary Get current user\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getMeV1MeGet(options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getMeV1MeGet(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * This endpoint allows the caller to retrieve the current status of a run along with other relevant run details. A run becomes available immediately after it is created through the `POST /v1/runs/` endpoint. To download the output results, use `GET /v1/runs/{run_id}/` items to get outputs for all slides. Access to a run is restricted to the user who created it, or users with an active grant or valid share token.\n * @summary Get run details\n * @param {PublicApiGetRunV1RunsRunIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getRunV1RunsRunIdGet(requestParameters: PublicApiGetRunV1RunsRunIdGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getRunV1RunsRunIdGet(requestParameters.runId, requestParameters.shareToken, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get a share token by its ID.\n * @summary Get Share Token\n * @param {PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getShareTokenV1AccessShareTokensShareTokenIdGet(requestParameters: PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getShareTokenV1AccessShareTokensShareTokenIdGet(requestParameters.shareTokenId, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Return metadata for a single public document attached to an application version.\n * @summary Get version document metadata\n * @param {PublicApiGetVersionDocumentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getVersionDocument(requestParameters: PublicApiGetVersionDocumentRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getVersionDocument(requestParameters.applicationId, requestParameters.version, requestParameters.name, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * 307 redirect to a short-lived GCS signed URL for streaming document content. Unlike ``/file``, no ``Content-Disposition`` override is set — GCS serves the object body with its stored ``Content-Type``. Intended for programmatic clients that follow redirects and consume the content directly. Response carries ``Cache-Control: no-store``.\n * @summary Stream version document content (programmatic)\n * @param {PublicApiGetVersionDocumentContentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getVersionDocumentContent(requestParameters: PublicApiGetVersionDocumentContentRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getVersionDocumentContent(requestParameters.applicationId, requestParameters.version, requestParameters.name, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * 307 redirect to a short-lived GCS signed URL for downloading a document. The signed URL includes ``response-content-disposition=attachment; filename=\\\"<name>\\\"`` so browsers prompt a save-as dialog rather than rendering inline. Response carries ``Cache-Control: no-store``.\n * @summary Download version document (browser)\n * @param {PublicApiGetVersionDocumentFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getVersionDocumentFile(requestParameters: PublicApiGetVersionDocumentFileRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getVersionDocumentFile(requestParameters.applicationId, requestParameters.version, requestParameters.name, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Returns the list of the applications, available to the caller. The application is available if any of the versions of the application is assigned to the caller\\'s organization. The response is paginated and sorted according to the provided parameters.\n * @summary List available applications\n * @param {PublicApiListApplicationsV1ApplicationsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public listApplicationsV1ApplicationsGet(requestParameters: PublicApiListApplicationsV1ApplicationsGetRequest = {}, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).listApplicationsV1ApplicationsGet(requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List grants. Org admins see all grants for all resources in their organization. Regular users see grants for all resources they submitted.\n * @summary List Grants\n * @param {PublicApiListGrantsV1AccessGrantsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public listGrantsV1AccessGrantsGet(requestParameters: PublicApiListGrantsV1AccessGrantsGetRequest = {}, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).listGrantsV1AccessGrantsGet(requestParameters.resourceType, requestParameters.resourceId, requestParameters.subjectType, requestParameters.subjectId, requestParameters.revoked, requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List items in a run with filtering, sorting, and pagination capabilities. Returns paginated items within a specific run. Results can be filtered by `item_id`, `external_ids`, `custom_metadata`, `terminated_at`, and `termination_reason` using JSONPath expressions. ## JSONPath Metadata Filtering Use PostgreSQL JSONPath expressions to filter items using their custom_metadata. ### Examples: - **Field existence**: `$.case_id` - Results that have a case_id field defined - **Exact value match**: `$.priority ? (@ == \\\"high\\\")` - Results with high priority - **Numeric comparison**: `$.confidence_score ? (@ > 0.95)` - Results with high confidence - **Array operations**: `$.flags[*] ? (@ == \\\"reviewed\\\")` - Results flagged as reviewed - **Complex conditions**: `$.metrics ? (@.accuracy > 0.9 && @.recall > 0.8)` - Results meeting performance thresholds ## Notes - JSONPath expressions are evaluated using PostgreSQL\\'s `@?` operator - The `$.` prefix is automatically added to root-level field references if missing - String values in conditions must be enclosed in double quotes - Use `&&` for AND operations and `||` for OR operations\n * @summary List Run Items\n * @param {PublicApiListRunItemsV1RunsRunIdItemsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public listRunItemsV1RunsRunIdItemsGet(requestParameters: PublicApiListRunItemsV1RunsRunIdItemsGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).listRunItemsV1RunsRunIdItemsGet(requestParameters.runId, requestParameters.shareToken, requestParameters.itemIdIn, requestParameters.externalIdIn, requestParameters.state, requestParameters.terminationReason, requestParameters.customMetadata, requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List runs with filtering, sorting, and pagination capabilities. Returns paginated runs that were submitted by the user.\n * @summary List Runs\n * @param {PublicApiListRunsV1RunsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public listRunsV1RunsGet(requestParameters: PublicApiListRunsV1RunsGetRequest = {}, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).listRunsV1RunsGet(requestParameters.applicationId, requestParameters.applicationVersion, requestParameters.externalId, requestParameters.customMetadata, requestParameters.page, requestParameters.pageSize, requestParameters.forOrganization, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List share tokens. Service and Superadmin see all tokens; other users see only their own.\n * @summary List Share Tokens\n * @param {PublicApiListShareTokensV1AccessShareTokensGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public listShareTokensV1AccessShareTokensGet(requestParameters: PublicApiListShareTokensV1AccessShareTokensGetRequest = {}, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).listShareTokensV1AccessShareTokensGet(requestParameters.runId, requestParameters.createdBy, requestParameters.revoked, requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List public documents attached to an application version. Returns only documents with ``visibility=public`` and ``status=uploaded``.\n * @summary List version documents\n * @param {PublicApiListVersionDocumentsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public listVersionDocuments(requestParameters: PublicApiListVersionDocumentsRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).listVersionDocuments(requestParameters.applicationId, requestParameters.version, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Update the custom metadata of the item with the specified `external_id`, belonging to the specified run. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for individual items via `GET /v1/runs/{run_id}/items/{external_id}`, and for all items of a run via `GET /v1/runs/{run_id}/items`.\n * @summary Put Item Custom Metadata By Run\n * @param {PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut(requestParameters: PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut(requestParameters.runId, requestParameters.externalId, requestParameters.customMetadataUpdateRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Update the custom metadata of a run with the specified `run_id`. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for the run via the `GET /v1/runs/{run_id}` endpoint. **Note on deadlines:** Run deadlines must be set during run creation and cannot be modified afterward. Any deadline changes in custom metadata will be ignored by the system.\n * @summary Put Run Custom Metadata\n * @param {PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public putRunCustomMetadataV1RunsRunIdCustomMetadataPut(requestParameters: PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).putRunCustomMetadataV1RunsRunIdCustomMetadataPut(requestParameters.runId, requestParameters.customMetadataUpdateRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieve details of a specific application by its ID.\n * @summary Read Application By Id\n * @param {PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public readApplicationByIdV1ApplicationsApplicationIdGet(requestParameters: PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).readApplicationByIdV1ApplicationsApplicationIdGet(requestParameters.applicationId, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Revoke a grant by its ID. Sets the revoked_at timestamp on the grant.\n * @summary Revoke Grant\n * @param {PublicApiRevokeGrantV1AccessGrantsGrantIdDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public revokeGrantV1AccessGrantsGrantIdDelete(requestParameters: PublicApiRevokeGrantV1AccessGrantsGrantIdDeleteRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).revokeGrantV1AccessGrantsGrantIdDelete(requestParameters.grantId, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Revoke a share token by its ID. Invalidates the credential regardless of any active grants.\n * @summary Revoke Share Token\n * @param {PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public revokeShareTokenV1AccessShareTokensShareTokenIdDelete(requestParameters: PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDeleteRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).revokeShareTokenV1AccessShareTokensShareTokenIdDelete(requestParameters.shareTokenId, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Aignostics Platform API\n * The Aignostics Platform is a cloud-based service that enables organizations to access advanced computational pathology applications through a secure API. The platform provides standardized access to Aignostics\\' portfolio of computational pathology solutions, with Atlas H&E-TME serving as an example of the available API endpoints. To begin using the platform, your organization must first be registered by our business support team. If you don\\'t have an account yet, please contact your account manager or email support@aignostics.com to get started. More information about our applications can be found on [https://platform.aignostics.com](https://platform.aignostics.com). **How to authorize and test API endpoints:** 1. Click the \\\"Authorize\\\" button in the right corner below 3. Click \\\"Authorize\\\" button in the dialog to log in with your Aignostics Platform credentials 4. After successful login, you\\'ll be redirected back and can use \\\"Try it out\\\" on any endpoint **Note**: You only need to authorize once per session. The lock icons next to endpoints will show green when authorized. \n *\n * The version of the OpenAPI document: 1.6.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 */\n\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n * @memberof Configuration\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n *\n * @type {string}\n * @memberof Configuration\n */\n username?: string;\n /**\n * parameter for basic security\n *\n * @type {string}\n * @memberof Configuration\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n * @memberof Configuration\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * override base path\n *\n * @type {string}\n * @memberof Configuration\n */\n basePath?: string;\n /**\n * override server index\n *\n * @type {number}\n * @memberof Configuration\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n *\n * @type {any}\n * @memberof Configuration\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = new RegExp('^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$', 'i');\n return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');\n }\n}\n","export type ErrorCode =\n | 'AUTHENTICATION_ERROR'\n | 'API_ERROR'\n | 'CONFIGURATION_ERROR'\n | 'UNEXPECTED_ERROR';\n\ninterface BaseErrorOptions {\n context?: Record<string, unknown>;\n originalError?: unknown;\n}\n/**\n * Base error class for all SDK-related errors\n *\n * This class serves as the foundation for all custom error types in the SDK,\n * providing consistent error handling and additional context information.\n */\nexport class BaseError extends Error {\n /**\n * Error code for programmatic error handling\n */\n public readonly code: ErrorCode;\n\n /**\n * Additional context or metadata related to the error\n */\n public readonly context?: Record<string, unknown>;\n\n /**\n * Original error that caused this error, if applicable\n */\n public readonly originalError?: unknown;\n\n /**\n * Creates a new BaseError instance\n *\n * @param message - Human-readable error message\n * @param code - Error code for programmatic handling\n * @param context - Additional error context or metadata\n */\n constructor(message: string, code: ErrorCode, { context, originalError }: BaseErrorOptions = {}) {\n super(message);\n this.name = this.constructor.name;\n this.code = code;\n this.context = context;\n this.originalError = originalError;\n\n // Maintains proper stack trace for where our error was thrown (Node.js only)\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n }\n}\n\n/**\n * Authentication-related error\n *\n * Thrown when authentication fails or when no valid authentication\n * credentials are available for API requests.\n */\nexport class AuthenticationError extends BaseError {\n /**\n * Creates a new AuthenticationError instance\n *\n * @param message - Human-readable error message describing the authentication issue\n * @param options - Additional options about the authentication failure\n * @param options.context - Additional context about the authentication failure\n * @param options.originalError - Original error that caused this authentication error\n */\n constructor(message: string, options: BaseErrorOptions = {}) {\n super(message, 'AUTHENTICATION_ERROR', options);\n }\n}\n\n/**\n * API-related error\n *\n * Thrown when API requests fail due to server errors, network issues,\n * or invalid responses from the Aignostics Platform API.\n */\nexport class APIError extends BaseError {\n /**\n * HTTP status code from the failed API request\n */\n public readonly statusCode?: number;\n\n /**\n * Creates a new APIError instance\n *\n * @param message - Human-readable error message describing the API issue\n * @param statusCode - HTTP status code from the failed request\n * @param context - Additional context about the API failure\n */\n constructor(message: string, options: BaseErrorOptions & { statusCode?: number } = {}) {\n super(message, 'API_ERROR', options);\n this.statusCode = options.statusCode;\n }\n}\n\n/**\n * Configuration-related error\n *\n * Thrown when SDK configuration is invalid or missing required parameters.\n */\nexport class ConfigurationError extends BaseError {\n /**\n * Creates a new ConfigurationError instance\n *\n * @param message - Human-readable error message describing the configuration issue\n * @param context - Additional context about the configuration problem\n */\n constructor(message: string, options: BaseErrorOptions = {}) {\n super(message, 'CONFIGURATION_ERROR', options);\n }\n}\n\nexport class UnexpectedError extends BaseError {\n /**\n * Creates a new UnexpectedError instance\n *\n * @param message - Human-readable error message describing the unexpected issue\n * @param context - Additional context about the unexpected error\n */\n constructor(message: string, options: BaseErrorOptions = {}) {\n super(message, 'UNEXPECTED_ERROR', options);\n }\n}\n","import { RunReadResponse } from '../../generated/index.js';\nimport { RunStatus } from './types.js';\n\n/**\n * Compute the overall progress of a run as a percentage (0–100).\n * Progress is based on the ratio of terminal items (succeeded + errored + skipped)\n * to the total item count.\n *\n * @param run - Raw run response from the API\n * @returns Integer percentage rounded to the nearest whole number\n */\nexport function getRunProgress(run: RunReadResponse): number {\n const {\n item_count,\n item_succeeded_count,\n item_user_error_count,\n item_system_error_count,\n item_skipped_count,\n } = run.statistics;\n\n // No items means no progress\n if (item_count === 0) return 0;\n\n // Sum all items that have reached a terminal state\n const processed =\n item_succeeded_count + item_user_error_count + item_system_error_count + item_skipped_count;\n return Math.round((processed / item_count) * 100);\n}\n\n/**\n * Derive a human-readable {@link RunStatus} from the raw API `state` and `termination_reason`.\n *\n * Mapping rules:\n * - PENDING / PROCESSING → passed through as-is\n * - TERMINATED + CANCELED_BY_USER → CANCELED\n * - TERMINATED + CANCELED_BY_SYSTEM → FAILED\n * - TERMINATED + not all items succeeded → COMPLETED_WITH_ERRORS\n * - TERMINATED + all items succeeded → COMPLETED\n *\n * @param run - Raw run response from the API\n */\nexport function getRunStatus(run: RunReadResponse): RunStatus {\n const { state, statistics, termination_reason } = run;\n switch (state) {\n case 'PENDING':\n return 'PENDING';\n case 'PROCESSING':\n return 'PROCESSING';\n case 'TERMINATED':\n if (termination_reason === 'CANCELED_BY_USER') {\n return 'CANCELED';\n }\n if (termination_reason === 'CANCELED_BY_SYSTEM') {\n return 'FAILED';\n }\n // If any items did not succeed, the run completed with errors\n if (statistics.item_count !== statistics.item_succeeded_count) {\n return 'COMPLETED_WITH_ERRORS';\n }\n return 'COMPLETED';\n }\n}\n\n/**\n * Determine whether a run's result items are available for download.\n * Items can only be downloaded once the run has reached a completed state.\n *\n * @param run - Raw run response from the API\n * @returns `true` if items are available for download (run is COMPLETED or COMPLETED_WITH_ERRORS)\n */\nexport const canDownloadRunItems = (run: RunReadResponse): boolean => {\n const status = getRunStatus(run);\n return !['FAILED', 'CANCELED', 'PENDING', 'PROCESSING'].includes(status);\n};\n","import { ApplicationRun } from './types.js';\nimport { RunReadResponse } from '../../generated/index.js';\nimport { getRunProgress, getRunStatus, canDownloadRunItems } from './utils.js';\n\n/**\n * Transform a raw {@link RunReadResponse} from the API into an enriched\n * {@link ApplicationRun} by computing derived properties (progress, status, can_download).\n *\n * This is the single entry-point used by `PlatformSDKHttp` methods to map API\n * responses before returning them to consumers.\n *\n * @param run - Raw run response from the API\n * @returns Enriched run entity with computed properties spread onto the original response\n */\nexport const processApplicationRun = (run: RunReadResponse): ApplicationRun => {\n return {\n ...run,\n progress: getRunProgress(run),\n status: getRunStatus(run),\n can_download: canDownloadRunItems(run),\n };\n};\n","import { ItemResultReadResponse } from '../../generated/index.js';\nimport { ItemStatus } from './types.js';\n\n/**\n * Determine whether a single run item's output artifact is available for download.\n * Only items in the COMPLETED state have downloadable artifacts.\n *\n * @param item - Raw item response from the API\n * @returns `true` if the item is in a COMPLETED state\n */\nexport const canDownloadItem = (item: ItemResultReadResponse): boolean => {\n return getItemStatus(item) === 'COMPLETED';\n};\n\n/**\n * Derive a human-readable {@link ItemStatus} from the raw API `state` and `termination_reason`.\n *\n * Mapping rules:\n * - PENDING / PROCESSING → passed through as-is\n * - TERMINATED + SYSTEM_ERROR or USER_ERROR → FAILED\n * - TERMINATED + SKIPPED → SKIPPED\n * - TERMINATED (otherwise) → COMPLETED\n *\n * @param item - Raw item response from the API\n */\nexport function getItemStatus(item: ItemResultReadResponse): ItemStatus {\n const { state, termination_reason } = item;\n switch (state) {\n case 'PENDING':\n return 'PENDING';\n case 'PROCESSING':\n return 'PROCESSING';\n case 'TERMINATED':\n // Items terminated due to errors are marked as FAILED\n if (termination_reason === 'SYSTEM_ERROR' || termination_reason === 'USER_ERROR') {\n return 'FAILED';\n }\n // Explicitly skipped items get their own status\n if (termination_reason === 'SKIPPED') {\n return 'SKIPPED';\n }\n return 'COMPLETED';\n }\n}\n","import { ItemResultReadResponse } from '../../generated/index.js';\nimport { ApplicationRunItem } from './types.js';\nimport { canDownloadItem, getItemStatus } from './utils.js';\n\n/**\n * Transform a raw {@link ItemResultReadResponse} from the API into an enriched\n * {@link ApplicationRunItem} by computing derived properties (status, can_download).\n *\n * This is the single entry-point used by `PlatformSDKHttp.listRunResults()` to\n * map API responses before returning them to consumers.\n *\n * @param item - Raw item response from the API\n * @returns Enriched item entity with computed properties spread onto the original response\n */\nexport const processRunItem = (item: ItemResultReadResponse): ApplicationRunItem => {\n return {\n ...item,\n status: getItemStatus(item),\n can_download: canDownloadItem(item),\n };\n};\n","const objectToString = Object.prototype.toString;\n\nconst isError = value => objectToString.call(value) === '[object Error]';\n\nconst errorMessages = new Set([\n\t'network error', // Chrome\n\t'NetworkError when attempting to fetch resource.', // Firefox\n\t'The Internet connection appears to be offline.', // Safari 16\n\t'Network request failed', // `cross-fetch`\n\t'fetch failed', // Undici (Node.js)\n\t'terminated', // Undici (Node.js)\n\t' A network error occurred.', // Bun (WebKit)\n\t'Network connection lost', // Cloudflare Workers (fetch)\n]);\n\nexport default function isNetworkError(error) {\n\tconst isValid = error\n\t\t&& isError(error)\n\t\t&& error.name === 'TypeError'\n\t\t&& typeof error.message === 'string';\n\n\tif (!isValid) {\n\t\treturn false;\n\t}\n\n\tconst {message, stack} = error;\n\n\t// Safari 17+ has generic message but no stack for network errors\n\tif (message === 'Load failed') {\n\t\treturn stack === undefined\n\t\t\t// Sentry adds its own stack trace to the fetch error, so also check for that\n\t\t\t|| '__sentry_captured__' in error;\n\t}\n\n\t// Deno network errors start with specific text\n\tif (message.startsWith('error sending request for url')) {\n\t\treturn true;\n\t}\n\n\t// Chrome: exact \"Failed to fetch\" or with hostname: \"Failed to fetch (example.com)\"\n\tif (message === 'Failed to fetch' || (message.startsWith('Failed to fetch (') && message.endsWith(')'))) {\n\t\treturn true;\n\t}\n\n\t// Standard network error messages\n\treturn errorMessages.has(message);\n}\n","import isNetworkError from 'is-network-error';\n\nfunction validateRetries(retries) {\n\tif (typeof retries === 'number') {\n\t\tif (retries < 0) {\n\t\t\tthrow new TypeError('Expected `retries` to be a non-negative number.');\n\t\t}\n\n\t\tif (Number.isNaN(retries)) {\n\t\t\tthrow new TypeError('Expected `retries` to be a valid number or Infinity, got NaN.');\n\t\t}\n\t} else if (retries !== undefined) {\n\t\tthrow new TypeError('Expected `retries` to be a number or Infinity.');\n\t}\n}\n\nfunction validateNumberOption(name, value, {min = 0, allowInfinity = false} = {}) {\n\tif (value === undefined) {\n\t\treturn;\n\t}\n\n\tif (typeof value !== 'number' || Number.isNaN(value)) {\n\t\tthrow new TypeError(`Expected \\`${name}\\` to be a number${allowInfinity ? ' or Infinity' : ''}.`);\n\t}\n\n\tif (!allowInfinity && !Number.isFinite(value)) {\n\t\tthrow new TypeError(`Expected \\`${name}\\` to be a finite number.`);\n\t}\n\n\tif (value < min) {\n\t\tthrow new TypeError(`Expected \\`${name}\\` to be \\u2265 ${min}.`);\n\t}\n}\n\nfunction validateFunctionOption(name, value) {\n\tif (value === undefined) {\n\t\treturn;\n\t}\n\n\tif (typeof value !== 'function') {\n\t\tthrow new TypeError(`Expected \\`${name}\\` to be a function.`);\n\t}\n}\n\nexport class AbortError extends Error {\n\tconstructor(message) {\n\t\tsuper();\n\n\t\tif (message instanceof Error) {\n\t\t\tthis.originalError = message;\n\t\t\t({message} = message);\n\t\t} else {\n\t\t\tthis.originalError = new Error(message);\n\t\t\tthis.originalError.stack = this.stack;\n\t\t}\n\n\t\tthis.name = 'AbortError';\n\t\tthis.message = message;\n\t}\n}\n\nfunction calculateDelay(retriesConsumed, options) {\n\tconst attempt = Math.max(1, retriesConsumed + 1);\n\tconst random = options.randomize ? (Math.random() + 1) : 1;\n\n\tlet timeout = Math.round(random * options.minTimeout * (options.factor ** (attempt - 1)));\n\ttimeout = Math.min(timeout, options.maxTimeout);\n\n\treturn timeout;\n}\n\nfunction calculateRemainingTime(start, max) {\n\tif (!Number.isFinite(max)) {\n\t\treturn max;\n\t}\n\n\treturn max - (performance.now() - start);\n}\n\nasync function delayForRetry(delay, options) {\n\tif (delay <= 0) {\n\t\treturn;\n\t}\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst onAbort = () => {\n\t\t\tclearTimeout(timeoutToken);\n\t\t\toptions.signal?.removeEventListener('abort', onAbort);\n\t\t\treject(options.signal.reason);\n\t\t};\n\n\t\tconst timeoutToken = setTimeout(() => {\n\t\t\toptions.signal?.removeEventListener('abort', onAbort);\n\t\t\tresolve();\n\t\t}, delay);\n\n\t\tif (options.unref) {\n\t\t\ttimeoutToken.unref?.();\n\t\t}\n\n\t\toptions.signal?.addEventListener('abort', onAbort, {once: true});\n\t});\n}\n\nasync function onAttemptFailure({error, attemptNumber, retriesConsumed, startTime, options}) {\n\tconst normalizedError = error instanceof Error\n\t\t? error\n\t\t: new TypeError(`Non-error was thrown: \"${error}\". You should only throw errors.`);\n\n\tif (normalizedError instanceof AbortError) {\n\t\tthrow normalizedError.originalError;\n\t}\n\n\tconst retriesLeft = Number.isFinite(options.retries)\n\t\t? Math.max(0, options.retries - retriesConsumed)\n\t\t: options.retries;\n\n\tconst maxRetryTime = options.maxRetryTime ?? Number.POSITIVE_INFINITY;\n\tconst delayTime = calculateDelay(retriesConsumed, options);\n\tconst remainingTimeBeforeCallbacks = calculateRemainingTime(startTime, maxRetryTime);\n\n\tif (remainingTimeBeforeCallbacks <= 0) {\n\t\tconst context = Object.freeze({\n\t\t\terror: normalizedError,\n\t\t\tattemptNumber,\n\t\t\tretriesLeft,\n\t\t\tretriesConsumed,\n\t\t\tretryDelay: 0,\n\t\t});\n\n\t\tawait options.onFailedAttempt(context);\n\n\t\tthrow normalizedError;\n\t}\n\n\tconst consumeRetryContext = Object.freeze({\n\t\terror: normalizedError,\n\t\tattemptNumber,\n\t\tretriesLeft,\n\t\tretriesConsumed,\n\t\tretryDelay: retriesLeft > 0 ? delayTime : 0,\n\t});\n\n\tconst consumeRetry = await options.shouldConsumeRetry(consumeRetryContext);\n\tconst effectiveDelay = consumeRetry && retriesLeft > 0 ? delayTime : 0;\n\tconst context = Object.freeze({\n\t\terror: normalizedError,\n\t\tattemptNumber,\n\t\tretriesLeft,\n\t\tretriesConsumed,\n\t\tretryDelay: effectiveDelay,\n\t});\n\n\tawait options.onFailedAttempt(context);\n\n\tif (calculateRemainingTime(startTime, maxRetryTime) <= 0) {\n\t\tthrow normalizedError;\n\t}\n\n\tconst remainingTime = calculateRemainingTime(startTime, maxRetryTime);\n\n\tif (remainingTime <= 0 || retriesLeft <= 0) {\n\t\tthrow normalizedError;\n\t}\n\n\tif (normalizedError instanceof TypeError && !isNetworkError(normalizedError)) {\n\t\tthrow normalizedError;\n\t}\n\n\tif (!await options.shouldRetry(context)) {\n\t\tthrow normalizedError;\n\t}\n\n\tconst remainingTimeAfterShouldRetry = calculateRemainingTime(startTime, maxRetryTime);\n\n\tif (remainingTimeAfterShouldRetry <= 0) {\n\t\tthrow normalizedError;\n\t}\n\n\tif (!consumeRetry) {\n\t\toptions.signal?.throwIfAborted();\n\t\treturn false;\n\t}\n\n\tconst finalDelay = Math.min(effectiveDelay, remainingTimeAfterShouldRetry);\n\n\toptions.signal?.throwIfAborted();\n\n\tawait delayForRetry(finalDelay, options);\n\n\toptions.signal?.throwIfAborted();\n\n\treturn true;\n}\n\nexport default async function pRetry(input, options = {}) {\n\toptions = {...options};\n\n\tvalidateRetries(options.retries);\n\n\tif (Object.hasOwn(options, 'forever')) {\n\t\tthrow new Error('The `forever` option is no longer supported. For many use-cases, you can set `retries: Infinity` instead.');\n\t}\n\n\toptions.retries ??= 10;\n\toptions.factor ??= 2;\n\toptions.minTimeout ??= 1000;\n\toptions.maxTimeout ??= Number.POSITIVE_INFINITY;\n\toptions.maxRetryTime ??= Number.POSITIVE_INFINITY;\n\toptions.randomize ??= false;\n\toptions.onFailedAttempt ??= () => {};\n\toptions.shouldRetry ??= () => true;\n\toptions.shouldConsumeRetry ??= () => true;\n\n\t// Validate numeric options and normalize edge cases\n\tvalidateFunctionOption('onFailedAttempt', options.onFailedAttempt);\n\tvalidateFunctionOption('shouldRetry', options.shouldRetry);\n\tvalidateFunctionOption('shouldConsumeRetry', options.shouldConsumeRetry);\n\tvalidateNumberOption('factor', options.factor, {min: 0, allowInfinity: false});\n\tvalidateNumberOption('minTimeout', options.minTimeout, {min: 0, allowInfinity: false});\n\tvalidateNumberOption('maxTimeout', options.maxTimeout, {min: 0, allowInfinity: true});\n\tvalidateNumberOption('maxRetryTime', options.maxRetryTime, {min: 0, allowInfinity: true});\n\n\t// Treat non-positive factor as 1 to avoid zero backoff or negative behavior\n\tif (!(options.factor > 0)) {\n\t\toptions.factor = 1;\n\t}\n\n\toptions.signal?.throwIfAborted();\n\n\tlet attemptNumber = 0;\n\tlet retriesConsumed = 0;\n\tconst startTime = performance.now();\n\n\twhile (Number.isFinite(options.retries) ? retriesConsumed <= options.retries : true) {\n\t\tattemptNumber++;\n\n\t\ttry {\n\t\t\toptions.signal?.throwIfAborted();\n\n\t\t\tconst result = await input(attemptNumber);\n\n\t\t\toptions.signal?.throwIfAborted();\n\n\t\t\treturn result;\n\t\t} catch (error) {\n\t\t\tif (await onAttemptFailure({\n\t\t\t\terror,\n\t\t\t\tattemptNumber,\n\t\t\t\tretriesConsumed,\n\t\t\t\tstartTime,\n\t\t\t\toptions,\n\t\t\t})) {\n\t\t\t\tretriesConsumed++;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Should not reach here, but in case it does, throw an error\n\tthrow new Error('Retry attempts exhausted without throwing an error.');\n}\n\nexport function makeRetriable(function_, options) {\n\treturn function (...arguments_) {\n\t\treturn pRetry(() => function_.apply(this, arguments_), options);\n\t};\n}\n","import { AxiosResponse, isAxiosError } from 'axios';\nimport pRetry from 'p-retry';\n\n/**\n * Executes an HTTP request with automatic retries for transient failures.\n *\n * Retries are aborted immediately for responses with status codes listed in\n * `abortStatuses`, preserving the original AxiosError so that upstream error\n * handling (e.g. `handleRequestError`) can inspect it directly.\n *\n * @param callbackFn - A function that returns a promise resolving to an AxiosResponse\n * @param abortStatuses - HTTP status codes that should not be retried (default: `[404]`)\n * @returns The successful AxiosResponse\n */\nexport const downloadWithRetry = async (\n callbackFn: () => Promise<AxiosResponse>,\n abortStatuses: number[] = [404]\n) => {\n return await pRetry(callbackFn, {\n retries: 3,\n shouldRetry: ({ error }) => {\n if (isAxiosError(error) && abortStatuses.includes(error.response?.status ?? 0)) {\n return false;\n }\n return true;\n },\n });\n};\n","import packageJson from '../package.json' with { type: 'json' };\nimport {\n ApplicationReadResponse,\n ApplicationReadShortResponse,\n ItemState,\n ItemTerminationReason,\n PublicApi,\n RunCreationRequest,\n RunCreationResponse,\n VersionReadResponse,\n} from './generated/index.js';\nimport { APIError, AuthenticationError, UnexpectedError } from './errors.js';\nimport { isAxiosError } from 'axios';\nimport z from 'zod';\nimport { processApplicationRun } from './entities/application-run/process-application-run.js';\nimport { ApplicationRun } from './entities/application-run/types.js';\nimport { processRunItem } from './entities/run-item/process-run-item.js';\nimport { ApplicationRunItem } from './entities/run-item/types.js';\nimport { downloadWithRetry } from './utils/downloadWithRetry.js';\n\nconst validationErrorSchema = z.object({\n detail: z.array(\n z.object({\n loc: z.array(z.union([z.string(), z.number()])),\n msg: z.string(),\n type: z.string(),\n })\n ),\n});\n\nconst errorResponseSchema = z.union([validationErrorSchema, z.any()]);\n\nfunction handleRequestError(error: unknown): never {\n if (isAxiosError(error)) {\n switch (error.status) {\n case 422: {\n throw new APIError(`Validation error: ${error.message}`, {\n context: {\n responseBody: validationErrorSchema.parse(error.response?.data),\n },\n originalError: error,\n statusCode: 422,\n });\n }\n case 404: {\n throw new APIError(`Resource not found: ${error.message}`, {\n context: {\n responseBody: errorResponseSchema.parse(error.response?.data),\n },\n originalError: error,\n statusCode: 404,\n });\n }\n case 403: {\n throw new APIError(`Access forbidden: ${error.message}`, {\n context: {\n responseBody: errorResponseSchema.parse(error.response?.data),\n },\n originalError: error,\n statusCode: 403,\n });\n }\n case 410: {\n throw new APIError(`Resource gone: ${error.message}`, {\n context: {\n responseBody: errorResponseSchema.parse(error.response?.data),\n },\n originalError: error,\n statusCode: 410,\n });\n }\n default: {\n throw new APIError(`API request failed: ${error.message}`, {\n context: {\n responseBody: errorResponseSchema.parse(error.response?.data),\n },\n originalError: error,\n });\n }\n }\n }\n throw new UnexpectedError(`Unexpected error: ${String(error)}`, { originalError: error });\n}\n\n/**\n * Token provider function that returns a valid access token\n */\nexport type TokenProvider = () => Promise<string | null> | string | null;\n\n/**\n * Configuration options for the Platform SDK\n */\nexport interface PlatformSDKConfig {\n /**\n * Base URL for the API\n */\n baseURL?: string;\n\n /**\n * Token provider function for dynamic token retrieval\n * This function will be called when a token is needed\n */\n tokenProvider: TokenProvider;\n\n /**\n * Request timeout in milliseconds\n */\n timeout?: number;\n}\n\nexport interface PlatformSDK {\n getVersion(): string;\n getConfig(): PlatformSDKConfig;\n testConnection(): Promise<boolean>;\n listApplications(): Promise<ApplicationReadShortResponse[]>;\n getApplication(applicationId: string): Promise<ApplicationReadResponse>;\n listApplicationRuns(options?: {\n applicationId?: string;\n applicationVersion?: string;\n page?: number;\n pageSize?: number;\n customMetadata?: string;\n sort?: string[];\n }): Promise<ApplicationRun[]>;\n createApplicationRun(request: RunCreationRequest): Promise<RunCreationResponse>;\n getRun(applicationRunId: string): Promise<ApplicationRun>;\n cancelApplicationRun(applicationRunId: string): Promise<void>;\n listRunResults(\n applicationRunId: string,\n options?: {\n page?: number;\n pageSize?: number;\n sort?: string[];\n externalIdIn?: string[];\n state?: ItemState;\n terminationReason?: ItemTerminationReason;\n }\n ): Promise<ApplicationRunItem[]>;\n getApplicationVersionDetails(\n applicationId: string,\n version: string\n ): Promise<VersionReadResponse>;\n downloadArtifact(runId: string, artifactId: string): Promise<ArrayBuffer>;\n}\n/**\n * Main SDK class for interacting with the Aignostics Platform\n */\nexport class PlatformSDKHttp implements PlatformSDK {\n readonly #config: Readonly<PlatformSDKConfig>;\n\n /**\n * Creates a new instance of the Platform SDK\n * @param config Configuration options\n */\n constructor(config: PlatformSDKConfig) {\n this.#config = {\n baseURL: config.baseURL || 'https://api.aignostics.com',\n timeout: config.timeout || 10000,\n ...config,\n };\n }\n\n async #getClient(): Promise<PublicApi> {\n const accessToken = await this.#config.tokenProvider();\n\n // Throw error if no token is available\n if (!accessToken) {\n throw new AuthenticationError(\n 'No access token available. Please provide a tokenProvider in the SDK configuration that returns a valid token.'\n );\n }\n\n return new PublicApi({\n basePath: this.#config.baseURL,\n accessToken,\n isJsonMime(mime) {\n return mime === 'application/json';\n },\n });\n }\n\n /**\n * Test the connection to the Aignostics Platform API\n *\n * This method performs a simple API call to verify that the SDK can successfully\n * connect to the platform using the provided configuration and authentication.\n * It's useful for validating setup and troubleshooting connectivity issues.\n *\n * @returns A promise that resolves to `true` if the connection is successful\n * @throws {AuthenticationError} If no valid authentication token is available\n * @throws {Error} If the connection test fails due to network issues or API errors\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * const isConnected = await sdk.testConnection();\n * console.log('Connection successful:', isConnected);\n * } catch (error) {\n * console.error('Connection failed:', error.message);\n * }\n * ```\n */\n async testConnection(): Promise<boolean> {\n const client = await this.#getClient();\n try {\n const response = await client.listApplicationsV1ApplicationsGet();\n return response.status === 200;\n } catch (error) {\n throw new Error(`Connection test failed: ${String(error)}`);\n }\n }\n\n /**\n * Retrieve a list of all available applications on the platform\n *\n * This method fetches all applications that are accessible with the current\n * authentication credentials. Applications represent different AI models or\n * processing pipelines available on the Aignostics Platform.\n *\n * @returns A promise that resolves to an array of application objects\n * @throws {AuthenticationError} If no valid authentication token is available\n * @throws {Error} If the request fails due to network issues or API errors\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * const applications = await sdk.listApplications();\n * console.log(`Found ${applications.length} applications`);\n * applications.forEach(app => {\n * console.log(`- ${app.name} (ID: ${app.id})`);\n * });\n * } catch (error) {\n * console.error('Failed to list applications:', error.message);\n * }\n * ```\n */\n async listApplications(): Promise<ApplicationReadShortResponse[]> {\n const client = await this.#getClient();\n try {\n const response = await client.listApplicationsV1ApplicationsGet();\n return response.data;\n } catch (error) {\n handleRequestError(error);\n }\n }\n\n /**\n * Retrieve detailed information about a specific application version\n *\n * This method fetches comprehensive details about a specific version of an\n * application, including its changelog, release date, and any version-specific\n * configurations or features.\n *\n * @param applicationId - The unique identifier of the application\n * @param version - The version string of the application to retrieve\n * @returns A promise that resolves to the application version details\n * @throws {Error} If the request fails due to network issues, authentication problems, invalid application ID or version, or API errors\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * const appVersion = await sdk.getApplicationVersionDetails('app-123', 'v1.2.0');\n * console.log(`Application Version: ${appVersion.version}`);\n * console.log(`Release Date: ${appVersion.release_date}`);\n * console.log(`Changelog: ${appVersion.changelog}`);\n * } catch (error) {\n * console.error('Failed to get application version details:', error.message);\n * }\n * ```\n */\n\n async getApplicationVersionDetails(\n applicationId: string,\n version: string\n ): Promise<VersionReadResponse> {\n const client = await this.#getClient();\n try {\n const response =\n await client.applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet({\n applicationId,\n version,\n });\n return response.data;\n } catch (error) {\n handleRequestError(error);\n }\n }\n\n /**\n * Retrieve detailed information about a specific application\n *\n * This method fetches comprehensive details about an application, including\n * its name, description, regulatory classes, and all available versions.\n * This provides more detailed information compared to the summary returned\n * by `listApplications()`.\n *\n * @param applicationId - The unique identifier of the application to retrieve\n * @returns A promise that resolves to the complete application details\n * @throws {Error} If the request fails due to network issues, authentication problems, invalid application ID, or API errors\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * const application = await sdk.getApplication('app-123');\n * console.log(`Application: ${application.name}`);\n * console.log(`Description: ${application.description}`);\n * console.log(`Available versions: ${application.versions.length}`);\n *\n * application.versions.forEach(version => {\n * console.log(`- ${version.version} (ID: ${version.application_version_id})`);\n * });\n * } catch (error) {\n * console.error('Failed to get application details:', error.message);\n * }\n * ```\n */\n async getApplication(applicationId: string): Promise<ApplicationReadResponse> {\n const client = await this.#getClient();\n try {\n const response = await client.readApplicationByIdV1ApplicationsApplicationIdGet({\n applicationId,\n });\n return response.data;\n } catch (error) {\n handleRequestError(error);\n }\n }\n\n /**\n * Retrieve a list of application runs with optional filtering\n *\n * This method fetches application runs (processing jobs) that have been\n * submitted to the platform. You can optionally filter by application ID\n * and/or application version to narrow down the results.\n *\n * @param options - Optional filtering parameters\n * @param options.applicationId - Filter runs by specific application ID\n * @param options.applicationVersion - Filter runs by specific application version\n * @returns A promise that resolves to an array of application run objects\n * @throws {Error} If the request fails due to network issues, authentication problems, or API errors\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * // Get all runs\n * const allRuns = await sdk.listApplicationRuns();\n *\n * // Get runs for a specific application\n * const appRuns = await sdk.listApplicationRuns({\n * applicationId: 'app-123'\n * });\n *\n * // Get runs for a specific application version\n * const versionRuns = await sdk.listApplicationRuns({\n * applicationId: 'app-123',\n * applicationVersion: 'v1.2.0'\n * });\n *\n * console.log(`Found ${allRuns.length} total runs`);\n * } catch (error) {\n * console.error('Failed to list application runs:', error.message);\n * }\n * ```\n */\n async listApplicationRuns(options?: {\n applicationId?: string;\n applicationVersion?: string;\n customMetadata?: string;\n sort?: string[];\n page?: number;\n pageSize?: number;\n }): Promise<ApplicationRun[]> {\n const client = await this.#getClient();\n try {\n const response = await client.listRunsV1RunsGet({\n applicationId: options?.applicationId,\n applicationVersion: options?.applicationVersion,\n customMetadata: options?.customMetadata,\n sort: options?.sort,\n page: options?.page,\n pageSize: options?.pageSize,\n });\n\n // Enrich each raw RunReadResponse with computed properties\n return response.data.map(processApplicationRun);\n } catch (error) {\n handleRequestError(error);\n }\n }\n\n /**\n * Create and submit a new application run for processing\n *\n * This method creates a new processing job by submitting data items to a\n * specific application version. The run will be queued and processed\n * asynchronously on the Aignostics Platform.\n *\n * @param request - The run creation request containing application version ID and items to process\n * @returns A promise that resolves to the created run response with run ID and status\n * @throws {Error} If the request fails due to network issues, authentication problems, invalid request data, or API errors\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * const runRequest = {\n * application_version_id: 'app-version-123',\n * items: [\n * {\n * id: 'item-1',\n * data: { }\n * },\n * {\n * id: 'item-2',\n * data: { }\n * }\n * ]\n * };\n *\n * const run = await sdk.createApplicationRun(runRequest);\n * console.log(`Created run with ID: ${run.id}`);\n * console.log(`Status: ${run.status}`);\n * } catch (error) {\n * console.error('Failed to create application run:', error.message);\n * }\n * ```\n */\n async createApplicationRun(request: RunCreationRequest): Promise<RunCreationResponse> {\n const client = await this.#getClient();\n try {\n const response = await client.createRunV1RunsPost({\n runCreationRequest: request,\n });\n return response.data;\n } catch (error) {\n handleRequestError(error);\n }\n }\n\n /**\n * Retrieve detailed information about a specific application run\n *\n * This method fetches complete details about a processing job, including\n * its current status, progress, metadata, and execution information.\n *\n * @param applicationRunId - The unique identifier of the application run\n * @returns A promise that resolves to the run details object\n * @throws {Error} If the request fails due to network issues, authentication problems, invalid run ID, or API errors\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * const run = await sdk.getRun('run-123');\n * console.log(`Run ID: ${run.id}`);\n * console.log(`Status: ${run.status}`);\n * console.log(`Progress: ${run.progress}%`);\n * console.log(`Created: ${run.created_at}`);\n * } catch (error) {\n * console.error('Failed to get run details:', error.message);\n * }\n * ```\n */\n async getRun(applicationRunId: string): Promise<ApplicationRun> {\n const client = await this.#getClient();\n try {\n const response = await client.getRunV1RunsRunIdGet({\n runId: applicationRunId,\n });\n\n // Enrich raw RunReadResponse with computed properties\n return processApplicationRun(response.data);\n } catch (error) {\n handleRequestError(error);\n }\n }\n\n /**\n * Cancel a running or queued application run\n *\n * This method attempts to cancel an application run that is currently\n * in progress or waiting in the queue. Once cancelled, the run cannot\n * be resumed and will transition to a cancelled state.\n *\n * @param applicationRunId - The unique identifier of the application run to cancel\n * @returns A promise that resolves when the cancellation request is successful\n * @throws {Error} If the request fails due to network issues, authentication problems, invalid run ID, or if the run cannot be cancelled\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * await sdk.cancelApplicationRun('run-123');\n * console.log('Run cancellation requested successfully');\n *\n * // Check the status to confirm cancellation\n * const run = await sdk.getRun('run-123');\n * console.log(`Updated status: ${run.status}`);\n * } catch (error) {\n * console.error('Failed to cancel run:', error.message);\n * }\n * ```\n */\n async cancelApplicationRun(applicationRunId: string): Promise<void> {\n const client = await this.#getClient();\n try {\n await client.cancelRunV1RunsRunIdCancelPost({\n runId: applicationRunId,\n });\n } catch (error) {\n handleRequestError(error);\n }\n }\n\n /**\n * Retrieve the processing results for a completed application run\n *\n * This method fetches all result items produced by a completed application run.\n * Results include the processed data, analysis outcomes, and any generated\n * artifacts from the AI model execution.\n *\n * @param applicationRunId - The unique identifier of the application run\n * @returns A promise that resolves to an array of result items\n * @throws {Error} If the request fails due to network issues, authentication problems, invalid run ID, or API errors\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * const results = await sdk.listRunResults('run-123');\n * console.log(`Found ${results.length} result items`);\n *\n * results.forEach((result, index) => {\n * console.log(`Result ${index + 1}:`);\n * console.log(`- Item ID: ${result.item_id}`);\n * console.log(`- Status: ${result.status}`);\n * console.log(`- Data: ${JSON.stringify(result.data)}`);\n * });\n * } catch (error) {\n * console.error('Failed to list run results:', error.message);\n * }\n * ```\n */\n async listRunResults(\n applicationRunId: string,\n {\n page,\n pageSize,\n sort,\n externalIdIn,\n state,\n terminationReason,\n }: {\n page?: number;\n pageSize?: number;\n sort?: string[];\n externalIdIn?: string[];\n state?: ItemState;\n terminationReason?: ItemTerminationReason;\n } = {}\n ): Promise<ApplicationRunItem[]> {\n const client = await this.#getClient();\n try {\n const response = await client.listRunItemsV1RunsRunIdItemsGet({\n runId: applicationRunId,\n page,\n pageSize,\n sort,\n externalIdIn,\n state,\n terminationReason,\n });\n\n // Enrich each raw ItemResultReadResponse with computed properties\n return response.data.map(processRunItem);\n } catch (error) {\n handleRequestError(error);\n }\n }\n\n /**\n * Get the current version of the SDK\n *\n * This method returns the version string of the Platform SDK, which can be\n * useful for debugging, logging, or ensuring compatibility with API versions.\n *\n * @returns The SDK version string (e.g., \"1.2.3\")\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n * console.log(`Using SDK version: ${sdk.getVersion()}`);\n * ```\n */\n getVersion(): string {\n return packageJson.version;\n }\n\n /**\n * Get the current SDK configuration\n *\n * This method returns a copy of the current configuration used by the SDK,\n * including the base URL, timeout settings, and other options. The returned\n * object is a copy to prevent accidental modification of the internal config.\n *\n * @returns A copy of the current SDK configuration object\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({\n * baseURL: 'https://api.aignostics.com',\n * tokenProvider: () => 'your-token',\n * timeout: 30000\n * });\n *\n * const config = sdk.getConfig();\n * console.log(`Base URL: ${config.baseURL}`);\n * console.log(`Timeout: ${config.timeout}ms`);\n * ```\n */\n getConfig(): PlatformSDKConfig {\n return { ...this.#config };\n }\n\n /**\n * Download an artifact file from a completed application run\n *\n * This method retrieves the binary content of a specific artifact produced\n * during an application run. Artifacts can include generated reports, processed\n * images, or other output files from the AI model execution.\n *\n * The download is performed with automatic retries for transient failures.\n * Non-retryable HTTP status codes (403, 404, 410, 422) will abort immediately.\n *\n * @param runId - The unique identifier of the application run\n * @param artifactId - The unique identifier of the artifact to download\n * @returns A promise that resolves to an ArrayBuffer containing the artifact's binary content\n * @throws {AuthenticationError} If no valid authentication token is available\n * @throws {APIError} If the API request fails (e.g., 403, 404, 410, 422, or other HTTP errors)\n * @throws {UnexpectedError} If a non-HTTP error occurs\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * const buffer = await sdk.downloadArtifact('run-123', 'artifact-456');\n * console.log(`Downloaded ${buffer.byteLength} bytes`);\n *\n * // Write to file (Node.js)\n * fs.writeFileSync('output.bin', Buffer.from(buffer));\n * } catch (error) {\n * console.error('Failed to download artifact:', error.message);\n * }\n * ```\n */\n async downloadArtifact(runId: string, artifactId: string): Promise<ArrayBuffer> {\n const client = await this.#getClient();\n try {\n const response = await downloadWithRetry(\n () =>\n client.getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet(\n {\n runId,\n artifactId,\n },\n {\n responseType: 'arraybuffer',\n }\n ),\n [403, 404, 410, 422]\n );\n return response.data as ArrayBuffer;\n } catch (error) {\n handleRequestError(error);\n }\n }\n}\n","import { PlatformSDKHttp } from './platform-sdk.js';\n\n// Export generated API types and client when available\nexport * from './generated/index.js';\n\n// Export error classes\nexport { BaseError, AuthenticationError, APIError, ConfigurationError } from './errors.js';\n\nexport type { ApplicationRun } from './entities/application-run/types.js';\nexport { processApplicationRun } from './entities/application-run/process-application-run.js';\nexport {\n getRunProgress,\n getRunStatus,\n canDownloadRunItems,\n} from './entities/application-run/utils.js';\nexport type { ApplicationRunItem, ItemStatus } from './entities/run-item/types.js';\nexport { processRunItem } from './entities/run-item/process-run-item.js';\nexport { canDownloadItem, getItemStatus } from './entities/run-item/utils.js';\n// Export main SDK and types\nexport {\n PlatformSDKHttp,\n type PlatformSDKConfig,\n type PlatformSDK,\n type TokenProvider,\n} from './platform-sdk.js';\n\n// Export main SDK as default\nexport default PlatformSDKHttp;\n"]}
|
|
1
|
+
{"version":3,"sources":["../package.json","../src/generated/base.ts","../src/generated/common.ts","../src/generated/api.ts","../src/generated/configuration.ts","../src/errors.ts","../src/entities/application-run/utils.ts","../src/entities/application-run/process-application-run.ts","../src/entities/run-item/utils.ts","../src/entities/run-item/process-run-item.ts","../../../node_modules/is-network-error/index.js","../../../node_modules/p-retry/index.js","../src/utils/downloadWithRetry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K,GAAA,EAAK,GAAG;AAAA,OACrB;AACA,MAAA,OAAO,QAAA,CAAS,IAAA;AAAA,IAClB,SAAS,KAAA,EAAO;AACd,MAAA,kBAAA,CAAmB,KAAK,CAAA;AAAA,IAC1B;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmCA,MAAM,sBAAA,CAAuB,KAAA,EAAe,UAAA,EAAuC;AACjF,IAAA,MAAM,MAAA,GAAS,MAAM,IAAA,CAAK,UAAA,EAAW;AACrC,IAAA,IAAI;AACF,MAAA,MAAM,WAAW,MAAM,iBAAA;AAAA,QACrB,MACE,MAAA,CAAO,mDAAA;AAAA,UACL;AAAA,YACE,KAAA;AAAA,YACA;AAAA,WACF;AAAA,UACA;AAAA,YACE,YAAA,EAAc;AAAA;AAChB,SACF;AAAA,QACF,CAAC,GAAA,EAAK,GAAA,EAAK,GAAA,EAAK,GAAG;AAAA,OACrB;AACA,MAAA,OAAO,QAAA,CAAS,IAAA;AAAA,IAClB,SAAS,KAAA,EAAO;AACd,MAAA,kBAAA,CAAmB,KAAK,CAAA;AAAA,IAC1B;AAAA,EACF;AACF;;;ACjtBA,IAAO,aAAA,GAAQ","file":"index.js","sourcesContent":["{\n \"name\": \"@aignostics/sdk\",\n \"version\": \"0.0.0-development\",\n \"description\": \"The TypeScript SDK for Aignostics\",\n \"type\": \"module\",\n \"main\": \"./dist/index.cjs\",\n \"module\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\",\n \"require\": \"./dist/index.cjs\"\n },\n \"./test\": {\n \"types\": \"./dist/test-utils/http-mocks.d.ts\",\n \"import\": \"./dist/test-utils/http-mocks.js\",\n \"require\": \"./dist/test-utils/http-mocks.cjs\"\n },\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"dist\",\n \"README.md\",\n \"LICENSE\"\n ],\n \"publishConfig\": {\n \"registry\": \"https://registry.npmjs.org\",\n \"access\": \"public\"\n },\n \"scripts\": {\n \"build\": \"nx build\",\n \"test\": \"nx test\",\n \"lint\": \"nx lint\",\n \"typecheck\": \"nx typecheck\"\n },\n \"keywords\": [\n \"aignostics\",\n \"platform\",\n \"sdk\",\n \"typescript\",\n \"api\"\n ],\n \"author\": \"Aignostics\",\n \"license\": \"MIT\",\n \"dependencies\": {\n \"axios\": \"^1.12.2\",\n \"p-retry\": \"^8.0.0\",\n \"zod\": \"^4.0.17\"\n },\n \"engines\": {\n \"node\": \">=18.0.0\"\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Aignostics Platform API\n * The Aignostics Platform is a cloud-based service that enables organizations to access advanced computational pathology applications through a secure API. The platform provides standardized access to Aignostics\\' portfolio of computational pathology solutions, with Atlas H&E-TME serving as an example of the available API endpoints. To begin using the platform, your organization must first be registered by our business support team. If you don\\'t have an account yet, please contact your account manager or email support@aignostics.com to get started. More information about our applications can be found on [https://platform.aignostics.com](https://platform.aignostics.com). **How to authorize and test API endpoints:** 1. Click the \\\"Authorize\\\" button in the right corner below 3. Click \\\"Authorize\\\" button in the dialog to log in with your Aignostics Platform credentials 4. After successful login, you\\'ll be redirected back and can use \\\"Try it out\\\" on any endpoint **Note**: You only need to authorize once per session. The lock icons next to endpoints will show green when authorized. \n *\n * The version of the OpenAPI document: 1.7.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 */\n\n\nimport type { Configuration } from './configuration.js';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://platform-staging.aignostics.com/api\".replace(/\\/+$/, \"\");\n\n/**\n *\n * @export\n */\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\n/**\n *\n * @export\n * @interface RequestArgs\n */\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\n/**\n *\n * @export\n * @class BaseAPI\n */\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\n/**\n *\n * @export\n * @class RequiredError\n * @extends {Error}\n */\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\n/**\n *\n * @export\n */\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Aignostics Platform API\n * The Aignostics Platform is a cloud-based service that enables organizations to access advanced computational pathology applications through a secure API. The platform provides standardized access to Aignostics\\' portfolio of computational pathology solutions, with Atlas H&E-TME serving as an example of the available API endpoints. To begin using the platform, your organization must first be registered by our business support team. If you don\\'t have an account yet, please contact your account manager or email support@aignostics.com to get started. More information about our applications can be found on [https://platform.aignostics.com](https://platform.aignostics.com). **How to authorize and test API endpoints:** 1. Click the \\\"Authorize\\\" button in the right corner below 3. Click \\\"Authorize\\\" button in the dialog to log in with your Aignostics Platform credentials 4. After successful login, you\\'ll be redirected back and can use \\\"Try it out\\\" on any endpoint **Note**: You only need to authorize once per session. The lock icons next to endpoints will show green when authorized. \n *\n * The version of the OpenAPI document: 1.7.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 */\n\n\nimport type { Configuration } from \"./configuration.js\";\nimport type { RequestArgs } from \"./base.js\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base.js\";\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Aignostics Platform API\n * The Aignostics Platform is a cloud-based service that enables organizations to access advanced computational pathology applications through a secure API. The platform provides standardized access to Aignostics\\' portfolio of computational pathology solutions, with Atlas H&E-TME serving as an example of the available API endpoints. To begin using the platform, your organization must first be registered by our business support team. If you don\\'t have an account yet, please contact your account manager or email support@aignostics.com to get started. More information about our applications can be found on [https://platform.aignostics.com](https://platform.aignostics.com). **How to authorize and test API endpoints:** 1. Click the \\\"Authorize\\\" button in the right corner below 3. Click \\\"Authorize\\\" button in the dialog to log in with your Aignostics Platform credentials 4. After successful login, you\\'ll be redirected back and can use \\\"Try it out\\\" on any endpoint **Note**: You only need to authorize once per session. The lock icons next to endpoints will show green when authorized. \n *\n * The version of the OpenAPI document: 1.7.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 */\n\n\nimport type { Configuration } from './configuration.js';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';\nimport type { RequestArgs } from './base.js';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base.js';\n\n/**\n * Response schema for `List available applications` and `Read Application by Id` endpoints\n * @export\n * @interface ApplicationReadResponse\n */\nexport interface ApplicationReadResponse {\n /**\n * Application ID\n * @type {string}\n * @memberof ApplicationReadResponse\n */\n 'application_id': string;\n /**\n * Application display name\n * @type {string}\n * @memberof ApplicationReadResponse\n */\n 'name': string;\n /**\n * Regulatory classes, to which the applications comply with. Possible values include: RUO, IVDR, FDA.\n * @type {Array<string>}\n * @memberof ApplicationReadResponse\n */\n 'regulatory_classes': Array<string>;\n /**\n * Describing what the application can do \n * @type {string}\n * @memberof ApplicationReadResponse\n */\n 'description': string;\n /**\n * All version numbers available to the user\n * @type {Array<ApplicationVersion>}\n * @memberof ApplicationReadResponse\n */\n 'versions': Array<ApplicationVersion>;\n}\n/**\n * Response schema for `List available applications` and `Read Application by Id` endpoints\n * @export\n * @interface ApplicationReadShortResponse\n */\nexport interface ApplicationReadShortResponse {\n /**\n * Application ID\n * @type {string}\n * @memberof ApplicationReadShortResponse\n */\n 'application_id': string;\n /**\n * Application display name\n * @type {string}\n * @memberof ApplicationReadShortResponse\n */\n 'name': string;\n /**\n * Regulatory classes, to which the applications comply with. Possible values include: RUO, IVDR, FDA.\n * @type {Array<string>}\n * @memberof ApplicationReadShortResponse\n */\n 'regulatory_classes': Array<string>;\n /**\n * Describing what the application can do \n * @type {string}\n * @memberof ApplicationReadShortResponse\n */\n 'description': string;\n /**\n * \n * @type {ApplicationVersion}\n * @memberof ApplicationReadShortResponse\n */\n 'latest_version'?: ApplicationVersion | null;\n}\n/**\n * \n * @export\n * @interface ApplicationVersion\n */\nexport interface ApplicationVersion {\n /**\n * The number of the latest version\n * @type {string}\n * @memberof ApplicationVersion\n */\n 'number': string;\n /**\n * The timestamp for when the application version was made available in the Platform\n * @type {string}\n * @memberof ApplicationVersion\n */\n 'released_at': string;\n}\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const ArtifactOutput = {\n None: 'NONE',\n Available: 'AVAILABLE',\n DeletedByUser: 'DELETED_BY_USER',\n DeletedBySystem: 'DELETED_BY_SYSTEM'\n} as const;\n\nexport type ArtifactOutput = typeof ArtifactOutput[keyof typeof ArtifactOutput];\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const ArtifactState = {\n Pending: 'PENDING',\n Processing: 'PROCESSING',\n Terminated: 'TERMINATED'\n} as const;\n\nexport type ArtifactState = typeof ArtifactState[keyof typeof ArtifactState];\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const ArtifactTerminationReason = {\n Succeeded: 'SUCCEEDED',\n UserError: 'USER_ERROR',\n SystemError: 'SYSTEM_ERROR',\n Skipped: 'SKIPPED'\n} as const;\n\nexport type ArtifactTerminationReason = typeof ArtifactTerminationReason[keyof typeof ArtifactTerminationReason];\n\n\n/**\n * \n * @export\n * @interface CustomMetadataUpdateRequest\n */\nexport interface CustomMetadataUpdateRequest {\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof CustomMetadataUpdateRequest\n */\n 'custom_metadata'?: { [key: string]: any; } | null;\n /**\n * \n * @type {string}\n * @memberof CustomMetadataUpdateRequest\n */\n 'custom_metadata_checksum'?: string | null;\n}\n/**\n * \n * @export\n * @interface CustomMetadataUpdateResponse\n */\nexport interface CustomMetadataUpdateResponse {\n /**\n * \n * @type {string}\n * @memberof CustomMetadataUpdateResponse\n */\n 'custom_metadata_checksum': string | null;\n}\n/**\n * \n * @export\n * @interface GrantCreateRequest\n */\nexport interface GrantCreateRequest {\n /**\n * \n * @type {ResourceType}\n * @memberof GrantCreateRequest\n */\n 'resource_type': ResourceType;\n /**\n * \n * @type {string}\n * @memberof GrantCreateRequest\n */\n 'resource_id': string;\n /**\n * \n * @type {SubjectType}\n * @memberof GrantCreateRequest\n */\n 'subject_type': SubjectType;\n /**\n * \n * @type {string}\n * @memberof GrantCreateRequest\n */\n 'subject_id'?: string | null;\n /**\n * \n * @type {string}\n * @memberof GrantCreateRequest\n */\n 'subject_email'?: string | null;\n /**\n * \n * @type {GrantRelation}\n * @memberof GrantCreateRequest\n */\n 'relation': GrantRelation;\n}\n\n\n/**\n * \n * @export\n * @interface GrantReadResponse\n */\nexport interface GrantReadResponse {\n /**\n * \n * @type {string}\n * @memberof GrantReadResponse\n */\n 'grant_id': string;\n /**\n * \n * @type {ResourceType}\n * @memberof GrantReadResponse\n */\n 'resource_type': ResourceType;\n /**\n * \n * @type {string}\n * @memberof GrantReadResponse\n */\n 'resource_id': string;\n /**\n * \n * @type {SubjectType}\n * @memberof GrantReadResponse\n */\n 'subject_type': SubjectType;\n /**\n * \n * @type {string}\n * @memberof GrantReadResponse\n */\n 'subject_id': string;\n /**\n * \n * @type {GrantRelation}\n * @memberof GrantReadResponse\n */\n 'relation': GrantRelation;\n /**\n * \n * @type {string}\n * @memberof GrantReadResponse\n */\n 'created_by': string;\n /**\n * \n * @type {string}\n * @memberof GrantReadResponse\n */\n 'created_at': string;\n /**\n * \n * @type {boolean}\n * @memberof GrantReadResponse\n */\n 'revoked': boolean;\n}\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const GrantRelation = {\n Owner: 'owner',\n Editor: 'editor',\n Viewer: 'viewer'\n} as const;\n\nexport type GrantRelation = typeof GrantRelation[keyof typeof GrantRelation];\n\n\n/**\n * \n * @export\n * @interface HTTPValidationError\n */\nexport interface HTTPValidationError {\n /**\n * \n * @type {Array<ValidationError>}\n * @memberof HTTPValidationError\n */\n 'detail'?: Array<ValidationError>;\n}\n/**\n * \n * @export\n * @interface InputArtifact\n */\nexport interface InputArtifact {\n /**\n * \n * @type {string}\n * @memberof InputArtifact\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof InputArtifact\n */\n 'mime_type': string;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof InputArtifact\n */\n 'metadata_schema': { [key: string]: any; };\n}\n/**\n * Input artifact containing the slide image and associated metadata.\n * @export\n * @interface InputArtifactCreationRequest\n */\nexport interface InputArtifactCreationRequest {\n /**\n * Type of artifact. For Atlas H&E-TME, use \\\"input_slide\\\"\n * @type {string}\n * @memberof InputArtifactCreationRequest\n */\n 'name': string;\n /**\n * [Signed URL](https://cloud.google.com/cdn/docs/using-signed-urls) to the input artifact file. The URL should be valid for at least 6 days from the payload submission time.\n * @type {string}\n * @memberof InputArtifactCreationRequest\n */\n 'download_url': string;\n /**\n * The metadata of the artifact, required by the application version. The JSON schema of the metadata can be requested by `/v1/versions/{application_version_id}`. The schema is located in `input_artifacts.[].metadata_schema`\n * @type {{ [key: string]: any; }}\n * @memberof InputArtifactCreationRequest\n */\n 'metadata': { [key: string]: any; };\n}\n/**\n * \n * @export\n * @interface InputArtifactResultReadResponse\n */\nexport interface InputArtifactResultReadResponse {\n /**\n * The Id of the artifact. Used internally\n * @type {string}\n * @memberof InputArtifactResultReadResponse\n */\n 'input_artifact_id': string;\n /**\n * Name of the input from the schema from the `/v1/versions/{version_id}` endpoint.\n * @type {string}\n * @memberof InputArtifactResultReadResponse\n */\n 'name': string;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof InputArtifactResultReadResponse\n */\n 'metadata'?: { [key: string]: any; } | null;\n /**\n * \n * @type {string}\n * @memberof InputArtifactResultReadResponse\n */\n 'download_url'?: string | null;\n}\n/**\n * Individual item (slide) to be processed in a run.\n * @export\n * @interface ItemCreationRequest\n */\nexport interface ItemCreationRequest {\n /**\n * Unique identifier for this item within the run. Used for referencing items. Must be unique across all items in the same run\n * @type {string}\n * @memberof ItemCreationRequest\n */\n 'external_id': string;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof ItemCreationRequest\n */\n 'custom_metadata'?: { [key: string]: any; } | null;\n /**\n * List of input artifacts for this item. For Atlas H&E-TME, typically contains one artifact (the slide image)\n * @type {Array<InputArtifactCreationRequest>}\n * @memberof ItemCreationRequest\n */\n 'input_artifacts': Array<InputArtifactCreationRequest>;\n}\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const ItemOutput = {\n None: 'NONE',\n Full: 'FULL'\n} as const;\n\nexport type ItemOutput = typeof ItemOutput[keyof typeof ItemOutput];\n\n\n/**\n * Response schema for items in `List Run Items` endpoint\n * @export\n * @interface ItemResultReadResponse\n */\nexport interface ItemResultReadResponse {\n /**\n * Item UUID generated by the Platform\n * @type {string}\n * @memberof ItemResultReadResponse\n */\n 'item_id': string;\n /**\n * The external_id of the item from the user payload\n * @type {string}\n * @memberof ItemResultReadResponse\n */\n 'external_id': string;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof ItemResultReadResponse\n */\n 'custom_metadata': { [key: string]: any; } | null;\n /**\n * \n * @type {string}\n * @memberof ItemResultReadResponse\n */\n 'custom_metadata_checksum'?: string | null;\n /**\n * \n * @type {number}\n * @memberof ItemResultReadResponse\n */\n 'queue_position_org'?: number | null;\n /**\n * \n * @type {number}\n * @memberof ItemResultReadResponse\n */\n 'queue_position_platform'?: number | null;\n /**\n * The item moves from `PENDING` to `PROCESSING` to `TERMINATED` state. When terminated, consult the `termination_reason` property to see whether it was successful. \n * @type {ItemState}\n * @memberof ItemResultReadResponse\n */\n 'state': ItemState;\n /**\n * The output status of the item (NONE, FULL)\n * @type {ItemOutput}\n * @memberof ItemResultReadResponse\n */\n 'output': ItemOutput;\n /**\n * \n * @type {ItemTerminationReason}\n * @memberof ItemResultReadResponse\n */\n 'termination_reason'?: ItemTerminationReason | null;\n /**\n * \n * @type {string}\n * @memberof ItemResultReadResponse\n */\n 'error_code'?: string | null;\n /**\n * \n * @type {string}\n * @memberof ItemResultReadResponse\n */\n 'error_message'?: string | null;\n /**\n * \n * @type {string}\n * @memberof ItemResultReadResponse\n */\n 'terminated_at'?: string | null;\n /**\n * The input artifact(s) provided by the user. For most applications, this will be one artifact that defines the whole slide image to be processed. \n * @type {Array<InputArtifactResultReadResponse>}\n * @memberof ItemResultReadResponse\n */\n 'input_artifacts': Array<InputArtifactResultReadResponse>;\n /**\n * The list of the results generated by the application algorithm. The number of files and their types depend on the particular application version, call `/v1/versions/{version_id}` to get the details. \n * @type {Array<OutputArtifactResultReadResponse>}\n * @memberof ItemResultReadResponse\n */\n 'output_artifacts': Array<OutputArtifactResultReadResponse>;\n}\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const ItemState = {\n Pending: 'PENDING',\n Processing: 'PROCESSING',\n Terminated: 'TERMINATED'\n} as const;\n\nexport type ItemState = typeof ItemState[keyof typeof ItemState];\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const ItemTerminationReason = {\n Succeeded: 'SUCCEEDED',\n UserError: 'USER_ERROR',\n SystemError: 'SYSTEM_ERROR',\n Skipped: 'SKIPPED'\n} as const;\n\nexport type ItemTerminationReason = typeof ItemTerminationReason[keyof typeof ItemTerminationReason];\n\n\n/**\n * Response schema for `Get current user` endpoint\n * @export\n * @interface MeReadResponse\n */\nexport interface MeReadResponse {\n /**\n * \n * @type {UserReadResponse}\n * @memberof MeReadResponse\n */\n 'user': UserReadResponse;\n /**\n * \n * @type {OrganizationReadResponse}\n * @memberof MeReadResponse\n */\n 'organization': OrganizationReadResponse;\n}\n/**\n * Part of response schema for Organization object in `Get current user` endpoint. This model corresponds to the response schema returned from Auth0 GET /v2/organizations/{id} endpoint, flattens out the metadata out and doesn\\'t return branding or token_quota objects. For details, see: https://auth0.com/docs/api/management/v2/organizations/get-organizations-by-id #### Configuration for integrating with Aignostics Platform services. The Aignostics Platform API requires signed URLs for input artifacts (slide images). To simplify this process, Aignostics provides a dedicated storage bucket. The HMAC credentials below grant read and write access to this bucket, allowing you to upload files and generate the signed URLs needed for API calls. Additionally, logging and error reporting tokens enable Aignostics to provide better support and monitor system performance for your integration.\n * @export\n * @interface OrganizationReadResponse\n */\nexport interface OrganizationReadResponse {\n /**\n * Unique organization identifier\n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'id': string;\n /**\n * \n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'name'?: string | null;\n /**\n * \n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'display_name'?: string | null;\n /**\n * HMAC access key ID for the Aignostics-provided storage bucket. Used to authenticate requests for uploading files and generating signed URLs\n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_bucket_hmac_access_key_id': string;\n /**\n * HMAC secret access key paired with the access key ID. Keep this credential secure.\n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_bucket_hmac_secret_access_key': string;\n /**\n * Name of the bucket provided by Aignostics for storing input artifacts (slide images)\n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_bucket_name': string;\n /**\n * Protocol to use for bucket access. Defines the URL scheme for connecting to the storage service\n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_bucket_protocol': string;\n /**\n * Authentication token for Logfire observability service. Enables sending application logs and performance metrics to Aignostics for monitoring and support\n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_logfire_token': string;\n /**\n * Data Source Name (DSN) for Sentry error tracking service. Allows automatic reporting of errors and exceptions to Aignostics support team\n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_sentry_dsn': string;\n}\n/**\n * \n * @export\n * @interface OutputArtifact\n */\nexport interface OutputArtifact {\n /**\n * \n * @type {string}\n * @memberof OutputArtifact\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof OutputArtifact\n */\n 'mime_type': string;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof OutputArtifact\n */\n 'metadata_schema': { [key: string]: any; };\n /**\n * \n * @type {OutputArtifactScope}\n * @memberof OutputArtifact\n */\n 'scope': OutputArtifactScope;\n /**\n * \n * @type {OutputArtifactVisibility}\n * @memberof OutputArtifact\n */\n 'visibility': OutputArtifactVisibility;\n}\n\n\n/**\n * \n * @export\n * @interface OutputArtifactResultReadResponse\n */\nexport interface OutputArtifactResultReadResponse {\n /**\n * The Id of the artifact. Used internally\n * @type {string}\n * @memberof OutputArtifactResultReadResponse\n */\n 'output_artifact_id': string;\n /**\n * Name of the output from the output schema from the `/v1/versions/{version_id}` endpoint. \n * @type {string}\n * @memberof OutputArtifactResultReadResponse\n */\n 'name': string;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof OutputArtifactResultReadResponse\n */\n 'metadata'?: { [key: string]: any; } | null;\n /**\n * The current state of the artifact (PENDING, PROCESSING, TERMINATED)\n * @type {ArtifactState}\n * @memberof OutputArtifactResultReadResponse\n */\n 'state': ArtifactState;\n /**\n * \n * @type {ArtifactTerminationReason}\n * @memberof OutputArtifactResultReadResponse\n */\n 'termination_reason'?: ArtifactTerminationReason | null;\n /**\n * The output status of the artifact (NONE, FULL)\n * @type {ArtifactOutput}\n * @memberof OutputArtifactResultReadResponse\n */\n 'output': ArtifactOutput;\n /**\n * \n * @type {string}\n * @memberof OutputArtifactResultReadResponse\n */\n 'error_code'?: string | null;\n /**\n * \n * @type {string}\n * @memberof OutputArtifactResultReadResponse\n */\n 'error_message'?: string | null;\n /**\n * \n * @type {string}\n * @memberof OutputArtifactResultReadResponse\n */\n 'download_url'?: string | null;\n}\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const OutputArtifactScope = {\n Item: 'ITEM',\n Global: 'GLOBAL'\n} as const;\n\nexport type OutputArtifactScope = typeof OutputArtifactScope[keyof typeof OutputArtifactScope];\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const OutputArtifactVisibility = {\n Internal: 'INTERNAL',\n External: 'EXTERNAL'\n} as const;\n\nexport type OutputArtifactVisibility = typeof OutputArtifactVisibility[keyof typeof OutputArtifactVisibility];\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const ResourceType = {\n Run: 'run',\n Item: 'item',\n OutputArtifact: 'output_artifact',\n ShareToken: 'share_token'\n} as const;\n\nexport type ResourceType = typeof ResourceType[keyof typeof ResourceType];\n\n\n/**\n * Request schema for `Initiate Run` endpoint. It describes which application version is chosen, and which user data should be processed.\n * @export\n * @interface RunCreationRequest\n */\nexport interface RunCreationRequest {\n /**\n * Unique ID for the application to use for processing\n * @type {string}\n * @memberof RunCreationRequest\n */\n 'application_id': string;\n /**\n * \n * @type {string}\n * @memberof RunCreationRequest\n */\n 'version_number'?: string | null;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof RunCreationRequest\n */\n 'custom_metadata'?: { [key: string]: any; } | null;\n /**\n * \n * @type {SchedulingRequest}\n * @memberof RunCreationRequest\n */\n 'scheduling'?: SchedulingRequest | null;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof RunCreationRequest\n */\n 'callback_context'?: { [key: string]: any; } | null;\n /**\n * List of items (slides) to process. Each item represents a whole slide image (WSI) with its associated metadata and artifacts\n * @type {Array<ItemCreationRequest>}\n * @memberof RunCreationRequest\n */\n 'items': Array<ItemCreationRequest>;\n}\n/**\n * \n * @export\n * @interface RunCreationResponse\n */\nexport interface RunCreationResponse {\n /**\n * \n * @type {string}\n * @memberof RunCreationResponse\n */\n 'run_id': string;\n}\n/**\n * \n * @export\n * @interface RunItemStatistics\n */\nexport interface RunItemStatistics {\n /**\n * Total number of the items in the run\n * @type {number}\n * @memberof RunItemStatistics\n */\n 'item_count': number;\n /**\n * The number of items in `PENDING` state\n * @type {number}\n * @memberof RunItemStatistics\n */\n 'item_pending_count': number;\n /**\n * The number of items in `PROCESSING` state\n * @type {number}\n * @memberof RunItemStatistics\n */\n 'item_processing_count': number;\n /**\n * The number of items in `TERMINATED` state, and the item termination reason is `USER_ERROR`\n * @type {number}\n * @memberof RunItemStatistics\n */\n 'item_user_error_count': number;\n /**\n * The number of items in `TERMINATED` state, and the item termination reason is `SYSTEM_ERROR`\n * @type {number}\n * @memberof RunItemStatistics\n */\n 'item_system_error_count': number;\n /**\n * The number of items in `TERMINATED` state, and the item termination reason is `SKIPPED`\n * @type {number}\n * @memberof RunItemStatistics\n */\n 'item_skipped_count': number;\n /**\n * The number of items in `TERMINATED` state, and the item termination reason is `SUCCEEDED`\n * @type {number}\n * @memberof RunItemStatistics\n */\n 'item_succeeded_count': number;\n}\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const RunOutput = {\n None: 'NONE',\n Partial: 'PARTIAL',\n Full: 'FULL'\n} as const;\n\nexport type RunOutput = typeof RunOutput[keyof typeof RunOutput];\n\n\n/**\n * Response schema for `Get run details` endpoint\n * @export\n * @interface RunReadResponse\n */\nexport interface RunReadResponse {\n /**\n * UUID of the application\n * @type {string}\n * @memberof RunReadResponse\n */\n 'run_id': string;\n /**\n * Application id\n * @type {string}\n * @memberof RunReadResponse\n */\n 'application_id': string;\n /**\n * Application version number\n * @type {string}\n * @memberof RunReadResponse\n */\n 'version_number': string;\n /**\n * When the run request is received by the Platform, the `state` of it is set to `PENDING`. The state changes to `PROCESSING` when at least one item is being processed. After `PROCESSING`, the state of the run can switch back to `PENDING` if there are no processing items, or to `TERMINATED` when the run finished processing.\n * @type {RunState}\n * @memberof RunReadResponse\n */\n 'state': RunState;\n /**\n * The status of the output of the run. When 0 items are successfully processed the output is `NONE`, after one item is successfully processed, the value is set to `PARTIAL`. When all items of the run are successfully processed, the output is set to `FULL`.\n * @type {RunOutput}\n * @memberof RunReadResponse\n */\n 'output': RunOutput;\n /**\n * \n * @type {RunTerminationReason}\n * @memberof RunReadResponse\n */\n 'termination_reason': RunTerminationReason | null;\n /**\n * \n * @type {string}\n * @memberof RunReadResponse\n */\n 'error_code': string | null;\n /**\n * \n * @type {string}\n * @memberof RunReadResponse\n */\n 'error_message': string | null;\n /**\n * Aggregated statistics of the run execution\n * @type {RunItemStatistics}\n * @memberof RunReadResponse\n */\n 'statistics': RunItemStatistics;\n /**\n * \n * @type {{ [key: string]: any; }}\n * @memberof RunReadResponse\n */\n 'custom_metadata'?: { [key: string]: any; } | null;\n /**\n * \n * @type {string}\n * @memberof RunReadResponse\n */\n 'custom_metadata_checksum'?: string | null;\n /**\n * Timestamp showing when the run was triggered\n * @type {string}\n * @memberof RunReadResponse\n */\n 'submitted_at': string;\n /**\n * Id of the user who triggered the run\n * @type {string}\n * @memberof RunReadResponse\n */\n 'submitted_by': string;\n /**\n * \n * @type {string}\n * @memberof RunReadResponse\n */\n 'organization_id'?: string | null;\n /**\n * \n * @type {string}\n * @memberof RunReadResponse\n */\n 'terminated_at'?: string | null;\n /**\n * \n * @type {number}\n * @memberof RunReadResponse\n */\n 'num_preceding_items_org'?: number | null;\n /**\n * \n * @type {number}\n * @memberof RunReadResponse\n */\n 'num_preceding_items_platform'?: number | null;\n /**\n * \n * @type {SchedulingResponse}\n * @memberof RunReadResponse\n */\n 'scheduling'?: SchedulingResponse | null;\n}\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const RunState = {\n Pending: 'PENDING',\n Processing: 'PROCESSING',\n Terminated: 'TERMINATED'\n} as const;\n\nexport type RunState = typeof RunState[keyof typeof RunState];\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const RunTerminationReason = {\n AllItemsProcessed: 'ALL_ITEMS_PROCESSED',\n CanceledBySystem: 'CANCELED_BY_SYSTEM',\n CanceledByUser: 'CANCELED_BY_USER'\n} as const;\n\nexport type RunTerminationReason = typeof RunTerminationReason[keyof typeof RunTerminationReason];\n\n\n/**\n * Scheduling constraints for a run.\n * @export\n * @interface SchedulingRequest\n */\nexport interface SchedulingRequest {\n /**\n * \n * @type {string}\n * @memberof SchedulingRequest\n */\n 'due_date'?: string | null;\n /**\n * \n * @type {string}\n * @memberof SchedulingRequest\n */\n 'deadline'?: string | null;\n}\n/**\n * Scheduling fields returned in run responses.\n * @export\n * @interface SchedulingResponse\n */\nexport interface SchedulingResponse {\n /**\n * \n * @type {string}\n * @memberof SchedulingResponse\n */\n 'due_date'?: string | null;\n /**\n * \n * @type {string}\n * @memberof SchedulingResponse\n */\n 'deadline'?: string | null;\n}\n/**\n * \n * @export\n * @interface ShareTokenCreateRequest\n */\nexport interface ShareTokenCreateRequest {\n /**\n * \n * @type {string}\n * @memberof ShareTokenCreateRequest\n */\n 'expires_at'?: string | null;\n}\n/**\n * Returned only on POST — includes the one-time share_token.\n * @export\n * @interface ShareTokenCreateResponse\n */\nexport interface ShareTokenCreateResponse {\n /**\n * \n * @type {string}\n * @memberof ShareTokenCreateResponse\n */\n 'share_token_id': string;\n /**\n * \n * @type {string}\n * @memberof ShareTokenCreateResponse\n */\n 'share_token': string;\n /**\n * \n * @type {string}\n * @memberof ShareTokenCreateResponse\n */\n 'created_at': string;\n /**\n * \n * @type {string}\n * @memberof ShareTokenCreateResponse\n */\n 'expires_at': string | null;\n /**\n * \n * @type {boolean}\n * @memberof ShareTokenCreateResponse\n */\n 'revoked': boolean;\n}\n/**\n * Returned on GET endpoints — omits share_token.\n * @export\n * @interface ShareTokenReadResponse\n */\nexport interface ShareTokenReadResponse {\n /**\n * \n * @type {string}\n * @memberof ShareTokenReadResponse\n */\n 'share_token_id': string;\n /**\n * \n * @type {string}\n * @memberof ShareTokenReadResponse\n */\n 'created_at': string;\n /**\n * \n * @type {string}\n * @memberof ShareTokenReadResponse\n */\n 'expires_at': string | null;\n /**\n * \n * @type {boolean}\n * @memberof ShareTokenReadResponse\n */\n 'revoked': boolean;\n}\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const SubjectType = {\n User: 'user',\n OrganizationAdmin: 'organization_admin',\n OrganizationUser: 'organization_user',\n ShareToken: 'share_token'\n} as const;\n\nexport type SubjectType = typeof SubjectType[keyof typeof SubjectType];\n\n\n/**\n * Part of response schema for User object in `Get current user` endpoint. This model corresponds to the response schema returned from Auth0 GET /v2/users/{id} endpoint. For details, see: https://auth0.com/docs/api/management/v2/users/get-users-by-id\n * @export\n * @interface UserReadResponse\n */\nexport interface UserReadResponse {\n /**\n * Unique user identifier\n * @type {string}\n * @memberof UserReadResponse\n */\n 'id': string;\n /**\n * \n * @type {string}\n * @memberof UserReadResponse\n */\n 'email'?: string | null;\n /**\n * \n * @type {boolean}\n * @memberof UserReadResponse\n */\n 'email_verified'?: boolean | null;\n /**\n * \n * @type {string}\n * @memberof UserReadResponse\n */\n 'name'?: string | null;\n /**\n * \n * @type {string}\n * @memberof UserReadResponse\n */\n 'given_name'?: string | null;\n /**\n * \n * @type {string}\n * @memberof UserReadResponse\n */\n 'family_name'?: string | null;\n /**\n * \n * @type {string}\n * @memberof UserReadResponse\n */\n 'nickname'?: string | null;\n /**\n * \n * @type {string}\n * @memberof UserReadResponse\n */\n 'picture'?: string | null;\n /**\n * \n * @type {string}\n * @memberof UserReadResponse\n */\n 'updated_at'?: string | null;\n}\n/**\n * \n * @export\n * @interface ValidationError\n */\nexport interface ValidationError {\n /**\n * \n * @type {Array<ValidationErrorLocInner>}\n * @memberof ValidationError\n */\n 'loc': Array<ValidationErrorLocInner>;\n /**\n * \n * @type {string}\n * @memberof ValidationError\n */\n 'msg': string;\n /**\n * \n * @type {string}\n * @memberof ValidationError\n */\n 'type': string;\n /**\n * \n * @type {any}\n * @memberof ValidationError\n */\n 'input'?: any;\n /**\n * \n * @type {object}\n * @memberof ValidationError\n */\n 'ctx'?: object;\n}\n/**\n * \n * @export\n * @interface ValidationErrorLocInner\n */\nexport interface ValidationErrorLocInner {\n}\n/**\n * \n * @export\n * @interface VersionDocumentResponse\n */\nexport interface VersionDocumentResponse {\n /**\n * \n * @type {string}\n * @memberof VersionDocumentResponse\n */\n 'id': string;\n /**\n * \n * @type {string}\n * @memberof VersionDocumentResponse\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof VersionDocumentResponse\n */\n 'mime_type': string;\n /**\n * \n * @type {VersionDocumentVisibility}\n * @memberof VersionDocumentResponse\n */\n 'visibility': VersionDocumentVisibility;\n /**\n * \n * @type {string}\n * @memberof VersionDocumentResponse\n */\n 'created_at': string;\n /**\n * \n * @type {string}\n * @memberof VersionDocumentResponse\n */\n 'updated_at': string;\n}\n\n\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const VersionDocumentVisibility = {\n Public: 'public',\n Internal: 'internal'\n} as const;\n\nexport type VersionDocumentVisibility = typeof VersionDocumentVisibility[keyof typeof VersionDocumentVisibility];\n\n\n/**\n * Base Response schema for the `Application Version Details` endpoint\n * @export\n * @interface VersionReadResponse\n */\nexport interface VersionReadResponse {\n /**\n * Semantic version of the application\n * @type {string}\n * @memberof VersionReadResponse\n */\n 'version_number': string;\n /**\n * Description of the changes relative to the previous version\n * @type {string}\n * @memberof VersionReadResponse\n */\n 'changelog': string;\n /**\n * List of the input fields, provided by the User\n * @type {Array<InputArtifact>}\n * @memberof VersionReadResponse\n */\n 'input_artifacts': Array<InputArtifact>;\n /**\n * List of the output fields, generated by the application\n * @type {Array<OutputArtifact>}\n * @memberof VersionReadResponse\n */\n 'output_artifacts': Array<OutputArtifact>;\n /**\n * The timestamp when the application version was registered\n * @type {string}\n * @memberof VersionReadResponse\n */\n 'released_at': string;\n}\n\n/**\n * PublicApi - axios parameter creator\n * @export\n */\nexport const PublicApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Get the application version details. Allows caller to retrieve information about application version based on provided application version ID.\n * @summary Application Version Details\n * @param {string} applicationId \n * @param {string} version \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet: async (applicationId: string, version: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'applicationId' is not null or undefined\n assertParamExists('applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet', 'applicationId', applicationId)\n // verify required parameter 'version' is not null or undefined\n assertParamExists('applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet', 'version', version)\n const localVarPath = `/v1/applications/{application_id}/versions/{version}`\n .replace(`{${\"application_id\"}}`, encodeURIComponent(String(applicationId)))\n .replace(`{${\"version\"}}`, encodeURIComponent(String(version)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * The run can be canceled by the user who created the run. The execution can be canceled any time while the run is not in the terminated state. The pending items of a canceled run will not be processed and will not add to the cost. When the run is canceled, the already completed items remain available for download.\n * @summary Cancel Run\n * @param {string} runId Run id, returned by `POST /runs/` endpoint\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n cancelRunV1RunsRunIdCancelPost: async (runId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runId' is not null or undefined\n assertParamExists('cancelRunV1RunsRunIdCancelPost', 'runId', runId)\n const localVarPath = `/v1/runs/{run_id}/cancel`\n .replace(`{${\"run_id\"}}`, encodeURIComponent(String(runId)));\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\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Create a grant to share access to a resource with a subject (user or organization).\n * @summary Create Grant\n * @param {GrantCreateRequest} grantCreateRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createGrantV1AccessGrantsPost: async (grantCreateRequest: GrantCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'grantCreateRequest' is not null or undefined\n assertParamExists('createGrantV1AccessGrantsPost', 'grantCreateRequest', grantCreateRequest)\n const localVarPath = `/v1/access/grants`;\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\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(grantCreateRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * This endpoint initiates a processing run for a selected application and version, and returns a `run_id` for tracking purposes. Slide processing occurs asynchronously, allowing you to retrieve results for individual slides as soon as they complete processing. The system typically processes slides in batches. Below is an example of the required payload for initiating an Atlas H&E TME processing run. ### Payload The payload includes `application_id`, optional `version_number`, and `items` base fields. `application_id` is the unique identifier for the application. `version_number` is the semantic version to use. If not provided, the latest available version will be used. `items` includes the list of the items to process (slides, in case of HETA application). Every item has a set of standard fields defined by the API, plus the custom_metadata, specific to the chosen application. Example payload structure with the comments: ``` { application_id: \\\"he-tme\\\", version_number: \\\"1.0.0-beta\\\", items: [{ \\\"external_id\\\": \\\"slide_1\\\", \\\"custom_metadata\\\": {\\\"project\\\": \\\"sample-study\\\"}, \\\"input_artifacts\\\": [{ \\\"name\\\": \\\"user_slide\\\", \\\"download_url\\\": \\\"https://...\\\", \\\"metadata\\\": { \\\"specimen\\\": { \\\"disease\\\": \\\"LUNG_CANCER\\\", \\\"tissue\\\": \\\"LUNG\\\" }, \\\"staining_method\\\": \\\"H&E\\\", \\\"width_px\\\": 136223, \\\"height_px\\\": 87761, \\\"resolution_mpp\\\": 0.2628238, \\\"media-type\\\":\\\"image/tiff\\\", \\\"checksum_base64_crc32c\\\": \\\"64RKKA==\\\" } }] }] } ``` | Parameter | Description | | :---- | :---- | | `application_id` required | Unique ID for the application | | `version_number` optional | Semantic version of the application. If not provided, the latest available version will be used | | `items` required | List of submitted items i.e. whole slide images (WSIs) with parameters described below. | | `external_id` required | Unique WSI name or ID for easy reference to items, provided by the caller. The `external_id` should be unique across all items of the run. | | `input_artifacts` required | List of provided artifacts for a WSI; at the moment Atlas H&E-TME receives only 1 artifact per slide (the slide itself), but for some other applications this can be a slide and a segmentation map | | `name` required | Type of artifact; Atlas H&E-TME supports only `\\\"input_slide\\\"` | | `download_url` required | Signed URL to the input file in the S3 or GCS; Should be valid for at least 6 days | | `specimen: disease` required | Supported cancer types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `specimen: tissue` required | Supported tissue types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `staining_method` required | WSI stain bio-marker; Atlas H&E-TME supports only `\\\"H&E\\\"` | | `width_px` required | Integer value. Number of pixels of the WSI in the X dimension. | | `height_px` required | Integer value. Number of pixels of the WSI in the Y dimension. | | `resolution_mpp` required | Resolution of WSI in micrometers per pixel; check allowed range in Atlas H&E-TME manual | | `media-type` required | Supported media formats; available values are: image/tiff (for .tiff or .tif WSI), application/dicom (for DICOM ), application/zip (for zipped DICOM), and application/octet-stream (for .svs WSI) | | `checksum_base64_crc32c` required | Base64-encoded big-endian CRC32C checksum of the WSI image | ### Response The endpoint returns the run UUID. After that, the job is scheduled for the execution in the background. To check the status of the run, call `GET v1/runs/{run_id}` endpoint with the returned run UUID. ### Rejection Apart from the authentication, authorization, and malformed input error, the request can be rejected when specific quota limit is exceeded. More details on quotas is described in the documentation\n * @summary Initiate Run\n * @param {RunCreationRequest} runCreationRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createRunV1RunsPost: async (runCreationRequest: RunCreationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runCreationRequest' is not null or undefined\n assertParamExists('createRunV1RunsPost', 'runCreationRequest', runCreationRequest)\n const localVarPath = `/v1/runs`;\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\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(runCreationRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Create a share token. The returned share_token value is shown only once and is never stored. Use POST /access/grants with subject_type=share_token to grant access to a resource.\n * @summary Create Share Token\n * @param {ShareTokenCreateRequest} shareTokenCreateRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createShareTokenV1AccessShareTokensPost: async (shareTokenCreateRequest: ShareTokenCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'shareTokenCreateRequest' is not null or undefined\n assertParamExists('createShareTokenV1AccessShareTokensPost', 'shareTokenCreateRequest', shareTokenCreateRequest)\n const localVarPath = `/v1/access/share-tokens`;\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\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(shareTokenCreateRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * This endpoint allows the caller to explicitly delete artifacts generated by a run. It can only be invoked when the run has reached a final state, i.e. `PROCESSED`, `CANCELED_SYSTEM`, or `CANCELED_USER`. Note that by default, all artifacts are automatically deleted 30 days after the run finishes, regardless of whether the caller explicitly requests such deletion.\n * @summary Delete Run Items\n * @param {string} runId Run id, returned by `POST /runs/` endpoint\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteRunItemsV1RunsRunIdArtifactsDelete: async (runId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runId' is not null or undefined\n assertParamExists('deleteRunItemsV1RunsRunIdArtifactsDelete', 'runId', runId)\n const localVarPath = `/v1/runs/{run_id}/artifacts`\n .replace(`{${\"run_id\"}}`, encodeURIComponent(String(runId)));\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\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Download the artifact file with the specified artifact_id, belonging to the specified run. The artifact_is is returned by the `GET /v1/runs/{run_id}/items` endpoint as part of the item results, and can also be retrieved via `GET /v1/runs/{run_id}/items/{external_id}`. The endpoint may return a redirect response with a presigned URL to download the artifact file from the storage bucket. The presigned URL is valid for a limited time, so it should be used immediately after receiving the response.\n * @summary Get Artifact Url\n * @param {string} runId Run id, returned by `POST /runs/` endpoint\n * @param {string} artifactId The artifact id to download\n * @param {string | null} [shareToken] Share token for accessing shared runs\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet: async (runId: string, artifactId: string, shareToken?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runId' is not null or undefined\n assertParamExists('getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet', 'runId', runId)\n // verify required parameter 'artifactId' is not null or undefined\n assertParamExists('getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet', 'artifactId', artifactId)\n const localVarPath = `/v1/runs/{run_id}/artifacts/{artifact_id}/file`\n .replace(`{${\"run_id\"}}`, encodeURIComponent(String(runId)))\n .replace(`{${\"artifact_id\"}}`, encodeURIComponent(String(artifactId)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n if (shareToken !== undefined) {\n localVarQueryParameter['share_token'] = shareToken;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get a grant by its ID.\n * @summary Get Grant\n * @param {string} grantId Grant ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getGrantV1AccessGrantsGrantIdGet: async (grantId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'grantId' is not null or undefined\n assertParamExists('getGrantV1AccessGrantsGrantIdGet', 'grantId', grantId)\n const localVarPath = `/v1/access/grants/{grant_id}`\n .replace(`{${\"grant_id\"}}`, encodeURIComponent(String(grantId)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieve details of a specific item (slide) by its external ID and the run ID.\n * @summary Get Item By Run\n * @param {string} runId The run id, returned by `POST /runs/` endpoint\n * @param {string} externalId The `external_id` that was defined for the item by the customer that triggered the run.\n * @param {string | null} [shareToken] Share token for accessing shared runs\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getItemByRunV1RunsRunIdItemsExternalIdGet: async (runId: string, externalId: string, shareToken?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runId' is not null or undefined\n assertParamExists('getItemByRunV1RunsRunIdItemsExternalIdGet', 'runId', runId)\n // verify required parameter 'externalId' is not null or undefined\n assertParamExists('getItemByRunV1RunsRunIdItemsExternalIdGet', 'externalId', externalId)\n const localVarPath = `/v1/runs/{run_id}/items/{external_id}`\n .replace(`{${\"run_id\"}}`, encodeURIComponent(String(runId)))\n .replace(`{${\"external_id\"}}`, encodeURIComponent(String(externalId)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n if (shareToken !== undefined) {\n localVarQueryParameter['share_token'] = shareToken;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieves your identity details, including name, email, and organization. This is useful for verifying that the request is being made under the correct user profile and organization context, as well as confirming that the expected environment variables are correctly set (in case you are using Python SDK)\n * @summary Get current user\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getMeV1MeGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/me`;\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * This endpoint allows the caller to retrieve the current status of a run along with other relevant run details. A run becomes available immediately after it is created through the `POST /v1/runs/` endpoint. To download the output results, use `GET /v1/runs/{run_id}/` items to get outputs for all slides. Access to a run is restricted to the user who created it, or users with an active grant or valid share token.\n * @summary Get run details\n * @param {string} runId Run id, returned by `POST /v1/runs/` endpoint\n * @param {string | null} [shareToken] Share token for accessing shared runs\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getRunV1RunsRunIdGet: async (runId: string, shareToken?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runId' is not null or undefined\n assertParamExists('getRunV1RunsRunIdGet', 'runId', runId)\n const localVarPath = `/v1/runs/{run_id}`\n .replace(`{${\"run_id\"}}`, encodeURIComponent(String(runId)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n if (shareToken !== undefined) {\n localVarQueryParameter['share_token'] = shareToken;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Get a share token by its ID.\n * @summary Get Share Token\n * @param {string} shareTokenId Share token ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getShareTokenV1AccessShareTokensShareTokenIdGet: async (shareTokenId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'shareTokenId' is not null or undefined\n assertParamExists('getShareTokenV1AccessShareTokensShareTokenIdGet', 'shareTokenId', shareTokenId)\n const localVarPath = `/v1/access/share-tokens/{share_token_id}`\n .replace(`{${\"share_token_id\"}}`, encodeURIComponent(String(shareTokenId)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Return metadata for a single public document attached to an application version.\n * @summary Get version document metadata\n * @param {string} applicationId \n * @param {string} version \n * @param {string} name \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getVersionDocument: async (applicationId: string, version: string, name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'applicationId' is not null or undefined\n assertParamExists('getVersionDocument', 'applicationId', applicationId)\n // verify required parameter 'version' is not null or undefined\n assertParamExists('getVersionDocument', 'version', version)\n // verify required parameter 'name' is not null or undefined\n assertParamExists('getVersionDocument', 'name', name)\n const localVarPath = `/v1/applications/{application_id}/versions/{version}/documents/{name}`\n .replace(`{${\"application_id\"}}`, encodeURIComponent(String(applicationId)))\n .replace(`{${\"version\"}}`, encodeURIComponent(String(version)))\n .replace(`{${\"name\"}}`, encodeURIComponent(String(name)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * 307 redirect to a short-lived GCS signed URL for streaming document content. Unlike ``/file``, no ``Content-Disposition`` override is set — GCS serves the object body with its stored ``Content-Type``. Intended for programmatic clients that follow redirects and consume the content directly. Response carries ``Cache-Control: no-store``.\n * @summary Stream version document content (programmatic)\n * @param {string} applicationId \n * @param {string} version \n * @param {string} name \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getVersionDocumentContent: async (applicationId: string, version: string, name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'applicationId' is not null or undefined\n assertParamExists('getVersionDocumentContent', 'applicationId', applicationId)\n // verify required parameter 'version' is not null or undefined\n assertParamExists('getVersionDocumentContent', 'version', version)\n // verify required parameter 'name' is not null or undefined\n assertParamExists('getVersionDocumentContent', 'name', name)\n const localVarPath = `/v1/applications/{application_id}/versions/{version}/documents/{name}/content`\n .replace(`{${\"application_id\"}}`, encodeURIComponent(String(applicationId)))\n .replace(`{${\"version\"}}`, encodeURIComponent(String(version)))\n .replace(`{${\"name\"}}`, encodeURIComponent(String(name)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * 307 redirect to a short-lived GCS signed URL for downloading a document. The signed URL includes ``response-content-disposition=attachment; filename=\\\"<name>\\\"`` so browsers prompt a save-as dialog rather than rendering inline. Response carries ``Cache-Control: no-store``.\n * @summary Download version document (browser)\n * @param {string} applicationId \n * @param {string} version \n * @param {string} name \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getVersionDocumentFile: async (applicationId: string, version: string, name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'applicationId' is not null or undefined\n assertParamExists('getVersionDocumentFile', 'applicationId', applicationId)\n // verify required parameter 'version' is not null or undefined\n assertParamExists('getVersionDocumentFile', 'version', version)\n // verify required parameter 'name' is not null or undefined\n assertParamExists('getVersionDocumentFile', 'name', name)\n const localVarPath = `/v1/applications/{application_id}/versions/{version}/documents/{name}/file`\n .replace(`{${\"application_id\"}}`, encodeURIComponent(String(applicationId)))\n .replace(`{${\"version\"}}`, encodeURIComponent(String(version)))\n .replace(`{${\"name\"}}`, encodeURIComponent(String(name)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Returns the list of the applications, available to the caller. The application is available if any of the versions of the application is assigned to the caller\\'s organization. The response is paginated and sorted according to the provided parameters.\n * @summary List available applications\n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] Sort the results by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `application_id` - `name` - `description` - `regulatory_classes` **Examples:** - `?sort=application_id` - Sort by application_id ascending - `?sort=-name` - Sort by name descending - `?sort=+description&sort=name` - Sort by description ascending, then name descending\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listApplicationsV1ApplicationsGet: async (page?: number, pageSize?: number, sort?: Array<string> | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/applications`;\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n if (page !== undefined) {\n localVarQueryParameter['page'] = page;\n }\n\n if (pageSize !== undefined) {\n localVarQueryParameter['page-size'] = pageSize;\n }\n\n if (sort) {\n localVarQueryParameter['sort'] = sort;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List grants. Org admins see all grants for all resources in their organization. Regular users see grants for all resources they submitted.\n * @summary List Grants\n * @param {ResourceType | null} [resourceType] \n * @param {string | null} [resourceId] \n * @param {SubjectType | null} [subjectType] \n * @param {string | null} [subjectId] \n * @param {Array<GrantRelation> | null} [relation] Filter grants by relation type. Can be specified multiple times.\n * @param {boolean | null} [revoked] \n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] Sort the results by one or more fields. Use `+` for ascending and `-` for descending order.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listGrantsV1AccessGrantsGet: async (resourceType?: ResourceType | null, resourceId?: string | null, subjectType?: SubjectType | null, subjectId?: string | null, relation?: Array<GrantRelation> | null, revoked?: boolean | null, page?: number, pageSize?: number, sort?: Array<string> | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/access/grants`;\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n if (resourceType !== undefined) {\n localVarQueryParameter['resource_type'] = resourceType;\n }\n\n if (resourceId !== undefined) {\n localVarQueryParameter['resource_id'] = resourceId;\n }\n\n if (subjectType !== undefined) {\n localVarQueryParameter['subject_type'] = subjectType;\n }\n\n if (subjectId !== undefined) {\n localVarQueryParameter['subject_id'] = subjectId;\n }\n\n if (relation) {\n localVarQueryParameter['relation'] = relation;\n }\n\n if (revoked !== undefined) {\n localVarQueryParameter['revoked'] = revoked;\n }\n\n if (page !== undefined) {\n localVarQueryParameter['page'] = page;\n }\n\n if (pageSize !== undefined) {\n localVarQueryParameter['page_size'] = pageSize;\n }\n\n if (sort) {\n localVarQueryParameter['sort'] = sort;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List items in a run with filtering, sorting, and pagination capabilities. Returns paginated items within a specific run. Results can be filtered by `item_id`, `external_ids`, `custom_metadata`, `terminated_at`, and `termination_reason` using JSONPath expressions. ## JSONPath Metadata Filtering Use PostgreSQL JSONPath expressions to filter items using their custom_metadata. ### Examples: - **Field existence**: `$.case_id` - Results that have a case_id field defined - **Exact value match**: `$.priority ? (@ == \\\"high\\\")` - Results with high priority - **Numeric comparison**: `$.confidence_score ? (@ > 0.95)` - Results with high confidence - **Array operations**: `$.flags[*] ? (@ == \\\"reviewed\\\")` - Results flagged as reviewed - **Complex conditions**: `$.metrics ? (@.accuracy > 0.9 && @.recall > 0.8)` - Results meeting performance thresholds ## Notes - JSONPath expressions are evaluated using PostgreSQL\\'s `@?` operator - The `$.` prefix is automatically added to root-level field references if missing - String values in conditions must be enclosed in double quotes - Use `&&` for AND operations and `||` for OR operations\n * @summary List Run Items\n * @param {string} runId Run id, returned by `POST /v1/runs/` endpoint\n * @param {string | null} [shareToken] Share token for accessing shared runs\n * @param {Array<string> | null} [itemIdIn] Filter for item ids\n * @param {Array<string> | null} [externalIdIn] Filter for items by their external_id from the input payload\n * @param {ItemState | null} [state] Filter items by their state\n * @param {ItemTerminationReason | null} [terminationReason] Filter items by their termination reason. Only applies to TERMINATED items.\n * @param {string | null} [customMetadata] JSONPath expression to filter items by their custom_metadata\n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] Sort the items by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `item_id` - `external_id` - `custom_metadata` - `terminated_at` - `termination_reason` **Examples:** - `?sort=item_id` - Sort by id of the item (ascending) - `?sort=-external_id` - Sort by external ID (descending) - `?sort=custom_metadata&sort=-external_id` - Sort by metadata, then by external ID (descending)\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listRunItemsV1RunsRunIdItemsGet: async (runId: string, shareToken?: string | null, itemIdIn?: Array<string> | null, externalIdIn?: Array<string> | null, state?: ItemState | null, terminationReason?: ItemTerminationReason | null, customMetadata?: string | null, page?: number, pageSize?: number, sort?: Array<string> | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runId' is not null or undefined\n assertParamExists('listRunItemsV1RunsRunIdItemsGet', 'runId', runId)\n const localVarPath = `/v1/runs/{run_id}/items`\n .replace(`{${\"run_id\"}}`, encodeURIComponent(String(runId)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n if (shareToken !== undefined) {\n localVarQueryParameter['share_token'] = shareToken;\n }\n\n if (itemIdIn) {\n localVarQueryParameter['item_id__in'] = itemIdIn;\n }\n\n if (externalIdIn) {\n localVarQueryParameter['external_id__in'] = externalIdIn;\n }\n\n if (state !== undefined) {\n localVarQueryParameter['state'] = state;\n }\n\n if (terminationReason !== undefined) {\n localVarQueryParameter['termination_reason'] = terminationReason;\n }\n\n if (customMetadata !== undefined) {\n localVarQueryParameter['custom_metadata'] = customMetadata;\n }\n\n if (page !== undefined) {\n localVarQueryParameter['page'] = page;\n }\n\n if (pageSize !== undefined) {\n localVarQueryParameter['page_size'] = pageSize;\n }\n\n if (sort) {\n localVarQueryParameter['sort'] = sort;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List runs with filtering, sorting, and pagination capabilities. Returns paginated runs that were submitted by the user.\n * @summary List Runs\n * @param {string | null} [applicationId] Optional application ID filter\n * @param {string | null} [applicationVersion] Optional Version Name\n * @param {string | null} [externalId] Optionally filter runs by items with this external ID\n * @param {string | null} [customMetadata] Use PostgreSQL JSONPath expressions to filter runs by their custom_metadata. #### URL Encoding Required **Important**: JSONPath expressions contain special characters that must be URL-encoded when used in query parameters. Most HTTP clients handle this automatically, but when constructing URLs manually, please ensure proper encoding. #### Examples (Clear Format): - **Field existence**: `$.study` - Runs that have a study field defined - **Exact value match**: `$.study ? (@ == \\"high\\")` - Runs with specific study value - **Numeric comparison**: `$.confidence_score ? (@ > 0.75)` - Runs with confidence score greater than 0.75 - **Array operations**: `$.tags[*] ? (@ == \\"draft\\")` - Runs with tags array containing \\"draft\\" - **Complex conditions**: `$.resources ? (@.gpu_count > 2 && @.memory_gb >= 16)` - Runs with high resource requirements #### Examples (URL-Encoded Format): - **Field existence**: `%24.study` - **Exact value match**: `%24.study%20%3F%20(%40%20%3D%3D%20%22high%22)` - **Numeric comparison**: `%24.confidence_score%20%3F%20(%40%20%3E%200.75)` - **Array operations**: `%24.tags%5B*%5D%20%3F%20(%40%20%3D%3D%20%22draft%22)` - **Complex conditions**: `%24.resources%20%3F%20(%40.gpu_count%20%3E%202%20%26%26%20%40.memory_gb%20%3E%3D%2016)` #### Notes - JSONPath expressions are evaluated using PostgreSQL\\'s `@?` operator - The `$.` prefix is automatically added to root-level field references if missing - String values in conditions must be enclosed in double quotes - Use `&&` for AND operations and `||` for OR operations - Regular expressions use `like_regex` with standard regex syntax - **Please remember to URL-encode the entire JSONPath expression when making HTTP requests** \n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {string | null} [submittedBy] Filter runs by the user who submitted them. Use the special value `me` to return only runs submitted by the current user.\n * @param {string | null} [organizationId] Filter runs by the organization of the submitter. Use the special value `my_org` to filter by the current user\\'s organization.\n * @param {string | null} [forOrganization] Filter runs by organization ID. Available for superadmins (any org) and admins (own org only). When provided, returns all runs for the specified organization instead of only the caller\\'s own runs.\n * @param {Array<string> | null} [sort] Sort the results by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `run_id` - `application_id` - `version_number` - `custom_metadata` - `submitted_at` - `submitted_by` - `terminated_at` - `termination_reason` **Examples:** - `?sort=submitted_at` - Sort by creation time (ascending) - `?sort=-submitted_at` - Sort by creation time (descending) - `?sort=state&sort=-submitted_at` - Sort by state, then by time (descending) \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listRunsV1RunsGet: async (applicationId?: string | null, applicationVersion?: string | null, externalId?: string | null, customMetadata?: string | null, page?: number, pageSize?: number, submittedBy?: string | null, organizationId?: string | null, forOrganization?: string | null, sort?: Array<string> | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/runs`;\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n if (applicationId !== undefined) {\n localVarQueryParameter['application_id'] = applicationId;\n }\n\n if (applicationVersion !== undefined) {\n localVarQueryParameter['application_version'] = applicationVersion;\n }\n\n if (externalId !== undefined) {\n localVarQueryParameter['external_id'] = externalId;\n }\n\n if (customMetadata !== undefined) {\n localVarQueryParameter['custom_metadata'] = customMetadata;\n }\n\n if (page !== undefined) {\n localVarQueryParameter['page'] = page;\n }\n\n if (pageSize !== undefined) {\n localVarQueryParameter['page_size'] = pageSize;\n }\n\n if (submittedBy !== undefined) {\n localVarQueryParameter['submitted_by'] = submittedBy;\n }\n\n if (organizationId !== undefined) {\n localVarQueryParameter['organization_id'] = organizationId;\n }\n\n if (forOrganization !== undefined) {\n localVarQueryParameter['for_organization'] = forOrganization;\n }\n\n if (sort) {\n localVarQueryParameter['sort'] = sort;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List share tokens. Service and Superadmin see all tokens; other users see only their own.\n * @summary List Share Tokens\n * @param {string | null} [runId] Filter by run ID\n * @param {string | null} [createdBy] Filter by share token creator\n * @param {boolean | null} [revoked] \n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] Sort the results by one or more fields. Use `+` for ascending and `-` for descending order.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listShareTokensV1AccessShareTokensGet: async (runId?: string | null, createdBy?: string | null, revoked?: boolean | null, page?: number, pageSize?: number, sort?: Array<string> | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/v1/access/share-tokens`;\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n if (runId !== undefined) {\n localVarQueryParameter['run_id'] = runId;\n }\n\n if (createdBy !== undefined) {\n localVarQueryParameter['created_by'] = createdBy;\n }\n\n if (revoked !== undefined) {\n localVarQueryParameter['revoked'] = revoked;\n }\n\n if (page !== undefined) {\n localVarQueryParameter['page'] = page;\n }\n\n if (pageSize !== undefined) {\n localVarQueryParameter['page_size'] = pageSize;\n }\n\n if (sort) {\n localVarQueryParameter['sort'] = sort;\n }\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * List public documents attached to an application version. Returns only documents with ``visibility=public`` and ``status=uploaded``.\n * @summary List version documents\n * @param {string} applicationId \n * @param {string} version \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listVersionDocuments: async (applicationId: string, version: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'applicationId' is not null or undefined\n assertParamExists('listVersionDocuments', 'applicationId', applicationId)\n // verify required parameter 'version' is not null or undefined\n assertParamExists('listVersionDocuments', 'version', version)\n const localVarPath = `/v1/applications/{application_id}/versions/{version}/documents`\n .replace(`{${\"application_id\"}}`, encodeURIComponent(String(applicationId)))\n .replace(`{${\"version\"}}`, encodeURIComponent(String(version)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Update the custom metadata of the item with the specified `external_id`, belonging to the specified run. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for individual items via `GET /v1/runs/{run_id}/items/{external_id}`, and for all items of a run via `GET /v1/runs/{run_id}/items`.\n * @summary Put Item Custom Metadata By Run\n * @param {string} runId The run id, returned by `POST /runs/` endpoint\n * @param {string} externalId The `external_id` that was defined for the item by the customer that triggered the run.\n * @param {CustomMetadataUpdateRequest} customMetadataUpdateRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut: async (runId: string, externalId: string, customMetadataUpdateRequest: CustomMetadataUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runId' is not null or undefined\n assertParamExists('putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut', 'runId', runId)\n // verify required parameter 'externalId' is not null or undefined\n assertParamExists('putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut', 'externalId', externalId)\n // verify required parameter 'customMetadataUpdateRequest' is not null or undefined\n assertParamExists('putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut', 'customMetadataUpdateRequest', customMetadataUpdateRequest)\n const localVarPath = `/v1/runs/{run_id}/items/{external_id}/custom-metadata`\n .replace(`{${\"run_id\"}}`, encodeURIComponent(String(runId)))\n .replace(`{${\"external_id\"}}`, encodeURIComponent(String(externalId)));\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\n const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(customMetadataUpdateRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Update the custom metadata of a run with the specified `run_id`. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for the run via the `GET /v1/runs/{run_id}` endpoint. **Note on deadlines:** Run deadlines must be set during run creation and cannot be modified afterward. Any deadline changes in custom metadata will be ignored by the system.\n * @summary Put Run Custom Metadata\n * @param {string} runId Run id, returned by `POST /runs/` endpoint\n * @param {CustomMetadataUpdateRequest} customMetadataUpdateRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n putRunCustomMetadataV1RunsRunIdCustomMetadataPut: async (runId: string, customMetadataUpdateRequest: CustomMetadataUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runId' is not null or undefined\n assertParamExists('putRunCustomMetadataV1RunsRunIdCustomMetadataPut', 'runId', runId)\n // verify required parameter 'customMetadataUpdateRequest' is not null or undefined\n assertParamExists('putRunCustomMetadataV1RunsRunIdCustomMetadataPut', 'customMetadataUpdateRequest', customMetadataUpdateRequest)\n const localVarPath = `/v1/runs/{run_id}/custom-metadata`\n .replace(`{${\"run_id\"}}`, encodeURIComponent(String(runId)));\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\n const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n localVarHeaderParameter['Content-Type'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(customMetadataUpdateRequest, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Retrieve details of a specific application by its ID.\n * @summary Read Application By Id\n * @param {string} applicationId \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n readApplicationByIdV1ApplicationsApplicationIdGet: async (applicationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'applicationId' is not null or undefined\n assertParamExists('readApplicationByIdV1ApplicationsApplicationIdGet', 'applicationId', applicationId)\n const localVarPath = `/v1/applications/{application_id}`\n .replace(`{${\"application_id\"}}`, encodeURIComponent(String(applicationId)));\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\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Revoke a grant by its ID. Sets the revoked_at timestamp on the grant.\n * @summary Revoke Grant\n * @param {string} grantId Grant ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n revokeGrantV1AccessGrantsGrantIdDelete: async (grantId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'grantId' is not null or undefined\n assertParamExists('revokeGrantV1AccessGrantsGrantIdDelete', 'grantId', grantId)\n const localVarPath = `/v1/access/grants/{grant_id}`\n .replace(`{${\"grant_id\"}}`, encodeURIComponent(String(grantId)));\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\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Revoke a share token by its ID. Invalidates the credential regardless of any active grants.\n * @summary Revoke Share Token\n * @param {string} shareTokenId Share token ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n revokeShareTokenV1AccessShareTokensShareTokenIdDelete: async (shareTokenId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'shareTokenId' is not null or undefined\n assertParamExists('revokeShareTokenV1AccessShareTokensShareTokenIdDelete', 'shareTokenId', shareTokenId)\n const localVarPath = `/v1/access/share-tokens/{share_token_id}`\n .replace(`{${\"share_token_id\"}}`, encodeURIComponent(String(shareTokenId)));\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\n const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n // authentication OAuth2AuthorizationCodeBearer required\n // oauth required\n await setOAuthToObject(localVarHeaderParameter, \"OAuth2AuthorizationCodeBearer\", [], configuration)\n\n\n \n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * PublicApi - functional programming interface\n * @export\n */\nexport const PublicApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = PublicApiAxiosParamCreator(configuration)\n return {\n /**\n * Get the application version details. Allows caller to retrieve information about application version based on provided application version ID.\n * @summary Application Version Details\n * @param {string} applicationId \n * @param {string} version \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet(applicationId: string, version: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VersionReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet(applicationId, version, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * The run can be canceled by the user who created the run. The execution can be canceled any time while the run is not in the terminated state. The pending items of a canceled run will not be processed and will not add to the cost. When the run is canceled, the already completed items remain available for download.\n * @summary Cancel Run\n * @param {string} runId Run id, returned by `POST /runs/` endpoint\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async cancelRunV1RunsRunIdCancelPost(runId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.cancelRunV1RunsRunIdCancelPost(runId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.cancelRunV1RunsRunIdCancelPost']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Create a grant to share access to a resource with a subject (user or organization).\n * @summary Create Grant\n * @param {GrantCreateRequest} grantCreateRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createGrantV1AccessGrantsPost(grantCreateRequest: GrantCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GrantReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createGrantV1AccessGrantsPost(grantCreateRequest, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.createGrantV1AccessGrantsPost']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * This endpoint initiates a processing run for a selected application and version, and returns a `run_id` for tracking purposes. Slide processing occurs asynchronously, allowing you to retrieve results for individual slides as soon as they complete processing. The system typically processes slides in batches. Below is an example of the required payload for initiating an Atlas H&E TME processing run. ### Payload The payload includes `application_id`, optional `version_number`, and `items` base fields. `application_id` is the unique identifier for the application. `version_number` is the semantic version to use. If not provided, the latest available version will be used. `items` includes the list of the items to process (slides, in case of HETA application). Every item has a set of standard fields defined by the API, plus the custom_metadata, specific to the chosen application. Example payload structure with the comments: ``` { application_id: \\\"he-tme\\\", version_number: \\\"1.0.0-beta\\\", items: [{ \\\"external_id\\\": \\\"slide_1\\\", \\\"custom_metadata\\\": {\\\"project\\\": \\\"sample-study\\\"}, \\\"input_artifacts\\\": [{ \\\"name\\\": \\\"user_slide\\\", \\\"download_url\\\": \\\"https://...\\\", \\\"metadata\\\": { \\\"specimen\\\": { \\\"disease\\\": \\\"LUNG_CANCER\\\", \\\"tissue\\\": \\\"LUNG\\\" }, \\\"staining_method\\\": \\\"H&E\\\", \\\"width_px\\\": 136223, \\\"height_px\\\": 87761, \\\"resolution_mpp\\\": 0.2628238, \\\"media-type\\\":\\\"image/tiff\\\", \\\"checksum_base64_crc32c\\\": \\\"64RKKA==\\\" } }] }] } ``` | Parameter | Description | | :---- | :---- | | `application_id` required | Unique ID for the application | | `version_number` optional | Semantic version of the application. If not provided, the latest available version will be used | | `items` required | List of submitted items i.e. whole slide images (WSIs) with parameters described below. | | `external_id` required | Unique WSI name or ID for easy reference to items, provided by the caller. The `external_id` should be unique across all items of the run. | | `input_artifacts` required | List of provided artifacts for a WSI; at the moment Atlas H&E-TME receives only 1 artifact per slide (the slide itself), but for some other applications this can be a slide and a segmentation map | | `name` required | Type of artifact; Atlas H&E-TME supports only `\\\"input_slide\\\"` | | `download_url` required | Signed URL to the input file in the S3 or GCS; Should be valid for at least 6 days | | `specimen: disease` required | Supported cancer types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `specimen: tissue` required | Supported tissue types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `staining_method` required | WSI stain bio-marker; Atlas H&E-TME supports only `\\\"H&E\\\"` | | `width_px` required | Integer value. Number of pixels of the WSI in the X dimension. | | `height_px` required | Integer value. Number of pixels of the WSI in the Y dimension. | | `resolution_mpp` required | Resolution of WSI in micrometers per pixel; check allowed range in Atlas H&E-TME manual | | `media-type` required | Supported media formats; available values are: image/tiff (for .tiff or .tif WSI), application/dicom (for DICOM ), application/zip (for zipped DICOM), and application/octet-stream (for .svs WSI) | | `checksum_base64_crc32c` required | Base64-encoded big-endian CRC32C checksum of the WSI image | ### Response The endpoint returns the run UUID. After that, the job is scheduled for the execution in the background. To check the status of the run, call `GET v1/runs/{run_id}` endpoint with the returned run UUID. ### Rejection Apart from the authentication, authorization, and malformed input error, the request can be rejected when specific quota limit is exceeded. More details on quotas is described in the documentation\n * @summary Initiate Run\n * @param {RunCreationRequest} runCreationRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createRunV1RunsPost(runCreationRequest: RunCreationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunCreationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createRunV1RunsPost(runCreationRequest, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.createRunV1RunsPost']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Create a share token. The returned share_token value is shown only once and is never stored. Use POST /access/grants with subject_type=share_token to grant access to a resource.\n * @summary Create Share Token\n * @param {ShareTokenCreateRequest} shareTokenCreateRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createShareTokenV1AccessShareTokensPost(shareTokenCreateRequest: ShareTokenCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShareTokenCreateResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createShareTokenV1AccessShareTokensPost(shareTokenCreateRequest, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.createShareTokenV1AccessShareTokensPost']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * This endpoint allows the caller to explicitly delete artifacts generated by a run. It can only be invoked when the run has reached a final state, i.e. `PROCESSED`, `CANCELED_SYSTEM`, or `CANCELED_USER`. Note that by default, all artifacts are automatically deleted 30 days after the run finishes, regardless of whether the caller explicitly requests such deletion.\n * @summary Delete Run Items\n * @param {string} runId Run id, returned by `POST /runs/` endpoint\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async deleteRunItemsV1RunsRunIdArtifactsDelete(runId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRunItemsV1RunsRunIdArtifactsDelete(runId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.deleteRunItemsV1RunsRunIdArtifactsDelete']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Download the artifact file with the specified artifact_id, belonging to the specified run. The artifact_is is returned by the `GET /v1/runs/{run_id}/items` endpoint as part of the item results, and can also be retrieved via `GET /v1/runs/{run_id}/items/{external_id}`. The endpoint may return a redirect response with a presigned URL to download the artifact file from the storage bucket. The presigned URL is valid for a limited time, so it should be used immediately after receiving the response.\n * @summary Get Artifact Url\n * @param {string} runId Run id, returned by `POST /runs/` endpoint\n * @param {string} artifactId The artifact id to download\n * @param {string | null} [shareToken] Share token for accessing shared runs\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet(runId: string, artifactId: string, shareToken?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet(runId, artifactId, shareToken, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Get a grant by its ID.\n * @summary Get Grant\n * @param {string} grantId Grant ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getGrantV1AccessGrantsGrantIdGet(grantId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GrantReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getGrantV1AccessGrantsGrantIdGet(grantId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getGrantV1AccessGrantsGrantIdGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Retrieve details of a specific item (slide) by its external ID and the run ID.\n * @summary Get Item By Run\n * @param {string} runId The run id, returned by `POST /runs/` endpoint\n * @param {string} externalId The `external_id` that was defined for the item by the customer that triggered the run.\n * @param {string | null} [shareToken] Share token for accessing shared runs\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getItemByRunV1RunsRunIdItemsExternalIdGet(runId: string, externalId: string, shareToken?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ItemResultReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getItemByRunV1RunsRunIdItemsExternalIdGet(runId, externalId, shareToken, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getItemByRunV1RunsRunIdItemsExternalIdGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Retrieves your identity details, including name, email, and organization. This is useful for verifying that the request is being made under the correct user profile and organization context, as well as confirming that the expected environment variables are correctly set (in case you are using Python SDK)\n * @summary Get current user\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getMeV1MeGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MeReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getMeV1MeGet(options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getMeV1MeGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * This endpoint allows the caller to retrieve the current status of a run along with other relevant run details. A run becomes available immediately after it is created through the `POST /v1/runs/` endpoint. To download the output results, use `GET /v1/runs/{run_id}/` items to get outputs for all slides. Access to a run is restricted to the user who created it, or users with an active grant or valid share token.\n * @summary Get run details\n * @param {string} runId Run id, returned by `POST /v1/runs/` endpoint\n * @param {string | null} [shareToken] Share token for accessing shared runs\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getRunV1RunsRunIdGet(runId: string, shareToken?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getRunV1RunsRunIdGet(runId, shareToken, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getRunV1RunsRunIdGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Get a share token by its ID.\n * @summary Get Share Token\n * @param {string} shareTokenId Share token ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getShareTokenV1AccessShareTokensShareTokenIdGet(shareTokenId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShareTokenReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getShareTokenV1AccessShareTokensShareTokenIdGet(shareTokenId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getShareTokenV1AccessShareTokensShareTokenIdGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Return metadata for a single public document attached to an application version.\n * @summary Get version document metadata\n * @param {string} applicationId \n * @param {string} version \n * @param {string} name \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getVersionDocument(applicationId: string, version: string, name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VersionDocumentResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getVersionDocument(applicationId, version, name, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getVersionDocument']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * 307 redirect to a short-lived GCS signed URL for streaming document content. Unlike ``/file``, no ``Content-Disposition`` override is set — GCS serves the object body with its stored ``Content-Type``. Intended for programmatic clients that follow redirects and consume the content directly. Response carries ``Cache-Control: no-store``.\n * @summary Stream version document content (programmatic)\n * @param {string} applicationId \n * @param {string} version \n * @param {string} name \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getVersionDocumentContent(applicationId: string, version: string, name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getVersionDocumentContent(applicationId, version, name, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getVersionDocumentContent']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * 307 redirect to a short-lived GCS signed URL for downloading a document. The signed URL includes ``response-content-disposition=attachment; filename=\\\"<name>\\\"`` so browsers prompt a save-as dialog rather than rendering inline. Response carries ``Cache-Control: no-store``.\n * @summary Download version document (browser)\n * @param {string} applicationId \n * @param {string} version \n * @param {string} name \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getVersionDocumentFile(applicationId: string, version: string, name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getVersionDocumentFile(applicationId, version, name, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getVersionDocumentFile']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Returns the list of the applications, available to the caller. The application is available if any of the versions of the application is assigned to the caller\\'s organization. The response is paginated and sorted according to the provided parameters.\n * @summary List available applications\n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] Sort the results by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `application_id` - `name` - `description` - `regulatory_classes` **Examples:** - `?sort=application_id` - Sort by application_id ascending - `?sort=-name` - Sort by name descending - `?sort=+description&sort=name` - Sort by description ascending, then name descending\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listApplicationsV1ApplicationsGet(page?: number, pageSize?: number, sort?: Array<string> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApplicationReadShortResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listApplicationsV1ApplicationsGet(page, pageSize, sort, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.listApplicationsV1ApplicationsGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * List grants. Org admins see all grants for all resources in their organization. Regular users see grants for all resources they submitted.\n * @summary List Grants\n * @param {ResourceType | null} [resourceType] \n * @param {string | null} [resourceId] \n * @param {SubjectType | null} [subjectType] \n * @param {string | null} [subjectId] \n * @param {Array<GrantRelation> | null} [relation] Filter grants by relation type. Can be specified multiple times.\n * @param {boolean | null} [revoked] \n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] Sort the results by one or more fields. Use `+` for ascending and `-` for descending order.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listGrantsV1AccessGrantsGet(resourceType?: ResourceType | null, resourceId?: string | null, subjectType?: SubjectType | null, subjectId?: string | null, relation?: Array<GrantRelation> | null, revoked?: boolean | null, page?: number, pageSize?: number, sort?: Array<string> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GrantReadResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listGrantsV1AccessGrantsGet(resourceType, resourceId, subjectType, subjectId, relation, revoked, page, pageSize, sort, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.listGrantsV1AccessGrantsGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * List items in a run with filtering, sorting, and pagination capabilities. Returns paginated items within a specific run. Results can be filtered by `item_id`, `external_ids`, `custom_metadata`, `terminated_at`, and `termination_reason` using JSONPath expressions. ## JSONPath Metadata Filtering Use PostgreSQL JSONPath expressions to filter items using their custom_metadata. ### Examples: - **Field existence**: `$.case_id` - Results that have a case_id field defined - **Exact value match**: `$.priority ? (@ == \\\"high\\\")` - Results with high priority - **Numeric comparison**: `$.confidence_score ? (@ > 0.95)` - Results with high confidence - **Array operations**: `$.flags[*] ? (@ == \\\"reviewed\\\")` - Results flagged as reviewed - **Complex conditions**: `$.metrics ? (@.accuracy > 0.9 && @.recall > 0.8)` - Results meeting performance thresholds ## Notes - JSONPath expressions are evaluated using PostgreSQL\\'s `@?` operator - The `$.` prefix is automatically added to root-level field references if missing - String values in conditions must be enclosed in double quotes - Use `&&` for AND operations and `||` for OR operations\n * @summary List Run Items\n * @param {string} runId Run id, returned by `POST /v1/runs/` endpoint\n * @param {string | null} [shareToken] Share token for accessing shared runs\n * @param {Array<string> | null} [itemIdIn] Filter for item ids\n * @param {Array<string> | null} [externalIdIn] Filter for items by their external_id from the input payload\n * @param {ItemState | null} [state] Filter items by their state\n * @param {ItemTerminationReason | null} [terminationReason] Filter items by their termination reason. Only applies to TERMINATED items.\n * @param {string | null} [customMetadata] JSONPath expression to filter items by their custom_metadata\n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] Sort the items by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `item_id` - `external_id` - `custom_metadata` - `terminated_at` - `termination_reason` **Examples:** - `?sort=item_id` - Sort by id of the item (ascending) - `?sort=-external_id` - Sort by external ID (descending) - `?sort=custom_metadata&sort=-external_id` - Sort by metadata, then by external ID (descending)\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listRunItemsV1RunsRunIdItemsGet(runId: string, shareToken?: string | null, itemIdIn?: Array<string> | null, externalIdIn?: Array<string> | null, state?: ItemState | null, terminationReason?: ItemTerminationReason | null, customMetadata?: string | null, page?: number, pageSize?: number, sort?: Array<string> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ItemResultReadResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listRunItemsV1RunsRunIdItemsGet(runId, shareToken, itemIdIn, externalIdIn, state, terminationReason, customMetadata, page, pageSize, sort, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.listRunItemsV1RunsRunIdItemsGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * List runs with filtering, sorting, and pagination capabilities. Returns paginated runs that were submitted by the user.\n * @summary List Runs\n * @param {string | null} [applicationId] Optional application ID filter\n * @param {string | null} [applicationVersion] Optional Version Name\n * @param {string | null} [externalId] Optionally filter runs by items with this external ID\n * @param {string | null} [customMetadata] Use PostgreSQL JSONPath expressions to filter runs by their custom_metadata. #### URL Encoding Required **Important**: JSONPath expressions contain special characters that must be URL-encoded when used in query parameters. Most HTTP clients handle this automatically, but when constructing URLs manually, please ensure proper encoding. #### Examples (Clear Format): - **Field existence**: `$.study` - Runs that have a study field defined - **Exact value match**: `$.study ? (@ == \\"high\\")` - Runs with specific study value - **Numeric comparison**: `$.confidence_score ? (@ > 0.75)` - Runs with confidence score greater than 0.75 - **Array operations**: `$.tags[*] ? (@ == \\"draft\\")` - Runs with tags array containing \\"draft\\" - **Complex conditions**: `$.resources ? (@.gpu_count > 2 && @.memory_gb >= 16)` - Runs with high resource requirements #### Examples (URL-Encoded Format): - **Field existence**: `%24.study` - **Exact value match**: `%24.study%20%3F%20(%40%20%3D%3D%20%22high%22)` - **Numeric comparison**: `%24.confidence_score%20%3F%20(%40%20%3E%200.75)` - **Array operations**: `%24.tags%5B*%5D%20%3F%20(%40%20%3D%3D%20%22draft%22)` - **Complex conditions**: `%24.resources%20%3F%20(%40.gpu_count%20%3E%202%20%26%26%20%40.memory_gb%20%3E%3D%2016)` #### Notes - JSONPath expressions are evaluated using PostgreSQL\\'s `@?` operator - The `$.` prefix is automatically added to root-level field references if missing - String values in conditions must be enclosed in double quotes - Use `&&` for AND operations and `||` for OR operations - Regular expressions use `like_regex` with standard regex syntax - **Please remember to URL-encode the entire JSONPath expression when making HTTP requests** \n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {string | null} [submittedBy] Filter runs by the user who submitted them. Use the special value `me` to return only runs submitted by the current user.\n * @param {string | null} [organizationId] Filter runs by the organization of the submitter. Use the special value `my_org` to filter by the current user\\'s organization.\n * @param {string | null} [forOrganization] Filter runs by organization ID. Available for superadmins (any org) and admins (own org only). When provided, returns all runs for the specified organization instead of only the caller\\'s own runs.\n * @param {Array<string> | null} [sort] Sort the results by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `run_id` - `application_id` - `version_number` - `custom_metadata` - `submitted_at` - `submitted_by` - `terminated_at` - `termination_reason` **Examples:** - `?sort=submitted_at` - Sort by creation time (ascending) - `?sort=-submitted_at` - Sort by creation time (descending) - `?sort=state&sort=-submitted_at` - Sort by state, then by time (descending) \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listRunsV1RunsGet(applicationId?: string | null, applicationVersion?: string | null, externalId?: string | null, customMetadata?: string | null, page?: number, pageSize?: number, submittedBy?: string | null, organizationId?: string | null, forOrganization?: string | null, sort?: Array<string> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RunReadResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listRunsV1RunsGet(applicationId, applicationVersion, externalId, customMetadata, page, pageSize, submittedBy, organizationId, forOrganization, sort, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.listRunsV1RunsGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * List share tokens. Service and Superadmin see all tokens; other users see only their own.\n * @summary List Share Tokens\n * @param {string | null} [runId] Filter by run ID\n * @param {string | null} [createdBy] Filter by share token creator\n * @param {boolean | null} [revoked] \n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] Sort the results by one or more fields. Use `+` for ascending and `-` for descending order.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listShareTokensV1AccessShareTokensGet(runId?: string | null, createdBy?: string | null, revoked?: boolean | null, page?: number, pageSize?: number, sort?: Array<string> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ShareTokenReadResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listShareTokensV1AccessShareTokensGet(runId, createdBy, revoked, page, pageSize, sort, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.listShareTokensV1AccessShareTokensGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * List public documents attached to an application version. Returns only documents with ``visibility=public`` and ``status=uploaded``.\n * @summary List version documents\n * @param {string} applicationId \n * @param {string} version \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listVersionDocuments(applicationId: string, version: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VersionDocumentResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listVersionDocuments(applicationId, version, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.listVersionDocuments']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Update the custom metadata of the item with the specified `external_id`, belonging to the specified run. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for individual items via `GET /v1/runs/{run_id}/items/{external_id}`, and for all items of a run via `GET /v1/runs/{run_id}/items`.\n * @summary Put Item Custom Metadata By Run\n * @param {string} runId The run id, returned by `POST /runs/` endpoint\n * @param {string} externalId The `external_id` that was defined for the item by the customer that triggered the run.\n * @param {CustomMetadataUpdateRequest} customMetadataUpdateRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut(runId: string, externalId: string, customMetadataUpdateRequest: CustomMetadataUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomMetadataUpdateResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut(runId, externalId, customMetadataUpdateRequest, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Update the custom metadata of a run with the specified `run_id`. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for the run via the `GET /v1/runs/{run_id}` endpoint. **Note on deadlines:** Run deadlines must be set during run creation and cannot be modified afterward. Any deadline changes in custom metadata will be ignored by the system.\n * @summary Put Run Custom Metadata\n * @param {string} runId Run id, returned by `POST /runs/` endpoint\n * @param {CustomMetadataUpdateRequest} customMetadataUpdateRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async putRunCustomMetadataV1RunsRunIdCustomMetadataPut(runId: string, customMetadataUpdateRequest: CustomMetadataUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomMetadataUpdateResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.putRunCustomMetadataV1RunsRunIdCustomMetadataPut(runId, customMetadataUpdateRequest, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.putRunCustomMetadataV1RunsRunIdCustomMetadataPut']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Retrieve details of a specific application by its ID.\n * @summary Read Application By Id\n * @param {string} applicationId \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async readApplicationByIdV1ApplicationsApplicationIdGet(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApplicationReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.readApplicationByIdV1ApplicationsApplicationIdGet(applicationId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.readApplicationByIdV1ApplicationsApplicationIdGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Revoke a grant by its ID. Sets the revoked_at timestamp on the grant.\n * @summary Revoke Grant\n * @param {string} grantId Grant ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async revokeGrantV1AccessGrantsGrantIdDelete(grantId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GrantReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.revokeGrantV1AccessGrantsGrantIdDelete(grantId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.revokeGrantV1AccessGrantsGrantIdDelete']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Revoke a share token by its ID. Invalidates the credential regardless of any active grants.\n * @summary Revoke Share Token\n * @param {string} shareTokenId Share token ID\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async revokeShareTokenV1AccessShareTokensShareTokenIdDelete(shareTokenId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShareTokenReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.revokeShareTokenV1AccessShareTokensShareTokenIdDelete(shareTokenId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.revokeShareTokenV1AccessShareTokensShareTokenIdDelete']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * PublicApi - factory interface\n * @export\n */\nexport const PublicApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = PublicApiFp(configuration)\n return {\n /**\n * Get the application version details. Allows caller to retrieve information about application version based on provided application version ID.\n * @summary Application Version Details\n * @param {PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet(requestParameters: PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<VersionReadResponse> {\n return localVarFp.applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet(requestParameters.applicationId, requestParameters.version, options).then((request) => request(axios, basePath));\n },\n /**\n * The run can be canceled by the user who created the run. The execution can be canceled any time while the run is not in the terminated state. The pending items of a canceled run will not be processed and will not add to the cost. When the run is canceled, the already completed items remain available for download.\n * @summary Cancel Run\n * @param {PublicApiCancelRunV1RunsRunIdCancelPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n cancelRunV1RunsRunIdCancelPost(requestParameters: PublicApiCancelRunV1RunsRunIdCancelPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<any> {\n return localVarFp.cancelRunV1RunsRunIdCancelPost(requestParameters.runId, options).then((request) => request(axios, basePath));\n },\n /**\n * Create a grant to share access to a resource with a subject (user or organization).\n * @summary Create Grant\n * @param {PublicApiCreateGrantV1AccessGrantsPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createGrantV1AccessGrantsPost(requestParameters: PublicApiCreateGrantV1AccessGrantsPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<GrantReadResponse> {\n return localVarFp.createGrantV1AccessGrantsPost(requestParameters.grantCreateRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * This endpoint initiates a processing run for a selected application and version, and returns a `run_id` for tracking purposes. Slide processing occurs asynchronously, allowing you to retrieve results for individual slides as soon as they complete processing. The system typically processes slides in batches. Below is an example of the required payload for initiating an Atlas H&E TME processing run. ### Payload The payload includes `application_id`, optional `version_number`, and `items` base fields. `application_id` is the unique identifier for the application. `version_number` is the semantic version to use. If not provided, the latest available version will be used. `items` includes the list of the items to process (slides, in case of HETA application). Every item has a set of standard fields defined by the API, plus the custom_metadata, specific to the chosen application. Example payload structure with the comments: ``` { application_id: \\\"he-tme\\\", version_number: \\\"1.0.0-beta\\\", items: [{ \\\"external_id\\\": \\\"slide_1\\\", \\\"custom_metadata\\\": {\\\"project\\\": \\\"sample-study\\\"}, \\\"input_artifacts\\\": [{ \\\"name\\\": \\\"user_slide\\\", \\\"download_url\\\": \\\"https://...\\\", \\\"metadata\\\": { \\\"specimen\\\": { \\\"disease\\\": \\\"LUNG_CANCER\\\", \\\"tissue\\\": \\\"LUNG\\\" }, \\\"staining_method\\\": \\\"H&E\\\", \\\"width_px\\\": 136223, \\\"height_px\\\": 87761, \\\"resolution_mpp\\\": 0.2628238, \\\"media-type\\\":\\\"image/tiff\\\", \\\"checksum_base64_crc32c\\\": \\\"64RKKA==\\\" } }] }] } ``` | Parameter | Description | | :---- | :---- | | `application_id` required | Unique ID for the application | | `version_number` optional | Semantic version of the application. If not provided, the latest available version will be used | | `items` required | List of submitted items i.e. whole slide images (WSIs) with parameters described below. | | `external_id` required | Unique WSI name or ID for easy reference to items, provided by the caller. The `external_id` should be unique across all items of the run. | | `input_artifacts` required | List of provided artifacts for a WSI; at the moment Atlas H&E-TME receives only 1 artifact per slide (the slide itself), but for some other applications this can be a slide and a segmentation map | | `name` required | Type of artifact; Atlas H&E-TME supports only `\\\"input_slide\\\"` | | `download_url` required | Signed URL to the input file in the S3 or GCS; Should be valid for at least 6 days | | `specimen: disease` required | Supported cancer types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `specimen: tissue` required | Supported tissue types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `staining_method` required | WSI stain bio-marker; Atlas H&E-TME supports only `\\\"H&E\\\"` | | `width_px` required | Integer value. Number of pixels of the WSI in the X dimension. | | `height_px` required | Integer value. Number of pixels of the WSI in the Y dimension. | | `resolution_mpp` required | Resolution of WSI in micrometers per pixel; check allowed range in Atlas H&E-TME manual | | `media-type` required | Supported media formats; available values are: image/tiff (for .tiff or .tif WSI), application/dicom (for DICOM ), application/zip (for zipped DICOM), and application/octet-stream (for .svs WSI) | | `checksum_base64_crc32c` required | Base64-encoded big-endian CRC32C checksum of the WSI image | ### Response The endpoint returns the run UUID. After that, the job is scheduled for the execution in the background. To check the status of the run, call `GET v1/runs/{run_id}` endpoint with the returned run UUID. ### Rejection Apart from the authentication, authorization, and malformed input error, the request can be rejected when specific quota limit is exceeded. More details on quotas is described in the documentation\n * @summary Initiate Run\n * @param {PublicApiCreateRunV1RunsPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createRunV1RunsPost(requestParameters: PublicApiCreateRunV1RunsPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<RunCreationResponse> {\n return localVarFp.createRunV1RunsPost(requestParameters.runCreationRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * Create a share token. The returned share_token value is shown only once and is never stored. Use POST /access/grants with subject_type=share_token to grant access to a resource.\n * @summary Create Share Token\n * @param {PublicApiCreateShareTokenV1AccessShareTokensPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createShareTokenV1AccessShareTokensPost(requestParameters: PublicApiCreateShareTokenV1AccessShareTokensPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShareTokenCreateResponse> {\n return localVarFp.createShareTokenV1AccessShareTokensPost(requestParameters.shareTokenCreateRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * This endpoint allows the caller to explicitly delete artifacts generated by a run. It can only be invoked when the run has reached a final state, i.e. `PROCESSED`, `CANCELED_SYSTEM`, or `CANCELED_USER`. Note that by default, all artifacts are automatically deleted 30 days after the run finishes, regardless of whether the caller explicitly requests such deletion.\n * @summary Delete Run Items\n * @param {PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteRunItemsV1RunsRunIdArtifactsDelete(requestParameters: PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<any> {\n return localVarFp.deleteRunItemsV1RunsRunIdArtifactsDelete(requestParameters.runId, options).then((request) => request(axios, basePath));\n },\n /**\n * Download the artifact file with the specified artifact_id, belonging to the specified run. The artifact_is is returned by the `GET /v1/runs/{run_id}/items` endpoint as part of the item results, and can also be retrieved via `GET /v1/runs/{run_id}/items/{external_id}`. The endpoint may return a redirect response with a presigned URL to download the artifact file from the storage bucket. The presigned URL is valid for a limited time, so it should be used immediately after receiving the response.\n * @summary Get Artifact Url\n * @param {PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet(requestParameters: PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<any> {\n return localVarFp.getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet(requestParameters.runId, requestParameters.artifactId, requestParameters.shareToken, options).then((request) => request(axios, basePath));\n },\n /**\n * Get a grant by its ID.\n * @summary Get Grant\n * @param {PublicApiGetGrantV1AccessGrantsGrantIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getGrantV1AccessGrantsGrantIdGet(requestParameters: PublicApiGetGrantV1AccessGrantsGrantIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<GrantReadResponse> {\n return localVarFp.getGrantV1AccessGrantsGrantIdGet(requestParameters.grantId, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieve details of a specific item (slide) by its external ID and the run ID.\n * @summary Get Item By Run\n * @param {PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getItemByRunV1RunsRunIdItemsExternalIdGet(requestParameters: PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ItemResultReadResponse> {\n return localVarFp.getItemByRunV1RunsRunIdItemsExternalIdGet(requestParameters.runId, requestParameters.externalId, requestParameters.shareToken, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieves your identity details, including name, email, and organization. This is useful for verifying that the request is being made under the correct user profile and organization context, as well as confirming that the expected environment variables are correctly set (in case you are using Python SDK)\n * @summary Get current user\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getMeV1MeGet(options?: RawAxiosRequestConfig): AxiosPromise<MeReadResponse> {\n return localVarFp.getMeV1MeGet(options).then((request) => request(axios, basePath));\n },\n /**\n * This endpoint allows the caller to retrieve the current status of a run along with other relevant run details. A run becomes available immediately after it is created through the `POST /v1/runs/` endpoint. To download the output results, use `GET /v1/runs/{run_id}/` items to get outputs for all slides. Access to a run is restricted to the user who created it, or users with an active grant or valid share token.\n * @summary Get run details\n * @param {PublicApiGetRunV1RunsRunIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getRunV1RunsRunIdGet(requestParameters: PublicApiGetRunV1RunsRunIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<RunReadResponse> {\n return localVarFp.getRunV1RunsRunIdGet(requestParameters.runId, requestParameters.shareToken, options).then((request) => request(axios, basePath));\n },\n /**\n * Get a share token by its ID.\n * @summary Get Share Token\n * @param {PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getShareTokenV1AccessShareTokensShareTokenIdGet(requestParameters: PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShareTokenReadResponse> {\n return localVarFp.getShareTokenV1AccessShareTokensShareTokenIdGet(requestParameters.shareTokenId, options).then((request) => request(axios, basePath));\n },\n /**\n * Return metadata for a single public document attached to an application version.\n * @summary Get version document metadata\n * @param {PublicApiGetVersionDocumentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getVersionDocument(requestParameters: PublicApiGetVersionDocumentRequest, options?: RawAxiosRequestConfig): AxiosPromise<VersionDocumentResponse> {\n return localVarFp.getVersionDocument(requestParameters.applicationId, requestParameters.version, requestParameters.name, options).then((request) => request(axios, basePath));\n },\n /**\n * 307 redirect to a short-lived GCS signed URL for streaming document content. Unlike ``/file``, no ``Content-Disposition`` override is set — GCS serves the object body with its stored ``Content-Type``. Intended for programmatic clients that follow redirects and consume the content directly. Response carries ``Cache-Control: no-store``.\n * @summary Stream version document content (programmatic)\n * @param {PublicApiGetVersionDocumentContentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getVersionDocumentContent(requestParameters: PublicApiGetVersionDocumentContentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.getVersionDocumentContent(requestParameters.applicationId, requestParameters.version, requestParameters.name, options).then((request) => request(axios, basePath));\n },\n /**\n * 307 redirect to a short-lived GCS signed URL for downloading a document. The signed URL includes ``response-content-disposition=attachment; filename=\\\"<name>\\\"`` so browsers prompt a save-as dialog rather than rendering inline. Response carries ``Cache-Control: no-store``.\n * @summary Download version document (browser)\n * @param {PublicApiGetVersionDocumentFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getVersionDocumentFile(requestParameters: PublicApiGetVersionDocumentFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.getVersionDocumentFile(requestParameters.applicationId, requestParameters.version, requestParameters.name, options).then((request) => request(axios, basePath));\n },\n /**\n * Returns the list of the applications, available to the caller. The application is available if any of the versions of the application is assigned to the caller\\'s organization. The response is paginated and sorted according to the provided parameters.\n * @summary List available applications\n * @param {PublicApiListApplicationsV1ApplicationsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listApplicationsV1ApplicationsGet(requestParameters: PublicApiListApplicationsV1ApplicationsGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApplicationReadShortResponse>> {\n return localVarFp.listApplicationsV1ApplicationsGet(requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(axios, basePath));\n },\n /**\n * List grants. Org admins see all grants for all resources in their organization. Regular users see grants for all resources they submitted.\n * @summary List Grants\n * @param {PublicApiListGrantsV1AccessGrantsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listGrantsV1AccessGrantsGet(requestParameters: PublicApiListGrantsV1AccessGrantsGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<GrantReadResponse>> {\n return localVarFp.listGrantsV1AccessGrantsGet(requestParameters.resourceType, requestParameters.resourceId, requestParameters.subjectType, requestParameters.subjectId, requestParameters.relation, requestParameters.revoked, requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(axios, basePath));\n },\n /**\n * List items in a run with filtering, sorting, and pagination capabilities. Returns paginated items within a specific run. Results can be filtered by `item_id`, `external_ids`, `custom_metadata`, `terminated_at`, and `termination_reason` using JSONPath expressions. ## JSONPath Metadata Filtering Use PostgreSQL JSONPath expressions to filter items using their custom_metadata. ### Examples: - **Field existence**: `$.case_id` - Results that have a case_id field defined - **Exact value match**: `$.priority ? (@ == \\\"high\\\")` - Results with high priority - **Numeric comparison**: `$.confidence_score ? (@ > 0.95)` - Results with high confidence - **Array operations**: `$.flags[*] ? (@ == \\\"reviewed\\\")` - Results flagged as reviewed - **Complex conditions**: `$.metrics ? (@.accuracy > 0.9 && @.recall > 0.8)` - Results meeting performance thresholds ## Notes - JSONPath expressions are evaluated using PostgreSQL\\'s `@?` operator - The `$.` prefix is automatically added to root-level field references if missing - String values in conditions must be enclosed in double quotes - Use `&&` for AND operations and `||` for OR operations\n * @summary List Run Items\n * @param {PublicApiListRunItemsV1RunsRunIdItemsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listRunItemsV1RunsRunIdItemsGet(requestParameters: PublicApiListRunItemsV1RunsRunIdItemsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ItemResultReadResponse>> {\n return localVarFp.listRunItemsV1RunsRunIdItemsGet(requestParameters.runId, requestParameters.shareToken, requestParameters.itemIdIn, requestParameters.externalIdIn, requestParameters.state, requestParameters.terminationReason, requestParameters.customMetadata, requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(axios, basePath));\n },\n /**\n * List runs with filtering, sorting, and pagination capabilities. Returns paginated runs that were submitted by the user.\n * @summary List Runs\n * @param {PublicApiListRunsV1RunsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listRunsV1RunsGet(requestParameters: PublicApiListRunsV1RunsGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<RunReadResponse>> {\n return localVarFp.listRunsV1RunsGet(requestParameters.applicationId, requestParameters.applicationVersion, requestParameters.externalId, requestParameters.customMetadata, requestParameters.page, requestParameters.pageSize, requestParameters.submittedBy, requestParameters.organizationId, requestParameters.forOrganization, requestParameters.sort, options).then((request) => request(axios, basePath));\n },\n /**\n * List share tokens. Service and Superadmin see all tokens; other users see only their own.\n * @summary List Share Tokens\n * @param {PublicApiListShareTokensV1AccessShareTokensGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listShareTokensV1AccessShareTokensGet(requestParameters: PublicApiListShareTokensV1AccessShareTokensGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<ShareTokenReadResponse>> {\n return localVarFp.listShareTokensV1AccessShareTokensGet(requestParameters.runId, requestParameters.createdBy, requestParameters.revoked, requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(axios, basePath));\n },\n /**\n * List public documents attached to an application version. Returns only documents with ``visibility=public`` and ``status=uploaded``.\n * @summary List version documents\n * @param {PublicApiListVersionDocumentsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listVersionDocuments(requestParameters: PublicApiListVersionDocumentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<VersionDocumentResponse>> {\n return localVarFp.listVersionDocuments(requestParameters.applicationId, requestParameters.version, options).then((request) => request(axios, basePath));\n },\n /**\n * Update the custom metadata of the item with the specified `external_id`, belonging to the specified run. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for individual items via `GET /v1/runs/{run_id}/items/{external_id}`, and for all items of a run via `GET /v1/runs/{run_id}/items`.\n * @summary Put Item Custom Metadata By Run\n * @param {PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut(requestParameters: PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomMetadataUpdateResponse> {\n return localVarFp.putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut(requestParameters.runId, requestParameters.externalId, requestParameters.customMetadataUpdateRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * Update the custom metadata of a run with the specified `run_id`. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for the run via the `GET /v1/runs/{run_id}` endpoint. **Note on deadlines:** Run deadlines must be set during run creation and cannot be modified afterward. Any deadline changes in custom metadata will be ignored by the system.\n * @summary Put Run Custom Metadata\n * @param {PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n putRunCustomMetadataV1RunsRunIdCustomMetadataPut(requestParameters: PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomMetadataUpdateResponse> {\n return localVarFp.putRunCustomMetadataV1RunsRunIdCustomMetadataPut(requestParameters.runId, requestParameters.customMetadataUpdateRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * Retrieve details of a specific application by its ID.\n * @summary Read Application By Id\n * @param {PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n readApplicationByIdV1ApplicationsApplicationIdGet(requestParameters: PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApplicationReadResponse> {\n return localVarFp.readApplicationByIdV1ApplicationsApplicationIdGet(requestParameters.applicationId, options).then((request) => request(axios, basePath));\n },\n /**\n * Revoke a grant by its ID. Sets the revoked_at timestamp on the grant.\n * @summary Revoke Grant\n * @param {PublicApiRevokeGrantV1AccessGrantsGrantIdDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n revokeGrantV1AccessGrantsGrantIdDelete(requestParameters: PublicApiRevokeGrantV1AccessGrantsGrantIdDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<GrantReadResponse> {\n return localVarFp.revokeGrantV1AccessGrantsGrantIdDelete(requestParameters.grantId, options).then((request) => request(axios, basePath));\n },\n /**\n * Revoke a share token by its ID. Invalidates the credential regardless of any active grants.\n * @summary Revoke Share Token\n * @param {PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n revokeShareTokenV1AccessShareTokensShareTokenIdDelete(requestParameters: PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShareTokenReadResponse> {\n return localVarFp.revokeShareTokenV1AccessShareTokensShareTokenIdDelete(requestParameters.shareTokenId, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * PublicApi - interface\n * @export\n * @interface PublicApi\n */\nexport interface PublicApiInterface {\n /**\n * Get the application version details. Allows caller to retrieve information about application version based on provided application version ID.\n * @summary Application Version Details\n * @param {PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet(requestParameters: PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<VersionReadResponse>;\n\n /**\n * The run can be canceled by the user who created the run. The execution can be canceled any time while the run is not in the terminated state. The pending items of a canceled run will not be processed and will not add to the cost. When the run is canceled, the already completed items remain available for download.\n * @summary Cancel Run\n * @param {PublicApiCancelRunV1RunsRunIdCancelPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n cancelRunV1RunsRunIdCancelPost(requestParameters: PublicApiCancelRunV1RunsRunIdCancelPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<any>;\n\n /**\n * Create a grant to share access to a resource with a subject (user or organization).\n * @summary Create Grant\n * @param {PublicApiCreateGrantV1AccessGrantsPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n createGrantV1AccessGrantsPost(requestParameters: PublicApiCreateGrantV1AccessGrantsPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<GrantReadResponse>;\n\n /**\n * This endpoint initiates a processing run for a selected application and version, and returns a `run_id` for tracking purposes. Slide processing occurs asynchronously, allowing you to retrieve results for individual slides as soon as they complete processing. The system typically processes slides in batches. Below is an example of the required payload for initiating an Atlas H&E TME processing run. ### Payload The payload includes `application_id`, optional `version_number`, and `items` base fields. `application_id` is the unique identifier for the application. `version_number` is the semantic version to use. If not provided, the latest available version will be used. `items` includes the list of the items to process (slides, in case of HETA application). Every item has a set of standard fields defined by the API, plus the custom_metadata, specific to the chosen application. Example payload structure with the comments: ``` { application_id: \\\"he-tme\\\", version_number: \\\"1.0.0-beta\\\", items: [{ \\\"external_id\\\": \\\"slide_1\\\", \\\"custom_metadata\\\": {\\\"project\\\": \\\"sample-study\\\"}, \\\"input_artifacts\\\": [{ \\\"name\\\": \\\"user_slide\\\", \\\"download_url\\\": \\\"https://...\\\", \\\"metadata\\\": { \\\"specimen\\\": { \\\"disease\\\": \\\"LUNG_CANCER\\\", \\\"tissue\\\": \\\"LUNG\\\" }, \\\"staining_method\\\": \\\"H&E\\\", \\\"width_px\\\": 136223, \\\"height_px\\\": 87761, \\\"resolution_mpp\\\": 0.2628238, \\\"media-type\\\":\\\"image/tiff\\\", \\\"checksum_base64_crc32c\\\": \\\"64RKKA==\\\" } }] }] } ``` | Parameter | Description | | :---- | :---- | | `application_id` required | Unique ID for the application | | `version_number` optional | Semantic version of the application. If not provided, the latest available version will be used | | `items` required | List of submitted items i.e. whole slide images (WSIs) with parameters described below. | | `external_id` required | Unique WSI name or ID for easy reference to items, provided by the caller. The `external_id` should be unique across all items of the run. | | `input_artifacts` required | List of provided artifacts for a WSI; at the moment Atlas H&E-TME receives only 1 artifact per slide (the slide itself), but for some other applications this can be a slide and a segmentation map | | `name` required | Type of artifact; Atlas H&E-TME supports only `\\\"input_slide\\\"` | | `download_url` required | Signed URL to the input file in the S3 or GCS; Should be valid for at least 6 days | | `specimen: disease` required | Supported cancer types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `specimen: tissue` required | Supported tissue types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `staining_method` required | WSI stain bio-marker; Atlas H&E-TME supports only `\\\"H&E\\\"` | | `width_px` required | Integer value. Number of pixels of the WSI in the X dimension. | | `height_px` required | Integer value. Number of pixels of the WSI in the Y dimension. | | `resolution_mpp` required | Resolution of WSI in micrometers per pixel; check allowed range in Atlas H&E-TME manual | | `media-type` required | Supported media formats; available values are: image/tiff (for .tiff or .tif WSI), application/dicom (for DICOM ), application/zip (for zipped DICOM), and application/octet-stream (for .svs WSI) | | `checksum_base64_crc32c` required | Base64-encoded big-endian CRC32C checksum of the WSI image | ### Response The endpoint returns the run UUID. After that, the job is scheduled for the execution in the background. To check the status of the run, call `GET v1/runs/{run_id}` endpoint with the returned run UUID. ### Rejection Apart from the authentication, authorization, and malformed input error, the request can be rejected when specific quota limit is exceeded. More details on quotas is described in the documentation\n * @summary Initiate Run\n * @param {PublicApiCreateRunV1RunsPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n createRunV1RunsPost(requestParameters: PublicApiCreateRunV1RunsPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<RunCreationResponse>;\n\n /**\n * Create a share token. The returned share_token value is shown only once and is never stored. Use POST /access/grants with subject_type=share_token to grant access to a resource.\n * @summary Create Share Token\n * @param {PublicApiCreateShareTokenV1AccessShareTokensPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n createShareTokenV1AccessShareTokensPost(requestParameters: PublicApiCreateShareTokenV1AccessShareTokensPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShareTokenCreateResponse>;\n\n /**\n * This endpoint allows the caller to explicitly delete artifacts generated by a run. It can only be invoked when the run has reached a final state, i.e. `PROCESSED`, `CANCELED_SYSTEM`, or `CANCELED_USER`. Note that by default, all artifacts are automatically deleted 30 days after the run finishes, regardless of whether the caller explicitly requests such deletion.\n * @summary Delete Run Items\n * @param {PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n deleteRunItemsV1RunsRunIdArtifactsDelete(requestParameters: PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<any>;\n\n /**\n * Download the artifact file with the specified artifact_id, belonging to the specified run. The artifact_is is returned by the `GET /v1/runs/{run_id}/items` endpoint as part of the item results, and can also be retrieved via `GET /v1/runs/{run_id}/items/{external_id}`. The endpoint may return a redirect response with a presigned URL to download the artifact file from the storage bucket. The presigned URL is valid for a limited time, so it should be used immediately after receiving the response.\n * @summary Get Artifact Url\n * @param {PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet(requestParameters: PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<any>;\n\n /**\n * Get a grant by its ID.\n * @summary Get Grant\n * @param {PublicApiGetGrantV1AccessGrantsGrantIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getGrantV1AccessGrantsGrantIdGet(requestParameters: PublicApiGetGrantV1AccessGrantsGrantIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<GrantReadResponse>;\n\n /**\n * Retrieve details of a specific item (slide) by its external ID and the run ID.\n * @summary Get Item By Run\n * @param {PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getItemByRunV1RunsRunIdItemsExternalIdGet(requestParameters: PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ItemResultReadResponse>;\n\n /**\n * Retrieves your identity details, including name, email, and organization. This is useful for verifying that the request is being made under the correct user profile and organization context, as well as confirming that the expected environment variables are correctly set (in case you are using Python SDK)\n * @summary Get current user\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getMeV1MeGet(options?: RawAxiosRequestConfig): AxiosPromise<MeReadResponse>;\n\n /**\n * This endpoint allows the caller to retrieve the current status of a run along with other relevant run details. A run becomes available immediately after it is created through the `POST /v1/runs/` endpoint. To download the output results, use `GET /v1/runs/{run_id}/` items to get outputs for all slides. Access to a run is restricted to the user who created it, or users with an active grant or valid share token.\n * @summary Get run details\n * @param {PublicApiGetRunV1RunsRunIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getRunV1RunsRunIdGet(requestParameters: PublicApiGetRunV1RunsRunIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<RunReadResponse>;\n\n /**\n * Get a share token by its ID.\n * @summary Get Share Token\n * @param {PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getShareTokenV1AccessShareTokensShareTokenIdGet(requestParameters: PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShareTokenReadResponse>;\n\n /**\n * Return metadata for a single public document attached to an application version.\n * @summary Get version document metadata\n * @param {PublicApiGetVersionDocumentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getVersionDocument(requestParameters: PublicApiGetVersionDocumentRequest, options?: RawAxiosRequestConfig): AxiosPromise<VersionDocumentResponse>;\n\n /**\n * 307 redirect to a short-lived GCS signed URL for streaming document content. Unlike ``/file``, no ``Content-Disposition`` override is set — GCS serves the object body with its stored ``Content-Type``. Intended for programmatic clients that follow redirects and consume the content directly. Response carries ``Cache-Control: no-store``.\n * @summary Stream version document content (programmatic)\n * @param {PublicApiGetVersionDocumentContentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getVersionDocumentContent(requestParameters: PublicApiGetVersionDocumentContentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;\n\n /**\n * 307 redirect to a short-lived GCS signed URL for downloading a document. The signed URL includes ``response-content-disposition=attachment; filename=\\\"<name>\\\"`` so browsers prompt a save-as dialog rather than rendering inline. Response carries ``Cache-Control: no-store``.\n * @summary Download version document (browser)\n * @param {PublicApiGetVersionDocumentFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getVersionDocumentFile(requestParameters: PublicApiGetVersionDocumentFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;\n\n /**\n * Returns the list of the applications, available to the caller. The application is available if any of the versions of the application is assigned to the caller\\'s organization. The response is paginated and sorted according to the provided parameters.\n * @summary List available applications\n * @param {PublicApiListApplicationsV1ApplicationsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n listApplicationsV1ApplicationsGet(requestParameters?: PublicApiListApplicationsV1ApplicationsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApplicationReadShortResponse>>;\n\n /**\n * List grants. Org admins see all grants for all resources in their organization. Regular users see grants for all resources they submitted.\n * @summary List Grants\n * @param {PublicApiListGrantsV1AccessGrantsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n listGrantsV1AccessGrantsGet(requestParameters?: PublicApiListGrantsV1AccessGrantsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<GrantReadResponse>>;\n\n /**\n * List items in a run with filtering, sorting, and pagination capabilities. Returns paginated items within a specific run. Results can be filtered by `item_id`, `external_ids`, `custom_metadata`, `terminated_at`, and `termination_reason` using JSONPath expressions. ## JSONPath Metadata Filtering Use PostgreSQL JSONPath expressions to filter items using their custom_metadata. ### Examples: - **Field existence**: `$.case_id` - Results that have a case_id field defined - **Exact value match**: `$.priority ? (@ == \\\"high\\\")` - Results with high priority - **Numeric comparison**: `$.confidence_score ? (@ > 0.95)` - Results with high confidence - **Array operations**: `$.flags[*] ? (@ == \\\"reviewed\\\")` - Results flagged as reviewed - **Complex conditions**: `$.metrics ? (@.accuracy > 0.9 && @.recall > 0.8)` - Results meeting performance thresholds ## Notes - JSONPath expressions are evaluated using PostgreSQL\\'s `@?` operator - The `$.` prefix is automatically added to root-level field references if missing - String values in conditions must be enclosed in double quotes - Use `&&` for AND operations and `||` for OR operations\n * @summary List Run Items\n * @param {PublicApiListRunItemsV1RunsRunIdItemsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n listRunItemsV1RunsRunIdItemsGet(requestParameters: PublicApiListRunItemsV1RunsRunIdItemsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ItemResultReadResponse>>;\n\n /**\n * List runs with filtering, sorting, and pagination capabilities. Returns paginated runs that were submitted by the user.\n * @summary List Runs\n * @param {PublicApiListRunsV1RunsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n listRunsV1RunsGet(requestParameters?: PublicApiListRunsV1RunsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<RunReadResponse>>;\n\n /**\n * List share tokens. Service and Superadmin see all tokens; other users see only their own.\n * @summary List Share Tokens\n * @param {PublicApiListShareTokensV1AccessShareTokensGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n listShareTokensV1AccessShareTokensGet(requestParameters?: PublicApiListShareTokensV1AccessShareTokensGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ShareTokenReadResponse>>;\n\n /**\n * List public documents attached to an application version. Returns only documents with ``visibility=public`` and ``status=uploaded``.\n * @summary List version documents\n * @param {PublicApiListVersionDocumentsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n listVersionDocuments(requestParameters: PublicApiListVersionDocumentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<VersionDocumentResponse>>;\n\n /**\n * Update the custom metadata of the item with the specified `external_id`, belonging to the specified run. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for individual items via `GET /v1/runs/{run_id}/items/{external_id}`, and for all items of a run via `GET /v1/runs/{run_id}/items`.\n * @summary Put Item Custom Metadata By Run\n * @param {PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut(requestParameters: PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomMetadataUpdateResponse>;\n\n /**\n * Update the custom metadata of a run with the specified `run_id`. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for the run via the `GET /v1/runs/{run_id}` endpoint. **Note on deadlines:** Run deadlines must be set during run creation and cannot be modified afterward. Any deadline changes in custom metadata will be ignored by the system.\n * @summary Put Run Custom Metadata\n * @param {PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n putRunCustomMetadataV1RunsRunIdCustomMetadataPut(requestParameters: PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomMetadataUpdateResponse>;\n\n /**\n * Retrieve details of a specific application by its ID.\n * @summary Read Application By Id\n * @param {PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n readApplicationByIdV1ApplicationsApplicationIdGet(requestParameters: PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApplicationReadResponse>;\n\n /**\n * Revoke a grant by its ID. Sets the revoked_at timestamp on the grant.\n * @summary Revoke Grant\n * @param {PublicApiRevokeGrantV1AccessGrantsGrantIdDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n revokeGrantV1AccessGrantsGrantIdDelete(requestParameters: PublicApiRevokeGrantV1AccessGrantsGrantIdDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<GrantReadResponse>;\n\n /**\n * Revoke a share token by its ID. Invalidates the credential regardless of any active grants.\n * @summary Revoke Share Token\n * @param {PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n revokeShareTokenV1AccessShareTokensShareTokenIdDelete(requestParameters: PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShareTokenReadResponse>;\n\n}\n\n/**\n * Request parameters for applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet operation in PublicApi.\n * @export\n * @interface PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest\n */\nexport interface PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest {\n /**\n * \n * @type {string}\n * @memberof PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet\n */\n readonly applicationId: string\n\n /**\n * \n * @type {string}\n * @memberof PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet\n */\n readonly version: string\n}\n\n/**\n * Request parameters for cancelRunV1RunsRunIdCancelPost operation in PublicApi.\n * @export\n * @interface PublicApiCancelRunV1RunsRunIdCancelPostRequest\n */\nexport interface PublicApiCancelRunV1RunsRunIdCancelPostRequest {\n /**\n * Run id, returned by `POST /runs/` endpoint\n * @type {string}\n * @memberof PublicApiCancelRunV1RunsRunIdCancelPost\n */\n readonly runId: string\n}\n\n/**\n * Request parameters for createGrantV1AccessGrantsPost operation in PublicApi.\n * @export\n * @interface PublicApiCreateGrantV1AccessGrantsPostRequest\n */\nexport interface PublicApiCreateGrantV1AccessGrantsPostRequest {\n /**\n * \n * @type {GrantCreateRequest}\n * @memberof PublicApiCreateGrantV1AccessGrantsPost\n */\n readonly grantCreateRequest: GrantCreateRequest\n}\n\n/**\n * Request parameters for createRunV1RunsPost operation in PublicApi.\n * @export\n * @interface PublicApiCreateRunV1RunsPostRequest\n */\nexport interface PublicApiCreateRunV1RunsPostRequest {\n /**\n * \n * @type {RunCreationRequest}\n * @memberof PublicApiCreateRunV1RunsPost\n */\n readonly runCreationRequest: RunCreationRequest\n}\n\n/**\n * Request parameters for createShareTokenV1AccessShareTokensPost operation in PublicApi.\n * @export\n * @interface PublicApiCreateShareTokenV1AccessShareTokensPostRequest\n */\nexport interface PublicApiCreateShareTokenV1AccessShareTokensPostRequest {\n /**\n * \n * @type {ShareTokenCreateRequest}\n * @memberof PublicApiCreateShareTokenV1AccessShareTokensPost\n */\n readonly shareTokenCreateRequest: ShareTokenCreateRequest\n}\n\n/**\n * Request parameters for deleteRunItemsV1RunsRunIdArtifactsDelete operation in PublicApi.\n * @export\n * @interface PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest\n */\nexport interface PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest {\n /**\n * Run id, returned by `POST /runs/` endpoint\n * @type {string}\n * @memberof PublicApiDeleteRunItemsV1RunsRunIdArtifactsDelete\n */\n readonly runId: string\n}\n\n/**\n * Request parameters for getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet operation in PublicApi.\n * @export\n * @interface PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGetRequest\n */\nexport interface PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGetRequest {\n /**\n * Run id, returned by `POST /runs/` endpoint\n * @type {string}\n * @memberof PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet\n */\n readonly runId: string\n\n /**\n * The artifact id to download\n * @type {string}\n * @memberof PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet\n */\n readonly artifactId: string\n\n /**\n * Share token for accessing shared runs\n * @type {string}\n * @memberof PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet\n */\n readonly shareToken?: string | null\n}\n\n/**\n * Request parameters for getGrantV1AccessGrantsGrantIdGet operation in PublicApi.\n * @export\n * @interface PublicApiGetGrantV1AccessGrantsGrantIdGetRequest\n */\nexport interface PublicApiGetGrantV1AccessGrantsGrantIdGetRequest {\n /**\n * Grant ID\n * @type {string}\n * @memberof PublicApiGetGrantV1AccessGrantsGrantIdGet\n */\n readonly grantId: string\n}\n\n/**\n * Request parameters for getItemByRunV1RunsRunIdItemsExternalIdGet operation in PublicApi.\n * @export\n * @interface PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest\n */\nexport interface PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest {\n /**\n * The run id, returned by `POST /runs/` endpoint\n * @type {string}\n * @memberof PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGet\n */\n readonly runId: string\n\n /**\n * The `external_id` that was defined for the item by the customer that triggered the run.\n * @type {string}\n * @memberof PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGet\n */\n readonly externalId: string\n\n /**\n * Share token for accessing shared runs\n * @type {string}\n * @memberof PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGet\n */\n readonly shareToken?: string | null\n}\n\n/**\n * Request parameters for getRunV1RunsRunIdGet operation in PublicApi.\n * @export\n * @interface PublicApiGetRunV1RunsRunIdGetRequest\n */\nexport interface PublicApiGetRunV1RunsRunIdGetRequest {\n /**\n * Run id, returned by `POST /v1/runs/` endpoint\n * @type {string}\n * @memberof PublicApiGetRunV1RunsRunIdGet\n */\n readonly runId: string\n\n /**\n * Share token for accessing shared runs\n * @type {string}\n * @memberof PublicApiGetRunV1RunsRunIdGet\n */\n readonly shareToken?: string | null\n}\n\n/**\n * Request parameters for getShareTokenV1AccessShareTokensShareTokenIdGet operation in PublicApi.\n * @export\n * @interface PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGetRequest\n */\nexport interface PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGetRequest {\n /**\n * Share token ID\n * @type {string}\n * @memberof PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGet\n */\n readonly shareTokenId: string\n}\n\n/**\n * Request parameters for getVersionDocument operation in PublicApi.\n * @export\n * @interface PublicApiGetVersionDocumentRequest\n */\nexport interface PublicApiGetVersionDocumentRequest {\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocument\n */\n readonly applicationId: string\n\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocument\n */\n readonly version: string\n\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocument\n */\n readonly name: string\n}\n\n/**\n * Request parameters for getVersionDocumentContent operation in PublicApi.\n * @export\n * @interface PublicApiGetVersionDocumentContentRequest\n */\nexport interface PublicApiGetVersionDocumentContentRequest {\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocumentContent\n */\n readonly applicationId: string\n\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocumentContent\n */\n readonly version: string\n\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocumentContent\n */\n readonly name: string\n}\n\n/**\n * Request parameters for getVersionDocumentFile operation in PublicApi.\n * @export\n * @interface PublicApiGetVersionDocumentFileRequest\n */\nexport interface PublicApiGetVersionDocumentFileRequest {\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocumentFile\n */\n readonly applicationId: string\n\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocumentFile\n */\n readonly version: string\n\n /**\n * \n * @type {string}\n * @memberof PublicApiGetVersionDocumentFile\n */\n readonly name: string\n}\n\n/**\n * Request parameters for listApplicationsV1ApplicationsGet operation in PublicApi.\n * @export\n * @interface PublicApiListApplicationsV1ApplicationsGetRequest\n */\nexport interface PublicApiListApplicationsV1ApplicationsGetRequest {\n /**\n * \n * @type {number}\n * @memberof PublicApiListApplicationsV1ApplicationsGet\n */\n readonly page?: number\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListApplicationsV1ApplicationsGet\n */\n readonly pageSize?: number\n\n /**\n * Sort the results by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `application_id` - `name` - `description` - `regulatory_classes` **Examples:** - `?sort=application_id` - Sort by application_id ascending - `?sort=-name` - Sort by name descending - `?sort=+description&sort=name` - Sort by description ascending, then name descending\n * @type {Array<string>}\n * @memberof PublicApiListApplicationsV1ApplicationsGet\n */\n readonly sort?: Array<string> | null\n}\n\n/**\n * Request parameters for listGrantsV1AccessGrantsGet operation in PublicApi.\n * @export\n * @interface PublicApiListGrantsV1AccessGrantsGetRequest\n */\nexport interface PublicApiListGrantsV1AccessGrantsGetRequest {\n /**\n * \n * @type {ResourceType}\n * @memberof PublicApiListGrantsV1AccessGrantsGet\n */\n readonly resourceType?: ResourceType | null\n\n /**\n * \n * @type {string}\n * @memberof PublicApiListGrantsV1AccessGrantsGet\n */\n readonly resourceId?: string | null\n\n /**\n * \n * @type {SubjectType}\n * @memberof PublicApiListGrantsV1AccessGrantsGet\n */\n readonly subjectType?: SubjectType | null\n\n /**\n * \n * @type {string}\n * @memberof PublicApiListGrantsV1AccessGrantsGet\n */\n readonly subjectId?: string | null\n\n /**\n * Filter grants by relation type. Can be specified multiple times.\n * @type {Array<GrantRelation>}\n * @memberof PublicApiListGrantsV1AccessGrantsGet\n */\n readonly relation?: Array<GrantRelation> | null\n\n /**\n * \n * @type {boolean}\n * @memberof PublicApiListGrantsV1AccessGrantsGet\n */\n readonly revoked?: boolean | null\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListGrantsV1AccessGrantsGet\n */\n readonly page?: number\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListGrantsV1AccessGrantsGet\n */\n readonly pageSize?: number\n\n /**\n * Sort the results by one or more fields. Use `+` for ascending and `-` for descending order.\n * @type {Array<string>}\n * @memberof PublicApiListGrantsV1AccessGrantsGet\n */\n readonly sort?: Array<string> | null\n}\n\n/**\n * Request parameters for listRunItemsV1RunsRunIdItemsGet operation in PublicApi.\n * @export\n * @interface PublicApiListRunItemsV1RunsRunIdItemsGetRequest\n */\nexport interface PublicApiListRunItemsV1RunsRunIdItemsGetRequest {\n /**\n * Run id, returned by `POST /v1/runs/` endpoint\n * @type {string}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly runId: string\n\n /**\n * Share token for accessing shared runs\n * @type {string}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly shareToken?: string | null\n\n /**\n * Filter for item ids\n * @type {Array<string>}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly itemIdIn?: Array<string> | null\n\n /**\n * Filter for items by their external_id from the input payload\n * @type {Array<string>}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly externalIdIn?: Array<string> | null\n\n /**\n * Filter items by their state\n * @type {ItemState}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly state?: ItemState | null\n\n /**\n * Filter items by their termination reason. Only applies to TERMINATED items.\n * @type {ItemTerminationReason}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly terminationReason?: ItemTerminationReason | null\n\n /**\n * JSONPath expression to filter items by their custom_metadata\n * @type {string}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly customMetadata?: string | null\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly page?: number\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly pageSize?: number\n\n /**\n * Sort the items by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `item_id` - `external_id` - `custom_metadata` - `terminated_at` - `termination_reason` **Examples:** - `?sort=item_id` - Sort by id of the item (ascending) - `?sort=-external_id` - Sort by external ID (descending) - `?sort=custom_metadata&sort=-external_id` - Sort by metadata, then by external ID (descending)\n * @type {Array<string>}\n * @memberof PublicApiListRunItemsV1RunsRunIdItemsGet\n */\n readonly sort?: Array<string> | null\n}\n\n/**\n * Request parameters for listRunsV1RunsGet operation in PublicApi.\n * @export\n * @interface PublicApiListRunsV1RunsGetRequest\n */\nexport interface PublicApiListRunsV1RunsGetRequest {\n /**\n * Optional application ID filter\n * @type {string}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly applicationId?: string | null\n\n /**\n * Optional Version Name\n * @type {string}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly applicationVersion?: string | null\n\n /**\n * Optionally filter runs by items with this external ID\n * @type {string}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly externalId?: string | null\n\n /**\n * Use PostgreSQL JSONPath expressions to filter runs by their custom_metadata. #### URL Encoding Required **Important**: JSONPath expressions contain special characters that must be URL-encoded when used in query parameters. Most HTTP clients handle this automatically, but when constructing URLs manually, please ensure proper encoding. #### Examples (Clear Format): - **Field existence**: `$.study` - Runs that have a study field defined - **Exact value match**: `$.study ? (@ == \\"high\\")` - Runs with specific study value - **Numeric comparison**: `$.confidence_score ? (@ > 0.75)` - Runs with confidence score greater than 0.75 - **Array operations**: `$.tags[*] ? (@ == \\"draft\\")` - Runs with tags array containing \\"draft\\" - **Complex conditions**: `$.resources ? (@.gpu_count > 2 && @.memory_gb >= 16)` - Runs with high resource requirements #### Examples (URL-Encoded Format): - **Field existence**: `%24.study` - **Exact value match**: `%24.study%20%3F%20(%40%20%3D%3D%20%22high%22)` - **Numeric comparison**: `%24.confidence_score%20%3F%20(%40%20%3E%200.75)` - **Array operations**: `%24.tags%5B*%5D%20%3F%20(%40%20%3D%3D%20%22draft%22)` - **Complex conditions**: `%24.resources%20%3F%20(%40.gpu_count%20%3E%202%20%26%26%20%40.memory_gb%20%3E%3D%2016)` #### Notes - JSONPath expressions are evaluated using PostgreSQL\\'s `@?` operator - The `$.` prefix is automatically added to root-level field references if missing - String values in conditions must be enclosed in double quotes - Use `&&` for AND operations and `||` for OR operations - Regular expressions use `like_regex` with standard regex syntax - **Please remember to URL-encode the entire JSONPath expression when making HTTP requests** \n * @type {string}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly customMetadata?: string | null\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly page?: number\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly pageSize?: number\n\n /**\n * Filter runs by the user who submitted them. Use the special value `me` to return only runs submitted by the current user.\n * @type {string}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly submittedBy?: string | null\n\n /**\n * Filter runs by the organization of the submitter. Use the special value `my_org` to filter by the current user\\'s organization.\n * @type {string}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly organizationId?: string | null\n\n /**\n * Filter runs by organization ID. Available for superadmins (any org) and admins (own org only). When provided, returns all runs for the specified organization instead of only the caller\\'s own runs.\n * @type {string}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly forOrganization?: string | null\n\n /**\n * Sort the results by one or more fields. Use `+` for ascending and `-` for descending order. **Available fields:** - `run_id` - `application_id` - `version_number` - `custom_metadata` - `submitted_at` - `submitted_by` - `terminated_at` - `termination_reason` **Examples:** - `?sort=submitted_at` - Sort by creation time (ascending) - `?sort=-submitted_at` - Sort by creation time (descending) - `?sort=state&sort=-submitted_at` - Sort by state, then by time (descending) \n * @type {Array<string>}\n * @memberof PublicApiListRunsV1RunsGet\n */\n readonly sort?: Array<string> | null\n}\n\n/**\n * Request parameters for listShareTokensV1AccessShareTokensGet operation in PublicApi.\n * @export\n * @interface PublicApiListShareTokensV1AccessShareTokensGetRequest\n */\nexport interface PublicApiListShareTokensV1AccessShareTokensGetRequest {\n /**\n * Filter by run ID\n * @type {string}\n * @memberof PublicApiListShareTokensV1AccessShareTokensGet\n */\n readonly runId?: string | null\n\n /**\n * Filter by share token creator\n * @type {string}\n * @memberof PublicApiListShareTokensV1AccessShareTokensGet\n */\n readonly createdBy?: string | null\n\n /**\n * \n * @type {boolean}\n * @memberof PublicApiListShareTokensV1AccessShareTokensGet\n */\n readonly revoked?: boolean | null\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListShareTokensV1AccessShareTokensGet\n */\n readonly page?: number\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListShareTokensV1AccessShareTokensGet\n */\n readonly pageSize?: number\n\n /**\n * Sort the results by one or more fields. Use `+` for ascending and `-` for descending order.\n * @type {Array<string>}\n * @memberof PublicApiListShareTokensV1AccessShareTokensGet\n */\n readonly sort?: Array<string> | null\n}\n\n/**\n * Request parameters for listVersionDocuments operation in PublicApi.\n * @export\n * @interface PublicApiListVersionDocumentsRequest\n */\nexport interface PublicApiListVersionDocumentsRequest {\n /**\n * \n * @type {string}\n * @memberof PublicApiListVersionDocuments\n */\n readonly applicationId: string\n\n /**\n * \n * @type {string}\n * @memberof PublicApiListVersionDocuments\n */\n readonly version: string\n}\n\n/**\n * Request parameters for putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut operation in PublicApi.\n * @export\n * @interface PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest\n */\nexport interface PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest {\n /**\n * The run id, returned by `POST /runs/` endpoint\n * @type {string}\n * @memberof PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut\n */\n readonly runId: string\n\n /**\n * The `external_id` that was defined for the item by the customer that triggered the run.\n * @type {string}\n * @memberof PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut\n */\n readonly externalId: string\n\n /**\n * \n * @type {CustomMetadataUpdateRequest}\n * @memberof PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut\n */\n readonly customMetadataUpdateRequest: CustomMetadataUpdateRequest\n}\n\n/**\n * Request parameters for putRunCustomMetadataV1RunsRunIdCustomMetadataPut operation in PublicApi.\n * @export\n * @interface PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest\n */\nexport interface PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest {\n /**\n * Run id, returned by `POST /runs/` endpoint\n * @type {string}\n * @memberof PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPut\n */\n readonly runId: string\n\n /**\n * \n * @type {CustomMetadataUpdateRequest}\n * @memberof PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPut\n */\n readonly customMetadataUpdateRequest: CustomMetadataUpdateRequest\n}\n\n/**\n * Request parameters for readApplicationByIdV1ApplicationsApplicationIdGet operation in PublicApi.\n * @export\n * @interface PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest\n */\nexport interface PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest {\n /**\n * \n * @type {string}\n * @memberof PublicApiReadApplicationByIdV1ApplicationsApplicationIdGet\n */\n readonly applicationId: string\n}\n\n/**\n * Request parameters for revokeGrantV1AccessGrantsGrantIdDelete operation in PublicApi.\n * @export\n * @interface PublicApiRevokeGrantV1AccessGrantsGrantIdDeleteRequest\n */\nexport interface PublicApiRevokeGrantV1AccessGrantsGrantIdDeleteRequest {\n /**\n * Grant ID\n * @type {string}\n * @memberof PublicApiRevokeGrantV1AccessGrantsGrantIdDelete\n */\n readonly grantId: string\n}\n\n/**\n * Request parameters for revokeShareTokenV1AccessShareTokensShareTokenIdDelete operation in PublicApi.\n * @export\n * @interface PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDeleteRequest\n */\nexport interface PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDeleteRequest {\n /**\n * Share token ID\n * @type {string}\n * @memberof PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDelete\n */\n readonly shareTokenId: string\n}\n\n/**\n * PublicApi - object-oriented interface\n * @export\n * @class PublicApi\n * @extends {BaseAPI}\n */\nexport class PublicApi extends BaseAPI implements PublicApiInterface {\n /**\n * Get the application version details. Allows caller to retrieve information about application version based on provided application version ID.\n * @summary Application Version Details\n * @param {PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet(requestParameters: PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet(requestParameters.applicationId, requestParameters.version, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * The run can be canceled by the user who created the run. The execution can be canceled any time while the run is not in the terminated state. The pending items of a canceled run will not be processed and will not add to the cost. When the run is canceled, the already completed items remain available for download.\n * @summary Cancel Run\n * @param {PublicApiCancelRunV1RunsRunIdCancelPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public cancelRunV1RunsRunIdCancelPost(requestParameters: PublicApiCancelRunV1RunsRunIdCancelPostRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).cancelRunV1RunsRunIdCancelPost(requestParameters.runId, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Create a grant to share access to a resource with a subject (user or organization).\n * @summary Create Grant\n * @param {PublicApiCreateGrantV1AccessGrantsPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public createGrantV1AccessGrantsPost(requestParameters: PublicApiCreateGrantV1AccessGrantsPostRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).createGrantV1AccessGrantsPost(requestParameters.grantCreateRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * This endpoint initiates a processing run for a selected application and version, and returns a `run_id` for tracking purposes. Slide processing occurs asynchronously, allowing you to retrieve results for individual slides as soon as they complete processing. The system typically processes slides in batches. Below is an example of the required payload for initiating an Atlas H&E TME processing run. ### Payload The payload includes `application_id`, optional `version_number`, and `items` base fields. `application_id` is the unique identifier for the application. `version_number` is the semantic version to use. If not provided, the latest available version will be used. `items` includes the list of the items to process (slides, in case of HETA application). Every item has a set of standard fields defined by the API, plus the custom_metadata, specific to the chosen application. Example payload structure with the comments: ``` { application_id: \\\"he-tme\\\", version_number: \\\"1.0.0-beta\\\", items: [{ \\\"external_id\\\": \\\"slide_1\\\", \\\"custom_metadata\\\": {\\\"project\\\": \\\"sample-study\\\"}, \\\"input_artifacts\\\": [{ \\\"name\\\": \\\"user_slide\\\", \\\"download_url\\\": \\\"https://...\\\", \\\"metadata\\\": { \\\"specimen\\\": { \\\"disease\\\": \\\"LUNG_CANCER\\\", \\\"tissue\\\": \\\"LUNG\\\" }, \\\"staining_method\\\": \\\"H&E\\\", \\\"width_px\\\": 136223, \\\"height_px\\\": 87761, \\\"resolution_mpp\\\": 0.2628238, \\\"media-type\\\":\\\"image/tiff\\\", \\\"checksum_base64_crc32c\\\": \\\"64RKKA==\\\" } }] }] } ``` | Parameter | Description | | :---- | :---- | | `application_id` required | Unique ID for the application | | `version_number` optional | Semantic version of the application. If not provided, the latest available version will be used | | `items` required | List of submitted items i.e. whole slide images (WSIs) with parameters described below. | | `external_id` required | Unique WSI name or ID for easy reference to items, provided by the caller. The `external_id` should be unique across all items of the run. | | `input_artifacts` required | List of provided artifacts for a WSI; at the moment Atlas H&E-TME receives only 1 artifact per slide (the slide itself), but for some other applications this can be a slide and a segmentation map | | `name` required | Type of artifact; Atlas H&E-TME supports only `\\\"input_slide\\\"` | | `download_url` required | Signed URL to the input file in the S3 or GCS; Should be valid for at least 6 days | | `specimen: disease` required | Supported cancer types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `specimen: tissue` required | Supported tissue types for Atlas H&E-TME (see full list in Atlas H&E-TME manual) | | `staining_method` required | WSI stain bio-marker; Atlas H&E-TME supports only `\\\"H&E\\\"` | | `width_px` required | Integer value. Number of pixels of the WSI in the X dimension. | | `height_px` required | Integer value. Number of pixels of the WSI in the Y dimension. | | `resolution_mpp` required | Resolution of WSI in micrometers per pixel; check allowed range in Atlas H&E-TME manual | | `media-type` required | Supported media formats; available values are: image/tiff (for .tiff or .tif WSI), application/dicom (for DICOM ), application/zip (for zipped DICOM), and application/octet-stream (for .svs WSI) | | `checksum_base64_crc32c` required | Base64-encoded big-endian CRC32C checksum of the WSI image | ### Response The endpoint returns the run UUID. After that, the job is scheduled for the execution in the background. To check the status of the run, call `GET v1/runs/{run_id}` endpoint with the returned run UUID. ### Rejection Apart from the authentication, authorization, and malformed input error, the request can be rejected when specific quota limit is exceeded. More details on quotas is described in the documentation\n * @summary Initiate Run\n * @param {PublicApiCreateRunV1RunsPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public createRunV1RunsPost(requestParameters: PublicApiCreateRunV1RunsPostRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).createRunV1RunsPost(requestParameters.runCreationRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Create a share token. The returned share_token value is shown only once and is never stored. Use POST /access/grants with subject_type=share_token to grant access to a resource.\n * @summary Create Share Token\n * @param {PublicApiCreateShareTokenV1AccessShareTokensPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public createShareTokenV1AccessShareTokensPost(requestParameters: PublicApiCreateShareTokenV1AccessShareTokensPostRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).createShareTokenV1AccessShareTokensPost(requestParameters.shareTokenCreateRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * This endpoint allows the caller to explicitly delete artifacts generated by a run. It can only be invoked when the run has reached a final state, i.e. `PROCESSED`, `CANCELED_SYSTEM`, or `CANCELED_USER`. Note that by default, all artifacts are automatically deleted 30 days after the run finishes, regardless of whether the caller explicitly requests such deletion.\n * @summary Delete Run Items\n * @param {PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public deleteRunItemsV1RunsRunIdArtifactsDelete(requestParameters: PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).deleteRunItemsV1RunsRunIdArtifactsDelete(requestParameters.runId, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Download the artifact file with the specified artifact_id, belonging to the specified run. The artifact_is is returned by the `GET /v1/runs/{run_id}/items` endpoint as part of the item results, and can also be retrieved via `GET /v1/runs/{run_id}/items/{external_id}`. The endpoint may return a redirect response with a presigned URL to download the artifact file from the storage bucket. The presigned URL is valid for a limited time, so it should be used immediately after receiving the response.\n * @summary Get Artifact Url\n * @param {PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet(requestParameters: PublicApiGetArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet(requestParameters.runId, requestParameters.artifactId, requestParameters.shareToken, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get a grant by its ID.\n * @summary Get Grant\n * @param {PublicApiGetGrantV1AccessGrantsGrantIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getGrantV1AccessGrantsGrantIdGet(requestParameters: PublicApiGetGrantV1AccessGrantsGrantIdGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getGrantV1AccessGrantsGrantIdGet(requestParameters.grantId, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieve details of a specific item (slide) by its external ID and the run ID.\n * @summary Get Item By Run\n * @param {PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getItemByRunV1RunsRunIdItemsExternalIdGet(requestParameters: PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getItemByRunV1RunsRunIdItemsExternalIdGet(requestParameters.runId, requestParameters.externalId, requestParameters.shareToken, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieves your identity details, including name, email, and organization. This is useful for verifying that the request is being made under the correct user profile and organization context, as well as confirming that the expected environment variables are correctly set (in case you are using Python SDK)\n * @summary Get current user\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getMeV1MeGet(options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getMeV1MeGet(options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * This endpoint allows the caller to retrieve the current status of a run along with other relevant run details. A run becomes available immediately after it is created through the `POST /v1/runs/` endpoint. To download the output results, use `GET /v1/runs/{run_id}/` items to get outputs for all slides. Access to a run is restricted to the user who created it, or users with an active grant or valid share token.\n * @summary Get run details\n * @param {PublicApiGetRunV1RunsRunIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getRunV1RunsRunIdGet(requestParameters: PublicApiGetRunV1RunsRunIdGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getRunV1RunsRunIdGet(requestParameters.runId, requestParameters.shareToken, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Get a share token by its ID.\n * @summary Get Share Token\n * @param {PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getShareTokenV1AccessShareTokensShareTokenIdGet(requestParameters: PublicApiGetShareTokenV1AccessShareTokensShareTokenIdGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getShareTokenV1AccessShareTokensShareTokenIdGet(requestParameters.shareTokenId, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Return metadata for a single public document attached to an application version.\n * @summary Get version document metadata\n * @param {PublicApiGetVersionDocumentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getVersionDocument(requestParameters: PublicApiGetVersionDocumentRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getVersionDocument(requestParameters.applicationId, requestParameters.version, requestParameters.name, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * 307 redirect to a short-lived GCS signed URL for streaming document content. Unlike ``/file``, no ``Content-Disposition`` override is set — GCS serves the object body with its stored ``Content-Type``. Intended for programmatic clients that follow redirects and consume the content directly. Response carries ``Cache-Control: no-store``.\n * @summary Stream version document content (programmatic)\n * @param {PublicApiGetVersionDocumentContentRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getVersionDocumentContent(requestParameters: PublicApiGetVersionDocumentContentRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getVersionDocumentContent(requestParameters.applicationId, requestParameters.version, requestParameters.name, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * 307 redirect to a short-lived GCS signed URL for downloading a document. The signed URL includes ``response-content-disposition=attachment; filename=\\\"<name>\\\"`` so browsers prompt a save-as dialog rather than rendering inline. Response carries ``Cache-Control: no-store``.\n * @summary Download version document (browser)\n * @param {PublicApiGetVersionDocumentFileRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getVersionDocumentFile(requestParameters: PublicApiGetVersionDocumentFileRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getVersionDocumentFile(requestParameters.applicationId, requestParameters.version, requestParameters.name, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Returns the list of the applications, available to the caller. The application is available if any of the versions of the application is assigned to the caller\\'s organization. The response is paginated and sorted according to the provided parameters.\n * @summary List available applications\n * @param {PublicApiListApplicationsV1ApplicationsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public listApplicationsV1ApplicationsGet(requestParameters: PublicApiListApplicationsV1ApplicationsGetRequest = {}, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).listApplicationsV1ApplicationsGet(requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List grants. Org admins see all grants for all resources in their organization. Regular users see grants for all resources they submitted.\n * @summary List Grants\n * @param {PublicApiListGrantsV1AccessGrantsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public listGrantsV1AccessGrantsGet(requestParameters: PublicApiListGrantsV1AccessGrantsGetRequest = {}, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).listGrantsV1AccessGrantsGet(requestParameters.resourceType, requestParameters.resourceId, requestParameters.subjectType, requestParameters.subjectId, requestParameters.relation, requestParameters.revoked, requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List items in a run with filtering, sorting, and pagination capabilities. Returns paginated items within a specific run. Results can be filtered by `item_id`, `external_ids`, `custom_metadata`, `terminated_at`, and `termination_reason` using JSONPath expressions. ## JSONPath Metadata Filtering Use PostgreSQL JSONPath expressions to filter items using their custom_metadata. ### Examples: - **Field existence**: `$.case_id` - Results that have a case_id field defined - **Exact value match**: `$.priority ? (@ == \\\"high\\\")` - Results with high priority - **Numeric comparison**: `$.confidence_score ? (@ > 0.95)` - Results with high confidence - **Array operations**: `$.flags[*] ? (@ == \\\"reviewed\\\")` - Results flagged as reviewed - **Complex conditions**: `$.metrics ? (@.accuracy > 0.9 && @.recall > 0.8)` - Results meeting performance thresholds ## Notes - JSONPath expressions are evaluated using PostgreSQL\\'s `@?` operator - The `$.` prefix is automatically added to root-level field references if missing - String values in conditions must be enclosed in double quotes - Use `&&` for AND operations and `||` for OR operations\n * @summary List Run Items\n * @param {PublicApiListRunItemsV1RunsRunIdItemsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public listRunItemsV1RunsRunIdItemsGet(requestParameters: PublicApiListRunItemsV1RunsRunIdItemsGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).listRunItemsV1RunsRunIdItemsGet(requestParameters.runId, requestParameters.shareToken, requestParameters.itemIdIn, requestParameters.externalIdIn, requestParameters.state, requestParameters.terminationReason, requestParameters.customMetadata, requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List runs with filtering, sorting, and pagination capabilities. Returns paginated runs that were submitted by the user.\n * @summary List Runs\n * @param {PublicApiListRunsV1RunsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public listRunsV1RunsGet(requestParameters: PublicApiListRunsV1RunsGetRequest = {}, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).listRunsV1RunsGet(requestParameters.applicationId, requestParameters.applicationVersion, requestParameters.externalId, requestParameters.customMetadata, requestParameters.page, requestParameters.pageSize, requestParameters.submittedBy, requestParameters.organizationId, requestParameters.forOrganization, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List share tokens. Service and Superadmin see all tokens; other users see only their own.\n * @summary List Share Tokens\n * @param {PublicApiListShareTokensV1AccessShareTokensGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public listShareTokensV1AccessShareTokensGet(requestParameters: PublicApiListShareTokensV1AccessShareTokensGetRequest = {}, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).listShareTokensV1AccessShareTokensGet(requestParameters.runId, requestParameters.createdBy, requestParameters.revoked, requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * List public documents attached to an application version. Returns only documents with ``visibility=public`` and ``status=uploaded``.\n * @summary List version documents\n * @param {PublicApiListVersionDocumentsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public listVersionDocuments(requestParameters: PublicApiListVersionDocumentsRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).listVersionDocuments(requestParameters.applicationId, requestParameters.version, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Update the custom metadata of the item with the specified `external_id`, belonging to the specified run. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for individual items via `GET /v1/runs/{run_id}/items/{external_id}`, and for all items of a run via `GET /v1/runs/{run_id}/items`.\n * @summary Put Item Custom Metadata By Run\n * @param {PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut(requestParameters: PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).putItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPut(requestParameters.runId, requestParameters.externalId, requestParameters.customMetadataUpdateRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Update the custom metadata of a run with the specified `run_id`. Optionally, a checksum may be provided along the custom metadata JSON. It can be used to verify if the custom metadata was updated since the last time it was accessed. If the checksum is provided, it must match the existing custom metadata in the system, ensuring that the current custom metadata value to be overwritten is acknowledged by the user. If no checksum is provided, submitted metadata directly overwrites the existing metadata, without any checks. The latest custom metadata and checksum can be retrieved for the run via the `GET /v1/runs/{run_id}` endpoint. **Note on deadlines:** Run deadlines must be set during run creation and cannot be modified afterward. Any deadline changes in custom metadata will be ignored by the system.\n * @summary Put Run Custom Metadata\n * @param {PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public putRunCustomMetadataV1RunsRunIdCustomMetadataPut(requestParameters: PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).putRunCustomMetadataV1RunsRunIdCustomMetadataPut(requestParameters.runId, requestParameters.customMetadataUpdateRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Retrieve details of a specific application by its ID.\n * @summary Read Application By Id\n * @param {PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public readApplicationByIdV1ApplicationsApplicationIdGet(requestParameters: PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).readApplicationByIdV1ApplicationsApplicationIdGet(requestParameters.applicationId, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Revoke a grant by its ID. Sets the revoked_at timestamp on the grant.\n * @summary Revoke Grant\n * @param {PublicApiRevokeGrantV1AccessGrantsGrantIdDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public revokeGrantV1AccessGrantsGrantIdDelete(requestParameters: PublicApiRevokeGrantV1AccessGrantsGrantIdDeleteRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).revokeGrantV1AccessGrantsGrantIdDelete(requestParameters.grantId, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Revoke a share token by its ID. Invalidates the credential regardless of any active grants.\n * @summary Revoke Share Token\n * @param {PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public revokeShareTokenV1AccessShareTokensShareTokenIdDelete(requestParameters: PublicApiRevokeShareTokenV1AccessShareTokensShareTokenIdDeleteRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).revokeShareTokenV1AccessShareTokensShareTokenIdDelete(requestParameters.shareTokenId, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Aignostics Platform API\n * The Aignostics Platform is a cloud-based service that enables organizations to access advanced computational pathology applications through a secure API. The platform provides standardized access to Aignostics\\' portfolio of computational pathology solutions, with Atlas H&E-TME serving as an example of the available API endpoints. To begin using the platform, your organization must first be registered by our business support team. If you don\\'t have an account yet, please contact your account manager or email support@aignostics.com to get started. More information about our applications can be found on [https://platform.aignostics.com](https://platform.aignostics.com). **How to authorize and test API endpoints:** 1. Click the \\\"Authorize\\\" button in the right corner below 3. Click \\\"Authorize\\\" button in the dialog to log in with your Aignostics Platform credentials 4. After successful login, you\\'ll be redirected back and can use \\\"Try it out\\\" on any endpoint **Note**: You only need to authorize once per session. The lock icons next to endpoints will show green when authorized. \n *\n * The version of the OpenAPI document: 1.7.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 */\n\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n * @memberof Configuration\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n *\n * @type {string}\n * @memberof Configuration\n */\n username?: string;\n /**\n * parameter for basic security\n *\n * @type {string}\n * @memberof Configuration\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n * @memberof Configuration\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * override base path\n *\n * @type {string}\n * @memberof Configuration\n */\n basePath?: string;\n /**\n * override server index\n *\n * @type {number}\n * @memberof Configuration\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n *\n * @type {any}\n * @memberof Configuration\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = new RegExp('^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$', 'i');\n return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');\n }\n}\n","export type ErrorCode =\n | 'AUTHENTICATION_ERROR'\n | 'API_ERROR'\n | 'CONFIGURATION_ERROR'\n | 'UNEXPECTED_ERROR';\n\ninterface BaseErrorOptions {\n context?: Record<string, unknown>;\n originalError?: unknown;\n}\n/**\n * Base error class for all SDK-related errors\n *\n * This class serves as the foundation for all custom error types in the SDK,\n * providing consistent error handling and additional context information.\n */\nexport class BaseError extends Error {\n /**\n * Error code for programmatic error handling\n */\n public readonly code: ErrorCode;\n\n /**\n * Additional context or metadata related to the error\n */\n public readonly context?: Record<string, unknown>;\n\n /**\n * Original error that caused this error, if applicable\n */\n public readonly originalError?: unknown;\n\n /**\n * Creates a new BaseError instance\n *\n * @param message - Human-readable error message\n * @param code - Error code for programmatic handling\n * @param context - Additional error context or metadata\n */\n constructor(message: string, code: ErrorCode, { context, originalError }: BaseErrorOptions = {}) {\n super(message);\n this.name = this.constructor.name;\n this.code = code;\n this.context = context;\n this.originalError = originalError;\n\n // Maintains proper stack trace for where our error was thrown (Node.js only)\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n }\n}\n\n/**\n * Authentication-related error\n *\n * Thrown when authentication fails or when no valid authentication\n * credentials are available for API requests.\n */\nexport class AuthenticationError extends BaseError {\n /**\n * Creates a new AuthenticationError instance\n *\n * @param message - Human-readable error message describing the authentication issue\n * @param options - Additional options about the authentication failure\n * @param options.context - Additional context about the authentication failure\n * @param options.originalError - Original error that caused this authentication error\n */\n constructor(message: string, options: BaseErrorOptions = {}) {\n super(message, 'AUTHENTICATION_ERROR', options);\n }\n}\n\n/**\n * API-related error\n *\n * Thrown when API requests fail due to server errors, network issues,\n * or invalid responses from the Aignostics Platform API.\n */\nexport class APIError extends BaseError {\n /**\n * HTTP status code from the failed API request\n */\n public readonly statusCode?: number;\n\n /**\n * Creates a new APIError instance\n *\n * @param message - Human-readable error message describing the API issue\n * @param statusCode - HTTP status code from the failed request\n * @param context - Additional context about the API failure\n */\n constructor(message: string, options: BaseErrorOptions & { statusCode?: number } = {}) {\n super(message, 'API_ERROR', options);\n this.statusCode = options.statusCode;\n }\n}\n\n/**\n * Configuration-related error\n *\n * Thrown when SDK configuration is invalid or missing required parameters.\n */\nexport class ConfigurationError extends BaseError {\n /**\n * Creates a new ConfigurationError instance\n *\n * @param message - Human-readable error message describing the configuration issue\n * @param context - Additional context about the configuration problem\n */\n constructor(message: string, options: BaseErrorOptions = {}) {\n super(message, 'CONFIGURATION_ERROR', options);\n }\n}\n\nexport class UnexpectedError extends BaseError {\n /**\n * Creates a new UnexpectedError instance\n *\n * @param message - Human-readable error message describing the unexpected issue\n * @param context - Additional context about the unexpected error\n */\n constructor(message: string, options: BaseErrorOptions = {}) {\n super(message, 'UNEXPECTED_ERROR', options);\n }\n}\n","import { RunReadResponse } from '../../generated/index.js';\nimport { RunStatus } from './types.js';\n\n/**\n * Compute the overall progress of a run as a percentage (0–100).\n * Progress is based on the ratio of terminal items (succeeded + errored + skipped)\n * to the total item count.\n *\n * @param run - Raw run response from the API\n * @returns Integer percentage rounded to the nearest whole number\n */\nexport function getRunProgress(run: RunReadResponse): number {\n const {\n item_count,\n item_succeeded_count,\n item_user_error_count,\n item_system_error_count,\n item_skipped_count,\n } = run.statistics;\n\n // No items means no progress\n if (item_count === 0) return 0;\n\n // Sum all items that have reached a terminal state\n const processed =\n item_succeeded_count + item_user_error_count + item_system_error_count + item_skipped_count;\n return Math.round((processed / item_count) * 100);\n}\n\n/**\n * Derive a human-readable {@link RunStatus} from the raw API `state`,\n * `termination_reason`, and `output`.\n *\n * Mapping rules:\n * - PENDING / PROCESSING → passed through as-is\n * - TERMINATED + CANCELED_BY_USER → CANCELED\n * - TERMINATED + CANCELED_BY_SYSTEM or ALL_ITEMS_PROCESSED → derived from `output`:\n * - NONE → FAILED (no items succeeded)\n * - PARTIAL → COMPLETED_WITH_ERRORS (some items succeeded)\n * - FULL → COMPLETED (all items succeeded)\n * - otherwise → UNKNOWN\n * - any other termination reason, or non-terminal state, → UNKNOWN\n *\n * @param run - Raw run response from the API\n */\nexport function getRunStatus(run: RunReadResponse): RunStatus {\n const { state, termination_reason, output } = run;\n switch (state) {\n case 'PENDING':\n return 'PENDING';\n case 'PROCESSING':\n return 'PROCESSING';\n case 'TERMINATED':\n switch (termination_reason) {\n case 'CANCELED_BY_USER':\n return 'CANCELED';\n case 'CANCELED_BY_SYSTEM':\n case 'ALL_ITEMS_PROCESSED':\n switch (output) {\n case 'NONE':\n return 'FAILED';\n case 'PARTIAL':\n return 'COMPLETED_WITH_ERRORS';\n case 'FULL':\n return 'COMPLETED';\n default:\n return 'UNKNOWN';\n }\n default:\n return 'UNKNOWN';\n }\n default:\n return 'UNKNOWN';\n }\n}\n\n/**\n * Determine whether a run's result items are available for download.\n * Items can only be downloaded once the run has reached a completed state.\n *\n * @param run - Raw run response from the API\n * @returns `true` if items are available for download (run is COMPLETED or COMPLETED_WITH_ERRORS)\n */\nexport const canDownloadRunItems = (run: RunReadResponse): boolean => {\n const status = getRunStatus(run);\n return !['FAILED', 'CANCELED', 'PENDING', 'PROCESSING'].includes(status);\n};\n","import { ApplicationRun } from './types.js';\nimport { RunReadResponse } from '../../generated/index.js';\nimport { getRunProgress, getRunStatus, canDownloadRunItems } from './utils.js';\n\n/**\n * Transform a raw {@link RunReadResponse} from the API into an enriched\n * {@link ApplicationRun} by computing derived properties (progress, status, can_download).\n *\n * This is the single entry-point used by `PlatformSDKHttp` methods to map API\n * responses before returning them to consumers.\n *\n * @param run - Raw run response from the API\n * @returns Enriched run entity with computed properties spread onto the original response\n */\nexport const processApplicationRun = (run: RunReadResponse): ApplicationRun => {\n return {\n ...run,\n progress: getRunProgress(run),\n status: getRunStatus(run),\n can_download: canDownloadRunItems(run),\n };\n};\n","import { ItemResultReadResponse } from '../../generated/index.js';\nimport { ItemStatus } from './types.js';\n\n/**\n * Determine whether a single run item's output artifact is available for download.\n * Only items in the COMPLETED state have downloadable artifacts.\n *\n * @param item - Raw item response from the API\n * @returns `true` if the item is in a COMPLETED state\n */\nexport const canDownloadItem = (item: ItemResultReadResponse): boolean => {\n return getItemStatus(item) === 'COMPLETED';\n};\n\n/** Termination reasons that mark a terminated item as FAILED. */\nconst ERROR_TERMINATION_REASONS = new Set([\n 'CANCELED_BY_SYSTEM',\n 'CANCELED_BY_USER',\n 'SYSTEM_ERROR',\n 'USER_ERROR',\n]);\n\n/**\n * Derive a human-readable {@link ItemStatus} from the raw API `state` and `termination_reason`.\n *\n * Mapping rules:\n * - PENDING / PROCESSING → passed through as-is\n * - TERMINATED + no termination_reason → UNKNOWN\n * - TERMINATED + an error reason (SYSTEM_ERROR, USER_ERROR, CANCELED_BY_SYSTEM, CANCELED_BY_USER) → FAILED\n * - TERMINATED + SKIPPED → SKIPPED\n * - TERMINATED + SUCCEEDED → COMPLETED\n * - TERMINATED + any unrecognized reason → UNKNOWN\n *\n * @param item - Raw item response from the API\n */\nexport function getItemStatus(item: ItemResultReadResponse): ItemStatus {\n const { state, termination_reason } = item;\n switch (state) {\n case 'PENDING':\n return 'PENDING';\n case 'PROCESSING':\n return 'PROCESSING';\n case 'TERMINATED':\n if (!termination_reason) {\n // tip: report to the sentry in the consumer\n return 'UNKNOWN';\n }\n if (ERROR_TERMINATION_REASONS.has(termination_reason)) {\n return 'FAILED';\n }\n\n if (termination_reason === 'SKIPPED') {\n return 'SKIPPED';\n }\n\n if (termination_reason === 'SUCCEEDED') {\n return 'COMPLETED';\n }\n\n // tip: report to the sentry in the consumer\n return 'UNKNOWN';\n }\n}\n","import { ItemResultReadResponse } from '../../generated/index.js';\nimport { ApplicationRunItem } from './types.js';\nimport { canDownloadItem, getItemStatus } from './utils.js';\n\n/**\n * Transform a raw {@link ItemResultReadResponse} from the API into an enriched\n * {@link ApplicationRunItem} by computing derived properties (status, can_download).\n *\n * This is the single entry-point used by `PlatformSDKHttp.listRunResults()` to\n * map API responses before returning them to consumers.\n *\n * @param item - Raw item response from the API\n * @returns Enriched item entity with computed properties spread onto the original response\n */\nexport const processRunItem = (item: ItemResultReadResponse): ApplicationRunItem => {\n return {\n ...item,\n status: getItemStatus(item),\n can_download: canDownloadItem(item),\n };\n};\n","const objectToString = Object.prototype.toString;\n\nconst isError = value => objectToString.call(value) === '[object Error]';\n\nconst errorMessages = new Set([\n\t'network error', // Chrome\n\t'NetworkError when attempting to fetch resource.', // Firefox\n\t'The Internet connection appears to be offline.', // Safari 16\n\t'Network request failed', // `cross-fetch`\n\t'fetch failed', // Undici (Node.js)\n\t'terminated', // Undici (Node.js)\n\t' A network error occurred.', // Bun (WebKit)\n\t'Network connection lost', // Cloudflare Workers (fetch)\n]);\n\nexport default function isNetworkError(error) {\n\tconst isValid = error\n\t\t&& isError(error)\n\t\t&& error.name === 'TypeError'\n\t\t&& typeof error.message === 'string';\n\n\tif (!isValid) {\n\t\treturn false;\n\t}\n\n\tconst {message, stack} = error;\n\n\t// Safari 17+ has generic message but no stack for network errors\n\tif (message === 'Load failed') {\n\t\treturn stack === undefined\n\t\t\t// Sentry adds its own stack trace to the fetch error, so also check for that\n\t\t\t|| '__sentry_captured__' in error;\n\t}\n\n\t// Deno network errors start with specific text\n\tif (message.startsWith('error sending request for url')) {\n\t\treturn true;\n\t}\n\n\t// Chrome: exact \"Failed to fetch\" or with hostname: \"Failed to fetch (example.com)\"\n\tif (message === 'Failed to fetch' || (message.startsWith('Failed to fetch (') && message.endsWith(')'))) {\n\t\treturn true;\n\t}\n\n\t// Standard network error messages\n\treturn errorMessages.has(message);\n}\n","import isNetworkError from 'is-network-error';\n\nfunction validateRetries(retries) {\n\tif (typeof retries === 'number') {\n\t\tif (retries < 0) {\n\t\t\tthrow new TypeError('Expected `retries` to be a non-negative number.');\n\t\t}\n\n\t\tif (Number.isNaN(retries)) {\n\t\t\tthrow new TypeError('Expected `retries` to be a valid number or Infinity, got NaN.');\n\t\t}\n\t} else if (retries !== undefined) {\n\t\tthrow new TypeError('Expected `retries` to be a number or Infinity.');\n\t}\n}\n\nfunction validateNumberOption(name, value, {min = 0, allowInfinity = false} = {}) {\n\tif (value === undefined) {\n\t\treturn;\n\t}\n\n\tif (typeof value !== 'number' || Number.isNaN(value)) {\n\t\tthrow new TypeError(`Expected \\`${name}\\` to be a number${allowInfinity ? ' or Infinity' : ''}.`);\n\t}\n\n\tif (!allowInfinity && !Number.isFinite(value)) {\n\t\tthrow new TypeError(`Expected \\`${name}\\` to be a finite number.`);\n\t}\n\n\tif (value < min) {\n\t\tthrow new TypeError(`Expected \\`${name}\\` to be \\u2265 ${min}.`);\n\t}\n}\n\nfunction validateFunctionOption(name, value) {\n\tif (value === undefined) {\n\t\treturn;\n\t}\n\n\tif (typeof value !== 'function') {\n\t\tthrow new TypeError(`Expected \\`${name}\\` to be a function.`);\n\t}\n}\n\nexport class AbortError extends Error {\n\tconstructor(message) {\n\t\tsuper();\n\n\t\tif (message instanceof Error) {\n\t\t\tthis.originalError = message;\n\t\t\t({message} = message);\n\t\t} else {\n\t\t\tthis.originalError = new Error(message);\n\t\t\tthis.originalError.stack = this.stack;\n\t\t}\n\n\t\tthis.name = 'AbortError';\n\t\tthis.message = message;\n\t}\n}\n\nfunction calculateDelay(retriesConsumed, options) {\n\tconst attempt = Math.max(1, retriesConsumed + 1);\n\tconst random = options.randomize ? (Math.random() + 1) : 1;\n\n\tlet timeout = Math.round(random * options.minTimeout * (options.factor ** (attempt - 1)));\n\ttimeout = Math.min(timeout, options.maxTimeout);\n\n\treturn timeout;\n}\n\nfunction calculateRemainingTime(start, max) {\n\tif (!Number.isFinite(max)) {\n\t\treturn max;\n\t}\n\n\treturn max - (performance.now() - start);\n}\n\nasync function delayForRetry(delay, options) {\n\tif (delay <= 0) {\n\t\treturn;\n\t}\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst onAbort = () => {\n\t\t\tclearTimeout(timeoutToken);\n\t\t\toptions.signal?.removeEventListener('abort', onAbort);\n\t\t\treject(options.signal.reason);\n\t\t};\n\n\t\tconst timeoutToken = setTimeout(() => {\n\t\t\toptions.signal?.removeEventListener('abort', onAbort);\n\t\t\tresolve();\n\t\t}, delay);\n\n\t\tif (options.unref) {\n\t\t\ttimeoutToken.unref?.();\n\t\t}\n\n\t\toptions.signal?.addEventListener('abort', onAbort, {once: true});\n\t});\n}\n\nasync function onAttemptFailure({error, attemptNumber, retriesConsumed, startTime, options}) {\n\tconst normalizedError = error instanceof Error\n\t\t? error\n\t\t: new TypeError(`Non-error was thrown: \"${error}\". You should only throw errors.`);\n\n\tif (normalizedError instanceof AbortError) {\n\t\tthrow normalizedError.originalError;\n\t}\n\n\tconst retriesLeft = Number.isFinite(options.retries)\n\t\t? Math.max(0, options.retries - retriesConsumed)\n\t\t: options.retries;\n\n\tconst maxRetryTime = options.maxRetryTime ?? Number.POSITIVE_INFINITY;\n\tconst delayTime = calculateDelay(retriesConsumed, options);\n\tconst remainingTimeBeforeCallbacks = calculateRemainingTime(startTime, maxRetryTime);\n\n\tif (remainingTimeBeforeCallbacks <= 0) {\n\t\tconst context = Object.freeze({\n\t\t\terror: normalizedError,\n\t\t\tattemptNumber,\n\t\t\tretriesLeft,\n\t\t\tretriesConsumed,\n\t\t\tretryDelay: 0,\n\t\t});\n\n\t\tawait options.onFailedAttempt(context);\n\n\t\tthrow normalizedError;\n\t}\n\n\tconst consumeRetryContext = Object.freeze({\n\t\terror: normalizedError,\n\t\tattemptNumber,\n\t\tretriesLeft,\n\t\tretriesConsumed,\n\t\tretryDelay: retriesLeft > 0 ? delayTime : 0,\n\t});\n\n\tconst consumeRetry = await options.shouldConsumeRetry(consumeRetryContext);\n\tconst effectiveDelay = consumeRetry && retriesLeft > 0 ? delayTime : 0;\n\tconst context = Object.freeze({\n\t\terror: normalizedError,\n\t\tattemptNumber,\n\t\tretriesLeft,\n\t\tretriesConsumed,\n\t\tretryDelay: effectiveDelay,\n\t});\n\n\tawait options.onFailedAttempt(context);\n\n\tif (calculateRemainingTime(startTime, maxRetryTime) <= 0) {\n\t\tthrow normalizedError;\n\t}\n\n\tconst remainingTime = calculateRemainingTime(startTime, maxRetryTime);\n\n\tif (remainingTime <= 0 || retriesLeft <= 0) {\n\t\tthrow normalizedError;\n\t}\n\n\tif (normalizedError instanceof TypeError && !isNetworkError(normalizedError)) {\n\t\tthrow normalizedError;\n\t}\n\n\tif (!await options.shouldRetry(context)) {\n\t\tthrow normalizedError;\n\t}\n\n\tconst remainingTimeAfterShouldRetry = calculateRemainingTime(startTime, maxRetryTime);\n\n\tif (remainingTimeAfterShouldRetry <= 0) {\n\t\tthrow normalizedError;\n\t}\n\n\tif (!consumeRetry) {\n\t\toptions.signal?.throwIfAborted();\n\t\treturn false;\n\t}\n\n\tconst finalDelay = Math.min(effectiveDelay, remainingTimeAfterShouldRetry);\n\n\toptions.signal?.throwIfAborted();\n\n\tawait delayForRetry(finalDelay, options);\n\n\toptions.signal?.throwIfAborted();\n\n\treturn true;\n}\n\nexport default async function pRetry(input, options = {}) {\n\toptions = {...options};\n\n\tvalidateRetries(options.retries);\n\n\tif (Object.hasOwn(options, 'forever')) {\n\t\tthrow new Error('The `forever` option is no longer supported. For many use-cases, you can set `retries: Infinity` instead.');\n\t}\n\n\toptions.retries ??= 10;\n\toptions.factor ??= 2;\n\toptions.minTimeout ??= 1000;\n\toptions.maxTimeout ??= Number.POSITIVE_INFINITY;\n\toptions.maxRetryTime ??= Number.POSITIVE_INFINITY;\n\toptions.randomize ??= false;\n\toptions.onFailedAttempt ??= () => {};\n\toptions.shouldRetry ??= () => true;\n\toptions.shouldConsumeRetry ??= () => true;\n\n\t// Validate numeric options and normalize edge cases\n\tvalidateFunctionOption('onFailedAttempt', options.onFailedAttempt);\n\tvalidateFunctionOption('shouldRetry', options.shouldRetry);\n\tvalidateFunctionOption('shouldConsumeRetry', options.shouldConsumeRetry);\n\tvalidateNumberOption('factor', options.factor, {min: 0, allowInfinity: false});\n\tvalidateNumberOption('minTimeout', options.minTimeout, {min: 0, allowInfinity: false});\n\tvalidateNumberOption('maxTimeout', options.maxTimeout, {min: 0, allowInfinity: true});\n\tvalidateNumberOption('maxRetryTime', options.maxRetryTime, {min: 0, allowInfinity: true});\n\n\t// Treat non-positive factor as 1 to avoid zero backoff or negative behavior\n\tif (!(options.factor > 0)) {\n\t\toptions.factor = 1;\n\t}\n\n\toptions.signal?.throwIfAborted();\n\n\tlet attemptNumber = 0;\n\tlet retriesConsumed = 0;\n\tconst startTime = performance.now();\n\n\twhile (Number.isFinite(options.retries) ? retriesConsumed <= options.retries : true) {\n\t\tattemptNumber++;\n\n\t\ttry {\n\t\t\toptions.signal?.throwIfAborted();\n\n\t\t\tconst result = await input(attemptNumber);\n\n\t\t\toptions.signal?.throwIfAborted();\n\n\t\t\treturn result;\n\t\t} catch (error) {\n\t\t\tif (await onAttemptFailure({\n\t\t\t\terror,\n\t\t\t\tattemptNumber,\n\t\t\t\tretriesConsumed,\n\t\t\t\tstartTime,\n\t\t\t\toptions,\n\t\t\t})) {\n\t\t\t\tretriesConsumed++;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Should not reach here, but in case it does, throw an error\n\tthrow new Error('Retry attempts exhausted without throwing an error.');\n}\n\nexport function makeRetriable(function_, options) {\n\treturn function (...arguments_) {\n\t\treturn pRetry(() => function_.apply(this, arguments_), options);\n\t};\n}\n","import { AxiosResponse, isAxiosError } from 'axios';\nimport pRetry from 'p-retry';\n\n/**\n * Executes an HTTP request with automatic retries for transient failures.\n *\n * Retries are aborted immediately for responses with status codes listed in\n * `abortStatuses`, preserving the original AxiosError so that upstream error\n * handling (e.g. `handleRequestError`) can inspect it directly.\n *\n * @param callbackFn - A function that returns a promise resolving to an AxiosResponse\n * @param abortStatuses - HTTP status codes that should not be retried (default: `[404]`)\n * @returns The successful AxiosResponse\n */\nexport const downloadWithRetry = async (\n callbackFn: () => Promise<AxiosResponse>,\n abortStatuses: number[] = [404]\n) => {\n return await pRetry(callbackFn, {\n retries: 3,\n shouldRetry: ({ error }) => {\n if (isAxiosError(error) && abortStatuses.includes(error.response?.status ?? 0)) {\n return false;\n }\n return true;\n },\n });\n};\n","import packageJson from '../package.json' with { type: 'json' };\nimport {\n ApplicationReadResponse,\n ApplicationReadShortResponse,\n ItemState,\n ItemTerminationReason,\n PublicApi,\n RunCreationRequest,\n RunCreationResponse,\n VersionReadResponse,\n} from './generated/index.js';\nimport { APIError, AuthenticationError, UnexpectedError } from './errors.js';\nimport { isAxiosError } from 'axios';\nimport z from 'zod';\nimport { processApplicationRun } from './entities/application-run/process-application-run.js';\nimport { ApplicationRun } from './entities/application-run/types.js';\nimport { processRunItem } from './entities/run-item/process-run-item.js';\nimport { ApplicationRunItem } from './entities/run-item/types.js';\nimport { downloadWithRetry } from './utils/downloadWithRetry.js';\nimport type { Readable } from 'node:stream';\n\nconst validationErrorSchema = z.object({\n detail: z.array(\n z.object({\n loc: z.array(z.union([z.string(), z.number()])),\n msg: z.string(),\n type: z.string(),\n })\n ),\n});\n\nconst errorResponseSchema = z.union([validationErrorSchema, z.any()]);\n\nfunction handleRequestError(error: unknown): never {\n if (isAxiosError(error)) {\n switch (error.status) {\n case 422: {\n throw new APIError(`Validation error: ${error.message}`, {\n context: {\n responseBody: validationErrorSchema.parse(error.response?.data),\n },\n originalError: error,\n statusCode: 422,\n });\n }\n case 404: {\n throw new APIError(`Resource not found: ${error.message}`, {\n context: {\n responseBody: errorResponseSchema.parse(error.response?.data),\n },\n originalError: error,\n statusCode: 404,\n });\n }\n case 403: {\n throw new APIError(`Access forbidden: ${error.message}`, {\n context: {\n responseBody: errorResponseSchema.parse(error.response?.data),\n },\n originalError: error,\n statusCode: 403,\n });\n }\n case 410: {\n throw new APIError(`Resource gone: ${error.message}`, {\n context: {\n responseBody: errorResponseSchema.parse(error.response?.data),\n },\n originalError: error,\n statusCode: 410,\n });\n }\n default: {\n throw new APIError(`API request failed: ${error.message}`, {\n context: {\n responseBody: errorResponseSchema.parse(error.response?.data),\n },\n originalError: error,\n });\n }\n }\n }\n throw new UnexpectedError(`Unexpected error: ${String(error)}`, { originalError: error });\n}\n\n/**\n * Token provider function that returns a valid access token\n */\nexport type TokenProvider = () => Promise<string | null> | string | null;\n\n/**\n * Configuration options for the Platform SDK\n */\nexport interface PlatformSDKConfig {\n /**\n * Base URL for the API\n */\n baseURL?: string;\n\n /**\n * Token provider function for dynamic token retrieval\n * This function will be called when a token is needed\n */\n tokenProvider: TokenProvider;\n\n /**\n * Request timeout in milliseconds\n */\n timeout?: number;\n}\n\nexport interface PlatformSDK {\n getVersion(): string;\n getConfig(): PlatformSDKConfig;\n testConnection(): Promise<boolean>;\n listApplications(): Promise<ApplicationReadShortResponse[]>;\n getApplication(applicationId: string): Promise<ApplicationReadResponse>;\n listApplicationRuns(options?: {\n applicationId?: string;\n applicationVersion?: string;\n page?: number;\n pageSize?: number;\n customMetadata?: string;\n sort?: string[];\n }): Promise<ApplicationRun[]>;\n createApplicationRun(request: RunCreationRequest): Promise<RunCreationResponse>;\n getRun(applicationRunId: string): Promise<ApplicationRun>;\n cancelApplicationRun(applicationRunId: string): Promise<void>;\n listRunResults(\n applicationRunId: string,\n options?: {\n page?: number;\n pageSize?: number;\n sort?: string[];\n externalIdIn?: string[];\n state?: ItemState;\n terminationReason?: ItemTerminationReason;\n }\n ): Promise<ApplicationRunItem[]>;\n getApplicationVersionDetails(\n applicationId: string,\n version: string\n ): Promise<VersionReadResponse>;\n downloadArtifact(runId: string, artifactId: string): Promise<ArrayBuffer>;\n downloadArtifactStream(runId: string, artifactId: string): Promise<Readable>;\n}\n/**\n * Main SDK class for interacting with the Aignostics Platform\n */\nexport class PlatformSDKHttp implements PlatformSDK {\n readonly #config: Readonly<PlatformSDKConfig>;\n\n /**\n * Creates a new instance of the Platform SDK\n * @param config Configuration options\n */\n constructor(config: PlatformSDKConfig) {\n this.#config = {\n baseURL: config.baseURL || 'https://api.aignostics.com',\n timeout: config.timeout || 10000,\n ...config,\n };\n }\n\n async #getClient(): Promise<PublicApi> {\n const accessToken = await this.#config.tokenProvider();\n\n // Throw error if no token is available\n if (!accessToken) {\n throw new AuthenticationError(\n 'No access token available. Please provide a tokenProvider in the SDK configuration that returns a valid token.'\n );\n }\n\n return new PublicApi({\n basePath: this.#config.baseURL,\n accessToken,\n isJsonMime(mime) {\n return mime === 'application/json';\n },\n });\n }\n\n /**\n * Test the connection to the Aignostics Platform API\n *\n * This method performs a simple API call to verify that the SDK can successfully\n * connect to the platform using the provided configuration and authentication.\n * It's useful for validating setup and troubleshooting connectivity issues.\n *\n * @returns A promise that resolves to `true` if the connection is successful\n * @throws {AuthenticationError} If no valid authentication token is available\n * @throws {Error} If the connection test fails due to network issues or API errors\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * const isConnected = await sdk.testConnection();\n * console.log('Connection successful:', isConnected);\n * } catch (error) {\n * console.error('Connection failed:', error.message);\n * }\n * ```\n */\n async testConnection(): Promise<boolean> {\n const client = await this.#getClient();\n try {\n const response = await client.listApplicationsV1ApplicationsGet();\n return response.status === 200;\n } catch (error) {\n throw new Error(`Connection test failed: ${String(error)}`);\n }\n }\n\n /**\n * Retrieve a list of all available applications on the platform\n *\n * This method fetches all applications that are accessible with the current\n * authentication credentials. Applications represent different AI models or\n * processing pipelines available on the Aignostics Platform.\n *\n * @returns A promise that resolves to an array of application objects\n * @throws {AuthenticationError} If no valid authentication token is available\n * @throws {Error} If the request fails due to network issues or API errors\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * const applications = await sdk.listApplications();\n * console.log(`Found ${applications.length} applications`);\n * applications.forEach(app => {\n * console.log(`- ${app.name} (ID: ${app.id})`);\n * });\n * } catch (error) {\n * console.error('Failed to list applications:', error.message);\n * }\n * ```\n */\n async listApplications(): Promise<ApplicationReadShortResponse[]> {\n const client = await this.#getClient();\n try {\n const response = await client.listApplicationsV1ApplicationsGet();\n return response.data;\n } catch (error) {\n handleRequestError(error);\n }\n }\n\n /**\n * Retrieve detailed information about a specific application version\n *\n * This method fetches comprehensive details about a specific version of an\n * application, including its changelog, release date, and any version-specific\n * configurations or features.\n *\n * @param applicationId - The unique identifier of the application\n * @param version - The version string of the application to retrieve\n * @returns A promise that resolves to the application version details\n * @throws {Error} If the request fails due to network issues, authentication problems, invalid application ID or version, or API errors\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * const appVersion = await sdk.getApplicationVersionDetails('app-123', 'v1.2.0');\n * console.log(`Application Version: ${appVersion.version}`);\n * console.log(`Release Date: ${appVersion.release_date}`);\n * console.log(`Changelog: ${appVersion.changelog}`);\n * } catch (error) {\n * console.error('Failed to get application version details:', error.message);\n * }\n * ```\n */\n\n async getApplicationVersionDetails(\n applicationId: string,\n version: string\n ): Promise<VersionReadResponse> {\n const client = await this.#getClient();\n try {\n const response =\n await client.applicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGet({\n applicationId,\n version,\n });\n return response.data;\n } catch (error) {\n handleRequestError(error);\n }\n }\n\n /**\n * Retrieve detailed information about a specific application\n *\n * This method fetches comprehensive details about an application, including\n * its name, description, regulatory classes, and all available versions.\n * This provides more detailed information compared to the summary returned\n * by `listApplications()`.\n *\n * @param applicationId - The unique identifier of the application to retrieve\n * @returns A promise that resolves to the complete application details\n * @throws {Error} If the request fails due to network issues, authentication problems, invalid application ID, or API errors\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * const application = await sdk.getApplication('app-123');\n * console.log(`Application: ${application.name}`);\n * console.log(`Description: ${application.description}`);\n * console.log(`Available versions: ${application.versions.length}`);\n *\n * application.versions.forEach(version => {\n * console.log(`- ${version.version} (ID: ${version.application_version_id})`);\n * });\n * } catch (error) {\n * console.error('Failed to get application details:', error.message);\n * }\n * ```\n */\n async getApplication(applicationId: string): Promise<ApplicationReadResponse> {\n const client = await this.#getClient();\n try {\n const response = await client.readApplicationByIdV1ApplicationsApplicationIdGet({\n applicationId,\n });\n return response.data;\n } catch (error) {\n handleRequestError(error);\n }\n }\n\n /**\n * Retrieve a list of application runs with optional filtering\n *\n * This method fetches application runs (processing jobs) that have been\n * submitted to the platform. You can optionally filter by application ID\n * and/or application version to narrow down the results.\n *\n * @param options - Optional filtering parameters\n * @param options.applicationId - Filter runs by specific application ID\n * @param options.applicationVersion - Filter runs by specific application version\n * @returns A promise that resolves to an array of application run objects\n * @throws {Error} If the request fails due to network issues, authentication problems, or API errors\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * // Get all runs\n * const allRuns = await sdk.listApplicationRuns();\n *\n * // Get runs for a specific application\n * const appRuns = await sdk.listApplicationRuns({\n * applicationId: 'app-123'\n * });\n *\n * // Get runs for a specific application version\n * const versionRuns = await sdk.listApplicationRuns({\n * applicationId: 'app-123',\n * applicationVersion: 'v1.2.0'\n * });\n *\n * console.log(`Found ${allRuns.length} total runs`);\n * } catch (error) {\n * console.error('Failed to list application runs:', error.message);\n * }\n * ```\n */\n async listApplicationRuns(options?: {\n applicationId?: string;\n applicationVersion?: string;\n customMetadata?: string;\n sort?: string[];\n page?: number;\n pageSize?: number;\n }): Promise<ApplicationRun[]> {\n const client = await this.#getClient();\n try {\n const response = await client.listRunsV1RunsGet({\n applicationId: options?.applicationId,\n applicationVersion: options?.applicationVersion,\n customMetadata: options?.customMetadata,\n sort: options?.sort,\n page: options?.page,\n pageSize: options?.pageSize,\n });\n\n // Enrich each raw RunReadResponse with computed properties\n return response.data.map(processApplicationRun);\n } catch (error) {\n handleRequestError(error);\n }\n }\n\n /**\n * Create and submit a new application run for processing\n *\n * This method creates a new processing job by submitting data items to a\n * specific application version. The run will be queued and processed\n * asynchronously on the Aignostics Platform.\n *\n * @param request - The run creation request containing application version ID and items to process\n * @returns A promise that resolves to the created run response with run ID and status\n * @throws {Error} If the request fails due to network issues, authentication problems, invalid request data, or API errors\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * const runRequest = {\n * application_version_id: 'app-version-123',\n * items: [\n * {\n * id: 'item-1',\n * data: { }\n * },\n * {\n * id: 'item-2',\n * data: { }\n * }\n * ]\n * };\n *\n * const run = await sdk.createApplicationRun(runRequest);\n * console.log(`Created run with ID: ${run.id}`);\n * console.log(`Status: ${run.status}`);\n * } catch (error) {\n * console.error('Failed to create application run:', error.message);\n * }\n * ```\n */\n async createApplicationRun(request: RunCreationRequest): Promise<RunCreationResponse> {\n const client = await this.#getClient();\n try {\n const response = await client.createRunV1RunsPost({\n runCreationRequest: request,\n });\n return response.data;\n } catch (error) {\n handleRequestError(error);\n }\n }\n\n /**\n * Retrieve detailed information about a specific application run\n *\n * This method fetches complete details about a processing job, including\n * its current status, progress, metadata, and execution information.\n *\n * @param applicationRunId - The unique identifier of the application run\n * @returns A promise that resolves to the run details object\n * @throws {Error} If the request fails due to network issues, authentication problems, invalid run ID, or API errors\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * const run = await sdk.getRun('run-123');\n * console.log(`Run ID: ${run.id}`);\n * console.log(`Status: ${run.status}`);\n * console.log(`Progress: ${run.progress}%`);\n * console.log(`Created: ${run.created_at}`);\n * } catch (error) {\n * console.error('Failed to get run details:', error.message);\n * }\n * ```\n */\n async getRun(applicationRunId: string): Promise<ApplicationRun> {\n const client = await this.#getClient();\n try {\n const response = await client.getRunV1RunsRunIdGet({\n runId: applicationRunId,\n });\n\n // Enrich raw RunReadResponse with computed properties\n return processApplicationRun(response.data);\n } catch (error) {\n handleRequestError(error);\n }\n }\n\n /**\n * Cancel a running or queued application run\n *\n * This method attempts to cancel an application run that is currently\n * in progress or waiting in the queue. Once cancelled, the run cannot\n * be resumed and will transition to a cancelled state.\n *\n * @param applicationRunId - The unique identifier of the application run to cancel\n * @returns A promise that resolves when the cancellation request is successful\n * @throws {Error} If the request fails due to network issues, authentication problems, invalid run ID, or if the run cannot be cancelled\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * await sdk.cancelApplicationRun('run-123');\n * console.log('Run cancellation requested successfully');\n *\n * // Check the status to confirm cancellation\n * const run = await sdk.getRun('run-123');\n * console.log(`Updated status: ${run.status}`);\n * } catch (error) {\n * console.error('Failed to cancel run:', error.message);\n * }\n * ```\n */\n async cancelApplicationRun(applicationRunId: string): Promise<void> {\n const client = await this.#getClient();\n try {\n await client.cancelRunV1RunsRunIdCancelPost({\n runId: applicationRunId,\n });\n } catch (error) {\n handleRequestError(error);\n }\n }\n\n /**\n * Retrieve the processing results for a completed application run\n *\n * This method fetches all result items produced by a completed application run.\n * Results include the processed data, analysis outcomes, and any generated\n * artifacts from the AI model execution.\n *\n * @param applicationRunId - The unique identifier of the application run\n * @returns A promise that resolves to an array of result items\n * @throws {Error} If the request fails due to network issues, authentication problems, invalid run ID, or API errors\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * const results = await sdk.listRunResults('run-123');\n * console.log(`Found ${results.length} result items`);\n *\n * results.forEach((result, index) => {\n * console.log(`Result ${index + 1}:`);\n * console.log(`- Item ID: ${result.item_id}`);\n * console.log(`- Status: ${result.status}`);\n * console.log(`- Data: ${JSON.stringify(result.data)}`);\n * });\n * } catch (error) {\n * console.error('Failed to list run results:', error.message);\n * }\n * ```\n */\n async listRunResults(\n applicationRunId: string,\n {\n page,\n pageSize,\n sort,\n externalIdIn,\n state,\n terminationReason,\n }: {\n page?: number;\n pageSize?: number;\n sort?: string[];\n externalIdIn?: string[];\n state?: ItemState;\n terminationReason?: ItemTerminationReason;\n } = {}\n ): Promise<ApplicationRunItem[]> {\n const client = await this.#getClient();\n try {\n const response = await client.listRunItemsV1RunsRunIdItemsGet({\n runId: applicationRunId,\n page,\n pageSize,\n sort,\n externalIdIn,\n state,\n terminationReason,\n });\n\n // Enrich each raw ItemResultReadResponse with computed properties\n return response.data.map(processRunItem);\n } catch (error) {\n handleRequestError(error);\n }\n }\n\n /**\n * Get the current version of the SDK\n *\n * This method returns the version string of the Platform SDK, which can be\n * useful for debugging, logging, or ensuring compatibility with API versions.\n *\n * @returns The SDK version string (e.g., \"1.2.3\")\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n * console.log(`Using SDK version: ${sdk.getVersion()}`);\n * ```\n */\n getVersion(): string {\n return packageJson.version;\n }\n\n /**\n * Get the current SDK configuration\n *\n * This method returns a copy of the current configuration used by the SDK,\n * including the base URL, timeout settings, and other options. The returned\n * object is a copy to prevent accidental modification of the internal config.\n *\n * @returns A copy of the current SDK configuration object\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({\n * baseURL: 'https://api.aignostics.com',\n * tokenProvider: () => 'your-token',\n * timeout: 30000\n * });\n *\n * const config = sdk.getConfig();\n * console.log(`Base URL: ${config.baseURL}`);\n * console.log(`Timeout: ${config.timeout}ms`);\n * ```\n */\n getConfig(): PlatformSDKConfig {\n return { ...this.#config };\n }\n\n /**\n * Download an artifact file from a completed application run\n *\n * This method retrieves the binary content of a specific artifact produced\n * during an application run. Artifacts can include generated reports, processed\n * images, or other output files from the AI model execution.\n *\n * The download is performed with automatic retries for transient failures.\n * Non-retryable HTTP status codes (403, 404, 410, 422) will abort immediately.\n *\n * @param runId - The unique identifier of the application run\n * @param artifactId - The unique identifier of the artifact to download\n * @returns A promise that resolves to an ArrayBuffer containing the artifact's binary content\n * @throws {AuthenticationError} If no valid authentication token is available\n * @throws {APIError} If the API request fails (e.g., 403, 404, 410, 422, or other HTTP errors)\n * @throws {UnexpectedError} If a non-HTTP error occurs\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * const buffer = await sdk.downloadArtifact('run-123', 'artifact-456');\n * console.log(`Downloaded ${buffer.byteLength} bytes`);\n *\n * // Write to file (Node.js)\n * fs.writeFileSync('output.bin', Buffer.from(buffer));\n * } catch (error) {\n * console.error('Failed to download artifact:', error.message);\n * }\n * ```\n */\n async downloadArtifact(runId: string, artifactId: string): Promise<ArrayBuffer> {\n const client = await this.#getClient();\n try {\n const response = await downloadWithRetry(\n () =>\n client.getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet(\n {\n runId,\n artifactId,\n },\n {\n responseType: 'arraybuffer',\n }\n ),\n [403, 404, 410, 422]\n );\n return response.data as ArrayBuffer;\n } catch (error) {\n handleRequestError(error);\n }\n }\n\n /**\n * Download an artifact file from a completed application run as a stream\n *\n * Prefer this method over `downloadArtifact` when downloading large (e.g. multi-gigabyte)\n * artifacts: instead of buffering the entire file into memory before returning it, this\n * method streams the artifact's bytes as they arrive, keeping memory usage low regardless\n * of the artifact's size.\n *\n * The download is performed with automatic retries for transient failures.\n * Non-retryable HTTP status codes (403, 404, 410, 422) will abort immediately.\n *\n * @param runId - The unique identifier of the application run\n * @param artifactId - The unique identifier of the artifact to download\n * @returns A promise that resolves to a Node.js `Readable` stream yielding the artifact's binary content\n * @throws {AuthenticationError} If no valid authentication token is available\n * @throws {APIError} If the API request fails (e.g., 403, 404, 410, 422, or other HTTP errors)\n * @throws {UnexpectedError} If a non-HTTP error occurs\n *\n * @example\n * ```typescript\n * import { pipeline } from 'node:stream/promises';\n * import { createWriteStream } from 'node:fs';\n *\n * const stream = await sdk.downloadArtifactStream('run-123', 'artifact-456');\n * await pipeline(stream, createWriteStream('output.bin'));\n * ```\n *\n * @remarks\n * Retries only cover failures at the initial-request stage (a non-2xx status surfaced from\n * the response headers before the body begins streaming). Once the response body has started\n * streaming, a mid-stream connection drop CANNOT be retried by this method — the consumer must\n * listen for the stream's `error` event and re-download if needed.\n */\n async downloadArtifactStream(runId: string, artifactId: string): Promise<Readable> {\n const client = await this.#getClient();\n try {\n const response = await downloadWithRetry(\n () =>\n client.getArtifactUrlV1RunsRunIdArtifactsArtifactIdFileGet(\n {\n runId,\n artifactId,\n },\n {\n responseType: 'stream',\n }\n ),\n [403, 404, 410, 422]\n );\n return response.data as Readable;\n } catch (error) {\n handleRequestError(error);\n }\n }\n}\n","import { PlatformSDKHttp } from './platform-sdk.js';\n\n// Export generated API types and client when available\nexport * from './generated/index.js';\n\n// Export error classes\nexport { BaseError, AuthenticationError, APIError, ConfigurationError } from './errors.js';\n\nexport type { ApplicationRun } from './entities/application-run/types.js';\nexport { processApplicationRun } from './entities/application-run/process-application-run.js';\nexport {\n getRunProgress,\n getRunStatus,\n canDownloadRunItems,\n} from './entities/application-run/utils.js';\nexport type { ApplicationRunItem, ItemStatus } from './entities/run-item/types.js';\nexport { processRunItem } from './entities/run-item/process-run-item.js';\nexport { canDownloadItem, getItemStatus } from './entities/run-item/utils.js';\n// Export main SDK and types\nexport {\n PlatformSDKHttp,\n type PlatformSDKConfig,\n type PlatformSDK,\n type TokenProvider,\n} from './platform-sdk.js';\n\n// Export main SDK as default\nexport default PlatformSDKHttp;\n"]}
|