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
5 changes: 3 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"cliVersion": "3.5.0",
"generatorName": "fernapi/fern-python-sdk",
"generatorVersion": "4.45.0",
"generatorVersion": "4.54.4",
"generatorConfig": {
"client": {
"class_name": "Client",
"filename": "client.py",
"exported_class_name": "Pipedream",
"exported_filename": "pipedream.py"
}
}
},
"sdkVersion": "1.1.12"
}
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ from pipedream import Pipedream

client = Pipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client.actions.run(
id="id",
Expand All @@ -61,9 +58,6 @@ from pipedream import AsyncPipedream

client = AsyncPipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)


Expand Down Expand Up @@ -101,9 +95,6 @@ from pipedream import Pipedream

client = Pipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
response = client.apps.list(
after="after",
Expand Down Expand Up @@ -165,6 +156,7 @@ client = Pipedream(
)
response = client.actions.with_raw_response.run(...)
print(response.headers) # access the response headers
print(response.status_code) # access the response status code
print(response.data) # access the underlying object
pager = client.apps.list(...)
print(pager.response) # access the typed response for the first page
Expand Down
5 changes: 4 additions & 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 = "1.1.11"
version = "1.1.12"
description = ""
readme = "README.md"
authors = []
Expand All @@ -19,6 +19,9 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Operating System :: OS Independent",
"Operating System :: POSIX",
"Operating System :: MacOS",
Expand Down
40 changes: 10 additions & 30 deletions src/pipedream/accounts/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ def list(

client = Pipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
response = client.accounts.list(
external_user_id="external_user_id",
Expand Down Expand Up @@ -118,6 +115,7 @@ def create(
external_user_id: typing.Optional[str] = None,
oauth_app_id: typing.Optional[str] = None,
name: typing.Optional[str] = OMIT,
account_id: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> Account:
"""
Expand All @@ -142,6 +140,9 @@ def create(
name : typing.Optional[str]
Optional name for the account

account_id : typing.Optional[str]
An existing account ID to reconnect. When provided, the account's credentials are updated instead of creating a new account. Must belong to the same external user and project environment as the connect token, and match the app identified by app_slug.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand All @@ -156,9 +157,6 @@ def create(

client = Pipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client.accounts.create(
external_user_id="external_user_id",
Expand All @@ -175,6 +173,7 @@ def create(
external_user_id=external_user_id,
oauth_app_id=oauth_app_id,
name=name,
account_id=account_id,
request_options=request_options,
)
return _response.data
Expand Down Expand Up @@ -210,9 +209,6 @@ def retrieve(

client = Pipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client.accounts.retrieve(
account_id="account_id",
Expand Down Expand Up @@ -245,9 +241,6 @@ def delete(self, account_id: str, *, request_options: typing.Optional[RequestOpt

client = Pipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client.accounts.delete(
account_id="account_id",
Expand Down Expand Up @@ -277,9 +270,6 @@ def delete_by_app(self, app_id: str, *, request_options: typing.Optional[Request

client = Pipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client.accounts.delete_by_app(
app_id="app_id",
Expand Down Expand Up @@ -357,9 +347,6 @@ async def list(

client = AsyncPipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)


Expand Down Expand Up @@ -403,6 +390,7 @@ async def create(
external_user_id: typing.Optional[str] = None,
oauth_app_id: typing.Optional[str] = None,
name: typing.Optional[str] = OMIT,
account_id: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> Account:
"""
Expand All @@ -427,6 +415,9 @@ async def create(
name : typing.Optional[str]
Optional name for the account

account_id : typing.Optional[str]
An existing account ID to reconnect. When provided, the account's credentials are updated instead of creating a new account. Must belong to the same external user and project environment as the connect token, and match the app identified by app_slug.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand All @@ -443,9 +434,6 @@ async def create(

client = AsyncPipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)


Expand All @@ -468,6 +456,7 @@ async def main() -> None:
external_user_id=external_user_id,
oauth_app_id=oauth_app_id,
name=name,
account_id=account_id,
request_options=request_options,
)
return _response.data
Expand Down Expand Up @@ -505,9 +494,6 @@ async def retrieve(

client = AsyncPipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)


Expand Down Expand Up @@ -548,9 +534,6 @@ async def delete(self, account_id: str, *, request_options: typing.Optional[Requ

client = AsyncPipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)


Expand Down Expand Up @@ -588,9 +571,6 @@ async def delete_by_app(self, app_id: str, *, request_options: typing.Optional[R

client = AsyncPipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)


Expand Down
10 changes: 10 additions & 0 deletions src/pipedream/accounts/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def create(
external_user_id: typing.Optional[str] = None,
oauth_app_id: typing.Optional[str] = None,
name: typing.Optional[str] = OMIT,
account_id: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[Account]:
"""
Expand All @@ -156,6 +157,9 @@ def create(
name : typing.Optional[str]
Optional name for the account

account_id : typing.Optional[str]
An existing account ID to reconnect. When provided, the account's credentials are updated instead of creating a new account. Must belong to the same external user and project environment as the connect token, and match the app identified by app_slug.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand All @@ -176,6 +180,7 @@ def create(
"cfmap_json": cfmap_json,
"connect_token": connect_token,
"name": name,
"account_id": account_id,
},
headers={
"content-type": "application/json",
Expand Down Expand Up @@ -466,6 +471,7 @@ async def create(
external_user_id: typing.Optional[str] = None,
oauth_app_id: typing.Optional[str] = None,
name: typing.Optional[str] = OMIT,
account_id: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[Account]:
"""
Expand All @@ -490,6 +496,9 @@ async def create(
name : typing.Optional[str]
Optional name for the account

account_id : typing.Optional[str]
An existing account ID to reconnect. When provided, the account's credentials are updated instead of creating a new account. Must belong to the same external user and project environment as the connect token, and match the app identified by app_slug.

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand All @@ -510,6 +519,7 @@ async def create(
"cfmap_json": cfmap_json,
"connect_token": connect_token,
"name": name,
"account_id": account_id,
},
headers={
"content-type": "application/json",
Expand Down
30 changes: 0 additions & 30 deletions src/pipedream/actions/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ def list(

client = Pipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
response = client.actions.list(
after="after",
Expand Down Expand Up @@ -136,9 +133,6 @@ def retrieve(

client = Pipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client.actions.retrieve(
component_id="component_id",
Expand Down Expand Up @@ -211,9 +205,6 @@ def configure_prop(

client = Pipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client.actions.configure_prop(
id="id",
Expand Down Expand Up @@ -283,9 +274,6 @@ def reload_props(

client = Pipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client.actions.reload_props(
id="id",
Expand Down Expand Up @@ -349,9 +337,6 @@ def run(

client = Pipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client.actions.run(
id="id",
Expand Down Expand Up @@ -435,9 +420,6 @@ async def list(

client = AsyncPipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)


Expand Down Expand Up @@ -498,9 +480,6 @@ async def retrieve(

client = AsyncPipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)


Expand Down Expand Up @@ -581,9 +560,6 @@ async def configure_prop(

client = AsyncPipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)


Expand Down Expand Up @@ -661,9 +637,6 @@ async def reload_props(

client = AsyncPipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)


Expand Down Expand Up @@ -735,9 +708,6 @@ async def run(

client = AsyncPipedream(
project_id="YOUR_PROJECT_ID",
project_environment="YOUR_PROJECT_ENVIRONMENT",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)


Expand Down
Loading
Loading