Skip to content

Commit 59ce745

Browse files
committed
SDK regeneration
1 parent 1d2234d commit 59ce745

File tree

7 files changed

+25
-30
lines changed

7 files changed

+25
-30
lines changed

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.3"
6+
version = "0.3.4"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3314,7 +3314,7 @@ client = Pipedream(
33143314
)
33153315
client.tokens.create(
33163316
external_user_id="external_user_id",
3317-
project_id="project_id",
3317+
create_token_request_project_id="project_id",
33183318
)
33193319

33203320
```
@@ -3339,7 +3339,7 @@ client.tokens.create(
33393339
<dl>
33403340
<dd>
33413341

3342-
**project_id:** `str` — The ID of the project
3342+
**create_token_request_project_id:** `str` — The ID of the project
33433343

33443344
</dd>
33453345
</dl>

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.3",
30+
"User-Agent": "pipedream/0.3.4",
3131
"X-Fern-Language": "Python",
3232
"X-Fern-SDK-Name": "pipedream",
33-
"X-Fern-SDK-Version": "0.3.3",
33+
"X-Fern-SDK-Version": "0.3.4",
3434
**(self.get_custom_headers() or {}),
3535
}
3636
if self._project_environment is not None:

src/pipedream/tokens/client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def create(
3232
self,
3333
*,
3434
external_user_id: str,
35-
project_id: str,
35+
create_token_request_project_id: str,
3636
allowed_origins: typing.Optional[typing.Sequence[str]] = OMIT,
3737
error_redirect_uri: typing.Optional[str] = OMIT,
3838
success_redirect_uri: typing.Optional[str] = OMIT,
@@ -45,7 +45,7 @@ def create(
4545
external_user_id : str
4646
Your end user ID, for whom you're creating the token
4747
48-
project_id : str
48+
create_token_request_project_id : str
4949
The ID of the project
5050
5151
allowed_origins : typing.Optional[typing.Sequence[str]]
@@ -80,12 +80,12 @@ def create(
8080
)
8181
client.tokens.create(
8282
external_user_id="external_user_id",
83-
project_id="project_id",
83+
create_token_request_project_id="project_id",
8484
)
8585
"""
8686
_response = self._raw_client.create(
8787
external_user_id=external_user_id,
88-
project_id=project_id,
88+
create_token_request_project_id=create_token_request_project_id,
8989
allowed_origins=allowed_origins,
9090
error_redirect_uri=error_redirect_uri,
9191
success_redirect_uri=success_redirect_uri,
@@ -153,7 +153,7 @@ async def create(
153153
self,
154154
*,
155155
external_user_id: str,
156-
project_id: str,
156+
create_token_request_project_id: str,
157157
allowed_origins: typing.Optional[typing.Sequence[str]] = OMIT,
158158
error_redirect_uri: typing.Optional[str] = OMIT,
159159
success_redirect_uri: typing.Optional[str] = OMIT,
@@ -166,7 +166,7 @@ async def create(
166166
external_user_id : str
167167
Your end user ID, for whom you're creating the token
168168
169-
project_id : str
169+
create_token_request_project_id : str
170170
The ID of the project
171171
172172
allowed_origins : typing.Optional[typing.Sequence[str]]
@@ -206,15 +206,15 @@ async def create(
206206
async def main() -> None:
207207
await client.tokens.create(
208208
external_user_id="external_user_id",
209-
project_id="project_id",
209+
create_token_request_project_id="project_id",
210210
)
211211
212212
213213
asyncio.run(main())
214214
"""
215215
_response = await self._raw_client.create(
216216
external_user_id=external_user_id,
217-
project_id=project_id,
217+
create_token_request_project_id=create_token_request_project_id,
218218
allowed_origins=allowed_origins,
219219
error_redirect_uri=error_redirect_uri,
220220
success_redirect_uri=success_redirect_uri,

src/pipedream/tokens/raw_client.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def create(
2626
self,
2727
*,
2828
external_user_id: str,
29-
project_id: str,
29+
create_token_request_project_id: str,
3030
allowed_origins: typing.Optional[typing.Sequence[str]] = OMIT,
3131
error_redirect_uri: typing.Optional[str] = OMIT,
3232
success_redirect_uri: typing.Optional[str] = OMIT,
@@ -39,7 +39,7 @@ def create(
3939
external_user_id : str
4040
Your end user ID, for whom you're creating the token
4141
42-
project_id : str
42+
create_token_request_project_id : str
4343
The ID of the project
4444
4545
allowed_origins : typing.Optional[typing.Sequence[str]]
@@ -63,13 +63,13 @@ def create(
6363
connect token created
6464
"""
6565
_response = self._client_wrapper.httpx_client.request(
66-
"v1/connect/tokens",
66+
f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/tokens",
6767
method="POST",
6868
json={
6969
"allowed_origins": allowed_origins,
7070
"error_redirect_uri": error_redirect_uri,
7171
"external_user_id": external_user_id,
72-
"project_id": project_id,
72+
"project_id": create_token_request_project_id,
7373
"success_redirect_uri": success_redirect_uri,
7474
"webhook_uri": webhook_uri,
7575
},
@@ -117,7 +117,7 @@ def validate(
117117
connect token validated
118118
"""
119119
_response = self._client_wrapper.httpx_client.request(
120-
f"v1/connect/tokens/{jsonable_encoder(ctok)}/validate",
120+
f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/tokens/{jsonable_encoder(ctok)}/validate",
121121
method="GET",
122122
params={
123123
"params": convert_and_respect_annotation_metadata(
@@ -150,7 +150,7 @@ async def create(
150150
self,
151151
*,
152152
external_user_id: str,
153-
project_id: str,
153+
create_token_request_project_id: str,
154154
allowed_origins: typing.Optional[typing.Sequence[str]] = OMIT,
155155
error_redirect_uri: typing.Optional[str] = OMIT,
156156
success_redirect_uri: typing.Optional[str] = OMIT,
@@ -163,7 +163,7 @@ async def create(
163163
external_user_id : str
164164
Your end user ID, for whom you're creating the token
165165
166-
project_id : str
166+
create_token_request_project_id : str
167167
The ID of the project
168168
169169
allowed_origins : typing.Optional[typing.Sequence[str]]
@@ -187,13 +187,13 @@ async def create(
187187
connect token created
188188
"""
189189
_response = await self._client_wrapper.httpx_client.request(
190-
"v1/connect/tokens",
190+
f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/tokens",
191191
method="POST",
192192
json={
193193
"allowed_origins": allowed_origins,
194194
"error_redirect_uri": error_redirect_uri,
195195
"external_user_id": external_user_id,
196-
"project_id": project_id,
196+
"project_id": create_token_request_project_id,
197197
"success_redirect_uri": success_redirect_uri,
198198
"webhook_uri": webhook_uri,
199199
},
@@ -241,7 +241,7 @@ async def validate(
241241
connect token validated
242242
"""
243243
_response = await self._client_wrapper.httpx_client.request(
244-
f"v1/connect/tokens/{jsonable_encoder(ctok)}/validate",
244+
f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/tokens/{jsonable_encoder(ctok)}/validate",
245245
method="GET",
246246
params={
247247
"params": convert_and_respect_annotation_metadata(

src/pipedream/types/connect_token_create_opts.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ class ConnectTokenCreateOpts(UniversalBaseModel):
1616
Your end user ID, for whom you're creating the token
1717
"""
1818

19-
project_id: str = pydantic.Field()
20-
"""
21-
The ID of the project
22-
"""
23-
2419
allowed_origins: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
2520
"""
2621
List of allowed origins for CORS

0 commit comments

Comments
 (0)