88from ..types .app import App
99from ..types .get_app_response import GetAppResponse
1010from .raw_client import AsyncRawAppsClient , RawAppsClient
11- from .types .apps_list_request_sort_direction import AppsListRequestSortDirection
12- from .types .apps_list_request_sort_key import AppsListRequestSortKey
11+ from .types .list_apps_request_sort_direction import ListAppsRequestSortDirection
12+ from .types .list_apps_request_sort_key import ListAppsRequestSortKey
1313
1414
1515class AppsClient :
@@ -34,8 +34,8 @@ def list(
3434 before : typing .Optional [str ] = None ,
3535 limit : typing .Optional [int ] = None ,
3636 q : typing .Optional [str ] = None ,
37- sort_key : typing .Optional [AppsListRequestSortKey ] = None ,
38- sort_direction : typing .Optional [AppsListRequestSortDirection ] = None ,
37+ sort_key : typing .Optional [ListAppsRequestSortKey ] = None ,
38+ sort_direction : typing .Optional [ListAppsRequestSortDirection ] = None ,
3939 category_ids : typing .Optional [typing .Union [str , typing .Sequence [str ]]] = None ,
4040 request_options : typing .Optional [RequestOptions ] = None ,
4141 ) -> SyncPager [App ]:
@@ -56,10 +56,10 @@ def list(
5656 q : typing.Optional[str]
5757 A search query to filter the apps
5858
59- sort_key : typing.Optional[AppsListRequestSortKey ]
59+ sort_key : typing.Optional[ListAppsRequestSortKey ]
6060 The key to sort the apps by
6161
62- sort_direction : typing.Optional[AppsListRequestSortDirection ]
62+ sort_direction : typing.Optional[ListAppsRequestSortDirection ]
6363 The direction to sort the apps
6464
6565 category_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
@@ -83,14 +83,7 @@ def list(
8383 client_id="YOUR_CLIENT_ID",
8484 client_secret="YOUR_CLIENT_SECRET",
8585 )
86- response = client.apps.list(
87- after="after",
88- before="before",
89- limit=1,
90- q="q",
91- sort_key="name",
92- sort_direction="asc",
93- )
86+ response = client.apps.list()
9487 for item in response:
9588 yield item
9689 # alternatively, you can paginate page-by-page
@@ -165,8 +158,8 @@ async def list(
165158 before : typing .Optional [str ] = None ,
166159 limit : typing .Optional [int ] = None ,
167160 q : typing .Optional [str ] = None ,
168- sort_key : typing .Optional [AppsListRequestSortKey ] = None ,
169- sort_direction : typing .Optional [AppsListRequestSortDirection ] = None ,
161+ sort_key : typing .Optional [ListAppsRequestSortKey ] = None ,
162+ sort_direction : typing .Optional [ListAppsRequestSortDirection ] = None ,
170163 category_ids : typing .Optional [typing .Union [str , typing .Sequence [str ]]] = None ,
171164 request_options : typing .Optional [RequestOptions ] = None ,
172165 ) -> AsyncPager [App ]:
@@ -187,10 +180,10 @@ async def list(
187180 q : typing.Optional[str]
188181 A search query to filter the apps
189182
190- sort_key : typing.Optional[AppsListRequestSortKey ]
183+ sort_key : typing.Optional[ListAppsRequestSortKey ]
191184 The key to sort the apps by
192185
193- sort_direction : typing.Optional[AppsListRequestSortDirection ]
186+ sort_direction : typing.Optional[ListAppsRequestSortDirection ]
194187 The direction to sort the apps
195188
196189 category_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
@@ -219,14 +212,7 @@ async def list(
219212
220213
221214 async def main() -> None:
222- response = await client.apps.list(
223- after="after",
224- before="before",
225- limit=1,
226- q="q",
227- sort_key="name",
228- sort_direction="asc",
229- )
215+ response = await client.apps.list()
230216 async for item in response:
231217 yield item
232218
0 commit comments