Skip to content

Commit 975c54e

Browse files
Update SDK to version v3.97.0
- Generated from OpenAPI spec version v3.97.0 - Auto-generated by GitHub Actions
1 parent d432c76 commit 975c54e

12 files changed

Lines changed: 653 additions & 5 deletions

.sdk-version

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

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ Class | Method | HTTP request | Description
8181
*AnalysesCoreApi* | [**upload_file**](docs/AnalysesCoreApi.md#upload_file) | **POST** /v2/upload | Upload File
8282
*AnalysesCoreApi* | [**v3_get_analysis_strings**](docs/AnalysesCoreApi.md#v3_get_analysis_strings) | **GET** /v3/analyses/{analysis_id}/functions/strings | List strings for an analysis.
8383
*AnalysesCoreApi* | [**v3_get_analysis_strings_status**](docs/AnalysesCoreApi.md#v3_get_analysis_strings_status) | **GET** /v3/analyses/{analysis_id}/functions/strings/status | Get the string-extraction status for an analysis.
84+
*AnalysesCoreApi* | [**v3_list_example_analyses**](docs/AnalysesCoreApi.md#v3_list_example_analyses) | **GET** /v3/analyses/examples | List example analyses
8485
*AnalysesResultsMetadataApi* | [**get_analysis_functions_paginated**](docs/AnalysesResultsMetadataApi.md#get_analysis_functions_paginated) | **GET** /v2/analyses/{analysis_id}/functions | Get functions from analysis
8586
*AnalysesResultsMetadataApi* | [**get_capabilities**](docs/AnalysesResultsMetadataApi.md#get_capabilities) | **GET** /v2/analyses/{analysis_id}/capabilities | Gets the capabilities from the analysis
8687
*AnalysesResultsMetadataApi* | [**get_functions_list**](docs/AnalysesResultsMetadataApi.md#get_functions_list) | **GET** /v2/analyses/{analysis_id}/functions/list | Gets functions from analysis
@@ -444,6 +445,7 @@ Class | Method | HTTP request | Description
444445
- [EventTOOLCALLSTART](docs/EventTOOLCALLSTART.md)
445446
- [EventTOOLCONFIRMATIONREQUIRED](docs/EventTOOLCONFIRMATIONREQUIRED.md)
446447
- [EventWarning](docs/EventWarning.md)
448+
- [Example](docs/Example.md)
447449
- [ExportModel](docs/ExportModel.md)
448450
- [ExternalResponse](docs/ExternalResponse.md)
449451
- [ExtractedURL](docs/ExtractedURL.md)
@@ -520,6 +522,7 @@ Class | Method | HTTP request | Description
520522
- [ListAnalysisStringsOutputBody](docs/ListAnalysisStringsOutputBody.md)
521523
- [ListCollectionResults](docs/ListCollectionResults.md)
522524
- [ListCollectionsOutputBody](docs/ListCollectionsOutputBody.md)
525+
- [ListExampleAnalysesOutputBody](docs/ListExampleAnalysesOutputBody.md)
523526
- [ListFunctionStringsOutputBody](docs/ListFunctionStringsOutputBody.md)
524527
- [ListFunctionsDataTypesOutputBody](docs/ListFunctionsDataTypesOutputBody.md)
525528
- [ListTeamsOutputBody](docs/ListTeamsOutputBody.md)

docs/AnalysesCoreApi.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Method | HTTP request | Description
2929
[**upload_file**](AnalysesCoreApi.md#upload_file) | **POST** /v2/upload | Upload File
3030
[**v3_get_analysis_strings**](AnalysesCoreApi.md#v3_get_analysis_strings) | **GET** /v3/analyses/{analysis_id}/functions/strings | List strings for an analysis.
3131
[**v3_get_analysis_strings_status**](AnalysesCoreApi.md#v3_get_analysis_strings_status) | **GET** /v3/analyses/{analysis_id}/functions/strings/status | Get the string-extraction status for an analysis.
32+
[**v3_list_example_analyses**](AnalysesCoreApi.md#v3_list_example_analyses) | **GET** /v3/analyses/examples | List example analyses
3233

3334

3435
# **add_user_string_to_analysis**
@@ -2175,3 +2176,79 @@ Name | Type | Description | Notes
21752176

21762177
[[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)
21772178

2179+
# **v3_list_example_analyses**
2180+
> ListExampleAnalysesOutputBody v3_list_example_analyses()
2181+
2182+
List example analyses
2183+
2184+
Returns the curated example Analyses.
2185+
2186+
### Example
2187+
2188+
* Api Key Authentication (APIKey):
2189+
2190+
```python
2191+
import revengai
2192+
from revengai.models.list_example_analyses_output_body import ListExampleAnalysesOutputBody
2193+
from revengai.rest import ApiException
2194+
from pprint import pprint
2195+
2196+
# Defining the host is optional and defaults to https://api.reveng.ai
2197+
# See configuration.py for a list of all supported configuration parameters.
2198+
configuration = revengai.Configuration(
2199+
host = "https://api.reveng.ai"
2200+
)
2201+
2202+
# The client must configure the authentication and authorization parameters
2203+
# in accordance with the API server security policy.
2204+
# Examples for each auth method are provided below, use the example that
2205+
# satisfies your auth use case.
2206+
2207+
# Configure API key authorization: APIKey
2208+
configuration.api_key['APIKey'] = os.environ["API_KEY"]
2209+
2210+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
2211+
# configuration.api_key_prefix['APIKey'] = 'Bearer'
2212+
2213+
# Enter a context with an instance of the API client
2214+
with revengai.ApiClient(configuration) as api_client:
2215+
# Create an instance of the API class
2216+
api_instance = revengai.AnalysesCoreApi(api_client)
2217+
2218+
try:
2219+
# List example analyses
2220+
api_response = api_instance.v3_list_example_analyses()
2221+
print("The response of AnalysesCoreApi->v3_list_example_analyses:\n")
2222+
pprint(api_response)
2223+
except Exception as e:
2224+
print("Exception when calling AnalysesCoreApi->v3_list_example_analyses: %s\n" % e)
2225+
```
2226+
2227+
2228+
2229+
### Parameters
2230+
2231+
This endpoint does not need any parameter.
2232+
2233+
### Return type
2234+
2235+
[**ListExampleAnalysesOutputBody**](ListExampleAnalysesOutputBody.md)
2236+
2237+
### Authorization
2238+
2239+
[APIKey](../README.md#APIKey)
2240+
2241+
### HTTP request headers
2242+
2243+
- **Content-Type**: Not defined
2244+
- **Accept**: application/json
2245+
2246+
### HTTP response details
2247+
2248+
| Status code | Description | Response headers |
2249+
|-------------|-------------|------------------|
2250+
**200** | OK | - |
2251+
**0** | Error | - |
2252+
2253+
[[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)
2254+

docs/Example.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Example
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**analysis_id** | **int** | Analysis ID |
9+
**analysis_scope** | **str** | Scope of the analysis (always PUBLIC for examples) |
10+
**binary_id** | **int** | Binary ID |
11+
**binary_name** | **str** | Binary filename |
12+
**binary_size** | **int** | Binary size in bytes |
13+
**creation** | **datetime** | When the analysis was created |
14+
**is_owner** | **bool** | True when the caller owns the analysis |
15+
**model_id** | **int** | Model ID |
16+
**sha_256_hash** | **str** | SHA-256 hash of the binary |
17+
**status** | **str** | Analysis status |
18+
**tags** | **List[str]** | Tags associated with this binary |
19+
**username** | **str** | Username of the analysis owner |
20+
21+
## Example
22+
23+
```python
24+
from revengai.models.example import Example
25+
26+
# TODO update the JSON string below
27+
json = "{}"
28+
# create an instance of Example from a JSON string
29+
example_instance = Example.from_json(json)
30+
# print the JSON string representation of the object
31+
print(Example.to_json())
32+
33+
# convert the object into a dict
34+
example_dict = example_instance.to_dict()
35+
# create an instance of Example from a dict
36+
example_from_dict = Example.from_dict(example_dict)
37+
```
38+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
39+
40+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# ListExampleAnalysesOutputBody
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**analyses** | [**List[Example]**](Example.md) | List of example analyses |
9+
10+
## Example
11+
12+
```python
13+
from revengai.models.list_example_analyses_output_body import ListExampleAnalysesOutputBody
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of ListExampleAnalysesOutputBody from a JSON string
18+
list_example_analyses_output_body_instance = ListExampleAnalysesOutputBody.from_json(json)
19+
# print the JSON string representation of the object
20+
print(ListExampleAnalysesOutputBody.to_json())
21+
22+
# convert the object into a dict
23+
list_example_analyses_output_body_dict = list_example_analyses_output_body_instance.to_dict()
24+
# create an instance of ListExampleAnalysesOutputBody from a dict
25+
list_example_analyses_output_body_from_dict = ListExampleAnalysesOutputBody.from_dict(list_example_analyses_output_body_dict)
26+
```
27+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28+
29+

revengai/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
""" # noqa: E501
1414

1515

16-
__version__ = "v3.96.4"
16+
__version__ = "v3.97.0"
1717

1818
# Define package exports
1919
__all__ = [
@@ -290,6 +290,7 @@
290290
"EventTOOLCALLSTART",
291291
"EventTOOLCONFIRMATIONREQUIRED",
292292
"EventWarning",
293+
"Example",
293294
"ExportModel",
294295
"ExternalResponse",
295296
"ExtractedURL",
@@ -366,6 +367,7 @@
366367
"ListAnalysisStringsOutputBody",
367368
"ListCollectionResults",
368369
"ListCollectionsOutputBody",
370+
"ListExampleAnalysesOutputBody",
369371
"ListFunctionStringsOutputBody",
370372
"ListFunctionsDataTypesOutputBody",
371373
"ListTeamsOutputBody",
@@ -818,6 +820,7 @@
818820
from revengai.models.event_toolcallstart import EventTOOLCALLSTART as EventTOOLCALLSTART
819821
from revengai.models.event_toolconfirmationrequired import EventTOOLCONFIRMATIONREQUIRED as EventTOOLCONFIRMATIONREQUIRED
820822
from revengai.models.event_warning import EventWarning as EventWarning
823+
from revengai.models.example import Example as Example
821824
from revengai.models.export_model import ExportModel as ExportModel
822825
from revengai.models.external_response import ExternalResponse as ExternalResponse
823826
from revengai.models.extracted_url import ExtractedURL as ExtractedURL
@@ -894,6 +897,7 @@
894897
from revengai.models.list_analysis_strings_output_body import ListAnalysisStringsOutputBody as ListAnalysisStringsOutputBody
895898
from revengai.models.list_collection_results import ListCollectionResults as ListCollectionResults
896899
from revengai.models.list_collections_output_body import ListCollectionsOutputBody as ListCollectionsOutputBody
900+
from revengai.models.list_example_analyses_output_body import ListExampleAnalysesOutputBody as ListExampleAnalysesOutputBody
897901
from revengai.models.list_function_strings_output_body import ListFunctionStringsOutputBody as ListFunctionStringsOutputBody
898902
from revengai.models.list_functions_data_types_output_body import ListFunctionsDataTypesOutputBody as ListFunctionsDataTypesOutputBody
899903
from revengai.models.list_teams_output_body import ListTeamsOutputBody as ListTeamsOutputBody

0 commit comments

Comments
 (0)