1717from ..types .model_interface import ModelInterface
1818from ..types .model_interface_serializer_get import ModelInterfaceSerializerGet
1919from ..types .paginated_all_roles_project_list_list import PaginatedAllRolesProjectListList
20+ from ..types .paginated_model_interface_serializer_get_list import PaginatedModelInterfaceSerializerGetList
2021from ..types .paginated_project_subset_tasks_response_list import PaginatedProjectSubsetTasksResponseList
2122from ..types .project_subset_item import ProjectSubsetItem
2223from ..types .skill_name_enum import SkillNameEnum
@@ -340,8 +341,13 @@ def subsets(
340341 raise ApiError (status_code = _response .status_code , headers = dict (_response .headers ), body = _response_json )
341342
342343 def list (
343- self , * , ordering : typing .Optional [str ] = None , request_options : typing .Optional [RequestOptions ] = None
344- ) -> HttpResponse [typing .List [ModelInterfaceSerializerGet ]]:
344+ self ,
345+ * ,
346+ ordering : typing .Optional [str ] = None ,
347+ page : typing .Optional [int ] = None ,
348+ search : typing .Optional [str ] = None ,
349+ request_options : typing .Optional [RequestOptions ] = None ,
350+ ) -> HttpResponse [PaginatedModelInterfaceSerializerGetList ]:
345351 """
346352 List all prompts.
347353
@@ -350,28 +356,36 @@ def list(
350356 ordering : typing.Optional[str]
351357 Which field to use when ordering the results.
352358
359+ page : typing.Optional[int]
360+ A page number within the paginated result set.
361+
362+ search : typing.Optional[str]
363+ A search term.
364+
353365 request_options : typing.Optional[RequestOptions]
354366 Request-specific configuration.
355367
356368 Returns
357369 -------
358- HttpResponse[typing.List[ModelInterfaceSerializerGet] ]
370+ HttpResponse[PaginatedModelInterfaceSerializerGetList ]
359371
360372 """
361373 _response = self ._client_wrapper .httpx_client .request (
362374 "api/prompts/" ,
363375 method = "GET" ,
364376 params = {
365377 "ordering" : ordering ,
378+ "page" : page ,
379+ "search" : search ,
366380 },
367381 request_options = request_options ,
368382 )
369383 try :
370384 if 200 <= _response .status_code < 300 :
371385 _data = typing .cast (
372- typing . List [ ModelInterfaceSerializerGet ] ,
386+ PaginatedModelInterfaceSerializerGetList ,
373387 construct_type (
374- type_ = typing . List [ ModelInterfaceSerializerGet ] , # type: ignore
388+ type_ = PaginatedModelInterfaceSerializerGetList , # type: ignore
375389 object_ = _response .json (),
376390 ),
377391 )
@@ -1033,8 +1047,13 @@ async def subsets(
10331047 raise ApiError (status_code = _response .status_code , headers = dict (_response .headers ), body = _response_json )
10341048
10351049 async def list (
1036- self , * , ordering : typing .Optional [str ] = None , request_options : typing .Optional [RequestOptions ] = None
1037- ) -> AsyncHttpResponse [typing .List [ModelInterfaceSerializerGet ]]:
1050+ self ,
1051+ * ,
1052+ ordering : typing .Optional [str ] = None ,
1053+ page : typing .Optional [int ] = None ,
1054+ search : typing .Optional [str ] = None ,
1055+ request_options : typing .Optional [RequestOptions ] = None ,
1056+ ) -> AsyncHttpResponse [PaginatedModelInterfaceSerializerGetList ]:
10381057 """
10391058 List all prompts.
10401059
@@ -1043,28 +1062,36 @@ async def list(
10431062 ordering : typing.Optional[str]
10441063 Which field to use when ordering the results.
10451064
1065+ page : typing.Optional[int]
1066+ A page number within the paginated result set.
1067+
1068+ search : typing.Optional[str]
1069+ A search term.
1070+
10461071 request_options : typing.Optional[RequestOptions]
10471072 Request-specific configuration.
10481073
10491074 Returns
10501075 -------
1051- AsyncHttpResponse[typing.List[ModelInterfaceSerializerGet] ]
1076+ AsyncHttpResponse[PaginatedModelInterfaceSerializerGetList ]
10521077
10531078 """
10541079 _response = await self ._client_wrapper .httpx_client .request (
10551080 "api/prompts/" ,
10561081 method = "GET" ,
10571082 params = {
10581083 "ordering" : ordering ,
1084+ "page" : page ,
1085+ "search" : search ,
10591086 },
10601087 request_options = request_options ,
10611088 )
10621089 try :
10631090 if 200 <= _response .status_code < 300 :
10641091 _data = typing .cast (
1065- typing . List [ ModelInterfaceSerializerGet ] ,
1092+ PaginatedModelInterfaceSerializerGetList ,
10661093 construct_type (
1067- type_ = typing . List [ ModelInterfaceSerializerGet ] , # type: ignore
1094+ type_ = PaginatedModelInterfaceSerializerGetList , # type: ignore
10681095 object_ = _response .json (),
10691096 ),
10701097 )
0 commit comments