From 59ce7452dcf54dccad65c72bd6ab79724cf326ba Mon Sep 17 00:00:00 2001
From: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Date: Fri, 25 Jul 2025 16:00:02 +0000
Subject: [PATCH] SDK regeneration
---
pyproject.toml | 2 +-
reference.md | 4 ++--
src/pipedream/client.py | 2 +-
src/pipedream/core/client_wrapper.py | 6 +++---
src/pipedream/tokens/client.py | 16 +++++++--------
src/pipedream/tokens/raw_client.py | 20 +++++++++----------
.../types/connect_token_create_opts.py | 5 -----
7 files changed, 25 insertions(+), 30 deletions(-)
diff --git a/pyproject.toml b/pyproject.toml
index 2dcc934..deca420 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -3,7 +3,7 @@ name = "pipedream"
[tool.poetry]
name = "pipedream"
-version = "0.3.3"
+version = "0.3.4"
description = ""
readme = "README.md"
authors = []
diff --git a/reference.md b/reference.md
index d898404..f17e1f1 100644
--- a/reference.md
+++ b/reference.md
@@ -3314,7 +3314,7 @@ client = Pipedream(
)
client.tokens.create(
external_user_id="external_user_id",
- project_id="project_id",
+ create_token_request_project_id="project_id",
)
```
@@ -3339,7 +3339,7 @@ client.tokens.create(
-
-**project_id:** `str` — The ID of the project
+**create_token_request_project_id:** `str` — The ID of the project
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 9aa7f23..36ea9e3 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.3",
+ "User-Agent": "pipedream/0.3.4",
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "pipedream",
- "X-Fern-SDK-Version": "0.3.3",
+ "X-Fern-SDK-Version": "0.3.4",
**(self.get_custom_headers() or {}),
}
if self._project_environment is not None:
diff --git a/src/pipedream/tokens/client.py b/src/pipedream/tokens/client.py
index f29691c..5d40b0d 100644
--- a/src/pipedream/tokens/client.py
+++ b/src/pipedream/tokens/client.py
@@ -32,7 +32,7 @@ def create(
self,
*,
external_user_id: str,
- project_id: str,
+ create_token_request_project_id: str,
allowed_origins: typing.Optional[typing.Sequence[str]] = OMIT,
error_redirect_uri: typing.Optional[str] = OMIT,
success_redirect_uri: typing.Optional[str] = OMIT,
@@ -45,7 +45,7 @@ def create(
external_user_id : str
Your end user ID, for whom you're creating the token
- project_id : str
+ create_token_request_project_id : str
The ID of the project
allowed_origins : typing.Optional[typing.Sequence[str]]
@@ -80,12 +80,12 @@ def create(
)
client.tokens.create(
external_user_id="external_user_id",
- project_id="project_id",
+ create_token_request_project_id="project_id",
)
"""
_response = self._raw_client.create(
external_user_id=external_user_id,
- project_id=project_id,
+ create_token_request_project_id=create_token_request_project_id,
allowed_origins=allowed_origins,
error_redirect_uri=error_redirect_uri,
success_redirect_uri=success_redirect_uri,
@@ -153,7 +153,7 @@ async def create(
self,
*,
external_user_id: str,
- project_id: str,
+ create_token_request_project_id: str,
allowed_origins: typing.Optional[typing.Sequence[str]] = OMIT,
error_redirect_uri: typing.Optional[str] = OMIT,
success_redirect_uri: typing.Optional[str] = OMIT,
@@ -166,7 +166,7 @@ async def create(
external_user_id : str
Your end user ID, for whom you're creating the token
- project_id : str
+ create_token_request_project_id : str
The ID of the project
allowed_origins : typing.Optional[typing.Sequence[str]]
@@ -206,7 +206,7 @@ async def create(
async def main() -> None:
await client.tokens.create(
external_user_id="external_user_id",
- project_id="project_id",
+ create_token_request_project_id="project_id",
)
@@ -214,7 +214,7 @@ async def main() -> None:
"""
_response = await self._raw_client.create(
external_user_id=external_user_id,
- project_id=project_id,
+ create_token_request_project_id=create_token_request_project_id,
allowed_origins=allowed_origins,
error_redirect_uri=error_redirect_uri,
success_redirect_uri=success_redirect_uri,
diff --git a/src/pipedream/tokens/raw_client.py b/src/pipedream/tokens/raw_client.py
index 747b454..81f2535 100644
--- a/src/pipedream/tokens/raw_client.py
+++ b/src/pipedream/tokens/raw_client.py
@@ -26,7 +26,7 @@ def create(
self,
*,
external_user_id: str,
- project_id: str,
+ create_token_request_project_id: str,
allowed_origins: typing.Optional[typing.Sequence[str]] = OMIT,
error_redirect_uri: typing.Optional[str] = OMIT,
success_redirect_uri: typing.Optional[str] = OMIT,
@@ -39,7 +39,7 @@ def create(
external_user_id : str
Your end user ID, for whom you're creating the token
- project_id : str
+ create_token_request_project_id : str
The ID of the project
allowed_origins : typing.Optional[typing.Sequence[str]]
@@ -63,13 +63,13 @@ def create(
connect token created
"""
_response = self._client_wrapper.httpx_client.request(
- "v1/connect/tokens",
+ f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/tokens",
method="POST",
json={
"allowed_origins": allowed_origins,
"error_redirect_uri": error_redirect_uri,
"external_user_id": external_user_id,
- "project_id": project_id,
+ "project_id": create_token_request_project_id,
"success_redirect_uri": success_redirect_uri,
"webhook_uri": webhook_uri,
},
@@ -117,7 +117,7 @@ def validate(
connect token validated
"""
_response = self._client_wrapper.httpx_client.request(
- f"v1/connect/tokens/{jsonable_encoder(ctok)}/validate",
+ f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/tokens/{jsonable_encoder(ctok)}/validate",
method="GET",
params={
"params": convert_and_respect_annotation_metadata(
@@ -150,7 +150,7 @@ async def create(
self,
*,
external_user_id: str,
- project_id: str,
+ create_token_request_project_id: str,
allowed_origins: typing.Optional[typing.Sequence[str]] = OMIT,
error_redirect_uri: typing.Optional[str] = OMIT,
success_redirect_uri: typing.Optional[str] = OMIT,
@@ -163,7 +163,7 @@ async def create(
external_user_id : str
Your end user ID, for whom you're creating the token
- project_id : str
+ create_token_request_project_id : str
The ID of the project
allowed_origins : typing.Optional[typing.Sequence[str]]
@@ -187,13 +187,13 @@ async def create(
connect token created
"""
_response = await self._client_wrapper.httpx_client.request(
- "v1/connect/tokens",
+ f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/tokens",
method="POST",
json={
"allowed_origins": allowed_origins,
"error_redirect_uri": error_redirect_uri,
"external_user_id": external_user_id,
- "project_id": project_id,
+ "project_id": create_token_request_project_id,
"success_redirect_uri": success_redirect_uri,
"webhook_uri": webhook_uri,
},
@@ -241,7 +241,7 @@ async def validate(
connect token validated
"""
_response = await self._client_wrapper.httpx_client.request(
- f"v1/connect/tokens/{jsonable_encoder(ctok)}/validate",
+ f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/tokens/{jsonable_encoder(ctok)}/validate",
method="GET",
params={
"params": convert_and_respect_annotation_metadata(
diff --git a/src/pipedream/types/connect_token_create_opts.py b/src/pipedream/types/connect_token_create_opts.py
index dc16143..2940955 100644
--- a/src/pipedream/types/connect_token_create_opts.py
+++ b/src/pipedream/types/connect_token_create_opts.py
@@ -16,11 +16,6 @@ class ConnectTokenCreateOpts(UniversalBaseModel):
Your end user ID, for whom you're creating the token
"""
- project_id: str = pydantic.Field()
- """
- The ID of the project
- """
-
allowed_origins: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
"""
List of allowed origins for CORS