@createiq/backend 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/client/core/ApiError.ts +21 -0
- package/client/core/ApiRequestOptions.ts +21 -0
- package/client/core/ApiResult.ts +7 -0
- package/client/core/CancelablePromise.ts +126 -0
- package/client/core/OpenAPI.ts +56 -0
- package/client/core/request.ts +350 -0
- package/client/index.ts +6 -0
- package/client/sdk.gen.ts +6368 -0
- package/client/types.gen.ts +5983 -0
- package/dist/index.cjs +4523 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +7955 -0
- package/dist/index.d.ts +7955 -0
- package/dist/index.js +4233 -0
- package/dist/index.js.map +1 -0
- package/index.ts +1 -0
- package/package.json +21 -0
- package/swagger.json.sha256 +1 -0
- package/tsconfig.json +16 -0
- package/tsup.config.ts +14 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../client/core/ApiError.ts","../client/core/CancelablePromise.ts","../client/core/OpenAPI.ts","../client/core/request.ts","../client/sdk.gen.ts"],"sourcesContent":["import type { ApiRequestOptions } from './ApiRequestOptions';\nimport type { ApiResult } from './ApiResult';\n\nexport class ApiError extends Error {\n\tpublic readonly url: string;\n\tpublic readonly status: number;\n\tpublic readonly statusText: string;\n\tpublic readonly body: unknown;\n\tpublic readonly request: ApiRequestOptions;\n\n\tconstructor(request: ApiRequestOptions, response: ApiResult, message: string) {\n\t\tsuper(message);\n\n\t\tthis.name = 'ApiError';\n\t\tthis.url = response.url;\n\t\tthis.status = response.status;\n\t\tthis.statusText = response.statusText;\n\t\tthis.body = response.body;\n\t\tthis.request = request;\n\t}\n}","export class CancelError extends Error {\n\tconstructor(message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'CancelError';\n\t}\n\n\tpublic get isCancelled(): boolean {\n\t\treturn true;\n\t}\n}\n\nexport interface OnCancel {\n\treadonly isResolved: boolean;\n\treadonly isRejected: boolean;\n\treadonly isCancelled: boolean;\n\n\t(cancelHandler: () => void): void;\n}\n\nexport class CancelablePromise<T> implements Promise<T> {\n\tprivate _isResolved: boolean;\n\tprivate _isRejected: boolean;\n\tprivate _isCancelled: boolean;\n\treadonly cancelHandlers: (() => void)[];\n\treadonly promise: Promise<T>;\n\tprivate _resolve?: (value: T | PromiseLike<T>) => void;\n\tprivate _reject?: (reason?: unknown) => void;\n\n\tconstructor(\n\t\texecutor: (\n\t\t\tresolve: (value: T | PromiseLike<T>) => void,\n\t\t\treject: (reason?: unknown) => void,\n\t\t\tonCancel: OnCancel\n\t\t) => void\n\t) {\n\t\tthis._isResolved = false;\n\t\tthis._isRejected = false;\n\t\tthis._isCancelled = false;\n\t\tthis.cancelHandlers = [];\n\t\tthis.promise = new Promise<T>((resolve, reject) => {\n\t\t\tthis._resolve = resolve;\n\t\t\tthis._reject = reject;\n\n\t\t\tconst onResolve = (value: T | PromiseLike<T>): void => {\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tthis._isResolved = true;\n\t\t\t\tif (this._resolve) this._resolve(value);\n\t\t\t};\n\n\t\t\tconst onReject = (reason?: unknown): void => {\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tthis._isRejected = true;\n\t\t\t\tif (this._reject) this._reject(reason);\n\t\t\t};\n\n\t\t\tconst onCancel = (cancelHandler: () => void): void => {\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tthis.cancelHandlers.push(cancelHandler);\n\t\t\t};\n\n\t\t\tObject.defineProperty(onCancel, 'isResolved', {\n\t\t\t\tget: (): boolean => this._isResolved,\n\t\t\t});\n\n\t\t\tObject.defineProperty(onCancel, 'isRejected', {\n\t\t\t\tget: (): boolean => this._isRejected,\n\t\t\t});\n\n\t\t\tObject.defineProperty(onCancel, 'isCancelled', {\n\t\t\t\tget: (): boolean => this._isCancelled,\n\t\t\t});\n\n\t\t\treturn executor(onResolve, onReject, onCancel as OnCancel);\n\t\t});\n\t}\n\n\tget [Symbol.toStringTag]() {\n\t\treturn \"Cancellable Promise\";\n\t}\n\n\tpublic then<TResult1 = T, TResult2 = never>(\n\t\tonFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,\n\t\tonRejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null\n\t): Promise<TResult1 | TResult2> {\n\t\treturn this.promise.then(onFulfilled, onRejected);\n\t}\n\n\tpublic catch<TResult = never>(\n\t\tonRejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | null\n\t): Promise<T | TResult> {\n\t\treturn this.promise.catch(onRejected);\n\t}\n\n\tpublic finally(onFinally?: (() => void) | null): Promise<T> {\n\t\treturn this.promise.finally(onFinally);\n\t}\n\n\tpublic cancel(): void {\n\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\n\t\t\treturn;\n\t\t}\n\t\tthis._isCancelled = true;\n\t\tif (this.cancelHandlers.length) {\n\t\t\ttry {\n\t\t\t\tfor (const cancelHandler of this.cancelHandlers) {\n\t\t\t\t\tcancelHandler();\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.warn('Cancellation threw an error', error);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tthis.cancelHandlers.length = 0;\n\t\tif (this._reject) this._reject(new CancelError('Request aborted'));\n\t}\n\n\tpublic get isCancelled(): boolean {\n\t\treturn this._isCancelled;\n\t}\n}","import type { ApiRequestOptions } from './ApiRequestOptions';\n\ntype Headers = Record<string, string>;\ntype Middleware<T> = (value: T) => T | Promise<T>;\ntype Resolver<T> = (options: ApiRequestOptions<T>) => Promise<T>;\n\nexport class Interceptors<T> {\n _fns: Middleware<T>[];\n\n constructor() {\n this._fns = [];\n }\n\n eject(fn: Middleware<T>): void {\n const index = this._fns.indexOf(fn);\n if (index !== -1) {\n this._fns = [...this._fns.slice(0, index), ...this._fns.slice(index + 1)];\n }\n }\n\n use(fn: Middleware<T>): void {\n this._fns = [...this._fns, fn];\n }\n}\n\nexport type OpenAPIConfig = {\n\tBASE: string;\n\tCREDENTIALS: 'include' | 'omit' | 'same-origin';\n\tENCODE_PATH?: ((path: string) => string) | undefined;\n\tHEADERS?: Headers | Resolver<Headers> | undefined;\n\tPASSWORD?: string | Resolver<string> | undefined;\n\tTOKEN?: string | Resolver<string> | undefined;\n\tUSERNAME?: string | Resolver<string> | undefined;\n\tVERSION: string;\n\tWITH_CREDENTIALS: boolean;\n\tinterceptors: {\n\t\trequest: Interceptors<RequestInit>;\n\t\tresponse: Interceptors<Response>;\n\t};\n};\n\nexport const OpenAPI: OpenAPIConfig = {\n\tBASE: '',\n\tCREDENTIALS: 'include',\n\tENCODE_PATH: undefined,\n\tHEADERS: undefined,\n\tPASSWORD: undefined,\n\tTOKEN: undefined,\n\tUSERNAME: undefined,\n\tVERSION: '1.1',\n\tWITH_CREDENTIALS: false,\n\tinterceptors: {\n\t\trequest: new Interceptors(),\n\t\tresponse: new Interceptors(),\n\t},\n};","import { ApiError } from './ApiError';\nimport type { ApiRequestOptions } from './ApiRequestOptions';\nimport type { ApiResult } from './ApiResult';\nimport { CancelablePromise } from './CancelablePromise';\nimport type { OnCancel } from './CancelablePromise';\nimport type { OpenAPIConfig } from './OpenAPI';\n\nexport const isString = (value: unknown): value is string => {\n\treturn typeof value === 'string';\n};\n\nexport const isStringWithValue = (value: unknown): value is string => {\n\treturn isString(value) && value !== '';\n};\n\nexport const isBlob = (value: any): value is Blob => {\n\treturn value instanceof Blob;\n};\n\nexport const isFormData = (value: unknown): value is FormData => {\n\treturn value instanceof FormData;\n};\n\nexport const base64 = (str: string): string => {\n\ttry {\n\t\treturn btoa(str);\n\t} catch (err) {\n\t\t// @ts-ignore\n\t\treturn Buffer.from(str).toString('base64');\n\t}\n};\n\nexport const getQueryString = (params: Record<string, unknown>): string => {\n\tconst qs: string[] = [];\n\n\tconst append = (key: string, value: unknown) => {\n\t\tqs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);\n\t};\n\n\tconst encodePair = (key: string, value: unknown) => {\n\t\tif (value === undefined || value === null) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (value instanceof Date) {\n\t\t\tappend(key, value.toISOString());\n\t\t} else if (Array.isArray(value)) {\n\t\t\tvalue.forEach(v => encodePair(key, v));\n\t\t} else if (typeof value === 'object') {\n\t\t\tObject.entries(value).forEach(([k, v]) => encodePair(`${key}[${k}]`, v));\n\t\t} else {\n\t\t\tappend(key, value);\n\t\t}\n\t};\n\n\tObject.entries(params).forEach(([key, value]) => encodePair(key, value));\n\n\treturn qs.length ? `?${qs.join('&')}` : '';\n};\n\nconst getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {\n\tconst encoder = config.ENCODE_PATH || encodeURI;\n\n\tconst path = options.url\n\t\t.replace('{api-version}', config.VERSION)\n\t\t.replace(/{(.*?)}/g, (substring: string, group: string) => {\n\t\t\tif (options.path?.hasOwnProperty(group)) {\n\t\t\t\treturn encoder(String(options.path[group]));\n\t\t\t}\n\t\t\treturn substring;\n\t\t});\n\n\tconst url = config.BASE + path;\n\treturn options.query ? url + getQueryString(options.query) : url;\n};\n\nexport const getFormData = (options: ApiRequestOptions): FormData | undefined => {\n\tif (options.formData) {\n\t\tconst formData = new FormData();\n\n\t\tconst process = (key: string, value: unknown) => {\n\t\t\tif (isString(value) || isBlob(value)) {\n\t\t\t\tformData.append(key, value);\n\t\t\t} else {\n\t\t\t\tformData.append(key, JSON.stringify(value));\n\t\t\t}\n\t\t};\n\n\t\tObject.entries(options.formData)\n\t\t\t.filter(([, value]) => value !== undefined && value !== null)\n\t\t\t.forEach(([key, value]) => {\n\t\t\t\tif (Array.isArray(value)) {\n\t\t\t\t\tvalue.forEach(v => process(key, v));\n\t\t\t\t} else {\n\t\t\t\t\tprocess(key, value);\n\t\t\t\t}\n\t\t\t});\n\n\t\treturn formData;\n\t}\n\treturn undefined;\n};\n\ntype Resolver<T> = (options: ApiRequestOptions<T>) => Promise<T>;\n\nexport const resolve = async <T>(options: ApiRequestOptions<T>, resolver?: T | Resolver<T>): Promise<T | undefined> => {\n\tif (typeof resolver === 'function') {\n\t\treturn (resolver as Resolver<T>)(options);\n\t}\n\treturn resolver;\n};\n\nexport const getHeaders = async <T>(config: OpenAPIConfig, options: ApiRequestOptions<T>): Promise<Headers> => {\n\tconst [token, username, password, additionalHeaders] = await Promise.all([\n\t\t// @ts-ignore\n\t\tresolve(options, config.TOKEN),\n\t\t// @ts-ignore\n\t\tresolve(options, config.USERNAME),\n\t\t// @ts-ignore\n\t\tresolve(options, config.PASSWORD),\n\t\t// @ts-ignore\n\t\tresolve(options, config.HEADERS),\n\t]);\n\n\tconst headers = Object.entries({\n\t\tAccept: 'application/json',\n\t\t...additionalHeaders,\n\t\t...options.headers,\n\t})\n\t\t.filter(([, value]) => value !== undefined && value !== null)\n\t\t.reduce((headers, [key, value]) => ({\n\t\t\t...headers,\n\t\t\t[key]: String(value),\n\t\t}), {} as Record<string, string>);\n\n\tif (isStringWithValue(token)) {\n\t\theaders['Authorization'] = `Bearer ${token}`;\n\t}\n\n\tif (isStringWithValue(username) && isStringWithValue(password)) {\n\t\tconst credentials = base64(`${username}:${password}`);\n\t\theaders['Authorization'] = `Basic ${credentials}`;\n\t}\n\n\tif (options.body !== undefined) {\n\t\tif (options.mediaType) {\n\t\t\theaders['Content-Type'] = options.mediaType;\n\t\t} else if (isBlob(options.body)) {\n\t\t\theaders['Content-Type'] = options.body.type || 'application/octet-stream';\n\t\t} else if (isString(options.body)) {\n\t\t\theaders['Content-Type'] = 'text/plain';\n\t\t} else if (!isFormData(options.body)) {\n\t\t\theaders['Content-Type'] = 'application/json';\n\t\t}\n\t}\n\n\treturn new Headers(headers);\n};\n\nexport const getRequestBody = (options: ApiRequestOptions): unknown => {\n\tif (options.body !== undefined) {\n\t\tif (options.mediaType?.includes('application/json') || options.mediaType?.includes('+json')) {\n\t\t\treturn JSON.stringify(options.body);\n\t\t} else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {\n\t\t\treturn options.body;\n\t\t} else {\n\t\t\treturn JSON.stringify(options.body);\n\t\t}\n\t}\n\treturn undefined;\n};\n\nexport const sendRequest = async (\n\tconfig: OpenAPIConfig,\n\toptions: ApiRequestOptions,\n\turl: string,\n\tbody: any,\n\tformData: FormData | undefined,\n\theaders: Headers,\n\tonCancel: OnCancel\n): Promise<Response> => {\n\tconst controller = new AbortController();\n\n\tlet request: RequestInit = {\n\t\theaders,\n\t\tbody: body ?? formData,\n\t\tmethod: options.method,\n\t\tsignal: controller.signal,\n\t};\n\n\tif (config.WITH_CREDENTIALS) {\n\t\trequest.credentials = config.CREDENTIALS;\n\t}\n\n\tfor (const fn of config.interceptors.request._fns) {\n\t\trequest = await fn(request);\n\t}\n\n\tonCancel(() => controller.abort());\n\n\treturn await fetch(url, request);\n};\n\nexport const getResponseHeader = (response: Response, responseHeader?: string): string | undefined => {\n\tif (responseHeader) {\n\t\tconst content = response.headers.get(responseHeader);\n\t\tif (isString(content)) {\n\t\t\treturn content;\n\t\t}\n\t}\n\treturn undefined;\n};\n\nexport const getResponseBody = async (response: Response): Promise<unknown> => {\n\tif (response.status !== 204) {\n\t\ttry {\n\t\t\tconst contentType = response.headers.get('Content-Type');\n\t\t\tif (contentType) {\n\t\t\t\tconst binaryTypes = ['application/octet-stream', 'application/pdf', 'application/zip', 'audio/', 'image/', 'video/'];\n\t\t\t\tif (contentType.includes('application/json') || contentType.includes('+json')) {\n\t\t\t\t\treturn await response.json();\n\t\t\t\t} else if (binaryTypes.some(type => contentType.includes(type))) {\n\t\t\t\t\treturn await response.blob();\n\t\t\t\t} else if (contentType.includes('multipart/form-data')) {\n\t\t\t\t\treturn await response.formData();\n\t\t\t\t} else if (contentType.includes('text/')) {\n\t\t\t\t\treturn await response.text();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tconsole.error(error);\n\t\t}\n\t}\n\treturn undefined;\n};\n\nexport const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => {\n\tconst errors: Record<number, string> = {\n\t\t400: 'Bad Request',\n\t\t401: 'Unauthorized',\n\t\t402: 'Payment Required',\n\t\t403: 'Forbidden',\n\t\t404: 'Not Found',\n\t\t405: 'Method Not Allowed',\n\t\t406: 'Not Acceptable',\n\t\t407: 'Proxy Authentication Required',\n\t\t408: 'Request Timeout',\n\t\t409: 'Conflict',\n\t\t410: 'Gone',\n\t\t411: 'Length Required',\n\t\t412: 'Precondition Failed',\n\t\t413: 'Payload Too Large',\n\t\t414: 'URI Too Long',\n\t\t415: 'Unsupported Media Type',\n\t\t416: 'Range Not Satisfiable',\n\t\t417: 'Expectation Failed',\n\t\t418: 'Im a teapot',\n\t\t421: 'Misdirected Request',\n\t\t422: 'Unprocessable Content',\n\t\t423: 'Locked',\n\t\t424: 'Failed Dependency',\n\t\t425: 'Too Early',\n\t\t426: 'Upgrade Required',\n\t\t428: 'Precondition Required',\n\t\t429: 'Too Many Requests',\n\t\t431: 'Request Header Fields Too Large',\n\t\t451: 'Unavailable For Legal Reasons',\n\t\t500: 'Internal Server Error',\n\t\t501: 'Not Implemented',\n\t\t502: 'Bad Gateway',\n\t\t503: 'Service Unavailable',\n\t\t504: 'Gateway Timeout',\n\t\t505: 'HTTP Version Not Supported',\n\t\t506: 'Variant Also Negotiates',\n\t\t507: 'Insufficient Storage',\n\t\t508: 'Loop Detected',\n\t\t510: 'Not Extended',\n\t\t511: 'Network Authentication Required',\n\t\t...options.errors,\n\t}\n\n\tconst error = errors[result.status];\n\tif (error) {\n\t\tthrow new ApiError(options, result, error);\n\t}\n\n\tif (!result.ok) {\n\t\tconst errorStatus = result.status ?? 'unknown';\n\t\tconst errorStatusText = result.statusText ?? 'unknown';\n\t\tconst errorBody = (() => {\n\t\t\ttry {\n\t\t\t\treturn JSON.stringify(result.body, null, 2);\n\t\t\t} catch (e) {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t})();\n\n\t\tthrow new ApiError(options, result,\n\t\t\t`Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`\n\t\t);\n\t}\n};\n\n/**\n * Request method\n * @param config The OpenAPI configuration object\n * @param options The request options from the service\n * @returns CancelablePromise<T>\n * @throws ApiError\n */\nexport const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions<T>): CancelablePromise<T> => {\n\treturn new CancelablePromise(async (resolve, reject, onCancel) => {\n\t\ttry {\n\t\t\tconst url = getUrl(config, options);\n\t\t\tconst formData = getFormData(options);\n\t\t\tconst body = getRequestBody(options);\n\t\t\tconst headers = await getHeaders(config, options);\n\n\t\t\tif (!onCancel.isCancelled) {\n\t\t\t\tlet response = await sendRequest(config, options, url, body, formData, headers, onCancel);\n\n\t\t\t\tfor (const fn of config.interceptors.response._fns) {\n\t\t\t\t\tresponse = await fn(response);\n\t\t\t\t}\n\n\t\t\t\tconst responseBody = await getResponseBody(response);\n\t\t\t\tconst responseHeader = getResponseHeader(response, options.responseHeader);\n\n\t\t\t\tlet transformedBody = responseBody;\n\t\t\t\tif (options.responseTransformer && response.ok) {\n\t\t\t\t\ttransformedBody = await options.responseTransformer(responseBody)\n\t\t\t\t}\n\n\t\t\t\tconst result: ApiResult = {\n\t\t\t\t\turl,\n\t\t\t\t\tok: response.ok,\n\t\t\t\t\tstatus: response.status,\n\t\t\t\t\tstatusText: response.statusText,\n\t\t\t\t\tbody: responseHeader ?? transformedBody,\n\t\t\t\t};\n\n\t\t\t\tcatchErrorCodes(options, result);\n\n\t\t\t\tresolve(result.body);\n\t\t\t}\n\t\t} catch (error) {\n\t\t\treject(error);\n\t\t}\n\t});\n};","// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { CancelablePromise } from './core/CancelablePromise';\nimport { OpenAPI } from './core/OpenAPI';\nimport { request as __request } from './core/request';\nimport type { AuthPingResponse, VersionResponse, AccountSummaryResponse, GetSsoConfigResponse, GetSecurityContextResponse, SendChaserEmailData, SendChaserEmailResponse, UnsubscribeData, UnsubscribeResponse, GetProfileResponse, GetSettingsResponse, DeleteEntityData, DeleteEntityResponse, GetUsersData, GetUsersResponse, GetUsersForPickerData, GetUsersForPickerResponse, ListEntitiesData, ListEntitiesResponse, GetCompanyByEntityIdData, GetCompanyByEntityIdResponse, SearchEntityData, SearchEntityResponse, ValidateEntitiesData, ValidateEntitiesResponse, CreatePresetData, CreatePresetResponse, ListAllPresetsForSubAccountV1Data, ListAllPresetsForSubAccountV1Response, DeletePresetData, DeletePresetResponse, GetPresetData, GetPresetResponse, PresetEditAnswersData, PresetEditAnswersResponse, PresetGetMultipleNestedAnswersData, PresetGetMultipleNestedAnswersResponse, PresetSetMultipleNestedAnswersData, PresetSetMultipleNestedAnswersResponse, PresetGetNestedAnswersData, PresetGetNestedAnswersResponse, PresetSetNestedAnswersData, PresetSetNestedAnswersResponse, PresetSwapPartiesData, PresetSwapPartiesResponse, UpgradePresetSchemaData, UpgradePresetSchemaResponse, UpdateMetadataData, UpdateMetadataResponse, DownloadPresetData, DownloadPresetResponse, ListAllPresetsForSubAccountV2Data, ListAllPresetsForSubAccountV2Response, ListPresetsData, ListPresetsResponse, PresetSendForApprovalData, PresetSendForApprovalResponse, ClonePresetData, ClonePresetResponse, PresetSetElectionApprovalData, PresetSetElectionApprovalResponse, PresetSetFinalApprovalData, PresetSetFinalApprovalResponse, CreatePresetAuditTrailJsonData, CreatePresetAuditTrailJsonResponse, CreatePresetAuditTrailXlsxData, CreatePresetAuditTrailXlsxResponse, ListNegotiationsData, ListNegotiationsResponse, CreateNegotiationData, CreateNegotiationResponse, SetFinalApprovalData, SetFinalApprovalResponse, DownloadDashboardReportAsExcelData, DownloadDashboardReportAsExcelResponse, UpgradeSchemaData, UpgradeSchemaResponse, BreakingChangesData, BreakingChangesResponse, GetAccessibleNegotiationData, GetAccessibleNegotiationResponse, GetNegotiationData, GetNegotiationResponse, GetExecutedNegotiationSummaryData, GetExecutedNegotiationSummaryResponse, GetAsCdmData, GetAsCdmResponse, GetDownloadExecutedNegotiationsAsExcelData, GetDownloadExecutedNegotiationsAsExcelResponse, DownloadExecutedNegotiationsAsExcelData, DownloadExecutedNegotiationsAsExcelResponse, GetDownloadActiveNegotiationsReportAsExcelData, GetDownloadActiveNegotiationsReportAsExcelResponse, DownloadActiveNegotiationsReportAsExcelData, DownloadActiveNegotiationsReportAsExcelResponse, DownloadNegotiationData, DownloadNegotiationResponse, DownloadPreExecutionCounterpartyNegotiationData, DownloadPreExecutionCounterpartyNegotiationResponse, GetSignedExecutedVersionData, GetSignedExecutedVersionResponse, SetSignedExecutedVersionData, SetSignedExecutedVersionResponse, DeleteSignedExecutedVersionData, DeleteSignedExecutedVersionResponse, CheckSignedExecutedVersionData, CheckSignedExecutedVersionResponse, GetNegotiationFilesSummaryData, GetNegotiationFilesSummaryResponse, CreateAuditTrailXlsxData, CreateAuditTrailXlsxResponse, CreateAuditTrailPdfData, CreateAuditTrailPdfResponse, CreateAuditTrailJsonData, CreateAuditTrailJsonResponse, CreateSigningPackData, CreateSigningPackResponse, DownloadPostExecutionPackData, DownloadPostExecutionPackResponse, CreateSignaturePagePdfData, CreateSignaturePagePdfResponse, GetSignedSignaturePagePdfData, GetSignedSignaturePagePdfResponse, CheckSignedSignaturePagePdfData, CheckSignedSignaturePagePdfResponse, SetSignedSignaturePageForPartyData, SetSignedSignaturePageForPartyResponse, DeleteSignedSignaturePageForPartyData, DeleteSignedSignaturePageForPartyResponse, GetAuxiliaryDocumentData, GetAuxiliaryDocumentResponse, SetAuxiliaryDocumentData, SetAuxiliaryDocumentResponse, DeleteAuxiliaryDocumentData, DeleteAuxiliaryDocumentResponse, CheckAuxiliaryDocumentData, CheckAuxiliaryDocumentResponse, GetOfflineNegotiatedDocumentData, GetOfflineNegotiatedDocumentResponse, SetOfflineNegotiatedDocumentData, SetOfflineNegotiatedDocumentResponse, DeleteOfflineNegotiatedDocumentData, DeleteOfflineNegotiatedDocumentResponse, GetAnnotatedOfflineNegotiatedDocumentData, GetAnnotatedOfflineNegotiatedDocumentResponse, GetOfflineNegotiatedDocumentAnnotationsData, GetOfflineNegotiatedDocumentAnnotationsResponse, CheckOfflineNegotiatedDocumentData, CheckOfflineNegotiatedDocumentResponse, ListDocumentsData, ListDocumentsResponse, ListDocumentsWithPaginationData, ListDocumentsWithPaginationResponse, ListDocumentsVersionsSummaryData, ListDocumentsVersionsSummaryResponse, GetDocumentData, GetDocumentResponse, GetDocumentSchemaData, GetDocumentSchemaResponse, SchemaAvailableAsCdmData, SchemaAvailableAsCdmResponse, DocumentRenderTemplateData, DocumentRenderTemplateResponse, GetAmendDefaultsData, GetAmendDefaultsResponse, GetLatestDocumentSchemaData, GetLatestDocumentSchemaResponse, ForkNegotiationData, ForkNegotiationResponse, NegotiationForkHistoryData, NegotiationForkHistoryResponse, GetOriginalAnswersForForkNegotiationData, GetOriginalAnswersForForkNegotiationResponse, NotifyOfDraftData, NotifyOfDraftResponse, UpdateCustomFieldsData, UpdateCustomFieldsResponse, MarkAsFinalData, MarkAsFinalResponse, EditAnswersData, EditAnswersResponse, EditDefaultAnswersData, EditDefaultAnswersResponse, AcceptAllCounterpartyPositionsData, AcceptAllCounterpartyPositionsResponse, AcceptAllPresetPositionsData, AcceptAllPresetPositionsResponse, AcceptAllCustodianTemplatePositionsData, AcceptAllCustodianTemplatePositionsResponse, AcceptAllPositionsFromPreviousVersionData, AcceptAllPositionsFromPreviousVersionResponse, AcceptAllPositionsFromForkData, AcceptAllPositionsFromForkResponse, GetElectionAnswerData, GetElectionAnswerResponse, GetMajorVersionsData, GetMajorVersionsResponse, GetAllVersionsData, GetAllVersionsResponse, GetOtherPartyAnswersData, GetOtherPartyAnswersResponse, GetPartyAnswersData, GetPartyAnswersResponse, AcceptCounterpartyPositionData, AcceptCounterpartyPositionResponse, GetMultipleNestedAnswersData, GetMultipleNestedAnswersResponse, SetMultipleNestedAnswersData, SetMultipleNestedAnswersResponse, GetNestedAnswersData, GetNestedAnswersResponse, SetNestedAnswersData, SetNestedAnswersResponse, GetPreviousMajorVersionsNestedAnswerElectionsData, GetPreviousMajorVersionsNestedAnswerElectionsResponse, GetPreviousMajorVersionsNestedAnswerIdsData, GetPreviousMajorVersionsNestedAnswerIdsResponse, AcceptNestedAnswersCounterpartyPositionData, AcceptNestedAnswersCounterpartyPositionResponse, InitialAnswersData, InitialAnswersResponse, AssignToMeData, AssignToMeResponse, AssignUserData, AssignUserResponse, GetPreviousActiveUsersData, GetPreviousActiveUsersResponse, SetCounterpartiesData, SetCounterpartiesResponse, GetExternalAttachmentData, GetExternalAttachmentResponse, DeleteExternalAttachmentData, DeleteExternalAttachmentResponse, ListExternalAttachmentsData, ListExternalAttachmentsResponse, SetExternalAttachmentData, SetExternalAttachmentResponse, SetExternalAttachmentsData, SetExternalAttachmentsResponse, GetExecutionAttachmentData, GetExecutionAttachmentResponse, DeleteExecutionAttachmentData, DeleteExecutionAttachmentResponse, ListExecutionAttachmentsData, ListExecutionAttachmentsResponse, SetExecutionAttachmentData, SetExecutionAttachmentResponse, SetExecutionAttachmentsData, SetExecutionAttachmentsResponse, RenameExecutionAttachmentData, RenameExecutionAttachmentResponse, SetOwnerEntityData, SetOwnerEntityResponse, SetReceiverEntityData, SetReceiverEntityResponse, SetPresetData, SetPresetResponse, SwapPartiesData, SwapPartiesResponse, ApproveFinalDocumentData, ApproveFinalDocumentResponse, OverrideApproveFinalDocumentData, OverrideApproveFinalDocumentResponse, RejectFinalDocumentData, RejectFinalDocumentResponse, OverrideRejectFinalDocumentData, OverrideRejectFinalDocumentResponse, SendToCounterpartyData, SendToCounterpartyResponse, SetGeneralCoverNoteData, SetGeneralCoverNoteResponse, DeleteGeneralCoverNoteData, DeleteGeneralCoverNoteResponse, NegotiationSendForApprovalData, NegotiationSendForApprovalResponse, ChangeSigningModeData, ChangeSigningModeResponse, SetElectionApprovalData, SetElectionApprovalResponse, SendDocumentApprovalReminderData, SendDocumentApprovalReminderResponse, SendElectionApprovalReminderData, SendElectionApprovalReminderResponse, AddElectionApprovalData, AddElectionApprovalResponse, AddElectionRejectionData, AddElectionRejectionResponse, OverrideElectionApprovalData, OverrideElectionApprovalResponse, OverrideElectionRejectionData, OverrideElectionRejectionResponse, GetApprovalHistoryData, GetApprovalHistoryResponse, GetApprovalRoundData, GetApprovalRoundResponse, AddApprovalCommentData, AddApprovalCommentResponse, EditApprovalCommentData, EditApprovalCommentResponse, DeleteApprovalCommentData, DeleteApprovalCommentResponse, GetApprovalCommentsData, GetApprovalCommentsResponse, MarkApprovalCommentsAsViewedData, MarkApprovalCommentsAsViewedResponse, SendToCounterpartyInitialData, SendToCounterpartyInitialResponse, MarkAsOfflineData, MarkAsOfflineResponse, ConfirmData, ConfirmResponse, CancelData, CancelResponse, CancelNegotiationsData, CancelNegotiationsResponse, RetractData, RetractResponse, ConfirmExecutionVersionData, ConfirmExecutionVersionResponse, RevertToAmendingData, RevertToAmendingResponse, GetCommentsData, GetCommentsResponse, GetCommentSummaryData, GetCommentSummaryResponse, GetTimelineActivityData, GetTimelineActivityResponse, GetChannelTimelineData, GetChannelTimelineResponse, GetTimelineData, GetTimelineResponse, MarkEventsAsViewedData, MarkEventsAsViewedResponse, MarkActivityEventsAsViewedData, MarkActivityEventsAsViewedResponse, MarkCommentEventsAsViewedData, MarkCommentEventsAsViewedResponse, AddCommentData, AddCommentResponse, QueueGenerateNegotiationDocumentJobData, QueueGenerateNegotiationDocumentJobResponse, UpdateCommentData, UpdateCommentResponse, DeleteCommentData, DeleteCommentResponse, UpdateSubAccountData, UpdateSubAccountResponse, GetSubAccountData, GetSubAccountResponse, ListSubAccountsData, ListSubAccountsResponse, GetLegacyStatisticsData, GetLegacyStatisticsResponse, GetStatisticsData, GetStatisticsResponse, GetUserStatisticsData, GetUserStatisticsResponse, GetStatisticsOverviewData, GetStatisticsOverviewResponse, AssignEntityData, AssignEntityResponse, MoveEntityData, MoveEntityResponse, AuditTrailForSubAccountAsJsonData, AuditTrailForSubAccountAsJsonResponse, AuditTrailForSubAccountAsExcelData, AuditTrailForSubAccountAsExcelResponse, AuditTrailFiltersResponse, AuditTrailForAccountAsJsonData, AuditTrailForAccountAsJsonResponse, AuditTrailForAccountAsExcelData, AuditTrailForAccountAsExcelResponse, EmailPreferencesResponse, PatchEmailPreferencesData, PatchEmailPreferencesResponse, ListPotentialNegotiationAdvisorsData, ListPotentialNegotiationAdvisorsResponse, ListPotentialPresetAdvisorsData, ListPotentialPresetAdvisorsResponse, GetAccountRelationshipSummariesResponse, ListAdvisorsForWorkspaceData, ListAdvisorsForWorkspaceResponse, GrantNegotiationsAccessData, GrantNegotiationsAccessResponse, RevokeNegotiationsAccessData, RevokeNegotiationsAccessResponse, GrantAllNegotiationsAccessData, GrantAllNegotiationsAccessResponse, GrantPresetsAccessData, GrantPresetsAccessResponse, RevokePresetsAccessData, RevokePresetsAccessResponse, CreateGroupData, CreateGroupResponse, GetGroupNamesData, GetGroupNamesResponse, UpdateGroupNameData, UpdateGroupNameResponse, GetNegotiationDeltasData, GetNegotiationDeltasResponse, UpdateNegotiationsToMatchData, UpdateNegotiationsToMatchResponse, SuggestGroupNameData, SuggestGroupNameResponse, UpdateGroupMembersData, UpdateGroupMembersResponse, GetNegotiationsGroupData, GetNegotiationsGroupResponse, SendGroupToCounterpartyData, SendGroupToCounterpartyResponse2, CreateBulkSetData, CreateBulkSetResponse2, ListBulkSetsData, ListBulkSetsResponse, GetBulkSetData, GetBulkSetResponse, UpdateAttachDocxData, UpdateAttachDocxResponse, UpdateCoverNoteData, UpdateCoverNoteResponse, DeleteCoverNoteData, DeleteCoverNoteResponse, BulkSetsJobCountData, BulkSetsJobCountResponse, CancelNegotiationsJobCountData, CancelNegotiationsJobCountResponse, SendBulkSetToCounterpartiesInitialData, SendBulkSetToCounterpartiesInitialResponse, SetBulkSetAttachmentsData, SetBulkSetAttachmentsResponse, DeleteBulkSetAttachmentData, DeleteBulkSetAttachmentResponse, GetBulkSetAttachmentData, GetBulkSetAttachmentResponse, ValidateDraftReceiverEmailsData, ValidateDraftReceiverEmailsResponse, GetDraftingNotesData, GetDraftingNotesResponse, UpdateDraftingNotesData, UpdateDraftingNotesResponse, DeleteDraftingNotesDocumentData, DeleteDraftingNotesDocumentResponse, UpdateDocumentDraftingNoteData, UpdateDocumentDraftingNoteResponse, DeleteDocumentDraftingNoteData, DeleteDocumentDraftingNoteResponse, UpdateDocumentElectionDraftingNoteData, UpdateDocumentElectionDraftingNoteResponse, DeleteDocumentElectionDraftingNoteData, DeleteDocumentElectionDraftingNoteResponse, GetNegotiationDraftingNotesData, GetNegotiationDraftingNotesResponse, GetDraftingNotesDocumentData, GetDraftingNotesDocumentResponse, GetNegotiationESignStatusData, GetNegotiationESignStatusResponse, GenerateAndMaybeSendEnvelopeData, GenerateAndMaybeSendEnvelopeResponse, VoidESignEnvelopeForNegotiationData, VoidESignEnvelopeForNegotiationResponse, UsersWithNegotiationAccessData, UsersWithNegotiationAccessResponse, NegotiationRenderTemplateData, NegotiationRenderTemplateResponse, PresetRenderTemplateData, PresetRenderTemplateResponse, GetAllNegotiationCommentsForSubAccountData, GetAllNegotiationCommentsForSubAccountResponse, GetWatchersData, GetWatchersResponse, AddWatchersData, AddWatchersResponse, RemoveWatchersData, RemoveWatchersResponse, NegotiationsFilterData, NegotiationsFilterResponse, NegotiationGetDocumentSchemaData, NegotiationGetDocumentSchemaResponse, PresetGetDocumentSchemaData, PresetGetDocumentSchemaResponse, DocumentsFilterData, DocumentsFilterResponse, GrantWindowResponse, GetWindowResponse, ExtendWindowResponse, RevokeWindowResponse, GetExtractionResultsData, GetExtractionResultsResponse, ScheduleExtractionData, ScheduleExtractionResponse, UpdateSelectedElectionsData, UpdateSelectedElectionsResponse, UpdateExtractionFeedbackData, UpdateExtractionFeedbackResponse, UpdateUserAnswersData, UpdateUserAnswersResponse, ResetUserAnswersData, ResetUserAnswersResponse, CancelExtractionData, CancelExtractionResponse, ApplyExtractedAnswersData, ApplyExtractedAnswersResponse } from './types.gen';\n\n/**\n * Check that your access token is valid\n * Check that your access token is valid with this ping endpoint that requires authentication.\n * @returns unknown PONG!\n * @throws ApiError\n */\nexport const authPing = (): CancelablePromise<AuthPingResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/authPing',\n errors: {\n 401: 'Your access token is not valid, or needs refreshing'\n }\n });\n};\n\n/**\n * View information about the version of the platform that is currently deployed\n * View information about the version of the platform that is currently deployed.\n * @returns unknown Version information\n * @throws ApiError\n */\nexport const version = (): CancelablePromise<VersionResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/version'\n });\n};\n\n/**\n * View information about your account, its Sub-Accounts and entities\n * View information about your account, its Sub-Accounts and entities.\n * @returns AccountSummaryWithSubAccounts success\n * @throws ApiError\n */\nexport const accountSummary = (): CancelablePromise<AccountSummaryResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/account',\n errors: {\n 400: 'Account does not exist'\n }\n });\n};\n\n/**\n * View the single sign-on settings for your account\n * View the single sign-on settings for your account.\n * @returns ModifySSOConfig SSO Configuration object\n * @throws ApiError\n */\nexport const getSsoConfig = (): CancelablePromise<GetSsoConfigResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/account/sso'\n });\n};\n\n/**\n * View information about you, your abilities and permissions\n * View information about you, your abilities and permissions.\n * @returns SecurityContext A JSON document describing a user's role(s), abilities and permissions.\n * @throws ApiError\n */\nexport const getSecurityContext = (): CancelablePromise<GetSecurityContextResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/user/context'\n });\n};\n\n/**\n * Send a chaser email to your counterparty to remind them a response is required\n * Send a chaser email to your counterparty to remind them a response is required.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns unknown The process is complete and email(s) are sent.\n * @throws ApiError\n */\nexport const sendChaserEmail = (data: SendChaserEmailData): CancelablePromise<SendChaserEmailResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/sendChaserEmail',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 400: 'Invalid negotiation state or trying to send the email too soon',\n 404: 'Negotiation or Sub-Account not found'\n }\n });\n};\n\n/**\n * Stop receiving emails relating to the specified notification\n * Stop receiving emails relating to the specified notification.\n * @param data The data for the request.\n * @param data.negotiationId\n * @param data.requestBody\n * @returns unknown The process is complete, emails won't be sent to the specified user about this negotiation.\n * @throws ApiError\n */\nexport const unsubscribe = (data: UnsubscribeData): CancelablePromise<UnsubscribeResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/negotiations/{negotiationId}/muteNotifications',\n path: {\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 400: 'The hash provided cannot be verified',\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * View your user profile\n * View your user profile.\n * @returns UserProfile The user's profile\n * @throws ApiError\n */\nexport const getProfile = (): CancelablePromise<GetProfileResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/user/profile'\n });\n};\n\n/**\n * View information about your account\n * View information about your account.\n * @returns AccountSettings Name and email domain for an account\n * @throws ApiError\n */\nexport const getSettings = (): CancelablePromise<GetSettingsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/account/settings',\n errors: {\n 404: 'Account not found'\n }\n });\n};\n\n/**\n * Delete an entity from an account when it's not used in any non final negotiation\n * Delete an entity from an account when it's not used in any non final negotiation.\n * @param data The data for the request.\n * @param data.entityId\n * @returns void Entity deleted successfully\n * @throws ApiError\n */\nexport const deleteEntity = (data: DeleteEntityData): CancelablePromise<DeleteEntityResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/account/entity/{entityId}',\n path: {\n entityId: data.entityId\n },\n errors: {\n 409: 'Entity cannot be deleted as it is in use'\n }\n });\n};\n\n/**\n * View a list of the active users in a Sub-Account\n * View a list of the active users in a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.includeSuperManagers Include super managers (who are in all Sub-Accounts) in the response\n * @param data.includeAdvisors Include advisors in the response\n * @returns ActiveOrPendingUser List all of the users of the specified subaccount\n * @throws ApiError\n */\nexport const getUsers = (data: GetUsersData): CancelablePromise<GetUsersResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subaccount/{subAccountId}/users',\n path: {\n subAccountId: data.subAccountId\n },\n query: {\n includeSuperManagers: data.includeSuperManagers,\n includeAdvisors: data.includeAdvisors\n },\n errors: {\n 404: 'Sub-account not found'\n }\n });\n};\n\n/**\n * View a list of the active users in a Sub-Account.\n * View a list of the active users in a Sub-Account. Returns a minimal set of data for the user picker. Returns only fully-registered users.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.includeSuperManagers Include super managers (who are in all Sub-Accounts) in the response\n * @param data.includeAdvisors Include advisors in the response\n * @returns UserListForPicker List all of the users of the specified subaccount\n * @throws ApiError\n */\nexport const getUsersForPicker = (data: GetUsersForPickerData): CancelablePromise<GetUsersForPickerResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subaccount/{subAccountId}/usersForPicker',\n path: {\n subAccountId: data.subAccountId\n },\n query: {\n includeSuperManagers: data.includeSuperManagers,\n includeAdvisors: data.includeAdvisors\n },\n errors: {\n 404: 'Sub-account not found'\n }\n });\n};\n\n/**\n * View a list of all entities assigned to Sub-Accounts, account-wide\n * View a list of all entities assigned to Sub-Accounts, account-wide.\n * @param data The data for the request.\n * @param data.query\n * @returns LegalEntity A list of entities assigned to Sub-Accounts of the account\n * @throws ApiError\n */\nexport const listEntities = (data: ListEntitiesData = {}): CancelablePromise<ListEntitiesResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/account/entities',\n query: {\n query: data.query\n }\n });\n};\n\n/**\n * View information about a specific entity\n * View information about a specific entity.\n * @param data The data for the request.\n * @param data.entityId\n * @returns Entity A document describing an entity\n * @throws ApiError\n */\nexport const getCompanyByEntityId = (data: GetCompanyByEntityIdData): CancelablePromise<GetCompanyByEntityIdResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/entity/{entityId}',\n path: {\n entityId: data.entityId\n },\n errors: {\n 404: 'Company not found'\n }\n });\n};\n\n/**\n * View entities that match a list of search terms\n * View entities that match a list of search terms.\n * @param data The data for the request.\n * @param data.search\n * @returns Entity A document describing the entities that match these search terms\n * @throws ApiError\n */\nexport const searchEntity = (data: SearchEntityData): CancelablePromise<SearchEntityResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/entity',\n query: {\n search: data.search\n }\n });\n};\n\n/**\n * Send a list of entities to validate against the GLEIF database\n * Send a list of entities to validate against the GLEIF database.\n * @param data The data for the request.\n * @param data.requestBody\n * @returns ValidatedEntities A JSON list describing the valid and invalid entities\n * @throws ApiError\n */\nexport const validateEntities = (data: ValidateEntitiesData): CancelablePromise<ValidateEntitiesResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/entity/validate',\n body: data.requestBody,\n mediaType: 'application/json'\n });\n};\n\n/**\n * Create a preset\n * Create a preset.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.requestBody\n * @returns PresetSingleWithPreview The new preset\n * @throws ApiError\n */\nexport const createPreset = (data: CreatePresetData): CancelablePromise<CreatePresetResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/presets',\n path: {\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Schema not found'\n }\n });\n};\n\n/**\n * View a list of the presets in a Sub-Account\n * View a list of the presets in a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId Filter by Sub-Account\n * @param data.pageIndex Index of a page to return. It is 0 based.\n * @param data.pageSize Number of items to return in one page. One Item is either one non grouped negotiation or all negotiations in a group.\n * @param data.orderBy Order results by a field\n * @param data.orderDirection Specifies sorting direction\n * @param data.filterApproved If true filter approved presets\n * @param data.advisorRelationshipId advisor relationship id to identify accessible presets\n * @param data.accessibleToAdvisor If true filter presets which are accessible to advisor\n * @param data.filterStage2 If true filter presets which are to be shown in stage 2 of negotiation\n * @param data.query Free text search to query listed presets by name\n * @returns PresetSummary A list of presets\n * @throws ApiError\n */\nexport const listAllPresetsForSubAccountV1 = (data: ListAllPresetsForSubAccountV1Data): CancelablePromise<ListAllPresetsForSubAccountV1Response> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/presets',\n path: {\n subAccountId: data.subAccountId\n },\n query: {\n pageIndex: data.pageIndex,\n pageSize: data.pageSize,\n orderBy: data.orderBy,\n orderDirection: data.orderDirection,\n filterApproved: data.filterApproved,\n advisorRelationshipId: data.advisorRelationshipId,\n accessibleToAdvisor: data.accessibleToAdvisor,\n filterStage2: data.filterStage2,\n query: data.query\n }\n });\n};\n\n/**\n * Delete a preset\n * Delete a preset.\n * @param data The data for the request.\n * @param data.presetId\n * @returns unknown Preset deleted successfully\n * @throws ApiError\n */\nexport const deletePreset = (data: DeletePresetData): CancelablePromise<DeletePresetResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/presets/{presetId}',\n path: {\n presetId: data.presetId\n }\n });\n};\n\n/**\n * View a specific preset\n * View a specific preset.\n * @param data The data for the request.\n * @param data.presetId\n * @returns PresetSingle A preset\n * @throws ApiError\n */\nexport const getPreset = (data: GetPresetData): CancelablePromise<GetPresetResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/presets/{presetId}',\n path: {\n presetId: data.presetId\n }\n });\n};\n\n/**\n * Update the answers for a preset\n * Update the answers for a preset.\n * @param data The data for the request.\n * @param data.presetId\n * @param data.requestBody\n * @returns PresetSingleWithPreview The modified preset\n * @throws ApiError\n */\nexport const presetEditAnswers = (data: PresetEditAnswersData): CancelablePromise<PresetEditAnswersResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/presets/{presetId}/answers',\n path: {\n presetId: data.presetId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Preset or election not found'\n }\n });\n};\n\n/**\n * Get the value for multiple nested answers\n * Get the value for multiple nested answers.\n * @param data The data for the request.\n * @param data.presetId\n * @param data.requestBody\n * @returns NestedAnswersSummariesWithPresetAnswers The nested answers\n * @throws ApiError\n */\nexport const presetGetMultipleNestedAnswers = (data: PresetGetMultipleNestedAnswersData): CancelablePromise<PresetGetMultipleNestedAnswersResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/presets/{presetId}/answers/nested/bulk',\n path: {\n presetId: data.presetId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 400: 'Too many nested answers IDs passed',\n 404: 'Preset not found'\n }\n });\n};\n\n/**\n * Sets the values for multiple nested answers\n * Sets the values for multiple nested answers, used in umbrella agreements.\n * @param data The data for the request.\n * @param data.presetId\n * @param data.requestBody\n * @returns PresetSingleWithPreviewAndMultipleNestedAnswers The updated preset containing the new nested answers\n * @throws ApiError\n */\nexport const presetSetMultipleNestedAnswers = (data: PresetSetMultipleNestedAnswersData): CancelablePromise<PresetSetMultipleNestedAnswersResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/presets/{presetId}/answers/nested/bulk',\n path: {\n presetId: data.presetId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 400: 'Too many nested answers IDs passed',\n 404: 'Preset not found'\n }\n });\n};\n\n/**\n * Get the value for a nested answer\n * Get the value for a nested answer.\n * @param data The data for the request.\n * @param data.presetId\n * @param data.nestedAnswersId\n * @returns NestedAnswersSummariesWithPresetAnswers The nested answers\n * @throws ApiError\n */\nexport const presetGetNestedAnswers = (data: PresetGetNestedAnswersData): CancelablePromise<PresetGetNestedAnswersResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/presets/{presetId}/answers/nested/{nestedAnswersId}',\n path: {\n presetId: data.presetId,\n nestedAnswersId: data.nestedAnswersId\n },\n errors: {\n 404: 'Preset not found'\n }\n });\n};\n\n/**\n * Sets the value for a nested answer\n * Sets the value for a nested answer.\n * @param data The data for the request.\n * @param data.presetId\n * @param data.nestedAnswersId\n * @param data.requestBody\n * @returns PresetSingleWithPreviewAndNestedAnswers The updated preset containing the new nested answers\n * @throws ApiError\n */\nexport const presetSetNestedAnswers = (data: PresetSetNestedAnswersData): CancelablePromise<PresetSetNestedAnswersResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/presets/{presetId}/answers/nested/{nestedAnswersId}',\n path: {\n presetId: data.presetId,\n nestedAnswersId: data.nestedAnswersId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Preset or election not found'\n }\n });\n};\n\n/**\n * Perform a party swap for a preset\n * Perform a party swap for a preset.\n * @param data The data for the request.\n * @param data.presetId\n * @returns PresetSingleWithPreview The modified preset\n * @throws ApiError\n */\nexport const presetSwapParties = (data: PresetSwapPartiesData): CancelablePromise<PresetSwapPartiesResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/presets/{presetId}/swapParties',\n path: {\n presetId: data.presetId\n },\n errors: {\n 404: 'Preset not found'\n }\n });\n};\n\n/**\n * Create a new version of this preset with the latest schema\n * Create a new version of this preset with the latest schema.\n * @param data The data for the request.\n * @param data.presetId\n * @returns PresetSingleWithPreview A new preset\n * @throws ApiError\n */\nexport const upgradePresetSchema = (data: UpgradePresetSchemaData): CancelablePromise<UpgradePresetSchemaResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/presets/{presetId}/schema/upgrade',\n path: {\n presetId: data.presetId\n },\n errors: {\n 404: 'Preset not found'\n }\n });\n};\n\n/**\n * Update metadata for a preset\n * Update metadata for a preset.\n * @param data The data for the request.\n * @param data.presetId\n * @param data.requestBody\n * @returns PresetSingle The modified preset\n * @throws ApiError\n */\nexport const updateMetadata = (data: UpdateMetadataData): CancelablePromise<UpdateMetadataResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/presets/{presetId}/metadata',\n path: {\n presetId: data.presetId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Preset not found'\n }\n });\n};\n\n/**\n * Download a preset in PDF or DOCX format\n * Download a preset in PDF or DOCX format.\n * @param data The data for the request.\n * @param data.presetId\n * @param data.extension File extension\n * @returns binary PDF formatted data\n * @throws ApiError\n */\nexport const downloadPreset = (data: DownloadPresetData): CancelablePromise<DownloadPresetResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/presets/{presetId}/extension/{extension}',\n path: {\n presetId: data.presetId,\n extension: data.extension\n }\n });\n};\n\n/**\n * View a list of the presets in a Sub-Account\n * View a list of the presets in a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId Filter by Sub-Account\n * @param data.pageIndex Index of a page to return. It is 0 based.\n * @param data.pageSize Number of items to return in one page. One Item is either one non grouped negotiation or all negotiations in a group.\n * @param data.orderBy Order results by a field\n * @param data.orderDirection Specifies sorting direction\n * @param data.filterApproved If true filter approved presets\n * @param data.advisorRelationshipId advisor relationship id to identify accessible presets\n * @param data.accessibleToAdvisor If true filter presets which are accessible to advisor\n * @param data.filterStage2 If true filter presets which are to be shown in stage 2 of negotiation\n * @param data.query Free text search to query listed presets by name\n * @returns PresetResults A list of presets that match the search criteria provided. Paging metadata is returned if paging query parameters are passed. pagingMeta.total is a sum of presets selected (e.g. by passing query param), or all presets, in given sub account.\n * @throws ApiError\n */\nexport const listAllPresetsForSubAccountV2 = (data: ListAllPresetsForSubAccountV2Data): CancelablePromise<ListAllPresetsForSubAccountV2Response> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v2/subAccounts/{subAccountId}/presets',\n path: {\n subAccountId: data.subAccountId\n },\n query: {\n pageIndex: data.pageIndex,\n pageSize: data.pageSize,\n orderBy: data.orderBy,\n orderDirection: data.orderDirection,\n filterApproved: data.filterApproved,\n advisorRelationshipId: data.advisorRelationshipId,\n accessibleToAdvisor: data.accessibleToAdvisor,\n filterStage2: data.filterStage2,\n query: data.query\n }\n });\n};\n\n/**\n * View a list of the presets with a documentId in a Sub-Account\n * View a list of the presets with a documentId in a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId Filter by Sub-Account\n * @param data.documentId\n * @param data.pageIndex Index of a page to return. It is 0 based.\n * @param data.pageSize Number of items to return in one page. One Item is either one non grouped negotiation or all negotiations in a group.\n * @param data.orderBy Order results by a field\n * @param data.orderDirection Specifies sorting direction\n * @param data.filterApproved If true filter approved presets\n * @param data.filterStage2 If true filter presets which are to be shown in stage 2 of negotiation\n * @returns PresetSummary A list of preset summaries\n * @throws ApiError\n */\nexport const listPresets = (data: ListPresetsData): CancelablePromise<ListPresetsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/documents/{documentId}/presets',\n path: {\n subAccountId: data.subAccountId,\n documentId: data.documentId\n },\n query: {\n pageIndex: data.pageIndex,\n pageSize: data.pageSize,\n orderBy: data.orderBy,\n orderDirection: data.orderDirection,\n filterApproved: data.filterApproved,\n filterStage2: data.filterStage2\n }\n });\n};\n\n/**\n * Submit a preset for approval\n * Submit the preset for approval.\n * @param data The data for the request.\n * @param data.presetId\n * @returns PresetSingle The submitted preset\n * @throws ApiError\n */\nexport const presetSendForApproval = (data: PresetSendForApprovalData): CancelablePromise<PresetSendForApprovalResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/presets/{presetId}/approvals/sendForApproval',\n path: {\n presetId: data.presetId\n },\n errors: {\n 404: 'Preset not found'\n }\n });\n};\n\n/**\n * Create a copy of a preset\n * Create a copy of a preset.\n * @param data The data for the request.\n * @param data.presetId\n * @param data.withApprovers Copy approvers to the new preset\n * @returns PresetSingle The new, cloned preset\n * @throws ApiError\n */\nexport const clonePreset = (data: ClonePresetData): CancelablePromise<ClonePresetResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/presets/{presetId}/clone',\n path: {\n presetId: data.presetId\n },\n query: {\n withApprovers: data.withApprovers\n },\n errors: {\n 404: 'Preset not found'\n }\n });\n};\n\n/**\n * Update the election-level approval rules for an election in a preset\n * Update the election-level approval rules for an election in a preset.\n * @param data The data for the request.\n * @param data.presetId\n * @param data.electionId\n * @param data.requestBody\n * @returns PresetSingle The updated preset\n * @throws ApiError\n */\nexport const presetSetElectionApproval = (data: PresetSetElectionApprovalData): CancelablePromise<PresetSetElectionApprovalResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/presets/{presetId}/approvals/elections/{electionId}',\n path: {\n presetId: data.presetId,\n electionId: data.electionId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'Forbidden action in this state',\n 404: 'Preset not found'\n }\n });\n};\n\n/**\n * Update the document approval rules for a preset\n * Update the document approval rules for a preset.\n * @param data The data for the request.\n * @param data.presetId\n * @param data.requestBody\n * @returns PresetSingle The updated preset\n * @throws ApiError\n */\nexport const presetSetFinalApproval = (data: PresetSetFinalApprovalData): CancelablePromise<PresetSetFinalApprovalResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/presets/{presetId}/approvals/document',\n path: {\n presetId: data.presetId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Preset not found'\n }\n });\n};\n\n/**\n * Download the audit trail for a preset as JSON\n * Download the audit trail for a preset as JSON.\n * @param data The data for the request.\n * @param data.presetId\n * @returns PresetAuditEvents JSON formatted data\n * @throws ApiError\n */\nexport const createPresetAuditTrailJson = (data: CreatePresetAuditTrailJsonData): CancelablePromise<CreatePresetAuditTrailJsonResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/presets/{presetId}/audit_trail/json',\n path: {\n presetId: data.presetId\n }\n });\n};\n\n/**\n * Download the audit trail for a preset as XLSX\n * Download the audit trail for a preset as XLSX.\n * @param data The data for the request.\n * @param data.presetId\n * @param data.timeZone\n * @returns binary XLSX formatted data\n * @throws ApiError\n */\nexport const createPresetAuditTrailXlsx = (data: CreatePresetAuditTrailXlsxData): CancelablePromise<CreatePresetAuditTrailXlsxResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/presets/{presetId}/audit_trail/xlsx',\n path: {\n presetId: data.presetId\n },\n query: {\n timeZone: data.timeZone\n }\n });\n};\n\n/**\n * List negotiations in a Sub-Account\n * List negotiations in a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.state Filter by negotiation state\n * @param data.status Filter by negotiation status\n * @param data.workflowType Filter by worfklow type\n * @param data.userId Filter by active user id\n * @param data.turn Filter by which party's turn it is\n * @param data.staleFrom Filter by last send-to-counterparty being before this time in milliseconds\n * @param data.staleTo Filter by last send-to-counterparty being after this time in milliseconds\n * @param data.groupId Filter by negotiation group id\n * @param data.bulkSetIds Filter by negotiation provided list of bulk set ids\n * @param data.jobStatus Filter by job status. Supported values are 'pending' and 'failed' and is queried on only when 'bulkSetIds' are specified\n * @param data.filters Construct a filter string in the format `field+operator+operand`. e.g. lastAction+gte+2025-05-10T10:00:00.000Z. Timestamps must be URL encoded. Timezones must include a colon, e.g. lastAction+gte+2025-05-10T10:00:00.000%2B02:00\n * @param data.query Free text search to query listed negotiations across Parties, Document abbreviation, Document publisher, Reference ID, Active User and Status e.g. \"ISDA PartyA 785 John Smith\"\n * @param data.pageIndex Index of a page to return. It is 0 based.\n * @param data.pageSize Number of items to return in one page. One Item is either one non grouped negotiation or all negotiations in a group.\n * @param data.orderBy Order results by a field\n * @param data.orderDirection Specifies sorting direction\n * @param data.documentPublisherId Filter by document publisher id\n * @param data.excludedUiStates Exclude negotiations with state matching with provided list of states\n * @param data.documentType Filter by a list of document types\n * @param data.myEntityName Filter by a list of my entity names\n * @param data.counterpartyEntityName Filter by a list of counterparty entity names\n * @param data.inBulkSet On true then filter negotiations in a sub account which are part of a bulk set, when false filter all negotiations in a sub account which are not part of any bulk set\n * @param data.advisorRelationshipId Filter by advisor relationship id (both advisorRelationshipId and accessibleToAdvisor needs to be present)\n * @param data.accessibleToAdvisor Filter advisor negotiations based on their access, given the advisorRelationshipId (both advisorRelationshipId and accessibleToAdvisor needs to be present)\n * @param data.customReferenceId Filter by API reference ID\n * @param data.displayReferenceId Filter by a list of possible display reference IDs\n * @param data.isForkedOrFork Filter by whether the negotiation is involved in a restatement\n * @param data.approverName Filter by a list of possible approver names\n * @param data.partyA Search negotiations for the specified entity id against partyA entity id\n * @param data.partyB Search negotiations for the specified entity id against partyB entity id\n * @param data.partyC Search negotiations for the specified entity id against partyC entity id\n * @param data.partyAny Search negotiations for the specified entity id against any of partyA, partyB or partyC entity id\n * @param data.isTriparty Return only trilateral negotiations if isTriparty is true, or only bilateral negotiations if it is false\n * @param data.isOffline Return only offline negotiations if isOffline is true, or only online negotiations if it is false\n * @param data.forkedFromOrTo Return only negotiations that are forked from or forked to this negotiation\n * @returns NegotiationList A list of negotiations that match the search criteria provided. Paging metadata is returned if paging query parameters are passed. pagingMeta.total is a sum of non grouped negotiations and a number of negotiation groups.\n * @throws ApiError\n */\nexport const listNegotiations = (data: ListNegotiationsData): CancelablePromise<ListNegotiationsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations',\n path: {\n subAccountId: data.subAccountId\n },\n query: {\n state: data.state,\n status: data.status,\n workflowType: data.workflowType,\n userId: data.userId,\n turn: data.turn,\n staleFrom: data.staleFrom,\n staleTo: data.staleTo,\n groupId: data.groupId,\n bulkSetIds: data.bulkSetIds,\n jobStatus: data.jobStatus,\n filters: data.filters,\n query: data.query,\n pageIndex: data.pageIndex,\n pageSize: data.pageSize,\n orderBy: data.orderBy,\n orderDirection: data.orderDirection,\n documentPublisherId: data.documentPublisherId,\n excludedUiStates: data.excludedUiStates,\n documentType: data.documentType,\n myEntityName: data.myEntityName,\n counterpartyEntityName: data.counterpartyEntityName,\n inBulkSet: data.inBulkSet,\n advisorRelationshipId: data.advisorRelationshipId,\n accessibleToAdvisor: data.accessibleToAdvisor,\n customReferenceId: data.customReferenceId,\n displayReferenceId: data.displayReferenceId,\n isForkedOrFork: data.isForkedOrFork,\n approverName: data.approverName,\n partyA: data.partyA,\n partyB: data.partyB,\n partyC: data.partyC,\n partyAny: data.partyAny,\n isTriparty: data.isTriparty,\n isOffline: data.isOffline,\n forkedFromOrTo: data.forkedFromOrTo\n }\n });\n};\n\n/**\n * Create an empty negotiation from a preset, document or template negotiation\n * Create an empty negotiation from a preset, document or template negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.requestBody\n * @returns NegotiationWithTimelineAndPreview The negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const createNegotiation = (data: CreateNegotiationData): CancelablePromise<CreateNegotiationResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations',\n path: {\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation or election not found'\n }\n });\n};\n\n/**\n * Update the document approval rules for a negotiation\n * Update the document approval rules for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationSingle A list of negotiations\n * @throws ApiError\n */\nexport const setFinalApproval = (data: SetFinalApprovalData): CancelablePromise<SetFinalApprovalResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/document',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json'\n });\n};\n\n/**\n * List negotiations in a Sub-Account and return the result as a report\n * List negotiations in a Sub-Account and return the result as a report.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.requestingFromContext The page that the user is trying to download from (i.e. Dashboard, or Negotiations)\n * @param data.documentId Filter by document\n * @param data.timeZone Time zone (for date-time formatting in output)\n * @param data.state Filter by negotiation state\n * @param data.status Filter by negotiation status\n * @param data.workflowType Filter by worfklow type\n * @param data.userId Filter by active user id\n * @param data.turn Filter by which party's turn it is\n * @param data.staleFrom Filter by last send-to-counterparty being before this time in milliseconds\n * @param data.staleTo Filter by last send-to-counterparty being after this time in milliseconds\n * @param data.groupId Filter by negotiation group id\n * @param data.bulkSetIds Filter by negotiation provided list of bulk set ids\n * @param data.jobStatus Filter by job status. Supported values are 'pending' and 'failed' and is queried on only when 'bulkSetIds' are specified\n * @param data.filters Construct a filter string in the format `field+operator+operand`. e.g. lastAction+gte+2025-05-10T10:00:00.000Z. Timestamps must be URL encoded. Timezones must include a colon, e.g. lastAction+gte+2025-05-10T10:00:00.000%2B02:00\n * @param data.query Free text search to query listed negotiations across Parties, Document abbreviation, Document publisher, Reference ID, Active User and Status e.g. \"ISDA PartyA 785 John Smith\"\n * @param data.pageIndex Index of a page to return. It is 0 based.\n * @param data.pageSize Number of items to return in one page. One Item is either one non grouped negotiation or all negotiations in a group.\n * @param data.orderBy Order results by a field\n * @param data.orderDirection Specifies sorting direction\n * @param data.documentPublisherId Filter by document publisher id\n * @param data.excludedUiStates Exclude negotiations with state matching with provided list of states\n * @param data.documentType Filter by a list of document types\n * @param data.myEntityName Filter by a list of my entity names\n * @param data.counterpartyEntityName Filter by a list of counterparty entity names\n * @param data.inBulkSet On true then filter negotiations in a sub account which are part of a bulk set, when false filter all negotiations in a sub account which are not part of any bulk set\n * @param data.advisorRelationshipId Filter by advisor relationship id (both advisorRelationshipId and accessibleToAdvisor needs to be present)\n * @param data.accessibleToAdvisor Filter advisor negotiations based on their access, given the advisorRelationshipId (both advisorRelationshipId and accessibleToAdvisor needs to be present)\n * @param data.customReferenceId Filter by API reference ID\n * @param data.displayReferenceId Filter by a list of possible display reference IDs\n * @param data.isForkedOrFork Filter by whether the negotiation is involved in a restatement\n * @param data.approverName Filter by a list of possible approver names\n * @param data.partyA Search negotiations for the specified entity id against partyA entity id\n * @param data.partyB Search negotiations for the specified entity id against partyB entity id\n * @param data.partyC Search negotiations for the specified entity id against partyC entity id\n * @param data.partyAny Search negotiations for the specified entity id against any of partyA, partyB or partyC entity id\n * @param data.isTriparty Return only trilateral negotiations if isTriparty is true, or only bilateral negotiations if it is false\n * @param data.isOffline Return only offline negotiations if isOffline is true, or only online negotiations if it is false\n * @param data.forkedFromOrTo Return only negotiations that are forked from or forked to this negotiation\n * @returns binary A list of negotiations in XLSX formatted data\n * @throws ApiError\n */\nexport const downloadDashboardReportAsExcel = (data: DownloadDashboardReportAsExcelData): CancelablePromise<DownloadDashboardReportAsExcelResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/xlsx',\n path: {\n subAccountId: data.subAccountId\n },\n query: {\n documentId: data.documentId,\n timeZone: data.timeZone,\n state: data.state,\n status: data.status,\n workflowType: data.workflowType,\n userId: data.userId,\n turn: data.turn,\n staleFrom: data.staleFrom,\n staleTo: data.staleTo,\n groupId: data.groupId,\n bulkSetIds: data.bulkSetIds,\n jobStatus: data.jobStatus,\n filters: data.filters,\n query: data.query,\n pageIndex: data.pageIndex,\n pageSize: data.pageSize,\n orderBy: data.orderBy,\n orderDirection: data.orderDirection,\n documentPublisherId: data.documentPublisherId,\n excludedUiStates: data.excludedUiStates,\n documentType: data.documentType,\n myEntityName: data.myEntityName,\n counterpartyEntityName: data.counterpartyEntityName,\n inBulkSet: data.inBulkSet,\n advisorRelationshipId: data.advisorRelationshipId,\n accessibleToAdvisor: data.accessibleToAdvisor,\n customReferenceId: data.customReferenceId,\n displayReferenceId: data.displayReferenceId,\n isForkedOrFork: data.isForkedOrFork,\n approverName: data.approverName,\n partyA: data.partyA,\n partyB: data.partyB,\n partyC: data.partyC,\n partyAny: data.partyAny,\n isTriparty: data.isTriparty,\n isOffline: data.isOffline,\n requestingFromContext: data.requestingFromContext,\n forkedFromOrTo: data.forkedFromOrTo\n }\n });\n};\n\n/**\n * Upgrade the specified side's answers to the latest document schema\n * Upgrade the specified side's answers to the latest document schema.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationSingle The document schema version was successfully upgraded for the current party's answers.\n * @throws ApiError\n */\nexport const upgradeSchema = (data: UpgradeSchemaData): CancelablePromise<UpgradeSchemaResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/upgrade',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n }\n });\n};\n\n/**\n * Get the breaking changes for a negotiation using older version of a published document\n * Get the breaking changes for a negotiation using older version of a published document.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationUpgradeChanges The breaking changes between the negotiations document version and latest document version are returned\n * @throws ApiError\n */\nexport const breakingChanges = (data: BreakingChangesData): CancelablePromise<BreakingChangesResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/breaking_changes',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n }\n });\n};\n\n/**\n * View a negotiation, if you have access to it. Searches all of your Sub-Accounts\n * View a negotiation, if you have access to it. Searches all of your Sub-Accounts.\n * @param data The data for the request.\n * @param data.negotiationId\n * @returns NegotiationSingle A negotiation\n * @throws ApiError\n */\nexport const getAccessibleNegotiation = (data: GetAccessibleNegotiationData): CancelablePromise<GetAccessibleNegotiationResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/negotiations/{negotiationId}',\n path: {\n negotiationId: data.negotiationId\n }\n });\n};\n\n/**\n * View a negotiation from a specific Sub-Account\n * View a negotiation from a specific Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationSingle A negotiation and summaries of other group members\n * @throws ApiError\n */\nexport const getNegotiation = (data: GetNegotiationData): CancelablePromise<GetNegotiationResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n }\n });\n};\n\n/**\n * View metadata for an executed negotiation\n * View metadata for an executed negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns ExecutedNegotiationSummary A JSON document describing the negotiation metadata\n * @throws ApiError\n */\nexport const getExecutedNegotiationSummary = (data: GetExecutedNegotiationSummaryData): CancelablePromise<GetExecutedNegotiationSummaryResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/metadata',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * View CDM metadata for a negotiation\n * View CDM metadata for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns CDMOutput A JSON document of the negotiation metadata in CDM format\n * @throws ApiError\n */\nexport const getAsCdm = (data: GetAsCdmData): CancelablePromise<GetAsCdmResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/cdm',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 400: 'CDM not available for this negotiation',\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * View election data for all executed negotiations in a Sub-Account\n * View election data for all executed negotiations in a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.documentId\n * @param data.timeZone\n * @returns binary XLSX formatted data\n * @throws ApiError\n */\nexport const getDownloadExecutedNegotiationsAsExcel = (data: GetDownloadExecutedNegotiationsAsExcelData): CancelablePromise<GetDownloadExecutedNegotiationsAsExcelResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/executed_negotiations/xlsx',\n path: {\n subAccountId: data.subAccountId\n },\n query: {\n documentId: data.documentId,\n timeZone: data.timeZone\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * View election data for all executed negotiations in a Sub-Account\n * View election data for all executed negotiations in a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.requestBody\n * @returns binary XLSX formatted data\n * @throws ApiError\n */\nexport const downloadExecutedNegotiationsAsExcel = (data: DownloadExecutedNegotiationsAsExcelData): CancelablePromise<DownloadExecutedNegotiationsAsExcelResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/executed_negotiations/xlsx',\n path: {\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * View an election analytics report for all negotiations that you can access in a Sub-Account\n * View an election analytics report for all negotiations that you can access in a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.documentId\n * @param data.timeZone\n * @returns binary XLSX formatted data\n * @throws ApiError\n */\nexport const getDownloadActiveNegotiationsReportAsExcel = (data: GetDownloadActiveNegotiationsReportAsExcelData): CancelablePromise<GetDownloadActiveNegotiationsReportAsExcelResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/analytics/xlsx',\n path: {\n subAccountId: data.subAccountId\n },\n query: {\n documentId: data.documentId,\n timeZone: data.timeZone\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * View an election analytics report for all negotiations that you can access in a Sub-Account\n * View an election analytics report for all negotiations that you can access in a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.requestBody\n * @returns binary XLSX formatted data\n * @throws ApiError\n */\nexport const downloadActiveNegotiationsReportAsExcel = (data: DownloadActiveNegotiationsReportAsExcelData): CancelablePromise<DownloadActiveNegotiationsReportAsExcelResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/analytics/xlsx',\n path: {\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Download the execution version of a negotiation as a DOCX or PDF\n * Download the execution version of a negotiation as a DOCX or PDF.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.extension File extension\n * @param data.includeSignaturePages\n * @param data.isLockedDocx If true, the downloaded document will have a watermark. False if not present\n * @param data.includeFormFields\n * @returns binary DOCX or PDF formatted data\n * @throws ApiError\n */\nexport const downloadNegotiation = (data: DownloadNegotiationData): CancelablePromise<DownloadNegotiationResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extension/{extension}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n extension: data.extension\n },\n query: {\n includeSignaturePages: data.includeSignaturePages,\n isLockedDocx: data.isLockedDocx,\n includeFormFields: data.includeFormFields\n }\n });\n};\n\n/**\n * Download the pre-execution version of a negotiation as a DOCX or PDF\n * Download the pre-execution version of a negotiation as a DOCX or PDF.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.counterpartyId Party id for the counterparty\n * @param data.extension File extension\n * @returns binary DOCX or PDF formatted data\n * @throws ApiError\n */\nexport const downloadPreExecutionCounterpartyNegotiation = (data: DownloadPreExecutionCounterpartyNegotiationData): CancelablePromise<DownloadPreExecutionCounterpartyNegotiationResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/parties/{counterpartyId}/extension/{extension}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n counterpartyId: data.counterpartyId,\n extension: data.extension\n }\n });\n};\n\n/**\n * Download the executed version of a negotiation as a PDF\n * Download the executed version of a negotiation as a PDF.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns binary The executed document\n * @throws ApiError\n */\nexport const getSignedExecutedVersion = (data: GetSignedExecutedVersionData): CancelablePromise<GetSignedExecutedVersionResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executed_version',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 404: 'Missing document'\n }\n });\n};\n\n/**\n * Upload an executed version for a negotiation\n * Upload an executed version for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationSingle The executed version was uploaded successfully. Returns a JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const setSignedExecutedVersion = (data: SetSignedExecutedVersionData): CancelablePromise<SetSignedExecutedVersionResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executed_version',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/pdf',\n errors: {\n 400: 'The negotiation is not at the Review & Sign stage or there is already an executed version uploaded',\n 403: 'The negotiation does not support uploading executed versions',\n 404: 'The negotiation was not found'\n }\n });\n};\n\n/**\n * Delete an executed version from a negotiation\n * Delete an executed version from a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationSingle The executed version was deleted successfully. Returns a JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const deleteSignedExecutedVersion = (data: DeleteSignedExecutedVersionData): CancelablePromise<DeleteSignedExecutedVersionResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executed_version',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 403: 'The negotiation does not support uploading executed versions'\n }\n });\n};\n\n/**\n * Determine whether an executed version has been generated, or not\n * Determine whether an executed version has been generated, or not.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns ExecutedVersionExists A true/false object\n * @throws ApiError\n */\nexport const checkSignedExecutedVersion = (data: CheckSignedExecutedVersionData): CancelablePromise<CheckSignedExecutedVersionResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executed_version/exists',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 403: 'The negotiation has not yet been agreed'\n }\n });\n};\n\n/**\n * Get the summary of negotiations files present for a negotiation\n * Get the summary of negotiations files present for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationFilesSummary Get the summary of negotiations files present for a negotiation\n * @throws ApiError\n */\nexport const getNegotiationFilesSummary = (data: GetNegotiationFilesSummaryData): CancelablePromise<GetNegotiationFilesSummaryResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/negotiationFiles/summary',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 404: 'No negotiation'\n }\n });\n};\n\n/**\n * Download the audit trail for a negotiation as a XLSX\n * Download the audit trail for a negotiation as a XLSX.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.timeZone Filter by document state\n * @returns binary PDF formatted data\n * @throws ApiError\n */\nexport const createAuditTrailXlsx = (data: CreateAuditTrailXlsxData): CancelablePromise<CreateAuditTrailXlsxResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/audit_trail/xlsx',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n query: {\n timeZone: data.timeZone\n }\n });\n};\n\n/**\n * Download the audit trail for a negotiation as a PDF\n * Download the audit trail for a negotiation as a PDF.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.timeZone Filter by document state\n * @returns binary PDF formatted data\n * @throws ApiError\n */\nexport const createAuditTrailPdf = (data: CreateAuditTrailPdfData): CancelablePromise<CreateAuditTrailPdfResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/audit_trail/pdf',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n query: {\n timeZone: data.timeZone\n }\n });\n};\n\n/**\n * Download the audit trail for a negotiation as a Json\n * Download the audit trail for a negotiation as a Json.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationAuditEvents Json formatted data\n * @throws ApiError\n */\nexport const createAuditTrailJson = (data: CreateAuditTrailJsonData): CancelablePromise<CreateAuditTrailJsonResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/audit_trail/json',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n }\n });\n};\n\n/**\n * Download signing pack zip including execution version of the document and signature pages for all parties as PDFs\n * Download signing pack zip including execution version of the document and signature pages for all parties as PDFs.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns binary PDF formatted data\n * @throws ApiError\n */\nexport const createSigningPack = (data: CreateSigningPackData): CancelablePromise<CreateSigningPackResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/signingPack',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n }\n });\n};\n\n/**\n * Download post execution pack zip including executed version of the document, negotiation audit trail, schedule files (optional) and additional files (optional) for all parties as PDFs\n * Download post execution pack zip including executed version of the document, negotiation audit trail, schedule files (optional) and additional files (optional) for all parties as PDFs.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.timeZone\n * @returns binary PDF formatted data\n * @throws ApiError\n */\nexport const downloadPostExecutionPack = (data: DownloadPostExecutionPackData): CancelablePromise<DownloadPostExecutionPackResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/postExecutionPack',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n query: {\n timeZone: data.timeZone\n }\n });\n};\n\n/**\n * Download unsigned signature page for a party as a PDF\n * Download unsigned signature page for a party as a PDF.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.pageId\n * @returns binary PDF formatted data\n * @throws ApiError\n */\nexport const createSignaturePagePdf = (data: CreateSignaturePagePdfData): CancelablePromise<CreateSignaturePagePdfResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/signature/{pageId}/pdf',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n pageId: data.pageId\n }\n });\n};\n\n/**\n * Download the signed signature page for a party as a PDF\n * Download the signed signature page for a party as a PDF.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.sigPageId\n * @returns binary PDF formatted data\n * @throws ApiError\n */\nexport const getSignedSignaturePagePdf = (data: GetSignedSignaturePagePdfData): CancelablePromise<GetSignedSignaturePagePdfResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/signature/{sigPageId}/signed/pdf',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n sigPageId: data.sigPageId\n },\n errors: {\n 400: 'Invalid state',\n 404: 'Missing document'\n }\n });\n};\n\n/**\n * Determine whether a party has a signed signature page, or not\n * Determine whether a party has a signed signature page, or not.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns SignatureExists A true/false object\n * @throws ApiError\n */\nexport const checkSignedSignaturePagePdf = (data: CheckSignedSignaturePagePdfData): CancelablePromise<CheckSignedSignaturePagePdfResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/signature/signed/pdf/exists',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 400: 'Invalid state'\n }\n });\n};\n\n/**\n * Upload a signed signature page for a specific party as a PDF\n * Upload a signed signature page for a specific party as a PDF.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.pageId\n * @param data.requestBody\n * @returns unknown The signed signature page was uploaded\n * @throws ApiError\n */\nexport const setSignedSignaturePageForParty = (data: SetSignedSignaturePageForPartyData): CancelablePromise<SetSignedSignaturePageForPartyResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/signature/{pageId}/signed/pdf',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n pageId: data.pageId\n },\n body: data.requestBody,\n mediaType: 'application/pdf'\n });\n};\n\n/**\n * Delete a signed signature page for a specific party\n * Delete a signed signature page for a specific party.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.pageId\n * @returns unknown The signed signature page was deleted\n * @throws ApiError\n */\nexport const deleteSignedSignaturePageForParty = (data: DeleteSignedSignaturePageForPartyData): CancelablePromise<DeleteSignedSignaturePageForPartyResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/signature/{pageId}/signed/pdf',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n pageId: data.pageId\n }\n });\n};\n\n/**\n * Download an uploaded auxiliary document that has been uploaded for a negotiation\n * Download an uploaded auxiliary document that has been uploaded for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns binary The uploaded auxiliary document\n * @throws ApiError\n */\nexport const getAuxiliaryDocument = (data: GetAuxiliaryDocumentData): CancelablePromise<GetAuxiliaryDocumentResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/auxiliary_document',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 404: 'Missing document'\n }\n });\n};\n\n/**\n * Upload an auxiliary document for a negotiation\n * Upload an auxiliary document for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationSingle The auxiliary document was uploaded successfully. Returns a JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const setAuxiliaryDocument = (data: SetAuxiliaryDocumentData): CancelablePromise<SetAuxiliaryDocumentResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/auxiliary_document',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/pdf',\n errors: {\n 400: 'The negotiation is not at the Review & Sign stage or there is already an auxiliary document uploaded',\n 404: 'The negotiation was not found'\n }\n });\n};\n\n/**\n * Delete an auxiliary document from a negotiation\n * Delete an auxiliary document from a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationSingle The auxiliary document was deleted successfully. Returns a JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const deleteAuxiliaryDocument = (data: DeleteAuxiliaryDocumentData): CancelablePromise<DeleteAuxiliaryDocumentResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/auxiliary_document',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n }\n });\n};\n\n/**\n * Determine whether an auxiliary document has been uploaded, or not\n * Determine whether an auxiliary document has been uploaded, or not.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns AuxiliaryDocumentExists A true/false object\n * @throws ApiError\n */\nexport const checkAuxiliaryDocument = (data: CheckAuxiliaryDocumentData): CancelablePromise<CheckAuxiliaryDocumentResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/auxiliary_document/exists',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 403: 'Auxiliary document upload is not enabled for the document type or the negotiation has not yet been agreed'\n }\n });\n};\n\n/**\n * Download an uploaded offline negotiated document for a negotiation\n * Download an uploaded offline negotiated document for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns binary The offline negotiated document\n * @throws ApiError\n */\nexport const getOfflineNegotiatedDocument = (data: GetOfflineNegotiatedDocumentData): CancelablePromise<GetOfflineNegotiatedDocumentResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/offline_negotiated_document',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 404: 'Missing document'\n }\n });\n};\n\n/**\n * Upload an offline negotiated document for a negotiation\n * Upload an offline negotiated document for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationSingle The offline negotiated document was uploaded successfully. Returns a JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const setOfflineNegotiatedDocument = (data: SetOfflineNegotiatedDocumentData): CancelablePromise<SetOfflineNegotiatedDocumentResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/offline_negotiated_document',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/pdf',\n errors: {\n 400: 'The negotiation is not offline, is not at the Amending stage, or there is already an offline negotiated document uploaded',\n 404: 'The negotiation was not found'\n }\n });\n};\n\n/**\n * Delete an offline negotiated document from a negotiation\n * Delete an offline negotiated document from a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationSingle The offline negotiated document was deleted successfully. Returns a JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const deleteOfflineNegotiatedDocument = (data: DeleteOfflineNegotiatedDocumentData): CancelablePromise<DeleteOfflineNegotiatedDocumentResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/offline_negotiated_document',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n }\n });\n};\n\n/**\n * Download an uploaded offline negotiated document for a negotiation, annotated with extracted terms\n * Download an uploaded offline negotiated document for a negotiation, annotated with extracted terms.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns binary The offline negotiated document\n * @throws ApiError\n */\nexport const getAnnotatedOfflineNegotiatedDocument = (data: GetAnnotatedOfflineNegotiatedDocumentData): CancelablePromise<GetAnnotatedOfflineNegotiatedDocumentResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/offline_negotiated_document/annotated',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 400: 'Extraction has not yet completed',\n 404: 'Missing document'\n }\n });\n};\n\n/**\n * Get the annotated extracted terms for an extracted document\n * Get the annotated extracted terms for an extracted document.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns UnstructuredExtractionResultsWithAnnotations The offline negotiated document\n * @throws ApiError\n */\nexport const getOfflineNegotiatedDocumentAnnotations = (data: GetOfflineNegotiatedDocumentAnnotationsData): CancelablePromise<GetOfflineNegotiatedDocumentAnnotationsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/offline_negotiated_document/annotations',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 400: 'Extraction has not yet completed',\n 404: 'Missing document'\n }\n });\n};\n\n/**\n * Determine whether an offline negotiated document has been uploaded, or not\n * Determine whether an offline negotiated document has been uploaded, or not.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns OfflineNegotiatedDocumentExists A true/false object\n * @throws ApiError\n */\nexport const checkOfflineNegotiatedDocument = (data: CheckOfflineNegotiatedDocumentData): CancelablePromise<CheckOfflineNegotiatedDocumentResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/offline_negotiated_document/exists',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 403: 'Extraction is not enabled for the document type or the negotiation is not offline'\n }\n });\n};\n\n/**\n * View a list of documents available to you\n * List of documents that can be downloaded, with a list of supported extensions for each one.\n * @param data The data for the request.\n * @param data.documentPackIds\n * @param data.state Filter by document state\n * @param data.subAccountId Filter by document subAccount id\n * @param data.documentPublisherId Filter by document publisher id\n * @param data.templateContains\n * @param data.supportsBulkUpload Filter documents supporting bulk upload\n * @param data.hasNegotiations Filter documents with negotiations\n * @param data.year Filter by document pulishing year\n * @param data.abbreviation Filter by document abbreviation\n * @param data.law Filter by text in document governing law\n * @param data.publisherName\n * @param data.query Free text search to filter by text in document governing law, abbreviation, publisher name and year\n * @param data.orderBy Attribute on which results will be ordered.\n * @param data.onlyWithSchema\n * @param data.includeTransitive Include transitive documents, documents that you have received negotiations for but may not be able to use to start new negotiations.\n * @returns Document A list of documents\n * @throws ApiError\n */\nexport const listDocuments = (data: ListDocumentsData): CancelablePromise<ListDocumentsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/documents',\n query: {\n state: data.state,\n subAccountId: data.subAccountId,\n documentPublisherId: data.documentPublisherId,\n documentPackIds: data.documentPackIds,\n templateContains: data.templateContains,\n supportsBulkUpload: data.supportsBulkUpload,\n hasNegotiations: data.hasNegotiations,\n year: data.year,\n abbreviation: data.abbreviation,\n law: data.law,\n publisherName: data.publisherName,\n query: data.query,\n orderBy: data.orderBy,\n onlyWithSchema: data.onlyWithSchema,\n includeTransitive: data.includeTransitive\n }\n });\n};\n\n/**\n * View a paginated list of documents available to an account user\n * Paginated list of documents that can be downloaded, with a list of supported extensions for each one.\n * @param data The data for the request.\n * @param data.pageIndex Index of a page to return. It is 0 based.\n * @param data.pageSize Number of items to return in one page. One Item is either one non grouped negotiation or all negotiations in a group.\n * @param data.documentPackIds\n * @param data.state Filter by document state\n * @param data.subAccountId Filter by document subAccount id\n * @param data.documentPublisherId Filter by document publisher id\n * @param data.templateContains\n * @param data.supportsBulkUpload Filter documents supporting bulk upload\n * @param data.hasNegotiations Filter documents with negotiations\n * @param data.year Filter by document pulishing year\n * @param data.abbreviation Filter by document abbreviation\n * @param data.law Filter by text in document governing law\n * @param data.publisherName\n * @param data.query Free text search to filter by text in document governing law, abbreviation, publisher name and year\n * @param data.orderBy Attribute on which results will be ordered.\n * @param data.onlyWithSchema\n * @param data.includeTransitive Include transitive documents, documents that you have received negotiations for but may not be able to use to start new negotiations.\n * @returns Document A list of documents\n * @throws ApiError\n */\nexport const listDocumentsWithPagination = (data: ListDocumentsWithPaginationData): CancelablePromise<ListDocumentsWithPaginationResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/documentsWithPaging',\n query: {\n pageIndex: data.pageIndex,\n pageSize: data.pageSize,\n state: data.state,\n subAccountId: data.subAccountId,\n documentPublisherId: data.documentPublisherId,\n documentPackIds: data.documentPackIds,\n templateContains: data.templateContains,\n supportsBulkUpload: data.supportsBulkUpload,\n hasNegotiations: data.hasNegotiations,\n year: data.year,\n abbreviation: data.abbreviation,\n law: data.law,\n publisherName: data.publisherName,\n query: data.query,\n orderBy: data.orderBy,\n onlyWithSchema: data.onlyWithSchema,\n includeTransitive: data.includeTransitive\n }\n });\n};\n\n/**\n * List all the versions of all documents available to you\n * List all the versions of all documents available to you.\n * @param data The data for the request.\n * @param data.documentPackIds\n * @param data.state\n * @param data.subAccountId\n * @param data.documentPublisherId\n * @param data.templateContains\n * @param data.supportsBulkUpload\n * @param data.hasNegotiations\n * @param data.year Filter by document pulishing year\n * @param data.abbreviation Filter by document abbreviation\n * @param data.law Filter by text in document governing law\n * @param data.publisherName\n * @param data.query Free text search to filter by text in document governing law, abbreviation, publisher name and year\n * @param data.orderBy Attribute on which reqults will be ordered.\n * @returns DocumentVersionsSummary A list of documents with all published versions\n * @throws ApiError\n */\nexport const listDocumentsVersionsSummary = (data: ListDocumentsVersionsSummaryData): CancelablePromise<ListDocumentsVersionsSummaryResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/documents/versions',\n query: {\n state: data.state,\n subAccountId: data.subAccountId,\n documentPublisherId: data.documentPublisherId,\n templateContains: data.templateContains,\n supportsBulkUpload: data.supportsBulkUpload,\n hasNegotiations: data.hasNegotiations,\n year: data.year,\n abbreviation: data.abbreviation,\n law: data.law,\n publisherName: data.publisherName,\n documentPackIds: data.documentPackIds,\n query: data.query,\n orderBy: data.orderBy\n }\n });\n};\n\n/**\n * View a document\n * View a document.\n * @param data The data for the request.\n * @param data.documentId\n * @returns DocumentWithPack A document\n * @throws ApiError\n */\nexport const getDocument = (data: GetDocumentData): CancelablePromise<GetDocumentResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/documents/{documentId}',\n path: {\n documentId: data.documentId\n },\n errors: {\n 404: 'Schema not found'\n }\n });\n};\n\n/**\n * View the schema for a document\n * View the schema for a document.\n * @param data The data for the request.\n * @param data.documentId\n * @param data.version\n * @param data.restrictedTo Show items that are restricted to a specific party role\n * @returns Schema A document's schema\n * @throws ApiError\n */\nexport const getDocumentSchema = (data: GetDocumentSchemaData): CancelablePromise<GetDocumentSchemaResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/documents/{documentId}/schemas/{version}',\n path: {\n documentId: data.documentId,\n version: data.version\n },\n query: {\n restrictedTo: data.restrictedTo\n },\n errors: {\n 404: 'Schema not found'\n }\n });\n};\n\n/**\n * See whether CDM is supported for a given document schema\n * See whether CDM is supported for a given document schema.\n * @param data The data for the request.\n * @param data.documentId\n * @param data.version\n * @returns SchemaAvailableAsCDM Whether or not CDM is supported for the provided document schema\n * @throws ApiError\n */\nexport const schemaAvailableAsCdm = (data: SchemaAvailableAsCdmData): CancelablePromise<SchemaAvailableAsCdmResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/documents/{documentId}/schemas/{version}/availableAsCDM',\n path: {\n documentId: data.documentId,\n version: data.version\n },\n errors: {\n 404: 'Document or schema version not found'\n }\n });\n};\n\n/**\n * Render a preview of the document template for the specified schema version\n * Render a preview of the document template for the specified schema version.\n * @param data The data for the request.\n * @param data.documentId\n * @param data.version\n * @returns RenderedTemplate An HTML representation of the document\n * @throws ApiError\n */\nexport const documentRenderTemplate = (data: DocumentRenderTemplateData): CancelablePromise<DocumentRenderTemplateResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/documents/{documentId}/schemas/{version}/preview',\n path: {\n documentId: data.documentId,\n version: data.version\n },\n errors: {\n 404: 'Document or schema version not found'\n }\n });\n};\n\n/**\n * Get the default values for amendable elections for the specified schema version\n * Get the default values for amendable elections for the specified schema version.\n * @param data The data for the request.\n * @param data.documentId\n * @param data.version\n * @returns AmendDefaults An HTML representation of each amendable election with the default value\n * @throws ApiError\n */\nexport const getAmendDefaults = (data: GetAmendDefaultsData): CancelablePromise<GetAmendDefaultsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/documents/{documentId}/schemas/{version}/amendDefaults',\n path: {\n documentId: data.documentId,\n version: data.version\n },\n errors: {\n 404: 'Document or schema version not found'\n }\n });\n};\n\n/**\n * View the latest schema for a document\n * View the latest schema for a document.\n * @param data The data for the request.\n * @param data.documentId\n * @returns Schema A document's schema\n * @throws ApiError\n */\nexport const getLatestDocumentSchema = (data: GetLatestDocumentSchemaData): CancelablePromise<GetLatestDocumentSchemaResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/documents/{documentId}/latest_schema',\n path: {\n documentId: data.documentId\n },\n errors: {\n 404: 'Document or schema not found'\n }\n });\n};\n\n/**\n * Restate an existing executed negotiation\n * Starts a new negotiation where all elections are prefilled from the specified negotiation. Once the new negotiation is executed, the documents produced will indicate that they restate the original documents. In order to restate a negotiation it must be executed, the document must support restatement and there must not be any other sequential restatements for this negotiation. Any subsequent restatement should be made from the the latest executed restatement.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationSingle The negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const forkNegotiation = (data: ForkNegotiationData): CancelablePromise<ForkNegotiationResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/restate',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 400: 'The negotiation specified cannot be restated.',\n 404: 'Negotiation or sub account not found'\n }\n });\n};\n\n/**\n * See the history of restatements for this negotiation\n * Shows the full restatement history for this negotiation starting at the original and ending with the most recent restatement.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationSingle The negotiations that make up the restatement history from the point of view of the requester\n * @throws ApiError\n */\nexport const negotiationForkHistory = (data: NegotiationForkHistoryData): CancelablePromise<NegotiationForkHistoryResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/restatementHistory',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 400: 'A negotiation in the history is missing',\n 404: 'Negotiation or sub account not found'\n }\n });\n};\n\n/**\n * Get original negotiations answers before a restatement\n * Get original negotiations answers before a restatement.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.forkedNegotiationId\n * @returns PartyAnswers Original answers before restatement\n * @throws ApiError\n */\nexport const getOriginalAnswersForForkNegotiation = (data: GetOriginalAnswersForForkNegotiationData): CancelablePromise<GetOriginalAnswersForForkNegotiationResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{forkedNegotiationId}/originalAnswers',\n path: {\n subAccountId: data.subAccountId,\n forkedNegotiationId: data.forkedNegotiationId\n },\n errors: {\n 404: 'Negotiation or sub account not found'\n }\n });\n};\n\n/**\n * Notify all named approvers in your subaccount that a specific draft negotiation exists\n * Notify all named approvers in your subaccount that a specific draft negotiation exists.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns unknown Notification sent\n * @throws ApiError\n */\nexport const notifyOfDraft = (data: NotifyOfDraftData): CancelablePromise<NotifyOfDraftResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/notifyOfDraft',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Update the custom fields for a negotiation\n * Update the custom fields for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationWithTimelineAndPreview A JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const updateCustomFields = (data: UpdateCustomFieldsData): CancelablePromise<UpdateCustomFieldsResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/customFields',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Mark an offline negotiation as final\n * Mark an offline negotiation as final.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationWithTimelineAndPreview A JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const markAsFinal = (data: MarkAsFinalData): CancelablePromise<MarkAsFinalResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/markAsFinal',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Overwrite the election values (answers) of a negotiation\n * Overwrite the election values (answers) of a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationWithTimelineAndPreview A JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const editAnswers = (data: EditAnswersData): CancelablePromise<EditAnswersResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation or election not found'\n }\n });\n};\n\n/**\n * Set the inital election values (answers) of a negotiation.\n * Set the inital election values (answers) of a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationWithTimelineAndPreview A JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const editDefaultAnswers = (data: EditDefaultAnswersData): CancelablePromise<EditDefaultAnswersResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/defaults',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 400: 'Initial answers have already been set',\n 404: 'Negotiation or election not found'\n }\n });\n};\n\n/**\n * Accept the counterparty position for all elections of a negotiation\n * Accept the counterparty position for all elections of a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.partyId\n * @param data.excludeNestedAnswers\n * @returns NegotiationWithTimelineAndPreview A JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const acceptAllCounterpartyPositions = (data: AcceptAllCounterpartyPositionsData): CancelablePromise<AcceptAllCounterpartyPositionsResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/acceptCpPosition/{partyId}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n partyId: data.partyId\n },\n query: {\n excludeNestedAnswers: data.excludeNestedAnswers\n },\n errors: {\n 400: \"The counterparty's position is not available\",\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Accept the preset position for all elections of a negotiation\n * Accept the preset position for all elections of a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationSingle A JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const acceptAllPresetPositions = (data: AcceptAllPresetPositionsData): CancelablePromise<AcceptAllPresetPositionsResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/acceptPresetPosition',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 400: \"The preset's position is not available\",\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Accept the custodian template position for all elections of a negotiation\n * Accept the custodian template position for all elections of a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationSingle A JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const acceptAllCustodianTemplatePositions = (data: AcceptAllCustodianTemplatePositionsData): CancelablePromise<AcceptAllCustodianTemplatePositionsResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/acceptCustodianTemplatePosition',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 400: 'The custodian template position is not available',\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Accept the previous positions for all elections of a negotiation at the specified version\n * Accept the previous positions for all elections of a negotiation at the specified version.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.version\n * @returns NegotiationSingle A JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const acceptAllPositionsFromPreviousVersion = (data: AcceptAllPositionsFromPreviousVersionData): CancelablePromise<AcceptAllPositionsFromPreviousVersionResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/acceptPreviousPosition/{version}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n version: data.version\n },\n errors: {\n 400: 'The previous version is not available',\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Accept the fork position for all elections of a negotiation at the specified version\n * Accept the fork position for all elections of a negotiation at the specified version.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.forkedNegotiationId\n * @returns NegotiationSingle A JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const acceptAllPositionsFromFork = (data: AcceptAllPositionsFromForkData): CancelablePromise<AcceptAllPositionsFromForkResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/acceptOriginalPosition/{forkedNegotiationId}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n forkedNegotiationId: data.forkedNegotiationId\n },\n errors: {\n 400: 'The original fork position is not available for the specified version',\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * View the answer for a specific election\n * View answer for a specific election.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.electionId\n * @param data.type\n * @returns ElectionAnswer The answer for this election\n * @throws ApiError\n */\nexport const getElectionAnswer = (data: GetElectionAnswerData): CancelablePromise<GetElectionAnswerResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/elections/{electionId}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n electionId: data.electionId\n },\n query: {\n type: data.type\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * View all the major version numbers of the negotiation in a Sub-Account\n * View all the major version numbers of the negotiation in a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.partyId\n * @returns MajorMinor All major version numbers\n * @throws ApiError\n */\nexport const getMajorVersions = (data: GetMajorVersionsData): CancelablePromise<GetMajorVersionsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/parties/{partyId}/versions',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n partyId: data.partyId\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * View all version numbers of the negotiation in a Sub-Account with their creation times\n * View all the version numbers of the negotiation in a Sub-Account with their respective creation times.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.partyId\n * @returns NegotiationVersionDetails All major version numbers\n * @throws ApiError\n */\nexport const getAllVersions = (data: GetAllVersionsData): CancelablePromise<GetAllVersionsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/parties/{partyId}/versions/all',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n partyId: data.partyId\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * View all answers for the major version numbers of the other party in a sided negotiation\n * View all answers for the major version numbers of the other party in a sided negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.counterpartyId\n * @param data.version\n * @returns VersionedPartyAnswers Other party answers\n * @throws ApiError\n */\nexport const getOtherPartyAnswers = (data: GetOtherPartyAnswersData): CancelablePromise<GetOtherPartyAnswersResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/parties/{counterpartyId}/versions/{version}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n counterpartyId: data.counterpartyId,\n version: data.version\n },\n errors: {\n 404: 'Party answers not found of the party id for the specified version or negotiation not found'\n }\n });\n};\n\n/**\n * View all answers for the major version numbers of the negotiation in a Sub-Account\n * View all answers for the major version numbers of the negotiation in a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.version\n * @returns VersionedPartyAnswers All party answers\n * @throws ApiError\n */\nexport const getPartyAnswers = (data: GetPartyAnswersData): CancelablePromise<GetPartyAnswersResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/versions/{version}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n version: data.version\n },\n errors: {\n 404: 'Party answers not found for the specified version or negotiation not found'\n }\n });\n};\n\n/**\n * Accept the counterparty position for a specific election\n * Accept the counterparty position for a specific election.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.electionId\n * @param data.partyId\n * @param data.excludeNestedAnswers\n * @returns NegotiationWithTimelineAndPreview The updated negotiation incuding the new answer for this election\n * @throws ApiError\n */\nexport const acceptCounterpartyPosition = (data: AcceptCounterpartyPositionData): CancelablePromise<AcceptCounterpartyPositionResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/elections/{electionId}/acceptCpPosition/{partyId}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n electionId: data.electionId,\n partyId: data.partyId\n },\n query: {\n excludeNestedAnswers: data.excludeNestedAnswers\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Get the value for multiple nested answers\n * Get the value for multiple nested answers, used in umbrella agreements.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NestedAnswersSummariesWithAnswers The nested answers\n * @throws ApiError\n */\nexport const getMultipleNestedAnswers = (data: GetMultipleNestedAnswersData): CancelablePromise<GetMultipleNestedAnswersResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/nested/bulk',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 400: 'Too many nested answers IDs passed',\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Sets the values for multiple nested answers\n * Sets the values for multiple nested answers, used in umbrella agreements.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationWithTimelinePreviewAndMultipleNestedAnswers The updated negotiation including the new nested answers\n * @throws ApiError\n */\nexport const setMultipleNestedAnswers = (data: SetMultipleNestedAnswersData): CancelablePromise<SetMultipleNestedAnswersResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/nested/bulk',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 400: 'Too many nested answers IDs passed',\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Get the value for a nested answer\n * Get the value for a nested answer, used in umbrella agreements.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.nestedAnswersId\n * @returns NestedAnswersSummariesWithAnswers The value for this nested answer\n * @throws ApiError\n */\nexport const getNestedAnswers = (data: GetNestedAnswersData): CancelablePromise<GetNestedAnswersResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/nested/{nestedAnswersId}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n nestedAnswersId: data.nestedAnswersId\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Sets the value for a nested answer\n * Sets the value for a nested answer.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.nestedAnswersId\n * @param data.requestBody\n * @returns NegotiationWithTimelinePreviewAndNestedAnswers The updated negotiation with the new value for the nested answer\n * @throws ApiError\n */\nexport const setNestedAnswers = (data: SetNestedAnswersData): CancelablePromise<SetNestedAnswersResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/nested/{nestedAnswersId}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n nestedAnswersId: data.nestedAnswersId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Get the nested election IDs of all parties for all previous major versions\n * Get the value for a nested election IDs of all parties for all previous major versions.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.nestedAnswersId\n * @returns NestedAnswerPartyElections Nested election IDs of all parties for all previous major versions\n * @throws ApiError\n */\nexport const getPreviousMajorVersionsNestedAnswerElections = (data: GetPreviousMajorVersionsNestedAnswerElectionsData): CancelablePromise<GetPreviousMajorVersionsNestedAnswerElectionsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/nested/{nestedAnswersId}/previousElections',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n nestedAnswersId: data.nestedAnswersId\n },\n errors: {\n 403: 'Negotiation not in amending state',\n 404: 'No previous versions found'\n }\n });\n};\n\n/**\n * Get the nested answer IDs of all parties for all previous major versions\n * Get the value for a nested answer IDs of all parties for all previous major versions.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.electionId\n * @returns PartyElectionNestedAnswers Nested answer IDs of all parties for all previous major versions\n * @throws ApiError\n */\nexport const getPreviousMajorVersionsNestedAnswerIds = (data: GetPreviousMajorVersionsNestedAnswerIdsData): CancelablePromise<GetPreviousMajorVersionsNestedAnswerIdsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/elections/{electionId}/previousAnswers',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n electionId: data.electionId\n },\n errors: {\n 403: 'Negotiation not in amending state',\n 404: 'No previous versions found'\n }\n });\n};\n\n/**\n * Accept the counterparty position for a nested answer\n * Accept the counterparty position for a nested answer.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.nestedAnswersId\n * @param data.partyId\n * @returns NegotiationWithTimelineAndPreview The updated negotiation with the new value for the nested answer\n * @throws ApiError\n */\nexport const acceptNestedAnswersCounterpartyPosition = (data: AcceptNestedAnswersCounterpartyPositionData): CancelablePromise<AcceptNestedAnswersCounterpartyPositionResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/answers/nested/{nestedAnswersId}/acceptCpPosition/{partyId}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n nestedAnswersId: data.nestedAnswersId,\n partyId: data.partyId\n },\n errors: {\n 404: 'Negotiation, nested answers ID or party not found'\n }\n });\n};\n\n/**\n * View the initial set of answers for a negotiation\n * View the initial set of answers for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns VersionedPartyAnswers The election answers used when the negotiation was initially created.\n * @throws ApiError\n */\nexport const initialAnswers = (data: InitialAnswersData): CancelablePromise<InitialAnswersResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/initialAnswers',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 404: 'Negotiation or election not found'\n }\n });\n};\n\n/**\n * Assign yourself to a negotiation\n * Assign yourself to a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationSingle The negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const assignToMe = (data: AssignToMeData): CancelablePromise<AssignToMeResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/owner/myself',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Assign a user to a negotiation\n * Assign a user to a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.userId\n * @returns NegotiationSingle The negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const assignUser = (data: AssignUserData): CancelablePromise<AssignUserResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/owner/{userId}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n userId: data.userId\n },\n errors: {\n 400: 'Invalid user',\n 404: 'Negotiation or user not found'\n }\n });\n};\n\n/**\n * Gets previous active users in a negotiation. Doesn't gets the current active user in that list\n * Gets previous active users in a negotiation. Doesn't gets the current active user in that list.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns User Previous active users in a negotiation\n * @throws ApiError\n */\nexport const getPreviousActiveUsers = (data: GetPreviousActiveUsersData): CancelablePromise<GetPreviousActiveUsersResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/previousActiveUsers',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 400: 'Invalid user',\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Set one or more counterparties for a negotiation\n * Set one or more counterparties for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @param data.strictLei Excludes internal entities; the validation of the LEI is strict by default, i.e. will return 404 Not Found if the LEI is not found in the GLEIF database\n * @returns NegotiationWithTimelineAndPreview A negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const setCounterparties = (data: SetCounterpartiesData): CancelablePromise<SetCounterpartiesResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/counterparties',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n query: {\n strictLEI: data.strictLei\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 400: 'Invalid or incomplete answers',\n 404: 'Negotiation not found',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * Download an invite attachment that has been uploaded for a negotiation\n * Download an invite attachment that has been uploaded for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.fileName\n * @returns binary The uploaded invite attachment\n * @throws ApiError\n */\nexport const getExternalAttachment = (data: GetExternalAttachmentData): CancelablePromise<GetExternalAttachmentResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/attachment/{fileName}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n fileName: data.fileName\n },\n errors: {\n 404: 'Missing document'\n }\n });\n};\n\n/**\n * Delete an invite attachment from a negotiation\n * Delete an invite attachment from a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.fileName\n * @returns AttachmentsExists The invite attachment was deleted successfully. Returns all invite attachments\n * @throws ApiError\n */\nexport const deleteExternalAttachment = (data: DeleteExternalAttachmentData): CancelablePromise<DeleteExternalAttachmentResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/attachment/{fileName}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n fileName: data.fileName\n }\n });\n};\n\n/**\n * List uploaded invite attachments for a negotiation\n * List uploaded invite attachments for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns AttachmentsExists Information about uploaded files\n * @throws ApiError\n */\nexport const listExternalAttachments = (data: ListExternalAttachmentsData): CancelablePromise<ListExternalAttachmentsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/attachment',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 403: 'Invite attachment upload is not enabled for the document type'\n }\n });\n};\n\n/**\n * Upload an invite attachment for a negotiation\n * Upload an invite attachment for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns AttachmentsExists The invite attachment was uploaded successfully. Returns all invite attachments\n * @throws ApiError\n */\nexport const setExternalAttachment = (data: SetExternalAttachmentData): CancelablePromise<SetExternalAttachmentResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/attachment',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/octet-stream',\n errors: {\n 400: 'The file is too large or would exceed the maximum total size for all files, or the negotiation is not currently in draft',\n 404: 'The negotiation was not found'\n }\n });\n};\n\n/**\n * Upload one or more invite attachments for a negotiation\n * Upload one or more invite attachments for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.formData\n * @returns AttachmentsExists The invite attachment(s) were uploaded successfully. Returns all invite attachments\n * @throws ApiError\n */\nexport const setExternalAttachments = (data: SetExternalAttachmentsData): CancelablePromise<SetExternalAttachmentsResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/attachment',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n formData: data.formData,\n mediaType: 'multipart/form-data',\n errors: {\n 400: 'The file(s) are too large or would exceed the maximum total size for all files, or the negotiation is not currently in draft',\n 404: 'The negotiation was not found'\n }\n });\n};\n\n/**\n * Download an execution attachment that has been uploaded for a negotiation\n * Download an execution attachment that has been uploaded for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.fileName\n * @returns binary Execution Attachment\n * @throws ApiError\n */\nexport const getExecutionAttachment = (data: GetExecutionAttachmentData): CancelablePromise<GetExecutionAttachmentResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executionAttachment/{fileName}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n fileName: data.fileName\n },\n errors: {\n 404: 'Missing document'\n }\n });\n};\n\n/**\n * Delete an execution attachment from a negotiation\n * Delete an execution attachment from a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.fileName\n * @returns SidedExecutionAttachmentsExists The execution attachment was deleted successfully. Returns all execution attachments\n * @throws ApiError\n */\nexport const deleteExecutionAttachment = (data: DeleteExecutionAttachmentData): CancelablePromise<DeleteExecutionAttachmentResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executionAttachment/{fileName}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n fileName: data.fileName\n }\n });\n};\n\n/**\n * List execution attachments for a negotiation\n * List execution attachments for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns SidedExecutionAttachmentsExists Information about uploaded files\n * @throws ApiError\n */\nexport const listExecutionAttachments = (data: ListExecutionAttachmentsData): CancelablePromise<ListExecutionAttachmentsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executionAttachment',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 403: 'Execution attachment upload is not enabled for the document type'\n }\n });\n};\n\n/**\n * Upload an execution attachment for a negotiation\n * Upload an execution attachment for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns SidedExecutionAttachmentsExists The execution attachment was uploaded successfully. Returns all execution attachments\n * @throws ApiError\n */\nexport const setExecutionAttachment = (data: SetExecutionAttachmentData): CancelablePromise<SetExecutionAttachmentResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executionAttachment',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/pdf',\n errors: {\n 400: 'The file is too large or would exceed the maximum total size for all execution files, or the negotiation is not currently in ExecutionAgreed',\n 404: 'The negotiation was not found'\n }\n });\n};\n\n/**\n * Upload one or more execution attachments for a negotiation\n * Upload one or more execution attachments for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.formData\n * @returns SidedExecutionAttachmentsExists The execution attachment(s) were uploaded successfully. Returns all execution attachments\n * @throws ApiError\n */\nexport const setExecutionAttachments = (data: SetExecutionAttachmentsData): CancelablePromise<SetExecutionAttachmentsResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executionAttachment',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n formData: data.formData,\n mediaType: 'multipart/form-data',\n errors: {\n 400: 'The file(s) are too large or would exceed the maximum total size for all execution files, or the negotiation is not currently in ExecutionAgreed.',\n 404: 'The negotiation was not found'\n }\n });\n};\n\n/**\n * Upload an execution attachment for a negotiation\n * Upload an execution attachment for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.oldFileName\n * @returns SidedExecutionAttachmentsExists Execution attachment renamed successfully\n * @throws ApiError\n */\nexport const renameExecutionAttachment = (data: RenameExecutionAttachmentData): CancelablePromise<RenameExecutionAttachmentResponse> => {\n return __request(OpenAPI, {\n method: 'PATCH',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/executionAttachment/{oldFileName}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n oldFileName: data.oldFileName\n },\n errors: {\n 400: 'New filename is invalid',\n 404: 'Old filename not found'\n }\n });\n};\n\n/**\n * Set the initiating party's entity for a negotiation\n * Set the initiating party's entity for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationWithTimelineAndPreview The negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const setOwnerEntity = (data: SetOwnerEntityData): CancelablePromise<SetOwnerEntityResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/owner',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 400: 'Invalid or incomplete answers',\n 404: 'Negotiation not found',\n 409: 'Could not save new version',\n 422: 'Counterparty email address required'\n }\n });\n};\n\n/**\n * Set the receiving party's entity for a negotiation\n * Set the receiving party's entity for a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationWithTimelineAndPreview The negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const setReceiverEntity = (data: SetReceiverEntityData): CancelablePromise<SetReceiverEntityResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/entities',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation not found',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * Apply a preset to a negotiation\n * Apply a preset to a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationWithTimelineAndPreview The negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const setPreset = (data: SetPresetData): CancelablePromise<SetPresetResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/preset',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation or preset not found'\n }\n });\n};\n\n/**\n * Change your party in a negotiation (A->B or B->A)\n * Change your party in a negotiation (A->B or B->A).\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationWithTimelineAndPreview The negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const swapParties = (data: SwapPartiesData): CancelablePromise<SwapPartiesResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/swapParties',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 403: 'Forbidden action in this state',\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Approve the final document before working towards Agreed form\n * Approve the final document before working towards Agreed form.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns unknown Final document approved\n * @throws ApiError\n */\nexport const approveFinalDocument = (data: ApproveFinalDocumentData): CancelablePromise<ApproveFinalDocumentResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/document/approve',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'action not permitted (negotiation is in wrong state)',\n 404: 'Negotiation not found',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * Override Approve the final document before working towards Agreed form\n * Override Approve the final document before working towards Agreed form.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns unknown Final document approved (override the approval process)\n * @throws ApiError\n */\nexport const overrideApproveFinalDocument = (data: OverrideApproveFinalDocumentData): CancelablePromise<OverrideApproveFinalDocumentResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/document/approve/override',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'action not permitted (negotiation is in wrong state)',\n 404: 'Negotiation not found',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * Reject the final document and revert to an amending state\n * Reject the final document and revert to an amending state.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns unknown Final document rejected\n * @throws ApiError\n */\nexport const rejectFinalDocument = (data: RejectFinalDocumentData): CancelablePromise<RejectFinalDocumentResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/document/reject',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'action not permitted (negotiation is in wrong state)',\n 404: 'Negotiation not found',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * Override Reject the final document and revert to an amending state\n * Override Reject the final document and revert to an amending state.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns unknown Final document rejected (override the approval process)\n * @throws ApiError\n */\nexport const overrideRejectFinalDocument = (data: OverrideRejectFinalDocumentData): CancelablePromise<OverrideRejectFinalDocumentResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/document/reject/override',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'action not permitted (negotiation is in wrong state)',\n 404: 'Negotiation not found',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * Send a negotiation back to the counterparty\n * Send a negotiation back to the counterparty.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationSingle A negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const sendToCounterparty = (data: SendToCounterpartyData): CancelablePromise<SendToCounterpartyResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/sendToCounterparty',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'No counterparty is configured',\n 404: 'Negotiation not found',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * Adds or updates a covering note on a draft negotiation\n * Adds or updates a covering note on a draft negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationSingle A negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const setGeneralCoverNote = (data: SetGeneralCoverNoteData): CancelablePromise<SetGeneralCoverNoteResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/coverNote',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation not found',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * Delete a cover note from a draft negotiation\n * Delete a cover note from a draft negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationSingle A negotiation after removal of cover note\n * @throws ApiError\n */\nexport const deleteGeneralCoverNote = (data: DeleteGeneralCoverNoteData): CancelablePromise<DeleteGeneralCoverNoteResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/coverNote',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 404: 'Negotiation not found',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * Send a negotiation for either election or document approval, depending on the state of the negotiation\n * Send a negotiation for either election or document approval, depending on the state of the negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationSingle A negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const negotiationSendForApproval = (data: NegotiationSendForApprovalData): CancelablePromise<NegotiationSendForApprovalResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/sendForApproval',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'Action not permitted (negotiation is in wrong state)',\n 404: 'Negotiation not found',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * Change the Signing Mode for a negotiation in Execution\n * Change the Signing Mode for a negotiation in Execution.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationSingle A negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const changeSigningMode = (data: ChangeSigningModeData): CancelablePromise<ChangeSigningModeResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/signingMode',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'Action not permitted (negotiation is in wrong state)',\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Update the approval rules for an election\n * Update the approval rules for an election.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.electionId\n * @param data.requestBody\n * @returns NegotiationSingle The updated negotiation\n * @throws ApiError\n */\nexport const setElectionApproval = (data: SetElectionApprovalData): CancelablePromise<SetElectionApprovalResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/elections/{electionId}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n electionId: data.electionId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Preset not found'\n }\n });\n};\n\n/**\n * Sends the approval reminder email to pending approvers in a quorum for the document\n * Sends the approval reminder email to pending approvers in a quorum for the document.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns unknown Reminder queued\n * @throws ApiError\n */\nexport const sendDocumentApprovalReminder = (data: SendDocumentApprovalReminderData): CancelablePromise<SendDocumentApprovalReminderResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/document/reminder',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 400: 'There is no pending approval or approval sent date',\n 404: 'Negotiation or sub-account not found'\n }\n });\n};\n\n/**\n * Sends the approval reminder email to all approvers in a quorum for an election\n * Sends the approval reminder email to all approvers in a quorum for an election.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.electionId\n * @returns unknown Reminder queued\n * @throws ApiError\n */\nexport const sendElectionApprovalReminder = (data: SendElectionApprovalReminderData): CancelablePromise<SendElectionApprovalReminderResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/elections/{electionId}/reminder',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n electionId: data.electionId\n },\n errors: {\n 400: 'There is no pending approval',\n 404: 'Negotiation, sub-account or election id not found'\n }\n });\n};\n\n/**\n * Approve an election\n * Approve an election.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.electionId\n * @param data.requestBody\n * @returns NegotiationSingle A negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const addElectionApproval = (data: AddElectionApprovalData): CancelablePromise<AddElectionApprovalResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/elections/{electionId}/approve',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n electionId: data.electionId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'Action not permitted (negotiation is in the wrong state or you do not have permission)',\n 404: 'Negotiation not found',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * Reject an election\n * Reject an election.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.electionId\n * @param data.requestBody\n * @returns NegotiationSingle A negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const addElectionRejection = (data: AddElectionRejectionData): CancelablePromise<AddElectionRejectionResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/elections/{electionId}/reject',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n electionId: data.electionId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'Action not permitted (negotiation is in the wrong state or you do not have permission)',\n 404: 'Negotiation not found',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * Override approve an election\n * Override approve an election.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.electionId\n * @param data.requestBody\n * @returns NegotiationSingle A JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const overrideElectionApproval = (data: OverrideElectionApprovalData): CancelablePromise<OverrideElectionApprovalResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/elections/{electionId}/approve/override',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n electionId: data.electionId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'Action not permitted (negotiation is in the wrong state or you do not have permission)',\n 404: 'Negotiation not found',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * Override reject an election\n * Override reject an election.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.electionId\n * @param data.requestBody\n * @returns NegotiationSingle A negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const overrideElectionRejection = (data: OverrideElectionRejectionData): CancelablePromise<OverrideElectionRejectionResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/elections/{electionId}/reject/override',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n electionId: data.electionId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'Action not permitted (negotiation is in the wrong state or you do not have permission)',\n 404: 'Negotiation not found',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * View the approval history of a negotiation\n * View the approval history of a negotiation. Includes document and election approval.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns ApprovalHistory The approval history of the negotiation\n * @throws ApiError\n */\nexport const getApprovalHistory = (data: GetApprovalHistoryData): CancelablePromise<GetApprovalHistoryResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/history',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n }\n });\n};\n\n/**\n * View the approval history of a negotiation, limited to a specific round\n * View the approval history of a negotiation, limited to a specific round.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.roundId\n * @returns ApprovalHistory The approval history of the negotiation\n * @throws ApiError\n */\nexport const getApprovalRound = (data: GetApprovalRoundData): CancelablePromise<GetApprovalRoundResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/{roundId}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n roundId: data.roundId\n }\n });\n};\n\n/**\n * Add an approval comment on a negotiation\n * Add an approval comment on a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns ApprovalComment An updated comment\n * @throws ApiError\n */\nexport const addApprovalComment = (data: AddApprovalCommentData): CancelablePromise<AddApprovalCommentResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/comment',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'Comment value is empty'\n }\n });\n};\n\n/**\n * Amend an approval comment\n * Amend an approval comment.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.approvalCommentId\n * @param data.requestBody\n * @returns ApprovalComment The updated comment\n * @throws ApiError\n */\nexport const editApprovalComment = (data: EditApprovalCommentData): CancelablePromise<EditApprovalCommentResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/comment/{approvalCommentId}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n approvalCommentId: data.approvalCommentId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'Comment value is empty'\n }\n });\n};\n\n/**\n * Delete an approval comment\n * Delete an approval comment.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.approvalCommentId\n * @returns unknown The deleted comment\n * @throws ApiError\n */\nexport const deleteApprovalComment = (data: DeleteApprovalCommentData): CancelablePromise<DeleteApprovalCommentResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/comment/{approvalCommentId}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n approvalCommentId: data.approvalCommentId\n },\n errors: {\n 403: 'Action not permitted (user does not have permission)'\n }\n });\n};\n\n/**\n * View all approval comments associated with a negotiation\n * View all approval comments associated with a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns ApprovalComments All approval comments for a negotiation grouped by document comments or corresponding election ID\n * @throws ApiError\n */\nexport const getApprovalComments = (data: GetApprovalCommentsData): CancelablePromise<GetApprovalCommentsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/comments/all',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Mark approval comments associated with a negotiation and requesting user as read\n * Mark approval comments associated with a negotiation and requesting user as read.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody An empty payload `{}` will mark all approval comments associated with a negotiation as read\n * @returns unknown All specified approval comments for a negotiation and requesting user as read\n * @throws ApiError\n */\nexport const markApprovalCommentsAsViewed = (data: MarkApprovalCommentsAsViewedData): CancelablePromise<MarkApprovalCommentsAsViewedResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/approvals/comments/markAsRead',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Send a negotiation to all counterparties for the first time\n * Send a negotiation to all counterparties for the first time.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationSingle Sent to counterparty\n * @throws ApiError\n */\nexport const sendToCounterpartyInitial = (data: SendToCounterpartyInitialData): CancelablePromise<SendToCounterpartyInitialResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/sendToCounterparty/initial',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'No counterparty is configured',\n 404: 'Negotiation not found',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * Mark a negotiation as offline\n * Mark a negotiation as offline.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationSingle The updated negotiation\n * @throws ApiError\n */\nexport const markAsOffline = (data: MarkAsOfflineData): CancelablePromise<MarkAsOfflineResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/markAsOffline',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 403: 'No counterparty is configured',\n 404: 'Negotiation not found',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * Confirm that you are happy for this negotiation to go to agreed form\n * Confirm that you are happy for this negotiation to go to agreed form.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationWithTimelineAndPreview A negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const confirm = (data: ConfirmData): CancelablePromise<ConfirmResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/confirm',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 400: 'Invalid, incomplete or mismatching answers',\n 404: 'Negotiation not found',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * Cancel a negotiation\n * Cancels a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationSingle A negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const cancel = (data: CancelData): CancelablePromise<CancelResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/cancel',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Cancel selected negotiations\n * Cancel selected negotiations.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.requestBody\n * @returns CancelNegotiations Selected negotiations canceled\n * @throws ApiError\n */\nexport const cancelNegotiations = (data: CancelNegotiationsData): CancelablePromise<CancelNegotiationsResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/cancelNegotiations',\n path: {\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json'\n });\n};\n\n/**\n * Retract an invitation to negotiate\n * Cancels an unaccepted invitation to negotiate, and creates a new draft negotiation containing the same values so that errors in the initial invitation can be corrected.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationSingle A new, draft negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const retract = (data: RetractData): CancelablePromise<RetractResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/retract',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Confirm the execution version of a negotiation\n * Confirm the execution version of a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationWithTimelineAndPreview A negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const confirmExecutionVersion = (data: ConfirmExecutionVersionData): CancelablePromise<ConfirmExecutionVersionResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/confirmExecutionVersion',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Reverts a negotiation that has not yet been finalised so that election answers can be amended\n * Reverts a negotiation that has not yet been finalised so that election answers can be amended.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns NegotiationWithTimelineAndPreview A negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const revertToAmending = (data: RevertToAmendingData): CancelablePromise<RevertToAmendingResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/revertToAmending',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * View all comments associated with a negotiation\n * View all comments associated with a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns unknown All comments for a negotiation grouped by document comments or corresponding election ID\n * @throws ApiError\n */\nexport const getComments = (data: GetCommentsData): CancelablePromise<GetCommentsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline/comments',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Use generative AI to summarise negotiation comments\n * Use generative AI to summarise negotiation comments. Generates summaries for a specified set of comments.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.summaryContext The set of comments to summarise\n * @param data.unreadOnly When unreadOnly is true only summarise comments that have not been read by the user.\n * @returns unknown A summary of the specified comments.\n * @throws ApiError\n */\nexport const getCommentSummary = (data: GetCommentSummaryData): CancelablePromise<GetCommentSummaryResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/commentSummary',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n query: {\n summaryContext: data.summaryContext,\n unreadOnly: data.unreadOnly\n },\n errors: {\n 400: 'The specified summaryContext is not available for this negotiation.',\n 403: 'The AI comment summerisation feature has not been enabled for this account.',\n 404: 'Negotiation not found or No comments to summarise.',\n 503: 'Unable to fetch a summary, the generated summary may have been discarded if it contained inappropriate content.'\n }\n });\n};\n\n/**\n * View all timeline activities (non-comments) associated with a negotiation\n * View all timeline activities (non-comments) associated with a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.orderDirection\n * @returns unknown All timeline activities for a negotiation\n * @throws ApiError\n */\nexport const getTimelineActivity = (data: GetTimelineActivityData): CancelablePromise<GetTimelineActivityResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline/activities',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n query: {\n orderDirection: data.orderDirection\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * View a negotiation's timeline, including comments\n * View a negotiation's timeline, including comments.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.channel\n * @param data.orderDirection\n * @returns unknown The list of timeline events for the specified channel\n * @throws ApiError\n */\nexport const getChannelTimeline = (data: GetChannelTimelineData): CancelablePromise<GetChannelTimelineResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline/{channel}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n channel: data.channel\n },\n query: {\n orderDirection: data.orderDirection\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * View all timeline events associated with a negotiation\n * View all timeline events associated with a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.orderDirection\n * @returns unknown All timeline events for a negotiation\n * @throws ApiError\n */\nexport const getTimeline = (data: GetTimelineData): CancelablePromise<GetTimelineResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n query: {\n orderDirection: data.orderDirection\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Mark all timeline events associated with a negotiation and requesting user as read\n * Mark all timeline events associated with a negotiation and requesting user as read.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns unknown All timeline events for a negotiation and requesting user as read\n * @throws ApiError\n */\nexport const markEventsAsViewed = (data: MarkEventsAsViewedData): CancelablePromise<MarkEventsAsViewedResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Mark activity timeline events associated with a negotiation and requesting user as read\n * Mark activity timeline events associated with a negotiation and requesting user as read.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody An empty payload `{}` will mark all activities as read\n * @returns unknown All specified activities timeline events for a negotiation and requesting user as read\n * @throws ApiError\n */\nexport const markActivityEventsAsViewed = (data: MarkActivityEventsAsViewedData): CancelablePromise<MarkActivityEventsAsViewedResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline/activities/markAsRead',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Mark comments timeline events associated with a negotiation and requesting user as read\n * Mark comments timeline events associated with a negotiation and requesting user as read.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody An empty payload `{}` will mark all comments as read\n * @returns unknown All specified comments timeline events for a negotiation and requesting user as read\n * @throws ApiError\n */\nexport const markCommentEventsAsViewed = (data: MarkCommentEventsAsViewedData): CancelablePromise<MarkCommentEventsAsViewedResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline/comments/markAsRead',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Add an internal or external comment on a negotiation\n * Add an internal or external comment on a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.channel\n * @param data.requestBody\n * @returns TimelineEvent An updated comment\n * @throws ApiError\n */\nexport const addComment = (data: AddCommentData): CancelablePromise<AddCommentResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline/{channel}/comments',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n channel: data.channel\n },\n body: data.requestBody,\n mediaType: 'application/json'\n });\n};\n\n/**\n * Enqueues a job to generate negotiation document and sends it as an email attachment to the reqeusting user\n * Enqueues a job to generate negotiation document and sends it as an email attachment to the reqeusting user.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns GenerateNegotiationDocumentJobResponse Job enqueued successfully\n * @throws ApiError\n */\nexport const queueGenerateNegotiationDocumentJob = (data: QueueGenerateNegotiationDocumentJobData): CancelablePromise<QueueGenerateNegotiationDocumentJobResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/generateDocument',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json'\n });\n};\n\n/**\n * Amend a comment\n * Amend a comment.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.eventId\n * @param data.channel\n * @param data.requestBody\n * @returns TimelineEvent The updated comment\n * @throws ApiError\n */\nexport const updateComment = (data: UpdateCommentData): CancelablePromise<UpdateCommentResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline/{channel}/comments/{eventId}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n eventId: data.eventId,\n channel: data.channel\n },\n body: data.requestBody,\n mediaType: 'application/json'\n });\n};\n\n/**\n * Delete a comment that has not yet been published\n * Delete a comment that has not yet been published.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.eventId\n * @param data.channel\n * @param data.requestBody\n * @returns TimelineEvent The deleted comment\n * @throws ApiError\n */\nexport const deleteComment = (data: DeleteCommentData): CancelablePromise<DeleteCommentResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/timeline/{channel}/comments/{eventId}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId,\n eventId: data.eventId,\n channel: data.channel\n },\n body: data.requestBody,\n mediaType: 'application/json'\n });\n};\n\n/**\n * Update the details of one of your Sub-Accounts\n * Update the details of one of your Sub-Accounts.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.requestBody\n * @returns unknown Sub-account updated\n * @throws ApiError\n */\nexport const updateSubAccount = (data: UpdateSubAccountData): CancelablePromise<UpdateSubAccountResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}',\n path: {\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Sub-account not found'\n }\n });\n};\n\n/**\n * View information about a Sub-Account\n * View information about a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId\n * @returns unknown A subaccount summary\n * @throws ApiError\n */\nexport const getSubAccount = (data: GetSubAccountData): CancelablePromise<GetSubAccountResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}',\n path: {\n subAccountId: data.subAccountId\n }\n });\n};\n\n/**\n * View a list of Sub-Accounts in your account\n * View a list of Sub-Accounts in your account.\n * @param data The data for the request.\n * @param data.minimal\n * @param data.subAccountName Free text search to filter by text in subaccounts\n * @returns unknown A list of subaccounts\n * @throws ApiError\n */\nexport const listSubAccounts = (data: ListSubAccountsData = {}): CancelablePromise<ListSubAccountsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts',\n query: {\n minimal: data.minimal,\n subAccountName: data.subAccountName\n }\n });\n};\n\n/**\n * View aggregate statistics for a Sub-Account\n * View aggregate statistics for a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.documentPublisherId Filter by document publisher id\n * @returns SubAccountComplexStatistics Aggregate statistics for a Sub-Account\n * @throws ApiError\n */\nexport const getLegacyStatistics = (data: GetLegacyStatisticsData): CancelablePromise<GetLegacyStatisticsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/statistics',\n path: {\n subAccountId: data.subAccountId\n },\n query: {\n documentPublisherId: data.documentPublisherId\n },\n errors: {\n 404: 'Sub-account not found'\n }\n });\n};\n\n/**\n * View aggregate statistics for a Sub-Account\n * View aggregate statistics for a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.documentPublisherId Filter by document publisher id\n * @param data.isDraft Filter by negotiation state 'draft'\n * @param data.isCompleted Filter by negotiation state 'completed'\n * @param data.isCancelled Filter by negotiation state 'cancelled'\n * @param data.isAmendAndRestate Filter by negotiation is 'forked' or not\n * @param data.isTriparty Filter by negotiation workflow 'triparty'\n * @param data.isOffline Filter by negotiation workflow 'offline'\n * @param data.isAdvisorAccessible Filter by negotiation is accessible to advisor or not\n * @param data.isConfirmedTemplate Filter by negotiation state confirmed template\n * @param data.creationDateFrom Filter negotiation whose creation date is this date or after this date in ISO 8601 date format\n * @param data.creationDateTo Filter negotiation whose creation date is this date or before this date in ISO 8601 date format\n * @param data.advisorRelationshipId Filter by negotiations accessible to selected advisors identified by advisor relationship id\n * @returns SubAccountStatistics Aggregate statistics for a Sub-Account\n * @throws ApiError\n */\nexport const getStatistics = (data: GetStatisticsData): CancelablePromise<GetStatisticsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v2/subAccounts/{subAccountId}/statistics',\n path: {\n subAccountId: data.subAccountId\n },\n query: {\n documentPublisherId: data.documentPublisherId,\n isDraft: data.isDraft,\n isCompleted: data.isCompleted,\n isCancelled: data.isCancelled,\n isAmendAndRestate: data.isAmendAndRestate,\n isTriparty: data.isTriparty,\n isOffline: data.isOffline,\n isAdvisorAccessible: data.isAdvisorAccessible,\n isConfirmedTemplate: data.isConfirmedTemplate,\n creationDateFrom: data.creationDateFrom,\n creationDateTo: data.creationDateTo,\n advisorRelationshipId: data.advisorRelationshipId\n },\n errors: {\n 404: 'Sub-account not found'\n }\n });\n};\n\n/**\n * View aggregate statistics for the user in a Sub-Account\n * View aggregate statistics for the user in a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.userId\n * @param data.documentPublisherId Filter by document publisher id\n * @param data.isDraft Filter by negotiation state 'draft'\n * @param data.isCompleted Filter by negotiation state 'completed'\n * @param data.isCancelled Filter by negotiation state 'cancelled'\n * @param data.isAmendAndRestate Filter by negotiation is 'forked' or not\n * @param data.isTriparty Filter by negotiation workflow 'triparty'\n * @param data.isOffline Filter by negotiation workflow 'offline'\n * @param data.isAdvisorAccessible Filter by negotiation is accessible to advisor or not\n * @param data.isConfirmedTemplate Filter by negotiation state confirmed template\n * @param data.creationDateFrom Filter negotiation whose creation date is this date or after this date in ISO 8601 date format\n * @param data.creationDateTo Filter negotiation whose creation date is this date or before this date in ISO 8601 date format\n * @param data.advisorRelationshipId Filter by negotiations accessible to selected advisors identified by advisor relationship id\n * @returns UserStatistics Aggregate statistics for the user in a Sub-Account.\n * @throws ApiError\n */\nexport const getUserStatistics = (data: GetUserStatisticsData): CancelablePromise<GetUserStatisticsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v2/subAccounts/{subAccountId}/statistics/users/{userId}',\n path: {\n subAccountId: data.subAccountId,\n userId: data.userId\n },\n query: {\n documentPublisherId: data.documentPublisherId,\n isDraft: data.isDraft,\n isCompleted: data.isCompleted,\n isCancelled: data.isCancelled,\n isAmendAndRestate: data.isAmendAndRestate,\n isTriparty: data.isTriparty,\n isOffline: data.isOffline,\n isAdvisorAccessible: data.isAdvisorAccessible,\n isConfirmedTemplate: data.isConfirmedTemplate,\n creationDateFrom: data.creationDateFrom,\n creationDateTo: data.creationDateTo,\n advisorRelationshipId: data.advisorRelationshipId\n },\n errors: {\n 404: 'Sub-account not found'\n }\n });\n};\n\n/**\n * View aggregate statistics overview for the requester\n * View aggregate statistics overview for the requester.\n * @param data The data for the request.\n * @param data.subAccountId\n * @returns SubAccountStatisticsOverviewResponse Aggregate statistics overview for the requester\n * @throws ApiError\n */\nexport const getStatisticsOverview = (data: GetStatisticsOverviewData): CancelablePromise<GetStatisticsOverviewResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v2/subAccounts/{subAccountId}/statisticsOverview',\n path: {\n subAccountId: data.subAccountId\n },\n errors: {\n 404: 'Sub-account not found'\n }\n });\n};\n\n/**\n * Assign an entity to a Sub-Account\n * Assign an entity to a subaccount.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.requestBody\n * @returns Entity A JSON describing the entity added\n * @throws ApiError\n */\nexport const assignEntity = (data: AssignEntityData): CancelablePromise<AssignEntityResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/entity',\n path: {\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Subaccount or Entity not found',\n 409: 'Entity is already assigned to a subaccount in this account'\n }\n });\n};\n\n/**\n * Move an entity from one Sub-Account to another\n * Move an entity (and it's associated negotiations) from one Sub-Account to another.\n * @param data The data for the request.\n * @param data.entityId\n * @param data.subAccountId\n * @param data.requestBody\n * @returns unknown Entity successfully moved\n * @throws ApiError\n */\nexport const moveEntity = (data: MoveEntityData): CancelablePromise<MoveEntityResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/entity/{entityId}/move',\n path: {\n entityId: data.entityId,\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Entity could not be found on the Sub-Account',\n 419: 'Entity cannot be moved from and to the same Sub-Account'\n }\n });\n};\n\n/**\n * View the audit trail for a Sub-Account as JSON\n * View the audit trail for a Sub-Account as JSON.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.yearMonths\n * @returns AuditEvent The audit trail for a Sub-Account\n * @throws ApiError\n */\nexport const auditTrailForSubAccountAsJson = (data: AuditTrailForSubAccountAsJsonData): CancelablePromise<AuditTrailForSubAccountAsJsonResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/audit_trail/json',\n path: {\n subAccountId: data.subAccountId\n },\n query: {\n yearMonths: data.yearMonths\n }\n });\n};\n\n/**\n * View the audit trail for a Sub-Account as XLSX\n * View the audit trail for a Sub-Account as XLSX.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.yearMonths\n * @returns binary XLSX formatted data\n * @throws ApiError\n */\nexport const auditTrailForSubAccountAsExcel = (data: AuditTrailForSubAccountAsExcelData): CancelablePromise<AuditTrailForSubAccountAsExcelResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/audit_trail/xlsx',\n path: {\n subAccountId: data.subAccountId\n },\n query: {\n yearMonths: data.yearMonths\n }\n });\n};\n\n/**\n * View your available audit log filters\n * View your available audit log filters.\n * @returns AuditTrailFilters Available filters\n * @throws ApiError\n */\nexport const auditTrailFilters = (): CancelablePromise<AuditTrailFiltersResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/account/audit_trail/filters'\n });\n};\n\n/**\n * View an audit trail for an account as JSON\n * View an audit trail for an account as JSON.\n * @param data The data for the request.\n * @param data.includeSubAccountEvents\n * @param data.yearMonths\n * @returns AuditEvent JSON formatted data\n * @throws ApiError\n */\nexport const auditTrailForAccountAsJson = (data: AuditTrailForAccountAsJsonData): CancelablePromise<AuditTrailForAccountAsJsonResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/account/audit_trail/json',\n query: {\n includeSubAccountEvents: data.includeSubAccountEvents,\n yearMonths: data.yearMonths\n }\n });\n};\n\n/**\n * View an audit trail for an account as XLSX\n * View an audit trail for an account as XLSX.\n * @param data The data for the request.\n * @param data.includeSubAccountEvents\n * @param data.yearMonths\n * @returns binary XLSX formatted data\n * @throws ApiError\n */\nexport const auditTrailForAccountAsExcel = (data: AuditTrailForAccountAsExcelData): CancelablePromise<AuditTrailForAccountAsExcelResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/account/audit_trail/xlsx',\n query: {\n includeSubAccountEvents: data.includeSubAccountEvents,\n yearMonths: data.yearMonths\n }\n });\n};\n\n/**\n * View your email preferences\n * View your email preferences.\n * @returns EmailPreferences Email preferences\n * @throws ApiError\n */\nexport const emailPreferences = (): CancelablePromise<EmailPreferencesResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/emailPreferences'\n });\n};\n\n/**\n * Submit partial or complete changes to your email preferences\n * Submit partial or complete changes to your email preferences.\n * @param data The data for the request.\n * @param data.requestBody\n * @returns unknown Email preferences updated successfully\n * @throws ApiError\n */\nexport const patchEmailPreferences = (data: PatchEmailPreferencesData): CancelablePromise<PatchEmailPreferencesResponse> => {\n return __request(OpenAPI, {\n method: 'PATCH',\n url: '/api/v1/emailPreferences',\n body: data.requestBody,\n mediaType: 'application/json'\n });\n};\n\n/**\n * Get a list of all advisors that can be given access to the specified negotiation\n * Get a list of all advisors that can be given access to the specified negotiation. Dont include advisors that already have access.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns PotentialAdvisorSummary A list of all advisors that can be given access to the specified negotiation\n * @throws ApiError\n */\nexport const listPotentialNegotiationAdvisors = (data: ListPotentialNegotiationAdvisorsData): CancelablePromise<ListPotentialNegotiationAdvisorsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/advisor/subAccounts/{subAccountId}/negotiations/{negotiationId}/potentialAdvisors',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n }\n });\n};\n\n/**\n * Get a list of all advisors that can be given access to the specified preset\n * Get a list of all advisors that can be given access to the specified preset. Dont include advisors that already have access.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.presetId\n * @returns PotentialAdvisorSummary A list of all advisors that can be given access to the specified preset\n * @throws ApiError\n */\nexport const listPotentialPresetAdvisors = (data: ListPotentialPresetAdvisorsData): CancelablePromise<ListPotentialPresetAdvisorsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/advisor/subAccounts/{subAccountId}/presets/{presetId}/potentialAdvisors',\n path: {\n subAccountId: data.subAccountId,\n presetId: data.presetId\n }\n });\n};\n\n/**\n * Get a list of all the relationships where a user is an advisor or is a client in a given account\n * Get a list of all the relationships where a user is an advisor or is a client in a given account.\n * @returns AdvisorAccountRelationships A list of all the relationships where a user is an advisor or is a client in a given account\n * @throws ApiError\n */\nexport const getAccountRelationshipSummaries = (): CancelablePromise<GetAccountRelationshipSummariesResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/advisor/accounts/relationships/summary',\n errors: {\n 403: 'The request is from advisor'\n }\n });\n};\n\n/**\n * Get a list of all advisors accounts that have access to the specified workspace\n * Get a list of all advisors accounts that have access to the specified workspace. Only lists active relationships.\n * @param data The data for the request.\n * @param data.subAccountId\n * @returns AdvisorWithShareSetting A list of all advisors accounts that have access to the specified workspace\n * @throws ApiError\n */\nexport const listAdvisorsForWorkspace = (data: ListAdvisorsForWorkspaceData): CancelablePromise<ListAdvisorsForWorkspaceResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/advisor/subAccounts/{subAccountId}/listAdvisors',\n path: {\n subAccountId: data.subAccountId\n }\n });\n};\n\n/**\n * Grant access for specific negotiations to an Advisor\n * Grant existing advisor access over specified negotiations. All supplied negotiations are appended to existing list.\n * @param data The data for the request.\n * @param data.relationshipId\n * @param data.subAccountId\n * @param data.requestBody\n * @returns void Access granted\n * @throws ApiError\n */\nexport const grantNegotiationsAccess = (data: GrantNegotiationsAccessData): CancelablePromise<GrantNegotiationsAccessResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/advisor/subAccounts/{subAccountId}/relationships/{relationshipId}/negotiations',\n path: {\n relationshipId: data.relationshipId,\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json'\n });\n};\n\n/**\n * Revoke negotiation access from Advisor\n * Revoke existing advisor access over specified negotiations. All supplied negotiations are removed from existing list.\n * @param data The data for the request.\n * @param data.relationshipId\n * @param data.subAccountId\n * @param data.requestBody\n * @returns void Negotiations access revoked\n * @throws ApiError\n */\nexport const revokeNegotiationsAccess = (data: RevokeNegotiationsAccessData): CancelablePromise<RevokeNegotiationsAccessResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/advisor/subAccounts/{subAccountId}/relationships/{relationshipId}/negotiations',\n path: {\n relationshipId: data.relationshipId,\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json'\n });\n};\n\n/**\n * Grant access to all negotiations in a subaccount to an Advisor\n * Grant access to all negotiations in a subaccount to an Advisor.\n * @param data The data for the request.\n * @param data.relationshipId\n * @param data.subAccountId\n * @returns void Access granted\n * @throws ApiError\n */\nexport const grantAllNegotiationsAccess = (data: GrantAllNegotiationsAccessData): CancelablePromise<GrantAllNegotiationsAccessResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/advisor/subAccounts/{subAccountId}/relationships/{relationshipId}/negotiations/all',\n path: {\n relationshipId: data.relationshipId,\n subAccountId: data.subAccountId\n }\n });\n};\n\n/**\n * Grant preset access to Advisor\n * Grant existing advisor access over specified presets. All supplied presets are appended to existing list.\n * @param data The data for the request.\n * @param data.relationshipId\n * @param data.subAccountId\n * @param data.requestBody\n * @returns void Access granted\n * @throws ApiError\n */\nexport const grantPresetsAccess = (data: GrantPresetsAccessData): CancelablePromise<GrantPresetsAccessResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/advisor/subAccounts/{subAccountId}/relationships/{relationshipId}/presets',\n path: {\n relationshipId: data.relationshipId,\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json'\n });\n};\n\n/**\n * Revoke preset access from Advisor\n * Revoke existing advisor access over specified presets. All supplied presets are removed from existing list.\n * @param data The data for the request.\n * @param data.relationshipId\n * @param data.subAccountId\n * @param data.requestBody\n * @returns void Presets Access revoked\n * @throws ApiError\n */\nexport const revokePresetsAccess = (data: RevokePresetsAccessData): CancelablePromise<RevokePresetsAccessResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/advisor/subAccounts/{subAccountId}/relationships/{relationshipId}/presets',\n path: {\n relationshipId: data.relationshipId,\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json'\n });\n};\n\n/**\n * Create a negotiation group\n * Create a negotiation group.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.requestBody\n * @returns NegotiationGroupId Negotiation group created\n * @throws ApiError\n */\nexport const createGroup = (data: CreateGroupData): CancelablePromise<CreateGroupResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/negotiationGroups',\n path: {\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json'\n });\n};\n\n/**\n * Gets the names of the groups within a Sub-Account\n * Gets the names of the groups within a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId\n * @returns NegotiationGroup Names of the groups within a Sub-Account\n * @throws ApiError\n */\nexport const getGroupNames = (data: GetGroupNamesData): CancelablePromise<GetGroupNamesResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiationGroups',\n path: {\n subAccountId: data.subAccountId\n }\n });\n};\n\n/**\n * Update the name for a negotiation group\n * Update the name for a negotiation group.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationGroupId\n * @param data.requestBody\n * @returns unknown Negotiation group name updated\n * @throws ApiError\n */\nexport const updateGroupName = (data: UpdateGroupNameData): CancelablePromise<UpdateGroupNameResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiationGroups/{negotiationGroupId}',\n path: {\n subAccountId: data.subAccountId,\n negotiationGroupId: data.negotiationGroupId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation group not found'\n }\n });\n};\n\n/**\n * Calculates the delta of each negotiation from the signature of the group as defined by the majority\n * Calculates the delta of each negotiation from the signature of the group as defined by the majority.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.requestBody\n * @returns unknown Negotiations deltas (if any).\n * @throws ApiError\n */\nexport const getNegotiationDeltas = (data: GetNegotiationDeltasData): CancelablePromise<GetNegotiationDeltasResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiationGroups/deltas/calculate',\n path: {\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json'\n });\n};\n\n/**\n * Updates the provided negotiations with their corresponding deltas\n * Updates the provided negotiations with their corresponding deltas.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.requestBody\n * @returns unknown Negotiations updated.\n * @throws ApiError\n */\nexport const updateNegotiationsToMatch = (data: UpdateNegotiationsToMatchData): CancelablePromise<UpdateNegotiationsToMatchResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiationGroups/deltas/apply',\n path: {\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 409: 'One or more negotiations could not be updated, so none were updated.'\n }\n });\n};\n\n/**\n * Validate a potential negotiation group name, and display alternatives if it is taken\n * Validate a potential negotiation group name, and display alternatives if it is taken.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.desiredName\n * @returns NegotiationGroupId Available negotiation group name\n * @throws ApiError\n */\nexport const suggestGroupName = (data: SuggestGroupNameData): CancelablePromise<SuggestGroupNameResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiationGroups/nameSuggestions',\n path: {\n subAccountId: data.subAccountId\n },\n query: {\n desiredName: data.desiredName\n }\n });\n};\n\n/**\n * Add or remove negotiations from a negotiation group\n * Add or remove negotiations from a negotiation group.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationGroupId\n * @param data.requestBody\n * @returns unknown Negotiation group members updated\n * @throws ApiError\n */\nexport const updateGroupMembers = (data: UpdateGroupMembersData): CancelablePromise<UpdateGroupMembersResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiationGroups/{negotiationGroupId}/members',\n path: {\n subAccountId: data.subAccountId,\n negotiationGroupId: data.negotiationGroupId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation group not found'\n }\n });\n};\n\n/**\n * View a negotiation group, and the negotiations within it\n * View a negotiation group, and the negotiations within it.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationGroupId\n * @returns NegotiationsGroup A negotiation group\n * @throws ApiError\n */\nexport const getNegotiationsGroup = (data: GetNegotiationsGroupData): CancelablePromise<GetNegotiationsGroupResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiationGroups/{negotiationGroupId}/negotiations',\n path: {\n subAccountId: data.subAccountId,\n negotiationGroupId: data.negotiationGroupId\n }\n });\n};\n\n/**\n * Send negotiations in a group to the counterparty\n * Send negotiations in a group to the counterparty. It should be used for the initial send as well.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationGroupId\n * @param data.requestBody\n * @returns SendGroupToCounterpartyResponse Negotiations in the group sent to counterparty\n * @throws ApiError\n */\nexport const sendGroupToCounterparty = (data: SendGroupToCounterpartyData): CancelablePromise<SendGroupToCounterpartyResponse2> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiationGroups/{negotiationGroupId}/sendToCounterparty',\n path: {\n subAccountId: data.subAccountId,\n negotiationGroupId: data.negotiationGroupId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'Unauthorised access of the negotiation group and the Sub-Account',\n 409: 'Could not save new version'\n }\n });\n};\n\n/**\n * Create a bulk set\n * Create a bulk set.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.requestBody\n * @returns CreateBulkSetResponse Negotiation group created\n * @throws ApiError\n */\nexport const createBulkSet = (data: CreateBulkSetData): CancelablePromise<CreateBulkSetResponse2> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/bulkSets',\n path: {\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json'\n });\n};\n\n/**\n * List bulk sets for a Sub-Account, and their bulk set ID\n * List bulk sets for a Sub-Account, and their bulk set ID.\n * @param data The data for the request.\n * @param data.subAccountId\n * @returns unknown List of bulk sets in the Sub-Account, and their bulk set ID\n * @throws ApiError\n */\nexport const listBulkSets = (data: ListBulkSetsData): CancelablePromise<ListBulkSetsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/bulkSets',\n path: {\n subAccountId: data.subAccountId\n }\n });\n};\n\n/**\n * Get information about a bulk set.\n * Get information about a bulk set.\n * @param data The data for the request.\n * @param data.bulkSetId\n * @returns BulkSetWithAttachments Information about the bulk set.\n * @throws ApiError\n */\nexport const getBulkSet = (data: GetBulkSetData): CancelablePromise<GetBulkSetResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/bulkSets/{bulkSetId}',\n path: {\n bulkSetId: data.bulkSetId\n }\n });\n};\n\n/**\n * Update the attachDocx setting for all of the receivers, for every negotiation in the bulk set\n * Update the attachDocx setting for all of the receivers, for every negotiation in the bulk set.\n * @param data The data for the request.\n * @param data.bulkSetId\n * @returns void Updated attachDocx for all receivers in bulk set.\n * @throws ApiError\n */\nexport const updateAttachDocx = (data: UpdateAttachDocxData): CancelablePromise<UpdateAttachDocxResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/bulkSets/{bulkSetId}/updateAttachDocx',\n path: {\n bulkSetId: data.bulkSetId\n }\n });\n};\n\n/**\n * Add a cover note for the bulk set that will be sent to each recipient when the bulk set is sent.\n * Add a cover note for the bulk set that will be sent to each recipient when the bulk set is sent.\n * @param data The data for the request.\n * @param data.bulkSetId\n * @param data.requestBody\n * @returns void Bulk set cover note is changed.\n * @throws ApiError\n */\nexport const updateCoverNote = (data: UpdateCoverNoteData): CancelablePromise<UpdateCoverNoteResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/bulkSets/{bulkSetId}/coverNote',\n path: {\n bulkSetId: data.bulkSetId\n },\n body: data.requestBody,\n mediaType: 'application/json'\n });\n};\n\n/**\n * Delete the cover note for the bulk set.\n * Delete the cover note for the bulk set.\n * @param data The data for the request.\n * @param data.bulkSetId\n * @returns void Bulk set cover note is deleted.\n * @throws ApiError\n */\nexport const deleteCoverNote = (data: DeleteCoverNoteData): CancelablePromise<DeleteCoverNoteResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/bulkSets/{bulkSetId}/coverNote',\n path: {\n bulkSetId: data.bulkSetId\n }\n });\n};\n\n/**\n * Gets the count of bulk sets job for a Sub-Account\n * Gets the count of bulk sets job for a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId\n * @returns BulkSetsCounts Negotiations bulk sets job count with the total number of bulk sets in the Sub-Account\n * @throws ApiError\n */\nexport const bulkSetsJobCount = (data: BulkSetsJobCountData): CancelablePromise<BulkSetsJobCountResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/bulkSets/count',\n path: {\n subAccountId: data.subAccountId\n }\n });\n};\n\n/**\n * Gets the count of cancel negotiation jobs for a Sub-Account\n * Gets the count of cancel negotiation jobs for a Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId\n * @returns CancelJobCount Negotiations cancel job count\n * @throws ApiError\n */\nexport const cancelNegotiationsJobCount = (data: CancelNegotiationsJobCountData): CancelablePromise<CancelNegotiationsJobCountResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/cancelNegotiationJobCount',\n path: {\n subAccountId: data.subAccountId\n }\n });\n};\n\n/**\n * Performs an \"initial send to counterparty\" for each negotiation specified\n * Performs an \"initial send to counterparty\" for each negotiation specified.\n * @param data The data for the request.\n * @param data.bulkSetId\n * @returns void Send to counterparties queued for asynchronous execution.\n * @throws ApiError\n */\nexport const sendBulkSetToCounterpartiesInitial = (data: SendBulkSetToCounterpartiesInitialData): CancelablePromise<SendBulkSetToCounterpartiesInitialResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/bulkSets/{bulkSetId}/sendToCounterparty/initial',\n path: {\n bulkSetId: data.bulkSetId\n }\n });\n};\n\n/**\n * Upload one or more bulk set attachments for a bulk set\n * Upload one or more bulk set attachments for a bulk set.\n * @param data The data for the request.\n * @param data.bulkSetId\n * @param data.formData\n * @returns AttachmentsExists The bulk set attachment(s) were uploaded successfully. Returns all bulk set attachments\n * @throws ApiError\n */\nexport const setBulkSetAttachments = (data: SetBulkSetAttachmentsData): CancelablePromise<SetBulkSetAttachmentsResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/bulkSets/{bulkSetId}/attachment',\n path: {\n bulkSetId: data.bulkSetId\n },\n formData: data.formData,\n mediaType: 'multipart/form-data',\n errors: {\n 400: 'The file(s) are too large or would exceed the maximum total size for all files',\n 404: 'The bulk set was not found'\n }\n });\n};\n\n/**\n * Delete a bulk set attachment from a bulk set\n * Delete a bulk set attachment from a bulk set.\n * @param data The data for the request.\n * @param data.bulkSetId\n * @param data.fileName\n * @returns AttachmentsExists The bulk set attachment was deleted successfully. Returns all bulk set attachments\n * @throws ApiError\n */\nexport const deleteBulkSetAttachment = (data: DeleteBulkSetAttachmentData): CancelablePromise<DeleteBulkSetAttachmentResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/bulkSets/{bulkSetId}/attachment/{fileName}',\n path: {\n bulkSetId: data.bulkSetId,\n fileName: data.fileName\n }\n });\n};\n\n/**\n * Download a bulk set attachment that has been uploaded for a bulk set\n * Download a bulk set attachment that has been uploaded for a bulk set.\n * @param data The data for the request.\n * @param data.bulkSetId\n * @param data.fileName\n * @returns binary The uploaded bulk set attachment\n * @throws ApiError\n */\nexport const getBulkSetAttachment = (data: GetBulkSetAttachmentData): CancelablePromise<GetBulkSetAttachmentResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/bulkSets/{bulkSetId}/attachment/{fileName}',\n path: {\n bulkSetId: data.bulkSetId,\n fileName: data.fileName\n }\n });\n};\n\n/**\n * Validates sets of proposed receiver email addresses to be used in bulk creation\n * Validates sets of proposed receiver email addresses to be used in bulk creation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.requestBody\n * @returns DraftReceiverEmailValidation A JSON list describing the valid and invalid email addresses\n * @throws ApiError\n */\nexport const validateDraftReceiverEmails = (data: ValidateDraftReceiverEmailsData): CancelablePromise<ValidateDraftReceiverEmailsResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/bulkSets/validateEmails',\n path: {\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json'\n });\n};\n\n/**\n * Get all drafting notes for a document\n * Get all drafting notes for a document.\n * @param data The data for the request.\n * @param data.documentId\n * @param data.subAccountId\n * @returns DocumentDraftingNote Get all drafting notes for a document\n * @returns void No drafting notes for a document\n * @throws ApiError\n */\nexport const getDraftingNotes = (data: GetDraftingNotesData): CancelablePromise<GetDraftingNotesResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/documents/{documentId}/subAccounts/{subAccountId}/draftingNotes',\n path: {\n documentId: data.documentId,\n subAccountId: data.subAccountId\n }\n });\n};\n\n/**\n * Update internal drafting notes in a document. These are not visible to counterparties when negotiating\n * Update internal drafting notes in a document. These are not visible to counterparties when negotiating.\n * @param data The data for the request.\n * @param data.documentId\n * @param data.subAccountId\n * @returns UpdateDocumentDraftingNote Update drafting notes\n * @throws ApiError\n */\nexport const updateDraftingNotes = (data: UpdateDraftingNotesData): CancelablePromise<UpdateDraftingNotesResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/documents/{documentId}/subAccounts/{subAccountId}/draftingNotes',\n path: {\n documentId: data.documentId,\n subAccountId: data.subAccountId\n },\n errors: {\n 400: 'Update drafting notes failed'\n }\n });\n};\n\n/**\n * Delete drafting notes of a document\n * Delete drafting notes of a document.\n * @param data The data for the request.\n * @param data.documentId\n * @param data.subAccountId\n * @returns unknown Drafting notes deleted successfully\n * @throws ApiError\n */\nexport const deleteDraftingNotesDocument = (data: DeleteDraftingNotesDocumentData): CancelablePromise<DeleteDraftingNotesDocumentResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/documents/{documentId}/subAccounts/{subAccountId}/draftingNotes',\n path: {\n documentId: data.documentId,\n subAccountId: data.subAccountId\n }\n });\n};\n\n/**\n * Update a document drafting note for the specified note type. Adds a new one if no note exists before\n * Update a document drafting note for the specified note type. Adds a new one if no note exists before.\n * @param data The data for the request.\n * @param data.documentId\n * @param data.subAccountId\n * @param data.noteType\n * @returns DraftingNoteText Drafting note added or updated successfully.\n * @throws ApiError\n */\nexport const updateDocumentDraftingNote = (data: UpdateDocumentDraftingNoteData): CancelablePromise<UpdateDocumentDraftingNoteResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/documents/{documentId}/subAccounts/{subAccountId}/draftingNote/noteType/{noteType}',\n path: {\n documentId: data.documentId,\n subAccountId: data.subAccountId,\n noteType: data.noteType\n },\n errors: {\n 400: 'Drafting note update failed'\n }\n });\n};\n\n/**\n * Delete a document level drafting note for the specified note type. Fails if note doesn't exists\n * Delete a document level drafting note for the specified note type. Fails if note doesn't exists.\n * @param data The data for the request.\n * @param data.documentId\n * @param data.subAccountId\n * @param data.noteType\n * @returns unknown Deletion successful\n * @throws ApiError\n */\nexport const deleteDocumentDraftingNote = (data: DeleteDocumentDraftingNoteData): CancelablePromise<DeleteDocumentDraftingNoteResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/documents/{documentId}/subAccounts/{subAccountId}/draftingNote/noteType/{noteType}',\n path: {\n documentId: data.documentId,\n subAccountId: data.subAccountId,\n noteType: data.noteType\n },\n errors: {\n 400: 'Deletion of drafting note failed',\n 404: 'No document draftinmg note exist for the specified type'\n }\n });\n};\n\n/**\n * Update a document election drafting note for the specified note type. Adds a new one if no note exists before\n * Update a document election drafting note for the specified note type. Adds a new one if no note exists before.\n * @param data The data for the request.\n * @param data.documentId\n * @param data.subAccountId\n * @param data.electionId\n * @param data.noteType\n * @returns DraftingNoteText Drafting note added or updated successfully.\n * @throws ApiError\n */\nexport const updateDocumentElectionDraftingNote = (data: UpdateDocumentElectionDraftingNoteData): CancelablePromise<UpdateDocumentElectionDraftingNoteResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/documents/{documentId}/subAccounts/{subAccountId}/draftingNote/elections/{electionId}/noteType/{noteType}',\n path: {\n documentId: data.documentId,\n subAccountId: data.subAccountId,\n electionId: data.electionId,\n noteType: data.noteType\n },\n errors: {\n 400: 'Drafting note update failed'\n }\n });\n};\n\n/**\n * Delete a document election level drafting note for the specified note type. Fails if note doesn't exists\n * Delete a document election level drafting note for the specified note type. Fails if note doesn't exists.\n * @param data The data for the request.\n * @param data.documentId\n * @param data.subAccountId\n * @param data.electionId\n * @param data.noteType\n * @returns unknown Deletion successful\n * @throws ApiError\n */\nexport const deleteDocumentElectionDraftingNote = (data: DeleteDocumentElectionDraftingNoteData): CancelablePromise<DeleteDocumentElectionDraftingNoteResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/documents/{documentId}/subAccounts/{subAccountId}/draftingNote/elections/{electionId}/noteType/{noteType}',\n path: {\n documentId: data.documentId,\n subAccountId: data.subAccountId,\n electionId: data.electionId,\n noteType: data.noteType\n },\n errors: {\n 400: 'Deletion of drafting note failed',\n 404: 'No document draftinmg note exist for the specified type'\n }\n });\n};\n\n/**\n * Get any drafting notes for a negotiations document - includes external notes set by the initiator\n * Get any drafting notes for a negotiations document - includes external notes set by the initiator.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns DocumentDraftingNote Get any drafting notes for a negotiations document - includes external notes set by the initiator\n * @returns void No internal drafting notes for this document and no external notes by the initiator\n * @throws ApiError\n */\nexport const getNegotiationDraftingNotes = (data: GetNegotiationDraftingNotesData): CancelablePromise<GetNegotiationDraftingNotesResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/negotiationDraftingNotes',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n }\n });\n};\n\n/**\n * Get drafting notes flag for documents\n * Get drafting notes flag for documents.\n * @param data The data for the request.\n * @param data.subAccountId\n * @returns DocumentIdWithDraftingNotesFlag Get drafting notes flag for documents\n * @throws ApiError\n */\nexport const getDraftingNotesDocument = (data: GetDraftingNotesDocumentData): CancelablePromise<GetDraftingNotesDocumentResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/draftingNotes',\n path: {\n subAccountId: data.subAccountId\n }\n });\n};\n\n/**\n * Connect CIQ account with DocuSign\n * Connect CIQ account with DocuSign.\n * @throws ApiError\n */\nexport const obtainConsent = (): CancelablePromise<void> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/docusign/connect',\n errors: {\n 308: 'Redirects user to the DocuSign consent form'\n }\n });\n};\n\n/**\n * Obtain signing status corresponding to a negotiation\n * Obtain signing status corresponding to a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns ESignNegotiationStatus Signing status corresponding to a negotiation\n * @throws ApiError\n */\nexport const getNegotiationESignStatus = (data: GetNegotiationESignStatusData): CancelablePromise<GetNegotiationESignStatusResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/docusign/status/subAccounts/{subAccountId}/negotiations/{negotiationId}',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n }\n });\n};\n\n/**\n * Endpoint used for callback from DocuSign\n * Connect CIQ account with DocuSign.\n * @throws ApiError\n */\nexport const consentCodeCallback = (): CancelablePromise<void> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/docusign/redirectCodeCallback',\n errors: {\n 308: 'Redirects the user back to the negotiation signing page'\n }\n });\n};\n\n/**\n * Sign document via DocuSign\n * Sign document via DocuSign.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns unknown json payload processed\n * @throws ApiError\n */\nexport const generateAndMaybeSendEnvelope = (data: GenerateAndMaybeSendEnvelopeData): CancelablePromise<GenerateAndMaybeSendEnvelopeResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/signWithDocuSign',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 400: 'DocuSign API errors'\n }\n });\n};\n\n/**\n * Cancel an ESign active signing session\n * Cancel an ESign active signing session by voiding the envelope.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns unknown json payload processed\n * @throws ApiError\n */\nexport const voidESignEnvelopeForNegotiation = (data: VoidESignEnvelopeForNegotiationData): CancelablePromise<VoidESignEnvelopeForNegotiationResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/esign/{subAccountId}/negotiations/{negotiationId}/cancelSession',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 400: 'DocuSign API errors'\n }\n });\n};\n\n/**\n * Search for users with negotiation permissions\n * Returns users who can access a sided negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.potentialApproversOnly\n * @returns UserAccount List of users matching the search\n * @throws ApiError\n */\nexport const usersWithNegotiationAccess = (data: UsersWithNegotiationAccessData): CancelablePromise<UsersWithNegotiationAccessResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/users',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n query: {\n potentialApproversOnly: data.potentialApproversOnly\n }\n });\n};\n\n/**\n * Render a preview of the document template using the current answers\n * Render a preview of the document template using the current answers.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns RenderedTemplate An HTML representation of the document\n * @throws ApiError\n */\nexport const negotiationRenderTemplate = (data: NegotiationRenderTemplateData): CancelablePromise<NegotiationRenderTemplateResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/preview',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 404: 'Negotiation not found'\n }\n });\n};\n\n/**\n * Render a preview of the document template using the current answers\n * Render a preview of the document template using the current answers.\n * @param data The data for the request.\n * @param data.presetId\n * @returns RenderedTemplate An HTML representation of the document\n * @throws ApiError\n */\nexport const presetRenderTemplate = (data: PresetRenderTemplateData): CancelablePromise<PresetRenderTemplateResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/presets/{presetId}/preview',\n path: {\n presetId: data.presetId\n },\n errors: {\n 404: 'Preset not found'\n }\n });\n};\n\n/**\n * Download excel report containing comments for all negotiations that belongs to the Sub-Account\n * Download excel report containing comments for all negotiations that belongs to the Sub-Account.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.yearMonths\n * @returns binary XLSX formatted data\n * @throws ApiError\n */\nexport const getAllNegotiationCommentsForSubAccount = (data: GetAllNegotiationCommentsForSubAccountData): CancelablePromise<GetAllNegotiationCommentsForSubAccountResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/comments/xlsx',\n path: {\n subAccountId: data.subAccountId\n },\n query: {\n yearMonths: data.yearMonths\n }\n });\n};\n\n/**\n * List all negotiation watchers for a negotiation in a subaccount\n * List all negotiation watchers for a negotiation in a subaccount.\n * @param data The data for the request.\n * @param data.negotiationId\n * @param data.subAccountId\n * @returns NegotiationWatchers Watchers email addresses for a negotiation in a subaccount\n * @throws ApiError\n */\nexport const getWatchers = (data: GetWatchersData): CancelablePromise<GetWatchersResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/watchers',\n path: {\n negotiationId: data.negotiationId,\n subAccountId: data.subAccountId\n },\n errors: {\n 403: 'You do not have access to the specified sub account'\n }\n });\n};\n\n/**\n * Append specified negotiation watchers to existing watchers for a negotiation in a subaccount\n * Append specified negotiation watchers to existing watchers for a negotiation in a subaccount.\n * @param data The data for the request.\n * @param data.negotiationId\n * @param data.subAccountId\n * @param data.requestBody Watchers email addreeses to be added\n * @returns NegotiationWatchers Watchers email addresses for a negotiation in a subaccount\n * @throws ApiError\n */\nexport const addWatchers = (data: AddWatchersData): CancelablePromise<AddWatchersResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/watchers',\n path: {\n negotiationId: data.negotiationId,\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'You do not have access to the specified sub account'\n }\n });\n};\n\n/**\n * Remove specified negotiation watchers from existing watchers for a negotiation in a subaccount\n * Remove specified negotiation watchers from existing watchers for a negotiation in a subaccount.\n * @param data The data for the request.\n * @param data.negotiationId\n * @param data.subAccountId\n * @param data.requestBody Watchers email addreeses to be removed\n * @returns NegotiationWatchers Watchers email addresses for a negotiation in a subaccount\n * @throws ApiError\n */\nexport const removeWatchers = (data: RemoveWatchersData): CancelablePromise<RemoveWatchersResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/removeWatchers',\n path: {\n negotiationId: data.negotiationId,\n subAccountId: data.subAccountId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 403: 'You do not have access to the specified sub account'\n }\n });\n};\n\n/**\n * Get the names of the matching items for the specified free text under a particular `filter`\n * Get the names of the matching items for the specified free text under a particular `filter`.\n * @param data The data for the request.\n * @param data.subAccountId Sub-Account for the user to limit the in search results in\n * @param data.filter determine the context od the search\n * @param data.query text to filter on\n * @param data.searchContext context around filter to restrict results\n * @param data.pageIndex Index of a page to return. It is 0 based.\n * @param data.pageSize Number of items to return in one page. One Item is either one non grouped negotiation or all negotiations in a group.\n * @returns FilterResults List of id and matching name\n * @throws ApiError\n */\nexport const negotiationsFilter = (data: NegotiationsFilterData): CancelablePromise<NegotiationsFilterResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/filters/{filter}',\n path: {\n subAccountId: data.subAccountId,\n filter: data.filter\n },\n query: {\n query: data.query,\n searchContext: data.searchContext,\n pageIndex: data.pageIndex,\n pageSize: data.pageSize\n },\n errors: {\n 403: 'You do not have access to the specified sub account'\n }\n });\n};\n\n/**\n * View the schema for a negotiation's document\n * View the schema for a negotiation's document.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns Schema A document's schema\n * @throws ApiError\n */\nexport const negotiationGetDocumentSchema = (data: NegotiationGetDocumentSchemaData): CancelablePromise<NegotiationGetDocumentSchemaResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/schema',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 404: 'Schema not found'\n }\n });\n};\n\n/**\n * View the schema for a preset's document\n * View the schema for a preset's document.\n * @param data The data for the request.\n * @param data.presetId\n * @returns Schema A document's schema\n * @throws ApiError\n */\nexport const presetGetDocumentSchema = (data: PresetGetDocumentSchemaData): CancelablePromise<PresetGetDocumentSchemaResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/presets/{presetId}/schema',\n path: {\n presetId: data.presetId\n },\n errors: {\n 404: 'Schema not found'\n }\n });\n};\n\n/**\n * Get the names of the matching items for the specified free text under a particular `filter`\n * Get the names of the matching items for the specified free text under a particular `filter`.\n * @param data The data for the request.\n * @param data.subAccountId Sub-Account for the user to limit the in search results in\n * @param data.filter determine the context of the search\n * @param data.query text to filter on\n * @param data.pageIndex Index of a page to return. It is 0 based.\n * @param data.pageSize Number of items to return in one page. One Item is either one non grouped negotiation or all negotiations in a group.\n * @returns FilterResults List of id and matching name\n * @throws ApiError\n */\nexport const documentsFilter = (data: DocumentsFilterData): CancelablePromise<DocumentsFilterResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/documents/filters/{filter}',\n path: {\n subAccountId: data.subAccountId,\n filter: data.filter\n },\n query: {\n query: data.query,\n pageIndex: data.pageIndex,\n pageSize: data.pageSize\n },\n errors: {\n 403: 'You do not have access to the specified sub account'\n }\n });\n};\n\n/**\n * Grants access of client account to CreateiQ Support for 24 hours\n * Grants access of client account to CreateiQ Support for 24 hours.\n * @returns AccessWindow Time till access is granted\n * @throws ApiError\n */\nexport const grantWindow = (): CancelablePromise<GrantWindowResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/supportAccess/window',\n errors: {\n 400: 'Maximum limit on access duration exceeded'\n }\n });\n};\n\n/**\n * Provides expiry time of CreateiQ Support access for a client account\n * Provides expiry time of CreateiQ Support access for a client account.\n * @returns AccessWindow Get access expiry time\n * @throws ApiError\n */\nexport const getWindow = (): CancelablePromise<GetWindowResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/supportAccess/window',\n errors: {\n 404: 'No access provided for the requester or the access is expired'\n }\n });\n};\n\n/**\n * Extends access of client account to CreateiQ Support by 24 hours. The maximum duration to which support access can be granted is one week\n * Extends access of client account to CreateiQ Support by 24 hours. The maximum duration to which support access can be granted is one week.\n * @returns AccessWindow New time till access is granted\n * @throws ApiError\n */\nexport const extendWindow = (): CancelablePromise<ExtendWindowResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/supportAccess/window',\n errors: {\n 404: 'No access provided for the requester'\n }\n });\n};\n\n/**\n * Revoke access of client account from CreateiQ Support\n * Revoke access of client account from CreateiQ Support.\n * @returns unknown Access has been successfully revoked\n * @throws ApiError\n */\nexport const revokeWindow = (): CancelablePromise<RevokeWindowResponse> => {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/api/v1/supportAccess/window'\n });\n};\n\n/**\n * Get the current extraction status and results\n * Get the current extraction status and results.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns ExtractionResult The current extraction status\n * @throws ApiError\n */\nexport const getExtractionResults = (data: GetExtractionResultsData): CancelablePromise<GetExtractionResultsResponse> => {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/getResults',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 404: 'Extraction has not started for this negotiation'\n }\n });\n};\n\n/**\n * Extract answers from the offline negotiated document linked to the negotiation\n * Extract answers from the offline negotiated document linked to the negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationWithTimelineAndPreview A JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const scheduleExtraction = (data: ScheduleExtractionData): CancelablePromise<ScheduleExtractionResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/start',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 403: 'Extraction is not enabled for the document type or the negotiation is not offline'\n }\n });\n};\n\n/**\n * Overwrite the extraction selected elections.\n * Overwrite the extraction selected elections.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns ExtractionResult A JSON document describing the current state of the extraction process for the given negotiation\n * @throws ApiError\n */\nexport const updateSelectedElections = (data: UpdateSelectedElectionsData): CancelablePromise<UpdateSelectedElectionsResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/elections',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation or election not found'\n }\n });\n};\n\n/**\n * Overwrite the extraction feedback for the negotiation.\n * Overwrite the extraction feedback for the negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns ExtractionResult A JSON document describing the current state of the extraction process for the given negotiation\n * @throws ApiError\n */\nexport const updateExtractionFeedback = (data: UpdateExtractionFeedbackData): CancelablePromise<UpdateExtractionFeedbackResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/feedback',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation or election not found'\n }\n });\n};\n\n/**\n * Overwrite the extraction election values (answers) of a negotiation\n * Overwrite the extraction election values (answers) of a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns ExtractionResult A JSON document describing the current state of the extraction process for the given negotiation\n * @throws ApiError\n */\nexport const updateUserAnswers = (data: UpdateUserAnswersData): CancelablePromise<UpdateUserAnswersResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/answers',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation or election not found'\n }\n });\n};\n\n/**\n * Overwrite the extraction election values (answers) of a negotiation\n * Overwrite the extraction election values (answers) of a negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @param data.requestBody\n * @returns ExtractionResult A JSON document describing the current state of the extraction process for the given negotiation\n * @throws ApiError\n */\nexport const resetUserAnswers = (data: ResetUserAnswersData): CancelablePromise<ResetUserAnswersResponse> => {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/resetAnswers',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 404: 'Negotiation or election not found'\n }\n });\n};\n\n/**\n * Cancel extraction that is in progress or in the review stage\n * Cancel extraction that is in progress or in the review stage.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationWithTimelineAndPreview A JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const cancelExtraction = (data: CancelExtractionData): CancelablePromise<CancelExtractionResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/cancel',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 403: 'Extraction has not started for the negotiation or has already been accepted'\n }\n });\n};\n\n/**\n * Apply extracted answers to the negotiation\n * Apply extracted answers to the negotiation.\n * @param data The data for the request.\n * @param data.subAccountId\n * @param data.negotiationId\n * @returns NegotiationWithTimelineAndPreview A JSON document describing the negotiation from the point of view of the requester\n * @throws ApiError\n */\nexport const applyExtractedAnswers = (data: ApplyExtractedAnswersData): CancelablePromise<ApplyExtractedAnswersResponse> => {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/api/v1/subAccounts/{subAccountId}/negotiations/{negotiationId}/extraction/apply',\n path: {\n subAccountId: data.subAccountId,\n negotiationId: data.negotiationId\n },\n errors: {\n 403: 'Extraction has not started for the negotiation or has already been accepted'\n }\n });\n};"],"mappings":";AAGO,IAAM,WAAN,cAAuB,MAAM;AAAA,EACnB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEhB,YAAYA,UAA4B,UAAqB,SAAiB;AAC7E,UAAM,OAAO;AAEb,SAAK,OAAO;AACZ,SAAK,MAAM,SAAS;AACpB,SAAK,SAAS,SAAS;AACvB,SAAK,aAAa,SAAS;AAC3B,SAAK,OAAO,SAAS;AACrB,SAAK,UAAUA;AAAA,EAChB;AACD;;;ACpBO,IAAM,cAAN,cAA0B,MAAM;AAAA,EACtC,YAAY,SAAiB;AAC5B,UAAM,OAAO;AACb,SAAK,OAAO;AAAA,EACb;AAAA,EAEA,IAAW,cAAuB;AACjC,WAAO;AAAA,EACR;AACD;AAUO,IAAM,oBAAN,MAAiD;AAAA,EAC/C;AAAA,EACA;AAAA,EACA;AAAA,EACC;AAAA,EACA;AAAA,EACD;AAAA,EACA;AAAA,EAER,YACC,UAKC;AACD,SAAK,cAAc;AACnB,SAAK,cAAc;AACnB,SAAK,eAAe;AACpB,SAAK,iBAAiB,CAAC;AACvB,SAAK,UAAU,IAAI,QAAW,CAACC,UAAS,WAAW;AAClD,WAAK,WAAWA;AAChB,WAAK,UAAU;AAEf,YAAM,YAAY,CAAC,UAAoC;AACtD,YAAI,KAAK,eAAe,KAAK,eAAe,KAAK,cAAc;AAC9D;AAAA,QACD;AACA,aAAK,cAAc;AACnB,YAAI,KAAK,SAAU,MAAK,SAAS,KAAK;AAAA,MACvC;AAEA,YAAM,WAAW,CAAC,WAA2B;AAC5C,YAAI,KAAK,eAAe,KAAK,eAAe,KAAK,cAAc;AAC9D;AAAA,QACD;AACA,aAAK,cAAc;AACnB,YAAI,KAAK,QAAS,MAAK,QAAQ,MAAM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