Skip to content
Merged
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
35 changes: 32 additions & 3 deletions src/pipedream/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,29 @@
Component,
ComponentStash,
ConfigurableProp,
ConfigurablePropAirtableBaseId,
ConfigurablePropAirtableFieldId,
ConfigurablePropAirtableTableId,
ConfigurablePropAirtableViewId,
ConfigurablePropAlert,
ConfigurablePropAlertType,
ConfigurablePropAny,
ConfigurablePropApp,
ConfigurablePropApphook,
ConfigurablePropBoolean,
ConfigurablePropDb,
ConfigurablePropDiscordChannelArray,
ConfigurablePropDiscordChannel,
ConfigurablePropDiscord,
ConfigurablePropHttp,
ConfigurablePropIntegerArray,
ConfigurablePropInteger,
ConfigurablePropObject,
ConfigurablePropSqlAuth,
ConfigurablePropSql,
ConfigurablePropString,
ConfigurablePropStringArray,
ConfigurablePropTimer,
ConfigurePropOpts,
ConfigurePropResponse,
ConnectToken,
Expand Down Expand Up @@ -58,7 +71,8 @@
RunActionOptsStashId,
StashId,
StartConnectOpts,
ValidateTokenParams,
TimerCron,
TimerInterval,
ValidateTokenResponse,
)
from . import (
Expand Down Expand Up @@ -94,16 +108,29 @@
"Component",
"ComponentStash",
"ConfigurableProp",
"ConfigurablePropAirtableBaseId",
"ConfigurablePropAirtableFieldId",
"ConfigurablePropAirtableTableId",
"ConfigurablePropAirtableViewId",
"ConfigurablePropAlert",
"ConfigurablePropAlertType",
"ConfigurablePropAny",
"ConfigurablePropApp",
"ConfigurablePropApphook",
"ConfigurablePropBoolean",
"ConfigurablePropDb",
"ConfigurablePropDiscordChannelArray",
"ConfigurablePropDiscordChannel",
"ConfigurablePropDiscord",
"ConfigurablePropHttp",
"ConfigurablePropIntegerArray",
"ConfigurablePropInteger",
"ConfigurablePropObject",
"ConfigurablePropString",
"ConfigurablePropSqlAuth",
"ConfigurablePropSql",
"ConfigurablePropStringArray",
"ConfigurablePropString",
"ConfigurablePropTimer",
"ConfigurePropOpts",
"ConfigurePropResponse",
"ConnectToken",
Expand Down Expand Up @@ -134,6 +161,7 @@
"ProjectEnvironment",
"ProjectInfoResponse",
"ProjectInfoResponseApp",
"ProjectInfoResponse",
"PropOption",
"ProxyResponse",
"ReloadPropsOpts",
Expand All @@ -142,7 +170,8 @@
"RunActionOptsStashId",
"StashId",
"StartConnectOpts",
"ValidateTokenParams",
"TimerCron",
"TimerInterval",
"ValidateTokenResponse",
"__version__",
"accounts",
Expand Down
48 changes: 12 additions & 36 deletions src/pipedream/actions/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,10 @@ def configure_prop(
id: str,
external_user_id: str,
prop_name: str,
async_handle: typing.Optional[str] = None,
blocking: typing.Optional[bool] = OMIT,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
configure_prop_opts_async_handle: typing.Optional[str] = OMIT,
async_handle: typing.Optional[str] = OMIT,
page: typing.Optional[float] = OMIT,
prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
query: typing.Optional[str] = OMIT,
Expand All @@ -148,8 +147,6 @@ def configure_prop(
prop_name : str
The name of the prop to configure

async_handle : typing.Optional[str]

blocking : typing.Optional[bool]
Whether this operation should block until completion

Expand All @@ -159,7 +156,7 @@ def configure_prop(
dynamic_props_id : typing.Optional[str]
The ID for dynamic props

configure_prop_opts_async_handle : typing.Optional[str]
async_handle : typing.Optional[str]
Handle for async operations

page : typing.Optional[float]
Expand Down Expand Up @@ -199,11 +196,10 @@ def configure_prop(
id=id,
external_user_id=external_user_id,
prop_name=prop_name,
async_handle=async_handle,
blocking=blocking,
configured_props=configured_props,
dynamic_props_id=dynamic_props_id,
configure_prop_opts_async_handle=configure_prop_opts_async_handle,
async_handle=async_handle,
page=page,
prev_context=prev_context,
query=query,
Expand All @@ -216,11 +212,10 @@ def reload_props(
*,
id: str,
external_user_id: str,
async_handle: typing.Optional[str] = None,
blocking: typing.Optional[bool] = OMIT,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
reload_props_opts_async_handle: typing.Optional[str] = OMIT,
async_handle: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> ReloadPropsResponse:
"""
Expand All @@ -232,8 +227,6 @@ def reload_props(
external_user_id : str
The external user ID

async_handle : typing.Optional[str]

blocking : typing.Optional[bool]
Whether this operation should block until completion

Expand All @@ -243,7 +236,7 @@ def reload_props(
dynamic_props_id : typing.Optional[str]
The ID for dynamic props

reload_props_opts_async_handle : typing.Optional[str]
async_handle : typing.Optional[str]
Handle for async operations

request_options : typing.Optional[RequestOptions]
Expand Down Expand Up @@ -272,11 +265,10 @@ def reload_props(
_response = self._raw_client.reload_props(
id=id,
external_user_id=external_user_id,
async_handle=async_handle,
blocking=blocking,
configured_props=configured_props,
dynamic_props_id=dynamic_props_id,
reload_props_opts_async_handle=reload_props_opts_async_handle,
async_handle=async_handle,
request_options=request_options,
)
return _response.data
Expand All @@ -286,7 +278,6 @@ def run(
*,
id: str,
external_user_id: str,
async_handle: typing.Optional[str] = None,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
stash_id: typing.Optional[RunActionOptsStashId] = OMIT,
Expand All @@ -301,8 +292,6 @@ def run(
external_user_id : str
The external user ID

async_handle : typing.Optional[str]

configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
The configured properties for the action

Expand Down Expand Up @@ -337,7 +326,6 @@ def run(
_response = self._raw_client.run(
id=id,
external_user_id=external_user_id,
async_handle=async_handle,
configured_props=configured_props,
dynamic_props_id=dynamic_props_id,
stash_id=stash_id,
Expand Down Expand Up @@ -475,11 +463,10 @@ async def configure_prop(
id: str,
external_user_id: str,
prop_name: str,
async_handle: typing.Optional[str] = None,
blocking: typing.Optional[bool] = OMIT,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
configure_prop_opts_async_handle: typing.Optional[str] = OMIT,
async_handle: typing.Optional[str] = OMIT,
page: typing.Optional[float] = OMIT,
prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
query: typing.Optional[str] = OMIT,
Expand All @@ -497,8 +484,6 @@ async def configure_prop(
prop_name : str
The name of the prop to configure

async_handle : typing.Optional[str]

blocking : typing.Optional[bool]
Whether this operation should block until completion

Expand All @@ -508,7 +493,7 @@ async def configure_prop(
dynamic_props_id : typing.Optional[str]
The ID for dynamic props

configure_prop_opts_async_handle : typing.Optional[str]
async_handle : typing.Optional[str]
Handle for async operations

page : typing.Optional[float]
Expand Down Expand Up @@ -556,11 +541,10 @@ async def main() -> None:
id=id,
external_user_id=external_user_id,
prop_name=prop_name,
async_handle=async_handle,
blocking=blocking,
configured_props=configured_props,
dynamic_props_id=dynamic_props_id,
configure_prop_opts_async_handle=configure_prop_opts_async_handle,
async_handle=async_handle,
page=page,
prev_context=prev_context,
query=query,
Expand All @@ -573,11 +557,10 @@ async def reload_props(
*,
id: str,
external_user_id: str,
async_handle: typing.Optional[str] = None,
blocking: typing.Optional[bool] = OMIT,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
reload_props_opts_async_handle: typing.Optional[str] = OMIT,
async_handle: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> ReloadPropsResponse:
"""
Expand All @@ -589,8 +572,6 @@ async def reload_props(
external_user_id : str
The external user ID

async_handle : typing.Optional[str]

blocking : typing.Optional[bool]
Whether this operation should block until completion

Expand All @@ -600,7 +581,7 @@ async def reload_props(
dynamic_props_id : typing.Optional[str]
The ID for dynamic props

reload_props_opts_async_handle : typing.Optional[str]
async_handle : typing.Optional[str]
Handle for async operations

request_options : typing.Optional[RequestOptions]
Expand Down Expand Up @@ -637,11 +618,10 @@ async def main() -> None:
_response = await self._raw_client.reload_props(
id=id,
external_user_id=external_user_id,
async_handle=async_handle,
blocking=blocking,
configured_props=configured_props,
dynamic_props_id=dynamic_props_id,
reload_props_opts_async_handle=reload_props_opts_async_handle,
async_handle=async_handle,
request_options=request_options,
)
return _response.data
Expand All @@ -651,7 +631,6 @@ async def run(
*,
id: str,
external_user_id: str,
async_handle: typing.Optional[str] = None,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
stash_id: typing.Optional[RunActionOptsStashId] = OMIT,
Expand All @@ -666,8 +645,6 @@ async def run(
external_user_id : str
The external user ID

async_handle : typing.Optional[str]

configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
The configured properties for the action

Expand Down Expand Up @@ -710,7 +687,6 @@ async def main() -> None:
_response = await self._raw_client.run(
id=id,
external_user_id=external_user_id,
async_handle=async_handle,
configured_props=configured_props,
dynamic_props_id=dynamic_props_id,
stash_id=stash_id,
Expand Down
Loading