Skip to content
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
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"exported_filename": "pipedream.py"
}
},
"originGitCommit": "4ec89179f0cd7c09cc536f40a9c42a089d9cd425",
"originGitCommit": "55f4ed66327cc60c86a1edef9596d71673752c85",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"ciProvider": "github",
"sdkVersion": "2.1.20"
"sdkVersion": "2.1.21"
}
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "pipedream"
version = "2.1.20"
version = "2.1.21"
description = ""
readme = "README.md"
authors = []
Expand Down
4 changes: 2 additions & 2 deletions src/pipedream/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ def get_headers(self) -> typing.Dict[str, str]:
import platform

headers: typing.Dict[str, str] = {
"User-Agent": "pipedream/2.1.20",
"User-Agent": "pipedream/2.1.21",
"X-Fern-Language": "Python",
"X-Fern-Runtime": f"python/{platform.python_version()}",
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
"X-Fern-SDK-Name": "pipedream",
"X-Fern-SDK-Version": "2.1.20",
"X-Fern-SDK-Version": "2.1.21",
**(self.get_custom_headers() or {}),
}
if self._project_environment is not None:
Expand Down
32 changes: 14 additions & 18 deletions src/pipedream/oauth_apps/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def create(
self,
*,
app: str,
client_id: str,
client_secret: str,
client_id: typing.Optional[str] = OMIT,
client_secret: typing.Optional[str] = OMIT,
name: typing.Optional[str] = OMIT,
description: typing.Optional[str] = OMIT,
scopes: typing.Optional[typing.Sequence[str]] = OMIT,
Expand All @@ -112,11 +112,11 @@ def create(
app : str
The app's ID or name slug. The app must have custom OAuth clients enabled.

client_id : str
The OAuth client ID registered with the upstream provider
client_id : typing.Optional[str]
The OAuth client ID registered with the upstream provider. Optional: providers that only issue credentials once they have a callback URL can be registered without one, and the client cannot connect accounts until it is set.

client_secret : str
The OAuth client secret. Write-only; never returned in responses.
client_secret : typing.Optional[str]
The OAuth client secret. Optional, like the client ID. Write-only; never returned in responses.

name : typing.Optional[str]
Display name of the OAuth client
Expand Down Expand Up @@ -149,8 +149,6 @@ def create(
)
client.oauth_apps.create(
app="app",
client_id="client_id",
client_secret="client_secret",
)
"""
_response = self._raw_client.create(
Expand Down Expand Up @@ -225,7 +223,7 @@ def update(
Description of the OAuth client

client_id : typing.Optional[str]
The OAuth client ID registered with the upstream provider
The OAuth client ID registered with the upstream provider. Blank values are ignored and the existing client ID is kept.

client_secret : typing.Optional[str]
The OAuth client secret. Write-only; blank values are ignored and the existing secret is kept.
Expand Down Expand Up @@ -394,8 +392,8 @@ async def create(
self,
*,
app: str,
client_id: str,
client_secret: str,
client_id: typing.Optional[str] = OMIT,
client_secret: typing.Optional[str] = OMIT,
name: typing.Optional[str] = OMIT,
description: typing.Optional[str] = OMIT,
scopes: typing.Optional[typing.Sequence[str]] = OMIT,
Expand All @@ -410,11 +408,11 @@ async def create(
app : str
The app's ID or name slug. The app must have custom OAuth clients enabled.

client_id : str
The OAuth client ID registered with the upstream provider
client_id : typing.Optional[str]
The OAuth client ID registered with the upstream provider. Optional: providers that only issue credentials once they have a callback URL can be registered without one, and the client cannot connect accounts until it is set.

client_secret : str
The OAuth client secret. Write-only; never returned in responses.
client_secret : typing.Optional[str]
The OAuth client secret. Optional, like the client ID. Write-only; never returned in responses.

name : typing.Optional[str]
Display name of the OAuth client
Expand Down Expand Up @@ -452,8 +450,6 @@ async def create(
async def main() -> None:
await client.oauth_apps.create(
app="app",
client_id="client_id",
client_secret="client_secret",
)


Expand Down Expand Up @@ -539,7 +535,7 @@ async def update(
Description of the OAuth client

client_id : typing.Optional[str]
The OAuth client ID registered with the upstream provider
The OAuth client ID registered with the upstream provider. Blank values are ignored and the existing client ID is kept.

client_secret : typing.Optional[str]
The OAuth client secret. Write-only; blank values are ignored and the existing secret is kept.
Expand Down
28 changes: 14 additions & 14 deletions src/pipedream/oauth_apps/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ def create(
self,
*,
app: str,
client_id: str,
client_secret: str,
client_id: typing.Optional[str] = OMIT,
client_secret: typing.Optional[str] = OMIT,
name: typing.Optional[str] = OMIT,
description: typing.Optional[str] = OMIT,
scopes: typing.Optional[typing.Sequence[str]] = OMIT,
Expand All @@ -151,11 +151,11 @@ def create(
app : str
The app's ID or name slug. The app must have custom OAuth clients enabled.

client_id : str
The OAuth client ID registered with the upstream provider
client_id : typing.Optional[str]
The OAuth client ID registered with the upstream provider. Optional: providers that only issue credentials once they have a callback URL can be registered without one, and the client cannot connect accounts until it is set.

client_secret : str
The OAuth client secret. Write-only; never returned in responses.
client_secret : typing.Optional[str]
The OAuth client secret. Optional, like the client ID. Write-only; never returned in responses.

name : typing.Optional[str]
Display name of the OAuth client
Expand Down Expand Up @@ -315,7 +315,7 @@ def update(
Description of the OAuth client

client_id : typing.Optional[str]
The OAuth client ID registered with the upstream provider
The OAuth client ID registered with the upstream provider. Blank values are ignored and the existing client ID is kept.

client_secret : typing.Optional[str]
The OAuth client secret. Write-only; blank values are ignored and the existing secret is kept.
Expand Down Expand Up @@ -553,8 +553,8 @@ async def create(
self,
*,
app: str,
client_id: str,
client_secret: str,
client_id: typing.Optional[str] = OMIT,
client_secret: typing.Optional[str] = OMIT,
name: typing.Optional[str] = OMIT,
description: typing.Optional[str] = OMIT,
scopes: typing.Optional[typing.Sequence[str]] = OMIT,
Expand All @@ -569,11 +569,11 @@ async def create(
app : str
The app's ID or name slug. The app must have custom OAuth clients enabled.

client_id : str
The OAuth client ID registered with the upstream provider
client_id : typing.Optional[str]
The OAuth client ID registered with the upstream provider. Optional: providers that only issue credentials once they have a callback URL can be registered without one, and the client cannot connect accounts until it is set.

client_secret : str
The OAuth client secret. Write-only; never returned in responses.
client_secret : typing.Optional[str]
The OAuth client secret. Optional, like the client ID. Write-only; never returned in responses.

name : typing.Optional[str]
Display name of the OAuth client
Expand Down Expand Up @@ -735,7 +735,7 @@ async def update(
Description of the OAuth client

client_id : typing.Optional[str]
The OAuth client ID registered with the upstream provider
The OAuth client ID registered with the upstream provider. Blank values are ignored and the existing client ID is kept.

client_secret : typing.Optional[str]
The OAuth client secret. Write-only; blank values are ignored and the existing secret is kept.
Expand Down
4 changes: 2 additions & 2 deletions src/pipedream/types/oauth_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class OauthApp(UniversalBaseModel):
Hash ID for the OAuth client
"""

client_id: str = pydantic.Field()
client_id: typing.Optional[str] = pydantic.Field(default=None)
"""
The OAuth client ID registered with the upstream provider
The OAuth client ID registered with the upstream provider. Null for a client registered before its provider issued credentials.
"""

scopes: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
Expand Down
Loading