@@ -30,12 +30,12 @@ def with_raw_response(self) -> RawAccountsClient:
3030 def list (
3131 self ,
3232 * ,
33- app_id : typing .Optional [str ] = None ,
3433 external_user_id : typing .Optional [str ] = None ,
3534 oauth_app_id : typing .Optional [str ] = None ,
3635 after : typing .Optional [str ] = None ,
3736 before : typing .Optional [str ] = None ,
3837 limit : typing .Optional [int ] = None ,
38+ app : typing .Optional [str ] = None ,
3939 include_credentials : typing .Optional [bool ] = None ,
4040 request_options : typing .Optional [RequestOptions ] = None ,
4141 ) -> SyncPager [Account ]:
@@ -44,9 +44,6 @@ def list(
4444
4545 Parameters
4646 ----------
47- app_id : typing.Optional[str]
48- The app slug or ID to filter accounts by.
49-
5047 external_user_id : typing.Optional[str]
5148
5249 oauth_app_id : typing.Optional[str]
@@ -61,6 +58,9 @@ def list(
6158 limit : typing.Optional[int]
6259 The maximum number of results to return
6360
61+ app : typing.Optional[str]
62+ The app slug or ID to filter accounts by.
63+
6464 include_credentials : typing.Optional[bool]
6565 Whether to retrieve the account's credentials or not
6666
@@ -82,20 +82,28 @@ def list(
8282 client_id="YOUR_CLIENT_ID",
8383 client_secret="YOUR_CLIENT_SECRET",
8484 )
85- response = client.accounts.list()
85+ response = client.accounts.list(
86+ external_user_id="external_user_id",
87+ oauth_app_id="oauth_app_id",
88+ after="after",
89+ before="before",
90+ limit=1,
91+ app="app",
92+ include_credentials=True,
93+ )
8694 for item in response:
8795 yield item
8896 # alternatively, you can paginate page-by-page
8997 for page in response.iter_pages():
9098 yield page
9199 """
92100 return self ._raw_client .list (
93- app_id = app_id ,
94101 external_user_id = external_user_id ,
95102 oauth_app_id = oauth_app_id ,
96103 after = after ,
97104 before = before ,
98105 limit = limit ,
106+ app = app ,
99107 include_credentials = include_credentials ,
100108 request_options = request_options ,
101109 )
@@ -106,7 +114,6 @@ def create(
106114 app_slug : str ,
107115 cfmap_json : str ,
108116 connect_token : str ,
109- app_id : typing .Optional [str ] = None ,
110117 external_user_id : typing .Optional [str ] = None ,
111118 oauth_app_id : typing .Optional [str ] = None ,
112119 name : typing .Optional [str ] = OMIT ,
@@ -126,9 +133,6 @@ def create(
126133 connect_token : str
127134 The connect token for authentication
128135
129- app_id : typing.Optional[str]
130- The app slug or ID to filter accounts by.
131-
132136 external_user_id : typing.Optional[str]
133137
134138 oauth_app_id : typing.Optional[str]
@@ -156,6 +160,8 @@ def create(
156160 client_secret="YOUR_CLIENT_SECRET",
157161 )
158162 client.accounts.create(
163+ external_user_id="external_user_id",
164+ oauth_app_id="oauth_app_id",
159165 app_slug="app_slug",
160166 cfmap_json="cfmap_json",
161167 connect_token="connect_token",
@@ -165,7 +171,6 @@ def create(
165171 app_slug = app_slug ,
166172 cfmap_json = cfmap_json ,
167173 connect_token = connect_token ,
168- app_id = app_id ,
169174 external_user_id = external_user_id ,
170175 oauth_app_id = oauth_app_id ,
171176 name = name ,
@@ -210,6 +215,7 @@ def retrieve(
210215 )
211216 client.accounts.retrieve(
212217 account_id="account_id",
218+ include_credentials=True,
213219 )
214220 """
215221 _response = self ._raw_client .retrieve (
@@ -300,12 +306,12 @@ def with_raw_response(self) -> AsyncRawAccountsClient:
300306 async def list (
301307 self ,
302308 * ,
303- app_id : typing .Optional [str ] = None ,
304309 external_user_id : typing .Optional [str ] = None ,
305310 oauth_app_id : typing .Optional [str ] = None ,
306311 after : typing .Optional [str ] = None ,
307312 before : typing .Optional [str ] = None ,
308313 limit : typing .Optional [int ] = None ,
314+ app : typing .Optional [str ] = None ,
309315 include_credentials : typing .Optional [bool ] = None ,
310316 request_options : typing .Optional [RequestOptions ] = None ,
311317 ) -> AsyncPager [Account ]:
@@ -314,9 +320,6 @@ async def list(
314320
315321 Parameters
316322 ----------
317- app_id : typing.Optional[str]
318- The app slug or ID to filter accounts by.
319-
320323 external_user_id : typing.Optional[str]
321324
322325 oauth_app_id : typing.Optional[str]
@@ -331,6 +334,9 @@ async def list(
331334 limit : typing.Optional[int]
332335 The maximum number of results to return
333336
337+ app : typing.Optional[str]
338+ The app slug or ID to filter accounts by.
339+
334340 include_credentials : typing.Optional[bool]
335341 Whether to retrieve the account's credentials or not
336342
@@ -357,7 +363,15 @@ async def list(
357363
358364
359365 async def main() -> None:
360- response = await client.accounts.list()
366+ response = await client.accounts.list(
367+ external_user_id="external_user_id",
368+ oauth_app_id="oauth_app_id",
369+ after="after",
370+ before="before",
371+ limit=1,
372+ app="app",
373+ include_credentials=True,
374+ )
361375 async for item in response:
362376 yield item
363377
@@ -369,12 +383,12 @@ async def main() -> None:
369383 asyncio.run(main())
370384 """
371385 return await self ._raw_client .list (
372- app_id = app_id ,
373386 external_user_id = external_user_id ,
374387 oauth_app_id = oauth_app_id ,
375388 after = after ,
376389 before = before ,
377390 limit = limit ,
391+ app = app ,
378392 include_credentials = include_credentials ,
379393 request_options = request_options ,
380394 )
@@ -385,7 +399,6 @@ async def create(
385399 app_slug : str ,
386400 cfmap_json : str ,
387401 connect_token : str ,
388- app_id : typing .Optional [str ] = None ,
389402 external_user_id : typing .Optional [str ] = None ,
390403 oauth_app_id : typing .Optional [str ] = None ,
391404 name : typing .Optional [str ] = OMIT ,
@@ -405,9 +418,6 @@ async def create(
405418 connect_token : str
406419 The connect token for authentication
407420
408- app_id : typing.Optional[str]
409- The app slug or ID to filter accounts by.
410-
411421 external_user_id : typing.Optional[str]
412422
413423 oauth_app_id : typing.Optional[str]
@@ -440,6 +450,8 @@ async def create(
440450
441451 async def main() -> None:
442452 await client.accounts.create(
453+ external_user_id="external_user_id",
454+ oauth_app_id="oauth_app_id",
443455 app_slug="app_slug",
444456 cfmap_json="cfmap_json",
445457 connect_token="connect_token",
@@ -452,7 +464,6 @@ async def main() -> None:
452464 app_slug = app_slug ,
453465 cfmap_json = cfmap_json ,
454466 connect_token = connect_token ,
455- app_id = app_id ,
456467 external_user_id = external_user_id ,
457468 oauth_app_id = oauth_app_id ,
458469 name = name ,
@@ -502,6 +513,7 @@ async def retrieve(
502513 async def main() -> None:
503514 await client.accounts.retrieve(
504515 account_id="account_id",
516+ include_credentials=True,
505517 )
506518
507519
0 commit comments