Skip to content

Commit bf3d549

Browse files
authored
Merge pull request #188 from RevEngAI/sdk-update-v3.130.1
🤖 Update SDK to version v3.130.1
2 parents e8ebda6 + 3663e8f commit bf3d549

16 files changed

Lines changed: 971 additions & 12 deletions

‎.sdk-version‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v3.124.0
1+
v3.130.1

‎README.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Add this dependency to your project's POM:
1616
<dependency>
1717
<groupId>ai.reveng</groupId>
1818
<artifactId>sdk</artifactId>
19-
<version>3.124.0</version>
19+
<version>3.130.1</version>
2020
<scope>compile</scope>
2121
</dependency>
2222
```
@@ -31,7 +31,7 @@ repositories {
3131
}
3232
3333
dependencies {
34-
implementation "ai.reveng:sdk:3.124.0"
34+
implementation "ai.reveng:sdk:3.130.1"
3535
}
3636
```
3737

@@ -146,13 +146,15 @@ Class | Method | HTTP request | Description
146146
*CollectionsApi* | [**updateCollection**](docs/CollectionsApi.md#updateCollection) | **PATCH** /v2/collections/{collection_id} | Updates a collection
147147
*CollectionsApi* | [**updateCollectionBinaries**](docs/CollectionsApi.md#updateCollectionBinaries) | **PATCH** /v2/collections/{collection_id}/binaries | Updates a collection binaries
148148
*CollectionsApi* | [**updateCollectionTags**](docs/CollectionsApi.md#updateCollectionTags) | **PATCH** /v2/collections/{collection_id}/tags | Updates a collection tags
149+
*CollectionsApi* | [**v3AddCollectionBinaries**](docs/CollectionsApi.md#v3AddCollectionBinaries) | **POST** /v3/collections/{collection_id}/binaries | Add binaries to a collection.
149150
*CollectionsApi* | [**v3CreateCollection**](docs/CollectionsApi.md#v3CreateCollection) | **POST** /v3/collections | Create a collection.
150151
*CollectionsApi* | [**v3DeleteCollection**](docs/CollectionsApi.md#v3DeleteCollection) | **DELETE** /v3/collections/{collection_id} | Delete a collection.
151152
*CollectionsApi* | [**v3GetCollection**](docs/CollectionsApi.md#v3GetCollection) | **GET** /v3/collections/{collection_id} | Get a collection.
152153
*CollectionsApi* | [**v3ListCollections**](docs/CollectionsApi.md#v3ListCollections) | **GET** /v3/collections | List collections.
153154
*CollectionsApi* | [**v3PatchCollection**](docs/CollectionsApi.md#v3PatchCollection) | **PATCH** /v3/collections/{collection_id} | Update a collection.
154155
*CollectionsApi* | [**v3PatchCollectionBinaries**](docs/CollectionsApi.md#v3PatchCollectionBinaries) | **PATCH** /v3/collections/{collection_id}/binaries | Replace the binaries in a collection.
155156
*CollectionsApi* | [**v3PatchCollectionTags**](docs/CollectionsApi.md#v3PatchCollectionTags) | **PATCH** /v3/collections/{collection_id}/tags | Replace the tags on a collection.
157+
*CollectionsApi* | [**v3RemoveCollectionBinaries**](docs/CollectionsApi.md#v3RemoveCollectionBinaries) | **DELETE** /v3/collections/{collection_id}/binaries | Remove binaries from a collection.
156158
*ConfigApi* | [**getConfig**](docs/ConfigApi.md#getConfig) | **GET** /v2/config | Get Config
157159
*ConversationsApi* | [**cancelRun**](docs/ConversationsApi.md#cancelRun) | **POST** /v2/conversations/{id}/cancel | Cancel an active run
158160
*ConversationsApi* | [**confirmTool**](docs/ConversationsApi.md#confirmTool) | **POST** /v2/conversations/{id}/confirm | Approve or reject a pending tool confirmation
@@ -242,6 +244,7 @@ Class | Method | HTTP request | Description
242244
- [AIDecompInverseStringMapItem](docs/AIDecompInverseStringMapItem.md)
243245
- [APIError](docs/APIError.md)
244246
- [AddCalleeInputBody](docs/AddCalleeInputBody.md)
247+
- [AddCollectionBinariesInputBody](docs/AddCollectionBinariesInputBody.md)
245248
- [AddIssuerDomainInputBody](docs/AddIssuerDomainInputBody.md)
246249
- [AddOwnerInputBody](docs/AddOwnerInputBody.md)
247250
- [AddTeamMemberInputBody](docs/AddTeamMemberInputBody.md)
@@ -627,6 +630,7 @@ Class | Method | HTTP request | Description
627630
- [RegisterUserInputBody](docs/RegisterUserInputBody.md)
628631
- [RegistryOperation](docs/RegistryOperation.md)
629632
- [RelativeBinaryResponse](docs/RelativeBinaryResponse.md)
633+
- [RemoveCollectionBinariesInputBody](docs/RemoveCollectionBinariesInputBody.md)
630634
- [RenameAppliedEvent](docs/RenameAppliedEvent.md)
631635
- [RenameInputBody](docs/RenameInputBody.md)
632636
- [RenameOutputBody](docs/RenameOutputBody.md)

‎build.gradle‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ apply plugin: 'java'
1919
apply plugin: 'com.diffplug.spotless'
2020

2121
group = 'ai.reveng'
22-
version = '3.124.0'
22+
version = '3.130.1'
2323

2424

2525

@@ -171,7 +171,7 @@ mavenPublishing {
171171
publishToMavenCentral(true)
172172
signAllPublications()
173173

174-
coordinates("ai.reveng", "sdk", "3.124.0")
174+
coordinates("ai.reveng", "sdk", "3.130.1")
175175

176176
pom {
177177
name = "sdk"

‎build.sbt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "ai.reveng",
44
name := "sdk",
5-
version := "3.124.0",
5+
version := "3.130.1",
66
scalaVersion := "2.11.12",
77
scalacOptions ++= Seq("-feature"),
88
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
# AddCollectionBinariesInputBody
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**binaries** | **List&lt;Long&gt;** | Binary IDs to add to the collection. Binary IDs already linked to the collection are ignored. | |
11+
12+
13+

‎docs/CollectionsApi.md‎

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ All URIs are relative to *https://api.reveng.ai*
1111
| [**updateCollection**](CollectionsApi.md#updateCollection) | **PATCH** /v2/collections/{collection_id} | Updates a collection |
1212
| [**updateCollectionBinaries**](CollectionsApi.md#updateCollectionBinaries) | **PATCH** /v2/collections/{collection_id}/binaries | Updates a collection binaries |
1313
| [**updateCollectionTags**](CollectionsApi.md#updateCollectionTags) | **PATCH** /v2/collections/{collection_id}/tags | Updates a collection tags |
14+
| [**v3AddCollectionBinaries**](CollectionsApi.md#v3AddCollectionBinaries) | **POST** /v3/collections/{collection_id}/binaries | Add binaries to a collection. |
1415
| [**v3CreateCollection**](CollectionsApi.md#v3CreateCollection) | **POST** /v3/collections | Create a collection. |
1516
| [**v3DeleteCollection**](CollectionsApi.md#v3DeleteCollection) | **DELETE** /v3/collections/{collection_id} | Delete a collection. |
1617
| [**v3GetCollection**](CollectionsApi.md#v3GetCollection) | **GET** /v3/collections/{collection_id} | Get a collection. |
1718
| [**v3ListCollections**](CollectionsApi.md#v3ListCollections) | **GET** /v3/collections | List collections. |
1819
| [**v3PatchCollection**](CollectionsApi.md#v3PatchCollection) | **PATCH** /v3/collections/{collection_id} | Update a collection. |
1920
| [**v3PatchCollectionBinaries**](CollectionsApi.md#v3PatchCollectionBinaries) | **PATCH** /v3/collections/{collection_id}/binaries | Replace the binaries in a collection. |
2021
| [**v3PatchCollectionTags**](CollectionsApi.md#v3PatchCollectionTags) | **PATCH** /v3/collections/{collection_id}/tags | Replace the tags on a collection. |
22+
| [**v3RemoveCollectionBinaries**](CollectionsApi.md#v3RemoveCollectionBinaries) | **DELETE** /v3/collections/{collection_id}/binaries | Remove binaries from a collection. |
2123

2224

2325
<a id="createCollection"></a>
@@ -564,6 +566,84 @@ public class Example {
564566
| **200** | Successful Response | - |
565567
| **422** | Invalid request parameters | - |
566568

569+
<a id="v3AddCollectionBinaries"></a>
570+
# **v3AddCollectionBinaries**
571+
> v3AddCollectionBinaries(collectionId, addCollectionBinariesInputBody)
572+
573+
Add binaries to a collection.
574+
575+
Links the supplied binaries to a collection without affecting any binaries already linked. Binary IDs already linked to the collection are ignored. **Error codes:** - &#x60;404&#x60; [&#x60;NOT_FOUND&#x60;](/errors/NOT_FOUND) — Not Found - &#x60;403&#x60; [&#x60;ACCESS_DENIED&#x60;](/errors/ACCESS_DENIED) — Access Denied - &#x60;422&#x60; [&#x60;VALIDATION_FAILED&#x60;](/errors/VALIDATION_FAILED) — Validation Failed
576+
577+
### Example
578+
```java
579+
// Import classes:
580+
import ai.reveng.invoker.ApiClient;
581+
import ai.reveng.invoker.ApiException;
582+
import ai.reveng.invoker.Configuration;
583+
import ai.reveng.invoker.auth.*;
584+
import ai.reveng.invoker.models.*;
585+
import ai.reveng.api.CollectionsApi;
586+
587+
public class Example {
588+
public static void main(String[] args) {
589+
ApiClient defaultClient = Configuration.getDefaultApiClient();
590+
defaultClient.setBasePath("https://api.reveng.ai");
591+
592+
// Configure API key authorization: APIKey
593+
ApiKeyAuth APIKey = (ApiKeyAuth) defaultClient.getAuthentication("APIKey");
594+
APIKey.setApiKey("YOUR API KEY");
595+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
596+
//APIKey.setApiKeyPrefix("Token");
597+
598+
// Configure HTTP bearer authorization: bearerAuth
599+
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
600+
bearerAuth.setBearerToken("BEARER TOKEN");
601+
602+
CollectionsApi apiInstance = new CollectionsApi(defaultClient);
603+
Long collectionId = 56L; // Long |
604+
AddCollectionBinariesInputBody addCollectionBinariesInputBody = new AddCollectionBinariesInputBody(); // AddCollectionBinariesInputBody |
605+
try {
606+
apiInstance.v3AddCollectionBinaries(collectionId, addCollectionBinariesInputBody);
607+
} catch (ApiException e) {
608+
System.err.println("Exception when calling CollectionsApi#v3AddCollectionBinaries");
609+
System.err.println("Status code: " + e.getCode());
610+
System.err.println("Reason: " + e.getResponseBody());
611+
System.err.println("Response headers: " + e.getResponseHeaders());
612+
e.printStackTrace();
613+
}
614+
}
615+
}
616+
```
617+
618+
### Parameters
619+
620+
| Name | Type | Description | Notes |
621+
|------------- | ------------- | ------------- | -------------|
622+
| **collectionId** | **Long**| | |
623+
| **addCollectionBinariesInputBody** | [**AddCollectionBinariesInputBody**](AddCollectionBinariesInputBody.md)| | |
624+
625+
### Return type
626+
627+
null (empty response body)
628+
629+
### Authorization
630+
631+
[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth)
632+
633+
### HTTP request headers
634+
635+
- **Content-Type**: application/json
636+
- **Accept**: application/json
637+
638+
### HTTP response details
639+
| Status code | Description | Response headers |
640+
|-------------|-------------|------------------|
641+
| **204** | No Content | - |
642+
| **403** | Forbidden | - |
643+
| **404** | Not Found | - |
644+
| **422** | Unprocessable Entity | - |
645+
| **500** | Internal Server Error | - |
646+
567647
<a id="v3CreateCollection"></a>
568648
# **v3CreateCollection**
569649
> CreateCollectionOutputBody v3CreateCollection(createCollectionInputBody)
@@ -1125,3 +1205,81 @@ public class Example {
11251205
| **422** | Unprocessable Entity | - |
11261206
| **500** | Internal Server Error | - |
11271207

1208+
<a id="v3RemoveCollectionBinaries"></a>
1209+
# **v3RemoveCollectionBinaries**
1210+
> v3RemoveCollectionBinaries(collectionId, removeCollectionBinariesInputBody)
1211+
1212+
Remove binaries from a collection.
1213+
1214+
Unlinks the supplied binaries from a collection without affecting any other binaries linked to it. Binary IDs not linked to the collection are ignored. **Error codes:** - &#x60;404&#x60; [&#x60;NOT_FOUND&#x60;](/errors/NOT_FOUND) — Not Found - &#x60;403&#x60; [&#x60;ACCESS_DENIED&#x60;](/errors/ACCESS_DENIED) — Access Denied
1215+
1216+
### Example
1217+
```java
1218+
// Import classes:
1219+
import ai.reveng.invoker.ApiClient;
1220+
import ai.reveng.invoker.ApiException;
1221+
import ai.reveng.invoker.Configuration;
1222+
import ai.reveng.invoker.auth.*;
1223+
import ai.reveng.invoker.models.*;
1224+
import ai.reveng.api.CollectionsApi;
1225+
1226+
public class Example {
1227+
public static void main(String[] args) {
1228+
ApiClient defaultClient = Configuration.getDefaultApiClient();
1229+
defaultClient.setBasePath("https://api.reveng.ai");
1230+
1231+
// Configure API key authorization: APIKey
1232+
ApiKeyAuth APIKey = (ApiKeyAuth) defaultClient.getAuthentication("APIKey");
1233+
APIKey.setApiKey("YOUR API KEY");
1234+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
1235+
//APIKey.setApiKeyPrefix("Token");
1236+
1237+
// Configure HTTP bearer authorization: bearerAuth
1238+
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
1239+
bearerAuth.setBearerToken("BEARER TOKEN");
1240+
1241+
CollectionsApi apiInstance = new CollectionsApi(defaultClient);
1242+
Long collectionId = 56L; // Long |
1243+
RemoveCollectionBinariesInputBody removeCollectionBinariesInputBody = new RemoveCollectionBinariesInputBody(); // RemoveCollectionBinariesInputBody |
1244+
try {
1245+
apiInstance.v3RemoveCollectionBinaries(collectionId, removeCollectionBinariesInputBody);
1246+
} catch (ApiException e) {
1247+
System.err.println("Exception when calling CollectionsApi#v3RemoveCollectionBinaries");
1248+
System.err.println("Status code: " + e.getCode());
1249+
System.err.println("Reason: " + e.getResponseBody());
1250+
System.err.println("Response headers: " + e.getResponseHeaders());
1251+
e.printStackTrace();
1252+
}
1253+
}
1254+
}
1255+
```
1256+
1257+
### Parameters
1258+
1259+
| Name | Type | Description | Notes |
1260+
|------------- | ------------- | ------------- | -------------|
1261+
| **collectionId** | **Long**| | |
1262+
| **removeCollectionBinariesInputBody** | [**RemoveCollectionBinariesInputBody**](RemoveCollectionBinariesInputBody.md)| | |
1263+
1264+
### Return type
1265+
1266+
null (empty response body)
1267+
1268+
### Authorization
1269+
1270+
[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth)
1271+
1272+
### HTTP request headers
1273+
1274+
- **Content-Type**: application/json
1275+
- **Accept**: application/json
1276+
1277+
### HTTP response details
1278+
| Status code | Description | Response headers |
1279+
|-------------|-------------|------------------|
1280+
| **204** | No Content | - |
1281+
| **403** | Forbidden | - |
1282+
| **404** | Not Found | - |
1283+
| **422** | Unprocessable Entity | - |
1284+
| **500** | Internal Server Error | - |
1285+

‎docs/ProductOutput.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
|**id** | **String** | Product ID. | |
1414
|**name** | **String** | Human-readable product name. | |
1515
|**prices** | [**List&lt;PriceOutput&gt;**](PriceOutput.md) | All active recurring prices for this product. | |
16+
|**salesOnly** | **Boolean** | When true, this product is not self-serve purchasable and must be bought via direct sales. | |
1617
|**tier** | **String** | User tier associated with this product, if any. | [optional] |
1718

1819

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
# RemoveCollectionBinariesInputBody
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**binaries** | **List&lt;Long&gt;** | Binary IDs to remove from the collection. Binary IDs not linked to the collection are ignored. | |
11+
12+
13+

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>sdk</artifactId>
66
<packaging>jar</packaging>
77
<name>sdk</name>
8-
<version>3.124.0</version>
8+
<version>3.130.1</version>
99
<url>https://github.com/RevEngAI/sdk-java</url>
1010
<description>Java SDK for the RevEng.AI API</description>
1111
<scm>

0 commit comments

Comments
 (0)