From 9cc0178e6607a177520211ef8b45ad157f09a357 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 2 Mar 2026 06:27:43 +0000 Subject: [PATCH] Update SDK to version v3.23.1 - Generated from OpenAPI spec version v3.23.1 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- docs/FunctionsCoreApi.md | 8 +++++-- revengai/__init__.py | 2 +- revengai/api/functions_core_api.py | 36 +++++++++++++++++++++++++++++- revengai/api_client.py | 2 +- revengai/configuration.py | 4 ++-- 6 files changed, 46 insertions(+), 8 deletions(-) diff --git a/.sdk-version b/.sdk-version index 3e4750f..73cf653 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v3.22.2 +v3.23.1 diff --git a/docs/FunctionsCoreApi.md b/docs/FunctionsCoreApi.md index 84d1ffe..b6518ad 100644 --- a/docs/FunctionsCoreApi.md +++ b/docs/FunctionsCoreApi.md @@ -510,7 +510,7 @@ 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) # **get_analysis_strings** -> BaseResponseAnalysisStringsResponse get_analysis_strings(analysis_id, page=page, page_size=page_size, search=search, function_search=function_search) +> BaseResponseAnalysisStringsResponse get_analysis_strings(analysis_id, page=page, page_size=page_size, search=search, function_search=function_search, order_by=order_by, sort_order=sort_order) Get string information found in the Analysis @@ -552,10 +552,12 @@ with revengai.ApiClient(configuration) as api_client: page_size = 100 # int | Number of items per page. (optional) (default to 100) search = 'search_example' # str | Search is applied to string value (optional) function_search = 'function_search_example' # str | Search is applied to function names (optional) + order_by = value # str | Order by field (optional) (default to value) + sort_order = ASC # str | Sort order for the results (optional) (default to ASC) try: # Get string information found in the Analysis - api_response = api_instance.get_analysis_strings(analysis_id, page=page, page_size=page_size, search=search, function_search=function_search) + api_response = api_instance.get_analysis_strings(analysis_id, page=page, page_size=page_size, search=search, function_search=function_search, order_by=order_by, sort_order=sort_order) print("The response of FunctionsCoreApi->get_analysis_strings:\n") pprint(api_response) except Exception as e: @@ -574,6 +576,8 @@ Name | Type | Description | Notes **page_size** | **int**| Number of items per page. | [optional] [default to 100] **search** | **str**| Search is applied to string value | [optional] **function_search** | **str**| Search is applied to function names | [optional] + **order_by** | **str**| Order by field | [optional] [default to value] + **sort_order** | **str**| Sort order for the results | [optional] [default to ASC] ### Return type diff --git a/revengai/__init__.py b/revengai/__init__.py index 7880a74..42ea193 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -13,7 +13,7 @@ """ # noqa: E501 -__version__ = "v3.22.2" +__version__ = "v3.23.1" # Define package exports __all__ = [ diff --git a/revengai/api/functions_core_api.py b/revengai/api/functions_core_api.py index ddeeda4..77dad5c 100644 --- a/revengai/api/functions_core_api.py +++ b/revengai/api/functions_core_api.py @@ -15,7 +15,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictInt, StrictStr +from pydantic import Field, StrictInt, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated from revengai.models.ai_unstrip_request import AiUnstripRequest @@ -1739,6 +1739,8 @@ def get_analysis_strings( page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Order by field")] = None, + sort_order: Annotated[Optional[StrictStr], Field(description="Sort order for the results")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1766,6 +1768,10 @@ def get_analysis_strings( :type search: str :param function_search: Search is applied to function names :type function_search: str + :param order_by: Order by field + :type order_by: str + :param sort_order: Sort order for the results + :type sort_order: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1794,6 +1800,8 @@ def get_analysis_strings( page_size=page_size, search=search, function_search=function_search, + order_by=order_by, + sort_order=sort_order, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1823,6 +1831,8 @@ def get_analysis_strings_with_http_info( page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Order by field")] = None, + sort_order: Annotated[Optional[StrictStr], Field(description="Sort order for the results")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1850,6 +1860,10 @@ def get_analysis_strings_with_http_info( :type search: str :param function_search: Search is applied to function names :type function_search: str + :param order_by: Order by field + :type order_by: str + :param sort_order: Sort order for the results + :type sort_order: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1878,6 +1892,8 @@ def get_analysis_strings_with_http_info( page_size=page_size, search=search, function_search=function_search, + order_by=order_by, + sort_order=sort_order, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1907,6 +1923,8 @@ def get_analysis_strings_without_preload_content( page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Order by field")] = None, + sort_order: Annotated[Optional[StrictStr], Field(description="Sort order for the results")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1934,6 +1952,10 @@ def get_analysis_strings_without_preload_content( :type search: str :param function_search: Search is applied to function names :type function_search: str + :param order_by: Order by field + :type order_by: str + :param sort_order: Sort order for the results + :type sort_order: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1962,6 +1984,8 @@ def get_analysis_strings_without_preload_content( page_size=page_size, search=search, function_search=function_search, + order_by=order_by, + sort_order=sort_order, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1986,6 +2010,8 @@ def _get_analysis_strings_serialize( page_size, search, function_search, + order_by, + sort_order, _request_auth, _content_type, _headers, @@ -2026,6 +2052,14 @@ def _get_analysis_strings_serialize( _query_params.append(('function_search', function_search)) + if order_by is not None: + + _query_params.append(('order_by', order_by)) + + if sort_order is not None: + + _query_params.append(('sort_order', sort_order)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/revengai/api_client.py b/revengai/api_client.py index 022dc93..550685d 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.22.2/python' + self.user_agent = 'OpenAPI-Generator/v3.23.1/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/revengai/configuration.py b/revengai/configuration.py index 958045b..4556a05 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.22.2\n"\ - "SDK Package Version: v3.22.2".\ + "Version of the API: v3.23.1\n"\ + "SDK Package Version: v3.23.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: