diff --git a/pyproject.toml b/pyproject.toml index 0a5b353..d3d3731 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "pipedream" [tool.poetry] name = "pipedream" -version = "1.0.4" +version = "1.0.5" description = "" readme = "README.md" authors = [] diff --git a/src/pipedream/actions/__init__.py b/src/pipedream/actions/__init__.py index ad121b7..5cde020 100644 --- a/src/pipedream/actions/__init__.py +++ b/src/pipedream/actions/__init__.py @@ -2,6 +2,3 @@ # isort: skip_file -from .types import RunActionOptsStashId - -__all__ = ["RunActionOptsStashId"] diff --git a/src/pipedream/actions/client.py b/src/pipedream/actions/client.py index 3a58b56..ad8161a 100644 --- a/src/pipedream/actions/client.py +++ b/src/pipedream/actions/client.py @@ -10,7 +10,6 @@ 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, ...) @@ -289,7 +288,6 @@ 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: """ @@ -309,9 +307,6 @@ 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. @@ -341,7 +336,6 @@ 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 @@ -655,7 +649,6 @@ 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: """ @@ -675,9 +668,6 @@ 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. @@ -715,7 +705,6 @@ 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 diff --git a/src/pipedream/actions/raw_client.py b/src/pipedream/actions/raw_client.py index 7360b4b..2465c23 100644 --- a/src/pipedream/actions/raw_client.py +++ b/src/pipedream/actions/raw_client.py @@ -10,14 +10,12 @@ 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, ...) @@ -324,7 +322,6 @@ 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]: """ @@ -344,9 +341,6 @@ 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. @@ -363,9 +357,6 @@ 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", @@ -694,7 +685,6 @@ 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]: """ @@ -714,9 +704,6 @@ 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. @@ -733,9 +720,6 @@ 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", diff --git a/src/pipedream/actions/types/__init__.py b/src/pipedream/actions/types/__init__.py deleted file mode 100644 index 52a8a91..0000000 --- a/src/pipedream/actions/types/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -# isort: skip_file - -from .run_action_opts_stash_id import RunActionOptsStashId - -__all__ = ["RunActionOptsStashId"] diff --git a/src/pipedream/actions/types/run_action_opts_stash_id.py b/src/pipedream/actions/types/run_action_opts_stash_id.py deleted file mode 100644 index ff5baae..0000000 --- a/src/pipedream/actions/types/run_action_opts_stash_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -RunActionOptsStashId = typing.Union[str, bool] diff --git a/src/pipedream/client.py b/src/pipedream/client.py index 24d3539..05f4186 100644 --- a/src/pipedream/client.py +++ b/src/pipedream/client.py @@ -4,7 +4,7 @@ import typing import httpx -from .types.project_environment import ProjectEnvironment +from ._.types.project_environment import ProjectEnvironment from .accounts.client import AccountsClient, AsyncAccountsClient from .actions.client import ActionsClient, AsyncActionsClient from .app_categories.client import AppCategoriesClient, AsyncAppCategoriesClient diff --git a/src/pipedream/core/client_wrapper.py b/src/pipedream/core/client_wrapper.py index 2f40735..ca0abd5 100644 --- a/src/pipedream/core/client_wrapper.py +++ b/src/pipedream/core/client_wrapper.py @@ -3,7 +3,7 @@ import typing import httpx -from ..types.project_environment import ProjectEnvironment +from .._.types.project_environment import ProjectEnvironment from .http_client import AsyncHttpClient, HttpClient @@ -27,10 +27,10 @@ def __init__( def get_headers(self) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { - "User-Agent": "pipedream/1.0.4", + "User-Agent": "pipedream/1.0.5", "X-Fern-Language": "Python", "X-Fern-SDK-Name": "pipedream", - "X-Fern-SDK-Version": "1.0.4", + "X-Fern-SDK-Version": "1.0.5", **(self.get_custom_headers() or {}), } if self._project_environment is not None: diff --git a/src/pipedream/types/configurable_prop.py b/src/pipedream/types/configurable_prop.py index 37d4394..df64dc0 100644 --- a/src/pipedream/types/configurable_prop.py +++ b/src/pipedream/types/configurable_prop.py @@ -13,7 +13,7 @@ class ConfigurableProp(UniversalBaseModel): A configuration or input field for a component. """ - name: str = pydantic.Field() + name: typing.Optional[str] = pydantic.Field(default=None) """ When building `configuredProps`, make sure to use this field as the key when setting the prop value """ diff --git a/src/pipedream/types/configurable_prop_alert.py b/src/pipedream/types/configurable_prop_alert.py index 0cd7b5d..c6d0c1b 100644 --- a/src/pipedream/types/configurable_prop_alert.py +++ b/src/pipedream/types/configurable_prop_alert.py @@ -23,7 +23,7 @@ class ConfigurablePropAlert(UniversalBaseModel): The content of the alert, which can include HTML or plain text. """ - name: str = pydantic.Field() + name: typing.Optional[str] = pydantic.Field(default=None) """ When building `configuredProps`, make sure to use this field as the key when setting the prop value """ diff --git a/src/pipedream/types/configurable_prop_any.py b/src/pipedream/types/configurable_prop_any.py index aed6dd5..88db652 100644 --- a/src/pipedream/types/configurable_prop_any.py +++ b/src/pipedream/types/configurable_prop_any.py @@ -10,7 +10,7 @@ class ConfigurablePropAny(UniversalBaseModel): type: typing.Optional[typing.Literal["any"]] = None - name: str = pydantic.Field() + name: typing.Optional[str] = pydantic.Field(default=None) """ When building `configuredProps`, make sure to use this field as the key when setting the prop value """ diff --git a/src/pipedream/types/configurable_prop_app.py b/src/pipedream/types/configurable_prop_app.py index 8c1d154..7053f8f 100644 --- a/src/pipedream/types/configurable_prop_app.py +++ b/src/pipedream/types/configurable_prop_app.py @@ -15,7 +15,7 @@ class ConfigurablePropApp(UniversalBaseModel): The name slug of the app, e.g. 'github', 'slack', etc. This is used to identify the app for which the account is being configured. """ - name: str = pydantic.Field() + name: typing.Optional[str] = pydantic.Field(default=None) """ When building `configuredProps`, make sure to use this field as the key when setting the prop value """ diff --git a/src/pipedream/types/configurable_prop_boolean.py b/src/pipedream/types/configurable_prop_boolean.py index eda5c42..5209bea 100644 --- a/src/pipedream/types/configurable_prop_boolean.py +++ b/src/pipedream/types/configurable_prop_boolean.py @@ -10,7 +10,7 @@ class ConfigurablePropBoolean(UniversalBaseModel): type: typing.Optional[typing.Literal["boolean"]] = None - name: str = pydantic.Field() + name: typing.Optional[str] = pydantic.Field(default=None) """ When building `configuredProps`, make sure to use this field as the key when setting the prop value """ diff --git a/src/pipedream/types/configurable_prop_discord.py b/src/pipedream/types/configurable_prop_discord.py index a1a8fb2..2a93554 100644 --- a/src/pipedream/types/configurable_prop_discord.py +++ b/src/pipedream/types/configurable_prop_discord.py @@ -10,7 +10,7 @@ class ConfigurablePropDiscord(UniversalBaseModel): type: typing.Optional[typing.Literal["$.discord.channel"]] = None - name: str = pydantic.Field() + name: typing.Optional[str] = pydantic.Field(default=None) """ When building `configuredProps`, make sure to use this field as the key when setting the prop value """ diff --git a/src/pipedream/types/configurable_prop_integer.py b/src/pipedream/types/configurable_prop_integer.py index e7caf23..ed4d01c 100644 --- a/src/pipedream/types/configurable_prop_integer.py +++ b/src/pipedream/types/configurable_prop_integer.py @@ -20,7 +20,7 @@ class ConfigurablePropInteger(UniversalBaseModel): The maximum value for this integer prop. """ - name: str = pydantic.Field() + name: typing.Optional[str] = pydantic.Field(default=None) """ When building `configuredProps`, make sure to use this field as the key when setting the prop value """ diff --git a/src/pipedream/types/configurable_prop_object.py b/src/pipedream/types/configurable_prop_object.py index 0bc4e66..f77c16b 100644 --- a/src/pipedream/types/configurable_prop_object.py +++ b/src/pipedream/types/configurable_prop_object.py @@ -10,7 +10,7 @@ class ConfigurablePropObject(UniversalBaseModel): type: typing.Optional[typing.Literal["object"]] = None - name: str = pydantic.Field() + name: typing.Optional[str] = pydantic.Field(default=None) """ When building `configuredProps`, make sure to use this field as the key when setting the prop value """ diff --git a/src/pipedream/types/configurable_prop_string.py b/src/pipedream/types/configurable_prop_string.py index 1b8fc0d..6f993ac 100644 --- a/src/pipedream/types/configurable_prop_string.py +++ b/src/pipedream/types/configurable_prop_string.py @@ -15,7 +15,7 @@ class ConfigurablePropString(UniversalBaseModel): If true, this prop is a secret and should not be displayed in plain text. """ - name: str = pydantic.Field() + name: typing.Optional[str] = pydantic.Field(default=None) """ When building `configuredProps`, make sure to use this field as the key when setting the prop value """ diff --git a/src/pipedream/types/configurable_prop_string_array.py b/src/pipedream/types/configurable_prop_string_array.py index 558ec33..1e74b7b 100644 --- a/src/pipedream/types/configurable_prop_string_array.py +++ b/src/pipedream/types/configurable_prop_string_array.py @@ -15,7 +15,7 @@ class ConfigurablePropStringArray(UniversalBaseModel): If true, this prop is a secret and should not be displayed in plain text. """ - name: str = pydantic.Field() + name: typing.Optional[str] = pydantic.Field(default=None) """ When building `configuredProps`, make sure to use this field as the key when setting the prop value """