diff --git a/.fern/metadata.json b/.fern/metadata.json index 5900364..ff479b5 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -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" } \ No newline at end of file diff --git a/.fern/replay.lock b/.fern/replay.lock index afe7d89..fcc10ed 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -18,7 +18,13 @@ generations: cli_version: unknown generator_versions: fernapi/fern-python-sdk: 5.12.1 -current_generation: 591b532d25d147f63c6768aaedb69c3290fa97d5 + - commit_sha: 47ff8d78333017040427a7a2d2a50170db59bcdf + tree_hash: 17c12199b2e77e3ae4e3893b4e5bedc7299baad7 + timestamp: 2026-09-03T18:08:10.115Z + cli_version: unknown + generator_versions: + fernapi/fern-python-sdk: 5.12.1 +current_generation: 47ff8d78333017040427a7a2d2a50170db59bcdf patches: - id: patch-995f4ec5 content_hash: sha256:af83f8c7da86d9a436fbab2f81692b3361c9eafaced927f341aabad109f5cd6d diff --git a/poetry.lock b/poetry.lock index 90c82c6..c8bde6f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -181,19 +181,19 @@ files = [ [[package]] name = "anyio" -version = "4.14.2" +version = "4.15.0" description = "High-level concurrency and networking framework on top of asyncio or Trio" optional = false python-versions = ">=3.10" files = [ - {file = "anyio-4.14.2-py3-none-any.whl", hash = "sha256:9f505dda5ac9f0c8309b5e8bd445a8c2bf7246f3ce950121e45ea15bc41d1494"}, - {file = "anyio-4.14.2.tar.gz", hash = "sha256:cfa139f3ed1a23ee8f88a145ddb5ac7605b8bbfd8592baacd7ce3d8bb4313c7f"}, + {file = "anyio-4.15.0-py3-none-any.whl", hash = "sha256:7ecd9937369ffce8bba0b5ccb9b3a9507b101b0ed50256aecfbab27e6c2acb99"}, + {file = "anyio-4.15.0.tar.gz", hash = "sha256:b5c620ed540725e2579c31b17bb995b3bf02c9281c9cace04c7d186380bab85e"}, ] [package.dependencies] exceptiongroup = {version = ">=1.0.2", markers = "python_version < \"3.11\""} idna = ">=2.8" -typing_extensions = {version = ">=4.5", markers = "python_version < \"3.13\""} +typing_extensions = {version = ">=4.16.0", markers = "python_version < \"3.15\""} [package.extras] trio = ["trio (>=0.32.0)"] diff --git a/pyproject.toml b/pyproject.toml index dffbd81..d4ebfed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ dynamic = ["version"] [tool.poetry] name = "pipedream" -version = "2.1.20" +version = "2.1.21" description = "" readme = "README.md" authors = [] diff --git a/src/pipedream/core/client_wrapper.py b/src/pipedream/core/client_wrapper.py index ae305cf..610b086 100644 --- a/src/pipedream/core/client_wrapper.py +++ b/src/pipedream/core/client_wrapper.py @@ -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: diff --git a/src/pipedream/oauth_apps/client.py b/src/pipedream/oauth_apps/client.py index b448dab..b8c0364 100644 --- a/src/pipedream/oauth_apps/client.py +++ b/src/pipedream/oauth_apps/client.py @@ -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, @@ -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 @@ -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( @@ -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. @@ -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, @@ -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 @@ -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", ) @@ -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. diff --git a/src/pipedream/oauth_apps/raw_client.py b/src/pipedream/oauth_apps/raw_client.py index e30430e..7b68316 100644 --- a/src/pipedream/oauth_apps/raw_client.py +++ b/src/pipedream/oauth_apps/raw_client.py @@ -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, @@ -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 @@ -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. @@ -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, @@ -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 @@ -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. diff --git a/src/pipedream/types/oauth_app.py b/src/pipedream/types/oauth_app.py index 9e8c36a..cc8b07b 100644 --- a/src/pipedream/types/oauth_app.py +++ b/src/pipedream/types/oauth_app.py @@ -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)