Skip to content

🌿 Fern Regeneration -- July 17, 2025 #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ client = Pipedream(
)
client.accounts.create(
app_slug="app_slug",
cfmap_json="cfmap_json",
connect_token="connect_token",
)
```

Expand All @@ -55,8 +53,6 @@ client = AsyncPipedream(
async def main() -> None:
await client.accounts.create(
app_slug="app_slug",
cfmap_json="cfmap_json",
connect_token="connect_token",
)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "pipedream"

[tool.poetry]
name = "pipedream"
version = "0.3.2"
version = "0.3.3"
description = ""
readme = "README.md"
authors = []
Expand Down
18 changes: 4 additions & 14 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,6 @@ client = Pipedream(
)
client.accounts.create(
app_slug="app_slug",
cfmap_json="cfmap_json",
connect_token="connect_token",
)

```
Expand All @@ -438,39 +436,31 @@ client.accounts.create(
<dl>
<dd>

**cfmap_json:** `str` — JSON string containing the custom fields mapping

</dd>
</dl>

<dl>
<dd>

**connect_token:** `str` — The connect token for authentication
**app_id:** `typing.Optional[str]` — The app slug or ID to filter accounts by.

</dd>
</dl>

<dl>
<dd>

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

</dd>
</dl>

<dl>
<dd>

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

</dd>
</dl>

<dl>
<dd>

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

</dd>
</dl>
Expand Down
34 changes: 10 additions & 24 deletions src/pipedream/accounts/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,10 @@ def create(
self,
*,
app_slug: str,
cfmap_json: str,
connect_token: str,
app_id: typing.Optional[str] = None,
external_user_id: typing.Optional[str] = None,
oauth_app_id: typing.Optional[str] = None,
cfmap_json: typing.Optional[str] = OMIT,
name: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> Account:
Expand All @@ -116,12 +115,6 @@ def create(
app_slug : str
The app slug for the account

cfmap_json : str
JSON string containing the custom fields mapping

connect_token : str
The connect token for authentication

app_id : typing.Optional[str]
The app slug or ID to filter accounts by.

Expand All @@ -130,6 +123,9 @@ def create(
oauth_app_id : typing.Optional[str]
The OAuth app ID to filter by, if applicable

cfmap_json : typing.Optional[str]
JSON string containing the custom fields mapping

name : typing.Optional[str]
Optional name for the account

Expand All @@ -153,17 +149,14 @@ def create(
)
client.accounts.create(
app_slug="app_slug",
cfmap_json="cfmap_json",
connect_token="connect_token",
)
"""
_response = self._raw_client.create(
app_slug=app_slug,
cfmap_json=cfmap_json,
connect_token=connect_token,
app_id=app_id,
external_user_id=external_user_id,
oauth_app_id=oauth_app_id,
cfmap_json=cfmap_json,
name=name,
request_options=request_options,
)
Expand Down Expand Up @@ -371,11 +364,10 @@ async def create(
self,
*,
app_slug: str,
cfmap_json: str,
connect_token: str,
app_id: typing.Optional[str] = None,
external_user_id: typing.Optional[str] = None,
oauth_app_id: typing.Optional[str] = None,
cfmap_json: typing.Optional[str] = OMIT,
name: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> Account:
Expand All @@ -385,12 +377,6 @@ async def create(
app_slug : str
The app slug for the account

cfmap_json : str
JSON string containing the custom fields mapping

connect_token : str
The connect token for authentication

app_id : typing.Optional[str]
The app slug or ID to filter accounts by.

Expand All @@ -399,6 +385,9 @@ async def create(
oauth_app_id : typing.Optional[str]
The OAuth app ID to filter by, if applicable

cfmap_json : typing.Optional[str]
JSON string containing the custom fields mapping

name : typing.Optional[str]
Optional name for the account

Expand Down Expand Up @@ -427,20 +416,17 @@ async def create(
async def main() -> None:
await client.accounts.create(
app_slug="app_slug",
cfmap_json="cfmap_json",
connect_token="connect_token",
)


asyncio.run(main())
"""
_response = await self._raw_client.create(
app_slug=app_slug,
cfmap_json=cfmap_json,
connect_token=connect_token,
app_id=app_id,
external_user_id=external_user_id,
oauth_app_id=oauth_app_id,
cfmap_json=cfmap_json,
name=name,
request_options=request_options,
)
Expand Down
26 changes: 8 additions & 18 deletions src/pipedream/accounts/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,10 @@ def create(
self,
*,
app_slug: str,
cfmap_json: str,
connect_token: str,
app_id: typing.Optional[str] = None,
external_user_id: typing.Optional[str] = None,
oauth_app_id: typing.Optional[str] = None,
cfmap_json: typing.Optional[str] = OMIT,
name: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[Account]:
Expand All @@ -129,12 +128,6 @@ def create(
app_slug : str
The app slug for the account

cfmap_json : str
JSON string containing the custom fields mapping

connect_token : str
The connect token for authentication

app_id : typing.Optional[str]
The app slug or ID to filter accounts by.

Expand All @@ -143,6 +136,9 @@ def create(
oauth_app_id : typing.Optional[str]
The OAuth app ID to filter by, if applicable

cfmap_json : typing.Optional[str]
JSON string containing the custom fields mapping

name : typing.Optional[str]
Optional name for the account

Expand All @@ -165,7 +161,6 @@ def create(
json={
"app_slug": app_slug,
"cfmap_json": cfmap_json,
"connect_token": connect_token,
"name": name,
},
headers={
Expand Down Expand Up @@ -391,11 +386,10 @@ async def create(
self,
*,
app_slug: str,
cfmap_json: str,
connect_token: str,
app_id: typing.Optional[str] = None,
external_user_id: typing.Optional[str] = None,
oauth_app_id: typing.Optional[str] = None,
cfmap_json: typing.Optional[str] = OMIT,
name: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[Account]:
Expand All @@ -405,12 +399,6 @@ async def create(
app_slug : str
The app slug for the account

cfmap_json : str
JSON string containing the custom fields mapping

connect_token : str
The connect token for authentication

app_id : typing.Optional[str]
The app slug or ID to filter accounts by.

Expand All @@ -419,6 +407,9 @@ async def create(
oauth_app_id : typing.Optional[str]
The OAuth app ID to filter by, if applicable

cfmap_json : typing.Optional[str]
JSON string containing the custom fields mapping

name : typing.Optional[str]
Optional name for the account

Expand All @@ -441,7 +432,6 @@ async def create(
json={
"app_slug": app_slug,
"cfmap_json": cfmap_json,
"connect_token": connect_token,
"name": name,
},
headers={
Expand Down
2 changes: 1 addition & 1 deletion src/pipedream/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import typing

import httpx
from .types.project_environment import ProjectEnvironment
from ._.types.project_environment import ProjectEnvironment
from .accounts.client import AccountsClient, AsyncAccountsClient
from .actions.client import ActionsClient, AsyncActionsClient
from .app_categories.client import AppCategoriesClient, AsyncAppCategoriesClient
Expand Down
6 changes: 3 additions & 3 deletions src/pipedream/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import typing

import httpx
from ..types.project_environment import ProjectEnvironment
from .._.types.project_environment import ProjectEnvironment
from .http_client import AsyncHttpClient, HttpClient


Expand All @@ -27,10 +27,10 @@ def __init__(

def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"User-Agent": "pipedream/0.3.2",
"User-Agent": "pipedream/0.3.3",
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "pipedream",
"X-Fern-SDK-Version": "0.3.2",
"X-Fern-SDK-Version": "0.3.3",
**(self.get_custom_headers() or {}),
}
if self._project_environment is not None:
Expand Down
Loading