diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index eb0111800..2f094e86e 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -27,6 +27,7 @@ docs/LanguagesApi.md docs/LanguagesResponse.md docs/LiltCreateContent.md docs/LiltCreateContentPreferences.md +docs/LiltCreateContentRequest.md docs/LiltCreateContentTemplateParams.md docs/MemoriesApi.md docs/Memory.md @@ -103,6 +104,7 @@ src/main/java/com/lilt/client/model/LanguagePair.java src/main/java/com/lilt/client/model/LanguagesResponse.java src/main/java/com/lilt/client/model/LiltCreateContent.java src/main/java/com/lilt/client/model/LiltCreateContentPreferences.java +src/main/java/com/lilt/client/model/LiltCreateContentRequest.java src/main/java/com/lilt/client/model/LiltCreateContentTemplateParams.java src/main/java/com/lilt/client/model/Memory.java src/main/java/com/lilt/client/model/MemoryCreateParameters.java diff --git a/README.md b/README.md index 4eb75db0d..0d4df6a68 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Lilt REST API - API version: v3.0 - - Build date: 2024-10-14T17:01:14.551Z[GMT] + - Build date: 2024-11-11T21:15:51.538Z[GMT] Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: @@ -62,7 +62,7 @@ Add this dependency to your project's POM: org.openapitools openapi-java-client - 3.0.0 + v3.0 compile ``` @@ -72,7 +72,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "org.openapitools:openapi-java-client:3.0.0" +compile "org.openapitools:openapi-java-client:v3.0" ``` ### Others @@ -85,7 +85,7 @@ mvn clean package Then manually install the following JARs: -* `target/openapi-java-client-3.0.0.jar` +* `target/openapi-java-client-v3.0.jar` * `target/lib/*.jar` ## Getting Started @@ -120,8 +120,10 @@ public class Example { CreateApi apiInstance = new CreateApi(defaultClient); Integer contentId = 56; // Integer | The content ID. + Boolean xIsAutomated = true; // Boolean | A boolean value that indicates whether the request is automated or not. + Boolean xIsExpectedError = true; // Boolean | A boolean value that indicates whether the request is expected to return an error or not. try { - InlineResponse200 result = apiInstance.deleteLiltCreateContent(contentId); + InlineResponse200 result = apiInstance.deleteLiltCreateContent(contentId, xIsAutomated, xIsExpectedError); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CreateApi#deleteLiltCreateContent"); @@ -162,7 +164,7 @@ Class | Method | HTTP request | Description *JobsApi* | [**createJob**](docs/JobsApi.md#createJob) | **POST** /v2/jobs | Create a Job *JobsApi* | [**deleteJob**](docs/JobsApi.md#deleteJob) | **DELETE** /v2/jobs/{jobId} | Delete a Job *JobsApi* | [**deliverJob**](docs/JobsApi.md#deliverJob) | **POST** /v2/jobs/{jobId}/deliver | Deliver a Job -*JobsApi* | [**downloadJob**](docs/JobsApi.md#downloadJob) | **GET** /v2/jobs/{jobId}/downlod | Download a Job +*JobsApi* | [**downloadJob**](docs/JobsApi.md#downloadJob) | **GET** /v2/jobs/{jobId}/download | Download a Job *JobsApi* | [**exportJob**](docs/JobsApi.md#exportJob) | **GET** /v2/jobs/{jobId}/export | Export a Job *JobsApi* | [**getJob**](docs/JobsApi.md#getJob) | **GET** /v2/jobs/{jobId} | Retrieve a Job *JobsApi* | [**getJobLeverageStats**](docs/JobsApi.md#getJobLeverageStats) | **POST** /v2/jobs/{jobId}/stats | Retrieve Job Leverage Stats @@ -213,6 +215,7 @@ Class | Method | HTTP request | Description - [LanguagesResponse](docs/LanguagesResponse.md) - [LiltCreateContent](docs/LiltCreateContent.md) - [LiltCreateContentPreferences](docs/LiltCreateContentPreferences.md) + - [LiltCreateContentRequest](docs/LiltCreateContentRequest.md) - [LiltCreateContentTemplateParams](docs/LiltCreateContentTemplateParams.md) - [Memory](docs/Memory.md) - [MemoryCreateParameters](docs/MemoryCreateParameters.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index e783a5baf..d3516c55c 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -16,6 +16,9 @@ info: ## Quotas\n\nOur services have a general quota of 4000 requests per minute. Should\ \ you hit the maximum requests per minute, you will need to wait 60 seconds before\ \ you can send another request.\n" + license: + name: Lilt Platform Terms and Conditions + url: https://lilt.com/lilt-platform-terms-and-conditions title: Lilt REST API version: v3.0 servers: @@ -38,6 +41,15 @@ paths: $ref: '#/components/schemas/LanguagesResponse' description: An object listing supported languages and their corresponding locales. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -54,6 +66,24 @@ paths: Delete a Memory. operationId: deleteMemory parameters: + - description: "A boolean value that indicates whether the request is automated\ + \ or not.\n\n \n \n" + explode: false + in: header + name: x-is-automated + required: false + schema: + type: boolean + style: simple + - description: | + A boolean value that indicates whether the request is expected to return an error or not. + explode: false + in: header + name: x-is-expected-error + required: false + schema: + type: boolean + style: simple - description: A unique Memory identifier. explode: true in: query @@ -69,6 +99,15 @@ paths: schema: $ref: '#/components/schemas/MemoryDeleteResponse' description: A status object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -85,6 +124,24 @@ paths: operationId: getMemory parameters: + - description: "A boolean value that indicates whether the request is automated\ + \ or not.\n\n \n \n" + explode: false + in: header + name: x-is-automated + required: false + schema: + type: boolean + style: simple + - description: | + A boolean value that indicates whether the request is expected to return an error or not. + explode: false + in: header + name: x-is-expected-error + required: false + schema: + type: boolean + style: simple - description: An optional Memory identifier. explode: true in: query @@ -103,6 +160,21 @@ paths: title: MemoryResponse type: array description: A list of Memory objects. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Memory not found. default: content: application/json: @@ -126,6 +198,25 @@ paths: to our KB for a more detailed description. operationId: createMemory + parameters: + - description: "A boolean value that indicates whether the request is automated\ + \ or not.\n\n \n \n" + explode: false + in: header + name: x-is-automated + required: false + schema: + type: boolean + style: simple + - description: | + A boolean value that indicates whether the request is expected to return an error or not. + explode: false + in: header + name: x-is-expected-error + required: false + schema: + type: boolean + style: simple requestBody: $ref: '#/components/requestBodies/MemoryCreateParameters' content: @@ -173,6 +264,15 @@ paths: schema: $ref: '#/components/schemas/Memory' description: A Memory object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -220,6 +320,15 @@ paths: schema: $ref: '#/components/schemas/Memory' description: A Memory object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -234,11 +343,28 @@ paths: x-accepts: application/json /v2/memories/query: get: - description: |+ + description: | Perform a translation memory query. - operationId: queryMemory parameters: + - description: "A boolean value that indicates whether the request is automated\ + \ or not.\n\n \n \n" + explode: false + in: header + name: x-is-automated + required: false + schema: + type: boolean + style: simple + - description: | + A boolean value that indicates whether the request is expected to return an error or not. + explode: false + in: header + name: x-is-expected-error + required: false + schema: + type: boolean + style: simple - description: A unique Memory identifier. explode: true in: query @@ -274,6 +400,15 @@ paths: title: MemoryQueryResponse type: array description: A list of TranslationMemoryEntry objects. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -307,6 +442,24 @@ paths: operationId: importMemoryFile parameters: + - description: "A boolean value that indicates whether the request is automated\ + \ or not.\n\n \n \n" + explode: false + in: header + name: x-is-automated + required: false + schema: + type: boolean + style: simple + - description: | + A boolean value that indicates whether the request is expected to return an error or not. + explode: false + in: header + name: x-is-expected-error + required: false + schema: + type: boolean + style: simple - description: A unique Memory identifier. explode: false in: header @@ -369,6 +522,15 @@ paths: schema: $ref: '#/components/schemas/MemoryImportResponse' description: A status object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -411,6 +573,15 @@ paths: schema: $ref: '#/components/schemas/TermbaseExportResponse' description: A status object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -451,6 +622,15 @@ paths: title: TermbaseDownloadResponse type: string description: A file. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -494,6 +674,15 @@ paths: schema: $ref: '#/components/schemas/DeleteSegmentFromMemoryResponse' description: A success resposne. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -585,6 +774,15 @@ paths: schema: $ref: '#/components/schemas/TranslationList' description: A TranslationList object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -609,6 +807,24 @@ paths: operationId: monitorFileTranslation parameters: + - description: "A boolean value that indicates whether the request is automated\ + \ or not.\n\n \n \n" + explode: false + in: header + name: x-is-automated + required: false + schema: + type: boolean + style: simple + - description: | + A boolean value that indicates whether the request is expected to return an error or not. + explode: false + in: header + name: x-is-expected-error + required: false + schema: + type: boolean + style: simple - description: List of translation ids, comma separated explode: true in: query @@ -655,6 +871,15 @@ paths: title: monitorFileTranslationResponse type: array description: Translation Info + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -676,6 +901,24 @@ paths: operationId: batchTranslateFile parameters: + - description: "A boolean value that indicates whether the request is automated\ + \ or not.\n\n \n \n" + explode: false + in: header + name: x-is-automated + required: false + schema: + type: boolean + style: simple + - description: | + A boolean value that indicates whether the request is expected to return an error or not. + explode: false + in: header + name: x-is-expected-error + required: false + schema: + type: boolean + style: simple - description: List of File ids to be translated, comma separated. explode: true in: query @@ -721,6 +964,15 @@ paths: title: batchTranslateFileResponse type: array description: Translation Info + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -743,6 +995,24 @@ paths: operationId: downloadFile parameters: + - description: "A boolean value that indicates whether the request is automated\ + \ or not.\n\n \n \n" + explode: false + in: header + name: x-is-automated + required: false + schema: + type: boolean + style: simple + - description: | + A boolean value that indicates whether the request is expected to return an error or not. + explode: false + in: header + name: x-is-expected-error + required: false + schema: + type: boolean + style: simple - description: A translation id. explode: true in: query @@ -760,10 +1030,25 @@ paths: title: DocumentDownloadResponse type: string description: A file. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Download translated file tags: - Translate - x-accepts: application/octet-stream + x-accepts: application/json /v2/create/terms-and-conditions: post: description: |+ @@ -779,6 +1064,25 @@ paths: ``` operationId: signLiltCreateTerms + parameters: + - description: "A boolean value that indicates whether the request is automated\ + \ or not.\n\n \n \n" + explode: false + in: header + name: x-is-automated + required: false + schema: + type: boolean + style: simple + - description: | + A boolean value that indicates whether the request is expected to return an error or not. + explode: false + in: header + name: x-is-expected-error + required: false + schema: + type: boolean + style: simple requestBody: $ref: '#/components/requestBodies/CreateConverterConfigParameters' content: @@ -805,6 +1109,21 @@ paths: $ref: '#/components/schemas/signLiltCreateTermsResponse' description: | An object indicating whether the agreement has been signed or not. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Sign the Lilt Create terms and conditions tags: - Create @@ -822,6 +1141,25 @@ paths: ``` operationId: getLiltCreateContent + parameters: + - description: "A boolean value that indicates whether the request is automated\ + \ or not.\n\n \n \n" + explode: false + in: header + name: x-is-automated + required: false + schema: + type: boolean + style: simple + - description: | + A boolean value that indicates whether the request is expected to return an error or not. + explode: false + in: header + name: x-is-expected-error + required: false + schema: + type: boolean + style: simple responses: "200": content: @@ -829,6 +1167,21 @@ paths: schema: $ref: '#/components/schemas/getLiltCreateContentResponse' description: An object with a documents next task Workflow metadata. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Get Lilt Create content tags: - Create @@ -855,11 +1208,30 @@ paths: ``` operationId: generateLiltCreateContent + parameters: + - description: "A boolean value that indicates whether the request is automated\ + \ or not.\n\n \n \n" + explode: false + in: header + name: x-is-automated + required: false + schema: + type: boolean + style: simple + - description: | + A boolean value that indicates whether the request is expected to return an error or not. + explode: false + in: header + name: x-is-expected-error + required: false + schema: + type: boolean + style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/LiltCreateContent' + $ref: '#/components/schemas/LiltCreateContentRequest' description: | Input parameters that determine what content will be generated. required: true @@ -872,6 +1244,21 @@ paths: - message: an object with the newly generated text (e.g. {"text": "hello"}) - message: upon completion of events the string "[DONE]" will be emitted - fullcontent: an object containing the full response + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Generate new Lilt Create content tags: - Create @@ -893,6 +1280,21 @@ paths: "200": content: {} description: An object describing the stored preferences. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Get Lilt Create preferences tags: - Create @@ -921,6 +1323,21 @@ paths: "200": content: {} description: The updated Lilt Create preferences. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Update Lilt Create preferences tags: - Create @@ -939,6 +1356,24 @@ paths: operationId: deleteLiltCreateContent parameters: + - description: "A boolean value that indicates whether the request is automated\ + \ or not.\n\n \n \n" + explode: false + in: header + name: x-is-automated + required: false + schema: + type: boolean + style: simple + - description: | + A boolean value that indicates whether the request is expected to return an error or not. + explode: false + in: header + name: x-is-expected-error + required: false + schema: + type: boolean + style: simple - description: The content ID. explode: false in: path @@ -954,6 +1389,21 @@ paths: schema: $ref: '#/components/schemas/inline_response_200' description: The Delete Lilt Create Content Response. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Delete Lilt Create content tags: - Create @@ -984,6 +1434,21 @@ paths: schema: $ref: '#/components/schemas/LiltCreateContent' description: The Lilt Create content. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Get Lilt Create content by ID. tags: - Create @@ -1022,6 +1487,21 @@ paths: schema: $ref: '#/components/schemas/LiltCreateContent' description: The updated Lilt Create content. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Update Lilt Create content tags: - Create @@ -1057,6 +1537,21 @@ paths: - message: an object with the newly generated text (e.g. {"text": "hello"}) - message: upon completion of events the string "[DONE]" will be emitted - fullcontent: an object containing the full response + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Regenerate Lilt Create content tags: - Create @@ -1077,6 +1572,21 @@ paths: $ref: '#/components/schemas/WorkflowTemplate' type: array description: An array with a team's available WorkflowTemplates. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Retrieve workflow templates tags: - Workflows @@ -1139,6 +1649,15 @@ paths: title: JobsResponse type: array description: A list of Job objects. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1289,6 +1808,15 @@ paths: schema: $ref: '#/components/schemas/Job' description: A Job object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1328,6 +1856,15 @@ paths: schema: $ref: '#/components/schemas/JobDeleteResponse' description: A status object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1364,6 +1901,15 @@ paths: schema: $ref: '#/components/schemas/Job' description: A job object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1448,6 +1994,15 @@ paths: schema: $ref: '#/components/schemas/Job' description: A job object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1487,6 +2042,15 @@ paths: schema: $ref: '#/components/schemas/JobLeverageStats' description: A job leverage stats object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1526,6 +2090,15 @@ paths: schema: $ref: '#/components/schemas/Job' description: A job object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1563,6 +2136,15 @@ paths: schema: $ref: '#/components/schemas/Job' description: A job object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1602,6 +2184,15 @@ paths: schema: $ref: '#/components/schemas/Job' description: A job object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1641,6 +2232,15 @@ paths: schema: $ref: '#/components/schemas/Job' description: A job object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1689,6 +2289,15 @@ paths: "200": content: {} description: 200 status. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1699,7 +2308,7 @@ paths: tags: - Jobs x-accepts: application/json - /v2/jobs/{jobId}/downlod: + /v2/jobs/{jobId}/download: get: description: |- Make sure you have exported a job with the same id before using this api. @@ -1725,6 +2334,15 @@ paths: "200": content: {} description: zipped file + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1756,6 +2374,15 @@ paths: schema: $ref: '#/components/schemas/ProjectDeleteResponse' description: A status object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1851,6 +2478,15 @@ paths: title: ProjectResponse type: array description: A list of Project objects. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1933,6 +2569,15 @@ paths: schema: $ref: '#/components/schemas/Project' description: A Project object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1984,6 +2629,15 @@ paths: title: DocumentDownloadResponse type: string description: A file. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized "502": content: {} description: File in pretranslation. @@ -1996,7 +2650,7 @@ paths: summary: Download a Document tags: - Documents - x-accepts: application/octet-stream + x-accepts: application/octet-stream,text/plain post: description: |+ Create a Document from a file in any of the formats [documented in our knowledge base](https://support.lilt.com/hc/en-us/articles/360020816253-File-Formats). @@ -2103,6 +2757,15 @@ paths: schema: $ref: '#/components/schemas/DocumentWithSegments' description: A Document object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -2121,6 +2784,24 @@ paths: \ https://api.lilt.com/v2/files?key=API_KEY&id=123 \n```\n\n" operationId: deleteFile parameters: + - description: "A boolean value that indicates whether the request is automated\ + \ or not.\n\n \n \n" + explode: false + in: header + name: x-is-automated + required: false + schema: + type: boolean + style: simple + - description: | + A boolean value that indicates whether the request is expected to return an error or not. + explode: false + in: header + name: x-is-expected-error + required: false + schema: + type: boolean + style: simple - description: A unique File identifier. explode: true in: query @@ -2136,6 +2817,15 @@ paths: schema: $ref: '#/components/schemas/FileDeleteResponse' description: A status object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -2188,6 +2878,15 @@ paths: title: FilesList type: array description: A list of files. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized "403": content: {} description: User does not have permission for provided file. @@ -2224,6 +2923,24 @@ paths: operationId: uploadFile parameters: + - description: "A boolean value that indicates whether the request is automated\ + \ or not.\n\n \n \n" + explode: false + in: header + name: x-is-automated + required: false + schema: + type: boolean + style: simple + - description: | + A boolean value that indicates whether the request is expected to return an error or not. + explode: false + in: header + name: x-is-expected-error + required: false + schema: + type: boolean + style: simple - description: A file name. explode: true in: query @@ -2293,6 +3010,15 @@ paths: schema: $ref: '#/components/schemas/SourceFile' description: A SourceFile object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -2333,10 +3059,25 @@ paths: title: DocumentDownloadResponse type: string description: A file. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Download file tags: - Files - x-accepts: application/octet-stream + x-accepts: application/json /v2/files/labels: delete: description: | @@ -2368,6 +3109,21 @@ paths: "204": content: {} description: A success response. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Remove Label from File tags: - Files @@ -2414,6 +3170,21 @@ paths: "204": content: {} description: A success response. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Add Label to File tags: - Files @@ -2421,6 +3192,27 @@ paths: x-contentType: application/json x-accepts: application/json components: + parameters: + AutomatedTestingHeader: + description: "A boolean value that indicates whether the request is automated\ + \ or not.\n\n \n \n" + explode: false + in: header + name: x-is-automated + required: false + schema: + type: boolean + style: simple + ExpectedErrorHeader: + description: | + A boolean value that indicates whether the request is expected to return an error or not. + explode: false + in: header + name: x-is-expected-error + required: false + schema: + type: boolean + style: simple requestBodies: JobCreateParameters: content: @@ -2470,6 +3262,16 @@ components: schema: $ref: '#/components/schemas/AddFileLabelRequest' required: true + responses: + UnauthorizedError: + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized schemas: Error: description: | @@ -2479,7 +3281,7 @@ components: properties: message: description: A human-readable message describing the error. - type: object + type: string type: object Memory: description: | @@ -2795,16 +3597,61 @@ components: preferences: styleguide: styleguide tone: tone + name: name + templateParams: + summary: summary + contentLength: 6 + language: language + memoryId: 1 + sections: + - sections + - sections + language: language + id: 0 + properties: + name: + description: A name for the request content. + type: string + id: + description: A unique identifier for the generated content. + type: integer + language: + description: The language of the content. + type: string + template: + description: The template of the content. + type: string + templateParams: + $ref: '#/components/schemas/LiltCreateContent_templateParams' + preferences: + $ref: '#/components/schemas/LiltCreateContent_preferences' + required: + - language + - template + - templateParams + type: object + LiltCreateContentRequest: + description: | + Content Parameters for LiltCreate. + example: + template: template + preferences: + styleguide: styleguide + tone: tone + name: name templateParams: summary: summary - contentLength: 0 + contentLength: 6 language: language - memoryId: 6 + memoryId: 1 sections: - sections - sections language: language properties: + name: + description: A name for the request content. + type: string language: description: The language of the content. type: string @@ -4066,28 +4913,32 @@ components: preferences: styleguide: styleguide tone: tone + name: name templateParams: summary: summary - contentLength: 0 + contentLength: 6 language: language - memoryId: 6 + memoryId: 1 sections: - sections - sections language: language + id: 0 - template: template preferences: styleguide: styleguide tone: tone + name: name templateParams: summary: summary - contentLength: 0 + contentLength: 6 language: language - memoryId: 6 + memoryId: 1 sections: - sections - sections language: language + id: 0 properties: contents: description: List of LiltCreateContent objects @@ -4340,9 +5191,9 @@ components: description: The template parameters of the content. example: summary: summary - contentLength: 0 + contentLength: 6 language: language - memoryId: 6 + memoryId: 1 sections: - sections - sections diff --git a/docs/CreateApi.md b/docs/CreateApi.md index c07e7973d..f132c23be 100644 --- a/docs/CreateApi.md +++ b/docs/CreateApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **deleteLiltCreateContent** -> InlineResponse200 deleteLiltCreateContent(contentId) +> InlineResponse200 deleteLiltCreateContent(contentId, xIsAutomated, xIsExpectedError) Delete Lilt Create content @@ -51,8 +51,10 @@ public class Example { CreateApi apiInstance = new CreateApi(defaultClient); Integer contentId = 56; // Integer | The content ID. + Boolean xIsAutomated = true; // Boolean | A boolean value that indicates whether the request is automated or not. + Boolean xIsExpectedError = true; // Boolean | A boolean value that indicates whether the request is expected to return an error or not. try { - InlineResponse200 result = apiInstance.deleteLiltCreateContent(contentId); + InlineResponse200 result = apiInstance.deleteLiltCreateContent(contentId, xIsAutomated, xIsExpectedError); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CreateApi#deleteLiltCreateContent"); @@ -70,6 +72,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contentId** | **Integer**| The content ID. | + **xIsAutomated** | **Boolean**| A boolean value that indicates whether the request is automated or not. | [optional] + **xIsExpectedError** | **Boolean**| A boolean value that indicates whether the request is expected to return an error or not. | [optional] ### Return type @@ -82,16 +86,18 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The Delete Lilt Create Content Response. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **generateLiltCreateContent** -> generateLiltCreateContent(templateParams) +> generateLiltCreateContent(templateParams, xIsAutomated, xIsExpectedError) Generate new Lilt Create content @@ -124,9 +130,11 @@ public class Example { BasicAuth.setPassword("YOUR PASSWORD"); CreateApi apiInstance = new CreateApi(defaultClient); - LiltCreateContent templateParams = new LiltCreateContent(); // LiltCreateContent | Input parameters that determine what content will be generated. + LiltCreateContentRequest templateParams = new LiltCreateContentRequest(); // LiltCreateContentRequest | Input parameters that determine what content will be generated. + Boolean xIsAutomated = true; // Boolean | A boolean value that indicates whether the request is automated or not. + Boolean xIsExpectedError = true; // Boolean | A boolean value that indicates whether the request is expected to return an error or not. try { - apiInstance.generateLiltCreateContent(templateParams); + apiInstance.generateLiltCreateContent(templateParams, xIsAutomated, xIsExpectedError); } catch (ApiException e) { System.err.println("Exception when calling CreateApi#generateLiltCreateContent"); System.err.println("Status code: " + e.getCode()); @@ -142,7 +150,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **templateParams** | [**LiltCreateContent**](LiltCreateContent.md)| Input parameters that determine what content will be generated. | + **templateParams** | [**LiltCreateContentRequest**](LiltCreateContentRequest.md)| Input parameters that determine what content will be generated. | + **xIsAutomated** | **Boolean**| A boolean value that indicates whether the request is automated or not. | [optional] + **xIsExpectedError** | **Boolean**| A boolean value that indicates whether the request is expected to return an error or not. | [optional] ### Return type @@ -155,12 +165,14 @@ null (empty response body) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: Not defined + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **getLiltCreateById** @@ -229,16 +241,18 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The Lilt Create content. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **getLiltCreateContent** -> GetLiltCreateContentResponse getLiltCreateContent() +> GetLiltCreateContentResponse getLiltCreateContent(xIsAutomated, xIsExpectedError) Get Lilt Create content @@ -271,8 +285,10 @@ public class Example { BasicAuth.setPassword("YOUR PASSWORD"); CreateApi apiInstance = new CreateApi(defaultClient); + Boolean xIsAutomated = true; // Boolean | A boolean value that indicates whether the request is automated or not. + Boolean xIsExpectedError = true; // Boolean | A boolean value that indicates whether the request is expected to return an error or not. try { - GetLiltCreateContentResponse result = apiInstance.getLiltCreateContent(); + GetLiltCreateContentResponse result = apiInstance.getLiltCreateContent(xIsAutomated, xIsExpectedError); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CreateApi#getLiltCreateContent"); @@ -286,7 +302,11 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xIsAutomated** | **Boolean**| A boolean value that indicates whether the request is automated or not. | [optional] + **xIsExpectedError** | **Boolean**| A boolean value that indicates whether the request is expected to return an error or not. | [optional] ### Return type @@ -299,12 +319,14 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | An object with a documents next task Workflow metadata. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **getLiltCreatePreferences** @@ -368,12 +390,14 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | An object describing the stored preferences. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **regenerateLiltCreateContent** @@ -441,16 +465,18 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **signLiltCreateTerms** -> SignLiltCreateTermsResponse signLiltCreateTerms(signedAgreement) +> SignLiltCreateTermsResponse signLiltCreateTerms(signedAgreement, xIsAutomated, xIsExpectedError) Sign the Lilt Create terms and conditions @@ -484,8 +510,10 @@ public class Example { CreateApi apiInstance = new CreateApi(defaultClient); CreateConverterConfigParameters signedAgreement = new CreateConverterConfigParameters(); // CreateConverterConfigParameters | + Boolean xIsAutomated = true; // Boolean | A boolean value that indicates whether the request is automated or not. + Boolean xIsExpectedError = true; // Boolean | A boolean value that indicates whether the request is expected to return an error or not. try { - SignLiltCreateTermsResponse result = apiInstance.signLiltCreateTerms(signedAgreement); + SignLiltCreateTermsResponse result = apiInstance.signLiltCreateTerms(signedAgreement, xIsAutomated, xIsExpectedError); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CreateApi#signLiltCreateTerms"); @@ -503,6 +531,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **signedAgreement** | [**CreateConverterConfigParameters**](CreateConverterConfigParameters.md)| | + **xIsAutomated** | **Boolean**| A boolean value that indicates whether the request is automated or not. | [optional] + **xIsExpectedError** | **Boolean**| A boolean value that indicates whether the request is expected to return an error or not. | [optional] ### Return type @@ -515,12 +545,14 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | An object indicating whether the agreement has been signed or not. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **updateLiltCreateContent** @@ -591,12 +623,14 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The updated Lilt Create content. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **updateLiltCreatePreferences** @@ -664,10 +698,12 @@ null (empty response body) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: Not defined + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The updated Lilt Create preferences. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | diff --git a/docs/DocumentsApi.md b/docs/DocumentsApi.md index c52d07f15..0edfd2435 100644 --- a/docs/DocumentsApi.md +++ b/docs/DocumentsApi.md @@ -77,12 +77,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/octet-stream + - **Accept**: application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A file. | - | +**401** | Unauthorized | - | **502** | File in pretranslation. | - | **0** | Unexpected error | - | @@ -167,11 +168,12 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/octet-stream - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A Document object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | diff --git a/docs/Error.md b/docs/Error.md index b02dfb43f..7e3f9ccb3 100644 --- a/docs/Error.md +++ b/docs/Error.md @@ -7,7 +7,7 @@ Response in the event of an unexpected error. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**message** | **Object** | A human-readable message describing the error. | [optional] +**message** | **String** | A human-readable message describing the error. | [optional] diff --git a/docs/FilesApi.md b/docs/FilesApi.md index e4706cf75..ac633f7fc 100644 --- a/docs/FilesApi.md +++ b/docs/FilesApi.md @@ -80,16 +80,18 @@ null (empty response body) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: Not defined + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **204** | A success response. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **deleteFile** -> FileDeleteResponse deleteFile(id) +> FileDeleteResponse deleteFile(id, xIsAutomated, xIsExpectedError) Delete a File @@ -123,8 +125,10 @@ public class Example { FilesApi apiInstance = new FilesApi(defaultClient); Integer id = 56; // Integer | A unique File identifier. + Boolean xIsAutomated = true; // Boolean | A boolean value that indicates whether the request is automated or not. + Boolean xIsExpectedError = true; // Boolean | A boolean value that indicates whether the request is expected to return an error or not. try { - FileDeleteResponse result = apiInstance.deleteFile(id); + FileDeleteResponse result = apiInstance.deleteFile(id, xIsAutomated, xIsExpectedError); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FilesApi#deleteFile"); @@ -142,6 +146,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **Integer**| A unique File identifier. | + **xIsAutomated** | **Boolean**| A boolean value that indicates whether the request is automated or not. | [optional] + **xIsExpectedError** | **Boolean**| A boolean value that indicates whether the request is expected to return an error or not. | [optional] ### Return type @@ -154,12 +160,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **204** | A status object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -229,12 +236,14 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/octet-stream + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A file. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **getFiles** @@ -305,12 +314,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A list of files. | - | +**401** | Unauthorized | - | **403** | User does not have permission for provided file. | - | **410** | File deleted. | - | **0** | Unexpected error. | - | @@ -383,16 +393,18 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **204** | A success response. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **uploadFile** -> SourceFile uploadFile(name, body, fileHash, langId, projectId, category, labels) +> SourceFile uploadFile(name, body, xIsAutomated, xIsExpectedError, fileHash, langId, projectId, category, labels) Upload a File @@ -427,13 +439,15 @@ public class Example { FilesApi apiInstance = new FilesApi(defaultClient); String name = "name_example"; // String | A file name. File body = new File("/path/to/file"); // File | The file contents to be uploaded. The entire POST body will be treated as the file. + Boolean xIsAutomated = true; // Boolean | A boolean value that indicates whether the request is automated or not. + Boolean xIsExpectedError = true; // Boolean | A boolean value that indicates whether the request is expected to return an error or not. String fileHash = "fileHash_example"; // String | A hash value to associate with the file. The MD5 hash of the body contents will be used by default if a value isn't provided. Boolean langId = true; // Boolean | Flag indicating whether to perform language detection on the uploaded file. Default is false. Integer projectId = 56; // Integer | The project to associate the uploaded file with. String category = "category_example"; // String | The category of the file. The options are `REFERENCE`, or `API`. The default is API. Files with the `REFERENCE` category will be displayed as reference material. String labels = "labels_example"; // String | Comma-separated list of labels to add to the uploaded document. try { - SourceFile result = apiInstance.uploadFile(name, body, fileHash, langId, projectId, category, labels); + SourceFile result = apiInstance.uploadFile(name, body, xIsAutomated, xIsExpectedError, fileHash, langId, projectId, category, labels); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FilesApi#uploadFile"); @@ -452,6 +466,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| A file name. | **body** | **File**| The file contents to be uploaded. The entire POST body will be treated as the file. | + **xIsAutomated** | **Boolean**| A boolean value that indicates whether the request is automated or not. | [optional] + **xIsExpectedError** | **Boolean**| A boolean value that indicates whether the request is expected to return an error or not. | [optional] **fileHash** | **String**| A hash value to associate with the file. The MD5 hash of the body contents will be used by default if a value isn't provided. | [optional] **langId** | **Boolean**| Flag indicating whether to perform language detection on the uploaded file. Default is false. | [optional] **projectId** | **Integer**| The project to associate the uploaded file with. | [optional] @@ -469,11 +485,12 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/octet-stream - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **201** | A SourceFile object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | diff --git a/docs/JobsApi.md b/docs/JobsApi.md index 3f0b075d7..d5bfe9175 100644 --- a/docs/JobsApi.md +++ b/docs/JobsApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description [**createJob**](JobsApi.md#createJob) | **POST** /v2/jobs | Create a Job [**deleteJob**](JobsApi.md#deleteJob) | **DELETE** /v2/jobs/{jobId} | Delete a Job [**deliverJob**](JobsApi.md#deliverJob) | **POST** /v2/jobs/{jobId}/deliver | Deliver a Job -[**downloadJob**](JobsApi.md#downloadJob) | **GET** /v2/jobs/{jobId}/downlod | Download a Job +[**downloadJob**](JobsApi.md#downloadJob) | **GET** /v2/jobs/{jobId}/download | Download a Job [**exportJob**](JobsApi.md#exportJob) | **GET** /v2/jobs/{jobId}/export | Export a Job [**getJob**](JobsApi.md#getJob) | **GET** /v2/jobs/{jobId} | Retrieve a Job [**getJobLeverageStats**](JobsApi.md#getJobLeverageStats) | **POST** /v2/jobs/{jobId}/stats | Retrieve Job Leverage Stats @@ -85,12 +85,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A job object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -160,12 +161,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A Job object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -235,12 +237,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A status object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -310,12 +313,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A job object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -384,12 +388,13 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | zipped file | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -460,12 +465,13 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | 200 status. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -535,12 +541,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A job object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -610,12 +617,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A job leverage stats object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -685,12 +693,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A job object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -766,12 +775,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A list of Job objects. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -841,12 +851,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A job object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -918,11 +929,12 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A job object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | diff --git a/docs/LanguagesApi.md b/docs/LanguagesApi.md index 102469c5d..6883a0881 100644 --- a/docs/LanguagesApi.md +++ b/docs/LanguagesApi.md @@ -70,11 +70,12 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | An object listing supported languages and their corresponding locales. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | diff --git a/docs/LiltCreateContent.md b/docs/LiltCreateContent.md index fb3804ce9..fc0d8471a 100644 --- a/docs/LiltCreateContent.md +++ b/docs/LiltCreateContent.md @@ -7,6 +7,8 @@ Content Parameters for LiltCreate. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**name** | **String** | A name for the request content. | [optional] +**id** | **Integer** | A unique identifier for the generated content. | [optional] **language** | **String** | The language of the content. | **template** | **String** | The template of the content. | **templateParams** | [**LiltCreateContentTemplateParams**](LiltCreateContentTemplateParams.md) | | diff --git a/docs/LiltCreateContentRequest.md b/docs/LiltCreateContentRequest.md new file mode 100644 index 000000000..d15fb1c1b --- /dev/null +++ b/docs/LiltCreateContentRequest.md @@ -0,0 +1,17 @@ + + +# LiltCreateContentRequest + +Content Parameters for LiltCreate. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | A name for the request content. | [optional] +**language** | **String** | The language of the content. | +**template** | **String** | The template of the content. | +**templateParams** | [**LiltCreateContentTemplateParams**](LiltCreateContentTemplateParams.md) | | +**preferences** | [**LiltCreateContentPreferences**](LiltCreateContentPreferences.md) | | [optional] + + + diff --git a/docs/MemoriesApi.md b/docs/MemoriesApi.md index 3b9d43313..56b909cd7 100644 --- a/docs/MemoriesApi.md +++ b/docs/MemoriesApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description # **createMemory** -> Memory createMemory(body) +> Memory createMemory(body, xIsAutomated, xIsExpectedError) Create a Memory @@ -51,8 +51,10 @@ public class Example { MemoriesApi apiInstance = new MemoriesApi(defaultClient); MemoryCreateParameters body = new MemoryCreateParameters(); // MemoryCreateParameters | + Boolean xIsAutomated = true; // Boolean | A boolean value that indicates whether the request is automated or not. + Boolean xIsExpectedError = true; // Boolean | A boolean value that indicates whether the request is expected to return an error or not. try { - Memory result = apiInstance.createMemory(body); + Memory result = apiInstance.createMemory(body, xIsAutomated, xIsExpectedError); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MemoriesApi#createMemory"); @@ -70,6 +72,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**MemoryCreateParameters**](MemoryCreateParameters.md)| | + **xIsAutomated** | **Boolean**| A boolean value that indicates whether the request is automated or not. | [optional] + **xIsExpectedError** | **Boolean**| A boolean value that indicates whether the request is expected to return an error or not. | [optional] ### Return type @@ -82,17 +86,18 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A Memory object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | # **deleteMemory** -> MemoryDeleteResponse deleteMemory(id) +> MemoryDeleteResponse deleteMemory(id, xIsAutomated, xIsExpectedError) Delete a Memory @@ -126,8 +131,10 @@ public class Example { MemoriesApi apiInstance = new MemoriesApi(defaultClient); Integer id = 56; // Integer | A unique Memory identifier. + Boolean xIsAutomated = true; // Boolean | A boolean value that indicates whether the request is automated or not. + Boolean xIsExpectedError = true; // Boolean | A boolean value that indicates whether the request is expected to return an error or not. try { - MemoryDeleteResponse result = apiInstance.deleteMemory(id); + MemoryDeleteResponse result = apiInstance.deleteMemory(id, xIsAutomated, xIsExpectedError); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MemoriesApi#deleteMemory"); @@ -145,6 +152,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **Integer**| A unique Memory identifier. | + **xIsAutomated** | **Boolean**| A boolean value that indicates whether the request is automated or not. | [optional] + **xIsExpectedError** | **Boolean**| A boolean value that indicates whether the request is expected to return an error or not. | [optional] ### Return type @@ -157,12 +166,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A status object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -234,12 +244,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A success resposne. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -309,12 +320,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A file. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -384,17 +396,18 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A status object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | # **getMemory** -> List<Memory> getMemory(id) +> List<Memory> getMemory(xIsAutomated, xIsExpectedError, id) Retrieve a Memory @@ -427,9 +440,11 @@ public class Example { BasicAuth.setPassword("YOUR PASSWORD"); MemoriesApi apiInstance = new MemoriesApi(defaultClient); + Boolean xIsAutomated = true; // Boolean | A boolean value that indicates whether the request is automated or not. + Boolean xIsExpectedError = true; // Boolean | A boolean value that indicates whether the request is expected to return an error or not. Integer id = 56; // Integer | An optional Memory identifier. try { - List result = apiInstance.getMemory(id); + List result = apiInstance.getMemory(xIsAutomated, xIsExpectedError, id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MemoriesApi#getMemory"); @@ -446,6 +461,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **xIsAutomated** | **Boolean**| A boolean value that indicates whether the request is automated or not. | [optional] + **xIsExpectedError** | **Boolean**| A boolean value that indicates whether the request is expected to return an error or not. | [optional] **id** | **Integer**| An optional Memory identifier. | [optional] ### Return type @@ -459,17 +476,19 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A list of Memory objects. | - | +**401** | Unauthorized | - | +**404** | Memory not found. | - | **0** | Unexpected error | - | # **importMemoryFile** -> MemoryImportResponse importMemoryFile(memoryId, name, body, sdlxliffFilters, hasHeaderRow, skipDuplicates) +> MemoryImportResponse importMemoryFile(memoryId, name, body, xIsAutomated, xIsExpectedError, sdlxliffFilters, hasHeaderRow, skipDuplicates) File import for a Memory @@ -505,11 +524,13 @@ public class Example { Integer memoryId = 56; // Integer | A unique Memory identifier. String name = "name_example"; // String | Name of the TM or termbase file. File body = new File("/path/to/file"); // File | The file contents to be uploaded. The entire POST body will be treated as the file. + Boolean xIsAutomated = true; // Boolean | A boolean value that indicates whether the request is automated or not. + Boolean xIsExpectedError = true; // Boolean | A boolean value that indicates whether the request is expected to return an error or not. List sdlxliffFilters = Arrays.asList(); // List | Contains Filter information Unique to SDLXLIFF Boolean hasHeaderRow = true; // Boolean | A flag indicating whether an imported Termbase CSV has a header row or not (the default value is `false`). Boolean skipDuplicates = true; // Boolean | A flag indicating whether or not to skip the import of segments which already exist in the memory. (the default value is `false`). try { - MemoryImportResponse result = apiInstance.importMemoryFile(memoryId, name, body, sdlxliffFilters, hasHeaderRow, skipDuplicates); + MemoryImportResponse result = apiInstance.importMemoryFile(memoryId, name, body, xIsAutomated, xIsExpectedError, sdlxliffFilters, hasHeaderRow, skipDuplicates); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MemoriesApi#importMemoryFile"); @@ -529,6 +550,8 @@ Name | Type | Description | Notes **memoryId** | **Integer**| A unique Memory identifier. | **name** | **String**| Name of the TM or termbase file. | **body** | **File**| The file contents to be uploaded. The entire POST body will be treated as the file. | + **xIsAutomated** | **Boolean**| A boolean value that indicates whether the request is automated or not. | [optional] + **xIsExpectedError** | **Boolean**| A boolean value that indicates whether the request is expected to return an error or not. | [optional] **sdlxliffFilters** | [**List<SDLXLIFFFilter>**](SDLXLIFFFilter.md)| Contains Filter information Unique to SDLXLIFF | [optional] **hasHeaderRow** | **Boolean**| A flag indicating whether an imported Termbase CSV has a header row or not (the default value is `false`). | [optional] **skipDuplicates** | **Boolean**| A flag indicating whether or not to skip the import of segments which already exist in the memory. (the default value is `false`). | [optional] @@ -544,21 +567,22 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/octet-stream - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A status object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | # **queryMemory** -> List<TranslationMemoryEntry> queryMemory(id, query, n) +> List<TranslationMemoryEntry> queryMemory(id, query, xIsAutomated, xIsExpectedError, n) Query a Memory -Perform a translation memory query. +Perform a translation memory query. ### Example ```java @@ -589,9 +613,11 @@ public class Example { MemoriesApi apiInstance = new MemoriesApi(defaultClient); Integer id = 56; // Integer | A unique Memory identifier. String query = "query_example"; // String | A source query. + Boolean xIsAutomated = true; // Boolean | A boolean value that indicates whether the request is automated or not. + Boolean xIsExpectedError = true; // Boolean | A boolean value that indicates whether the request is expected to return an error or not. Integer n = 10; // Integer | Maximum number of results to return. try { - List result = apiInstance.queryMemory(id, query, n); + List result = apiInstance.queryMemory(id, query, xIsAutomated, xIsExpectedError, n); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MemoriesApi#queryMemory"); @@ -610,6 +636,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **Integer**| A unique Memory identifier. | **query** | **String**| A source query. | + **xIsAutomated** | **Boolean**| A boolean value that indicates whether the request is automated or not. | [optional] + **xIsExpectedError** | **Boolean**| A boolean value that indicates whether the request is expected to return an error or not. | [optional] **n** | **Integer**| Maximum number of results to return. | [optional] [default to 10] ### Return type @@ -623,12 +651,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A list of TranslationMemoryEntry objects. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -698,11 +727,12 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A Memory object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | diff --git a/docs/ProjectsApi.md b/docs/ProjectsApi.md index 759990c1b..e81853335 100644 --- a/docs/ProjectsApi.md +++ b/docs/ProjectsApi.md @@ -76,12 +76,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A Project object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -151,12 +152,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A status object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -240,11 +242,12 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A list of Project objects. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | diff --git a/docs/TranslateApi.md b/docs/TranslateApi.md index 8be12f991..55de88caf 100644 --- a/docs/TranslateApi.md +++ b/docs/TranslateApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description # **batchTranslateFile** -> List<TranslationInfo> batchTranslateFile(fileId, memoryId, configId, withTM) +> List<TranslationInfo> batchTranslateFile(fileId, memoryId, xIsAutomated, xIsExpectedError, configId, withTM) Translate a File @@ -47,10 +47,12 @@ public class Example { TranslateApi apiInstance = new TranslateApi(defaultClient); String fileId = "fileId_example"; // String | List of File ids to be translated, comma separated. String memoryId = "memoryId_example"; // String | Id of Memory to use in translation. + Boolean xIsAutomated = true; // Boolean | A boolean value that indicates whether the request is automated or not. + Boolean xIsExpectedError = true; // Boolean | A boolean value that indicates whether the request is expected to return an error or not. BigDecimal configId = new BigDecimal(78); // BigDecimal | An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file. Boolean withTM = true; // Boolean | An optional boolean parameter to toggle the use of Translation Memory in the translation of the file. try { - List result = apiInstance.batchTranslateFile(fileId, memoryId, configId, withTM); + List result = apiInstance.batchTranslateFile(fileId, memoryId, xIsAutomated, xIsExpectedError, configId, withTM); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling TranslateApi#batchTranslateFile"); @@ -69,6 +71,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **fileId** | **String**| List of File ids to be translated, comma separated. | **memoryId** | **String**| Id of Memory to use in translation. | + **xIsAutomated** | **Boolean**| A boolean value that indicates whether the request is automated or not. | [optional] + **xIsExpectedError** | **Boolean**| A boolean value that indicates whether the request is expected to return an error or not. | [optional] **configId** | **BigDecimal**| An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file. | [optional] **withTM** | **Boolean**| An optional boolean parameter to toggle the use of Translation Memory in the translation of the file. | [optional] @@ -83,17 +87,18 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Translation Info | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | # **downloadFile** -> byte[] downloadFile(id) +> byte[] downloadFile(id, xIsAutomated, xIsExpectedError) Download translated file @@ -127,8 +132,10 @@ public class Example { TranslateApi apiInstance = new TranslateApi(defaultClient); String id = "id_example"; // String | A translation id. + Boolean xIsAutomated = true; // Boolean | A boolean value that indicates whether the request is automated or not. + Boolean xIsExpectedError = true; // Boolean | A boolean value that indicates whether the request is expected to return an error or not. try { - byte[] result = apiInstance.downloadFile(id); + byte[] result = apiInstance.downloadFile(id, xIsAutomated, xIsExpectedError); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling TranslateApi#downloadFile"); @@ -146,6 +153,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| A translation id. | + **xIsAutomated** | **Boolean**| A boolean value that indicates whether the request is automated or not. | [optional] + **xIsExpectedError** | **Boolean**| A boolean value that indicates whether the request is expected to return an error or not. | [optional] ### Return type @@ -158,16 +167,18 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/octet-stream + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A file. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **monitorFileTranslation** -> List<TranslationInfo> monitorFileTranslation(translationIds, status, fromTime, toTime) +> List<TranslationInfo> monitorFileTranslation(xIsAutomated, xIsExpectedError, translationIds, status, fromTime, toTime) Monitor file translation @@ -200,12 +211,14 @@ public class Example { BasicAuth.setPassword("YOUR PASSWORD"); TranslateApi apiInstance = new TranslateApi(defaultClient); + Boolean xIsAutomated = true; // Boolean | A boolean value that indicates whether the request is automated or not. + Boolean xIsExpectedError = true; // Boolean | A boolean value that indicates whether the request is expected to return an error or not. String translationIds = "translationIds_example"; // String | List of translation ids, comma separated String status = "status_example"; // String | One of the translation statuses - `InProgress`, `Completed`, `Failed`, `ReadyForDownload` BigDecimal fromTime = new BigDecimal(78); // BigDecimal | Results after this time (inclusive) will be returned, specified as seconds since the Unix epoch. BigDecimal toTime = new BigDecimal(78); // BigDecimal | Results before this time (exclusive) will be returned, specified as seconds since the Unix epoch. try { - List result = apiInstance.monitorFileTranslation(translationIds, status, fromTime, toTime); + List result = apiInstance.monitorFileTranslation(xIsAutomated, xIsExpectedError, translationIds, status, fromTime, toTime); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling TranslateApi#monitorFileTranslation"); @@ -222,6 +235,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **xIsAutomated** | **Boolean**| A boolean value that indicates whether the request is automated or not. | [optional] + **xIsExpectedError** | **Boolean**| A boolean value that indicates whether the request is expected to return an error or not. | [optional] **translationIds** | **String**| List of translation ids, comma separated | [optional] **status** | **String**| One of the translation statuses - `InProgress`, `Completed`, `Failed`, `ReadyForDownload` | [optional] **fromTime** | **BigDecimal**| Results after this time (inclusive) will be returned, specified as seconds since the Unix epoch. | [optional] @@ -238,12 +253,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Translation Info | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -313,11 +329,12 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A TranslationList object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | diff --git a/docs/WorkflowsApi.md b/docs/WorkflowsApi.md index 2da831e86..02b873127 100644 --- a/docs/WorkflowsApi.md +++ b/docs/WorkflowsApi.md @@ -70,10 +70,12 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | An array with a team's available WorkflowTemplates. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | diff --git a/pom.xml b/pom.xml index 5b2734299..3354fb079 100644 --- a/pom.xml +++ b/pom.xml @@ -1,70 +1,39 @@ 4.0.0 - - com.lilt.client - lilt-java - 0.6.5 + org.openapitools + openapi-java-client jar + openapi-java-client + v3.0 + https://github.com/openapitools/openapi-generator + OpenAPI Java + + scm:git:git@github.com:openapitools/openapi-generator.git + scm:git:git@github.com:openapitools/openapi-generator.git + https://github.com/openapitools/openapi-generator + + - Lilt Client Library License - license.md + Unlicense + https://lilt.com/lilt-platform-terms-and-conditions repo - ${project.groupId}:${project.artifactId} - The Lilt REST API enables programmatic access to the full range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large scale translation memory * The Lexicon, a large scale termbase * Programmatic control of the Lilt CAT environment. Translation memory synchronizationRequests and responses are in JSON format. The REST API only responds to HTTPS (SSL) requests. AuthenticationRequests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using HTTP Basic Auth (https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the username and password. For development, you may also pass the REST API key via the key query parameter. This is less secure than HTTP Basic Auth and is not recommended for production use. Quotas: Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. - https://github.com/lilt/lilt-java - 2015 - - Lilt - http://www.lilt.com - - Nicholas Chiu - nicholas.chiu@lilt.com - ${project.organization.name} - ${project.organization.organizationUrl} + OpenAPI-Generator Contributors + team@openapitools.org + OpenAPITools.org + http://openapitools.org - - scm:git:git@github.com:openapitools/openapi-generator.git - scm:git:git@github.com:openapitools/openapi-generator.git - https://github.com/openapitools/openapi-generator - - - - github - Lilt packages on GitHub - https://maven.pkg.github.com/lilt/lilt-java - - - - org.codehaus.mojo - license-maven-plugin - 2.4.0 - - lilt_client_library_license - file://${project.basedir}/src/license - - - - first - - update-file-header - - process-sources - - - - org.apache.maven.plugins maven-compiler-plugin 3.8.1 @@ -213,38 +182,6 @@ - - org.apache.maven.plugins - maven-gpg-plugin - 3.2.4 - - false - - - - sign-artifacts - verify - - sign - - - bc - - - - - - org.sonatype.central - central-publishing-maven-plugin - 0.6.0 - true - - central - true - true - published - - @@ -329,7 +266,7 @@ - 11 + 1.7 ${java.version} ${java.version} 1.8.5 diff --git a/src/main/java/com/lilt/client/ApiClient.java b/src/main/java/com/lilt/client/ApiClient.java index 7f6e82bc8..104db4002 100644 --- a/src/main/java/com/lilt/client/ApiClient.java +++ b/src/main/java/com/lilt/client/ApiClient.java @@ -125,7 +125,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/3.0.0/java"); + setUserAgent("OpenAPI-Generator/v3.0/java"); authentications = new HashMap(); } diff --git a/src/main/java/com/lilt/client/ApiException.java b/src/main/java/com/lilt/client/ApiException.java index c38112d53..c3120d5ee 100644 --- a/src/main/java/com/lilt/client/ApiException.java +++ b/src/main/java/com/lilt/client/ApiException.java @@ -16,7 +16,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/com/lilt/client/Configuration.java b/src/main/java/com/lilt/client/Configuration.java index c60c9d408..a5fe1effd 100644 --- a/src/main/java/com/lilt/client/Configuration.java +++ b/src/main/java/com/lilt/client/Configuration.java @@ -13,7 +13,7 @@ package com.lilt.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/com/lilt/client/Pair.java b/src/main/java/com/lilt/client/Pair.java index 3412280c5..43b0c8b4e 100644 --- a/src/main/java/com/lilt/client/Pair.java +++ b/src/main/java/com/lilt/client/Pair.java @@ -13,7 +13,7 @@ package com.lilt.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/com/lilt/client/StringUtil.java b/src/main/java/com/lilt/client/StringUtil.java index 2e9c2174a..6eed2c332 100644 --- a/src/main/java/com/lilt/client/StringUtil.java +++ b/src/main/java/com/lilt/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/com/lilt/client/api/CreateApi.java b/src/main/java/com/lilt/client/api/CreateApi.java index b4e16e1bd..da2e22ee9 100644 --- a/src/main/java/com/lilt/client/api/CreateApi.java +++ b/src/main/java/com/lilt/client/api/CreateApi.java @@ -28,9 +28,11 @@ import com.lilt.client.model.CreateConverterConfigParameters; +import com.lilt.client.model.Error; import com.lilt.client.model.GetLiltCreateContentResponse; import com.lilt.client.model.InlineResponse200; import com.lilt.client.model.LiltCreateContent; +import com.lilt.client.model.LiltCreateContentRequest; import com.lilt.client.model.SignLiltCreateTermsResponse; import java.lang.reflect.Type; @@ -61,6 +63,8 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for deleteLiltCreateContent * @param contentId The content ID. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -68,9 +72,11 @@ public void setApiClient(ApiClient apiClient) { + +
Status Code Description Response Headers
200 The Delete Lilt Create Content Response. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call deleteLiltCreateContentCall(Integer contentId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteLiltCreateContentCall(Integer contentId, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -83,8 +89,16 @@ public okhttp3.Call deleteLiltCreateContentCall(Integer contentId, final ApiCall Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (xIsAutomated != null) { + localVarHeaderParams.put("x-is-automated", localVarApiClient.parameterToString(xIsAutomated)); + } + + if (xIsExpectedError != null) { + localVarHeaderParams.put("x-is-expected-error", localVarApiClient.parameterToString(xIsExpectedError)); + } + final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -102,7 +116,7 @@ public okhttp3.Call deleteLiltCreateContentCall(Integer contentId, final ApiCall } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteLiltCreateContentValidateBeforeCall(Integer contentId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteLiltCreateContentValidateBeforeCall(Integer contentId, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { // verify the required parameter 'contentId' is set if (contentId == null) { @@ -110,7 +124,7 @@ private okhttp3.Call deleteLiltCreateContentValidateBeforeCall(Integer contentId } - okhttp3.Call localVarCall = deleteLiltCreateContentCall(contentId, _callback); + okhttp3.Call localVarCall = deleteLiltCreateContentCall(contentId, xIsAutomated, xIsExpectedError, _callback); return localVarCall; } @@ -119,16 +133,20 @@ private okhttp3.Call deleteLiltCreateContentValidateBeforeCall(Integer contentId * Delete Lilt Create content * Delete a piece of Lilt Create content. Example CURL: ```bash curl -X DELETE 'https://api.lilt.com/v2/create/1234?key=API_KEY' ``` * @param contentId The content ID. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @return InlineResponse200 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
200 The Delete Lilt Create Content Response. -
401 Unauthorized -
0 Unexpected error -
*/ - public InlineResponse200 deleteLiltCreateContent(Integer contentId) throws ApiException { - ApiResponse localVarResp = deleteLiltCreateContentWithHttpInfo(contentId); + public InlineResponse200 deleteLiltCreateContent(Integer contentId, Boolean xIsAutomated, Boolean xIsExpectedError) throws ApiException { + ApiResponse localVarResp = deleteLiltCreateContentWithHttpInfo(contentId, xIsAutomated, xIsExpectedError); return localVarResp.getData(); } @@ -136,16 +154,20 @@ public InlineResponse200 deleteLiltCreateContent(Integer contentId) throws ApiEx * Delete Lilt Create content * Delete a piece of Lilt Create content. Example CURL: ```bash curl -X DELETE 'https://api.lilt.com/v2/create/1234?key=API_KEY' ``` * @param contentId The content ID. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @return ApiResponse<InlineResponse200> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
200 The Delete Lilt Create Content Response. -
401 Unauthorized -
0 Unexpected error -
*/ - public ApiResponse deleteLiltCreateContentWithHttpInfo(Integer contentId) throws ApiException { - okhttp3.Call localVarCall = deleteLiltCreateContentValidateBeforeCall(contentId, null); + public ApiResponse deleteLiltCreateContentWithHttpInfo(Integer contentId, Boolean xIsAutomated, Boolean xIsExpectedError) throws ApiException { + okhttp3.Call localVarCall = deleteLiltCreateContentValidateBeforeCall(contentId, xIsAutomated, xIsExpectedError, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -154,6 +176,8 @@ public ApiResponse deleteLiltCreateContentWithHttpInfo(Intege * Delete Lilt Create content (asynchronously) * Delete a piece of Lilt Create content. Example CURL: ```bash curl -X DELETE 'https://api.lilt.com/v2/create/1234?key=API_KEY' ``` * @param contentId The content ID. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -161,11 +185,13 @@ public ApiResponse deleteLiltCreateContentWithHttpInfo(Intege + +
Status Code Description Response Headers
200 The Delete Lilt Create Content Response. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call deleteLiltCreateContentAsync(Integer contentId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteLiltCreateContentAsync(Integer contentId, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteLiltCreateContentValidateBeforeCall(contentId, _callback); + okhttp3.Call localVarCall = deleteLiltCreateContentValidateBeforeCall(contentId, xIsAutomated, xIsExpectedError, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -173,6 +199,8 @@ public okhttp3.Call deleteLiltCreateContentAsync(Integer contentId, final ApiCal /** * Build call for generateLiltCreateContent * @param templateParams Input parameters that determine what content will be generated. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -180,9 +208,11 @@ public okhttp3.Call deleteLiltCreateContentAsync(Integer contentId, final ApiCal + +
Status Code Description Response Headers
200 An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call generateLiltCreateContentCall(LiltCreateContent templateParams, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateLiltCreateContentCall(LiltCreateContentRequest templateParams, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { Object localVarPostBody = templateParams; // create path and map variables @@ -194,8 +224,16 @@ public okhttp3.Call generateLiltCreateContentCall(LiltCreateContent templatePara Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (xIsAutomated != null) { + localVarHeaderParams.put("x-is-automated", localVarApiClient.parameterToString(xIsAutomated)); + } + + if (xIsExpectedError != null) { + localVarHeaderParams.put("x-is-expected-error", localVarApiClient.parameterToString(xIsExpectedError)); + } + final String[] localVarAccepts = { - + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -213,7 +251,7 @@ public okhttp3.Call generateLiltCreateContentCall(LiltCreateContent templatePara } @SuppressWarnings("rawtypes") - private okhttp3.Call generateLiltCreateContentValidateBeforeCall(LiltCreateContent templateParams, final ApiCallback _callback) throws ApiException { + private okhttp3.Call generateLiltCreateContentValidateBeforeCall(LiltCreateContentRequest templateParams, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { // verify the required parameter 'templateParams' is set if (templateParams == null) { @@ -221,7 +259,7 @@ private okhttp3.Call generateLiltCreateContentValidateBeforeCall(LiltCreateConte } - okhttp3.Call localVarCall = generateLiltCreateContentCall(templateParams, _callback); + okhttp3.Call localVarCall = generateLiltCreateContentCall(templateParams, xIsAutomated, xIsExpectedError, _callback); return localVarCall; } @@ -230,31 +268,39 @@ private okhttp3.Call generateLiltCreateContentValidateBeforeCall(LiltCreateConte * Generate new Lilt Create content * Generate new Lilt Create content with the given parameters. Example CURL: ```bash curl -X POST 'https://api.lilt.com/v2/create?key=API_KEY' \\ --header 'Content-Type: application/json' \\ --data-raw '{ \"language\":\"en-US\", \"template\":\"blog-post\", \"templateParams\":{ \"contentLength\":\"100\", \"language\":\"en-US\", \"sections\":[], \"summary\":\"a blog post about hiking\" }, \"preferences\":{\"tone\":\"formal\",\"styleguide\":\"\"} }' ``` * @param templateParams Input parameters that determine what content will be generated. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
200 An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response -
401 Unauthorized -
0 Unexpected error -
*/ - public void generateLiltCreateContent(LiltCreateContent templateParams) throws ApiException { - generateLiltCreateContentWithHttpInfo(templateParams); + public void generateLiltCreateContent(LiltCreateContentRequest templateParams, Boolean xIsAutomated, Boolean xIsExpectedError) throws ApiException { + generateLiltCreateContentWithHttpInfo(templateParams, xIsAutomated, xIsExpectedError); } /** * Generate new Lilt Create content * Generate new Lilt Create content with the given parameters. Example CURL: ```bash curl -X POST 'https://api.lilt.com/v2/create?key=API_KEY' \\ --header 'Content-Type: application/json' \\ --data-raw '{ \"language\":\"en-US\", \"template\":\"blog-post\", \"templateParams\":{ \"contentLength\":\"100\", \"language\":\"en-US\", \"sections\":[], \"summary\":\"a blog post about hiking\" }, \"preferences\":{\"tone\":\"formal\",\"styleguide\":\"\"} }' ``` * @param templateParams Input parameters that determine what content will be generated. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
200 An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response -
401 Unauthorized -
0 Unexpected error -
*/ - public ApiResponse generateLiltCreateContentWithHttpInfo(LiltCreateContent templateParams) throws ApiException { - okhttp3.Call localVarCall = generateLiltCreateContentValidateBeforeCall(templateParams, null); + public ApiResponse generateLiltCreateContentWithHttpInfo(LiltCreateContentRequest templateParams, Boolean xIsAutomated, Boolean xIsExpectedError) throws ApiException { + okhttp3.Call localVarCall = generateLiltCreateContentValidateBeforeCall(templateParams, xIsAutomated, xIsExpectedError, null); return localVarApiClient.execute(localVarCall); } @@ -262,6 +308,8 @@ public ApiResponse generateLiltCreateContentWithHttpInfo(LiltCreateContent * Generate new Lilt Create content (asynchronously) * Generate new Lilt Create content with the given parameters. Example CURL: ```bash curl -X POST 'https://api.lilt.com/v2/create?key=API_KEY' \\ --header 'Content-Type: application/json' \\ --data-raw '{ \"language\":\"en-US\", \"template\":\"blog-post\", \"templateParams\":{ \"contentLength\":\"100\", \"language\":\"en-US\", \"sections\":[], \"summary\":\"a blog post about hiking\" }, \"preferences\":{\"tone\":\"formal\",\"styleguide\":\"\"} }' ``` * @param templateParams Input parameters that determine what content will be generated. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -269,11 +317,13 @@ public ApiResponse generateLiltCreateContentWithHttpInfo(LiltCreateContent + +
Status Code Description Response Headers
200 An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call generateLiltCreateContentAsync(LiltCreateContent templateParams, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateLiltCreateContentAsync(LiltCreateContentRequest templateParams, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = generateLiltCreateContentValidateBeforeCall(templateParams, _callback); + okhttp3.Call localVarCall = generateLiltCreateContentValidateBeforeCall(templateParams, xIsAutomated, xIsExpectedError, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } @@ -287,6 +337,8 @@ public okhttp3.Call generateLiltCreateContentAsync(LiltCreateContent templatePar + +
Status Code Description Response Headers
200 The Lilt Create content. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call getLiltCreateByIdCall(Integer contentId, final ApiCallback _callback) throws ApiException { @@ -303,7 +355,7 @@ public okhttp3.Call getLiltCreateByIdCall(Integer contentId, final ApiCallback _ Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -344,6 +396,8 @@ private okhttp3.Call getLiltCreateByIdValidateBeforeCall(Integer contentId, fina + +
Status Code Description Response Headers
200 The Lilt Create content. -
401 Unauthorized -
0 Unexpected error -
*/ public LiltCreateContent getLiltCreateById(Integer contentId) throws ApiException { @@ -361,6 +415,8 @@ public LiltCreateContent getLiltCreateById(Integer contentId) throws ApiExceptio + +
Status Code Description Response Headers
200 The Lilt Create content. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse getLiltCreateByIdWithHttpInfo(Integer contentId) throws ApiException { @@ -380,6 +436,8 @@ public ApiResponse getLiltCreateByIdWithHttpInfo(Integer cont + +
Status Code Description Response Headers
200 The Lilt Create content. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call getLiltCreateByIdAsync(Integer contentId, final ApiCallback _callback) throws ApiException { @@ -391,6 +449,8 @@ public okhttp3.Call getLiltCreateByIdAsync(Integer contentId, final ApiCallback< } /** * Build call for getLiltCreateContent + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -398,9 +458,11 @@ public okhttp3.Call getLiltCreateByIdAsync(Integer contentId, final ApiCallback< + +
Status Code Description Response Headers
200 An object with a documents next task Workflow metadata. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call getLiltCreateContentCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLiltCreateContentCall(Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -412,8 +474,16 @@ public okhttp3.Call getLiltCreateContentCall(final ApiCallback _callback) throws Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (xIsAutomated != null) { + localVarHeaderParams.put("x-is-automated", localVarApiClient.parameterToString(xIsAutomated)); + } + + if (xIsExpectedError != null) { + localVarHeaderParams.put("x-is-expected-error", localVarApiClient.parameterToString(xIsExpectedError)); + } + final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -431,10 +501,10 @@ public okhttp3.Call getLiltCreateContentCall(final ApiCallback _callback) throws } @SuppressWarnings("rawtypes") - private okhttp3.Call getLiltCreateContentValidateBeforeCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call getLiltCreateContentValidateBeforeCall(Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getLiltCreateContentCall(_callback); + okhttp3.Call localVarCall = getLiltCreateContentCall(xIsAutomated, xIsExpectedError, _callback); return localVarCall; } @@ -442,32 +512,40 @@ private okhttp3.Call getLiltCreateContentValidateBeforeCall(final ApiCallback _c /** * Get Lilt Create content * Get a list of all content that has been generated by Lilt Create. Example CURL: ```bash curl -X GET 'https://api.lilt.com/v2/create?key=API_KEY' ``` + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @return GetLiltCreateContentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
200 An object with a documents next task Workflow metadata. -
401 Unauthorized -
0 Unexpected error -
*/ - public GetLiltCreateContentResponse getLiltCreateContent() throws ApiException { - ApiResponse localVarResp = getLiltCreateContentWithHttpInfo(); + public GetLiltCreateContentResponse getLiltCreateContent(Boolean xIsAutomated, Boolean xIsExpectedError) throws ApiException { + ApiResponse localVarResp = getLiltCreateContentWithHttpInfo(xIsAutomated, xIsExpectedError); return localVarResp.getData(); } /** * Get Lilt Create content * Get a list of all content that has been generated by Lilt Create. Example CURL: ```bash curl -X GET 'https://api.lilt.com/v2/create?key=API_KEY' ``` + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @return ApiResponse<GetLiltCreateContentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
200 An object with a documents next task Workflow metadata. -
401 Unauthorized -
0 Unexpected error -
*/ - public ApiResponse getLiltCreateContentWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getLiltCreateContentValidateBeforeCall(null); + public ApiResponse getLiltCreateContentWithHttpInfo(Boolean xIsAutomated, Boolean xIsExpectedError) throws ApiException { + okhttp3.Call localVarCall = getLiltCreateContentValidateBeforeCall(xIsAutomated, xIsExpectedError, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -475,6 +553,8 @@ public ApiResponse getLiltCreateContentWithHttpInf /** * Get Lilt Create content (asynchronously) * Get a list of all content that has been generated by Lilt Create. Example CURL: ```bash curl -X GET 'https://api.lilt.com/v2/create?key=API_KEY' ``` + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -482,11 +562,13 @@ public ApiResponse getLiltCreateContentWithHttpInf + +
Status Code Description Response Headers
200 An object with a documents next task Workflow metadata. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call getLiltCreateContentAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getLiltCreateContentAsync(Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getLiltCreateContentValidateBeforeCall(_callback); + okhttp3.Call localVarCall = getLiltCreateContentValidateBeforeCall(xIsAutomated, xIsExpectedError, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -500,6 +582,8 @@ public okhttp3.Call getLiltCreateContentAsync(final ApiCallback Status Code Description Response Headers 200 An object describing the stored preferences. - + 401 Unauthorized - + 0 Unexpected error - */ public okhttp3.Call getLiltCreatePreferencesCall(final ApiCallback _callback) throws ApiException { @@ -515,7 +599,7 @@ public okhttp3.Call getLiltCreatePreferencesCall(final ApiCallback _callback) th Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -549,6 +633,8 @@ private okhttp3.Call getLiltCreatePreferencesValidateBeforeCall(final ApiCallbac + +
Status Code Description Response Headers
200 An object describing the stored preferences. -
401 Unauthorized -
0 Unexpected error -
*/ public void getLiltCreatePreferences() throws ApiException { @@ -564,6 +650,8 @@ public void getLiltCreatePreferences() throws ApiException { + +
Status Code Description Response Headers
200 An object describing the stored preferences. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse getLiltCreatePreferencesWithHttpInfo() throws ApiException { @@ -581,6 +669,8 @@ public ApiResponse getLiltCreatePreferencesWithHttpInfo() throws ApiExcept + +
Status Code Description Response Headers
200 An object describing the stored preferences. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call getLiltCreatePreferencesAsync(final ApiCallback _callback) throws ApiException { @@ -599,6 +689,8 @@ public okhttp3.Call getLiltCreatePreferencesAsync(final ApiCallback _callb + +
Status Code Description Response Headers
200 An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call regenerateLiltCreateContentCall(Integer contentId, final ApiCallback _callback) throws ApiException { @@ -615,7 +707,7 @@ public okhttp3.Call regenerateLiltCreateContentCall(Integer contentId, final Api Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -655,6 +747,8 @@ private okhttp3.Call regenerateLiltCreateContentValidateBeforeCall(Integer conte + +
Status Code Description Response Headers
200 An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response -
401 Unauthorized -
0 Unexpected error -
*/ public void regenerateLiltCreateContent(Integer contentId) throws ApiException { @@ -671,6 +765,8 @@ public void regenerateLiltCreateContent(Integer contentId) throws ApiException { + +
Status Code Description Response Headers
200 An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse regenerateLiltCreateContentWithHttpInfo(Integer contentId) throws ApiException { @@ -689,6 +785,8 @@ public ApiResponse regenerateLiltCreateContentWithHttpInfo(Integer content + +
Status Code Description Response Headers
200 An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call regenerateLiltCreateContentAsync(Integer contentId, final ApiCallback _callback) throws ApiException { @@ -700,6 +798,8 @@ public okhttp3.Call regenerateLiltCreateContentAsync(Integer contentId, final Ap /** * Build call for signLiltCreateTerms * @param signedAgreement (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -707,9 +807,11 @@ public okhttp3.Call regenerateLiltCreateContentAsync(Integer contentId, final Ap + +
Status Code Description Response Headers
200 An object indicating whether the agreement has been signed or not. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call signLiltCreateTermsCall(CreateConverterConfigParameters signedAgreement, final ApiCallback _callback) throws ApiException { + public okhttp3.Call signLiltCreateTermsCall(CreateConverterConfigParameters signedAgreement, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { Object localVarPostBody = signedAgreement; // create path and map variables @@ -721,8 +823,16 @@ public okhttp3.Call signLiltCreateTermsCall(CreateConverterConfigParameters sign Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (xIsAutomated != null) { + localVarHeaderParams.put("x-is-automated", localVarApiClient.parameterToString(xIsAutomated)); + } + + if (xIsExpectedError != null) { + localVarHeaderParams.put("x-is-expected-error", localVarApiClient.parameterToString(xIsExpectedError)); + } + final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -740,7 +850,7 @@ public okhttp3.Call signLiltCreateTermsCall(CreateConverterConfigParameters sign } @SuppressWarnings("rawtypes") - private okhttp3.Call signLiltCreateTermsValidateBeforeCall(CreateConverterConfigParameters signedAgreement, final ApiCallback _callback) throws ApiException { + private okhttp3.Call signLiltCreateTermsValidateBeforeCall(CreateConverterConfigParameters signedAgreement, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { // verify the required parameter 'signedAgreement' is set if (signedAgreement == null) { @@ -748,7 +858,7 @@ private okhttp3.Call signLiltCreateTermsValidateBeforeCall(CreateConverterConfig } - okhttp3.Call localVarCall = signLiltCreateTermsCall(signedAgreement, _callback); + okhttp3.Call localVarCall = signLiltCreateTermsCall(signedAgreement, xIsAutomated, xIsExpectedError, _callback); return localVarCall; } @@ -757,16 +867,20 @@ private okhttp3.Call signLiltCreateTermsValidateBeforeCall(CreateConverterConfig * Sign the Lilt Create terms and conditions * Lilt Create requires that the terms and conditions are signed first before using it. The terms and conditions can be signed by using this endpoint. Example CURL: ```bash curl -X POST 'https://api.lilt.com/v2/create/terms-and-conditions?key=API_KEY' \\ --header 'Content-Type: application/json' \\ --data-raw '{\"signedAgreement\": true}' ``` * @param signedAgreement (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @return SignLiltCreateTermsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
200 An object indicating whether the agreement has been signed or not. -
401 Unauthorized -
0 Unexpected error -
*/ - public SignLiltCreateTermsResponse signLiltCreateTerms(CreateConverterConfigParameters signedAgreement) throws ApiException { - ApiResponse localVarResp = signLiltCreateTermsWithHttpInfo(signedAgreement); + public SignLiltCreateTermsResponse signLiltCreateTerms(CreateConverterConfigParameters signedAgreement, Boolean xIsAutomated, Boolean xIsExpectedError) throws ApiException { + ApiResponse localVarResp = signLiltCreateTermsWithHttpInfo(signedAgreement, xIsAutomated, xIsExpectedError); return localVarResp.getData(); } @@ -774,16 +888,20 @@ public SignLiltCreateTermsResponse signLiltCreateTerms(CreateConverterConfigPara * Sign the Lilt Create terms and conditions * Lilt Create requires that the terms and conditions are signed first before using it. The terms and conditions can be signed by using this endpoint. Example CURL: ```bash curl -X POST 'https://api.lilt.com/v2/create/terms-and-conditions?key=API_KEY' \\ --header 'Content-Type: application/json' \\ --data-raw '{\"signedAgreement\": true}' ``` * @param signedAgreement (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @return ApiResponse<SignLiltCreateTermsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
200 An object indicating whether the agreement has been signed or not. -
401 Unauthorized -
0 Unexpected error -
*/ - public ApiResponse signLiltCreateTermsWithHttpInfo(CreateConverterConfigParameters signedAgreement) throws ApiException { - okhttp3.Call localVarCall = signLiltCreateTermsValidateBeforeCall(signedAgreement, null); + public ApiResponse signLiltCreateTermsWithHttpInfo(CreateConverterConfigParameters signedAgreement, Boolean xIsAutomated, Boolean xIsExpectedError) throws ApiException { + okhttp3.Call localVarCall = signLiltCreateTermsValidateBeforeCall(signedAgreement, xIsAutomated, xIsExpectedError, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -792,6 +910,8 @@ public ApiResponse signLiltCreateTermsWithHttpInfo( * Sign the Lilt Create terms and conditions (asynchronously) * Lilt Create requires that the terms and conditions are signed first before using it. The terms and conditions can be signed by using this endpoint. Example CURL: ```bash curl -X POST 'https://api.lilt.com/v2/create/terms-and-conditions?key=API_KEY' \\ --header 'Content-Type: application/json' \\ --data-raw '{\"signedAgreement\": true}' ``` * @param signedAgreement (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -799,11 +919,13 @@ public ApiResponse signLiltCreateTermsWithHttpInfo( + +
Status Code Description Response Headers
200 An object indicating whether the agreement has been signed or not. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call signLiltCreateTermsAsync(CreateConverterConfigParameters signedAgreement, final ApiCallback _callback) throws ApiException { + public okhttp3.Call signLiltCreateTermsAsync(CreateConverterConfigParameters signedAgreement, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = signLiltCreateTermsValidateBeforeCall(signedAgreement, _callback); + okhttp3.Call localVarCall = signLiltCreateTermsValidateBeforeCall(signedAgreement, xIsAutomated, xIsExpectedError, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -819,6 +941,8 @@ public okhttp3.Call signLiltCreateTermsAsync(CreateConverterConfigParameters sig + +
Status Code Description Response Headers
200 The updated Lilt Create content. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call updateLiltCreateContentCall(Integer contentId, LiltCreateContent body, final ApiCallback _callback) throws ApiException { @@ -835,7 +959,7 @@ public okhttp3.Call updateLiltCreateContentCall(Integer contentId, LiltCreateCon Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -877,6 +1001,8 @@ private okhttp3.Call updateLiltCreateContentValidateBeforeCall(Integer contentId + +
Status Code Description Response Headers
200 The updated Lilt Create content. -
401 Unauthorized -
0 Unexpected error -
*/ public LiltCreateContent updateLiltCreateContent(Integer contentId, LiltCreateContent body) throws ApiException { @@ -895,6 +1021,8 @@ public LiltCreateContent updateLiltCreateContent(Integer contentId, LiltCreateCo + +
Status Code Description Response Headers
200 The updated Lilt Create content. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse updateLiltCreateContentWithHttpInfo(Integer contentId, LiltCreateContent body) throws ApiException { @@ -915,6 +1043,8 @@ public ApiResponse updateLiltCreateContentWithHttpInfo(Intege + +
Status Code Description Response Headers
200 The updated Lilt Create content. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call updateLiltCreateContentAsync(Integer contentId, LiltCreateContent body, final ApiCallback _callback) throws ApiException { @@ -934,6 +1064,8 @@ public okhttp3.Call updateLiltCreateContentAsync(Integer contentId, LiltCreateCo + +
Status Code Description Response Headers
200 The updated Lilt Create preferences. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call updateLiltCreatePreferencesCall(LiltCreateContent styleguide, final ApiCallback _callback) throws ApiException { @@ -949,7 +1081,7 @@ public okhttp3.Call updateLiltCreatePreferencesCall(LiltCreateContent styleguide Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -984,6 +1116,8 @@ private okhttp3.Call updateLiltCreatePreferencesValidateBeforeCall(LiltCreateCon + +
Status Code Description Response Headers
200 The updated Lilt Create preferences. -
401 Unauthorized -
0 Unexpected error -
*/ public void updateLiltCreatePreferences(LiltCreateContent styleguide) throws ApiException { @@ -1000,6 +1134,8 @@ public void updateLiltCreatePreferences(LiltCreateContent styleguide) throws Api + +
Status Code Description Response Headers
200 The updated Lilt Create preferences. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse updateLiltCreatePreferencesWithHttpInfo(LiltCreateContent styleguide) throws ApiException { @@ -1018,6 +1154,8 @@ public ApiResponse updateLiltCreatePreferencesWithHttpInfo(LiltCreateConte + +
Status Code Description Response Headers
200 The updated Lilt Create preferences. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call updateLiltCreatePreferencesAsync(LiltCreateContent styleguide, final ApiCallback _callback) throws ApiException { diff --git a/src/main/java/com/lilt/client/api/DocumentsApi.java b/src/main/java/com/lilt/client/api/DocumentsApi.java index 68f10d162..eab69ad3b 100644 --- a/src/main/java/com/lilt/client/api/DocumentsApi.java +++ b/src/main/java/com/lilt/client/api/DocumentsApi.java @@ -67,6 +67,7 @@ public void setApiClient(ApiClient apiClient) { +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
502 File in pretranslation. -
0 Unexpected error -
@@ -92,7 +93,7 @@ public okhttp3.Call downloadDocumentCall(Integer id, Boolean isXliff, final ApiC } final String[] localVarAccepts = { - "application/octet-stream" + "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -134,6 +135,7 @@ private okhttp3.Call downloadDocumentValidateBeforeCall(Integer id, Boolean isXl +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
502 File in pretranslation. -
0 Unexpected error -
@@ -154,6 +156,7 @@ public byte[] downloadDocument(Integer id, Boolean isXliff) throws ApiException +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
502 File in pretranslation. -
0 Unexpected error -
@@ -176,6 +179,7 @@ public ApiResponse downloadDocumentWithHttpInfo(Integer id, Boolean isXl +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
502 File in pretranslation. -
0 Unexpected error -
@@ -204,6 +208,7 @@ public okhttp3.Call downloadDocumentAsync(Integer id, Boolean isXliff, final Api +
Status Code Description Response Headers
200 A Document object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -248,7 +253,7 @@ public okhttp3.Call uploadDocumentCall(String name, Integer projectId, File body } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -306,6 +311,7 @@ private okhttp3.Call uploadDocumentValidateBeforeCall(String name, Integer proje +
Status Code Description Response Headers
200 A Document object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -331,6 +337,7 @@ public DocumentWithSegments uploadDocument(String name, Integer projectId, File +
Status Code Description Response Headers
200 A Document object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -358,6 +365,7 @@ public ApiResponse uploadDocumentWithHttpInfo(String name, +
Status Code Description Response Headers
200 A Document object. -
401 Unauthorized -
0 Unexpected error -
*/ diff --git a/src/main/java/com/lilt/client/api/FilesApi.java b/src/main/java/com/lilt/client/api/FilesApi.java index c4c9961e4..e8d2a7218 100644 --- a/src/main/java/com/lilt/client/api/FilesApi.java +++ b/src/main/java/com/lilt/client/api/FilesApi.java @@ -69,6 +69,8 @@ public void setApiClient(ApiClient apiClient) { + +
Status Code Description Response Headers
204 A success response. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call addLabelCall(String id, AddFileLabelRequest name, final ApiCallback _callback) throws ApiException { @@ -88,7 +90,7 @@ public okhttp3.Call addLabelCall(String id, AddFileLabelRequest name, final ApiC } final String[] localVarAccepts = { - + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -134,6 +136,8 @@ private okhttp3.Call addLabelValidateBeforeCall(String id, AddFileLabelRequest n + +
Status Code Description Response Headers
204 A success response. -
401 Unauthorized -
0 Unexpected error -
*/ public void addLabel(String id, AddFileLabelRequest name) throws ApiException { @@ -151,6 +155,8 @@ public void addLabel(String id, AddFileLabelRequest name) throws ApiException { + +
Status Code Description Response Headers
204 A success response. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse addLabelWithHttpInfo(String id, AddFileLabelRequest name) throws ApiException { @@ -170,6 +176,8 @@ public ApiResponse addLabelWithHttpInfo(String id, AddFileLabelRequest nam + +
Status Code Description Response Headers
204 A success response. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call addLabelAsync(String id, AddFileLabelRequest name, final ApiCallback _callback) throws ApiException { @@ -181,6 +189,8 @@ public okhttp3.Call addLabelAsync(String id, AddFileLabelRequest name, final Api /** * Build call for deleteFile * @param id A unique File identifier. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -188,10 +198,11 @@ public okhttp3.Call addLabelAsync(String id, AddFileLabelRequest name, final Api +
Status Code Description Response Headers
204 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call deleteFileCall(Integer id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteFileCall(Integer id, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -207,8 +218,16 @@ public okhttp3.Call deleteFileCall(Integer id, final ApiCallback _callback) thro localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id)); } + if (xIsAutomated != null) { + localVarHeaderParams.put("x-is-automated", localVarApiClient.parameterToString(xIsAutomated)); + } + + if (xIsExpectedError != null) { + localVarHeaderParams.put("x-is-expected-error", localVarApiClient.parameterToString(xIsExpectedError)); + } + final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -226,7 +245,7 @@ public okhttp3.Call deleteFileCall(Integer id, final ApiCallback _callback) thro } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteFileValidateBeforeCall(Integer id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteFileValidateBeforeCall(Integer id, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { // verify the required parameter 'id' is set if (id == null) { @@ -234,7 +253,7 @@ private okhttp3.Call deleteFileValidateBeforeCall(Integer id, final ApiCallback } - okhttp3.Call localVarCall = deleteFileCall(id, _callback); + okhttp3.Call localVarCall = deleteFileCall(id, xIsAutomated, xIsExpectedError, _callback); return localVarCall; } @@ -243,17 +262,20 @@ private okhttp3.Call deleteFileValidateBeforeCall(Integer id, final ApiCallback * Delete a File * Delete a File. Example CURL command: ```bash curl -X DELETE https://api.lilt.com/v2/files?key=API_KEY&id=123 ``` * @param id A unique File identifier. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @return FileDeleteResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
204 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ - public FileDeleteResponse deleteFile(Integer id) throws ApiException { - ApiResponse localVarResp = deleteFileWithHttpInfo(id); + public FileDeleteResponse deleteFile(Integer id, Boolean xIsAutomated, Boolean xIsExpectedError) throws ApiException { + ApiResponse localVarResp = deleteFileWithHttpInfo(id, xIsAutomated, xIsExpectedError); return localVarResp.getData(); } @@ -261,17 +283,20 @@ public FileDeleteResponse deleteFile(Integer id) throws ApiException { * Delete a File * Delete a File. Example CURL command: ```bash curl -X DELETE https://api.lilt.com/v2/files?key=API_KEY&id=123 ``` * @param id A unique File identifier. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @return ApiResponse<FileDeleteResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
204 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ - public ApiResponse deleteFileWithHttpInfo(Integer id) throws ApiException { - okhttp3.Call localVarCall = deleteFileValidateBeforeCall(id, null); + public ApiResponse deleteFileWithHttpInfo(Integer id, Boolean xIsAutomated, Boolean xIsExpectedError) throws ApiException { + okhttp3.Call localVarCall = deleteFileValidateBeforeCall(id, xIsAutomated, xIsExpectedError, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -280,6 +305,8 @@ public ApiResponse deleteFileWithHttpInfo(Integer id) throws * Delete a File (asynchronously) * Delete a File. Example CURL command: ```bash curl -X DELETE https://api.lilt.com/v2/files?key=API_KEY&id=123 ``` * @param id A unique File identifier. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -287,12 +314,13 @@ public ApiResponse deleteFileWithHttpInfo(Integer id) throws +
Status Code Description Response Headers
204 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call deleteFileAsync(Integer id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteFileAsync(Integer id, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteFileValidateBeforeCall(id, _callback); + okhttp3.Call localVarCall = deleteFileValidateBeforeCall(id, xIsAutomated, xIsExpectedError, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -307,6 +335,8 @@ public okhttp3.Call deleteFileAsync(Integer id, final ApiCallback Status Code Description Response Headers 200 A file. - + 401 Unauthorized - + 0 Unexpected error - */ public okhttp3.Call downloadCall(String id, final ApiCallback _callback) throws ApiException { @@ -326,7 +356,7 @@ public okhttp3.Call downloadCall(String id, final ApiCallback _callback) throws } final String[] localVarAccepts = { - "application/octet-stream" + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -367,6 +397,8 @@ private okhttp3.Call downloadValidateBeforeCall(String id, final ApiCallback _ca + +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ public byte[] download(String id) throws ApiException { @@ -384,6 +416,8 @@ public byte[] download(String id) throws ApiException { + +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse downloadWithHttpInfo(String id) throws ApiException { @@ -403,6 +437,8 @@ public ApiResponse downloadWithHttpInfo(String id) throws ApiException { + +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call downloadAsync(String id, final ApiCallback _callback) throws ApiException { @@ -423,6 +459,7 @@ public okhttp3.Call downloadAsync(String id, final ApiCallback _callback + @@ -449,7 +486,7 @@ public okhttp3.Call getFilesCall(Integer id, List labels, final ApiCallb } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -486,6 +523,7 @@ private okhttp3.Call getFilesValidateBeforeCall(Integer id, List labels,
Status Code Description Response Headers
200 A list of files. -
401 Unauthorized -
403 User does not have permission for provided file. -
410 File deleted. -
0 Unexpected error. -
+ @@ -507,6 +545,7 @@ public List getFiles(Integer id, List labels) throws ApiExce
Status Code Description Response Headers
200 A list of files. -
401 Unauthorized -
403 User does not have permission for provided file. -
410 File deleted. -
0 Unexpected error. -
+ @@ -530,6 +569,7 @@ public ApiResponse> getFilesWithHttpInfo(Integer id, List + @@ -553,6 +593,8 @@ public okhttp3.Call getFilesAsync(Integer id, List labels, final ApiCall
Status Code Description Response Headers
200 A list of files. -
401 Unauthorized -
403 User does not have permission for provided file. -
410 File deleted. -
0 Unexpected error. -
Status Code Description Response Headers
200 A list of files. -
401 Unauthorized -
403 User does not have permission for provided file. -
410 File deleted. -
0 Unexpected error. -
+ +
Status Code Description Response Headers
204 A success response. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call removeLabelCall(String id, String name, final ApiCallback _callback) throws ApiException { @@ -576,7 +618,7 @@ public okhttp3.Call removeLabelCall(String id, String name, final ApiCallback _c } final String[] localVarAccepts = { - + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -622,6 +664,8 @@ private okhttp3.Call removeLabelValidateBeforeCall(String id, String name, final + +
Status Code Description Response Headers
204 A success response. -
401 Unauthorized -
0 Unexpected error -
*/ public void removeLabel(String id, String name) throws ApiException { @@ -639,6 +683,8 @@ public void removeLabel(String id, String name) throws ApiException { + +
Status Code Description Response Headers
204 A success response. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse removeLabelWithHttpInfo(String id, String name) throws ApiException { @@ -658,6 +704,8 @@ public ApiResponse removeLabelWithHttpInfo(String id, String name) throws + +
Status Code Description Response Headers
204 A success response. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call removeLabelAsync(String id, String name, final ApiCallback _callback) throws ApiException { @@ -670,6 +718,8 @@ public okhttp3.Call removeLabelAsync(String id, String name, final ApiCallback Status Code Description Response Headers 201 A SourceFile object. - + 401 Unauthorized - 0 Unexpected error - */ - public okhttp3.Call uploadFileCall(String name, File body, String fileHash, Boolean langId, Integer projectId, String category, String labels, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileCall(String name, File body, Boolean xIsAutomated, Boolean xIsExpectedError, String fileHash, Boolean langId, Integer projectId, String category, String labels, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -721,8 +772,16 @@ public okhttp3.Call uploadFileCall(String name, File body, String fileHash, Bool localVarQueryParams.addAll(localVarApiClient.parameterToPair("labels", labels)); } + if (xIsAutomated != null) { + localVarHeaderParams.put("x-is-automated", localVarApiClient.parameterToString(xIsAutomated)); + } + + if (xIsExpectedError != null) { + localVarHeaderParams.put("x-is-expected-error", localVarApiClient.parameterToString(xIsExpectedError)); + } + final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -740,7 +799,7 @@ public okhttp3.Call uploadFileCall(String name, File body, String fileHash, Bool } @SuppressWarnings("rawtypes") - private okhttp3.Call uploadFileValidateBeforeCall(String name, File body, String fileHash, Boolean langId, Integer projectId, String category, String labels, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFileValidateBeforeCall(String name, File body, Boolean xIsAutomated, Boolean xIsExpectedError, String fileHash, Boolean langId, Integer projectId, String category, String labels, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -753,7 +812,7 @@ private okhttp3.Call uploadFileValidateBeforeCall(String name, File body, String } - okhttp3.Call localVarCall = uploadFileCall(name, body, fileHash, langId, projectId, category, labels, _callback); + okhttp3.Call localVarCall = uploadFileCall(name, body, xIsAutomated, xIsExpectedError, fileHash, langId, projectId, category, labels, _callback); return localVarCall; } @@ -763,6 +822,8 @@ private okhttp3.Call uploadFileValidateBeforeCall(String name, File body, String * Upload a File in any of the formats [documented in our knowledge base](https://support.lilt.com/hc/en-us/articles/360020816253-File-Formats). Request parameters should be passed in as query string parameters. Example CURL command: ```bash curl -X POST https://api.lilt.com/v2/files?key=API_KEY&name=en_US.json \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @en_US.json ``` Calls to GET /files are used to monitor the language detection results. The API response will be augmented to include detected language and confidence score. The language detection will complete asynchronously. Prior to completion, the `detected_lang` value will be `zxx`, the reserved ISO 639-2 code for \"No linguistic content/not applicable\". If the language can not be determined, or the detection process fails, the `detected_lang` field will return `und`, the reserved ISO 639-2 code for undetermined language, and the `detected_lang_confidence` score will be `0`. * @param name A file name. (required) * @param body The file contents to be uploaded. The entire POST body will be treated as the file. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param fileHash A hash value to associate with the file. The MD5 hash of the body contents will be used by default if a value isn't provided. (optional) * @param langId Flag indicating whether to perform language detection on the uploaded file. Default is false. (optional) * @param projectId The project to associate the uploaded file with. (optional) @@ -774,11 +835,12 @@ private okhttp3.Call uploadFileValidateBeforeCall(String name, File body, String +
Status Code Description Response Headers
201 A SourceFile object. -
401 Unauthorized -
0 Unexpected error -
*/ - public SourceFile uploadFile(String name, File body, String fileHash, Boolean langId, Integer projectId, String category, String labels) throws ApiException { - ApiResponse localVarResp = uploadFileWithHttpInfo(name, body, fileHash, langId, projectId, category, labels); + public SourceFile uploadFile(String name, File body, Boolean xIsAutomated, Boolean xIsExpectedError, String fileHash, Boolean langId, Integer projectId, String category, String labels) throws ApiException { + ApiResponse localVarResp = uploadFileWithHttpInfo(name, body, xIsAutomated, xIsExpectedError, fileHash, langId, projectId, category, labels); return localVarResp.getData(); } @@ -787,6 +849,8 @@ public SourceFile uploadFile(String name, File body, String fileHash, Boolean la * Upload a File in any of the formats [documented in our knowledge base](https://support.lilt.com/hc/en-us/articles/360020816253-File-Formats). Request parameters should be passed in as query string parameters. Example CURL command: ```bash curl -X POST https://api.lilt.com/v2/files?key=API_KEY&name=en_US.json \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @en_US.json ``` Calls to GET /files are used to monitor the language detection results. The API response will be augmented to include detected language and confidence score. The language detection will complete asynchronously. Prior to completion, the `detected_lang` value will be `zxx`, the reserved ISO 639-2 code for \"No linguistic content/not applicable\". If the language can not be determined, or the detection process fails, the `detected_lang` field will return `und`, the reserved ISO 639-2 code for undetermined language, and the `detected_lang_confidence` score will be `0`. * @param name A file name. (required) * @param body The file contents to be uploaded. The entire POST body will be treated as the file. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param fileHash A hash value to associate with the file. The MD5 hash of the body contents will be used by default if a value isn't provided. (optional) * @param langId Flag indicating whether to perform language detection on the uploaded file. Default is false. (optional) * @param projectId The project to associate the uploaded file with. (optional) @@ -798,11 +862,12 @@ public SourceFile uploadFile(String name, File body, String fileHash, Boolean la +
Status Code Description Response Headers
201 A SourceFile object. -
401 Unauthorized -
0 Unexpected error -
*/ - public ApiResponse uploadFileWithHttpInfo(String name, File body, String fileHash, Boolean langId, Integer projectId, String category, String labels) throws ApiException { - okhttp3.Call localVarCall = uploadFileValidateBeforeCall(name, body, fileHash, langId, projectId, category, labels, null); + public ApiResponse uploadFileWithHttpInfo(String name, File body, Boolean xIsAutomated, Boolean xIsExpectedError, String fileHash, Boolean langId, Integer projectId, String category, String labels) throws ApiException { + okhttp3.Call localVarCall = uploadFileValidateBeforeCall(name, body, xIsAutomated, xIsExpectedError, fileHash, langId, projectId, category, labels, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -812,6 +877,8 @@ public ApiResponse uploadFileWithHttpInfo(String name, File body, St * Upload a File in any of the formats [documented in our knowledge base](https://support.lilt.com/hc/en-us/articles/360020816253-File-Formats). Request parameters should be passed in as query string parameters. Example CURL command: ```bash curl -X POST https://api.lilt.com/v2/files?key=API_KEY&name=en_US.json \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @en_US.json ``` Calls to GET /files are used to monitor the language detection results. The API response will be augmented to include detected language and confidence score. The language detection will complete asynchronously. Prior to completion, the `detected_lang` value will be `zxx`, the reserved ISO 639-2 code for \"No linguistic content/not applicable\". If the language can not be determined, or the detection process fails, the `detected_lang` field will return `und`, the reserved ISO 639-2 code for undetermined language, and the `detected_lang_confidence` score will be `0`. * @param name A file name. (required) * @param body The file contents to be uploaded. The entire POST body will be treated as the file. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param fileHash A hash value to associate with the file. The MD5 hash of the body contents will be used by default if a value isn't provided. (optional) * @param langId Flag indicating whether to perform language detection on the uploaded file. Default is false. (optional) * @param projectId The project to associate the uploaded file with. (optional) @@ -824,12 +891,13 @@ public ApiResponse uploadFileWithHttpInfo(String name, File body, St +
Status Code Description Response Headers
201 A SourceFile object. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call uploadFileAsync(String name, File body, String fileHash, Boolean langId, Integer projectId, String category, String labels, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileAsync(String name, File body, Boolean xIsAutomated, Boolean xIsExpectedError, String fileHash, Boolean langId, Integer projectId, String category, String labels, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = uploadFileValidateBeforeCall(name, body, fileHash, langId, projectId, category, labels, _callback); + okhttp3.Call localVarCall = uploadFileValidateBeforeCall(name, body, xIsAutomated, xIsExpectedError, fileHash, langId, projectId, category, labels, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/com/lilt/client/api/JobsApi.java b/src/main/java/com/lilt/client/api/JobsApi.java index bd56ce9a2..5f61fcdbf 100644 --- a/src/main/java/com/lilt/client/api/JobsApi.java +++ b/src/main/java/com/lilt/client/api/JobsApi.java @@ -69,6 +69,7 @@ public void setApiClient(ApiClient apiClient) { +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -86,7 +87,7 @@ public okhttp3.Call archiveJobCall(Integer jobId, final ApiCallback _callback) t Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -127,6 +128,7 @@ private okhttp3.Call archiveJobValidateBeforeCall(Integer jobId, final ApiCallba +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -145,6 +147,7 @@ public Job archiveJob(Integer jobId) throws ApiException { +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -165,6 +168,7 @@ public ApiResponse archiveJobWithHttpInfo(Integer jobId) throws ApiExceptio +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -185,6 +189,7 @@ public okhttp3.Call archiveJobAsync(Integer jobId, final ApiCallback _callb +
Status Code Description Response Headers
200 A Job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -201,7 +206,7 @@ public okhttp3.Call createJobCall(JobCreateParameters body, final ApiCallback _c Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -242,6 +247,7 @@ private okhttp3.Call createJobValidateBeforeCall(JobCreateParameters body, final +
Status Code Description Response Headers
200 A Job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -260,6 +266,7 @@ public Job createJob(JobCreateParameters body) throws ApiException { +
Status Code Description Response Headers
200 A Job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -280,6 +287,7 @@ public ApiResponse createJobWithHttpInfo(JobCreateParameters body) throws A +
Status Code Description Response Headers
200 A Job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -300,6 +308,7 @@ public okhttp3.Call createJobAsync(JobCreateParameters body, final ApiCallback Status Code Description Response Headers 200 A status object. - + 401 Unauthorized - 0 Unexpected error - */ @@ -317,7 +326,7 @@ public okhttp3.Call deleteJobCall(Integer jobId, final ApiCallback _callback) th Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -358,6 +367,7 @@ private okhttp3.Call deleteJobValidateBeforeCall(Integer jobId, final ApiCallbac +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -376,6 +386,7 @@ public JobDeleteResponse deleteJob(Integer jobId) throws ApiException { +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -396,6 +407,7 @@ public ApiResponse deleteJobWithHttpInfo(Integer jobId) throw +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -416,6 +428,7 @@ public okhttp3.Call deleteJobAsync(Integer jobId, final ApiCallback Status Code Description Response Headers 200 A job object. - + 401 Unauthorized - 0 Unexpected error - */ @@ -433,7 +446,7 @@ public okhttp3.Call deliverJobCall(Integer jobId, final ApiCallback _callback) t Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -474,6 +487,7 @@ private okhttp3.Call deliverJobValidateBeforeCall(Integer jobId, final ApiCallba +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -492,6 +506,7 @@ public Job deliverJob(Integer jobId) throws ApiException { +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -512,6 +527,7 @@ public ApiResponse deliverJobWithHttpInfo(Integer jobId) throws ApiExceptio +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -532,6 +548,7 @@ public okhttp3.Call deliverJobAsync(Integer jobId, final ApiCallback _callb +
Status Code Description Response Headers
200 zipped file -
401 Unauthorized -
0 Unexpected error -
*/ @@ -539,7 +556,7 @@ public okhttp3.Call downloadJobCall(Integer jobId, final ApiCallback _callback) Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v2/jobs/{jobId}/downlod" + String localVarPath = "/v2/jobs/{jobId}/download" .replaceAll("\\{" + "jobId" + "\\}", localVarApiClient.escapeString(jobId.toString())); List localVarQueryParams = new ArrayList(); @@ -549,7 +566,7 @@ public okhttp3.Call downloadJobCall(Integer jobId, final ApiCallback _callback) Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -589,6 +606,7 @@ private okhttp3.Call downloadJobValidateBeforeCall(Integer jobId, final ApiCallb +
Status Code Description Response Headers
200 zipped file -
401 Unauthorized -
0 Unexpected error -
*/ @@ -606,6 +624,7 @@ public void downloadJob(Integer jobId) throws ApiException { +
Status Code Description Response Headers
200 zipped file -
401 Unauthorized -
0 Unexpected error -
*/ @@ -625,6 +644,7 @@ public ApiResponse downloadJobWithHttpInfo(Integer jobId) throws ApiExcept +
Status Code Description Response Headers
200 zipped file -
401 Unauthorized -
0 Unexpected error -
*/ @@ -645,6 +665,7 @@ public okhttp3.Call downloadJobAsync(Integer jobId, final ApiCallback _cal +
Status Code Description Response Headers
200 200 status. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -666,7 +687,7 @@ public okhttp3.Call exportJobCall(Integer jobId, String type, final ApiCallback } final String[] localVarAccepts = { - "application/json" + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -712,6 +733,7 @@ private okhttp3.Call exportJobValidateBeforeCall(Integer jobId, String type, fin +
Status Code Description Response Headers
200 200 status. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -730,6 +752,7 @@ public void exportJob(Integer jobId, String type) throws ApiException { +
Status Code Description Response Headers
200 200 status. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -750,6 +773,7 @@ public ApiResponse exportJobWithHttpInfo(Integer jobId, String type) throw +
Status Code Description Response Headers
200 200 status. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -769,6 +793,7 @@ public okhttp3.Call exportJobAsync(Integer jobId, String type, final ApiCallback +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -786,7 +811,7 @@ public okhttp3.Call getJobCall(Integer jobId, final ApiCallback _callback) throw Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -827,6 +852,7 @@ private okhttp3.Call getJobValidateBeforeCall(Integer jobId, final ApiCallback _ +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -845,6 +871,7 @@ public Job getJob(Integer jobId) throws ApiException { +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -865,6 +892,7 @@ public ApiResponse getJobWithHttpInfo(Integer jobId) throws ApiException { +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -885,6 +913,7 @@ public okhttp3.Call getJobAsync(Integer jobId, final ApiCallback _callback) +
Status Code Description Response Headers
200 A job leverage stats object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -902,7 +931,7 @@ public okhttp3.Call getJobLeverageStatsCall(Integer jobId, final ApiCallback _ca Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -943,6 +972,7 @@ private okhttp3.Call getJobLeverageStatsValidateBeforeCall(Integer jobId, final +
Status Code Description Response Headers
200 A job leverage stats object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -961,6 +991,7 @@ public JobLeverageStats getJobLeverageStats(Integer jobId) throws ApiException { +
Status Code Description Response Headers
200 A job leverage stats object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -981,6 +1012,7 @@ public ApiResponse getJobLeverageStatsWithHttpInfo(Integer job +
Status Code Description Response Headers
200 A job leverage stats object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1001,6 +1033,7 @@ public okhttp3.Call getJobLeverageStatsAsync(Integer jobId, final ApiCallback Status Code Description Response Headers 200 A job object. - + 401 Unauthorized - 0 Unexpected error - */ @@ -1018,7 +1051,7 @@ public okhttp3.Call reactivateJobCall(Integer jobId, final ApiCallback _callback Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1059,6 +1092,7 @@ private okhttp3.Call reactivateJobValidateBeforeCall(Integer jobId, final ApiCal +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1077,6 +1111,7 @@ public Job reactivateJob(Integer jobId) throws ApiException { +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1097,6 +1132,7 @@ public ApiResponse reactivateJobWithHttpInfo(Integer jobId) throws ApiExcep +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1120,6 +1156,7 @@ public okhttp3.Call reactivateJobAsync(Integer jobId, final ApiCallback _ca +
Status Code Description Response Headers
200 A list of Job objects. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1152,7 +1189,7 @@ public okhttp3.Call retrieveAllJobsCall(Boolean isArchived, Boolean isDelivered, } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1191,6 +1228,7 @@ private okhttp3.Call retrieveAllJobsValidateBeforeCall(Boolean isArchived, Boole +
Status Code Description Response Headers
200 A list of Job objects. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1212,6 +1250,7 @@ public List retrieveAllJobs(Boolean isArchived, Boolean isDelivered, Intege +
Status Code Description Response Headers
200 A list of Job objects. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1235,6 +1274,7 @@ public ApiResponse> retrieveAllJobsWithHttpInfo(Boolean isArchived, Bo +
Status Code Description Response Headers
200 A list of Job objects. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1255,6 +1295,7 @@ public okhttp3.Call retrieveAllJobsAsync(Boolean isArchived, Boolean isDelivered +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1272,7 +1313,7 @@ public okhttp3.Call unarchiveJobCall(Integer jobId, final ApiCallback _callback) Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1313,6 +1354,7 @@ private okhttp3.Call unarchiveJobValidateBeforeCall(Integer jobId, final ApiCall +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1331,6 +1373,7 @@ public Job unarchiveJob(Integer jobId) throws ApiException { +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1351,6 +1394,7 @@ public ApiResponse unarchiveJobWithHttpInfo(Integer jobId) throws ApiExcept +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1372,6 +1416,7 @@ public okhttp3.Call unarchiveJobAsync(Integer jobId, final ApiCallback _cal +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1389,7 +1434,7 @@ public okhttp3.Call updateJobCall(Integer jobId, JobUpdateParameters body, final Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1431,6 +1476,7 @@ private okhttp3.Call updateJobValidateBeforeCall(Integer jobId, JobUpdateParamet +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1450,6 +1496,7 @@ public Job updateJob(Integer jobId, JobUpdateParameters body) throws ApiExceptio +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1471,6 +1518,7 @@ public ApiResponse updateJobWithHttpInfo(Integer jobId, JobUpdateParameters +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ diff --git a/src/main/java/com/lilt/client/api/LanguagesApi.java b/src/main/java/com/lilt/client/api/LanguagesApi.java index 4e411571e..0cc7aa98e 100644 --- a/src/main/java/com/lilt/client/api/LanguagesApi.java +++ b/src/main/java/com/lilt/client/api/LanguagesApi.java @@ -64,6 +64,7 @@ public void setApiClient(ApiClient apiClient) { +
Status Code Description Response Headers
200 An object listing supported languages and their corresponding locales. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -80,7 +81,7 @@ public okhttp3.Call getLanguagesCall(final ApiCallback _callback) throws ApiExce Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -115,6 +116,7 @@ private okhttp3.Call getLanguagesValidateBeforeCall(final ApiCallback _callback) +
Status Code Description Response Headers
200 An object listing supported languages and their corresponding locales. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -132,6 +134,7 @@ public LanguagesResponse getLanguages() throws ApiException { +
Status Code Description Response Headers
200 An object listing supported languages and their corresponding locales. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -151,6 +154,7 @@ public ApiResponse getLanguagesWithHttpInfo() throws ApiExcep +
Status Code Description Response Headers
200 An object listing supported languages and their corresponding locales. -
401 Unauthorized -
0 Unexpected error -
*/ diff --git a/src/main/java/com/lilt/client/api/MemoriesApi.java b/src/main/java/com/lilt/client/api/MemoriesApi.java index abab12a19..21f1d8e7f 100644 --- a/src/main/java/com/lilt/client/api/MemoriesApi.java +++ b/src/main/java/com/lilt/client/api/MemoriesApi.java @@ -67,6 +67,8 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for createMemory * @param body (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -74,10 +76,11 @@ public void setApiClient(ApiClient apiClient) { +
Status Code Description Response Headers
200 A Memory object. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call createMemoryCall(MemoryCreateParameters body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createMemoryCall(MemoryCreateParameters body, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -89,8 +92,16 @@ public okhttp3.Call createMemoryCall(MemoryCreateParameters body, final ApiCallb Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (xIsAutomated != null) { + localVarHeaderParams.put("x-is-automated", localVarApiClient.parameterToString(xIsAutomated)); + } + + if (xIsExpectedError != null) { + localVarHeaderParams.put("x-is-expected-error", localVarApiClient.parameterToString(xIsExpectedError)); + } + final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -108,7 +119,7 @@ public okhttp3.Call createMemoryCall(MemoryCreateParameters body, final ApiCallb } @SuppressWarnings("rawtypes") - private okhttp3.Call createMemoryValidateBeforeCall(MemoryCreateParameters body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMemoryValidateBeforeCall(MemoryCreateParameters body, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { @@ -116,7 +127,7 @@ private okhttp3.Call createMemoryValidateBeforeCall(MemoryCreateParameters body, } - okhttp3.Call localVarCall = createMemoryCall(body, _callback); + okhttp3.Call localVarCall = createMemoryCall(body, xIsAutomated, xIsExpectedError, _callback); return localVarCall; } @@ -125,17 +136,20 @@ private okhttp3.Call createMemoryValidateBeforeCall(MemoryCreateParameters body, * Create a Memory * Create a new Memory. A Memory is a container that collects source/target sentences for a specific language pair (e.g., English>French). The data in the Memory is used to train the MT system, populate the TM, and update the lexicon. Memories are private to your account - the data is not shared across users - unless you explicitly share a Memory with your team (via web app only). <a href=\"https://support.lilt.com/hc/en-us/sections/360012579193-Lilt-Translate-Engine\" target=_blank>Refer to our KB</a> for a more detailed description. * @param body (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @return Memory * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 A Memory object. -
401 Unauthorized -
0 Unexpected error -
*/ - public Memory createMemory(MemoryCreateParameters body) throws ApiException { - ApiResponse localVarResp = createMemoryWithHttpInfo(body); + public Memory createMemory(MemoryCreateParameters body, Boolean xIsAutomated, Boolean xIsExpectedError) throws ApiException { + ApiResponse localVarResp = createMemoryWithHttpInfo(body, xIsAutomated, xIsExpectedError); return localVarResp.getData(); } @@ -143,17 +157,20 @@ public Memory createMemory(MemoryCreateParameters body) throws ApiException { * Create a Memory * Create a new Memory. A Memory is a container that collects source/target sentences for a specific language pair (e.g., English>French). The data in the Memory is used to train the MT system, populate the TM, and update the lexicon. Memories are private to your account - the data is not shared across users - unless you explicitly share a Memory with your team (via web app only). <a href=\"https://support.lilt.com/hc/en-us/sections/360012579193-Lilt-Translate-Engine\" target=_blank>Refer to our KB</a> for a more detailed description. * @param body (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @return ApiResponse<Memory> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 A Memory object. -
401 Unauthorized -
0 Unexpected error -
*/ - public ApiResponse createMemoryWithHttpInfo(MemoryCreateParameters body) throws ApiException { - okhttp3.Call localVarCall = createMemoryValidateBeforeCall(body, null); + public ApiResponse createMemoryWithHttpInfo(MemoryCreateParameters body, Boolean xIsAutomated, Boolean xIsExpectedError) throws ApiException { + okhttp3.Call localVarCall = createMemoryValidateBeforeCall(body, xIsAutomated, xIsExpectedError, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -162,6 +179,8 @@ public ApiResponse createMemoryWithHttpInfo(MemoryCreateParameters body) * Create a Memory (asynchronously) * Create a new Memory. A Memory is a container that collects source/target sentences for a specific language pair (e.g., English>French). The data in the Memory is used to train the MT system, populate the TM, and update the lexicon. Memories are private to your account - the data is not shared across users - unless you explicitly share a Memory with your team (via web app only). <a href=\"https://support.lilt.com/hc/en-us/sections/360012579193-Lilt-Translate-Engine\" target=_blank>Refer to our KB</a> for a more detailed description. * @param body (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -169,12 +188,13 @@ public ApiResponse createMemoryWithHttpInfo(MemoryCreateParameters body) +
Status Code Description Response Headers
200 A Memory object. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call createMemoryAsync(MemoryCreateParameters body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createMemoryAsync(MemoryCreateParameters body, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createMemoryValidateBeforeCall(body, _callback); + okhttp3.Call localVarCall = createMemoryValidateBeforeCall(body, xIsAutomated, xIsExpectedError, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -182,6 +202,8 @@ public okhttp3.Call createMemoryAsync(MemoryCreateParameters body, final ApiCall /** * Build call for deleteMemory * @param id A unique Memory identifier. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -189,10 +211,11 @@ public okhttp3.Call createMemoryAsync(MemoryCreateParameters body, final ApiCall +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call deleteMemoryCall(Integer id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteMemoryCall(Integer id, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -208,8 +231,16 @@ public okhttp3.Call deleteMemoryCall(Integer id, final ApiCallback _callback) th localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id)); } + if (xIsAutomated != null) { + localVarHeaderParams.put("x-is-automated", localVarApiClient.parameterToString(xIsAutomated)); + } + + if (xIsExpectedError != null) { + localVarHeaderParams.put("x-is-expected-error", localVarApiClient.parameterToString(xIsExpectedError)); + } + final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -227,7 +258,7 @@ public okhttp3.Call deleteMemoryCall(Integer id, final ApiCallback _callback) th } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteMemoryValidateBeforeCall(Integer id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMemoryValidateBeforeCall(Integer id, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { // verify the required parameter 'id' is set if (id == null) { @@ -235,7 +266,7 @@ private okhttp3.Call deleteMemoryValidateBeforeCall(Integer id, final ApiCallbac } - okhttp3.Call localVarCall = deleteMemoryCall(id, _callback); + okhttp3.Call localVarCall = deleteMemoryCall(id, xIsAutomated, xIsExpectedError, _callback); return localVarCall; } @@ -244,17 +275,20 @@ private okhttp3.Call deleteMemoryValidateBeforeCall(Integer id, final ApiCallbac * Delete a Memory * Delete a Memory. * @param id A unique Memory identifier. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @return MemoryDeleteResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ - public MemoryDeleteResponse deleteMemory(Integer id) throws ApiException { - ApiResponse localVarResp = deleteMemoryWithHttpInfo(id); + public MemoryDeleteResponse deleteMemory(Integer id, Boolean xIsAutomated, Boolean xIsExpectedError) throws ApiException { + ApiResponse localVarResp = deleteMemoryWithHttpInfo(id, xIsAutomated, xIsExpectedError); return localVarResp.getData(); } @@ -262,17 +296,20 @@ public MemoryDeleteResponse deleteMemory(Integer id) throws ApiException { * Delete a Memory * Delete a Memory. * @param id A unique Memory identifier. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @return ApiResponse<MemoryDeleteResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ - public ApiResponse deleteMemoryWithHttpInfo(Integer id) throws ApiException { - okhttp3.Call localVarCall = deleteMemoryValidateBeforeCall(id, null); + public ApiResponse deleteMemoryWithHttpInfo(Integer id, Boolean xIsAutomated, Boolean xIsExpectedError) throws ApiException { + okhttp3.Call localVarCall = deleteMemoryValidateBeforeCall(id, xIsAutomated, xIsExpectedError, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -281,6 +318,8 @@ public ApiResponse deleteMemoryWithHttpInfo(Integer id) th * Delete a Memory (asynchronously) * Delete a Memory. * @param id A unique Memory identifier. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -288,12 +327,13 @@ public ApiResponse deleteMemoryWithHttpInfo(Integer id) th +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call deleteMemoryAsync(Integer id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteMemoryAsync(Integer id, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteMemoryValidateBeforeCall(id, _callback); + okhttp3.Call localVarCall = deleteMemoryValidateBeforeCall(id, xIsAutomated, xIsExpectedError, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -309,6 +349,7 @@ public okhttp3.Call deleteMemoryAsync(Integer id, final ApiCallback Status Code Description Response Headers 200 A success resposne. - + 401 Unauthorized - 0 Unexpected error - */ @@ -333,7 +374,7 @@ public okhttp3.Call deleteSegmentFromMemoryCall(Integer id, Integer segmentId, f } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -380,6 +421,7 @@ private okhttp3.Call deleteSegmentFromMemoryValidateBeforeCall(Integer id, Integ +
Status Code Description Response Headers
200 A success resposne. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -399,6 +441,7 @@ public DeleteSegmentFromMemoryResponse deleteSegmentFromMemory(Integer id, Integ +
Status Code Description Response Headers
200 A success resposne. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -420,6 +463,7 @@ public ApiResponse deleteSegmentFromMemoryWithH +
Status Code Description Response Headers
200 A success resposne. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -440,6 +484,7 @@ public okhttp3.Call deleteSegmentFromMemoryAsync(Integer id, Integer segmentId, +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -460,7 +505,7 @@ public okhttp3.Call downloadTermbaseCall(Integer id, final ApiCallback _callback } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -501,6 +546,7 @@ private okhttp3.Call downloadTermbaseValidateBeforeCall(Integer id, final ApiCal +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -519,6 +565,7 @@ public byte[] downloadTermbase(Integer id) throws ApiException { +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -539,6 +586,7 @@ public ApiResponse downloadTermbaseWithHttpInfo(Integer id) throws ApiEx +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -559,6 +607,7 @@ public okhttp3.Call downloadTermbaseAsync(Integer id, final ApiCallback +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -579,7 +628,7 @@ public okhttp3.Call exportTermbaseCall(Integer id, final ApiCallback _callback) } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -620,6 +669,7 @@ private okhttp3.Call exportTermbaseValidateBeforeCall(Integer id, final ApiCallb +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -638,6 +688,7 @@ public TermbaseExportResponse exportTermbase(Integer id) throws ApiException { +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -658,6 +709,7 @@ public ApiResponse exportTermbaseWithHttpInfo(Integer id +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -670,6 +722,8 @@ public okhttp3.Call exportTermbaseAsync(Integer id, final ApiCallback Status Code Description Response Headers 200 A list of Memory objects. - + 401 Unauthorized - + 404 Memory not found. - 0 Unexpected error - */ - public okhttp3.Call getMemoryCall(Integer id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getMemoryCall(Boolean xIsAutomated, Boolean xIsExpectedError, Integer id, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -697,8 +753,16 @@ public okhttp3.Call getMemoryCall(Integer id, final ApiCallback _callback) throw localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id)); } + if (xIsAutomated != null) { + localVarHeaderParams.put("x-is-automated", localVarApiClient.parameterToString(xIsAutomated)); + } + + if (xIsExpectedError != null) { + localVarHeaderParams.put("x-is-expected-error", localVarApiClient.parameterToString(xIsExpectedError)); + } + final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -716,10 +780,10 @@ public okhttp3.Call getMemoryCall(Integer id, final ApiCallback _callback) throw } @SuppressWarnings("rawtypes") - private okhttp3.Call getMemoryValidateBeforeCall(Integer id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getMemoryValidateBeforeCall(Boolean xIsAutomated, Boolean xIsExpectedError, Integer id, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getMemoryCall(id, _callback); + okhttp3.Call localVarCall = getMemoryCall(xIsAutomated, xIsExpectedError, id, _callback); return localVarCall; } @@ -727,6 +791,8 @@ private okhttp3.Call getMemoryValidateBeforeCall(Integer id, final ApiCallback _ /** * Retrieve a Memory * Retrieve a Memory. If you cannot access the Memory (401 error) please check permissions (e.g. in case you created the Memory via the web app with a different account you may have to explicitly share that Memory). + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param id An optional Memory identifier. (optional) * @return List<Memory> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -734,17 +800,21 @@ private okhttp3.Call getMemoryValidateBeforeCall(Integer id, final ApiCallback _ + +
Status Code Description Response Headers
200 A list of Memory objects. -
401 Unauthorized -
404 Memory not found. -
0 Unexpected error -
*/ - public List getMemory(Integer id) throws ApiException { - ApiResponse> localVarResp = getMemoryWithHttpInfo(id); + public List getMemory(Boolean xIsAutomated, Boolean xIsExpectedError, Integer id) throws ApiException { + ApiResponse> localVarResp = getMemoryWithHttpInfo(xIsAutomated, xIsExpectedError, id); return localVarResp.getData(); } /** * Retrieve a Memory * Retrieve a Memory. If you cannot access the Memory (401 error) please check permissions (e.g. in case you created the Memory via the web app with a different account you may have to explicitly share that Memory). + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param id An optional Memory identifier. (optional) * @return ApiResponse<List<Memory>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -752,11 +822,13 @@ public List getMemory(Integer id) throws ApiException { + +
Status Code Description Response Headers
200 A list of Memory objects. -
401 Unauthorized -
404 Memory not found. -
0 Unexpected error -
*/ - public ApiResponse> getMemoryWithHttpInfo(Integer id) throws ApiException { - okhttp3.Call localVarCall = getMemoryValidateBeforeCall(id, null); + public ApiResponse> getMemoryWithHttpInfo(Boolean xIsAutomated, Boolean xIsExpectedError, Integer id) throws ApiException { + okhttp3.Call localVarCall = getMemoryValidateBeforeCall(xIsAutomated, xIsExpectedError, id, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -764,6 +836,8 @@ public ApiResponse> getMemoryWithHttpInfo(Integer id) throws ApiExc /** * Retrieve a Memory (asynchronously) * Retrieve a Memory. If you cannot access the Memory (401 error) please check permissions (e.g. in case you created the Memory via the web app with a different account you may have to explicitly share that Memory). + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param id An optional Memory identifier. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -772,12 +846,14 @@ public ApiResponse> getMemoryWithHttpInfo(Integer id) throws ApiExc + +
Status Code Description Response Headers
200 A list of Memory objects. -
401 Unauthorized -
404 Memory not found. -
0 Unexpected error -
*/ - public okhttp3.Call getMemoryAsync(Integer id, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getMemoryAsync(Boolean xIsAutomated, Boolean xIsExpectedError, Integer id, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = getMemoryValidateBeforeCall(id, _callback); + okhttp3.Call localVarCall = getMemoryValidateBeforeCall(xIsAutomated, xIsExpectedError, id, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -787,6 +863,8 @@ public okhttp3.Call getMemoryAsync(Integer id, final ApiCallback> _ * @param memoryId A unique Memory identifier. (required) * @param name Name of the TM or termbase file. (required) * @param body The file contents to be uploaded. The entire POST body will be treated as the file. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param sdlxliffFilters Contains Filter information Unique to SDLXLIFF (optional) * @param hasHeaderRow A flag indicating whether an imported Termbase CSV has a header row or not (the default value is `false`). (optional) * @param skipDuplicates A flag indicating whether or not to skip the import of segments which already exist in the memory. (the default value is `false`). (optional) @@ -797,10 +875,11 @@ public okhttp3.Call getMemoryAsync(Integer id, final ApiCallback> _ +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call importMemoryFileCall(Integer memoryId, String name, File body, List sdlxliffFilters, Boolean hasHeaderRow, Boolean skipDuplicates, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importMemoryFileCall(Integer memoryId, String name, File body, Boolean xIsAutomated, Boolean xIsExpectedError, List sdlxliffFilters, Boolean hasHeaderRow, Boolean skipDuplicates, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables @@ -812,6 +891,14 @@ public okhttp3.Call importMemoryFileCall(Integer memoryId, String name, File bod Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (xIsAutomated != null) { + localVarHeaderParams.put("x-is-automated", localVarApiClient.parameterToString(xIsAutomated)); + } + + if (xIsExpectedError != null) { + localVarHeaderParams.put("x-is-expected-error", localVarApiClient.parameterToString(xIsExpectedError)); + } + if (memoryId != null) { localVarHeaderParams.put("memory_id", localVarApiClient.parameterToString(memoryId)); } @@ -833,7 +920,7 @@ public okhttp3.Call importMemoryFileCall(Integer memoryId, String name, File bod } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -851,7 +938,7 @@ public okhttp3.Call importMemoryFileCall(Integer memoryId, String name, File bod } @SuppressWarnings("rawtypes") - private okhttp3.Call importMemoryFileValidateBeforeCall(Integer memoryId, String name, File body, List sdlxliffFilters, Boolean hasHeaderRow, Boolean skipDuplicates, final ApiCallback _callback) throws ApiException { + private okhttp3.Call importMemoryFileValidateBeforeCall(Integer memoryId, String name, File body, Boolean xIsAutomated, Boolean xIsExpectedError, List sdlxliffFilters, Boolean hasHeaderRow, Boolean skipDuplicates, final ApiCallback _callback) throws ApiException { // verify the required parameter 'memoryId' is set if (memoryId == null) { @@ -869,7 +956,7 @@ private okhttp3.Call importMemoryFileValidateBeforeCall(Integer memoryId, String } - okhttp3.Call localVarCall = importMemoryFileCall(memoryId, name, body, sdlxliffFilters, hasHeaderRow, skipDuplicates, _callback); + okhttp3.Call localVarCall = importMemoryFileCall(memoryId, name, body, xIsAutomated, xIsExpectedError, sdlxliffFilters, hasHeaderRow, skipDuplicates, _callback); return localVarCall; } @@ -880,6 +967,8 @@ private okhttp3.Call importMemoryFileValidateBeforeCall(Integer memoryId, String * @param memoryId A unique Memory identifier. (required) * @param name Name of the TM or termbase file. (required) * @param body The file contents to be uploaded. The entire POST body will be treated as the file. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param sdlxliffFilters Contains Filter information Unique to SDLXLIFF (optional) * @param hasHeaderRow A flag indicating whether an imported Termbase CSV has a header row or not (the default value is `false`). (optional) * @param skipDuplicates A flag indicating whether or not to skip the import of segments which already exist in the memory. (the default value is `false`). (optional) @@ -889,11 +978,12 @@ private okhttp3.Call importMemoryFileValidateBeforeCall(Integer memoryId, String +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ - public MemoryImportResponse importMemoryFile(Integer memoryId, String name, File body, List sdlxliffFilters, Boolean hasHeaderRow, Boolean skipDuplicates) throws ApiException { - ApiResponse localVarResp = importMemoryFileWithHttpInfo(memoryId, name, body, sdlxliffFilters, hasHeaderRow, skipDuplicates); + public MemoryImportResponse importMemoryFile(Integer memoryId, String name, File body, Boolean xIsAutomated, Boolean xIsExpectedError, List sdlxliffFilters, Boolean hasHeaderRow, Boolean skipDuplicates) throws ApiException { + ApiResponse localVarResp = importMemoryFileWithHttpInfo(memoryId, name, body, xIsAutomated, xIsExpectedError, sdlxliffFilters, hasHeaderRow, skipDuplicates); return localVarResp.getData(); } @@ -903,6 +993,8 @@ public MemoryImportResponse importMemoryFile(Integer memoryId, String name, File * @param memoryId A unique Memory identifier. (required) * @param name Name of the TM or termbase file. (required) * @param body The file contents to be uploaded. The entire POST body will be treated as the file. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param sdlxliffFilters Contains Filter information Unique to SDLXLIFF (optional) * @param hasHeaderRow A flag indicating whether an imported Termbase CSV has a header row or not (the default value is `false`). (optional) * @param skipDuplicates A flag indicating whether or not to skip the import of segments which already exist in the memory. (the default value is `false`). (optional) @@ -912,11 +1004,12 @@ public MemoryImportResponse importMemoryFile(Integer memoryId, String name, File +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ - public ApiResponse importMemoryFileWithHttpInfo(Integer memoryId, String name, File body, List sdlxliffFilters, Boolean hasHeaderRow, Boolean skipDuplicates) throws ApiException { - okhttp3.Call localVarCall = importMemoryFileValidateBeforeCall(memoryId, name, body, sdlxliffFilters, hasHeaderRow, skipDuplicates, null); + public ApiResponse importMemoryFileWithHttpInfo(Integer memoryId, String name, File body, Boolean xIsAutomated, Boolean xIsExpectedError, List sdlxliffFilters, Boolean hasHeaderRow, Boolean skipDuplicates) throws ApiException { + okhttp3.Call localVarCall = importMemoryFileValidateBeforeCall(memoryId, name, body, xIsAutomated, xIsExpectedError, sdlxliffFilters, hasHeaderRow, skipDuplicates, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -927,6 +1020,8 @@ public ApiResponse importMemoryFileWithHttpInfo(Integer me * @param memoryId A unique Memory identifier. (required) * @param name Name of the TM or termbase file. (required) * @param body The file contents to be uploaded. The entire POST body will be treated as the file. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param sdlxliffFilters Contains Filter information Unique to SDLXLIFF (optional) * @param hasHeaderRow A flag indicating whether an imported Termbase CSV has a header row or not (the default value is `false`). (optional) * @param skipDuplicates A flag indicating whether or not to skip the import of segments which already exist in the memory. (the default value is `false`). (optional) @@ -937,12 +1032,13 @@ public ApiResponse importMemoryFileWithHttpInfo(Integer me +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call importMemoryFileAsync(Integer memoryId, String name, File body, List sdlxliffFilters, Boolean hasHeaderRow, Boolean skipDuplicates, final ApiCallback _callback) throws ApiException { + public okhttp3.Call importMemoryFileAsync(Integer memoryId, String name, File body, Boolean xIsAutomated, Boolean xIsExpectedError, List sdlxliffFilters, Boolean hasHeaderRow, Boolean skipDuplicates, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = importMemoryFileValidateBeforeCall(memoryId, name, body, sdlxliffFilters, hasHeaderRow, skipDuplicates, _callback); + okhttp3.Call localVarCall = importMemoryFileValidateBeforeCall(memoryId, name, body, xIsAutomated, xIsExpectedError, sdlxliffFilters, hasHeaderRow, skipDuplicates, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -951,6 +1047,8 @@ public okhttp3.Call importMemoryFileAsync(Integer memoryId, String name, File bo * Build call for queryMemory * @param id A unique Memory identifier. (required) * @param query A source query. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param n Maximum number of results to return. (optional, default to 10) * @param _callback Callback for upload/download progress * @return Call to execute @@ -959,10 +1057,11 @@ public okhttp3.Call importMemoryFileAsync(Integer memoryId, String name, File bo +
Status Code Description Response Headers
200 A list of TranslationMemoryEntry objects. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call queryMemoryCall(Integer id, String query, Integer n, final ApiCallback _callback) throws ApiException { + public okhttp3.Call queryMemoryCall(Integer id, String query, Boolean xIsAutomated, Boolean xIsExpectedError, Integer n, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -986,8 +1085,16 @@ public okhttp3.Call queryMemoryCall(Integer id, String query, Integer n, final A localVarQueryParams.addAll(localVarApiClient.parameterToPair("n", n)); } + if (xIsAutomated != null) { + localVarHeaderParams.put("x-is-automated", localVarApiClient.parameterToString(xIsAutomated)); + } + + if (xIsExpectedError != null) { + localVarHeaderParams.put("x-is-expected-error", localVarApiClient.parameterToString(xIsExpectedError)); + } + final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1005,7 +1112,7 @@ public okhttp3.Call queryMemoryCall(Integer id, String query, Integer n, final A } @SuppressWarnings("rawtypes") - private okhttp3.Call queryMemoryValidateBeforeCall(Integer id, String query, Integer n, final ApiCallback _callback) throws ApiException { + private okhttp3.Call queryMemoryValidateBeforeCall(Integer id, String query, Boolean xIsAutomated, Boolean xIsExpectedError, Integer n, final ApiCallback _callback) throws ApiException { // verify the required parameter 'id' is set if (id == null) { @@ -1018,16 +1125,18 @@ private okhttp3.Call queryMemoryValidateBeforeCall(Integer id, String query, Int } - okhttp3.Call localVarCall = queryMemoryCall(id, query, n, _callback); + okhttp3.Call localVarCall = queryMemoryCall(id, query, xIsAutomated, xIsExpectedError, n, _callback); return localVarCall; } /** * Query a Memory - * Perform a translation memory query. + * Perform a translation memory query. * @param id A unique Memory identifier. (required) * @param query A source query. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param n Maximum number of results to return. (optional, default to 10) * @return List<TranslationMemoryEntry> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1035,19 +1144,22 @@ private okhttp3.Call queryMemoryValidateBeforeCall(Integer id, String query, Int +
Status Code Description Response Headers
200 A list of TranslationMemoryEntry objects. -
401 Unauthorized -
0 Unexpected error -
*/ - public List queryMemory(Integer id, String query, Integer n) throws ApiException { - ApiResponse> localVarResp = queryMemoryWithHttpInfo(id, query, n); + public List queryMemory(Integer id, String query, Boolean xIsAutomated, Boolean xIsExpectedError, Integer n) throws ApiException { + ApiResponse> localVarResp = queryMemoryWithHttpInfo(id, query, xIsAutomated, xIsExpectedError, n); return localVarResp.getData(); } /** * Query a Memory - * Perform a translation memory query. + * Perform a translation memory query. * @param id A unique Memory identifier. (required) * @param query A source query. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param n Maximum number of results to return. (optional, default to 10) * @return ApiResponse<List<TranslationMemoryEntry>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1055,20 +1167,23 @@ public List queryMemory(Integer id, String query, Intege +
Status Code Description Response Headers
200 A list of TranslationMemoryEntry objects. -
401 Unauthorized -
0 Unexpected error -
*/ - public ApiResponse> queryMemoryWithHttpInfo(Integer id, String query, Integer n) throws ApiException { - okhttp3.Call localVarCall = queryMemoryValidateBeforeCall(id, query, n, null); + public ApiResponse> queryMemoryWithHttpInfo(Integer id, String query, Boolean xIsAutomated, Boolean xIsExpectedError, Integer n) throws ApiException { + okhttp3.Call localVarCall = queryMemoryValidateBeforeCall(id, query, xIsAutomated, xIsExpectedError, n, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Query a Memory (asynchronously) - * Perform a translation memory query. + * Perform a translation memory query. * @param id A unique Memory identifier. (required) * @param query A source query. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param n Maximum number of results to return. (optional, default to 10) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1077,12 +1192,13 @@ public ApiResponse> queryMemoryWithHttpInfo(Integer +
Status Code Description Response Headers
200 A list of TranslationMemoryEntry objects. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call queryMemoryAsync(Integer id, String query, Integer n, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call queryMemoryAsync(Integer id, String query, Boolean xIsAutomated, Boolean xIsExpectedError, Integer n, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = queryMemoryValidateBeforeCall(id, query, n, _callback); + okhttp3.Call localVarCall = queryMemoryValidateBeforeCall(id, query, xIsAutomated, xIsExpectedError, n, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1097,6 +1213,7 @@ public okhttp3.Call queryMemoryAsync(Integer id, String query, Integer n, final +
Status Code Description Response Headers
200 A Memory object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1113,7 +1230,7 @@ public okhttp3.Call updateMemoryCall(MemoryUpdateParameters body, final ApiCallb Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1154,6 +1271,7 @@ private okhttp3.Call updateMemoryValidateBeforeCall(MemoryUpdateParameters body, +
Status Code Description Response Headers
200 A Memory object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1172,6 +1290,7 @@ public Memory updateMemory(MemoryUpdateParameters body) throws ApiException { +
Status Code Description Response Headers
200 A Memory object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1192,6 +1311,7 @@ public ApiResponse updateMemoryWithHttpInfo(MemoryUpdateParameters body) +
Status Code Description Response Headers
200 A Memory object. -
401 Unauthorized -
0 Unexpected error -
*/ diff --git a/src/main/java/com/lilt/client/api/ProjectsApi.java b/src/main/java/com/lilt/client/api/ProjectsApi.java index 1292bd6ff..57056f47e 100644 --- a/src/main/java/com/lilt/client/api/ProjectsApi.java +++ b/src/main/java/com/lilt/client/api/ProjectsApi.java @@ -67,6 +67,7 @@ public void setApiClient(ApiClient apiClient) { +
Status Code Description Response Headers
200 A Project object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -83,7 +84,7 @@ public okhttp3.Call createProjectCall(ProjectCreateParameters body, final ApiCal Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -124,6 +125,7 @@ private okhttp3.Call createProjectValidateBeforeCall(ProjectCreateParameters bod +
Status Code Description Response Headers
200 A Project object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -142,6 +144,7 @@ public Project createProject(ProjectCreateParameters body) throws ApiException { +
Status Code Description Response Headers
200 A Project object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -162,6 +165,7 @@ public ApiResponse createProjectWithHttpInfo(ProjectCreateParameters bo +
Status Code Description Response Headers
200 A Project object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -182,6 +186,7 @@ public okhttp3.Call createProjectAsync(ProjectCreateParameters body, final ApiCa +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -202,7 +207,7 @@ public okhttp3.Call deleteProjectCall(Integer id, final ApiCallback _callback) t } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -238,6 +243,7 @@ private okhttp3.Call deleteProjectValidateBeforeCall(Integer id, final ApiCallba +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -256,6 +262,7 @@ public ProjectDeleteResponse deleteProject(Integer id) throws ApiException { +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -276,6 +283,7 @@ public ApiResponse deleteProjectWithHttpInfo(Integer id) +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -303,6 +311,7 @@ public okhttp3.Call deleteProjectAsync(Integer id, final ApiCallback Status Code Description Response Headers 200 A list of Project objects. - + 401 Unauthorized - 0 Unexpected error - */ @@ -351,7 +360,7 @@ public okhttp3.Call getProjectsCall(Integer id, String srclang, String trglang, } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -394,6 +403,7 @@ private okhttp3.Call getProjectsValidateBeforeCall(Integer id, String srclang, S +
Status Code Description Response Headers
200 A list of Project objects. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -419,6 +429,7 @@ public List getProjects(Integer id, String srclang, String trglang, Int +
Status Code Description Response Headers
200 A list of Project objects. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -446,6 +457,7 @@ public ApiResponse> getProjectsWithHttpInfo(Integer id, String src +
Status Code Description Response Headers
200 A list of Project objects. -
401 Unauthorized -
0 Unexpected error -
*/ diff --git a/src/main/java/com/lilt/client/api/TranslateApi.java b/src/main/java/com/lilt/client/api/TranslateApi.java index 5236ddd85..edf4ec3d2 100644 --- a/src/main/java/com/lilt/client/api/TranslateApi.java +++ b/src/main/java/com/lilt/client/api/TranslateApi.java @@ -62,6 +62,8 @@ public void setApiClient(ApiClient apiClient) { * Build call for batchTranslateFile * @param fileId List of File ids to be translated, comma separated. (required) * @param memoryId Id of Memory to use in translation. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param configId An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file. (optional) * @param withTM An optional boolean parameter to toggle the use of Translation Memory in the translation of the file. (optional) * @param _callback Callback for upload/download progress @@ -71,10 +73,11 @@ public void setApiClient(ApiClient apiClient) { +
Status Code Description Response Headers
200 Translation Info -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call batchTranslateFileCall(String fileId, String memoryId, BigDecimal configId, Boolean withTM, final ApiCallback _callback) throws ApiException { + public okhttp3.Call batchTranslateFileCall(String fileId, String memoryId, Boolean xIsAutomated, Boolean xIsExpectedError, BigDecimal configId, Boolean withTM, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -102,8 +105,16 @@ public okhttp3.Call batchTranslateFileCall(String fileId, String memoryId, BigDe localVarQueryParams.addAll(localVarApiClient.parameterToPair("withTM", withTM)); } + if (xIsAutomated != null) { + localVarHeaderParams.put("x-is-automated", localVarApiClient.parameterToString(xIsAutomated)); + } + + if (xIsExpectedError != null) { + localVarHeaderParams.put("x-is-expected-error", localVarApiClient.parameterToString(xIsExpectedError)); + } + final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -121,7 +132,7 @@ public okhttp3.Call batchTranslateFileCall(String fileId, String memoryId, BigDe } @SuppressWarnings("rawtypes") - private okhttp3.Call batchTranslateFileValidateBeforeCall(String fileId, String memoryId, BigDecimal configId, Boolean withTM, final ApiCallback _callback) throws ApiException { + private okhttp3.Call batchTranslateFileValidateBeforeCall(String fileId, String memoryId, Boolean xIsAutomated, Boolean xIsExpectedError, BigDecimal configId, Boolean withTM, final ApiCallback _callback) throws ApiException { // verify the required parameter 'fileId' is set if (fileId == null) { @@ -134,7 +145,7 @@ private okhttp3.Call batchTranslateFileValidateBeforeCall(String fileId, String } - okhttp3.Call localVarCall = batchTranslateFileCall(fileId, memoryId, configId, withTM, _callback); + okhttp3.Call localVarCall = batchTranslateFileCall(fileId, memoryId, xIsAutomated, xIsExpectedError, configId, withTM, _callback); return localVarCall; } @@ -144,6 +155,8 @@ private okhttp3.Call batchTranslateFileValidateBeforeCall(String fileId, String * Start machine translation of one or more Files that have previously been uploaded. The response will include an `id` parameter that can be used to monitor and download the translations in subsequent calls. Example CURL: ```bash curl -X POST 'https://api.lilt.com/v2/translate/file?key=API_KEY&fileId=583&memoryId=2495&configId=123&withTM=true' ``` * @param fileId List of File ids to be translated, comma separated. (required) * @param memoryId Id of Memory to use in translation. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param configId An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file. (optional) * @param withTM An optional boolean parameter to toggle the use of Translation Memory in the translation of the file. (optional) * @return List<TranslationInfo> @@ -152,11 +165,12 @@ private okhttp3.Call batchTranslateFileValidateBeforeCall(String fileId, String +
Status Code Description Response Headers
200 Translation Info -
401 Unauthorized -
0 Unexpected error -
*/ - public List batchTranslateFile(String fileId, String memoryId, BigDecimal configId, Boolean withTM) throws ApiException { - ApiResponse> localVarResp = batchTranslateFileWithHttpInfo(fileId, memoryId, configId, withTM); + public List batchTranslateFile(String fileId, String memoryId, Boolean xIsAutomated, Boolean xIsExpectedError, BigDecimal configId, Boolean withTM) throws ApiException { + ApiResponse> localVarResp = batchTranslateFileWithHttpInfo(fileId, memoryId, xIsAutomated, xIsExpectedError, configId, withTM); return localVarResp.getData(); } @@ -165,6 +179,8 @@ public List batchTranslateFile(String fileId, String memoryId, * Start machine translation of one or more Files that have previously been uploaded. The response will include an `id` parameter that can be used to monitor and download the translations in subsequent calls. Example CURL: ```bash curl -X POST 'https://api.lilt.com/v2/translate/file?key=API_KEY&fileId=583&memoryId=2495&configId=123&withTM=true' ``` * @param fileId List of File ids to be translated, comma separated. (required) * @param memoryId Id of Memory to use in translation. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param configId An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file. (optional) * @param withTM An optional boolean parameter to toggle the use of Translation Memory in the translation of the file. (optional) * @return ApiResponse<List<TranslationInfo>> @@ -173,11 +189,12 @@ public List batchTranslateFile(String fileId, String memoryId, +
Status Code Description Response Headers
200 Translation Info -
401 Unauthorized -
0 Unexpected error -
*/ - public ApiResponse> batchTranslateFileWithHttpInfo(String fileId, String memoryId, BigDecimal configId, Boolean withTM) throws ApiException { - okhttp3.Call localVarCall = batchTranslateFileValidateBeforeCall(fileId, memoryId, configId, withTM, null); + public ApiResponse> batchTranslateFileWithHttpInfo(String fileId, String memoryId, Boolean xIsAutomated, Boolean xIsExpectedError, BigDecimal configId, Boolean withTM) throws ApiException { + okhttp3.Call localVarCall = batchTranslateFileValidateBeforeCall(fileId, memoryId, xIsAutomated, xIsExpectedError, configId, withTM, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -187,6 +204,8 @@ public ApiResponse> batchTranslateFileWithHttpInfo(String * Start machine translation of one or more Files that have previously been uploaded. The response will include an `id` parameter that can be used to monitor and download the translations in subsequent calls. Example CURL: ```bash curl -X POST 'https://api.lilt.com/v2/translate/file?key=API_KEY&fileId=583&memoryId=2495&configId=123&withTM=true' ``` * @param fileId List of File ids to be translated, comma separated. (required) * @param memoryId Id of Memory to use in translation. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param configId An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file. (optional) * @param withTM An optional boolean parameter to toggle the use of Translation Memory in the translation of the file. (optional) * @param _callback The callback to be executed when the API call finishes @@ -196,12 +215,13 @@ public ApiResponse> batchTranslateFileWithHttpInfo(String +
Status Code Description Response Headers
200 Translation Info -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call batchTranslateFileAsync(String fileId, String memoryId, BigDecimal configId, Boolean withTM, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call batchTranslateFileAsync(String fileId, String memoryId, Boolean xIsAutomated, Boolean xIsExpectedError, BigDecimal configId, Boolean withTM, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = batchTranslateFileValidateBeforeCall(fileId, memoryId, configId, withTM, _callback); + okhttp3.Call localVarCall = batchTranslateFileValidateBeforeCall(fileId, memoryId, xIsAutomated, xIsExpectedError, configId, withTM, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -209,6 +229,8 @@ public okhttp3.Call batchTranslateFileAsync(String fileId, String memoryId, BigD /** * Build call for downloadFile * @param id A translation id. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -216,9 +238,11 @@ public okhttp3.Call batchTranslateFileAsync(String fileId, String memoryId, BigD + +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call downloadFileCall(String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call downloadFileCall(String id, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -234,8 +258,16 @@ public okhttp3.Call downloadFileCall(String id, final ApiCallback _callback) thr localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id)); } + if (xIsAutomated != null) { + localVarHeaderParams.put("x-is-automated", localVarApiClient.parameterToString(xIsAutomated)); + } + + if (xIsExpectedError != null) { + localVarHeaderParams.put("x-is-expected-error", localVarApiClient.parameterToString(xIsExpectedError)); + } + final String[] localVarAccepts = { - "application/octet-stream" + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -253,7 +285,7 @@ public okhttp3.Call downloadFileCall(String id, final ApiCallback _callback) thr } @SuppressWarnings("rawtypes") - private okhttp3.Call downloadFileValidateBeforeCall(String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call downloadFileValidateBeforeCall(String id, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { // verify the required parameter 'id' is set if (id == null) { @@ -261,7 +293,7 @@ private okhttp3.Call downloadFileValidateBeforeCall(String id, final ApiCallback } - okhttp3.Call localVarCall = downloadFileCall(id, _callback); + okhttp3.Call localVarCall = downloadFileCall(id, xIsAutomated, xIsExpectedError, _callback); return localVarCall; } @@ -270,16 +302,20 @@ private okhttp3.Call downloadFileValidateBeforeCall(String id, final ApiCallback * Download translated file * Download a translated File. Example CURL: ```bash curl -X GET 'https://api.lilt.com/v2/translate/files?key=API_KEY&id=1' ``` * @param id A translation id. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @return byte[] * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ - public byte[] downloadFile(String id) throws ApiException { - ApiResponse localVarResp = downloadFileWithHttpInfo(id); + public byte[] downloadFile(String id, Boolean xIsAutomated, Boolean xIsExpectedError) throws ApiException { + ApiResponse localVarResp = downloadFileWithHttpInfo(id, xIsAutomated, xIsExpectedError); return localVarResp.getData(); } @@ -287,16 +323,20 @@ public byte[] downloadFile(String id) throws ApiException { * Download translated file * Download a translated File. Example CURL: ```bash curl -X GET 'https://api.lilt.com/v2/translate/files?key=API_KEY&id=1' ``` * @param id A translation id. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @return ApiResponse<byte[]> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details + +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ - public ApiResponse downloadFileWithHttpInfo(String id) throws ApiException { - okhttp3.Call localVarCall = downloadFileValidateBeforeCall(id, null); + public ApiResponse downloadFileWithHttpInfo(String id, Boolean xIsAutomated, Boolean xIsExpectedError) throws ApiException { + okhttp3.Call localVarCall = downloadFileValidateBeforeCall(id, xIsAutomated, xIsExpectedError, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -305,6 +345,8 @@ public ApiResponse downloadFileWithHttpInfo(String id) throws ApiExcepti * Download translated file (asynchronously) * Download a translated File. Example CURL: ```bash curl -X GET 'https://api.lilt.com/v2/translate/files?key=API_KEY&id=1' ``` * @param id A translation id. (required) + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -312,17 +354,21 @@ public ApiResponse downloadFileWithHttpInfo(String id) throws ApiExcepti + +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call downloadFileAsync(String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call downloadFileAsync(String id, Boolean xIsAutomated, Boolean xIsExpectedError, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = downloadFileValidateBeforeCall(id, _callback); + okhttp3.Call localVarCall = downloadFileValidateBeforeCall(id, xIsAutomated, xIsExpectedError, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for monitorFileTranslation + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param translationIds List of translation ids, comma separated (optional) * @param status One of the translation statuses - `InProgress`, `Completed`, `Failed`, `ReadyForDownload` (optional) * @param fromTime Results after this time (inclusive) will be returned, specified as seconds since the Unix epoch. (optional) @@ -334,10 +380,11 @@ public okhttp3.Call downloadFileAsync(String id, final ApiCallback _call +
Status Code Description Response Headers
200 Translation Info -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call monitorFileTranslationCall(String translationIds, String status, BigDecimal fromTime, BigDecimal toTime, final ApiCallback _callback) throws ApiException { + public okhttp3.Call monitorFileTranslationCall(Boolean xIsAutomated, Boolean xIsExpectedError, String translationIds, String status, BigDecimal fromTime, BigDecimal toTime, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -365,8 +412,16 @@ public okhttp3.Call monitorFileTranslationCall(String translationIds, String sta localVarQueryParams.addAll(localVarApiClient.parameterToPair("toTime", toTime)); } + if (xIsAutomated != null) { + localVarHeaderParams.put("x-is-automated", localVarApiClient.parameterToString(xIsAutomated)); + } + + if (xIsExpectedError != null) { + localVarHeaderParams.put("x-is-expected-error", localVarApiClient.parameterToString(xIsExpectedError)); + } + final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -384,10 +439,10 @@ public okhttp3.Call monitorFileTranslationCall(String translationIds, String sta } @SuppressWarnings("rawtypes") - private okhttp3.Call monitorFileTranslationValidateBeforeCall(String translationIds, String status, BigDecimal fromTime, BigDecimal toTime, final ApiCallback _callback) throws ApiException { + private okhttp3.Call monitorFileTranslationValidateBeforeCall(Boolean xIsAutomated, Boolean xIsExpectedError, String translationIds, String status, BigDecimal fromTime, BigDecimal toTime, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = monitorFileTranslationCall(translationIds, status, fromTime, toTime, _callback); + okhttp3.Call localVarCall = monitorFileTranslationCall(xIsAutomated, xIsExpectedError, translationIds, status, fromTime, toTime, _callback); return localVarCall; } @@ -395,6 +450,8 @@ private okhttp3.Call monitorFileTranslationValidateBeforeCall(String translation /** * Monitor file translation * Get information about the one or more Files that are being translated with machine translation. Query filters are optional but at least one must be provided. Example CURL: ```bash curl -X GET 'https://api.lilt.com/v2/translate/file?key=API_KEY&translationIds=1,2&fromTime=1607966744&toTime=1707966744&status=InProgress' ``` + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param translationIds List of translation ids, comma separated (optional) * @param status One of the translation statuses - `InProgress`, `Completed`, `Failed`, `ReadyForDownload` (optional) * @param fromTime Results after this time (inclusive) will be returned, specified as seconds since the Unix epoch. (optional) @@ -405,17 +462,20 @@ private okhttp3.Call monitorFileTranslationValidateBeforeCall(String translation +
Status Code Description Response Headers
200 Translation Info -
401 Unauthorized -
0 Unexpected error -
*/ - public List monitorFileTranslation(String translationIds, String status, BigDecimal fromTime, BigDecimal toTime) throws ApiException { - ApiResponse> localVarResp = monitorFileTranslationWithHttpInfo(translationIds, status, fromTime, toTime); + public List monitorFileTranslation(Boolean xIsAutomated, Boolean xIsExpectedError, String translationIds, String status, BigDecimal fromTime, BigDecimal toTime) throws ApiException { + ApiResponse> localVarResp = monitorFileTranslationWithHttpInfo(xIsAutomated, xIsExpectedError, translationIds, status, fromTime, toTime); return localVarResp.getData(); } /** * Monitor file translation * Get information about the one or more Files that are being translated with machine translation. Query filters are optional but at least one must be provided. Example CURL: ```bash curl -X GET 'https://api.lilt.com/v2/translate/file?key=API_KEY&translationIds=1,2&fromTime=1607966744&toTime=1707966744&status=InProgress' ``` + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param translationIds List of translation ids, comma separated (optional) * @param status One of the translation statuses - `InProgress`, `Completed`, `Failed`, `ReadyForDownload` (optional) * @param fromTime Results after this time (inclusive) will be returned, specified as seconds since the Unix epoch. (optional) @@ -426,11 +486,12 @@ public List monitorFileTranslation(String translationIds, Strin +
Status Code Description Response Headers
200 Translation Info -
401 Unauthorized -
0 Unexpected error -
*/ - public ApiResponse> monitorFileTranslationWithHttpInfo(String translationIds, String status, BigDecimal fromTime, BigDecimal toTime) throws ApiException { - okhttp3.Call localVarCall = monitorFileTranslationValidateBeforeCall(translationIds, status, fromTime, toTime, null); + public ApiResponse> monitorFileTranslationWithHttpInfo(Boolean xIsAutomated, Boolean xIsExpectedError, String translationIds, String status, BigDecimal fromTime, BigDecimal toTime) throws ApiException { + okhttp3.Call localVarCall = monitorFileTranslationValidateBeforeCall(xIsAutomated, xIsExpectedError, translationIds, status, fromTime, toTime, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -438,6 +499,8 @@ public ApiResponse> monitorFileTranslationWithHttpInfo(Str /** * Monitor file translation (asynchronously) * Get information about the one or more Files that are being translated with machine translation. Query filters are optional but at least one must be provided. Example CURL: ```bash curl -X GET 'https://api.lilt.com/v2/translate/file?key=API_KEY&translationIds=1,2&fromTime=1607966744&toTime=1707966744&status=InProgress' ``` + * @param xIsAutomated A boolean value that indicates whether the request is automated or not. (optional) + * @param xIsExpectedError A boolean value that indicates whether the request is expected to return an error or not. (optional) * @param translationIds List of translation ids, comma separated (optional) * @param status One of the translation statuses - `InProgress`, `Completed`, `Failed`, `ReadyForDownload` (optional) * @param fromTime Results after this time (inclusive) will be returned, specified as seconds since the Unix epoch. (optional) @@ -449,12 +512,13 @@ public ApiResponse> monitorFileTranslationWithHttpInfo(Str +
Status Code Description Response Headers
200 Translation Info -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call monitorFileTranslationAsync(String translationIds, String status, BigDecimal fromTime, BigDecimal toTime, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call monitorFileTranslationAsync(Boolean xIsAutomated, Boolean xIsExpectedError, String translationIds, String status, BigDecimal fromTime, BigDecimal toTime, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = monitorFileTranslationValidateBeforeCall(translationIds, status, fromTime, toTime, _callback); + okhttp3.Call localVarCall = monitorFileTranslationValidateBeforeCall(xIsAutomated, xIsExpectedError, translationIds, status, fromTime, toTime, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -469,6 +533,7 @@ public okhttp3.Call monitorFileTranslationAsync(String translationIds, String st +
Status Code Description Response Headers
200 A TranslationList object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -485,7 +550,7 @@ public okhttp3.Call translateSegmentPostCall(TranslateSegmentBody body, final Ap Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -521,6 +586,7 @@ private okhttp3.Call translateSegmentPostValidateBeforeCall(TranslateSegmentBody +
Status Code Description Response Headers
200 A TranslationList object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -539,6 +605,7 @@ public TranslationList translateSegmentPost(TranslateSegmentBody body) throws Ap +
Status Code Description Response Headers
200 A TranslationList object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -559,6 +626,7 @@ public ApiResponse translateSegmentPostWithHttpInfo(TranslateSe +
Status Code Description Response Headers
200 A TranslationList object. -
401 Unauthorized -
0 Unexpected error -
*/ diff --git a/src/main/java/com/lilt/client/api/WorkflowsApi.java b/src/main/java/com/lilt/client/api/WorkflowsApi.java index 4d44c81aa..35075f157 100644 --- a/src/main/java/com/lilt/client/api/WorkflowsApi.java +++ b/src/main/java/com/lilt/client/api/WorkflowsApi.java @@ -27,6 +27,7 @@ import java.io.IOException; +import com.lilt.client.model.Error; import com.lilt.client.model.WorkflowTemplate; import java.lang.reflect.Type; @@ -63,6 +64,8 @@ public void setApiClient(ApiClient apiClient) { + +
Status Code Description Response Headers
200 An array with a team's available WorkflowTemplates. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call getWorkflowTemplatesCall(final ApiCallback _callback) throws ApiException { @@ -78,7 +81,7 @@ public okhttp3.Call getWorkflowTemplatesCall(final ApiCallback _callback) throws Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -113,6 +116,8 @@ private okhttp3.Call getWorkflowTemplatesValidateBeforeCall(final ApiCallback _c + +
Status Code Description Response Headers
200 An array with a team's available WorkflowTemplates. -
401 Unauthorized -
0 Unexpected error -
*/ public List getWorkflowTemplates() throws ApiException { @@ -129,6 +134,8 @@ public List getWorkflowTemplates() throws ApiException { + +
Status Code Description Response Headers
200 An array with a team's available WorkflowTemplates. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse> getWorkflowTemplatesWithHttpInfo() throws ApiException { @@ -147,6 +154,8 @@ public ApiResponse> getWorkflowTemplatesWithHttpInfo() th + +
Status Code Description Response Headers
200 An array with a team's available WorkflowTemplates. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call getWorkflowTemplatesAsync(final ApiCallback> _callback) throws ApiException { diff --git a/src/main/java/com/lilt/client/auth/ApiKeyAuth.java b/src/main/java/com/lilt/client/auth/ApiKeyAuth.java index 4e96d388a..78cca7ec9 100644 --- a/src/main/java/com/lilt/client/auth/ApiKeyAuth.java +++ b/src/main/java/com/lilt/client/auth/ApiKeyAuth.java @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/com/lilt/client/auth/HttpBearerAuth.java b/src/main/java/com/lilt/client/auth/HttpBearerAuth.java index dcb28dc0a..2c288e4b6 100644 --- a/src/main/java/com/lilt/client/auth/HttpBearerAuth.java +++ b/src/main/java/com/lilt/client/auth/HttpBearerAuth.java @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/main/java/com/lilt/client/model/AddFileLabelRequest.java b/src/main/java/com/lilt/client/model/AddFileLabelRequest.java index 4b1659af2..16f5c3153 100644 --- a/src/main/java/com/lilt/client/model/AddFileLabelRequest.java +++ b/src/main/java/com/lilt/client/model/AddFileLabelRequest.java @@ -27,7 +27,7 @@ /** * AddFileLabelRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class AddFileLabelRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/lilt/client/model/CreateConverterConfigParameters.java b/src/main/java/com/lilt/client/model/CreateConverterConfigParameters.java index dc85c0e78..e9ca74b3a 100644 --- a/src/main/java/com/lilt/client/model/CreateConverterConfigParameters.java +++ b/src/main/java/com/lilt/client/model/CreateConverterConfigParameters.java @@ -27,7 +27,7 @@ /** * CreateConverterConfigParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class CreateConverterConfigParameters { public static final String SERIALIZED_NAME_SIGNED_AGREEMENT = "signedAgreement"; @SerializedName(SERIALIZED_NAME_SIGNED_AGREEMENT) diff --git a/src/main/java/com/lilt/client/model/DeleteSegmentFromMemoryResponse.java b/src/main/java/com/lilt/client/model/DeleteSegmentFromMemoryResponse.java index 45fd503c7..d3907d1d7 100644 --- a/src/main/java/com/lilt/client/model/DeleteSegmentFromMemoryResponse.java +++ b/src/main/java/com/lilt/client/model/DeleteSegmentFromMemoryResponse.java @@ -27,7 +27,7 @@ /** * DeleteSegmentFromMemoryResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class DeleteSegmentFromMemoryResponse { public static final String SERIALIZED_NAME_SUCCESS = "success"; @SerializedName(SERIALIZED_NAME_SUCCESS) diff --git a/src/main/java/com/lilt/client/model/DocumentWithSegments.java b/src/main/java/com/lilt/client/model/DocumentWithSegments.java index 157b559c9..a6cd8ba3f 100644 --- a/src/main/java/com/lilt/client/model/DocumentWithSegments.java +++ b/src/main/java/com/lilt/client/model/DocumentWithSegments.java @@ -32,7 +32,7 @@ * A Document is a collection of zero or more Segments. */ @ApiModel(description = "A Document is a collection of zero or more Segments. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class DocumentWithSegments { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/DocumentWithoutSegments.java b/src/main/java/com/lilt/client/model/DocumentWithoutSegments.java index 5f3985a57..75428334b 100644 --- a/src/main/java/com/lilt/client/model/DocumentWithoutSegments.java +++ b/src/main/java/com/lilt/client/model/DocumentWithoutSegments.java @@ -29,7 +29,7 @@ * A Document is a collection of zero or more Segments. */ @ApiModel(description = "A Document is a collection of zero or more Segments. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class DocumentWithoutSegments { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/DocumentWithoutSegmentsStatus.java b/src/main/java/com/lilt/client/model/DocumentWithoutSegmentsStatus.java index 00da4dc90..950e2da56 100644 --- a/src/main/java/com/lilt/client/model/DocumentWithoutSegmentsStatus.java +++ b/src/main/java/com/lilt/client/model/DocumentWithoutSegmentsStatus.java @@ -28,7 +28,7 @@ * A list of translations for the query term. */ @ApiModel(description = "A list of translations for the query term.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class DocumentWithoutSegmentsStatus { /** * Gets or Sets pretranslation diff --git a/src/main/java/com/lilt/client/model/Error.java b/src/main/java/com/lilt/client/model/Error.java index f41c75781..b19681e84 100644 --- a/src/main/java/com/lilt/client/model/Error.java +++ b/src/main/java/com/lilt/client/model/Error.java @@ -28,14 +28,14 @@ * Response in the event of an unexpected error. */ @ApiModel(description = "Response in the event of an unexpected error. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class Error { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) - private Object message; + private String message; - public Error message(Object message) { + public Error message(String message) { this.message = message; return this; @@ -48,12 +48,12 @@ public Error message(Object message) { @javax.annotation.Nullable @ApiModelProperty(value = "A human-readable message describing the error.") - public Object getMessage() { + public String getMessage() { return message; } - public void setMessage(Object message) { + public void setMessage(String message) { this.message = message; } diff --git a/src/main/java/com/lilt/client/model/FileDeleteResponse.java b/src/main/java/com/lilt/client/model/FileDeleteResponse.java index 7775ffa76..7312f8647 100644 --- a/src/main/java/com/lilt/client/model/FileDeleteResponse.java +++ b/src/main/java/com/lilt/client/model/FileDeleteResponse.java @@ -27,7 +27,7 @@ /** * FileDeleteResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class FileDeleteResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/GetLiltCreateContentResponse.java b/src/main/java/com/lilt/client/model/GetLiltCreateContentResponse.java index 07f683871..c73c6741b 100644 --- a/src/main/java/com/lilt/client/model/GetLiltCreateContentResponse.java +++ b/src/main/java/com/lilt/client/model/GetLiltCreateContentResponse.java @@ -30,7 +30,7 @@ /** * GetLiltCreateContentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class GetLiltCreateContentResponse { public static final String SERIALIZED_NAME_CONTENTS = "contents"; @SerializedName(SERIALIZED_NAME_CONTENTS) diff --git a/src/main/java/com/lilt/client/model/InlineResponse200.java b/src/main/java/com/lilt/client/model/InlineResponse200.java index af7c55aca..dedb54001 100644 --- a/src/main/java/com/lilt/client/model/InlineResponse200.java +++ b/src/main/java/com/lilt/client/model/InlineResponse200.java @@ -27,7 +27,7 @@ /** * InlineResponse200 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class InlineResponse200 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/Job.java b/src/main/java/com/lilt/client/model/Job.java index b25273c61..e65afb503 100644 --- a/src/main/java/com/lilt/client/model/Job.java +++ b/src/main/java/com/lilt/client/model/Job.java @@ -30,7 +30,7 @@ * A Job is a collection of multiple Projects. Each project is specific to a language pair, and is associated with exactly one Memory for that language pair. The Memory association cannot be changed after the Project is created. */ @ApiModel(description = "A Job is a collection of multiple Projects. Each project is specific to a language pair, and is associated with exactly one Memory for that language pair. The Memory association cannot be changed after the Project is created. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class Job { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/lilt/client/model/JobCreateParameters.java b/src/main/java/com/lilt/client/model/JobCreateParameters.java index 834421e69..e7c9a9d36 100644 --- a/src/main/java/com/lilt/client/model/JobCreateParameters.java +++ b/src/main/java/com/lilt/client/model/JobCreateParameters.java @@ -30,7 +30,7 @@ /** * JobCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class JobCreateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/lilt/client/model/JobDeleteResponse.java b/src/main/java/com/lilt/client/model/JobDeleteResponse.java index fcd1243ed..abe1a9e44 100644 --- a/src/main/java/com/lilt/client/model/JobDeleteResponse.java +++ b/src/main/java/com/lilt/client/model/JobDeleteResponse.java @@ -27,7 +27,7 @@ /** * JobDeleteResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class JobDeleteResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/JobLeverageStats.java b/src/main/java/com/lilt/client/model/JobLeverageStats.java index 68524788a..a4ed25b0b 100644 --- a/src/main/java/com/lilt/client/model/JobLeverageStats.java +++ b/src/main/java/com/lilt/client/model/JobLeverageStats.java @@ -31,7 +31,7 @@ * A job leverage stats object shows an overview of job's statistical data including total number of exact words, fuzzy words, and exact words for the job in total and for each project. */ @ApiModel(description = "A job leverage stats object shows an overview of job's statistical data including total number of exact words, fuzzy words, and exact words for the job in total and for each project. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class JobLeverageStats { public static final String SERIALIZED_NAME_SOURCE_WORDS = "sourceWords"; @SerializedName(SERIALIZED_NAME_SOURCE_WORDS) diff --git a/src/main/java/com/lilt/client/model/JobProject.java b/src/main/java/com/lilt/client/model/JobProject.java index 25fc9441c..aeba17303 100644 --- a/src/main/java/com/lilt/client/model/JobProject.java +++ b/src/main/java/com/lilt/client/model/JobProject.java @@ -28,7 +28,7 @@ * A job project contains project statistical data that belongs to a specific job. */ @ApiModel(description = "A job project contains project statistical data that belongs to a specific job. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class JobProject { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/JobStats.java b/src/main/java/com/lilt/client/model/JobStats.java index 10edce70b..e513f6dc2 100644 --- a/src/main/java/com/lilt/client/model/JobStats.java +++ b/src/main/java/com/lilt/client/model/JobStats.java @@ -31,7 +31,7 @@ * A job stats shows an overview of job's statistical data including total number of exact words, fuzzy words, language pairs, projects, etc. */ @ApiModel(description = "A job stats shows an overview of job's statistical data including total number of exact words, fuzzy words, language pairs, projects, etc. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class JobStats { public static final String SERIALIZED_NAME_EXACT_WORDS = "exactWords"; @SerializedName(SERIALIZED_NAME_EXACT_WORDS) diff --git a/src/main/java/com/lilt/client/model/JobUpdateParameters.java b/src/main/java/com/lilt/client/model/JobUpdateParameters.java index ef8d62489..f1c556b78 100644 --- a/src/main/java/com/lilt/client/model/JobUpdateParameters.java +++ b/src/main/java/com/lilt/client/model/JobUpdateParameters.java @@ -27,7 +27,7 @@ /** * JobUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class JobUpdateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/lilt/client/model/LanguagePair.java b/src/main/java/com/lilt/client/model/LanguagePair.java index 7ffe12b26..7b3be49cb 100644 --- a/src/main/java/com/lilt/client/model/LanguagePair.java +++ b/src/main/java/com/lilt/client/model/LanguagePair.java @@ -31,7 +31,7 @@ * A language pair couples the source and target language along with memory and pre-translations settings associated to a project. */ @ApiModel(description = "A language pair couples the source and target language along with memory and pre-translations settings associated to a project. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class LanguagePair { public static final String SERIALIZED_NAME_TRG_LANG = "trgLang"; @SerializedName(SERIALIZED_NAME_TRG_LANG) diff --git a/src/main/java/com/lilt/client/model/LanguagesResponse.java b/src/main/java/com/lilt/client/model/LanguagesResponse.java index 611f613cb..c82aa2846 100644 --- a/src/main/java/com/lilt/client/model/LanguagesResponse.java +++ b/src/main/java/com/lilt/client/model/LanguagesResponse.java @@ -27,7 +27,7 @@ /** * LanguagesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class LanguagesResponse { public static final String SERIALIZED_NAME_SOURCE_TO_TARGET = "source_to_target"; @SerializedName(SERIALIZED_NAME_SOURCE_TO_TARGET) diff --git a/src/main/java/com/lilt/client/model/LiltCreateContent.java b/src/main/java/com/lilt/client/model/LiltCreateContent.java index 1ca404578..9e9c42948 100644 --- a/src/main/java/com/lilt/client/model/LiltCreateContent.java +++ b/src/main/java/com/lilt/client/model/LiltCreateContent.java @@ -30,8 +30,16 @@ * Content Parameters for LiltCreate. */ @ApiModel(description = "Content Parameters for LiltCreate. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class LiltCreateContent { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Integer id; + public static final String SERIALIZED_NAME_LANGUAGE = "language"; @SerializedName(SERIALIZED_NAME_LANGUAGE) private String language; @@ -49,6 +57,52 @@ public class LiltCreateContent { private LiltCreateContentPreferences preferences; + public LiltCreateContent name(String name) { + + this.name = name; + return this; + } + + /** + * A name for the request content. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A name for the request content.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public LiltCreateContent id(Integer id) { + + this.id = id; + return this; + } + + /** + * A unique identifier for the generated content. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A unique identifier for the generated content.") + + public Integer getId() { + return id; + } + + + public void setId(Integer id) { + this.id = id; + } + + public LiltCreateContent language(String language) { this.language = language; @@ -147,7 +201,9 @@ public boolean equals(Object o) { return false; } LiltCreateContent liltCreateContent = (LiltCreateContent) o; - return Objects.equals(this.language, liltCreateContent.language) && + return Objects.equals(this.name, liltCreateContent.name) && + Objects.equals(this.id, liltCreateContent.id) && + Objects.equals(this.language, liltCreateContent.language) && Objects.equals(this.template, liltCreateContent.template) && Objects.equals(this.templateParams, liltCreateContent.templateParams) && Objects.equals(this.preferences, liltCreateContent.preferences); @@ -155,13 +211,15 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(language, template, templateParams, preferences); + return Objects.hash(name, id, language, template, templateParams, preferences); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LiltCreateContent {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append(" template: ").append(toIndentedString(template)).append("\n"); sb.append(" templateParams: ").append(toIndentedString(templateParams)).append("\n"); diff --git a/src/main/java/com/lilt/client/model/LiltCreateContentPreferences.java b/src/main/java/com/lilt/client/model/LiltCreateContentPreferences.java index 6402fa403..8449e00f5 100644 --- a/src/main/java/com/lilt/client/model/LiltCreateContentPreferences.java +++ b/src/main/java/com/lilt/client/model/LiltCreateContentPreferences.java @@ -28,7 +28,7 @@ * The preferences of the content. */ @ApiModel(description = "The preferences of the content.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class LiltCreateContentPreferences { public static final String SERIALIZED_NAME_TONE = "tone"; @SerializedName(SERIALIZED_NAME_TONE) diff --git a/src/main/java/com/lilt/client/model/LiltCreateContentRequest.java b/src/main/java/com/lilt/client/model/LiltCreateContentRequest.java new file mode 100644 index 000000000..6f5814c11 --- /dev/null +++ b/src/main/java/com/lilt/client/model/LiltCreateContentRequest.java @@ -0,0 +1,214 @@ +/* + * Lilt REST API + * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. + * + * The version of the OpenAPI document: v3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lilt.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lilt.client.model.LiltCreateContentPreferences; +import com.lilt.client.model.LiltCreateContentTemplateParams; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Content Parameters for LiltCreate. + */ +@ApiModel(description = "Content Parameters for LiltCreate. ") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") +public class LiltCreateContentRequest { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_LANGUAGE = "language"; + @SerializedName(SERIALIZED_NAME_LANGUAGE) + private String language; + + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private String template; + + public static final String SERIALIZED_NAME_TEMPLATE_PARAMS = "templateParams"; + @SerializedName(SERIALIZED_NAME_TEMPLATE_PARAMS) + private LiltCreateContentTemplateParams templateParams; + + public static final String SERIALIZED_NAME_PREFERENCES = "preferences"; + @SerializedName(SERIALIZED_NAME_PREFERENCES) + private LiltCreateContentPreferences preferences; + + + public LiltCreateContentRequest name(String name) { + + this.name = name; + return this; + } + + /** + * A name for the request content. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A name for the request content.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public LiltCreateContentRequest language(String language) { + + this.language = language; + return this; + } + + /** + * The language of the content. + * @return language + **/ + @ApiModelProperty(required = true, value = "The language of the content.") + + public String getLanguage() { + return language; + } + + + public void setLanguage(String language) { + this.language = language; + } + + + public LiltCreateContentRequest template(String template) { + + this.template = template; + return this; + } + + /** + * The template of the content. + * @return template + **/ + @ApiModelProperty(required = true, value = "The template of the content.") + + public String getTemplate() { + return template; + } + + + public void setTemplate(String template) { + this.template = template; + } + + + public LiltCreateContentRequest templateParams(LiltCreateContentTemplateParams templateParams) { + + this.templateParams = templateParams; + return this; + } + + /** + * Get templateParams + * @return templateParams + **/ + @ApiModelProperty(required = true, value = "") + + public LiltCreateContentTemplateParams getTemplateParams() { + return templateParams; + } + + + public void setTemplateParams(LiltCreateContentTemplateParams templateParams) { + this.templateParams = templateParams; + } + + + public LiltCreateContentRequest preferences(LiltCreateContentPreferences preferences) { + + this.preferences = preferences; + return this; + } + + /** + * Get preferences + * @return preferences + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LiltCreateContentPreferences getPreferences() { + return preferences; + } + + + public void setPreferences(LiltCreateContentPreferences preferences) { + this.preferences = preferences; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LiltCreateContentRequest liltCreateContentRequest = (LiltCreateContentRequest) o; + return Objects.equals(this.name, liltCreateContentRequest.name) && + Objects.equals(this.language, liltCreateContentRequest.language) && + Objects.equals(this.template, liltCreateContentRequest.template) && + Objects.equals(this.templateParams, liltCreateContentRequest.templateParams) && + Objects.equals(this.preferences, liltCreateContentRequest.preferences); + } + + @Override + public int hashCode() { + return Objects.hash(name, language, template, templateParams, preferences); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LiltCreateContentRequest {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" language: ").append(toIndentedString(language)).append("\n"); + sb.append(" template: ").append(toIndentedString(template)).append("\n"); + sb.append(" templateParams: ").append(toIndentedString(templateParams)).append("\n"); + sb.append(" preferences: ").append(toIndentedString(preferences)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/lilt/client/model/LiltCreateContentTemplateParams.java b/src/main/java/com/lilt/client/model/LiltCreateContentTemplateParams.java index 9533cc887..40dd1223b 100644 --- a/src/main/java/com/lilt/client/model/LiltCreateContentTemplateParams.java +++ b/src/main/java/com/lilt/client/model/LiltCreateContentTemplateParams.java @@ -30,7 +30,7 @@ * The template parameters of the content. */ @ApiModel(description = "The template parameters of the content.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class LiltCreateContentTemplateParams { public static final String SERIALIZED_NAME_CONTENT_LENGTH = "contentLength"; @SerializedName(SERIALIZED_NAME_CONTENT_LENGTH) diff --git a/src/main/java/com/lilt/client/model/Memory.java b/src/main/java/com/lilt/client/model/Memory.java index 7d55e4f22..ae674d45b 100644 --- a/src/main/java/com/lilt/client/model/Memory.java +++ b/src/main/java/com/lilt/client/model/Memory.java @@ -30,7 +30,7 @@ * A Memory is a collection of parallel (source/target) segments from which a MT/TM model is trained. When a translator confirms a segment in the Interface, a parallel segment is added to the Memory. Parallel segments from existing translation memories and bitexts can also be added to the Memory via the REST API. */ @ApiModel(description = "A Memory is a collection of parallel (source/target) segments from which a MT/TM model is trained. When a translator confirms a segment in the Interface, a parallel segment is added to the Memory. Parallel segments from existing translation memories and bitexts can also be added to the Memory via the REST API. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class Memory { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/MemoryCreateParameters.java b/src/main/java/com/lilt/client/model/MemoryCreateParameters.java index 2df0a0172..466630b78 100644 --- a/src/main/java/com/lilt/client/model/MemoryCreateParameters.java +++ b/src/main/java/com/lilt/client/model/MemoryCreateParameters.java @@ -27,7 +27,7 @@ /** * MemoryCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class MemoryCreateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/lilt/client/model/MemoryDeleteResponse.java b/src/main/java/com/lilt/client/model/MemoryDeleteResponse.java index 3273c8807..454d59bf8 100644 --- a/src/main/java/com/lilt/client/model/MemoryDeleteResponse.java +++ b/src/main/java/com/lilt/client/model/MemoryDeleteResponse.java @@ -27,7 +27,7 @@ /** * MemoryDeleteResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class MemoryDeleteResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/MemoryImportResponse.java b/src/main/java/com/lilt/client/model/MemoryImportResponse.java index 69033552c..82900a212 100644 --- a/src/main/java/com/lilt/client/model/MemoryImportResponse.java +++ b/src/main/java/com/lilt/client/model/MemoryImportResponse.java @@ -27,7 +27,7 @@ /** * MemoryImportResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class MemoryImportResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/MemoryUpdateParameters.java b/src/main/java/com/lilt/client/model/MemoryUpdateParameters.java index 3313d84f9..fdfb30cf4 100644 --- a/src/main/java/com/lilt/client/model/MemoryUpdateParameters.java +++ b/src/main/java/com/lilt/client/model/MemoryUpdateParameters.java @@ -27,7 +27,7 @@ /** * MemoryUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class MemoryUpdateParameters { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/Project.java b/src/main/java/com/lilt/client/model/Project.java index 1834c625d..2a200970d 100644 --- a/src/main/java/com/lilt/client/model/Project.java +++ b/src/main/java/com/lilt/client/model/Project.java @@ -31,7 +31,7 @@ * A Project is a collection of zero or more Documents. It is specific to a language pair, and is associated with exactly one Memory for that language pair. The Memory association cannot be changed after the Project is created. */ @ApiModel(description = "A Project is a collection of zero or more Documents. It is specific to a language pair, and is associated with exactly one Memory for that language pair. The Memory association cannot be changed after the Project is created. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class Project { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/ProjectCreateParameters.java b/src/main/java/com/lilt/client/model/ProjectCreateParameters.java index 9f540312f..d834c6115 100644 --- a/src/main/java/com/lilt/client/model/ProjectCreateParameters.java +++ b/src/main/java/com/lilt/client/model/ProjectCreateParameters.java @@ -27,7 +27,7 @@ /** * ProjectCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class ProjectCreateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/lilt/client/model/ProjectDeleteResponse.java b/src/main/java/com/lilt/client/model/ProjectDeleteResponse.java index 1c50a88a4..cbaa26f6a 100644 --- a/src/main/java/com/lilt/client/model/ProjectDeleteResponse.java +++ b/src/main/java/com/lilt/client/model/ProjectDeleteResponse.java @@ -27,7 +27,7 @@ /** * ProjectDeleteResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class ProjectDeleteResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/ProjectStats.java b/src/main/java/com/lilt/client/model/ProjectStats.java index ee7a4a5ca..e40b6ed46 100644 --- a/src/main/java/com/lilt/client/model/ProjectStats.java +++ b/src/main/java/com/lilt/client/model/ProjectStats.java @@ -27,7 +27,7 @@ /** * ProjectStats */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class ProjectStats { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/SDLXLIFFFilter.java b/src/main/java/com/lilt/client/model/SDLXLIFFFilter.java index ab39a0c27..b91ffe5a5 100644 --- a/src/main/java/com/lilt/client/model/SDLXLIFFFilter.java +++ b/src/main/java/com/lilt/client/model/SDLXLIFFFilter.java @@ -27,7 +27,7 @@ /** * SDLXLIFFFilter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class SDLXLIFFFilter { /** * the current state of the SDLXLIFF Trans Unit. diff --git a/src/main/java/com/lilt/client/model/Segment.java b/src/main/java/com/lilt/client/model/Segment.java index c610d3b89..f107ba733 100644 --- a/src/main/java/com/lilt/client/model/Segment.java +++ b/src/main/java/com/lilt/client/model/Segment.java @@ -28,7 +28,7 @@ * A Segment is a source string and, optionally, its translation. A Segment can be associated with both a Memory and a Document. The Segment object contains additional metadata about the source and target strings. */ @ApiModel(description = "A Segment is a source string and, optionally, its translation. A Segment can be associated with both a Memory and a Document. The Segment object contains additional metadata about the source and target strings. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class Segment { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/SignLiltCreateTermsResponse.java b/src/main/java/com/lilt/client/model/SignLiltCreateTermsResponse.java index 54a85ac55..d4ece7608 100644 --- a/src/main/java/com/lilt/client/model/SignLiltCreateTermsResponse.java +++ b/src/main/java/com/lilt/client/model/SignLiltCreateTermsResponse.java @@ -27,7 +27,7 @@ /** * SignLiltCreateTermsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class SignLiltCreateTermsResponse { public static final String SERIALIZED_NAME_SIGNED_AGREEMENT = "signedAgreement"; @SerializedName(SERIALIZED_NAME_SIGNED_AGREEMENT) diff --git a/src/main/java/com/lilt/client/model/SourceFile.java b/src/main/java/com/lilt/client/model/SourceFile.java index c2ac7924a..aa2c6c1be 100644 --- a/src/main/java/com/lilt/client/model/SourceFile.java +++ b/src/main/java/com/lilt/client/model/SourceFile.java @@ -32,7 +32,7 @@ * A SourceFile is an unprocessed source file that can later be added to a project. */ @ApiModel(description = "A SourceFile is an unprocessed source file that can later be added to a project.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class SourceFile { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/TermbaseExportResponse.java b/src/main/java/com/lilt/client/model/TermbaseExportResponse.java index 5d91426d0..3ff4b5cc3 100644 --- a/src/main/java/com/lilt/client/model/TermbaseExportResponse.java +++ b/src/main/java/com/lilt/client/model/TermbaseExportResponse.java @@ -27,7 +27,7 @@ /** * TermbaseExportResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class TermbaseExportResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/TranslateSegmentBody.java b/src/main/java/com/lilt/client/model/TranslateSegmentBody.java index 65ce9a283..a21cad979 100644 --- a/src/main/java/com/lilt/client/model/TranslateSegmentBody.java +++ b/src/main/java/com/lilt/client/model/TranslateSegmentBody.java @@ -27,7 +27,7 @@ /** * TranslateSegmentBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class TranslateSegmentBody { public static final String SERIALIZED_NAME_SOURCE = "source"; @SerializedName(SERIALIZED_NAME_SOURCE) diff --git a/src/main/java/com/lilt/client/model/Translation.java b/src/main/java/com/lilt/client/model/Translation.java index f9ed177b5..5608b92da 100644 --- a/src/main/java/com/lilt/client/model/Translation.java +++ b/src/main/java/com/lilt/client/model/Translation.java @@ -31,7 +31,7 @@ * A machine translation (MT) or a translation memory (TM) match of a source segment. */ @ApiModel(description = "A machine translation (MT) or a translation memory (TM) match of a source segment.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class Translation { public static final String SERIALIZED_NAME_TARGET = "target"; @SerializedName(SERIALIZED_NAME_TARGET) diff --git a/src/main/java/com/lilt/client/model/TranslationInfo.java b/src/main/java/com/lilt/client/model/TranslationInfo.java index f37d85696..09bd0e3b9 100644 --- a/src/main/java/com/lilt/client/model/TranslationInfo.java +++ b/src/main/java/com/lilt/client/model/TranslationInfo.java @@ -28,7 +28,7 @@ * Information describing a batch translation process. */ @ApiModel(description = "Information describing a batch translation process. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class TranslationInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/TranslationList.java b/src/main/java/com/lilt/client/model/TranslationList.java index 7637e5589..7ce8c0d14 100644 --- a/src/main/java/com/lilt/client/model/TranslationList.java +++ b/src/main/java/com/lilt/client/model/TranslationList.java @@ -31,7 +31,7 @@ * An ranked list of translations and associated metadata. */ @ApiModel(description = "An ranked list of translations and associated metadata.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class TranslationList { public static final String SERIALIZED_NAME_UNTOKENIZED_SOURCE = "untokenizedSource"; @SerializedName(SERIALIZED_NAME_UNTOKENIZED_SOURCE) diff --git a/src/main/java/com/lilt/client/model/TranslationMemoryEntry.java b/src/main/java/com/lilt/client/model/TranslationMemoryEntry.java index f4311f47a..7a26d2abc 100644 --- a/src/main/java/com/lilt/client/model/TranslationMemoryEntry.java +++ b/src/main/java/com/lilt/client/model/TranslationMemoryEntry.java @@ -28,7 +28,7 @@ * A translation memory entry. */ @ApiModel(description = "A translation memory entry.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class TranslationMemoryEntry { public static final String SERIALIZED_NAME_SOURCE = "source"; @SerializedName(SERIALIZED_NAME_SOURCE) diff --git a/src/main/java/com/lilt/client/model/WorkflowStageAssignment.java b/src/main/java/com/lilt/client/model/WorkflowStageAssignment.java index b3f089400..89f9ba33f 100644 --- a/src/main/java/com/lilt/client/model/WorkflowStageAssignment.java +++ b/src/main/java/com/lilt/client/model/WorkflowStageAssignment.java @@ -28,7 +28,7 @@ * An assignment object that associates a user to a workflow stage template. */ @ApiModel(description = "An assignment object that associates a user to a workflow stage template.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class WorkflowStageAssignment { public static final String SERIALIZED_NAME_WORKFLOW_STAGE_TEMPLATE_ID = "workflowStageTemplateId"; @SerializedName(SERIALIZED_NAME_WORKFLOW_STAGE_TEMPLATE_ID) diff --git a/src/main/java/com/lilt/client/model/WorkflowStageTemplate.java b/src/main/java/com/lilt/client/model/WorkflowStageTemplate.java index 36121052d..fd3d7fa54 100644 --- a/src/main/java/com/lilt/client/model/WorkflowStageTemplate.java +++ b/src/main/java/com/lilt/client/model/WorkflowStageTemplate.java @@ -28,7 +28,7 @@ * A single stage within a Workflow Template. */ @ApiModel(description = "A single stage within a Workflow Template.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class WorkflowStageTemplate { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/lilt/client/model/WorkflowTemplate.java b/src/main/java/com/lilt/client/model/WorkflowTemplate.java index b56c3a314..239b7f1af 100644 --- a/src/main/java/com/lilt/client/model/WorkflowTemplate.java +++ b/src/main/java/com/lilt/client/model/WorkflowTemplate.java @@ -32,7 +32,7 @@ * A workflow template which defines the workflow's possible steps (combination of Translation, Review and Customer Review). */ @ApiModel(description = "A workflow template which defines the workflow's possible steps (combination of Translation, Review and Customer Review).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-11T21:15:51.538Z[GMT]") public class WorkflowTemplate { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID)