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 @@
v2.70.0
v2.74.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ Class | Method | HTTP request | Description
- [BaseResponseGenerationStatusList](docs/BaseResponseGenerationStatusList.md)
- [BaseResponseGetAiDecompilationRatingResponse](docs/BaseResponseGetAiDecompilationRatingResponse.md)
- [BaseResponseGetAiDecompilationTask](docs/BaseResponseGetAiDecompilationTask.md)
- [BaseResponseGetMeResponse](docs/BaseResponseGetMeResponse.md)
- [BaseResponseGetPublicUserResponse](docs/BaseResponseGetPublicUserResponse.md)
- [BaseResponseGetUserResponse](docs/BaseResponseGetUserResponse.md)
- [BaseResponseListCollectionResults](docs/BaseResponseListCollectionResults.md)
- [BaseResponseListCommentResponse](docs/BaseResponseListCommentResponse.md)
- [BaseResponseListDieMatch](docs/BaseResponseListDieMatch.md)
Expand Down Expand Up @@ -345,8 +345,8 @@ Class | Method | HTTP request | Description
- [GenerationStatusList](docs/GenerationStatusList.md)
- [GetAiDecompilationRatingResponse](docs/GetAiDecompilationRatingResponse.md)
- [GetAiDecompilationTask](docs/GetAiDecompilationTask.md)
- [GetMeResponse](docs/GetMeResponse.md)
- [GetPublicUserResponse](docs/GetPublicUserResponse.md)
- [GetUserResponse](docs/GetUserResponse.md)
- [GlobalVariable](docs/GlobalVariable.md)
- [ISA](docs/ISA.md)
- [IconModel](docs/IconModel.md)
Expand Down
1 change: 1 addition & 0 deletions docs/AnalysisFunctionMatchingRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**page_size** | **int** | Number of functions to return per page, default is 0 (all functions), max is 1000 | [optional] [default to 0]
**status_only** | **bool** | If set to true, only returns the status of the matching operation without the actual results | [optional] [default to False]
**no_cache** | **bool** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] [default to False]
**use_canonical_names** | **bool** | Whether to use canonical function names during function matching for confidence results, default is False | [optional] [default to False]

## Example

Expand Down
6 changes: 3 additions & 3 deletions docs/AuthenticationUsersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Method | HTTP request | Description


# **get_requester_user_info**
> BaseResponseGetUserResponse get_requester_user_info()
> BaseResponseGetMeResponse get_requester_user_info()

Get the requesters user information

Expand All @@ -22,7 +22,7 @@ Get the requesters user information

```python
import revengai
from revengai.models.base_response_get_user_response import BaseResponseGetUserResponse
from revengai.models.base_response_get_me_response import BaseResponseGetMeResponse
from revengai.rest import ApiException
from pprint import pprint

Expand Down Expand Up @@ -65,7 +65,7 @@ This endpoint does not need any parameter.

### Return type

[**BaseResponseGetUserResponse**](BaseResponseGetUserResponse.md)
[**BaseResponseGetMeResponse**](BaseResponseGetMeResponse.md)

### Authorization

Expand Down
1 change: 1 addition & 0 deletions docs/AutoUnstripRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Name | Type | Description | Notes
**min_group_size** | **int** | Minimum number of matching functions required to consider for a match, default is 10 | [optional] [default to 10]
**status_only** | **bool** | If set to true, only returns the status of the auto-unstrip operation without the actual results | [optional] [default to False]
**no_cache** | **bool** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] [default to False]
**use_canonical_names** | **bool** | Whether to use canonical function names during matching for auto-unstrip, default is False | [optional] [default to False]

## Example

Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
# BaseResponseGetUserResponse
# BaseResponseGetMeResponse


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True]
**data** | [**GetUserResponse**](GetUserResponse.md) | | [optional]
**data** | [**GetMeResponse**](GetMeResponse.md) | | [optional]
**message** | **str** | | [optional]
**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional]
**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional]

## Example

```python
from revengai.models.base_response_get_user_response import BaseResponseGetUserResponse
from revengai.models.base_response_get_me_response import BaseResponseGetMeResponse

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

# convert the object into a dict
base_response_get_user_response_dict = base_response_get_user_response_instance.to_dict()
# create an instance of BaseResponseGetUserResponse from a dict
base_response_get_user_response_from_dict = BaseResponseGetUserResponse.from_dict(base_response_get_user_response_dict)
base_response_get_me_response_dict = base_response_get_me_response_instance.to_dict()
# create an instance of BaseResponseGetMeResponse from a dict
base_response_get_me_response_from_dict = BaseResponseGetMeResponse.from_dict(base_response_get_me_response_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)

Expand Down
1 change: 1 addition & 0 deletions docs/FunctionMatchingRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**page_size** | **int** | Number of functions to return per page, default is 0 (all functions), max is 1000 | [optional] [default to 0]
**status_only** | **bool** | If set to true, only returns the status of the matching operation without the actual results | [optional] [default to False]
**no_cache** | **bool** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] [default to False]
**use_canonical_names** | **bool** | Whether to use canonical function names during function matching for confidence results, default is False | [optional] [default to False]

## Example

Expand Down
17 changes: 9 additions & 8 deletions docs/GetUserResponse.md β†’ docs/GetMeResponse.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GetUserResponse
# GetMeResponse


## Properties
Expand All @@ -12,23 +12,24 @@ Name | Type | Description | Notes
**email** | **str** | |
**creation** | **datetime** | |
**tutorial_seen** | **bool** | |
**role** | **str** | |

## Example

```python
from revengai.models.get_user_response import GetUserResponse
from revengai.models.get_me_response import GetMeResponse

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

# convert the object into a dict
get_user_response_dict = get_user_response_instance.to_dict()
# create an instance of GetUserResponse from a dict
get_user_response_from_dict = GetUserResponse.from_dict(get_user_response_dict)
get_me_response_dict = get_me_response_instance.to_dict()
# create an instance of GetMeResponse from a dict
get_me_response_from_dict = GetMeResponse.from_dict(get_me_response_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)

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


__version__ = "v2.70.0"
__version__ = "v2.74.0"

# Define package exports
__all__ = [
Expand Down Expand Up @@ -115,8 +115,8 @@
"BaseResponseGenerationStatusList",
"BaseResponseGetAiDecompilationRatingResponse",
"BaseResponseGetAiDecompilationTask",
"BaseResponseGetMeResponse",
"BaseResponseGetPublicUserResponse",
"BaseResponseGetUserResponse",
"BaseResponseListCollectionResults",
"BaseResponseListCommentResponse",
"BaseResponseListDieMatch",
Expand Down Expand Up @@ -243,8 +243,8 @@
"GenerationStatusList",
"GetAiDecompilationRatingResponse",
"GetAiDecompilationTask",
"GetMeResponse",
"GetPublicUserResponse",
"GetUserResponse",
"GlobalVariable",
"ISA",
"IconModel",
Expand Down Expand Up @@ -432,8 +432,8 @@
from revengai.models.base_response_generation_status_list import BaseResponseGenerationStatusList as BaseResponseGenerationStatusList
from revengai.models.base_response_get_ai_decompilation_rating_response import BaseResponseGetAiDecompilationRatingResponse as BaseResponseGetAiDecompilationRatingResponse
from revengai.models.base_response_get_ai_decompilation_task import BaseResponseGetAiDecompilationTask as BaseResponseGetAiDecompilationTask
from revengai.models.base_response_get_me_response import BaseResponseGetMeResponse as BaseResponseGetMeResponse
from revengai.models.base_response_get_public_user_response import BaseResponseGetPublicUserResponse as BaseResponseGetPublicUserResponse
from revengai.models.base_response_get_user_response import BaseResponseGetUserResponse as BaseResponseGetUserResponse
from revengai.models.base_response_list_collection_results import BaseResponseListCollectionResults as BaseResponseListCollectionResults
from revengai.models.base_response_list_comment_response import BaseResponseListCommentResponse as BaseResponseListCommentResponse
from revengai.models.base_response_list_die_match import BaseResponseListDieMatch as BaseResponseListDieMatch
Expand Down Expand Up @@ -560,8 +560,8 @@
from revengai.models.generation_status_list import GenerationStatusList as GenerationStatusList
from revengai.models.get_ai_decompilation_rating_response import GetAiDecompilationRatingResponse as GetAiDecompilationRatingResponse
from revengai.models.get_ai_decompilation_task import GetAiDecompilationTask as GetAiDecompilationTask
from revengai.models.get_me_response import GetMeResponse as GetMeResponse
from revengai.models.get_public_user_response import GetPublicUserResponse as GetPublicUserResponse
from revengai.models.get_user_response import GetUserResponse as GetUserResponse
from revengai.models.global_variable import GlobalVariable as GlobalVariable
from revengai.models.isa import ISA as ISA
from revengai.models.icon_model import IconModel as IconModel
Expand Down
12 changes: 6 additions & 6 deletions revengai/api/authentication_users_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
from typing_extensions import Annotated

from pydantic import StrictInt
from revengai.models.base_response_get_me_response import BaseResponseGetMeResponse
from revengai.models.base_response_get_public_user_response import BaseResponseGetPublicUserResponse
from revengai.models.base_response_get_user_response import BaseResponseGetUserResponse
from revengai.models.base_response_list_comment_response import BaseResponseListCommentResponse
from revengai.models.base_response_list_user_activity_response import BaseResponseListUserActivityResponse
from revengai.models.base_response_login_response import BaseResponseLoginResponse
Expand Down Expand Up @@ -56,7 +56,7 @@ def get_requester_user_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> BaseResponseGetUserResponse:
) -> BaseResponseGetMeResponse:
"""Get the requesters user information


Expand Down Expand Up @@ -90,7 +90,7 @@ def get_requester_user_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "BaseResponseGetUserResponse",
'200': "BaseResponseGetMeResponse",
'422': "BaseResponse",
}
response_data = self.api_client.call_api(
Expand Down Expand Up @@ -119,7 +119,7 @@ def get_requester_user_info_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[BaseResponseGetUserResponse]:
) -> ApiResponse[BaseResponseGetMeResponse]:
"""Get the requesters user information


Expand Down Expand Up @@ -153,7 +153,7 @@ def get_requester_user_info_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "BaseResponseGetUserResponse",
'200': "BaseResponseGetMeResponse",
'422': "BaseResponse",
}
response_data = self.api_client.call_api(
Expand Down Expand Up @@ -216,7 +216,7 @@ def get_requester_user_info_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "BaseResponseGetUserResponse",
'200': "BaseResponseGetMeResponse",
'422': "BaseResponse",
}
response_data = self.api_client.call_api(
Expand Down
2 changes: 1 addition & 1 deletion revengai/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/v2.70.0/python'
self.user_agent = 'OpenAPI-Generator/v2.74.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
4 changes: 2 additions & 2 deletions revengai/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: v2.70.0\n"\
"SDK Package Version: v2.70.0".\
"Version of the API: v2.74.0\n"\
"SDK Package Version: v2.74.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
4 changes: 2 additions & 2 deletions revengai/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
from revengai.models.base_response_generation_status_list import BaseResponseGenerationStatusList
from revengai.models.base_response_get_ai_decompilation_rating_response import BaseResponseGetAiDecompilationRatingResponse
from revengai.models.base_response_get_ai_decompilation_task import BaseResponseGetAiDecompilationTask
from revengai.models.base_response_get_me_response import BaseResponseGetMeResponse
from revengai.models.base_response_get_public_user_response import BaseResponseGetPublicUserResponse
from revengai.models.base_response_get_user_response import BaseResponseGetUserResponse
from revengai.models.base_response_list_collection_results import BaseResponseListCollectionResults
from revengai.models.base_response_list_comment_response import BaseResponseListCommentResponse
from revengai.models.base_response_list_die_match import BaseResponseListDieMatch
Expand Down Expand Up @@ -211,8 +211,8 @@
from revengai.models.generation_status_list import GenerationStatusList
from revengai.models.get_ai_decompilation_rating_response import GetAiDecompilationRatingResponse
from revengai.models.get_ai_decompilation_task import GetAiDecompilationTask
from revengai.models.get_me_response import GetMeResponse
from revengai.models.get_public_user_response import GetPublicUserResponse
from revengai.models.get_user_response import GetUserResponse
from revengai.models.global_variable import GlobalVariable
from revengai.models.isa import ISA
from revengai.models.icon_model import IconModel
Expand Down
6 changes: 4 additions & 2 deletions revengai/models/analysis_function_matching_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ class AnalysisFunctionMatchingRequest(BaseModel):
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")
status_only: Optional[StrictBool] = Field(default=False, description="If set to true, only returns the status of the matching operation without the actual results")
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")
__properties: ClassVar[List[str]] = ["min_similarity", "filters", "results_per_function", "page", "page_size", "status_only", "no_cache"]
use_canonical_names: Optional[StrictBool] = Field(default=False, description="Whether to use canonical function names during function matching for confidence results, default is False")
__properties: ClassVar[List[str]] = ["min_similarity", "filters", "results_per_function", "page", "page_size", "status_only", "no_cache", "use_canonical_names"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -101,7 +102,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"page": obj.get("page") if obj.get("page") is not None else 1,
"page_size": obj.get("page_size") if obj.get("page_size") is not None else 0,
"status_only": obj.get("status_only") if obj.get("status_only") is not None else False,
"no_cache": obj.get("no_cache") if obj.get("no_cache") is not None else False
"no_cache": obj.get("no_cache") if obj.get("no_cache") is not None else False,
"use_canonical_names": obj.get("use_canonical_names") if obj.get("use_canonical_names") is not None else False
})
return _obj

Expand Down
6 changes: 4 additions & 2 deletions revengai/models/auto_unstrip_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ class AutoUnstripRequest(BaseModel):
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")
status_only: Optional[StrictBool] = Field(default=False, description="If set to true, only returns the status of the auto-unstrip operation without the actual results")
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")
__properties: ClassVar[List[str]] = ["min_similarity", "apply", "confidence_threshold", "min_group_size", "status_only", "no_cache"]
use_canonical_names: Optional[StrictBool] = Field(default=False, description="Whether to use canonical function names during matching for auto-unstrip, default is False")
__properties: ClassVar[List[str]] = ["min_similarity", "apply", "confidence_threshold", "min_group_size", "status_only", "no_cache", "use_canonical_names"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -90,7 +91,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"confidence_threshold": obj.get("confidence_threshold") if obj.get("confidence_threshold") is not None else 90.0,
"min_group_size": obj.get("min_group_size") if obj.get("min_group_size") is not None else 10,
"status_only": obj.get("status_only") if obj.get("status_only") is not None else False,
"no_cache": obj.get("no_cache") if obj.get("no_cache") is not None else False
"no_cache": obj.get("no_cache") if obj.get("no_cache") is not None else False,
"use_canonical_names": obj.get("use_canonical_names") if obj.get("use_canonical_names") is not None else False
})
return _obj

Expand Down
Loading