Skip to content

Commit ee2f85f

Browse files
Merge pull request #49 from lilt/openapi-bindings
OpenAPI: Regenerates API Bindings
2 parents 370c248 + dfff464 commit ee2f85f

File tree

80 files changed

+451
-188
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+451
-188
lines changed

.github/workflows/openapi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ jobs:
5151
5252
[1]: https://github.com/peter-evans/create-pull-request
5353
branch: openapi-bindings
54-
base: master
54+
base: promote

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ docs/Error.md
1414
docs/FileDeleteResponse.md
1515
docs/FilesApi.md
1616
docs/GetLiltCreateContentResponse.md
17+
docs/InlineObject.md
1718
docs/InlineResponse200.md
1819
docs/Job.md
1920
docs/JobCreateParameters.md
@@ -97,6 +98,7 @@ src/main/java/com/lilt/client/model/DocumentWithoutSegmentsStatus.java
9798
src/main/java/com/lilt/client/model/Error.java
9899
src/main/java/com/lilt/client/model/FileDeleteResponse.java
99100
src/main/java/com/lilt/client/model/GetLiltCreateContentResponse.java
101+
src/main/java/com/lilt/client/model/InlineObject.java
100102
src/main/java/com/lilt/client/model/InlineResponse200.java
101103
src/main/java/com/lilt/client/model/Job.java
102104
src/main/java/com/lilt/client/model/JobCreateParameters.java

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# lilt-java
22

33
Lilt REST API
4-
- API version: v3.0
5-
- Build date: 2025-02-19T20:26:43.350Z[GMT]
4+
- API version: v3.0.1
5+
- Build date: 2025-02-20T18:18:58.249Z[GMT]
66

77
Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals
88
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:
6262
<dependency>
6363
<groupId>com.lilt.client</groupId>
6464
<artifactId>lilt-java</artifactId>
65-
<version>v3.0</version>
65+
<version>v3.0.1</version>
6666
<scope>compile</scope>
6767
</dependency>
6868
```
@@ -72,7 +72,7 @@ Add this dependency to your project's POM:
7272
Add this dependency to your project's build file:
7373

7474
```groovy
75-
compile "com.lilt.client:lilt-java:v3.0"
75+
compile "com.lilt.client:lilt-java:v3.0.1"
7676
```
7777

7878
### Others
@@ -85,7 +85,7 @@ mvn clean package
8585

8686
Then manually install the following JARs:
8787

88-
* `target/lilt-java-v3.0.jar`
88+
* `target/lilt-java-v3.0.1.jar`
8989
* `target/lib/*.jar`
9090

9191
## Getting Started
@@ -207,6 +207,7 @@ Class | Method | HTTP request | Description
207207
- [Error](docs/Error.md)
208208
- [FileDeleteResponse](docs/FileDeleteResponse.md)
209209
- [GetLiltCreateContentResponse](docs/GetLiltCreateContentResponse.md)
210+
- [InlineObject](docs/InlineObject.md)
210211
- [InlineResponse200](docs/InlineResponse200.md)
211212
- [Job](docs/Job.md)
212213
- [JobCreateParameters](docs/JobCreateParameters.md)

api/openapi.yaml

Lines changed: 56 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ info:
2020
name: Lilt Platform Terms and Conditions
2121
url: https://lilt.com/lilt-platform-terms-and-conditions
2222
title: Lilt REST API
23-
version: v3.0
23+
version: v3.0.1
2424
servers:
2525
- url: https://api.lilt.com
2626
security:
@@ -3067,41 +3067,35 @@ paths:
30673067
type: integer
30683068
style: simple
30693069
requestBody:
3070+
$ref: '#/components/requestBodies/inline_object'
30703071
content:
30713072
application/json:
30723073
schema:
3073-
anyOf:
3074-
- properties:
3075-
webhookName:
3076-
description: The name of the webhook configuration.
3077-
type: string
3078-
required:
3079-
- webhookName
3080-
type: object
3081-
- properties:
3082-
webhookUrl:
3083-
description: The URL to which the webhook notifications will be
3084-
sent.
3085-
format: uri
3074+
properties:
3075+
webhookName:
3076+
description: The name of the webhook configuration.
3077+
type: string
3078+
webhookUrl:
3079+
description: The URL to which the webhook notifications will be
3080+
sent.
3081+
format: uri
3082+
type: string
3083+
eventType:
3084+
description: The list of event types that will trigger the webhook
3085+
notification.
3086+
items:
3087+
enum:
3088+
- JOB_DELIVER
3089+
- JOB_UPDATE
3090+
- PROJECT_DELIVER
3091+
- PROJECT_UPDATE
30863092
type: string
3087-
required:
3088-
- webhookUrl
3089-
type: object
3090-
- properties:
3091-
eventType:
3092-
description: The list of event types that will trigger the webhook
3093-
notification.
3094-
items:
3095-
enum:
3096-
- JOB_DELIVER
3097-
- JOB_UPDATE
3098-
- PROJECT_DELIVER
3099-
- PROJECT_UPDATE
3100-
type: string
3101-
type: array
3102-
required:
3103-
- eventType
3104-
type: object
3093+
type: array
3094+
required:
3095+
- eventType
3096+
- webhookName
3097+
- webhookUrl
3098+
type: object
31053099
required: true
31063100
responses:
31073101
"200":
@@ -3159,6 +3153,12 @@ components:
31593153
schema:
31603154
$ref: '#/components/schemas/MemoryUpdateParameters'
31613155
required: true
3156+
inline_object:
3157+
content:
3158+
application/json:
3159+
schema:
3160+
$ref: '#/components/schemas/inline_object'
3161+
required: true
31623162
TranslateSegmentBody:
31633163
content:
31643164
application/json:
@@ -5157,6 +5157,30 @@ components:
51575157
type: string
51585158
title: AddFileLabelRequest
51595159
type: object
5160+
inline_object:
5161+
properties:
5162+
webhookName:
5163+
description: The name of the webhook configuration.
5164+
type: string
5165+
webhookUrl:
5166+
description: The URL to which the webhook notifications will be sent.
5167+
format: uri
5168+
type: string
5169+
eventType:
5170+
description: The list of event types that will trigger the webhook notification.
5171+
items:
5172+
enum:
5173+
- JOB_DELIVER
5174+
- JOB_UPDATE
5175+
- PROJECT_DELIVER
5176+
- PROJECT_UPDATE
5177+
type: string
5178+
type: array
5179+
required:
5180+
- eventType
5181+
- webhookName
5182+
- webhookUrl
5183+
type: object
51605184
LiltCreateContent_templateParams:
51615185
description: The template parameters of the content.
51625186
example:

docs/InlineObject.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
3+
# InlineObject
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**webhookName** | **String** | The name of the webhook configuration. |
10+
**webhookUrl** | **URI** | The URL to which the webhook notifications will be sent. |
11+
**eventType** | [**List&lt;EventTypeEnum&gt;**](#List&lt;EventTypeEnum&gt;) | The list of event types that will trigger the webhook notification. |
12+
13+
14+
15+
## Enum: List&lt;EventTypeEnum&gt;
16+
17+
Name | Value
18+
---- | -----
19+
JOB_DELIVER | &quot;JOB_DELIVER&quot;
20+
JOB_UPDATE | &quot;JOB_UPDATE&quot;
21+
PROJECT_DELIVER | &quot;PROJECT_DELIVER&quot;
22+
PROJECT_UPDATE | &quot;PROJECT_UPDATE&quot;
23+
24+
25+

docs/WebhookConfigurationApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ This endpoint does not need any parameter.
306306

307307
<a name="webhooksUpdate"></a>
308308
# **webhooksUpdate**
309-
> WebhookResponse webhooksUpdate(id, UNKNOWN_BASE_TYPE)
309+
> WebhookResponse webhooksUpdate(id, inlineObject)
310310
311311
Update a specific Webhook Configuration by ID.
312312

@@ -340,9 +340,9 @@ public class Example {
340340

341341
WebhookConfigurationApi apiInstance = new WebhookConfigurationApi(defaultClient);
342342
Integer id = 12345; // Integer | The Webhook Configuration ID.
343-
UNKNOWN_BASE_TYPE UNKNOWN_BASE_TYPE = new UNKNOWN_BASE_TYPE(); // UNKNOWN_BASE_TYPE |
343+
InlineObject inlineObject = new InlineObject(); // InlineObject |
344344
try {
345-
WebhookResponse result = apiInstance.webhooksUpdate(id, UNKNOWN_BASE_TYPE);
345+
WebhookResponse result = apiInstance.webhooksUpdate(id, inlineObject);
346346
System.out.println(result);
347347
} catch (ApiException e) {
348348
System.err.println("Exception when calling WebhookConfigurationApi#webhooksUpdate");
@@ -360,7 +360,7 @@ public class Example {
360360
Name | Type | Description | Notes
361361
------------- | ------------- | ------------- | -------------
362362
**id** | **Integer**| The Webhook Configuration ID. |
363-
**UNKNOWN_BASE_TYPE** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| |
363+
**inlineObject** | [**InlineObject**](InlineObject.md)| |
364364

365365
### Return type
366366

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>lilt-java</artifactId>
66
<packaging>jar</packaging>
77
<name>lilt-java</name>
8-
<version>v3.0</version>
8+
<version>v3.0.1</version>
99
<url>https://github.com/lilt/lilt-java</url>
1010
<description>OpenAPI Java</description>
1111
<scm>

src/main/java/com/lilt/client/ApiCallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Lilt REST API
33
* 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.
44
*
5-
* The version of the OpenAPI document: v3.0
5+
* The version of the OpenAPI document: v3.0.1
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/com/lilt/client/ApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Lilt REST API
33
* 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.
44
*
5-
* The version of the OpenAPI document: v3.0
5+
* The version of the OpenAPI document: v3.0.1
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -125,7 +125,7 @@ private void init() {
125125
json = new JSON();
126126

127127
// Set default User-Agent.
128-
setUserAgent("OpenAPI-Generator/v3.0/java");
128+
setUserAgent("OpenAPI-Generator/v3.0.1/java");
129129

130130
authentications = new HashMap<String, Authentication>();
131131
}

src/main/java/com/lilt/client/ApiException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Lilt REST API
33
* 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.
44
*
5-
* The version of the OpenAPI document: v3.0
5+
* The version of the OpenAPI document: v3.0.1
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,7 +16,7 @@
1616
import java.util.Map;
1717
import java.util.List;
1818

19-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-19T20:26:43.350Z[GMT]")
19+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-20T18:18:58.249Z[GMT]")
2020
public class ApiException extends Exception {
2121
private int code = 0;
2222
private Map<String, List<String>> responseHeaders = null;

0 commit comments

Comments
 (0)