diff --git a/README.md b/README.md
index 9bc8b61..28d5edc 100644
--- a/README.md
+++ b/README.md
@@ -30,8 +30,6 @@ client = Pipedream(
)
client.accounts.create(
app_slug="app_slug",
- cfmap_json="cfmap_json",
- connect_token="connect_token",
)
```
@@ -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",
)
diff --git a/pyproject.toml b/pyproject.toml
index 61726ce..2dcc934 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -3,7 +3,7 @@ name = "pipedream"
[tool.poetry]
name = "pipedream"
-version = "0.3.2"
+version = "0.3.3"
description = ""
readme = "README.md"
authors = []
diff --git a/reference.md b/reference.md
index d898404..98ff989 100644
--- a/reference.md
+++ b/reference.md
@@ -412,8 +412,6 @@ client = Pipedream(
)
client.accounts.create(
app_slug="app_slug",
- cfmap_json="cfmap_json",
- connect_token="connect_token",
)
```
@@ -438,15 +436,7 @@ client.accounts.create(
-
-**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.
@@ -454,7 +444,7 @@ client.accounts.create(
-
-**app_id:** `typing.Optional[str]` — The app slug or ID to filter accounts by.
+**external_user_id:** `typing.Optional[str]`
@@ -462,7 +452,7 @@ client.accounts.create(
-
-**external_user_id:** `typing.Optional[str]`
+**oauth_app_id:** `typing.Optional[str]` — The OAuth app ID to filter by, if applicable
@@ -470,7 +460,7 @@ client.accounts.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
diff --git a/src/pipedream/accounts/client.py b/src/pipedream/accounts/client.py
index b0f86bf..9180772 100644
--- a/src/pipedream/accounts/client.py
+++ b/src/pipedream/accounts/client.py
@@ -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:
@@ -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.
@@ -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
@@ -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,
)
@@ -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:
@@ -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.
@@ -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
@@ -427,8 +416,6 @@ async def create(
async def main() -> None:
await client.accounts.create(
app_slug="app_slug",
- cfmap_json="cfmap_json",
- connect_token="connect_token",
)
@@ -436,11 +423,10 @@ async def main() -> None:
"""
_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,
)
diff --git a/src/pipedream/accounts/raw_client.py b/src/pipedream/accounts/raw_client.py
index 2767afd..c918c21 100644
--- a/src/pipedream/accounts/raw_client.py
+++ b/src/pipedream/accounts/raw_client.py
@@ -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]:
@@ -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.
@@ -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
@@ -165,7 +161,6 @@ def create(
json={
"app_slug": app_slug,
"cfmap_json": cfmap_json,
- "connect_token": connect_token,
"name": name,
},
headers={
@@ -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]:
@@ -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.
@@ -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
@@ -441,7 +432,6 @@ async def create(
json={
"app_slug": app_slug,
"cfmap_json": cfmap_json,
- "connect_token": connect_token,
"name": name,
},
headers={
diff --git a/src/pipedream/client.py b/src/pipedream/client.py
index 24d3539..05f4186 100644
--- a/src/pipedream/client.py
+++ b/src/pipedream/client.py
@@ -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
diff --git a/src/pipedream/core/client_wrapper.py b/src/pipedream/core/client_wrapper.py
index 5cbb73a..b5daf3b 100644
--- a/src/pipedream/core/client_wrapper.py
+++ b/src/pipedream/core/client_wrapper.py
@@ -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
@@ -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: