@@ -55,6 +55,7 @@ def search_binaries(
5555 model_name : Annotated [Optional [StrictStr ], Field (description = "The name of the model used to analyze the binary the function belongs to" )] = None ,
5656 user_files_only : Annotated [Optional [StrictBool ], Field (description = "Whether to only search user's uploaded files" )] = None ,
5757 exclude_binary_id : Annotated [Optional [StrictInt ], Field (description = "A binary ID to exclude from the results" )] = None ,
58+ user_ids : Annotated [Optional [List [StrictInt ]], Field (description = "Restrict the search to binaries owned by these user IDs" )] = None ,
5859 _request_timeout : Union [
5960 None ,
6061 Annotated [StrictFloat , Field (gt = 0 )],
@@ -88,6 +89,8 @@ def search_binaries(
8889 :type user_files_only: bool
8990 :param exclude_binary_id: A binary ID to exclude from the results
9091 :type exclude_binary_id: int
92+ :param user_ids: Restrict the search to binaries owned by these user IDs
93+ :type user_ids: List[int]
9194 :param _request_timeout: timeout setting for this request. If one
9295 number provided, it will be total request
9396 timeout. It can also be a pair (tuple) of
@@ -119,6 +122,7 @@ def search_binaries(
119122 model_name = model_name ,
120123 user_files_only = user_files_only ,
121124 exclude_binary_id = exclude_binary_id ,
125+ user_ids = user_ids ,
122126 _request_auth = _request_auth ,
123127 _content_type = _content_type ,
124128 _headers = _headers ,
@@ -151,6 +155,7 @@ def search_binaries_with_http_info(
151155 model_name : Annotated [Optional [StrictStr ], Field (description = "The name of the model used to analyze the binary the function belongs to" )] = None ,
152156 user_files_only : Annotated [Optional [StrictBool ], Field (description = "Whether to only search user's uploaded files" )] = None ,
153157 exclude_binary_id : Annotated [Optional [StrictInt ], Field (description = "A binary ID to exclude from the results" )] = None ,
158+ user_ids : Annotated [Optional [List [StrictInt ]], Field (description = "Restrict the search to binaries owned by these user IDs" )] = None ,
154159 _request_timeout : Union [
155160 None ,
156161 Annotated [StrictFloat , Field (gt = 0 )],
@@ -184,6 +189,8 @@ def search_binaries_with_http_info(
184189 :type user_files_only: bool
185190 :param exclude_binary_id: A binary ID to exclude from the results
186191 :type exclude_binary_id: int
192+ :param user_ids: Restrict the search to binaries owned by these user IDs
193+ :type user_ids: List[int]
187194 :param _request_timeout: timeout setting for this request. If one
188195 number provided, it will be total request
189196 timeout. It can also be a pair (tuple) of
@@ -215,6 +222,7 @@ def search_binaries_with_http_info(
215222 model_name = model_name ,
216223 user_files_only = user_files_only ,
217224 exclude_binary_id = exclude_binary_id ,
225+ user_ids = user_ids ,
218226 _request_auth = _request_auth ,
219227 _content_type = _content_type ,
220228 _headers = _headers ,
@@ -247,6 +255,7 @@ def search_binaries_without_preload_content(
247255 model_name : Annotated [Optional [StrictStr ], Field (description = "The name of the model used to analyze the binary the function belongs to" )] = None ,
248256 user_files_only : Annotated [Optional [StrictBool ], Field (description = "Whether to only search user's uploaded files" )] = None ,
249257 exclude_binary_id : Annotated [Optional [StrictInt ], Field (description = "A binary ID to exclude from the results" )] = None ,
258+ user_ids : Annotated [Optional [List [StrictInt ]], Field (description = "Restrict the search to binaries owned by these user IDs" )] = None ,
250259 _request_timeout : Union [
251260 None ,
252261 Annotated [StrictFloat , Field (gt = 0 )],
@@ -280,6 +289,8 @@ def search_binaries_without_preload_content(
280289 :type user_files_only: bool
281290 :param exclude_binary_id: A binary ID to exclude from the results
282291 :type exclude_binary_id: int
292+ :param user_ids: Restrict the search to binaries owned by these user IDs
293+ :type user_ids: List[int]
283294 :param _request_timeout: timeout setting for this request. If one
284295 number provided, it will be total request
285296 timeout. It can also be a pair (tuple) of
@@ -311,6 +322,7 @@ def search_binaries_without_preload_content(
311322 model_name = model_name ,
312323 user_files_only = user_files_only ,
313324 exclude_binary_id = exclude_binary_id ,
325+ user_ids = user_ids ,
314326 _request_auth = _request_auth ,
315327 _content_type = _content_type ,
316328 _headers = _headers ,
@@ -338,6 +350,7 @@ def _search_binaries_serialize(
338350 model_name ,
339351 user_files_only ,
340352 exclude_binary_id ,
353+ user_ids ,
341354 _request_auth ,
342355 _content_type ,
343356 _headers ,
@@ -348,6 +361,7 @@ def _search_binaries_serialize(
348361
349362 _collection_formats : Dict [str , str ] = {
350363 'tags' : 'multi' ,
364+ 'user_ids' : 'multi' ,
351365 }
352366
353367 _path_params : Dict [str , str ] = {}
@@ -393,6 +407,10 @@ def _search_binaries_serialize(
393407
394408 _query_params .append (('exclude_binary_id' , exclude_binary_id ))
395409
410+ if user_ids is not None :
411+
412+ _query_params .append (('user_ids' , user_ids ))
413+
396414 # process the header parameters
397415 # process the form parameters
398416 # process the body parameter
@@ -443,6 +461,7 @@ def search_collections(
443461 filters : Annotated [Optional [List [Filters ]], Field (description = "The filters to be used for the search" )] = None ,
444462 order_by : Annotated [Optional [AppApiRestV2CollectionsEnumsOrderBy ], Field (description = "The field to sort the order by in the results" )] = None ,
445463 order_by_direction : Annotated [Optional [Order ], Field (description = "The order direction in which to return results" )] = None ,
464+ user_ids : Annotated [Optional [List [StrictInt ]], Field (description = "Restrict the search to collections owned by these user IDs" )] = None ,
446465 _request_timeout : Union [
447466 None ,
448467 Annotated [StrictFloat , Field (gt = 0 )],
@@ -478,6 +497,8 @@ def search_collections(
478497 :type order_by: AppApiRestV2CollectionsEnumsOrderBy
479498 :param order_by_direction: The order direction in which to return results
480499 :type order_by_direction: Order
500+ :param user_ids: Restrict the search to collections owned by these user IDs
501+ :type user_ids: List[int]
481502 :param _request_timeout: timeout setting for this request. If one
482503 number provided, it will be total request
483504 timeout. It can also be a pair (tuple) of
@@ -510,6 +531,7 @@ def search_collections(
510531 filters = filters ,
511532 order_by = order_by ,
512533 order_by_direction = order_by_direction ,
534+ user_ids = user_ids ,
513535 _request_auth = _request_auth ,
514536 _content_type = _content_type ,
515537 _headers = _headers ,
@@ -543,6 +565,7 @@ def search_collections_with_http_info(
543565 filters : Annotated [Optional [List [Filters ]], Field (description = "The filters to be used for the search" )] = None ,
544566 order_by : Annotated [Optional [AppApiRestV2CollectionsEnumsOrderBy ], Field (description = "The field to sort the order by in the results" )] = None ,
545567 order_by_direction : Annotated [Optional [Order ], Field (description = "The order direction in which to return results" )] = None ,
568+ user_ids : Annotated [Optional [List [StrictInt ]], Field (description = "Restrict the search to collections owned by these user IDs" )] = None ,
546569 _request_timeout : Union [
547570 None ,
548571 Annotated [StrictFloat , Field (gt = 0 )],
@@ -578,6 +601,8 @@ def search_collections_with_http_info(
578601 :type order_by: AppApiRestV2CollectionsEnumsOrderBy
579602 :param order_by_direction: The order direction in which to return results
580603 :type order_by_direction: Order
604+ :param user_ids: Restrict the search to collections owned by these user IDs
605+ :type user_ids: List[int]
581606 :param _request_timeout: timeout setting for this request. If one
582607 number provided, it will be total request
583608 timeout. It can also be a pair (tuple) of
@@ -610,6 +635,7 @@ def search_collections_with_http_info(
610635 filters = filters ,
611636 order_by = order_by ,
612637 order_by_direction = order_by_direction ,
638+ user_ids = user_ids ,
613639 _request_auth = _request_auth ,
614640 _content_type = _content_type ,
615641 _headers = _headers ,
@@ -643,6 +669,7 @@ def search_collections_without_preload_content(
643669 filters : Annotated [Optional [List [Filters ]], Field (description = "The filters to be used for the search" )] = None ,
644670 order_by : Annotated [Optional [AppApiRestV2CollectionsEnumsOrderBy ], Field (description = "The field to sort the order by in the results" )] = None ,
645671 order_by_direction : Annotated [Optional [Order ], Field (description = "The order direction in which to return results" )] = None ,
672+ user_ids : Annotated [Optional [List [StrictInt ]], Field (description = "Restrict the search to collections owned by these user IDs" )] = None ,
646673 _request_timeout : Union [
647674 None ,
648675 Annotated [StrictFloat , Field (gt = 0 )],
@@ -678,6 +705,8 @@ def search_collections_without_preload_content(
678705 :type order_by: AppApiRestV2CollectionsEnumsOrderBy
679706 :param order_by_direction: The order direction in which to return results
680707 :type order_by_direction: Order
708+ :param user_ids: Restrict the search to collections owned by these user IDs
709+ :type user_ids: List[int]
681710 :param _request_timeout: timeout setting for this request. If one
682711 number provided, it will be total request
683712 timeout. It can also be a pair (tuple) of
@@ -710,6 +739,7 @@ def search_collections_without_preload_content(
710739 filters = filters ,
711740 order_by = order_by ,
712741 order_by_direction = order_by_direction ,
742+ user_ids = user_ids ,
713743 _request_auth = _request_auth ,
714744 _content_type = _content_type ,
715745 _headers = _headers ,
@@ -738,6 +768,7 @@ def _search_collections_serialize(
738768 filters ,
739769 order_by ,
740770 order_by_direction ,
771+ user_ids ,
741772 _request_auth ,
742773 _content_type ,
743774 _headers ,
@@ -749,6 +780,7 @@ def _search_collections_serialize(
749780 _collection_formats : Dict [str , str ] = {
750781 'tags' : 'multi' ,
751782 'filters' : 'multi' ,
783+ 'user_ids' : 'multi' ,
752784 }
753785
754786 _path_params : Dict [str , str ] = {}
@@ -798,6 +830,10 @@ def _search_collections_serialize(
798830
799831 _query_params .append (('order_by_direction' , order_by_direction .value ))
800832
833+ if user_ids is not None :
834+
835+ _query_params .append (('user_ids' , user_ids ))
836+
801837 # process the header parameters
802838 # process the form parameters
803839 # process the body parameter
0 commit comments