Skip to content

Commit cd709e4

Browse files
committed
SDK regeneration
1 parent cfe4b1b commit cd709e4

File tree

7 files changed

+27
-65
lines changed

7 files changed

+27
-65
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ client = Pipedream(
3030
)
3131
client.accounts.create(
3232
app_slug="app_slug",
33-
cfmap_json="cfmap_json",
34-
connect_token="connect_token",
3533
)
3634
```
3735

@@ -55,8 +53,6 @@ client = AsyncPipedream(
5553
async def main() -> None:
5654
await client.accounts.create(
5755
app_slug="app_slug",
58-
cfmap_json="cfmap_json",
59-
connect_token="connect_token",
6056
)
6157

6258

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "pipedream"
33

44
[tool.poetry]
55
name = "pipedream"
6-
version = "0.3.2"
6+
version = "0.3.3"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,6 @@ client = Pipedream(
412412
)
413413
client.accounts.create(
414414
app_slug="app_slug",
415-
cfmap_json="cfmap_json",
416-
connect_token="connect_token",
417415
)
418416

419417
```
@@ -438,39 +436,31 @@ client.accounts.create(
438436
<dl>
439437
<dd>
440438

441-
**cfmap_json:** `str` — JSON string containing the custom fields mapping
442-
443-
</dd>
444-
</dl>
445-
446-
<dl>
447-
<dd>
448-
449-
**connect_token:** `str` — The connect token for authentication
439+
**app_id:** `typing.Optional[str]` — The app slug or ID to filter accounts by.
450440

451441
</dd>
452442
</dl>
453443

454444
<dl>
455445
<dd>
456446

457-
**app_id:** `typing.Optional[str]` — The app slug or ID to filter accounts by.
447+
**external_user_id:** `typing.Optional[str]`
458448

459449
</dd>
460450
</dl>
461451

462452
<dl>
463453
<dd>
464454

465-
**external_user_id:** `typing.Optional[str]`
455+
**oauth_app_id:** `typing.Optional[str]` — The OAuth app ID to filter by, if applicable
466456

467457
</dd>
468458
</dl>
469459

470460
<dl>
471461
<dd>
472462

473-
**oauth_app_id:** `typing.Optional[str]`The OAuth app ID to filter by, if applicable
463+
**cfmap_json:** `typing.Optional[str]`JSON string containing the custom fields mapping
474464

475465
</dd>
476466
</dl>

src/pipedream/accounts/client.py

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,10 @@ def create(
102102
self,
103103
*,
104104
app_slug: str,
105-
cfmap_json: str,
106-
connect_token: str,
107105
app_id: typing.Optional[str] = None,
108106
external_user_id: typing.Optional[str] = None,
109107
oauth_app_id: typing.Optional[str] = None,
108+
cfmap_json: typing.Optional[str] = OMIT,
110109
name: typing.Optional[str] = OMIT,
111110
request_options: typing.Optional[RequestOptions] = None,
112111
) -> Account:
@@ -116,12 +115,6 @@ def create(
116115
app_slug : str
117116
The app slug for the account
118117
119-
cfmap_json : str
120-
JSON string containing the custom fields mapping
121-
122-
connect_token : str
123-
The connect token for authentication
124-
125118
app_id : typing.Optional[str]
126119
The app slug or ID to filter accounts by.
127120
@@ -130,6 +123,9 @@ def create(
130123
oauth_app_id : typing.Optional[str]
131124
The OAuth app ID to filter by, if applicable
132125
126+
cfmap_json : typing.Optional[str]
127+
JSON string containing the custom fields mapping
128+
133129
name : typing.Optional[str]
134130
Optional name for the account
135131
@@ -153,17 +149,14 @@ def create(
153149
)
154150
client.accounts.create(
155151
app_slug="app_slug",
156-
cfmap_json="cfmap_json",
157-
connect_token="connect_token",
158152
)
159153
"""
160154
_response = self._raw_client.create(
161155
app_slug=app_slug,
162-
cfmap_json=cfmap_json,
163-
connect_token=connect_token,
164156
app_id=app_id,
165157
external_user_id=external_user_id,
166158
oauth_app_id=oauth_app_id,
159+
cfmap_json=cfmap_json,
167160
name=name,
168161
request_options=request_options,
169162
)
@@ -371,11 +364,10 @@ async def create(
371364
self,
372365
*,
373366
app_slug: str,
374-
cfmap_json: str,
375-
connect_token: str,
376367
app_id: typing.Optional[str] = None,
377368
external_user_id: typing.Optional[str] = None,
378369
oauth_app_id: typing.Optional[str] = None,
370+
cfmap_json: typing.Optional[str] = OMIT,
379371
name: typing.Optional[str] = OMIT,
380372
request_options: typing.Optional[RequestOptions] = None,
381373
) -> Account:
@@ -385,12 +377,6 @@ async def create(
385377
app_slug : str
386378
The app slug for the account
387379
388-
cfmap_json : str
389-
JSON string containing the custom fields mapping
390-
391-
connect_token : str
392-
The connect token for authentication
393-
394380
app_id : typing.Optional[str]
395381
The app slug or ID to filter accounts by.
396382
@@ -399,6 +385,9 @@ async def create(
399385
oauth_app_id : typing.Optional[str]
400386
The OAuth app ID to filter by, if applicable
401387
388+
cfmap_json : typing.Optional[str]
389+
JSON string containing the custom fields mapping
390+
402391
name : typing.Optional[str]
403392
Optional name for the account
404393
@@ -427,20 +416,17 @@ async def create(
427416
async def main() -> None:
428417
await client.accounts.create(
429418
app_slug="app_slug",
430-
cfmap_json="cfmap_json",
431-
connect_token="connect_token",
432419
)
433420
434421
435422
asyncio.run(main())
436423
"""
437424
_response = await self._raw_client.create(
438425
app_slug=app_slug,
439-
cfmap_json=cfmap_json,
440-
connect_token=connect_token,
441426
app_id=app_id,
442427
external_user_id=external_user_id,
443428
oauth_app_id=oauth_app_id,
429+
cfmap_json=cfmap_json,
444430
name=name,
445431
request_options=request_options,
446432
)

src/pipedream/accounts/raw_client.py

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,10 @@ def create(
115115
self,
116116
*,
117117
app_slug: str,
118-
cfmap_json: str,
119-
connect_token: str,
120118
app_id: typing.Optional[str] = None,
121119
external_user_id: typing.Optional[str] = None,
122120
oauth_app_id: typing.Optional[str] = None,
121+
cfmap_json: typing.Optional[str] = OMIT,
123122
name: typing.Optional[str] = OMIT,
124123
request_options: typing.Optional[RequestOptions] = None,
125124
) -> HttpResponse[Account]:
@@ -129,12 +128,6 @@ def create(
129128
app_slug : str
130129
The app slug for the account
131130
132-
cfmap_json : str
133-
JSON string containing the custom fields mapping
134-
135-
connect_token : str
136-
The connect token for authentication
137-
138131
app_id : typing.Optional[str]
139132
The app slug or ID to filter accounts by.
140133
@@ -143,6 +136,9 @@ def create(
143136
oauth_app_id : typing.Optional[str]
144137
The OAuth app ID to filter by, if applicable
145138
139+
cfmap_json : typing.Optional[str]
140+
JSON string containing the custom fields mapping
141+
146142
name : typing.Optional[str]
147143
Optional name for the account
148144
@@ -165,7 +161,6 @@ def create(
165161
json={
166162
"app_slug": app_slug,
167163
"cfmap_json": cfmap_json,
168-
"connect_token": connect_token,
169164
"name": name,
170165
},
171166
headers={
@@ -391,11 +386,10 @@ async def create(
391386
self,
392387
*,
393388
app_slug: str,
394-
cfmap_json: str,
395-
connect_token: str,
396389
app_id: typing.Optional[str] = None,
397390
external_user_id: typing.Optional[str] = None,
398391
oauth_app_id: typing.Optional[str] = None,
392+
cfmap_json: typing.Optional[str] = OMIT,
399393
name: typing.Optional[str] = OMIT,
400394
request_options: typing.Optional[RequestOptions] = None,
401395
) -> AsyncHttpResponse[Account]:
@@ -405,12 +399,6 @@ async def create(
405399
app_slug : str
406400
The app slug for the account
407401
408-
cfmap_json : str
409-
JSON string containing the custom fields mapping
410-
411-
connect_token : str
412-
The connect token for authentication
413-
414402
app_id : typing.Optional[str]
415403
The app slug or ID to filter accounts by.
416404
@@ -419,6 +407,9 @@ async def create(
419407
oauth_app_id : typing.Optional[str]
420408
The OAuth app ID to filter by, if applicable
421409
410+
cfmap_json : typing.Optional[str]
411+
JSON string containing the custom fields mapping
412+
422413
name : typing.Optional[str]
423414
Optional name for the account
424415
@@ -441,7 +432,6 @@ async def create(
441432
json={
442433
"app_slug": app_slug,
443434
"cfmap_json": cfmap_json,
444-
"connect_token": connect_token,
445435
"name": name,
446436
},
447437
headers={

src/pipedream/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import typing
55

66
import httpx
7-
from .types.project_environment import ProjectEnvironment
7+
from ._.types.project_environment import ProjectEnvironment
88
from .accounts.client import AccountsClient, AsyncAccountsClient
99
from .actions.client import ActionsClient, AsyncActionsClient
1010
from .app_categories.client import AppCategoriesClient, AsyncAppCategoriesClient

src/pipedream/core/client_wrapper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import typing
44

55
import httpx
6-
from ..types.project_environment import ProjectEnvironment
6+
from .._.types.project_environment import ProjectEnvironment
77
from .http_client import AsyncHttpClient, HttpClient
88

99

@@ -27,10 +27,10 @@ def __init__(
2727

2828
def get_headers(self) -> typing.Dict[str, str]:
2929
headers: typing.Dict[str, str] = {
30-
"User-Agent": "pipedream/0.3.2",
30+
"User-Agent": "pipedream/0.3.3",
3131
"X-Fern-Language": "Python",
3232
"X-Fern-SDK-Name": "pipedream",
33-
"X-Fern-SDK-Version": "0.3.2",
33+
"X-Fern-SDK-Version": "0.3.3",
3434
**(self.get_custom_headers() or {}),
3535
}
3636
if self._project_environment is not None:

0 commit comments

Comments
 (0)