Skip to content

Commit e7bc4d5

Browse files
SDK regeneration
1 parent 0ff0d74 commit e7bc4d5

File tree

15 files changed

+79
-269
lines changed

15 files changed

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

src/pipedream/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import typing
77

88
import httpx
9-
from .types.project_environment import ProjectEnvironment
9+
from ._.types.project_environment import ProjectEnvironment
1010
from .core.api_error import ApiError
1111
from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
1212
from .core.oauth_token_provider import OAuthTokenProvider

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

src/pipedream/core/http_sse/__init__.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/pipedream/core/http_sse/_api.py

Lines changed: 0 additions & 112 deletions
This file was deleted.

src/pipedream/core/http_sse/_decoders.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/pipedream/core/http_sse/_exceptions.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/pipedream/core/http_sse/_models.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/pipedream/oauth_tokens/client.py

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ def with_raw_response(self) -> RawOauthTokensClient:
2727
return self._raw_client
2828

2929
def create(
30-
self, *, client_id: str, client_secret: str, request_options: typing.Optional[RequestOptions] = None
30+
self,
31+
*,
32+
client_id: str,
33+
client_secret: str,
34+
scope: typing.Optional[str] = OMIT,
35+
request_options: typing.Optional[RequestOptions] = None,
3136
) -> CreateOAuthTokenResponse:
3237
"""
3338
Exchange OAuth credentials for an access token
@@ -38,6 +43,9 @@ def create(
3843
3944
client_secret : str
4045
46+
scope : typing.Optional[str]
47+
Optional space-separated scopes for the access token. Defaults to '*'.
48+
4149
request_options : typing.Optional[RequestOptions]
4250
Request-specific configuration.
4351
@@ -62,7 +70,7 @@ def create(
6270
)
6371
"""
6472
_response = self._raw_client.create(
65-
client_id=client_id, client_secret=client_secret, request_options=request_options
73+
client_id=client_id, client_secret=client_secret, scope=scope, request_options=request_options
6674
)
6775
return _response.data
6876

@@ -83,7 +91,12 @@ def with_raw_response(self) -> AsyncRawOauthTokensClient:
8391
return self._raw_client
8492

8593
async def create(
86-
self, *, client_id: str, client_secret: str, request_options: typing.Optional[RequestOptions] = None
94+
self,
95+
*,
96+
client_id: str,
97+
client_secret: str,
98+
scope: typing.Optional[str] = OMIT,
99+
request_options: typing.Optional[RequestOptions] = None,
87100
) -> CreateOAuthTokenResponse:
88101
"""
89102
Exchange OAuth credentials for an access token
@@ -94,6 +107,9 @@ async def create(
94107
95108
client_secret : str
96109
110+
scope : typing.Optional[str]
111+
Optional space-separated scopes for the access token. Defaults to '*'.
112+
97113
request_options : typing.Optional[RequestOptions]
98114
Request-specific configuration.
99115
@@ -126,6 +142,6 @@ async def main() -> None:
126142
asyncio.run(main())
127143
"""
128144
_response = await self._raw_client.create(
129-
client_id=client_id, client_secret=client_secret, request_options=request_options
145+
client_id=client_id, client_secret=client_secret, scope=scope, request_options=request_options
130146
)
131147
return _response.data

0 commit comments

Comments
 (0)