@aignostics/sdk 2.3.1
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/README.md +33 -0
- package/dist/aignostics-sdk-2.3.1.tgz +0 -0
- package/dist/index.cjs +1397 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1909 -0
- package/dist/index.d.ts +1909 -0
- package/dist/index.js +1375 -0
- package/dist/index.js.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +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/platform-sdk.ts","../src/index.ts"],"names":["globalAxios","BASE_PATH"],"mappings":";;;;AAAA,IAAA,eAAA,GAAA;AAAA,EAEE,OAAA,EAAW,mBA6Cb,CAAA;AC1BO,IAAM,SAAA,GAAY,uCAAA,CAAwC,OAAA,CAAQ,MAAA,EAAQ,EAAE,CAAA;AA4B5E,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,MAAA,IAAA,CAAK,aAAA,GAAgB,aAAA;AACrB,MAAA,IAAA,CAAK,QAAA,GAAW,cAAc,QAAA,IAAY,QAAA;AAAA,IAC9C;AAAA,EACJ;AAAA,EAPU,aAAA;AAQd,CAAA;AAQO,IAAM,aAAA,GAAN,cAA4B,KAAA,CAAM;AAAA,EACrC,WAAA,CAAmB,OAAe,GAAA,EAAc;AAC5C,IAAA,KAAA,CAAM,GAAG,CAAA;AADM,IAAA,IAAA,CAAA,KAAA,GAAA,KAAA;AAEf,IAAA,IAAA,CAAK,IAAA,GAAO,eAAA;AAAA,EAChB;AACJ,CA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,MAAA,MAAM,OAAO,oDAAA,CAAqD;AAAA,QAChE;AAAA,OACD,CAAA;AAAA,IACH,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,EAgCA,MAAM,eAAe,gBAAA,EAA6D;AAChF,IAAA,MAAM,MAAA,GAAS,MAAM,IAAA,CAAK,UAAA,EAAW;AACrC,IAAA,IAAI;AACF,MAAA,MAAM,QAAA,GAAW,MAAM,MAAA,CAAO,8CAAA,CAA+C;AAAA,QAC3E;AAAA,OACD,CAAA;AAED,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,EAgBA,UAAA,GAAqB;AACnB,IAAA,OAAO,eAAA,CAAY,OAAA;AAAA,EACrB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAwBA,SAAA,GAA+B;AAC7B,IAAA,OAAO,EAAE,GAAG,IAAA,CAAK,OAAA,EAAQ;AAAA,EAC3B;AACF;;;ACjfA,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 \"./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.11.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 reference\n * Pagination is done via `page` and `page_size`. Sorting via `sort` query parameter. The `sort` query parameter can be provided multiple times. The sorting direction can be indicated via `+` (ascending) or `-` (descending) (e.g. `/v1/applications?sort=+name)`.\n *\n * The version of the OpenAPI document: 1.0.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://raw.githubusercontent.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 reference\n * Pagination is done via `page` and `page_size`. Sorting via `sort` query parameter. The `sort` query parameter can be provided multiple times. The sorting direction can be indicated via `+` (ascending) or `-` (descending) (e.g. `/v1/applications?sort=+name)`.\n *\n * The version of the OpenAPI document: 1.0.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 reference\n * Pagination is done via `page` and `page_size`. Sorting via `sort` query parameter. The `sort` query parameter can be provided multiple times. The sorting direction can be indicated via `+` (ascending) or `-` (descending) (e.g. `/v1/applications?sort=+name)`.\n *\n * The version of the OpenAPI document: 1.0.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 * \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 class, to which the applications compliance\n * @type {Array<string>}\n * @memberof ApplicationReadResponse\n */\n 'regulatory_classes': Array<string>;\n /**\n * Application documentations\n * @type {string}\n * @memberof ApplicationReadResponse\n */\n 'description': string;\n}\n/**\n * \n * @export\n * @enum {string}\n */\n\nexport const ApplicationRunStatus = {\n CanceledSystem: 'CANCELED_SYSTEM',\n CanceledUser: 'CANCELED_USER',\n Completed: 'COMPLETED',\n CompletedWithError: 'COMPLETED_WITH_ERROR',\n Received: 'RECEIVED',\n Rejected: 'REJECTED',\n Running: 'RUNNING',\n Scheduled: 'SCHEDULED'\n} as const;\n\nexport type ApplicationRunStatus = typeof ApplicationRunStatus[keyof typeof ApplicationRunStatus];\n\n\n/**\n * \n * @export\n * @interface ApplicationVersionReadResponse\n */\nexport interface ApplicationVersionReadResponse {\n /**\n * Application version ID\n * @type {string}\n * @memberof ApplicationVersionReadResponse\n */\n 'application_version_id': string;\n /**\n * Semantic version of the application\n * @type {string}\n * @memberof ApplicationVersionReadResponse\n */\n 'version': string;\n /**\n * Application ID\n * @type {string}\n * @memberof ApplicationVersionReadResponse\n */\n 'application_id': string;\n /**\n * \n * @type {string}\n * @memberof ApplicationVersionReadResponse\n */\n 'flow_id'?: string | null;\n /**\n * Description of the changes relative to the previous version\n * @type {string}\n * @memberof ApplicationVersionReadResponse\n */\n 'changelog': string;\n /**\n * List of the input fields, provided by the User\n * @type {Array<InputArtifactReadResponse>}\n * @memberof ApplicationVersionReadResponse\n */\n 'input_artifacts': Array<InputArtifactReadResponse>;\n /**\n * List of the output fields, generated by the application\n * @type {Array<OutputArtifactReadResponse>}\n * @memberof ApplicationVersionReadResponse\n */\n 'output_artifacts': Array<OutputArtifactReadResponse>;\n /**\n * The timestamp when the application version was registered\n * @type {string}\n * @memberof ApplicationVersionReadResponse\n */\n 'created_at': string;\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 InputArtifactCreationRequest\n */\nexport interface InputArtifactCreationRequest {\n /**\n * The artifact name according to the application version. List of required artifacts is returned by `/v1/versions/{application_version_id}`. The artifact names are located in the `input_artifacts.[].name` value\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 {object}\n * @memberof InputArtifactCreationRequest\n */\n 'metadata': object;\n}\n/**\n * \n * @export\n * @interface InputArtifactReadResponse\n */\nexport interface InputArtifactReadResponse {\n /**\n * \n * @type {string}\n * @memberof InputArtifactReadResponse\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof InputArtifactReadResponse\n */\n 'mime_type': string;\n /**\n * \n * @type {object}\n * @memberof InputArtifactReadResponse\n */\n 'metadata_schema': object;\n}\n/**\n * \n * @export\n * @interface ItemCreationRequest\n */\nexport interface ItemCreationRequest {\n /**\n * The ID of the slide provided by the caller. The reference should be unique across all items of the application run\n * @type {string}\n * @memberof ItemCreationRequest\n */\n 'reference': string;\n /**\n * All the input files of the item, required by the application version\n * @type {Array<InputArtifactCreationRequest>}\n * @memberof ItemCreationRequest\n */\n 'input_artifacts': Array<InputArtifactCreationRequest>;\n}\n/**\n * \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 * Application run UUID to which the item belongs\n * @type {string}\n * @memberof ItemResultReadResponse\n */\n 'application_run_id': string;\n /**\n * The reference of the item from the user payload\n * @type {string}\n * @memberof ItemResultReadResponse\n */\n 'reference': string;\n /**\n * When the item is not processed yet, the status is set to `pending`. When the item is successfully finished, status is set to `succeeded`, and the processing results become available for download in `output_artifacts` field. When the item processing is failed because the provided item is invalid, the status is set to `error_user`. When the item processing failed because of the error in the model or platform, the status is set to `error_system`. When the application_run is canceled, the status of all pending items is set to either `cancelled_user` or `cancelled_system`. \n * @type {ItemStatus}\n * @memberof ItemResultReadResponse\n */\n 'status': ItemStatus;\n /**\n * \n * @type {string}\n * @memberof ItemResultReadResponse\n */\n 'error': string | null;\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 ItemStatus = {\n Pending: 'PENDING',\n CanceledUser: 'CANCELED_USER',\n CanceledSystem: 'CANCELED_SYSTEM',\n ErrorUser: 'ERROR_USER',\n ErrorSystem: 'ERROR_SYSTEM',\n Succeeded: 'SUCCEEDED'\n} as const;\n\nexport type ItemStatus = typeof ItemStatus[keyof typeof ItemStatus];\n\n\n/**\n * \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 * 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\n * @export\n * @interface OrganizationReadResponse\n */\nexport interface OrganizationReadResponse {\n /**\n * \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 * \n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_bucket_hmac_access_key_id': string;\n /**\n * \n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_bucket_hmac_secret_access_key': string;\n /**\n * \n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_bucket_name': string;\n /**\n * \n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_bucket_protocol': string;\n /**\n * \n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_logfire_token': string;\n /**\n * \n * @type {string}\n * @memberof OrganizationReadResponse\n */\n 'aignostics_sentry_dsn': string;\n}\n/**\n * \n * @export\n * @interface OutputArtifactReadResponse\n */\nexport interface OutputArtifactReadResponse {\n /**\n * \n * @type {string}\n * @memberof OutputArtifactReadResponse\n */\n 'name': string;\n /**\n * \n * @type {string}\n * @memberof OutputArtifactReadResponse\n */\n 'mime_type': string;\n /**\n * \n * @type {object}\n * @memberof OutputArtifactReadResponse\n */\n 'metadata_schema': object;\n /**\n * \n * @type {OutputArtifactScope}\n * @memberof OutputArtifactReadResponse\n */\n 'scope': OutputArtifactScope;\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 * The metadata of the output artifact, provided by the application\n * @type {object}\n * @memberof OutputArtifactResultReadResponse\n */\n 'metadata': object;\n /**\n * \n * @type {string}\n * @memberof OutputArtifactResultReadResponse\n */\n 'download_url': string | null;\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 * @interface PayloadInputArtifact\n */\nexport interface PayloadInputArtifact {\n /**\n * \n * @type {string}\n * @memberof PayloadInputArtifact\n */\n 'input_artifact_id'?: string;\n /**\n * \n * @type {object}\n * @memberof PayloadInputArtifact\n */\n 'metadata': object;\n /**\n * \n * @type {string}\n * @memberof PayloadInputArtifact\n */\n 'download_url': string;\n}\n/**\n * \n * @export\n * @interface PayloadItem\n */\nexport interface PayloadItem {\n /**\n * \n * @type {string}\n * @memberof PayloadItem\n */\n 'item_id': string;\n /**\n * \n * @type {{ [key: string]: PayloadInputArtifact; }}\n * @memberof PayloadItem\n */\n 'input_artifacts': { [key: string]: PayloadInputArtifact; };\n /**\n * \n * @type {{ [key: string]: PayloadOutputArtifact; }}\n * @memberof PayloadItem\n */\n 'output_artifacts': { [key: string]: PayloadOutputArtifact; };\n}\n/**\n * \n * @export\n * @interface PayloadOutputArtifact\n */\nexport interface PayloadOutputArtifact {\n /**\n * \n * @type {string}\n * @memberof PayloadOutputArtifact\n */\n 'output_artifact_id': string;\n /**\n * \n * @type {TransferUrls}\n * @memberof PayloadOutputArtifact\n */\n 'data': TransferUrls;\n /**\n * \n * @type {TransferUrls}\n * @memberof PayloadOutputArtifact\n */\n 'metadata': TransferUrls;\n}\n/**\n * Application run payload. 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 * Application version ID\n * @type {string}\n * @memberof RunCreationRequest\n */\n 'application_version_id': string;\n /**\n * List of the items to process by the application\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 'application_run_id'?: string;\n}\n/**\n * \n * @export\n * @interface RunReadResponse\n */\nexport interface RunReadResponse {\n /**\n * UUID of the application\n * @type {string}\n * @memberof RunReadResponse\n */\n 'application_run_id': string;\n /**\n * ID of the application version\n * @type {string}\n * @memberof RunReadResponse\n */\n 'application_version_id': string;\n /**\n * Organization of the owner of the application run\n * @type {string}\n * @memberof RunReadResponse\n */\n 'organization_id': string;\n /**\n * \n * @type {UserPayload}\n * @memberof RunReadResponse\n */\n 'user_payload'?: UserPayload | null;\n /**\n * When the application run request is received by the Platform, the `status` of it is set to `received`. Then it is transitioned to `scheduled`, when it is scheduled for the processing. When the application run is scheduled, it will process the input items and generate the result incrementally. As soon as the first result is generated, the state is changed to `running`. The results can be downloaded via `/v1/runs/{run_id}/results` endpoint. When all items are processed and all results are generated, the application status is set to `completed`. If the processing is done, but some items fail, the status is set to `completed_with_error`. When the application run request is rejected by the Platform before scheduling, it is transferred to `rejected`. When the application run reaches the threshold of number of failed items, the whole application run is set to `canceled_system` and the remaining pending items are not processed. When the application run fails, the finished item results are available for download. If the application run is canceled by calling `POST /v1/runs/{run_id}/cancel` endpoint, the processing of the items is stopped, and the application status is set to `cancelled_user` \n * @type {ApplicationRunStatus}\n * @memberof RunReadResponse\n */\n 'status': ApplicationRunStatus;\n /**\n * Timestamp showing when the application run was triggered\n * @type {string}\n * @memberof RunReadResponse\n */\n 'triggered_at': string;\n /**\n * Id of the user who triggered the application run\n * @type {string}\n * @memberof RunReadResponse\n */\n 'triggered_by': string;\n}\n\n\n/**\n * \n * @export\n * @interface TransferUrls\n */\nexport interface TransferUrls {\n /**\n * \n * @type {string}\n * @memberof TransferUrls\n */\n 'upload_url': string;\n /**\n * \n * @type {string}\n * @memberof TransferUrls\n */\n 'download_url': string;\n}\n/**\n * \n * @export\n * @interface UserPayload\n */\nexport interface UserPayload {\n /**\n * \n * @type {string}\n * @memberof UserPayload\n */\n 'application_id': string;\n /**\n * \n * @type {string}\n * @memberof UserPayload\n */\n 'application_run_id': string;\n /**\n * \n * @type {{ [key: string]: PayloadOutputArtifact; }}\n * @memberof UserPayload\n */\n 'global_output_artifacts': { [key: string]: PayloadOutputArtifact; } | null;\n /**\n * \n * @type {Array<PayloadItem>}\n * @memberof UserPayload\n */\n 'items': Array<PayloadItem>;\n}\n/**\n * 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 * \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 * \n * @export\n * @interface ValidationErrorLocInner\n */\nexport interface ValidationErrorLocInner {\n}\n\n/**\n * PublicApi - axios parameter creator\n * @export\n */\nexport const PublicApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * The application run can be canceled by the user who created the application run. The execution can be canceled any time while the application is not in a final state. The pending items will not be processed and will not add to the cost. When the application is canceled, the already completed items stay available for download.\n * @summary Cancel Application Run\n * @param {string} applicationRunId Application run id, returned by `POST /runs/` endpoint\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n cancelApplicationRunV1RunsApplicationRunIdCancelPost: async (applicationRunId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'applicationRunId' is not null or undefined\n assertParamExists('cancelApplicationRunV1RunsApplicationRunIdCancelPost', 'applicationRunId', applicationRunId)\n const localVarPath = `/v1/runs/{application_run_id}/cancel`\n .replace(`{${\"application_run_id\"}}`, encodeURIComponent(String(applicationRunId)));\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 * The endpoint is used to process the input items by the chosen application version. The endpoint returns the `application_run_id`. The processing fo the items is done asynchronously. To check the status or cancel the execution, use the /v1/runs/{application_run_id} endpoint. ### Payload The payload includes `application_version_id` and `items` base fields. `application_version_id` is the id used for `/v1/versions/{application_id}` endpoint. `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 metadata, specific to the chosen application. Example payload structure with the comments: ``` { application_version_id: \\\"test-app:v0.0.2\\\", items: [{ \\\"reference\\\": \\\"slide_1\\\", <-- Input ID to connect the input and the output artifact \\\"input_artifacts\\\": [{ \\\"name\\\": \\\"input_slide\\\", <-- Name of the artifact defined by the application (For HETA it is\\\"input_slide\\\") \\\"download_url\\\": \\\"https://...\\\", <-- signed URL to the input file in the S3 or GCS. Should be valid for more than 6 days \\\"metadata\\\": { <-- The metadata fields defined by the application. (The example fields set for a slide files are provided) \\\"checksum_base64_crc32c\\\": \\\"abc12==\\\", \\\"mime_type\\\": \\\"image/tiff\\\", \\\"height\\\": 100, \\\"weight\\\": 500, \\\"mpp\\\": 0.543 } }] }] } ``` ### Response The endpoint returns the application run UUID. After that the job is scheduled for the execution in the background. To check the status of the run call `v1/runs/{application_run_id}`. ### Rejection Apart from the authentication, authorization and malformed input error, the request can be rejected when the quota limit is exceeded. More details on quotas is described in the documentation\n * @summary Create Application Run\n * @param {RunCreationRequest} runCreationRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createApplicationRunV1RunsPost: async (runCreationRequest: RunCreationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'runCreationRequest' is not null or undefined\n assertParamExists('createApplicationRunV1RunsPost', '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 * Delete the application run results. It can only be called when the application is in a final state (meaning it\\'s not in `received` or `pending` states). To delete the results of the running artifacts, first call `POST /v1/runs/{application_run_id}/cancel` to cancel the application run. The output results are deleted automatically 30 days after the application run is finished.\n * @summary Delete Application Run Results\n * @param {string} applicationRunId Application run id, returned by `POST /runs/` endpoint\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteApplicationRunResultsV1RunsApplicationRunIdResultsDelete: async (applicationRunId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'applicationRunId' is not null or undefined\n assertParamExists('deleteApplicationRunResultsV1RunsApplicationRunIdResultsDelete', 'applicationRunId', applicationRunId)\n const localVarPath = `/v1/runs/{application_run_id}/results`\n .replace(`{${\"application_run_id\"}}`, encodeURIComponent(String(applicationRunId)));\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 * @summary Get Me\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 * Returns the details of the application run. The application run is available as soon as it is created via `POST /runs/` endpoint. To download the items results, call `/runs/{application_run_id}/results`. The application is only available to the user who triggered it, regardless of the role.\n * @summary Get Run\n * @param {string} applicationRunId Application run id, returned by `POST /runs/` endpoint\n * @param {Array<any> | null} [include] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getRunV1RunsApplicationRunIdGet: async (applicationRunId: string, include?: Array<any> | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'applicationRunId' is not null or undefined\n assertParamExists('getRunV1RunsApplicationRunIdGet', 'applicationRunId', applicationRunId)\n const localVarPath = `/v1/runs/{application_run_id}`\n .replace(`{${\"application_run_id\"}}`, encodeURIComponent(String(applicationRunId)));\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 (include) {\n localVarQueryParameter['include'] = include;\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 * The endpoint returns the application runs triggered by the caller. After the application run is created by POST /v1/runs, it becomes available for the current endpoint\n * @summary List Application Runs\n * @param {string | null} [applicationId] Optional application ID filter\n * @param {string | null} [applicationVersion] Optional application version filter\n * @param {Array<any> | null} [include] Request optional output values. Used internally by the platform\n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listApplicationRunsV1RunsGet: async (applicationId?: string | null, applicationVersion?: string | null, include?: Array<any> | null, page?: number, pageSize?: number, 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 (include) {\n localVarQueryParameter['include'] = include;\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 * Returns the list of the applications, available to the caller. The application is available if any of the version of the application is assigned to the user organization. To switch between organizations, the user should re-login and choose the needed organization.\n * @summary List Applications\n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] \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 * Get the list of the results for the run items\n * @summary List Run Results\n * @param {string} applicationRunId Application run id, returned by `POST /runs/` endpoint\n * @param {Array<string> | null} [itemIdIn] Filter for items ids\n * @param {Array<string> | null} [referenceIn] Filter for items by their reference from the input payload\n * @param {Array<ItemStatus> | null} [statusIn] Filter for items in certain statuses\n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listRunResultsV1RunsApplicationRunIdResultsGet: async (applicationRunId: string, itemIdIn?: Array<string> | null, referenceIn?: Array<string> | null, statusIn?: Array<ItemStatus> | null, page?: number, pageSize?: number, sort?: Array<string> | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'applicationRunId' is not null or undefined\n assertParamExists('listRunResultsV1RunsApplicationRunIdResultsGet', 'applicationRunId', applicationRunId)\n const localVarPath = `/v1/runs/{application_run_id}/results`\n .replace(`{${\"application_run_id\"}}`, encodeURIComponent(String(applicationRunId)));\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 (itemIdIn) {\n localVarQueryParameter['item_id__in'] = itemIdIn;\n }\n\n if (referenceIn) {\n localVarQueryParameter['reference__in'] = referenceIn;\n }\n\n if (statusIn) {\n localVarQueryParameter['status__in'] = statusIn;\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 * Returns the list of the application versions for this application, available to the caller. The application version is available if it is assigned to the user\\'s organization. The application versions are assigned to the organization by the Aignostics admin. To assign or unassign a version from your organization, please contact Aignostics support team.\n * @summary List Versions By Application Id\n * @param {string} applicationId \n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {string | null} [version] \n * @param {Array<any> | null} [include] \n * @param {Array<string> | null} [sort] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet: async (applicationId: string, page?: number, pageSize?: number, version?: string | null, include?: Array<any> | null, sort?: Array<string> | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'applicationId' is not null or undefined\n assertParamExists('listVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet', 'applicationId', applicationId)\n const localVarPath = `/v1/applications/{application_id}/versions`\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 if (page !== undefined) {\n localVarQueryParameter['page'] = page;\n }\n\n if (pageSize !== undefined) {\n localVarQueryParameter['page_size'] = pageSize;\n }\n\n if (version !== undefined) {\n localVarQueryParameter['version'] = version;\n }\n\n if (include) {\n localVarQueryParameter['include'] = include;\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};\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 * The application run can be canceled by the user who created the application run. The execution can be canceled any time while the application is not in a final state. The pending items will not be processed and will not add to the cost. When the application is canceled, the already completed items stay available for download.\n * @summary Cancel Application Run\n * @param {string} applicationRunId Application run id, returned by `POST /runs/` endpoint\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async cancelApplicationRunV1RunsApplicationRunIdCancelPost(applicationRunId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.cancelApplicationRunV1RunsApplicationRunIdCancelPost(applicationRunId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.cancelApplicationRunV1RunsApplicationRunIdCancelPost']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * The endpoint is used to process the input items by the chosen application version. The endpoint returns the `application_run_id`. The processing fo the items is done asynchronously. To check the status or cancel the execution, use the /v1/runs/{application_run_id} endpoint. ### Payload The payload includes `application_version_id` and `items` base fields. `application_version_id` is the id used for `/v1/versions/{application_id}` endpoint. `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 metadata, specific to the chosen application. Example payload structure with the comments: ``` { application_version_id: \\\"test-app:v0.0.2\\\", items: [{ \\\"reference\\\": \\\"slide_1\\\", <-- Input ID to connect the input and the output artifact \\\"input_artifacts\\\": [{ \\\"name\\\": \\\"input_slide\\\", <-- Name of the artifact defined by the application (For HETA it is\\\"input_slide\\\") \\\"download_url\\\": \\\"https://...\\\", <-- signed URL to the input file in the S3 or GCS. Should be valid for more than 6 days \\\"metadata\\\": { <-- The metadata fields defined by the application. (The example fields set for a slide files are provided) \\\"checksum_base64_crc32c\\\": \\\"abc12==\\\", \\\"mime_type\\\": \\\"image/tiff\\\", \\\"height\\\": 100, \\\"weight\\\": 500, \\\"mpp\\\": 0.543 } }] }] } ``` ### Response The endpoint returns the application run UUID. After that the job is scheduled for the execution in the background. To check the status of the run call `v1/runs/{application_run_id}`. ### Rejection Apart from the authentication, authorization and malformed input error, the request can be rejected when the quota limit is exceeded. More details on quotas is described in the documentation\n * @summary Create Application Run\n * @param {RunCreationRequest} runCreationRequest \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createApplicationRunV1RunsPost(runCreationRequest: RunCreationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunCreationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createApplicationRunV1RunsPost(runCreationRequest, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.createApplicationRunV1RunsPost']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Delete the application run results. It can only be called when the application is in a final state (meaning it\\'s not in `received` or `pending` states). To delete the results of the running artifacts, first call `POST /v1/runs/{application_run_id}/cancel` to cancel the application run. The output results are deleted automatically 30 days after the application run is finished.\n * @summary Delete Application Run Results\n * @param {string} applicationRunId Application run id, returned by `POST /runs/` endpoint\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async deleteApplicationRunResultsV1RunsApplicationRunIdResultsDelete(applicationRunId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApplicationRunResultsV1RunsApplicationRunIdResultsDelete(applicationRunId, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.deleteApplicationRunResultsV1RunsApplicationRunIdResultsDelete']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * \n * @summary Get Me\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 * Returns the details of the application run. The application run is available as soon as it is created via `POST /runs/` endpoint. To download the items results, call `/runs/{application_run_id}/results`. The application is only available to the user who triggered it, regardless of the role.\n * @summary Get Run\n * @param {string} applicationRunId Application run id, returned by `POST /runs/` endpoint\n * @param {Array<any> | null} [include] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getRunV1RunsApplicationRunIdGet(applicationRunId: string, include?: Array<any> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunReadResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getRunV1RunsApplicationRunIdGet(applicationRunId, include, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.getRunV1RunsApplicationRunIdGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * The endpoint returns the application runs triggered by the caller. After the application run is created by POST /v1/runs, it becomes available for the current endpoint\n * @summary List Application Runs\n * @param {string | null} [applicationId] Optional application ID filter\n * @param {string | null} [applicationVersion] Optional application version filter\n * @param {Array<any> | null} [include] Request optional output values. Used internally by the platform\n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listApplicationRunsV1RunsGet(applicationId?: string | null, applicationVersion?: string | null, include?: Array<any> | null, page?: number, pageSize?: number, sort?: Array<string> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RunReadResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listApplicationRunsV1RunsGet(applicationId, applicationVersion, include, page, pageSize, sort, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.listApplicationRunsV1RunsGet']?.[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 version of the application is assigned to the user organization. To switch between organizations, the user should re-login and choose the needed organization.\n * @summary List Applications\n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] \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<ApplicationReadResponse>>> {\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 * Get the list of the results for the run items\n * @summary List Run Results\n * @param {string} applicationRunId Application run id, returned by `POST /runs/` endpoint\n * @param {Array<string> | null} [itemIdIn] Filter for items ids\n * @param {Array<string> | null} [referenceIn] Filter for items by their reference from the input payload\n * @param {Array<ItemStatus> | null} [statusIn] Filter for items in certain statuses\n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {Array<string> | null} [sort] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listRunResultsV1RunsApplicationRunIdResultsGet(applicationRunId: string, itemIdIn?: Array<string> | null, referenceIn?: Array<string> | null, statusIn?: Array<ItemStatus> | null, page?: number, pageSize?: number, sort?: Array<string> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ItemResultReadResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listRunResultsV1RunsApplicationRunIdResultsGet(applicationRunId, itemIdIn, referenceIn, statusIn, page, pageSize, sort, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.listRunResultsV1RunsApplicationRunIdResultsGet']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Returns the list of the application versions for this application, available to the caller. The application version is available if it is assigned to the user\\'s organization. The application versions are assigned to the organization by the Aignostics admin. To assign or unassign a version from your organization, please contact Aignostics support team.\n * @summary List Versions By Application Id\n * @param {string} applicationId \n * @param {number} [page] \n * @param {number} [pageSize] \n * @param {string | null} [version] \n * @param {Array<any> | null} [include] \n * @param {Array<string> | null} [sort] \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet(applicationId: string, page?: number, pageSize?: number, version?: string | null, include?: Array<any> | null, sort?: Array<string> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApplicationVersionReadResponse>>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet(applicationId, page, pageSize, version, include, sort, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['PublicApi.listVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet']?.[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 * The application run can be canceled by the user who created the application run. The execution can be canceled any time while the application is not in a final state. The pending items will not be processed and will not add to the cost. When the application is canceled, the already completed items stay available for download.\n * @summary Cancel Application Run\n * @param {PublicApiCancelApplicationRunV1RunsApplicationRunIdCancelPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n cancelApplicationRunV1RunsApplicationRunIdCancelPost(requestParameters: PublicApiCancelApplicationRunV1RunsApplicationRunIdCancelPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<any> {\n return localVarFp.cancelApplicationRunV1RunsApplicationRunIdCancelPost(requestParameters.applicationRunId, options).then((request) => request(axios, basePath));\n },\n /**\n * The endpoint is used to process the input items by the chosen application version. The endpoint returns the `application_run_id`. The processing fo the items is done asynchronously. To check the status or cancel the execution, use the /v1/runs/{application_run_id} endpoint. ### Payload The payload includes `application_version_id` and `items` base fields. `application_version_id` is the id used for `/v1/versions/{application_id}` endpoint. `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 metadata, specific to the chosen application. Example payload structure with the comments: ``` { application_version_id: \\\"test-app:v0.0.2\\\", items: [{ \\\"reference\\\": \\\"slide_1\\\", <-- Input ID to connect the input and the output artifact \\\"input_artifacts\\\": [{ \\\"name\\\": \\\"input_slide\\\", <-- Name of the artifact defined by the application (For HETA it is\\\"input_slide\\\") \\\"download_url\\\": \\\"https://...\\\", <-- signed URL to the input file in the S3 or GCS. Should be valid for more than 6 days \\\"metadata\\\": { <-- The metadata fields defined by the application. (The example fields set for a slide files are provided) \\\"checksum_base64_crc32c\\\": \\\"abc12==\\\", \\\"mime_type\\\": \\\"image/tiff\\\", \\\"height\\\": 100, \\\"weight\\\": 500, \\\"mpp\\\": 0.543 } }] }] } ``` ### Response The endpoint returns the application run UUID. After that the job is scheduled for the execution in the background. To check the status of the run call `v1/runs/{application_run_id}`. ### Rejection Apart from the authentication, authorization and malformed input error, the request can be rejected when the quota limit is exceeded. More details on quotas is described in the documentation\n * @summary Create Application Run\n * @param {PublicApiCreateApplicationRunV1RunsPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createApplicationRunV1RunsPost(requestParameters: PublicApiCreateApplicationRunV1RunsPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<RunCreationResponse> {\n return localVarFp.createApplicationRunV1RunsPost(requestParameters.runCreationRequest, options).then((request) => request(axios, basePath));\n },\n /**\n * Delete the application run results. It can only be called when the application is in a final state (meaning it\\'s not in `received` or `pending` states). To delete the results of the running artifacts, first call `POST /v1/runs/{application_run_id}/cancel` to cancel the application run. The output results are deleted automatically 30 days after the application run is finished.\n * @summary Delete Application Run Results\n * @param {PublicApiDeleteApplicationRunResultsV1RunsApplicationRunIdResultsDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteApplicationRunResultsV1RunsApplicationRunIdResultsDelete(requestParameters: PublicApiDeleteApplicationRunResultsV1RunsApplicationRunIdResultsDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.deleteApplicationRunResultsV1RunsApplicationRunIdResultsDelete(requestParameters.applicationRunId, options).then((request) => request(axios, basePath));\n },\n /**\n * \n * @summary Get Me\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 * Returns the details of the application run. The application run is available as soon as it is created via `POST /runs/` endpoint. To download the items results, call `/runs/{application_run_id}/results`. The application is only available to the user who triggered it, regardless of the role.\n * @summary Get Run\n * @param {PublicApiGetRunV1RunsApplicationRunIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getRunV1RunsApplicationRunIdGet(requestParameters: PublicApiGetRunV1RunsApplicationRunIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<RunReadResponse> {\n return localVarFp.getRunV1RunsApplicationRunIdGet(requestParameters.applicationRunId, requestParameters.include, options).then((request) => request(axios, basePath));\n },\n /**\n * The endpoint returns the application runs triggered by the caller. After the application run is created by POST /v1/runs, it becomes available for the current endpoint\n * @summary List Application Runs\n * @param {PublicApiListApplicationRunsV1RunsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listApplicationRunsV1RunsGet(requestParameters: PublicApiListApplicationRunsV1RunsGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<RunReadResponse>> {\n return localVarFp.listApplicationRunsV1RunsGet(requestParameters.applicationId, requestParameters.applicationVersion, requestParameters.include, requestParameters.page, requestParameters.pageSize, requestParameters.sort, 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 version of the application is assigned to the user organization. To switch between organizations, the user should re-login and choose the needed organization.\n * @summary List 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<ApplicationReadResponse>> {\n return localVarFp.listApplicationsV1ApplicationsGet(requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(axios, basePath));\n },\n /**\n * Get the list of the results for the run items\n * @summary List Run Results\n * @param {PublicApiListRunResultsV1RunsApplicationRunIdResultsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listRunResultsV1RunsApplicationRunIdResultsGet(requestParameters: PublicApiListRunResultsV1RunsApplicationRunIdResultsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ItemResultReadResponse>> {\n return localVarFp.listRunResultsV1RunsApplicationRunIdResultsGet(requestParameters.applicationRunId, requestParameters.itemIdIn, requestParameters.referenceIn, requestParameters.statusIn, requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(axios, basePath));\n },\n /**\n * Returns the list of the application versions for this application, available to the caller. The application version is available if it is assigned to the user\\'s organization. The application versions are assigned to the organization by the Aignostics admin. To assign or unassign a version from your organization, please contact Aignostics support team.\n * @summary List Versions By Application Id\n * @param {PublicApiListVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet(requestParameters: PublicApiListVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApplicationVersionReadResponse>> {\n return localVarFp.listVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet(requestParameters.applicationId, requestParameters.page, requestParameters.pageSize, requestParameters.version, requestParameters.include, requestParameters.sort, 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 * The application run can be canceled by the user who created the application run. The execution can be canceled any time while the application is not in a final state. The pending items will not be processed and will not add to the cost. When the application is canceled, the already completed items stay available for download.\n * @summary Cancel Application Run\n * @param {PublicApiCancelApplicationRunV1RunsApplicationRunIdCancelPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n cancelApplicationRunV1RunsApplicationRunIdCancelPost(requestParameters: PublicApiCancelApplicationRunV1RunsApplicationRunIdCancelPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<any>;\n\n /**\n * The endpoint is used to process the input items by the chosen application version. The endpoint returns the `application_run_id`. The processing fo the items is done asynchronously. To check the status or cancel the execution, use the /v1/runs/{application_run_id} endpoint. ### Payload The payload includes `application_version_id` and `items` base fields. `application_version_id` is the id used for `/v1/versions/{application_id}` endpoint. `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 metadata, specific to the chosen application. Example payload structure with the comments: ``` { application_version_id: \\\"test-app:v0.0.2\\\", items: [{ \\\"reference\\\": \\\"slide_1\\\", <-- Input ID to connect the input and the output artifact \\\"input_artifacts\\\": [{ \\\"name\\\": \\\"input_slide\\\", <-- Name of the artifact defined by the application (For HETA it is\\\"input_slide\\\") \\\"download_url\\\": \\\"https://...\\\", <-- signed URL to the input file in the S3 or GCS. Should be valid for more than 6 days \\\"metadata\\\": { <-- The metadata fields defined by the application. (The example fields set for a slide files are provided) \\\"checksum_base64_crc32c\\\": \\\"abc12==\\\", \\\"mime_type\\\": \\\"image/tiff\\\", \\\"height\\\": 100, \\\"weight\\\": 500, \\\"mpp\\\": 0.543 } }] }] } ``` ### Response The endpoint returns the application run UUID. After that the job is scheduled for the execution in the background. To check the status of the run call `v1/runs/{application_run_id}`. ### Rejection Apart from the authentication, authorization and malformed input error, the request can be rejected when the quota limit is exceeded. More details on quotas is described in the documentation\n * @summary Create Application Run\n * @param {PublicApiCreateApplicationRunV1RunsPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n createApplicationRunV1RunsPost(requestParameters: PublicApiCreateApplicationRunV1RunsPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<RunCreationResponse>;\n\n /**\n * Delete the application run results. It can only be called when the application is in a final state (meaning it\\'s not in `received` or `pending` states). To delete the results of the running artifacts, first call `POST /v1/runs/{application_run_id}/cancel` to cancel the application run. The output results are deleted automatically 30 days after the application run is finished.\n * @summary Delete Application Run Results\n * @param {PublicApiDeleteApplicationRunResultsV1RunsApplicationRunIdResultsDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n deleteApplicationRunResultsV1RunsApplicationRunIdResultsDelete(requestParameters: PublicApiDeleteApplicationRunResultsV1RunsApplicationRunIdResultsDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;\n\n /**\n * \n * @summary Get Me\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getMeV1MeGet(options?: RawAxiosRequestConfig): AxiosPromise<MeReadResponse>;\n\n /**\n * Returns the details of the application run. The application run is available as soon as it is created via `POST /runs/` endpoint. To download the items results, call `/runs/{application_run_id}/results`. The application is only available to the user who triggered it, regardless of the role.\n * @summary Get Run\n * @param {PublicApiGetRunV1RunsApplicationRunIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n getRunV1RunsApplicationRunIdGet(requestParameters: PublicApiGetRunV1RunsApplicationRunIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<RunReadResponse>;\n\n /**\n * The endpoint returns the application runs triggered by the caller. After the application run is created by POST /v1/runs, it becomes available for the current endpoint\n * @summary List Application Runs\n * @param {PublicApiListApplicationRunsV1RunsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n listApplicationRunsV1RunsGet(requestParameters?: PublicApiListApplicationRunsV1RunsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<RunReadResponse>>;\n\n /**\n * Returns the list of the applications, available to the caller. The application is available if any of the version of the application is assigned to the user organization. To switch between organizations, the user should re-login and choose the needed organization.\n * @summary List 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<ApplicationReadResponse>>;\n\n /**\n * Get the list of the results for the run items\n * @summary List Run Results\n * @param {PublicApiListRunResultsV1RunsApplicationRunIdResultsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n listRunResultsV1RunsApplicationRunIdResultsGet(requestParameters: PublicApiListRunResultsV1RunsApplicationRunIdResultsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ItemResultReadResponse>>;\n\n /**\n * Returns the list of the application versions for this application, available to the caller. The application version is available if it is assigned to the user\\'s organization. The application versions are assigned to the organization by the Aignostics admin. To assign or unassign a version from your organization, please contact Aignostics support team.\n * @summary List Versions By Application Id\n * @param {PublicApiListVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApiInterface\n */\n listVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet(requestParameters: PublicApiListVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApplicationVersionReadResponse>>;\n\n}\n\n/**\n * Request parameters for cancelApplicationRunV1RunsApplicationRunIdCancelPost operation in PublicApi.\n * @export\n * @interface PublicApiCancelApplicationRunV1RunsApplicationRunIdCancelPostRequest\n */\nexport interface PublicApiCancelApplicationRunV1RunsApplicationRunIdCancelPostRequest {\n /**\n * Application run id, returned by `POST /runs/` endpoint\n * @type {string}\n * @memberof PublicApiCancelApplicationRunV1RunsApplicationRunIdCancelPost\n */\n readonly applicationRunId: string\n}\n\n/**\n * Request parameters for createApplicationRunV1RunsPost operation in PublicApi.\n * @export\n * @interface PublicApiCreateApplicationRunV1RunsPostRequest\n */\nexport interface PublicApiCreateApplicationRunV1RunsPostRequest {\n /**\n * \n * @type {RunCreationRequest}\n * @memberof PublicApiCreateApplicationRunV1RunsPost\n */\n readonly runCreationRequest: RunCreationRequest\n}\n\n/**\n * Request parameters for deleteApplicationRunResultsV1RunsApplicationRunIdResultsDelete operation in PublicApi.\n * @export\n * @interface PublicApiDeleteApplicationRunResultsV1RunsApplicationRunIdResultsDeleteRequest\n */\nexport interface PublicApiDeleteApplicationRunResultsV1RunsApplicationRunIdResultsDeleteRequest {\n /**\n * Application run id, returned by `POST /runs/` endpoint\n * @type {string}\n * @memberof PublicApiDeleteApplicationRunResultsV1RunsApplicationRunIdResultsDelete\n */\n readonly applicationRunId: string\n}\n\n/**\n * Request parameters for getRunV1RunsApplicationRunIdGet operation in PublicApi.\n * @export\n * @interface PublicApiGetRunV1RunsApplicationRunIdGetRequest\n */\nexport interface PublicApiGetRunV1RunsApplicationRunIdGetRequest {\n /**\n * Application run id, returned by `POST /runs/` endpoint\n * @type {string}\n * @memberof PublicApiGetRunV1RunsApplicationRunIdGet\n */\n readonly applicationRunId: string\n\n /**\n * \n * @type {Array<any>}\n * @memberof PublicApiGetRunV1RunsApplicationRunIdGet\n */\n readonly include?: Array<any> | null\n}\n\n/**\n * Request parameters for listApplicationRunsV1RunsGet operation in PublicApi.\n * @export\n * @interface PublicApiListApplicationRunsV1RunsGetRequest\n */\nexport interface PublicApiListApplicationRunsV1RunsGetRequest {\n /**\n * Optional application ID filter\n * @type {string}\n * @memberof PublicApiListApplicationRunsV1RunsGet\n */\n readonly applicationId?: string | null\n\n /**\n * Optional application version filter\n * @type {string}\n * @memberof PublicApiListApplicationRunsV1RunsGet\n */\n readonly applicationVersion?: string | null\n\n /**\n * Request optional output values. Used internally by the platform\n * @type {Array<any>}\n * @memberof PublicApiListApplicationRunsV1RunsGet\n */\n readonly include?: Array<any> | null\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListApplicationRunsV1RunsGet\n */\n readonly page?: number\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListApplicationRunsV1RunsGet\n */\n readonly pageSize?: number\n\n /**\n * \n * @type {Array<string>}\n * @memberof PublicApiListApplicationRunsV1RunsGet\n */\n readonly sort?: Array<string> | null\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 * \n * @type {Array<string>}\n * @memberof PublicApiListApplicationsV1ApplicationsGet\n */\n readonly sort?: Array<string> | null\n}\n\n/**\n * Request parameters for listRunResultsV1RunsApplicationRunIdResultsGet operation in PublicApi.\n * @export\n * @interface PublicApiListRunResultsV1RunsApplicationRunIdResultsGetRequest\n */\nexport interface PublicApiListRunResultsV1RunsApplicationRunIdResultsGetRequest {\n /**\n * Application run id, returned by `POST /runs/` endpoint\n * @type {string}\n * @memberof PublicApiListRunResultsV1RunsApplicationRunIdResultsGet\n */\n readonly applicationRunId: string\n\n /**\n * Filter for items ids\n * @type {Array<string>}\n * @memberof PublicApiListRunResultsV1RunsApplicationRunIdResultsGet\n */\n readonly itemIdIn?: Array<string> | null\n\n /**\n * Filter for items by their reference from the input payload\n * @type {Array<string>}\n * @memberof PublicApiListRunResultsV1RunsApplicationRunIdResultsGet\n */\n readonly referenceIn?: Array<string> | null\n\n /**\n * Filter for items in certain statuses\n * @type {Array<ItemStatus>}\n * @memberof PublicApiListRunResultsV1RunsApplicationRunIdResultsGet\n */\n readonly statusIn?: Array<ItemStatus> | null\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListRunResultsV1RunsApplicationRunIdResultsGet\n */\n readonly page?: number\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListRunResultsV1RunsApplicationRunIdResultsGet\n */\n readonly pageSize?: number\n\n /**\n * \n * @type {Array<string>}\n * @memberof PublicApiListRunResultsV1RunsApplicationRunIdResultsGet\n */\n readonly sort?: Array<string> | null\n}\n\n/**\n * Request parameters for listVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet operation in PublicApi.\n * @export\n * @interface PublicApiListVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGetRequest\n */\nexport interface PublicApiListVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGetRequest {\n /**\n * \n * @type {string}\n * @memberof PublicApiListVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet\n */\n readonly applicationId: string\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet\n */\n readonly page?: number\n\n /**\n * \n * @type {number}\n * @memberof PublicApiListVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet\n */\n readonly pageSize?: number\n\n /**\n * \n * @type {string}\n * @memberof PublicApiListVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet\n */\n readonly version?: string | null\n\n /**\n * \n * @type {Array<any>}\n * @memberof PublicApiListVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet\n */\n readonly include?: Array<any> | null\n\n /**\n * \n * @type {Array<string>}\n * @memberof PublicApiListVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet\n */\n readonly sort?: Array<string> | null\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 * The application run can be canceled by the user who created the application run. The execution can be canceled any time while the application is not in a final state. The pending items will not be processed and will not add to the cost. When the application is canceled, the already completed items stay available for download.\n * @summary Cancel Application Run\n * @param {PublicApiCancelApplicationRunV1RunsApplicationRunIdCancelPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public cancelApplicationRunV1RunsApplicationRunIdCancelPost(requestParameters: PublicApiCancelApplicationRunV1RunsApplicationRunIdCancelPostRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).cancelApplicationRunV1RunsApplicationRunIdCancelPost(requestParameters.applicationRunId, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * The endpoint is used to process the input items by the chosen application version. The endpoint returns the `application_run_id`. The processing fo the items is done asynchronously. To check the status or cancel the execution, use the /v1/runs/{application_run_id} endpoint. ### Payload The payload includes `application_version_id` and `items` base fields. `application_version_id` is the id used for `/v1/versions/{application_id}` endpoint. `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 metadata, specific to the chosen application. Example payload structure with the comments: ``` { application_version_id: \\\"test-app:v0.0.2\\\", items: [{ \\\"reference\\\": \\\"slide_1\\\", <-- Input ID to connect the input and the output artifact \\\"input_artifacts\\\": [{ \\\"name\\\": \\\"input_slide\\\", <-- Name of the artifact defined by the application (For HETA it is\\\"input_slide\\\") \\\"download_url\\\": \\\"https://...\\\", <-- signed URL to the input file in the S3 or GCS. Should be valid for more than 6 days \\\"metadata\\\": { <-- The metadata fields defined by the application. (The example fields set for a slide files are provided) \\\"checksum_base64_crc32c\\\": \\\"abc12==\\\", \\\"mime_type\\\": \\\"image/tiff\\\", \\\"height\\\": 100, \\\"weight\\\": 500, \\\"mpp\\\": 0.543 } }] }] } ``` ### Response The endpoint returns the application run UUID. After that the job is scheduled for the execution in the background. To check the status of the run call `v1/runs/{application_run_id}`. ### Rejection Apart from the authentication, authorization and malformed input error, the request can be rejected when the quota limit is exceeded. More details on quotas is described in the documentation\n * @summary Create Application Run\n * @param {PublicApiCreateApplicationRunV1RunsPostRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public createApplicationRunV1RunsPost(requestParameters: PublicApiCreateApplicationRunV1RunsPostRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).createApplicationRunV1RunsPost(requestParameters.runCreationRequest, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Delete the application run results. It can only be called when the application is in a final state (meaning it\\'s not in `received` or `pending` states). To delete the results of the running artifacts, first call `POST /v1/runs/{application_run_id}/cancel` to cancel the application run. The output results are deleted automatically 30 days after the application run is finished.\n * @summary Delete Application Run Results\n * @param {PublicApiDeleteApplicationRunResultsV1RunsApplicationRunIdResultsDeleteRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public deleteApplicationRunResultsV1RunsApplicationRunIdResultsDelete(requestParameters: PublicApiDeleteApplicationRunResultsV1RunsApplicationRunIdResultsDeleteRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).deleteApplicationRunResultsV1RunsApplicationRunIdResultsDelete(requestParameters.applicationRunId, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * \n * @summary Get Me\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 * Returns the details of the application run. The application run is available as soon as it is created via `POST /runs/` endpoint. To download the items results, call `/runs/{application_run_id}/results`. The application is only available to the user who triggered it, regardless of the role.\n * @summary Get Run\n * @param {PublicApiGetRunV1RunsApplicationRunIdGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public getRunV1RunsApplicationRunIdGet(requestParameters: PublicApiGetRunV1RunsApplicationRunIdGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).getRunV1RunsApplicationRunIdGet(requestParameters.applicationRunId, requestParameters.include, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * The endpoint returns the application runs triggered by the caller. After the application run is created by POST /v1/runs, it becomes available for the current endpoint\n * @summary List Application Runs\n * @param {PublicApiListApplicationRunsV1RunsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public listApplicationRunsV1RunsGet(requestParameters: PublicApiListApplicationRunsV1RunsGetRequest = {}, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).listApplicationRunsV1RunsGet(requestParameters.applicationId, requestParameters.applicationVersion, requestParameters.include, requestParameters.page, requestParameters.pageSize, requestParameters.sort, 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 version of the application is assigned to the user organization. To switch between organizations, the user should re-login and choose the needed organization.\n * @summary List 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 * Get the list of the results for the run items\n * @summary List Run Results\n * @param {PublicApiListRunResultsV1RunsApplicationRunIdResultsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public listRunResultsV1RunsApplicationRunIdResultsGet(requestParameters: PublicApiListRunResultsV1RunsApplicationRunIdResultsGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).listRunResultsV1RunsApplicationRunIdResultsGet(requestParameters.applicationRunId, requestParameters.itemIdIn, requestParameters.referenceIn, requestParameters.statusIn, requestParameters.page, requestParameters.pageSize, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Returns the list of the application versions for this application, available to the caller. The application version is available if it is assigned to the user\\'s organization. The application versions are assigned to the organization by the Aignostics admin. To assign or unassign a version from your organization, please contact Aignostics support team.\n * @summary List Versions By Application Id\n * @param {PublicApiListVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGetRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof PublicApi\n */\n public listVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet(requestParameters: PublicApiListVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGetRequest, options?: RawAxiosRequestConfig) {\n return PublicApiFp(this.configuration).listVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet(requestParameters.applicationId, requestParameters.page, requestParameters.pageSize, requestParameters.version, requestParameters.include, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Aignostics Platform API reference\n * Pagination is done via `page` and `page_size`. Sorting via `sort` query parameter. The `sort` query parameter can be provided multiple times. The sorting direction can be indicated via `+` (ascending) or `-` (descending) (e.g. `/v1/applications?sort=+name)`.\n *\n * The version of the OpenAPI document: 1.0.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 packageJson from '../package.json' with { type: 'json' };\nimport {\n ApplicationReadResponse,\n ApplicationVersionReadResponse,\n RunReadResponse,\n ItemResultReadResponse,\n RunCreationRequest,\n RunCreationResponse,\n PublicApi,\n} from './generated/index.js';\nimport { APIError, AuthenticationError, UnexpectedError } from './errors.js';\nimport { isAxiosError } from 'axios';\nimport z from 'zod';\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 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<ApplicationReadResponse[]>;\n listApplicationVersions(applicationId: string): Promise<ApplicationVersionReadResponse[]>;\n listApplicationRuns(options?: {\n applicationId?: string;\n applicationVersion?: string;\n }): Promise<RunReadResponse[]>;\n createApplicationRun(request: RunCreationRequest): Promise<RunCreationResponse>;\n getRun(applicationRunId: string): Promise<RunReadResponse>;\n cancelApplicationRun(applicationRunId: string): Promise<void>;\n listRunResults(applicationRunId: string): Promise<ItemResultReadResponse[]>;\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<ApplicationReadResponse[]> {\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 all versions of a specific application\n *\n * This method fetches all available versions for a given application ID.\n * Application versions represent different iterations or configurations of\n * an AI model, allowing you to choose specific versions for processing.\n *\n * @param applicationId - The unique identifier of the application\n * @returns A promise that resolves to an array of application version objects\n * @throws {AuthenticationError} If no valid authentication token is available\n * @throws {Error} If the request fails due to network issues, invalid application ID, or API errors\n *\n * @example\n * ```typescript\n * const sdk = new PlatformSDKHttp({ tokenProvider: () => 'your-token' });\n *\n * try {\n * const versions = await sdk.listApplicationVersions('app-123');\n * console.log(`Found ${versions.length} versions for application`);\n * versions.forEach(version => {\n * console.log(`- Version ${version.version} (ID: ${version.id})`);\n * });\n * } catch (error) {\n * console.error('Failed to list application versions:', error.message);\n * }\n * ```\n */\n async listApplicationVersions(applicationId: string): Promise<ApplicationVersionReadResponse[]> {\n const client = await this.#getClient();\n try {\n const response =\n await client.listVersionsByApplicationIdV1ApplicationsApplicationIdVersionsGet({\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 }): Promise<RunReadResponse[]> {\n const client = await this.#getClient();\n try {\n const response = await client.listApplicationRunsV1RunsGet({\n applicationId: options?.applicationId,\n applicationVersion: options?.applicationVersion,\n });\n\n return response.data;\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.createApplicationRunV1RunsPost({\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<RunReadResponse> {\n const client = await this.#getClient();\n try {\n const response = await client.getRunV1RunsApplicationRunIdGet({\n applicationRunId,\n });\n\n return 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.cancelApplicationRunV1RunsApplicationRunIdCancelPost({\n 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(applicationRunId: string): Promise<ItemResultReadResponse[]> {\n const client = await this.#getClient();\n try {\n const response = await client.listRunResultsV1RunsApplicationRunIdResultsGet({\n applicationRunId,\n });\n\n return response.data;\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","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\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"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aignostics/sdk",
|
|
3
|
+
"version": "2.3.1",
|
|
4
|
+
"description": "The TypeScript SDK for Aignostics",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"README.md",
|
|
20
|
+
"LICENSE"
|
|
21
|
+
],
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"registry": "https://registry.npmjs.org",
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "nx build",
|
|
28
|
+
"test": "nx test",
|
|
29
|
+
"lint": "nx lint",
|
|
30
|
+
"typecheck": "nx typecheck"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"aignostics",
|
|
34
|
+
"platform",
|
|
35
|
+
"sdk",
|
|
36
|
+
"typescript",
|
|
37
|
+
"api"
|
|
38
|
+
],
|
|
39
|
+
"author": "Aignostics",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"axios": "^1.11.0",
|
|
43
|
+
"zod": "^4.0.17"
|
|
44
|
+
},
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">=18.0.0"
|
|
47
|
+
}
|
|
48
|
+
}
|