Skip to content

🌿 Fern Regeneration -- July 25, 2025 #38

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
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.3"
version = "0.3.4"
description = ""
readme = "README.md"
authors = []
Expand Down
4 changes: 2 additions & 2 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)

```
Expand All @@ -3339,7 +3339,7 @@ client.tokens.create(
<dl>
<dd>

**project_id:** `str` — The ID of the project
**create_token_request_project_id:** `str` — The ID of the project

</dd>
</dl>
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.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:
Expand Down
16 changes: 8 additions & 8 deletions src/pipedream/tokens/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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]]
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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]]
Expand Down Expand Up @@ -206,15 +206,15 @@ 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",
)


asyncio.run(main())
"""
_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,
Expand Down
20 changes: 10 additions & 10 deletions src/pipedream/tokens/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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]]
Expand All @@ -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,
},
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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,
Expand All @@ -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]]
Expand All @@ -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,
},
Expand Down Expand Up @@ -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(
Expand Down
5 changes: 0 additions & 5 deletions src/pipedream/types/connect_token_create_opts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading