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
6 changes: 3 additions & 3 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 @@ -3,7 +3,7 @@ name = "pipedream"

[tool.poetry]
name = "pipedream"
version = "1.0.2"
version = "1.0.3"
description = ""
readme = "README.md"
authors = []
Expand Down
3 changes: 3 additions & 0 deletions src/pipedream/actions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

# isort: skip_file

from .types import RunActionOptsStashId

__all__ = ["RunActionOptsStashId"]
11 changes: 11 additions & 0 deletions src/pipedream/actions/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from ..types.reload_props_response import ReloadPropsResponse
from ..types.run_action_response import RunActionResponse
from .raw_client import AsyncRawActionsClient, RawActionsClient
from .types.run_action_opts_stash_id import RunActionOptsStashId

# this is used as the default value for optional parameters
OMIT = typing.cast(typing.Any, ...)
Expand Down Expand Up @@ -288,6 +289,7 @@ def run(
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,
request_options: typing.Optional[RequestOptions] = None,
) -> RunActionResponse:
"""
Expand All @@ -307,6 +309,9 @@ def run(
dynamic_props_id : typing.Optional[str]
The ID for dynamic props

stash_id : typing.Optional[RunActionOptsStashId]
The ID of the File Stash to use for syncing the action's /tmp directory

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

Expand Down Expand Up @@ -336,6 +341,7 @@ def run(
async_handle=async_handle,
configured_props=configured_props,
dynamic_props_id=dynamic_props_id,
stash_id=stash_id,
request_options=request_options,
)
return _response.data
Expand Down Expand Up @@ -649,6 +655,7 @@ async def run(
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,
request_options: typing.Optional[RequestOptions] = None,
) -> RunActionResponse:
"""
Expand All @@ -668,6 +675,9 @@ async def run(
dynamic_props_id : typing.Optional[str]
The ID for dynamic props

stash_id : typing.Optional[RunActionOptsStashId]
The ID of the File Stash to use for syncing the action's /tmp directory

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

Expand Down Expand Up @@ -705,6 +715,7 @@ async def main() -> None:
async_handle=async_handle,
configured_props=configured_props,
dynamic_props_id=dynamic_props_id,
stash_id=stash_id,
request_options=request_options,
)
return _response.data
16 changes: 16 additions & 0 deletions src/pipedream/actions/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
from ..core.pagination import AsyncPager, BaseHttpResponse, SyncPager
from ..core.pydantic_utilities import parse_obj_as
from ..core.request_options import RequestOptions
from ..core.serialization import convert_and_respect_annotation_metadata
from ..types.component import Component
from ..types.configure_prop_response import ConfigurePropResponse
from ..types.get_component_response import GetComponentResponse
from ..types.get_components_response import GetComponentsResponse
from ..types.reload_props_response import ReloadPropsResponse
from ..types.run_action_response import RunActionResponse
from .types.run_action_opts_stash_id import RunActionOptsStashId

# this is used as the default value for optional parameters
OMIT = typing.cast(typing.Any, ...)
Expand Down Expand Up @@ -322,6 +324,7 @@ def run(
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,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[RunActionResponse]:
"""
Expand All @@ -341,6 +344,9 @@ def run(
dynamic_props_id : typing.Optional[str]
The ID for dynamic props

stash_id : typing.Optional[RunActionOptsStashId]
The ID of the File Stash to use for syncing the action's /tmp directory

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

Expand All @@ -357,6 +363,9 @@ def run(
"external_user_id": external_user_id,
"configured_props": configured_props,
"dynamic_props_id": dynamic_props_id,
"stash_id": convert_and_respect_annotation_metadata(
object_=stash_id, annotation=RunActionOptsStashId, direction="write"
),
},
headers={
"content-type": "application/json",
Expand Down Expand Up @@ -685,6 +694,7 @@ async def run(
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,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[RunActionResponse]:
"""
Expand All @@ -704,6 +714,9 @@ async def run(
dynamic_props_id : typing.Optional[str]
The ID for dynamic props

stash_id : typing.Optional[RunActionOptsStashId]
The ID of the File Stash to use for syncing the action's /tmp directory

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

Expand All @@ -720,6 +733,9 @@ async def run(
"external_user_id": external_user_id,
"configured_props": configured_props,
"dynamic_props_id": dynamic_props_id,
"stash_id": convert_and_respect_annotation_metadata(
object_=stash_id, annotation=RunActionOptsStashId, direction="write"
),
},
headers={
"content-type": "application/json",
Expand Down
7 changes: 7 additions & 0 deletions src/pipedream/actions/types/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was auto-generated by Fern from our API Definition.

# isort: skip_file

from .run_action_opts_stash_id import RunActionOptsStashId

__all__ = ["RunActionOptsStashId"]
5 changes: 5 additions & 0 deletions src/pipedream/actions/types/run_action_opts_stash_id.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was auto-generated by Fern from our API Definition.

import typing

RunActionOptsStashId = typing.Union[str, bool]
4 changes: 2 additions & 2 deletions src/pipedream/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ def __init__(

def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"User-Agent": "pipedream/1.0.2",
"User-Agent": "pipedream/1.0.3",
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "pipedream",
"X-Fern-SDK-Version": "1.0.2",
"X-Fern-SDK-Version": "1.0.3",
**(self.get_custom_headers() or {}),
}
if self._project_environment is not None:
Expand Down