Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.124.0
v3.129.1
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,15 @@ Class | Method | HTTP request | Description
*CollectionsApi* | [**update_collection**](docs/CollectionsApi.md#update_collection) | **PATCH** /v2/collections/{collection_id} | Updates a collection
*CollectionsApi* | [**update_collection_binaries**](docs/CollectionsApi.md#update_collection_binaries) | **PATCH** /v2/collections/{collection_id}/binaries | Updates a collection binaries
*CollectionsApi* | [**update_collection_tags**](docs/CollectionsApi.md#update_collection_tags) | **PATCH** /v2/collections/{collection_id}/tags | Updates a collection tags
*CollectionsApi* | [**v3_add_collection_binaries**](docs/CollectionsApi.md#v3_add_collection_binaries) | **POST** /v3/collections/{collection_id}/binaries | Add binaries to a collection.
*CollectionsApi* | [**v3_create_collection**](docs/CollectionsApi.md#v3_create_collection) | **POST** /v3/collections | Create a collection.
*CollectionsApi* | [**v3_delete_collection**](docs/CollectionsApi.md#v3_delete_collection) | **DELETE** /v3/collections/{collection_id} | Delete a collection.
*CollectionsApi* | [**v3_get_collection**](docs/CollectionsApi.md#v3_get_collection) | **GET** /v3/collections/{collection_id} | Get a collection.
*CollectionsApi* | [**v3_list_collections**](docs/CollectionsApi.md#v3_list_collections) | **GET** /v3/collections | List collections.
*CollectionsApi* | [**v3_patch_collection**](docs/CollectionsApi.md#v3_patch_collection) | **PATCH** /v3/collections/{collection_id} | Update a collection.
*CollectionsApi* | [**v3_patch_collection_binaries**](docs/CollectionsApi.md#v3_patch_collection_binaries) | **PATCH** /v3/collections/{collection_id}/binaries | Replace the binaries in a collection.
*CollectionsApi* | [**v3_patch_collection_tags**](docs/CollectionsApi.md#v3_patch_collection_tags) | **PATCH** /v3/collections/{collection_id}/tags | Replace the tags on a collection.
*CollectionsApi* | [**v3_remove_collection_binaries**](docs/CollectionsApi.md#v3_remove_collection_binaries) | **DELETE** /v3/collections/{collection_id}/binaries | Remove binaries from a collection.
*ConfigApi* | [**get_config**](docs/ConfigApi.md#get_config) | **GET** /v2/config | Get Config
*ConversationsApi* | [**cancel_run**](docs/ConversationsApi.md#cancel_run) | **POST** /v2/conversations/{id}/cancel | Cancel an active run
*ConversationsApi* | [**confirm_tool**](docs/ConversationsApi.md#confirm_tool) | **POST** /v2/conversations/{id}/confirm | Approve or reject a pending tool confirmation
Expand Down Expand Up @@ -207,6 +209,7 @@ Class | Method | HTTP request | Description
- [AIDecompInverseStringMapItem](docs/AIDecompInverseStringMapItem.md)
- [APIError](docs/APIError.md)
- [AddCalleeInputBody](docs/AddCalleeInputBody.md)
- [AddCollectionBinariesInputBody](docs/AddCollectionBinariesInputBody.md)
- [AddIssuerDomainInputBody](docs/AddIssuerDomainInputBody.md)
- [AddOwnerInputBody](docs/AddOwnerInputBody.md)
- [AddTeamMemberInputBody](docs/AddTeamMemberInputBody.md)
Expand Down Expand Up @@ -591,6 +594,7 @@ Class | Method | HTTP request | Description
- [RegisterUserInputBody](docs/RegisterUserInputBody.md)
- [RegistryOperation](docs/RegistryOperation.md)
- [RelativeBinaryResponse](docs/RelativeBinaryResponse.md)
- [RemoveCollectionBinariesInputBody](docs/RemoveCollectionBinariesInputBody.md)
- [RenameAppliedEvent](docs/RenameAppliedEvent.md)
- [RenameInputBody](docs/RenameInputBody.md)
- [RenameOutputBody](docs/RenameOutputBody.md)
Expand Down
29 changes: 29 additions & 0 deletions docs/AddCollectionBinariesInputBody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# AddCollectionBinariesInputBody


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**binaries** | **List[int]** | Binary IDs to add to the collection. Binary IDs already linked to the collection are ignored. |

## Example

```python
from revengai.models.add_collection_binaries_input_body import AddCollectionBinariesInputBody

# TODO update the JSON string below
json = "{}"
# create an instance of AddCollectionBinariesInputBody from a JSON string
add_collection_binaries_input_body_instance = AddCollectionBinariesInputBody.from_json(json)
# print the JSON string representation of the object
print(AddCollectionBinariesInputBody.to_json())

# convert the object into a dict
add_collection_binaries_input_body_dict = add_collection_binaries_input_body_instance.to_dict()
# create an instance of AddCollectionBinariesInputBody from a dict
add_collection_binaries_input_body_from_dict = AddCollectionBinariesInputBody.from_dict(add_collection_binaries_input_body_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


189 changes: 189 additions & 0 deletions docs/CollectionsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ Method | HTTP request | Description
[**update_collection**](CollectionsApi.md#update_collection) | **PATCH** /v2/collections/{collection_id} | Updates a collection
[**update_collection_binaries**](CollectionsApi.md#update_collection_binaries) | **PATCH** /v2/collections/{collection_id}/binaries | Updates a collection binaries
[**update_collection_tags**](CollectionsApi.md#update_collection_tags) | **PATCH** /v2/collections/{collection_id}/tags | Updates a collection tags
[**v3_add_collection_binaries**](CollectionsApi.md#v3_add_collection_binaries) | **POST** /v3/collections/{collection_id}/binaries | Add binaries to a collection.
[**v3_create_collection**](CollectionsApi.md#v3_create_collection) | **POST** /v3/collections | Create a collection.
[**v3_delete_collection**](CollectionsApi.md#v3_delete_collection) | **DELETE** /v3/collections/{collection_id} | Delete a collection.
[**v3_get_collection**](CollectionsApi.md#v3_get_collection) | **GET** /v3/collections/{collection_id} | Get a collection.
[**v3_list_collections**](CollectionsApi.md#v3_list_collections) | **GET** /v3/collections | List collections.
[**v3_patch_collection**](CollectionsApi.md#v3_patch_collection) | **PATCH** /v3/collections/{collection_id} | Update a collection.
[**v3_patch_collection_binaries**](CollectionsApi.md#v3_patch_collection_binaries) | **PATCH** /v3/collections/{collection_id}/binaries | Replace the binaries in a collection.
[**v3_patch_collection_tags**](CollectionsApi.md#v3_patch_collection_tags) | **PATCH** /v3/collections/{collection_id}/tags | Replace the tags on a collection.
[**v3_remove_collection_binaries**](CollectionsApi.md#v3_remove_collection_binaries) | **DELETE** /v3/collections/{collection_id}/binaries | Remove binaries from a collection.


# **create_collection**
Expand Down Expand Up @@ -655,6 +657,100 @@ Name | Type | Description | Notes

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **v3_add_collection_binaries**
> v3_add_collection_binaries(collection_id, add_collection_binaries_input_body)

Add binaries to a collection.

Links the supplied binaries to a collection without affecting any binaries already linked. Binary IDs already linked to the collection are ignored.

**Error codes:**
- `404` [`NOT_FOUND`](/errors/NOT_FOUND) β€” Not Found
- `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) β€” Access Denied
- `422` [`VALIDATION_FAILED`](/errors/VALIDATION_FAILED) β€” Validation Failed

### Example

* Api Key Authentication (APIKey):
* Bearer Authentication (bearerAuth):

```python
import revengai
from revengai.models.add_collection_binaries_input_body import AddCollectionBinariesInputBody
from revengai.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.reveng.ai
# See configuration.py for a list of all supported configuration parameters.
configuration = revengai.Configuration(
host = "https://api.reveng.ai"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: APIKey
configuration.api_key['APIKey'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKey'] = 'Bearer'

# Configure Bearer authorization: bearerAuth
configuration = revengai.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with revengai.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = revengai.CollectionsApi(api_client)
collection_id = 56 # int |
add_collection_binaries_input_body = revengai.AddCollectionBinariesInputBody() # AddCollectionBinariesInputBody |

try:
# Add binaries to a collection.
api_instance.v3_add_collection_binaries(collection_id, add_collection_binaries_input_body)
except Exception as e:
print("Exception when calling CollectionsApi->v3_add_collection_binaries: %s\n" % e)
```



### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**collection_id** | **int**| |
**add_collection_binaries_input_body** | [**AddCollectionBinariesInputBody**](AddCollectionBinariesInputBody.md)| |

### Return type

void (empty response body)

### Authorization

[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**204** | No Content | - |
**403** | Forbidden | - |
**404** | Not Found | - |
**422** | Unprocessable Entity | - |
**500** | Internal Server Error | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **v3_create_collection**
> CreateCollectionOutputBody v3_create_collection(create_collection_input_body)

Expand Down Expand Up @@ -1331,3 +1427,96 @@ Name | Type | Description | Notes

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **v3_remove_collection_binaries**
> v3_remove_collection_binaries(collection_id, remove_collection_binaries_input_body)

Remove binaries from a collection.

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:**
- `404` [`NOT_FOUND`](/errors/NOT_FOUND) β€” Not Found
- `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) β€” Access Denied

### Example

* Api Key Authentication (APIKey):
* Bearer Authentication (bearerAuth):

```python
import revengai
from revengai.models.remove_collection_binaries_input_body import RemoveCollectionBinariesInputBody
from revengai.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.reveng.ai
# See configuration.py for a list of all supported configuration parameters.
configuration = revengai.Configuration(
host = "https://api.reveng.ai"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: APIKey
configuration.api_key['APIKey'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKey'] = 'Bearer'

# Configure Bearer authorization: bearerAuth
configuration = revengai.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with revengai.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = revengai.CollectionsApi(api_client)
collection_id = 56 # int |
remove_collection_binaries_input_body = revengai.RemoveCollectionBinariesInputBody() # RemoveCollectionBinariesInputBody |

try:
# Remove binaries from a collection.
api_instance.v3_remove_collection_binaries(collection_id, remove_collection_binaries_input_body)
except Exception as e:
print("Exception when calling CollectionsApi->v3_remove_collection_binaries: %s\n" % e)
```



### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**collection_id** | **int**| |
**remove_collection_binaries_input_body** | [**RemoveCollectionBinariesInputBody**](RemoveCollectionBinariesInputBody.md)| |

### Return type

void (empty response body)

### Authorization

[APIKey](../README.md#APIKey), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**204** | No Content | - |
**403** | Forbidden | - |
**404** | Not Found | - |
**422** | Unprocessable Entity | - |
**500** | Internal Server Error | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

1 change: 1 addition & 0 deletions docs/ProductOutput.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Name | Type | Description | Notes
**id** | **str** | Product ID. |
**name** | **str** | Human-readable product name. |
**prices** | [**List[PriceOutput]**](PriceOutput.md) | All active recurring prices for this product. |
**sales_only** | **bool** | When true, this product is not self-serve purchasable and must be bought via direct sales. |
**tier** | **str** | User tier associated with this product, if any. | [optional]

## Example
Expand Down
29 changes: 29 additions & 0 deletions docs/RemoveCollectionBinariesInputBody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# RemoveCollectionBinariesInputBody


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**binaries** | **List[int]** | Binary IDs to remove from the collection. Binary IDs not linked to the collection are ignored. |

## Example

```python
from revengai.models.remove_collection_binaries_input_body import RemoveCollectionBinariesInputBody

# TODO update the JSON string below
json = "{}"
# create an instance of RemoveCollectionBinariesInputBody from a JSON string
remove_collection_binaries_input_body_instance = RemoveCollectionBinariesInputBody.from_json(json)
# print the JSON string representation of the object
print(RemoveCollectionBinariesInputBody.to_json())

# convert the object into a dict
remove_collection_binaries_input_body_dict = remove_collection_binaries_input_body_instance.to_dict()
# create an instance of RemoveCollectionBinariesInputBody from a dict
remove_collection_binaries_input_body_from_dict = RemoveCollectionBinariesInputBody.from_dict(remove_collection_binaries_input_body_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


6 changes: 5 additions & 1 deletion revengai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
""" # noqa: E501


__version__ = "v3.124.0"
__version__ = "v3.129.1"

# Define package exports
__all__ = [
Expand Down Expand Up @@ -52,6 +52,7 @@
"AIDecompInverseStringMapItem",
"APIError",
"AddCalleeInputBody",
"AddCollectionBinariesInputBody",
"AddIssuerDomainInputBody",
"AddOwnerInputBody",
"AddTeamMemberInputBody",
Expand Down Expand Up @@ -436,6 +437,7 @@
"RegisterUserInputBody",
"RegistryOperation",
"RelativeBinaryResponse",
"RemoveCollectionBinariesInputBody",
"RenameAppliedEvent",
"RenameInputBody",
"RenameOutputBody",
Expand Down Expand Up @@ -595,6 +597,7 @@
from revengai.models.ai_decomp_inverse_string_map_item import AIDecompInverseStringMapItem as AIDecompInverseStringMapItem
from revengai.models.api_error import APIError as APIError
from revengai.models.add_callee_input_body import AddCalleeInputBody as AddCalleeInputBody
from revengai.models.add_collection_binaries_input_body import AddCollectionBinariesInputBody as AddCollectionBinariesInputBody
from revengai.models.add_issuer_domain_input_body import AddIssuerDomainInputBody as AddIssuerDomainInputBody
from revengai.models.add_owner_input_body import AddOwnerInputBody as AddOwnerInputBody
from revengai.models.add_team_member_input_body import AddTeamMemberInputBody as AddTeamMemberInputBody
Expand Down Expand Up @@ -979,6 +982,7 @@
from revengai.models.register_user_input_body import RegisterUserInputBody as RegisterUserInputBody
from revengai.models.registry_operation import RegistryOperation as RegistryOperation
from revengai.models.relative_binary_response import RelativeBinaryResponse as RelativeBinaryResponse
from revengai.models.remove_collection_binaries_input_body import RemoveCollectionBinariesInputBody as RemoveCollectionBinariesInputBody
from revengai.models.rename_applied_event import RenameAppliedEvent as RenameAppliedEvent
from revengai.models.rename_input_body import RenameInputBody as RenameInputBody
from revengai.models.rename_output_body import RenameOutputBody as RenameOutputBody
Expand Down
Loading