Skip to content

Commit c0b5fe4

Browse files
authored
Merge pull request #35 from RevEngAI/sdk-update-v2.12.0
🤖 Update SDK to version v2.12.0
2 parents 046d415 + 8092ba1 commit c0b5fe4

13 files changed

+28
-16
lines changed

.sdk-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.11.7
1+
v2.12.0

docs/AnalysisFunctionMatchingRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**results_per_function** | **int** | Maximum number of matches to return per function, default is 1, max is 10 | [optional] [default to 1]
1111
**page** | **int** | Page number for paginated results, default is 1 (first page) | [optional] [default to 1]
1212
**page_size** | **int** | Number of functions to return per page, default is 0 (all functions), max is 1000 | [optional] [default to 0]
13+
**no_cache** | **bool** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] [default to False]
1314

1415
## Example
1516

docs/AutoUnstripRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**apply** | **bool** | Whether to apply the matched function names to the target binary, default is False | [optional] [default to False]
1010
**confidence_threshold** | **float** | Confidence threshold for applying function names as a percentage, default is 90 | [optional] [default to 90.0]
1111
**min_group_size** | **int** | Minimum number of matching functions required to consider for a match, default is 10 | [optional] [default to 10]
12+
**no_cache** | **bool** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] [default to False]
1213

1314
## Example
1415

docs/FunctionMatchingRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**results_per_function** | **int** | Maximum number of matches to return per function, default is 1, max is 50 | [optional] [default to 1]
1313
**page** | **int** | Page number for paginated results, default is 1 (first page) | [optional] [default to 1]
1414
**page_size** | **int** | Number of functions to return per page, default is 0 (all functions), max is 1000 | [optional] [default to 0]
15+
**no_cache** | **bool** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] [default to False]
1516

1617
## Example
1718

revengai/__init__.py

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

1515

16-
__version__ = "v2.11.7"
16+
__version__ = "v2.12.0"
1717

1818
# Define package exports
1919
__all__ = [

revengai/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/v2.11.7/python'
93+
self.user_agent = 'OpenAPI-Generator/v2.12.0/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

revengai/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,8 @@ def to_debug_report(self) -> str:
529529
return "Python SDK Debug Report:\n"\
530530
"OS: {env}\n"\
531531
"Python Version: {pyversion}\n"\
532-
"Version of the API: v2.11.7\n"\
533-
"SDK Package Version: v2.11.7".\
532+
"Version of the API: v2.12.0\n"\
533+
"SDK Package Version: v2.12.0".\
534534
format(env=sys.platform, pyversion=sys.version)
535535

536536
def get_host_settings(self) -> List[HostSetting]:

revengai/models/analysis_function_matching_request.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import re # noqa: F401
1717
import json
1818

19-
from pydantic import BaseModel, ConfigDict, Field
19+
from pydantic import BaseModel, ConfigDict, Field, StrictBool
2020
from typing import Any, ClassVar, Dict, List, Optional, Union
2121
from typing_extensions import Annotated
2222
from revengai.models.function_matching_filters import FunctionMatchingFilters
@@ -32,7 +32,8 @@ class AnalysisFunctionMatchingRequest(BaseModel):
3232
results_per_function: Optional[Annotated[int, Field(le=10, strict=True, ge=1)]] = Field(default=1, description="Maximum number of matches to return per function, default is 1, max is 10")
3333
page: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=1, description="Page number for paginated results, default is 1 (first page)")
3434
page_size: Optional[Annotated[int, Field(le=1000, strict=True, ge=0)]] = Field(default=0, description="Number of functions to return per page, default is 0 (all functions), max is 1000")
35-
__properties: ClassVar[List[str]] = ["min_similarity", "filters", "results_per_function", "page", "page_size"]
35+
no_cache: Optional[StrictBool] = Field(default=False, description="If set to true, forces the system to bypass any cached results and perform a fresh computation")
36+
__properties: ClassVar[List[str]] = ["min_similarity", "filters", "results_per_function", "page", "page_size", "no_cache"]
3637

3738
model_config = ConfigDict(
3839
populate_by_name=True,
@@ -97,7 +98,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
9798
"filters": FunctionMatchingFilters.from_dict(obj["filters"]) if obj.get("filters") is not None else None,
9899
"results_per_function": obj.get("results_per_function") if obj.get("results_per_function") is not None else 1,
99100
"page": obj.get("page") if obj.get("page") is not None else 1,
100-
"page_size": obj.get("page_size") if obj.get("page_size") is not None else 0
101+
"page_size": obj.get("page_size") if obj.get("page_size") is not None else 0,
102+
"no_cache": obj.get("no_cache") if obj.get("no_cache") is not None else False
101103
})
102104
return _obj
103105

revengai/models/auto_unstrip_request.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ class AutoUnstripRequest(BaseModel):
3030
apply: Optional[StrictBool] = Field(default=False, description="Whether to apply the matched function names to the target binary, default is False")
3131
confidence_threshold: Optional[Union[Annotated[float, Field(le=100.0, strict=True, ge=0.0)], Annotated[int, Field(le=100, strict=True, ge=0)]]] = Field(default=90.0, description="Confidence threshold for applying function names as a percentage, default is 90")
3232
min_group_size: Optional[Annotated[int, Field(le=20, strict=True, ge=1)]] = Field(default=10, description="Minimum number of matching functions required to consider for a match, default is 10")
33-
__properties: ClassVar[List[str]] = ["min_similarity", "apply", "confidence_threshold", "min_group_size"]
33+
no_cache: Optional[StrictBool] = Field(default=False, description="If set to true, forces the system to bypass any cached results and perform a fresh computation")
34+
__properties: ClassVar[List[str]] = ["min_similarity", "apply", "confidence_threshold", "min_group_size", "no_cache"]
3435

3536
model_config = ConfigDict(
3637
populate_by_name=True,
@@ -86,7 +87,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8687
"min_similarity": obj.get("min_similarity") if obj.get("min_similarity") is not None else 90.0,
8788
"apply": obj.get("apply") if obj.get("apply") is not None else False,
8889
"confidence_threshold": obj.get("confidence_threshold") if obj.get("confidence_threshold") is not None else 90.0,
89-
"min_group_size": obj.get("min_group_size") if obj.get("min_group_size") is not None else 10
90+
"min_group_size": obj.get("min_group_size") if obj.get("min_group_size") is not None else 10,
91+
"no_cache": obj.get("no_cache") if obj.get("no_cache") is not None else False
9092
})
9193
return _obj
9294

revengai/models/function_matching_request.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import re # noqa: F401
1717
import json
1818

19-
from pydantic import BaseModel, ConfigDict, Field, StrictInt
19+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt
2020
from typing import Any, ClassVar, Dict, List, Optional, Union
2121
from typing_extensions import Annotated
2222
from revengai.models.function_matching_filters import FunctionMatchingFilters
@@ -34,7 +34,8 @@ class FunctionMatchingRequest(BaseModel):
3434
results_per_function: Optional[Annotated[int, Field(le=50, strict=True, ge=1)]] = Field(default=1, description="Maximum number of matches to return per function, default is 1, max is 50")
3535
page: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=1, description="Page number for paginated results, default is 1 (first page)")
3636
page_size: Optional[Annotated[int, Field(le=1000, strict=True, ge=0)]] = Field(default=0, description="Number of functions to return per page, default is 0 (all functions), max is 1000")
37-
__properties: ClassVar[List[str]] = ["model_id", "function_ids", "min_similarity", "filters", "results_per_function", "page", "page_size"]
37+
no_cache: Optional[StrictBool] = Field(default=False, description="If set to true, forces the system to bypass any cached results and perform a fresh computation")
38+
__properties: ClassVar[List[str]] = ["model_id", "function_ids", "min_similarity", "filters", "results_per_function", "page", "page_size", "no_cache"]
3839

3940
model_config = ConfigDict(
4041
populate_by_name=True,
@@ -101,7 +102,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
101102
"filters": FunctionMatchingFilters.from_dict(obj["filters"]) if obj.get("filters") is not None else None,
102103
"results_per_function": obj.get("results_per_function") if obj.get("results_per_function") is not None else 1,
103104
"page": obj.get("page") if obj.get("page") is not None else 1,
104-
"page_size": obj.get("page_size") if obj.get("page_size") is not None else 0
105+
"page_size": obj.get("page_size") if obj.get("page_size") is not None else 0,
106+
"no_cache": obj.get("no_cache") if obj.get("no_cache") is not None else False
105107
})
106108
return _obj
107109

0 commit comments

Comments
 (0)