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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "pipedream"

[tool.poetry]
name = "pipedream"
version = "1.0.8"
version = "1.0.9"
description = ""
readme = "README.md"
authors = []
Expand Down
31 changes: 18 additions & 13 deletions src/pipedream/actions/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from ..core.request_options import RequestOptions
from ..types.component import Component
from ..types.configure_prop_response import ConfigurePropResponse
from ..types.configured_props import ConfiguredProps
from ..types.reload_props_response import ReloadPropsResponse
from ..types.run_action_opts_stash_id import RunActionOptsStashId
from ..types.run_action_response import RunActionResponse
Expand Down Expand Up @@ -132,7 +131,7 @@ def configure_prop(
external_user_id: str,
prop_name: str,
blocking: typing.Optional[bool] = OMIT,
configured_props: typing.Optional[ConfiguredProps] = OMIT,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
page: typing.Optional[float] = OMIT,
prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
Expand All @@ -156,7 +155,8 @@ def configure_prop(
blocking : typing.Optional[bool]
Whether this operation should block until completion

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

dynamic_props_id : typing.Optional[str]
The ID for dynamic props
Expand Down Expand Up @@ -214,7 +214,7 @@ def reload_props(
id: str,
external_user_id: str,
blocking: typing.Optional[bool] = OMIT,
configured_props: typing.Optional[ConfiguredProps] = OMIT,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> ReloadPropsResponse:
Expand All @@ -232,7 +232,8 @@ def reload_props(
blocking : typing.Optional[bool]
Whether this operation should block until completion

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

dynamic_props_id : typing.Optional[str]
The ID for dynamic props
Expand Down Expand Up @@ -275,7 +276,7 @@ def run(
*,
id: str,
external_user_id: str,
configured_props: typing.Optional[ConfiguredProps] = OMIT,
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,
request_options: typing.Optional[RequestOptions] = None,
Expand All @@ -291,7 +292,8 @@ def run(
external_user_id : str
The external user ID

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

dynamic_props_id : typing.Optional[str]
The ID for dynamic props
Expand Down Expand Up @@ -466,7 +468,7 @@ async def configure_prop(
external_user_id: str,
prop_name: str,
blocking: typing.Optional[bool] = OMIT,
configured_props: typing.Optional[ConfiguredProps] = OMIT,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
page: typing.Optional[float] = OMIT,
prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
Expand All @@ -490,7 +492,8 @@ async def configure_prop(
blocking : typing.Optional[bool]
Whether this operation should block until completion

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

dynamic_props_id : typing.Optional[str]
The ID for dynamic props
Expand Down Expand Up @@ -556,7 +559,7 @@ async def reload_props(
id: str,
external_user_id: str,
blocking: typing.Optional[bool] = OMIT,
configured_props: typing.Optional[ConfiguredProps] = OMIT,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> ReloadPropsResponse:
Expand All @@ -574,7 +577,8 @@ async def reload_props(
blocking : typing.Optional[bool]
Whether this operation should block until completion

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

dynamic_props_id : typing.Optional[str]
The ID for dynamic props
Expand Down Expand Up @@ -625,7 +629,7 @@ async def run(
*,
id: str,
external_user_id: str,
configured_props: typing.Optional[ConfiguredProps] = OMIT,
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,
request_options: typing.Optional[RequestOptions] = None,
Expand All @@ -641,7 +645,8 @@ async def run(
external_user_id : str
The external user ID

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

dynamic_props_id : typing.Optional[str]
The ID for dynamic props
Expand Down
55 changes: 24 additions & 31 deletions src/pipedream/actions/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from ..errors.too_many_requests_error import TooManyRequestsError
from ..types.component import Component
from ..types.configure_prop_response import ConfigurePropResponse
from ..types.configured_props import ConfiguredProps
from ..types.get_component_response import GetComponentResponse
from ..types.get_components_response import GetComponentsResponse
from ..types.reload_props_response import ReloadPropsResponse
Expand Down Expand Up @@ -179,7 +178,7 @@ def configure_prop(
external_user_id: str,
prop_name: str,
blocking: typing.Optional[bool] = OMIT,
configured_props: typing.Optional[ConfiguredProps] = OMIT,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
page: typing.Optional[float] = OMIT,
prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
Expand All @@ -203,7 +202,8 @@ def configure_prop(
blocking : typing.Optional[bool]
Whether this operation should block until completion

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

dynamic_props_id : typing.Optional[str]
The ID for dynamic props
Expand Down Expand Up @@ -233,9 +233,7 @@ def configure_prop(
"external_user_id": external_user_id,
"prop_name": prop_name,
"blocking": blocking,
"configured_props": convert_and_respect_annotation_metadata(
object_=configured_props, annotation=ConfiguredProps, direction="write"
),
"configured_props": configured_props,
"dynamic_props_id": dynamic_props_id,
"page": page,
"prev_context": prev_context,
Expand Down Expand Up @@ -279,7 +277,7 @@ def reload_props(
id: str,
external_user_id: str,
blocking: typing.Optional[bool] = OMIT,
configured_props: typing.Optional[ConfiguredProps] = OMIT,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[ReloadPropsResponse]:
Expand All @@ -297,7 +295,8 @@ def reload_props(
blocking : typing.Optional[bool]
Whether this operation should block until completion

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

dynamic_props_id : typing.Optional[str]
The ID for dynamic props
Expand All @@ -317,9 +316,7 @@ def reload_props(
"id": id,
"external_user_id": external_user_id,
"blocking": blocking,
"configured_props": convert_and_respect_annotation_metadata(
object_=configured_props, annotation=ConfiguredProps, direction="write"
),
"configured_props": configured_props,
"dynamic_props_id": dynamic_props_id,
},
headers={
Expand Down Expand Up @@ -359,7 +356,7 @@ def run(
*,
id: str,
external_user_id: str,
configured_props: typing.Optional[ConfiguredProps] = OMIT,
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,
request_options: typing.Optional[RequestOptions] = None,
Expand All @@ -375,7 +372,8 @@ def run(
external_user_id : str
The external user ID

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

dynamic_props_id : typing.Optional[str]
The ID for dynamic props
Expand All @@ -396,9 +394,7 @@ def run(
json={
"id": id,
"external_user_id": external_user_id,
"configured_props": convert_and_respect_annotation_metadata(
object_=configured_props, annotation=ConfiguredProps, direction="write"
),
"configured_props": configured_props,
"dynamic_props_id": dynamic_props_id,
"stash_id": convert_and_respect_annotation_metadata(
object_=stash_id, annotation=RunActionOptsStashId, direction="write"
Expand Down Expand Up @@ -594,7 +590,7 @@ async def configure_prop(
external_user_id: str,
prop_name: str,
blocking: typing.Optional[bool] = OMIT,
configured_props: typing.Optional[ConfiguredProps] = OMIT,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
page: typing.Optional[float] = OMIT,
prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
Expand All @@ -618,7 +614,8 @@ async def configure_prop(
blocking : typing.Optional[bool]
Whether this operation should block until completion

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

dynamic_props_id : typing.Optional[str]
The ID for dynamic props
Expand Down Expand Up @@ -648,9 +645,7 @@ async def configure_prop(
"external_user_id": external_user_id,
"prop_name": prop_name,
"blocking": blocking,
"configured_props": convert_and_respect_annotation_metadata(
object_=configured_props, annotation=ConfiguredProps, direction="write"
),
"configured_props": configured_props,
"dynamic_props_id": dynamic_props_id,
"page": page,
"prev_context": prev_context,
Expand Down Expand Up @@ -694,7 +689,7 @@ async def reload_props(
id: str,
external_user_id: str,
blocking: typing.Optional[bool] = OMIT,
configured_props: typing.Optional[ConfiguredProps] = OMIT,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[ReloadPropsResponse]:
Expand All @@ -712,7 +707,8 @@ async def reload_props(
blocking : typing.Optional[bool]
Whether this operation should block until completion

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

dynamic_props_id : typing.Optional[str]
The ID for dynamic props
Expand All @@ -732,9 +728,7 @@ async def reload_props(
"id": id,
"external_user_id": external_user_id,
"blocking": blocking,
"configured_props": convert_and_respect_annotation_metadata(
object_=configured_props, annotation=ConfiguredProps, direction="write"
),
"configured_props": configured_props,
"dynamic_props_id": dynamic_props_id,
},
headers={
Expand Down Expand Up @@ -774,7 +768,7 @@ async def run(
*,
id: str,
external_user_id: str,
configured_props: typing.Optional[ConfiguredProps] = OMIT,
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,
request_options: typing.Optional[RequestOptions] = None,
Expand All @@ -790,7 +784,8 @@ async def run(
external_user_id : str
The external user ID

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

dynamic_props_id : typing.Optional[str]
The ID for dynamic props
Expand All @@ -811,9 +806,7 @@ async def run(
json={
"id": id,
"external_user_id": external_user_id,
"configured_props": convert_and_respect_annotation_metadata(
object_=configured_props, annotation=ConfiguredProps, direction="write"
),
"configured_props": configured_props,
"dynamic_props_id": dynamic_props_id,
"stash_id": convert_and_respect_annotation_metadata(
object_=stash_id, annotation=RunActionOptsStashId, direction="write"
Expand Down
2 changes: 1 addition & 1 deletion src/pipedream/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import typing

import httpx
from .types.project_environment import ProjectEnvironment
from ._.types.project_environment import ProjectEnvironment
from .core.api_error import ApiError
from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
from .core.oauth_token_provider import OAuthTokenProvider
Expand Down
Loading
Loading