Skip to content

Commit

Permalink
Regenerates API Bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
lilt-infra-service authored and github-actions[bot] committed Oct 10, 2024
1 parent 68f7395 commit e13e710
Show file tree
Hide file tree
Showing 75 changed files with 892 additions and 407 deletions.
6 changes: 6 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ docs/DocumentsApi.md
docs/Error.md
docs/FileDeleteResponse.md
docs/FilesApi.md
docs/GetLiltCreateContentResponse.md
docs/InlineResponse200.md
docs/Job.md
docs/JobCreateParameters.md
Expand All @@ -25,6 +26,8 @@ docs/LanguagePair.md
docs/LanguagesApi.md
docs/LanguagesResponse.md
docs/LiltCreateContent.md
docs/LiltCreateContentPreferences.md
docs/LiltCreateContentTemplateParams.md
docs/MemoriesApi.md
docs/Memory.md
docs/MemoryCreateParameters.md
Expand Down Expand Up @@ -83,6 +86,7 @@ src/main/java/com/lilt/client/model/DocumentWithoutSegments.java
src/main/java/com/lilt/client/model/DocumentWithoutSegmentsStatus.java
src/main/java/com/lilt/client/model/Error.java
src/main/java/com/lilt/client/model/FileDeleteResponse.java
src/main/java/com/lilt/client/model/GetLiltCreateContentResponse.java
src/main/java/com/lilt/client/model/InlineResponse200.java
src/main/java/com/lilt/client/model/Job.java
src/main/java/com/lilt/client/model/JobCreateParameters.java
Expand All @@ -94,6 +98,8 @@ src/main/java/com/lilt/client/model/JobUpdateParameters.java
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/LiltCreateContentTemplateParams.java
src/main/java/com/lilt/client/model/Memory.java
src/main/java/com/lilt/client/model/MemoryCreateParameters.java
src/main/java/com/lilt/client/model/MemoryDeleteResponse.java
Expand Down
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@

Lilt REST API
- API version: v3.0
- Build date: 2024-07-22T00:19:36.591Z[GMT]
- Build date: 2024-10-10T22:15:40.815Z[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:
* 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.
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

Expand All @@ -26,7 +28,6 @@ For development, you may also pass the REST API key via the `key` query paramete
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.


For more information, please visit [https://developers.lilt.com/](https://developers.lilt.com/)

*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*

Expand Down Expand Up @@ -61,7 +62,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>openapi-java-client</artifactId>
<version>2.2.0</version>
<version>3.0.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -71,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:2.2.0"
compile "org.openapitools:openapi-java-client:3.0.0"
```

### Others
Expand All @@ -84,7 +85,7 @@ mvn clean package

Then manually install the following JARs:

* `target/openapi-java-client-2.2.0.jar`
* `target/openapi-java-client-3.0.0.jar`
* `target/lib/*.jar`

## Getting Started
Expand Down Expand Up @@ -198,6 +199,7 @@ Class | Method | HTTP request | Description
- [DocumentWithoutSegmentsStatus](docs/DocumentWithoutSegmentsStatus.md)
- [Error](docs/Error.md)
- [FileDeleteResponse](docs/FileDeleteResponse.md)
- [GetLiltCreateContentResponse](docs/GetLiltCreateContentResponse.md)
- [InlineResponse200](docs/InlineResponse200.md)
- [Job](docs/Job.md)
- [JobCreateParameters](docs/JobCreateParameters.md)
Expand All @@ -209,6 +211,8 @@ Class | Method | HTTP request | Description
- [LanguagePair](docs/LanguagePair.md)
- [LanguagesResponse](docs/LanguagesResponse.md)
- [LiltCreateContent](docs/LiltCreateContent.md)
- [LiltCreateContentPreferences](docs/LiltCreateContentPreferences.md)
- [LiltCreateContentTemplateParams](docs/LiltCreateContentTemplateParams.md)
- [Memory](docs/Memory.md)
- [MemoryCreateParameters](docs/MemoryCreateParameters.md)
- [MemoryDeleteResponse](docs/MemoryDeleteResponse.md)
Expand Down Expand Up @@ -251,5 +255,5 @@ It's recommended to create an instance of `ApiClient` per thread in a multithrea

## Author

support@lilt.com


183 changes: 127 additions & 56 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
openapi: 3.0.1
info:
contact:
email: support@lilt.com
name: Lilt REST API Support
url: https://developers.lilt.com/
description: |
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.
## 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.
description: "Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals\
\ \nThe Lilt REST API enables programmatic access to the full-range of Lilt\
\ backend services including:\n * Training of and translating with interactive,\
\ adaptive machine translation\n * Large-scale translation memory\n * The Lexicon\
\ (a large-scale termbase)\n * Programmatic control of the Lilt CAT environment\n\
\ * Translation memory synchronization\n\nRequests and responses are in JSON\
\ format. The REST API only responds to HTTPS / SSL requests. \nThe base url for\
\ this REST API is `https://api.lilt.com/`.\n\n## Authentication\n\nRequests are\
\ authenticated via REST API key, which requires the Business plan.\n\nRequests\
\ 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`.\n\nFor 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.\n\n\
## 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"
title: Lilt REST API
version: v3.0
servers:
- url: https://api.lilt.com/
- url: https://api.lilt.com
security:
- ApiKeyAuth: []
- BasicAuth: []
Expand Down Expand Up @@ -658,8 +649,12 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/TranslationInfo'
description: Translation info
description: List of TranslationInfo objects
items:
$ref: '#/components/schemas/TranslationInfo'
title: monitorFileTranslationResponse
type: array
description: Translation Info
default:
content:
application/json:
Expand Down Expand Up @@ -720,8 +715,12 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/TranslationInfo'
description: Translation info
description: List of TranslationInfo objects
items:
$ref: '#/components/schemas/TranslationInfo'
title: batchTranslateFileResponse
type: array
description: Translation Info
default:
content:
application/json:
Expand Down Expand Up @@ -828,9 +827,7 @@ paths:
content:
application/json:
schema:
items:
$ref: '#/components/schemas/LiltCreateContent'
type: array
$ref: '#/components/schemas/getLiltCreateContentResponse'
description: An object with a documents next task Workflow metadata.
summary: Get Lilt Create content
tags:
Expand Down Expand Up @@ -2789,35 +2786,33 @@ components:
description: |
Content Parameters for LiltCreate.
example:
summary: summary
tone: tone
terms: terms
template: template
preferences:
styleguide: styleguide
tone: tone
templateParams:
summary: summary
contentLength: 0
language: language
sections:
- sections
- sections
language: language
memoryId: memoryId
sections:
- sections
- sections
properties:
tone:
description: The tone of the content.
type: string
terms:
description: The terms of the content.
type: string
summary:
description: The summary of the content.
type: string
language:
description: The language of the content.
type: string
memoryId:
description: The memory ID of the content.
template:
description: The template of the content.
type: string
sections:
description: The sections of the content.
items:
type: string
type: array
templateParams:
$ref: '#/components/schemas/LiltCreateContent_templateParams'
preferences:
$ref: '#/components/schemas/LiltCreateContent_preferences'
required:
- language
- template
- templateParams
type: object
JobProject:
description: |
Expand Down Expand Up @@ -4016,6 +4011,41 @@ components:
type: boolean
title: signLiltCreateTermsResponse
type: object
getLiltCreateContentResponse:
example:
contents:
- template: template
preferences:
styleguide: styleguide
tone: tone
templateParams:
summary: summary
contentLength: 0
language: language
sections:
- sections
- sections
language: language
- template: template
preferences:
styleguide: styleguide
tone: tone
templateParams:
summary: summary
contentLength: 0
language: language
sections:
- sections
- sections
language: language
properties:
contents:
description: List of LiltCreateContent objects
items:
$ref: '#/components/schemas/LiltCreateContent'
type: array
title: getLiltCreateContentResponse
type: object
inline_response_200:
example:
id: 0
Expand Down Expand Up @@ -4266,6 +4296,47 @@ components:
type: string
title: AddFileLabelRequest
type: object
LiltCreateContent_templateParams:
description: The template parameters of the content.
example:
summary: summary
contentLength: 0
language: language
sections:
- sections
- sections
properties:
contentLength:
description: The length of the content.
type: integer
language:
description: The language of the content.
type: string
sections:
description: The sections of the content.
items:
description: A section heading of the content.
type: string
type: array
summary:
description: The summary of the content.
type: string
required:
- language
type: object
LiltCreateContent_preferences:
description: The preferences of the content.
example:
styleguide: styleguide
tone: tone
properties:
tone:
description: The tone of the content.
type: string
styleguide:
description: The styleguide of the content.
type: string
type: object
DocumentWithoutSegments_status:
description: A list of translations for the query term.
example:
Expand Down
6 changes: 3 additions & 3 deletions docs/CreateApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ Name | Type | Description | Notes

<a name="getLiltCreateContent"></a>
# **getLiltCreateContent**
> List&lt;LiltCreateContent&gt; getLiltCreateContent()
> GetLiltCreateContentResponse getLiltCreateContent()
Get Lilt Create content

Expand Down Expand Up @@ -272,7 +272,7 @@ public class Example {

CreateApi apiInstance = new CreateApi(defaultClient);
try {
List<LiltCreateContent> result = apiInstance.getLiltCreateContent();
GetLiltCreateContentResponse result = apiInstance.getLiltCreateContent();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CreateApi#getLiltCreateContent");
Expand All @@ -290,7 +290,7 @@ This endpoint does not need any parameter.

### Return type

[**List&lt;LiltCreateContent&gt;**](LiltCreateContent.md)
[**GetLiltCreateContentResponse**](GetLiltCreateContentResponse.md)

### Authorization

Expand Down
12 changes: 12 additions & 0 deletions docs/GetLiltCreateContentResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@


# GetLiltCreateContentResponse

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**contents** | [**List&lt;LiltCreateContent&gt;**](LiltCreateContent.md) | List of LiltCreateContent objects | [optional]



Loading

0 comments on commit e13e710

Please sign in to comment.