From ed4ce137deaa4b2d10cae7f2074a62abe6d1d369 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 30 Mar 2026 06:47:34 +0000 Subject: [PATCH] Update SDK to version v3.56.0 - Generated from OpenAPI spec version v3.56.0 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- docs/AnalysisCreateRequest.md | 4 ++-- docs/AppApiRestV2FunctionsTypesFunction.md | 2 -- docs/FunctionsDetailResponse.md | 2 -- revengai/__init__.py | 2 +- revengai/api_client.py | 2 +- revengai/configuration.py | 4 ++-- revengai/models/analysis_create_request.py | 4 ++-- ...pp_api_rest_v2_functions_types_function.py | 22 ++++--------------- revengai/models/functions_detail_response.py | 22 ++++--------------- test/test_analysis_functions.py | 16 ++------------ ...pp_api_rest_v2_functions_types_function.py | 8 +------ test/test_base_response_analysis_functions.py | 8 +------ ...base_response_functions_detail_response.py | 8 +------ test/test_functions_detail_response.py | 8 +------ 15 files changed, 23 insertions(+), 91 deletions(-) diff --git a/.sdk-version b/.sdk-version index f22d573..436ebfe 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.55.2 +v3.56.0 diff --git a/docs/AnalysisCreateRequest.md b/docs/AnalysisCreateRequest.md index 5d35eb9..8b672ef 100644 --- a/docs/AnalysisCreateRequest.md +++ b/docs/AnalysisCreateRequest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **filename** | **str** | The name of the file | -**sha_256_hash** | **str** | The name of the file | -**tags** | [**List[Tag]**](Tag.md) | List of community tags to assign to an analysis | [optional] [default to []] +**sha_256_hash** | **str** | The sha256 hash of the file | +**tags** | [**List[Tag]**](Tag.md) | List of tags to assign to an analysis | [optional] [default to []] **analysis_scope** | [**AnalysisScope**](AnalysisScope.md) | The scope of the analysis determines who can access it | [optional] **symbols** | [**Symbols**](Symbols.md) | | [optional] **debug_hash** | **str** | | [optional] diff --git a/docs/AppApiRestV2FunctionsTypesFunction.md b/docs/AppApiRestV2FunctionsTypesFunction.md index e708c7e..7f9b98d 100644 --- a/docs/AppApiRestV2FunctionsTypesFunction.md +++ b/docs/AppApiRestV2FunctionsTypesFunction.md @@ -11,8 +11,6 @@ Name | Type | Description | Notes **function_vaddr** | **int** | Function virtual address | **function_size** | **int** | Function size | **debug** | **bool** | Whether the function is debug | -**embedding_3d** | **List[float]** | | [optional] -**embedding_1d** | **List[float]** | | [optional] ## Example diff --git a/docs/FunctionsDetailResponse.md b/docs/FunctionsDetailResponse.md index 1e23b1e..5f46a66 100644 --- a/docs/FunctionsDetailResponse.md +++ b/docs/FunctionsDetailResponse.md @@ -16,8 +16,6 @@ Name | Type | Description | Notes **sha_256_hash** | **str** | | **debug_hash** | **str** | | **debug** | **bool** | | -**embedding_3d** | **List[float]** | | [optional] -**embedding_1d** | **List[float]** | | [optional] ## Example diff --git a/revengai/__init__.py b/revengai/__init__.py index 27d9ed7..a420c34 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -13,7 +13,7 @@ """ # noqa: E501 -__version__ = "v3.55.2" +__version__ = "v3.56.0" # Define package exports __all__ = [ diff --git a/revengai/api_client.py b/revengai/api_client.py index 0c586a7..202247a 100644 --- a/revengai/api_client.py +++ b/revengai/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/v3.55.2/python' + self.user_agent = 'OpenAPI-Generator/v3.56.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/revengai/configuration.py b/revengai/configuration.py index 675ce7b..1772d85 100644 --- a/revengai/configuration.py +++ b/revengai/configuration.py @@ -533,8 +533,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: v3.55.2\n"\ - "SDK Package Version: v3.55.2".\ + "Version of the API: v3.56.0\n"\ + "SDK Package Version: v3.56.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/revengai/models/analysis_create_request.py b/revengai/models/analysis_create_request.py index b0502b1..3e18f78 100644 --- a/revengai/models/analysis_create_request.py +++ b/revengai/models/analysis_create_request.py @@ -32,8 +32,8 @@ class AnalysisCreateRequest(BaseModel): AnalysisCreateRequest """ # noqa: E501 filename: StrictStr = Field(description="The name of the file") - sha_256_hash: StrictStr = Field(description="The name of the file") - tags: Optional[List[Tag]] = Field(default=None, description="List of community tags to assign to an analysis") + sha_256_hash: StrictStr = Field(description="The sha256 hash of the file") + tags: Optional[List[Tag]] = Field(default=None, description="List of tags to assign to an analysis") analysis_scope: Optional[AnalysisScope] = Field(default=None, description="The scope of the analysis determines who can access it") symbols: Optional[Symbols] = None debug_hash: Optional[StrictStr] = None diff --git a/revengai/models/app_api_rest_v2_functions_types_function.py b/revengai/models/app_api_rest_v2_functions_types_function.py index 3052b3c..b04283e 100644 --- a/revengai/models/app_api_rest_v2_functions_types_function.py +++ b/revengai/models/app_api_rest_v2_functions_types_function.py @@ -16,8 +16,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -31,9 +31,7 @@ class AppApiRestV2FunctionsTypesFunction(BaseModel): function_vaddr: StrictInt = Field(description="Function virtual address") function_size: StrictInt = Field(description="Function size") debug: StrictBool = Field(description="Whether the function is debug") - embedding_3d: Optional[List[Union[StrictFloat, StrictInt]]] = None - embedding_1d: Optional[List[Union[StrictFloat, StrictInt]]] = None - __properties: ClassVar[List[str]] = ["function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug", "embedding_3d", "embedding_1d"] + __properties: ClassVar[List[str]] = ["function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug"] model_config = ConfigDict( populate_by_name=True, @@ -74,16 +72,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if embedding_3d (nullable) is None - # and model_fields_set contains the field - if self.embedding_3d is None and "embedding_3d" in self.model_fields_set: - _dict['embedding_3d'] = None - - # set to None if embedding_1d (nullable) is None - # and model_fields_set contains the field - if self.embedding_1d is None and "embedding_1d" in self.model_fields_set: - _dict['embedding_1d'] = None - return _dict @classmethod @@ -101,9 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "function_mangled_name": obj.get("function_mangled_name"), "function_vaddr": obj.get("function_vaddr"), "function_size": obj.get("function_size"), - "debug": obj.get("debug"), - "embedding_3d": obj.get("embedding_3d"), - "embedding_1d": obj.get("embedding_1d") + "debug": obj.get("debug") }) return _obj diff --git a/revengai/models/functions_detail_response.py b/revengai/models/functions_detail_response.py index 375b0d4..f9ec67c 100644 --- a/revengai/models/functions_detail_response.py +++ b/revengai/models/functions_detail_response.py @@ -16,8 +16,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -36,9 +36,7 @@ class FunctionsDetailResponse(BaseModel): sha_256_hash: StrictStr debug_hash: Optional[StrictStr] debug: StrictBool - embedding_3d: Optional[List[Union[StrictFloat, StrictInt]]] = None - embedding_1d: Optional[List[Union[StrictFloat, StrictInt]]] = None - __properties: ClassVar[List[str]] = ["function_id", "function_name", "function_name_mangled", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "debug", "embedding_3d", "embedding_1d"] + __properties: ClassVar[List[str]] = ["function_id", "function_name", "function_name_mangled", "function_vaddr", "function_size", "analysis_id", "binary_id", "binary_name", "sha_256_hash", "debug_hash", "debug"] model_config = ConfigDict( populate_by_name=True, @@ -84,16 +82,6 @@ def to_dict(self) -> Dict[str, Any]: if self.debug_hash is None and "debug_hash" in self.model_fields_set: _dict['debug_hash'] = None - # set to None if embedding_3d (nullable) is None - # and model_fields_set contains the field - if self.embedding_3d is None and "embedding_3d" in self.model_fields_set: - _dict['embedding_3d'] = None - - # set to None if embedding_1d (nullable) is None - # and model_fields_set contains the field - if self.embedding_1d is None and "embedding_1d" in self.model_fields_set: - _dict['embedding_1d'] = None - return _dict @classmethod @@ -116,9 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "binary_name": obj.get("binary_name"), "sha_256_hash": obj.get("sha_256_hash"), "debug_hash": obj.get("debug_hash"), - "debug": obj.get("debug"), - "embedding_3d": obj.get("embedding_3d"), - "embedding_1d": obj.get("embedding_1d") + "debug": obj.get("debug") }) return _obj diff --git a/test/test_analysis_functions.py b/test/test_analysis_functions.py index dfbfb42..d7b7c74 100644 --- a/test/test_analysis_functions.py +++ b/test/test_analysis_functions.py @@ -41,13 +41,7 @@ def make_instance(self, include_optional) -> AnalysisFunctions: function_mangled_name = '', function_vaddr = 56, function_size = 56, - debug = True, - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], ) + debug = True, ) ] ) else: @@ -59,13 +53,7 @@ def make_instance(self, include_optional) -> AnalysisFunctions: function_mangled_name = '', function_vaddr = 56, function_size = 56, - debug = True, - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], ) + debug = True, ) ], ) """ diff --git a/test/test_app_api_rest_v2_functions_types_function.py b/test/test_app_api_rest_v2_functions_types_function.py index 8e620e5..3d7a2da 100644 --- a/test/test_app_api_rest_v2_functions_types_function.py +++ b/test/test_app_api_rest_v2_functions_types_function.py @@ -39,13 +39,7 @@ def make_instance(self, include_optional) -> AppApiRestV2FunctionsTypesFunction: function_mangled_name = '', function_vaddr = 56, function_size = 56, - debug = True, - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ] + debug = True ) else: return AppApiRestV2FunctionsTypesFunction( diff --git a/test/test_base_response_analysis_functions.py b/test/test_base_response_analysis_functions.py index b472c23..519032a 100644 --- a/test/test_base_response_analysis_functions.py +++ b/test/test_base_response_analysis_functions.py @@ -43,13 +43,7 @@ def make_instance(self, include_optional) -> BaseResponseAnalysisFunctions: function_mangled_name = '', function_vaddr = 56, function_size = 56, - debug = True, - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], ) + debug = True, ) ], ), message = '', errors = [ diff --git a/test/test_base_response_functions_detail_response.py b/test/test_base_response_functions_detail_response.py index b6c3d28..66f3542 100644 --- a/test/test_base_response_functions_detail_response.py +++ b/test/test_base_response_functions_detail_response.py @@ -46,13 +46,7 @@ def make_instance(self, include_optional) -> BaseResponseFunctionsDetailResponse binary_name = '', sha_256_hash = '', debug_hash = '', - debug = True, - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], ), + debug = True, ), message = '', errors = [ revengai.models.error_model.ErrorModel( diff --git a/test/test_functions_detail_response.py b/test/test_functions_detail_response.py index 9ca05ba..62b6350 100644 --- a/test/test_functions_detail_response.py +++ b/test/test_functions_detail_response.py @@ -44,13 +44,7 @@ def make_instance(self, include_optional) -> FunctionsDetailResponse: binary_name = '', sha_256_hash = '', debug_hash = '', - debug = True, - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ] + debug = True ) else: return FunctionsDetailResponse(