1515from typing import Any , Dict , List , Optional , Tuple , Union
1616from typing_extensions import Annotated
1717
18- from pydantic import Field , StrictInt , StrictStr
18+ from pydantic import Field , StrictInt , StrictStr , field_validator
1919from typing import Optional
2020from typing_extensions import Annotated
2121from revengai .models .ai_unstrip_request import AiUnstripRequest
@@ -1739,6 +1739,8 @@ def get_analysis_strings(
17391739 page_size : Annotated [Optional [Annotated [int , Field (strict = True , ge = 1 )]], Field (description = "Number of items per page." )] = None ,
17401740 search : Annotated [Optional [StrictStr ], Field (description = "Search is applied to string value" )] = None ,
17411741 function_search : Annotated [Optional [StrictStr ], Field (description = "Search is applied to function names" )] = None ,
1742+ order_by : Annotated [Optional [StrictStr ], Field (description = "Order by field" )] = None ,
1743+ sort_order : Annotated [Optional [StrictStr ], Field (description = "Sort order for the results" )] = None ,
17421744 _request_timeout : Union [
17431745 None ,
17441746 Annotated [StrictFloat , Field (gt = 0 )],
@@ -1766,6 +1768,10 @@ def get_analysis_strings(
17661768 :type search: str
17671769 :param function_search: Search is applied to function names
17681770 :type function_search: str
1771+ :param order_by: Order by field
1772+ :type order_by: str
1773+ :param sort_order: Sort order for the results
1774+ :type sort_order: str
17691775 :param _request_timeout: timeout setting for this request. If one
17701776 number provided, it will be total request
17711777 timeout. It can also be a pair (tuple) of
@@ -1794,6 +1800,8 @@ def get_analysis_strings(
17941800 page_size = page_size ,
17951801 search = search ,
17961802 function_search = function_search ,
1803+ order_by = order_by ,
1804+ sort_order = sort_order ,
17971805 _request_auth = _request_auth ,
17981806 _content_type = _content_type ,
17991807 _headers = _headers ,
@@ -1823,6 +1831,8 @@ def get_analysis_strings_with_http_info(
18231831 page_size : Annotated [Optional [Annotated [int , Field (strict = True , ge = 1 )]], Field (description = "Number of items per page." )] = None ,
18241832 search : Annotated [Optional [StrictStr ], Field (description = "Search is applied to string value" )] = None ,
18251833 function_search : Annotated [Optional [StrictStr ], Field (description = "Search is applied to function names" )] = None ,
1834+ order_by : Annotated [Optional [StrictStr ], Field (description = "Order by field" )] = None ,
1835+ sort_order : Annotated [Optional [StrictStr ], Field (description = "Sort order for the results" )] = None ,
18261836 _request_timeout : Union [
18271837 None ,
18281838 Annotated [StrictFloat , Field (gt = 0 )],
@@ -1850,6 +1860,10 @@ def get_analysis_strings_with_http_info(
18501860 :type search: str
18511861 :param function_search: Search is applied to function names
18521862 :type function_search: str
1863+ :param order_by: Order by field
1864+ :type order_by: str
1865+ :param sort_order: Sort order for the results
1866+ :type sort_order: str
18531867 :param _request_timeout: timeout setting for this request. If one
18541868 number provided, it will be total request
18551869 timeout. It can also be a pair (tuple) of
@@ -1878,6 +1892,8 @@ def get_analysis_strings_with_http_info(
18781892 page_size = page_size ,
18791893 search = search ,
18801894 function_search = function_search ,
1895+ order_by = order_by ,
1896+ sort_order = sort_order ,
18811897 _request_auth = _request_auth ,
18821898 _content_type = _content_type ,
18831899 _headers = _headers ,
@@ -1907,6 +1923,8 @@ def get_analysis_strings_without_preload_content(
19071923 page_size : Annotated [Optional [Annotated [int , Field (strict = True , ge = 1 )]], Field (description = "Number of items per page." )] = None ,
19081924 search : Annotated [Optional [StrictStr ], Field (description = "Search is applied to string value" )] = None ,
19091925 function_search : Annotated [Optional [StrictStr ], Field (description = "Search is applied to function names" )] = None ,
1926+ order_by : Annotated [Optional [StrictStr ], Field (description = "Order by field" )] = None ,
1927+ sort_order : Annotated [Optional [StrictStr ], Field (description = "Sort order for the results" )] = None ,
19101928 _request_timeout : Union [
19111929 None ,
19121930 Annotated [StrictFloat , Field (gt = 0 )],
@@ -1934,6 +1952,10 @@ def get_analysis_strings_without_preload_content(
19341952 :type search: str
19351953 :param function_search: Search is applied to function names
19361954 :type function_search: str
1955+ :param order_by: Order by field
1956+ :type order_by: str
1957+ :param sort_order: Sort order for the results
1958+ :type sort_order: str
19371959 :param _request_timeout: timeout setting for this request. If one
19381960 number provided, it will be total request
19391961 timeout. It can also be a pair (tuple) of
@@ -1962,6 +1984,8 @@ def get_analysis_strings_without_preload_content(
19621984 page_size = page_size ,
19631985 search = search ,
19641986 function_search = function_search ,
1987+ order_by = order_by ,
1988+ sort_order = sort_order ,
19651989 _request_auth = _request_auth ,
19661990 _content_type = _content_type ,
19671991 _headers = _headers ,
@@ -1986,6 +2010,8 @@ def _get_analysis_strings_serialize(
19862010 page_size ,
19872011 search ,
19882012 function_search ,
2013+ order_by ,
2014+ sort_order ,
19892015 _request_auth ,
19902016 _content_type ,
19912017 _headers ,
@@ -2026,6 +2052,14 @@ def _get_analysis_strings_serialize(
20262052
20272053 _query_params .append (('function_search' , function_search ))
20282054
2055+ if order_by is not None :
2056+
2057+ _query_params .append (('order_by' , order_by ))
2058+
2059+ if sort_order is not None :
2060+
2061+ _query_params .append (('sort_order' , sort_order ))
2062+
20292063 # process the header parameters
20302064 # process the form parameters
20312065 # process the body parameter
0 commit comments