diff --git a/src/pipedream/actions/client.py b/src/pipedream/actions/client.py index 0ae8ede..ad8161a 100644 --- a/src/pipedream/actions/client.py +++ b/src/pipedream/actions/client.py @@ -8,7 +8,6 @@ from ..types.component import Component from ..types.configure_prop_response import ConfigurePropResponse from ..types.reload_props_response import ReloadPropsResponse -from ..types.run_action_opts_stash_id import RunActionOptsStashId from ..types.run_action_response import RunActionResponse from .raw_client import AsyncRawActionsClient, RawActionsClient @@ -126,9 +125,11 @@ 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, page: typing.Optional[float] = OMIT, prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, query: typing.Optional[str] = OMIT, @@ -146,6 +147,8 @@ 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 @@ -155,6 +158,9 @@ def configure_prop( dynamic_props_id : typing.Optional[str] The ID for dynamic props + configure_prop_opts_async_handle : typing.Optional[str] + Handle for async operations + page : typing.Optional[float] Page number for paginated results @@ -192,9 +198,11 @@ 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, page=page, prev_context=prev_context, query=query, @@ -207,9 +215,11 @@ 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, request_options: typing.Optional[RequestOptions] = None, ) -> ReloadPropsResponse: """ @@ -221,6 +231,8 @@ 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 @@ -230,6 +242,9 @@ def reload_props( dynamic_props_id : typing.Optional[str] The ID for dynamic props + reload_props_opts_async_handle : typing.Optional[str] + Handle for async operations + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -256,9 +271,11 @@ 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, request_options=request_options, ) return _response.data @@ -268,9 +285,9 @@ 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, request_options: typing.Optional[RequestOptions] = None, ) -> RunActionResponse: """ @@ -282,14 +299,14 @@ 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 dynamic_props_id : typing.Optional[str] The ID for dynamic props - stash_id : typing.Optional[RunActionOptsStashId] - request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -316,9 +333,9 @@ 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, request_options=request_options, ) return _response.data @@ -453,9 +470,11 @@ 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, page: typing.Optional[float] = OMIT, prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, query: typing.Optional[str] = OMIT, @@ -473,6 +492,8 @@ 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 @@ -482,6 +503,9 @@ async def configure_prop( dynamic_props_id : typing.Optional[str] The ID for dynamic props + configure_prop_opts_async_handle : typing.Optional[str] + Handle for async operations + page : typing.Optional[float] Page number for paginated results @@ -527,9 +551,11 @@ 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, page=page, prev_context=prev_context, query=query, @@ -542,9 +568,11 @@ 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, request_options: typing.Optional[RequestOptions] = None, ) -> ReloadPropsResponse: """ @@ -556,6 +584,8 @@ 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 @@ -565,6 +595,9 @@ async def reload_props( dynamic_props_id : typing.Optional[str] The ID for dynamic props + reload_props_opts_async_handle : typing.Optional[str] + Handle for async operations + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -599,9 +632,11 @@ 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, request_options=request_options, ) return _response.data @@ -611,9 +646,9 @@ 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, request_options: typing.Optional[RequestOptions] = None, ) -> RunActionResponse: """ @@ -625,14 +660,14 @@ 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 dynamic_props_id : typing.Optional[str] The ID for dynamic props - stash_id : typing.Optional[RunActionOptsStashId] - request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -667,9 +702,9 @@ 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, request_options=request_options, ) return _response.data diff --git a/src/pipedream/actions/raw_client.py b/src/pipedream/actions/raw_client.py index e1ac042..2465c23 100644 --- a/src/pipedream/actions/raw_client.py +++ b/src/pipedream/actions/raw_client.py @@ -10,13 +10,11 @@ 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_opts_stash_id import RunActionOptsStashId from ..types.run_action_response import RunActionResponse # this is used as the default value for optional parameters @@ -150,9 +148,11 @@ 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, page: typing.Optional[float] = OMIT, prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, query: typing.Optional[str] = OMIT, @@ -170,6 +170,8 @@ 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 @@ -179,6 +181,9 @@ def configure_prop( dynamic_props_id : typing.Optional[str] The ID for dynamic props + configure_prop_opts_async_handle : typing.Optional[str] + Handle for async operations + page : typing.Optional[float] Page number for paginated results @@ -206,12 +211,14 @@ def configure_prop( "blocking": blocking, "configured_props": configured_props, "dynamic_props_id": dynamic_props_id, + "async_handle": async_handle, "page": page, "prev_context": prev_context, "query": query, }, headers={ "content-type": "application/json", + "x-async-handle": str(async_handle) if async_handle is not None else None, }, request_options=request_options, omit=OMIT, @@ -236,9 +243,11 @@ 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, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[ReloadPropsResponse]: """ @@ -250,6 +259,8 @@ 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 @@ -259,6 +270,9 @@ def reload_props( dynamic_props_id : typing.Optional[str] The ID for dynamic props + reload_props_opts_async_handle : typing.Optional[str] + Handle for async operations + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -276,9 +290,11 @@ def reload_props( "blocking": blocking, "configured_props": configured_props, "dynamic_props_id": dynamic_props_id, + "async_handle": async_handle, }, headers={ "content-type": "application/json", + "x-async-handle": str(async_handle) if async_handle is not None else None, }, request_options=request_options, omit=OMIT, @@ -303,9 +319,9 @@ 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, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[RunActionResponse]: """ @@ -317,14 +333,14 @@ 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 dynamic_props_id : typing.Optional[str] The ID for dynamic props - stash_id : typing.Optional[RunActionOptsStashId] - request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -341,12 +357,10 @@ 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", + "x-async-handle": str(async_handle) if async_handle is not None else None, }, request_options=request_options, omit=OMIT, @@ -497,9 +511,11 @@ 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, page: typing.Optional[float] = OMIT, prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, query: typing.Optional[str] = OMIT, @@ -517,6 +533,8 @@ 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 @@ -526,6 +544,9 @@ async def configure_prop( dynamic_props_id : typing.Optional[str] The ID for dynamic props + configure_prop_opts_async_handle : typing.Optional[str] + Handle for async operations + page : typing.Optional[float] Page number for paginated results @@ -553,12 +574,14 @@ async def configure_prop( "blocking": blocking, "configured_props": configured_props, "dynamic_props_id": dynamic_props_id, + "async_handle": async_handle, "page": page, "prev_context": prev_context, "query": query, }, headers={ "content-type": "application/json", + "x-async-handle": str(async_handle) if async_handle is not None else None, }, request_options=request_options, omit=OMIT, @@ -583,9 +606,11 @@ 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, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[ReloadPropsResponse]: """ @@ -597,6 +622,8 @@ 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 @@ -606,6 +633,9 @@ async def reload_props( dynamic_props_id : typing.Optional[str] The ID for dynamic props + reload_props_opts_async_handle : typing.Optional[str] + Handle for async operations + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -623,9 +653,11 @@ async def reload_props( "blocking": blocking, "configured_props": configured_props, "dynamic_props_id": dynamic_props_id, + "async_handle": async_handle, }, headers={ "content-type": "application/json", + "x-async-handle": str(async_handle) if async_handle is not None else None, }, request_options=request_options, omit=OMIT, @@ -650,9 +682,9 @@ 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, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[RunActionResponse]: """ @@ -664,14 +696,14 @@ 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 dynamic_props_id : typing.Optional[str] The ID for dynamic props - stash_id : typing.Optional[RunActionOptsStashId] - request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -688,12 +720,10 @@ 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", + "x-async-handle": str(async_handle) if async_handle is not None else None, }, request_options=request_options, omit=OMIT, 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/components/client.py b/src/pipedream/components/client.py index d2cb872..f7fcbca 100644 --- a/src/pipedream/components/client.py +++ b/src/pipedream/components/client.py @@ -124,9 +124,11 @@ 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, page: typing.Optional[float] = OMIT, prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, query: typing.Optional[str] = OMIT, @@ -144,6 +146,8 @@ 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 @@ -153,6 +157,9 @@ def configure_prop( dynamic_props_id : typing.Optional[str] The ID for dynamic props + configure_prop_opts_async_handle : typing.Optional[str] + Handle for async operations + page : typing.Optional[float] Page number for paginated results @@ -190,9 +197,11 @@ 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, page=page, prev_context=prev_context, query=query, @@ -205,9 +214,11 @@ 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, request_options: typing.Optional[RequestOptions] = None, ) -> ReloadPropsResponse: """ @@ -219,6 +230,8 @@ 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 @@ -228,6 +241,9 @@ def reload_props( dynamic_props_id : typing.Optional[str] The ID for dynamic props + reload_props_opts_async_handle : typing.Optional[str] + Handle for async operations + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -254,9 +270,11 @@ 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, request_options=request_options, ) return _response.data @@ -391,9 +409,11 @@ 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, page: typing.Optional[float] = OMIT, prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, query: typing.Optional[str] = OMIT, @@ -411,6 +431,8 @@ 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 @@ -420,6 +442,9 @@ async def configure_prop( dynamic_props_id : typing.Optional[str] The ID for dynamic props + configure_prop_opts_async_handle : typing.Optional[str] + Handle for async operations + page : typing.Optional[float] Page number for paginated results @@ -465,9 +490,11 @@ 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, page=page, prev_context=prev_context, query=query, @@ -480,9 +507,11 @@ 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, request_options: typing.Optional[RequestOptions] = None, ) -> ReloadPropsResponse: """ @@ -494,6 +523,8 @@ 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 @@ -503,6 +534,9 @@ async def reload_props( dynamic_props_id : typing.Optional[str] The ID for dynamic props + reload_props_opts_async_handle : typing.Optional[str] + Handle for async operations + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -537,9 +571,11 @@ 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, request_options=request_options, ) return _response.data diff --git a/src/pipedream/components/raw_client.py b/src/pipedream/components/raw_client.py index 99d2ff0..180f32c 100644 --- a/src/pipedream/components/raw_client.py +++ b/src/pipedream/components/raw_client.py @@ -147,9 +147,11 @@ 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, page: typing.Optional[float] = OMIT, prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, query: typing.Optional[str] = OMIT, @@ -167,6 +169,8 @@ 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 @@ -176,6 +180,9 @@ def configure_prop( dynamic_props_id : typing.Optional[str] The ID for dynamic props + configure_prop_opts_async_handle : typing.Optional[str] + Handle for async operations + page : typing.Optional[float] Page number for paginated results @@ -203,12 +210,14 @@ def configure_prop( "blocking": blocking, "configured_props": configured_props, "dynamic_props_id": dynamic_props_id, + "async_handle": async_handle, "page": page, "prev_context": prev_context, "query": query, }, headers={ "content-type": "application/json", + "x-async-handle": str(async_handle) if async_handle is not None else None, }, request_options=request_options, omit=OMIT, @@ -233,9 +242,11 @@ 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, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[ReloadPropsResponse]: """ @@ -247,6 +258,8 @@ 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 @@ -256,6 +269,9 @@ def reload_props( dynamic_props_id : typing.Optional[str] The ID for dynamic props + reload_props_opts_async_handle : typing.Optional[str] + Handle for async operations + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -273,9 +289,11 @@ def reload_props( "blocking": blocking, "configured_props": configured_props, "dynamic_props_id": dynamic_props_id, + "async_handle": async_handle, }, headers={ "content-type": "application/json", + "x-async-handle": str(async_handle) if async_handle is not None else None, }, request_options=request_options, omit=OMIT, @@ -426,9 +444,11 @@ 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, page: typing.Optional[float] = OMIT, prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, query: typing.Optional[str] = OMIT, @@ -446,6 +466,8 @@ 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 @@ -455,6 +477,9 @@ async def configure_prop( dynamic_props_id : typing.Optional[str] The ID for dynamic props + configure_prop_opts_async_handle : typing.Optional[str] + Handle for async operations + page : typing.Optional[float] Page number for paginated results @@ -482,12 +507,14 @@ async def configure_prop( "blocking": blocking, "configured_props": configured_props, "dynamic_props_id": dynamic_props_id, + "async_handle": async_handle, "page": page, "prev_context": prev_context, "query": query, }, headers={ "content-type": "application/json", + "x-async-handle": str(async_handle) if async_handle is not None else None, }, request_options=request_options, omit=OMIT, @@ -512,9 +539,11 @@ 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, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[ReloadPropsResponse]: """ @@ -526,6 +555,8 @@ 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 @@ -535,6 +566,9 @@ async def reload_props( dynamic_props_id : typing.Optional[str] The ID for dynamic props + reload_props_opts_async_handle : typing.Optional[str] + Handle for async operations + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -552,9 +586,11 @@ async def reload_props( "blocking": blocking, "configured_props": configured_props, "dynamic_props_id": dynamic_props_id, + "async_handle": async_handle, }, headers={ "content-type": "application/json", + "x-async-handle": str(async_handle) if async_handle is not None else None, }, request_options=request_options, omit=OMIT, diff --git a/src/pipedream/core/client_wrapper.py b/src/pipedream/core/client_wrapper.py index 6a68ab4..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 diff --git a/src/pipedream/tokens/client.py b/src/pipedream/tokens/client.py index ef22604..c13ff6c 100644 --- a/src/pipedream/tokens/client.py +++ b/src/pipedream/tokens/client.py @@ -4,8 +4,8 @@ from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper from ..core.request_options import RequestOptions -from ..types.connect_token import ConnectToken from ..types.create_token_response import CreateTokenResponse +from ..types.validate_token_params import ValidateTokenParams from ..types.validate_token_response import ValidateTokenResponse from .raw_client import AsyncRawTokensClient, RawTokensClient @@ -90,22 +90,17 @@ def create( def validate( self, - ctok: ConnectToken, + ctok: str, *, - app_id: str, - oauth_app_id: typing.Optional[str] = None, + params: typing.Optional[ValidateTokenParams] = None, request_options: typing.Optional[RequestOptions] = None, ) -> ValidateTokenResponse: """ Parameters ---------- - ctok : ConnectToken + ctok : str - app_id : str - The app ID to validate against - - oauth_app_id : typing.Optional[str] - The OAuth app ID to validate against (if the token is for an OAuth app) + params : typing.Optional[ValidateTokenParams] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -127,12 +122,9 @@ def validate( ) client.tokens.validate( ctok="ctok", - app_id="app_id", ) """ - _response = self._raw_client.validate( - ctok, app_id=app_id, oauth_app_id=oauth_app_id, request_options=request_options - ) + _response = self._raw_client.validate(ctok, params=params, request_options=request_options) return _response.data @@ -221,22 +213,17 @@ async def main() -> None: async def validate( self, - ctok: ConnectToken, + ctok: str, *, - app_id: str, - oauth_app_id: typing.Optional[str] = None, + params: typing.Optional[ValidateTokenParams] = None, request_options: typing.Optional[RequestOptions] = None, ) -> ValidateTokenResponse: """ Parameters ---------- - ctok : ConnectToken + ctok : str - app_id : str - The app ID to validate against - - oauth_app_id : typing.Optional[str] - The OAuth app ID to validate against (if the token is for an OAuth app) + params : typing.Optional[ValidateTokenParams] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -263,13 +250,10 @@ async def validate( async def main() -> None: await client.tokens.validate( ctok="ctok", - app_id="app_id", ) asyncio.run(main()) """ - _response = await self._raw_client.validate( - ctok, app_id=app_id, oauth_app_id=oauth_app_id, request_options=request_options - ) + _response = await self._raw_client.validate(ctok, params=params, request_options=request_options) return _response.data diff --git a/src/pipedream/tokens/raw_client.py b/src/pipedream/tokens/raw_client.py index b18b66d..0d85a22 100644 --- a/src/pipedream/tokens/raw_client.py +++ b/src/pipedream/tokens/raw_client.py @@ -9,8 +9,9 @@ from ..core.jsonable_encoder import jsonable_encoder from ..core.pydantic_utilities import parse_obj_as from ..core.request_options import RequestOptions -from ..types.connect_token import ConnectToken +from ..core.serialization import convert_and_respect_annotation_metadata from ..types.create_token_response import CreateTokenResponse +from ..types.validate_token_params import ValidateTokenParams from ..types.validate_token_response import ValidateTokenResponse # this is used as the default value for optional parameters @@ -90,22 +91,17 @@ def create( def validate( self, - ctok: ConnectToken, + ctok: str, *, - app_id: str, - oauth_app_id: typing.Optional[str] = None, + params: typing.Optional[ValidateTokenParams] = None, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[ValidateTokenResponse]: """ Parameters ---------- - ctok : ConnectToken + ctok : str - app_id : str - The app ID to validate against - - oauth_app_id : typing.Optional[str] - The OAuth app ID to validate against (if the token is for an OAuth app) + params : typing.Optional[ValidateTokenParams] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -116,11 +112,12 @@ def validate( connect token validated """ _response = self._client_wrapper.httpx_client.request( - f"v1/connect/tokens/{jsonable_encoder(ctok)}/validate", + f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/tokens/{jsonable_encoder(ctok)}/validate", method="GET", params={ - "app_id": app_id, - "oauth_app_id": oauth_app_id, + "params": convert_and_respect_annotation_metadata( + object_=params, annotation=ValidateTokenParams, direction="write" + ), }, request_options=request_options, ) @@ -213,22 +210,17 @@ async def create( async def validate( self, - ctok: ConnectToken, + ctok: str, *, - app_id: str, - oauth_app_id: typing.Optional[str] = None, + params: typing.Optional[ValidateTokenParams] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[ValidateTokenResponse]: """ Parameters ---------- - ctok : ConnectToken - - app_id : str - The app ID to validate against + ctok : str - oauth_app_id : typing.Optional[str] - The OAuth app ID to validate against (if the token is for an OAuth app) + params : typing.Optional[ValidateTokenParams] request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -239,11 +231,12 @@ async def validate( connect token validated """ _response = await self._client_wrapper.httpx_client.request( - f"v1/connect/tokens/{jsonable_encoder(ctok)}/validate", + f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/tokens/{jsonable_encoder(ctok)}/validate", method="GET", params={ - "app_id": app_id, - "oauth_app_id": oauth_app_id, + "params": convert_and_respect_annotation_metadata( + object_=params, annotation=ValidateTokenParams, direction="write" + ), }, request_options=request_options, ) diff --git a/src/pipedream/triggers/client.py b/src/pipedream/triggers/client.py index 21d61cc..f3ea70e 100644 --- a/src/pipedream/triggers/client.py +++ b/src/pipedream/triggers/client.py @@ -125,9 +125,11 @@ 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, page: typing.Optional[float] = OMIT, prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, query: typing.Optional[str] = OMIT, @@ -145,6 +147,8 @@ 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 @@ -154,6 +158,9 @@ def configure_prop( dynamic_props_id : typing.Optional[str] The ID for dynamic props + configure_prop_opts_async_handle : typing.Optional[str] + Handle for async operations + page : typing.Optional[float] Page number for paginated results @@ -191,9 +198,11 @@ 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, page=page, prev_context=prev_context, query=query, @@ -206,9 +215,11 @@ 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, request_options: typing.Optional[RequestOptions] = None, ) -> ReloadPropsResponse: """ @@ -220,6 +231,8 @@ 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 @@ -229,6 +242,9 @@ def reload_props( dynamic_props_id : typing.Optional[str] The ID for dynamic props + reload_props_opts_async_handle : typing.Optional[str] + Handle for async operations + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -255,9 +271,11 @@ 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, request_options=request_options, ) return _response.data @@ -453,9 +471,11 @@ 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, page: typing.Optional[float] = OMIT, prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, query: typing.Optional[str] = OMIT, @@ -473,6 +493,8 @@ 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 @@ -482,6 +504,9 @@ async def configure_prop( dynamic_props_id : typing.Optional[str] The ID for dynamic props + configure_prop_opts_async_handle : typing.Optional[str] + Handle for async operations + page : typing.Optional[float] Page number for paginated results @@ -527,9 +552,11 @@ 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, page=page, prev_context=prev_context, query=query, @@ -542,9 +569,11 @@ 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, request_options: typing.Optional[RequestOptions] = None, ) -> ReloadPropsResponse: """ @@ -556,6 +585,8 @@ 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 @@ -565,6 +596,9 @@ async def reload_props( dynamic_props_id : typing.Optional[str] The ID for dynamic props + reload_props_opts_async_handle : typing.Optional[str] + Handle for async operations + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -599,9 +633,11 @@ 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, request_options=request_options, ) return _response.data diff --git a/src/pipedream/triggers/raw_client.py b/src/pipedream/triggers/raw_client.py index a946288..820aaf6 100644 --- a/src/pipedream/triggers/raw_client.py +++ b/src/pipedream/triggers/raw_client.py @@ -149,9 +149,11 @@ 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, page: typing.Optional[float] = OMIT, prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, query: typing.Optional[str] = OMIT, @@ -169,6 +171,8 @@ 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 @@ -178,6 +182,9 @@ def configure_prop( dynamic_props_id : typing.Optional[str] The ID for dynamic props + configure_prop_opts_async_handle : typing.Optional[str] + Handle for async operations + page : typing.Optional[float] Page number for paginated results @@ -205,12 +212,14 @@ def configure_prop( "blocking": blocking, "configured_props": configured_props, "dynamic_props_id": dynamic_props_id, + "async_handle": async_handle, "page": page, "prev_context": prev_context, "query": query, }, headers={ "content-type": "application/json", + "x-async-handle": str(async_handle) if async_handle is not None else None, }, request_options=request_options, omit=OMIT, @@ -235,9 +244,11 @@ 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, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[ReloadPropsResponse]: """ @@ -249,6 +260,8 @@ 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 @@ -258,6 +271,9 @@ def reload_props( dynamic_props_id : typing.Optional[str] The ID for dynamic props + reload_props_opts_async_handle : typing.Optional[str] + Handle for async operations + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -275,9 +291,11 @@ def reload_props( "blocking": blocking, "configured_props": configured_props, "dynamic_props_id": dynamic_props_id, + "async_handle": async_handle, }, headers={ "content-type": "application/json", + "x-async-handle": str(async_handle) if async_handle is not None else None, }, request_options=request_options, omit=OMIT, @@ -496,9 +514,11 @@ 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, page: typing.Optional[float] = OMIT, prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, query: typing.Optional[str] = OMIT, @@ -516,6 +536,8 @@ 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 @@ -525,6 +547,9 @@ async def configure_prop( dynamic_props_id : typing.Optional[str] The ID for dynamic props + configure_prop_opts_async_handle : typing.Optional[str] + Handle for async operations + page : typing.Optional[float] Page number for paginated results @@ -552,12 +577,14 @@ async def configure_prop( "blocking": blocking, "configured_props": configured_props, "dynamic_props_id": dynamic_props_id, + "async_handle": async_handle, "page": page, "prev_context": prev_context, "query": query, }, headers={ "content-type": "application/json", + "x-async-handle": str(async_handle) if async_handle is not None else None, }, request_options=request_options, omit=OMIT, @@ -582,9 +609,11 @@ 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, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[ReloadPropsResponse]: """ @@ -596,6 +625,8 @@ 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 @@ -605,6 +636,9 @@ async def reload_props( dynamic_props_id : typing.Optional[str] The ID for dynamic props + reload_props_opts_async_handle : typing.Optional[str] + Handle for async operations + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -622,9 +656,11 @@ async def reload_props( "blocking": blocking, "configured_props": configured_props, "dynamic_props_id": dynamic_props_id, + "async_handle": async_handle, }, headers={ "content-type": "application/json", + "x-async-handle": str(async_handle) if async_handle is not None else None, }, request_options=request_options, omit=OMIT, diff --git a/src/pipedream/types/__init__.py b/src/pipedream/types/__init__.py index 7370445..fc63eed 100644 --- a/src/pipedream/types/__init__.py +++ b/src/pipedream/types/__init__.py @@ -11,35 +11,21 @@ from .component import Component from .component_stash import ComponentStash from .configurable_prop import ConfigurableProp -from .configurable_prop_airtable_base_id import ConfigurablePropAirtableBaseId -from .configurable_prop_airtable_field_id import ConfigurablePropAirtableFieldId -from .configurable_prop_airtable_table_id import ConfigurablePropAirtableTableId -from .configurable_prop_airtable_view_id import ConfigurablePropAirtableViewId from .configurable_prop_alert import ConfigurablePropAlert -from .configurable_prop_alert_type import ConfigurablePropAlertType +from .configurable_prop_alert_alert_type import ConfigurablePropAlertAlertType from .configurable_prop_any import ConfigurablePropAny from .configurable_prop_app import ConfigurablePropApp -from .configurable_prop_apphook import ConfigurablePropApphook from .configurable_prop_boolean import ConfigurablePropBoolean -from .configurable_prop_db import ConfigurablePropDb from .configurable_prop_discord import ConfigurablePropDiscord -from .configurable_prop_discord_channel import ConfigurablePropDiscordChannel -from .configurable_prop_discord_channel_array import ConfigurablePropDiscordChannelArray -from .configurable_prop_http import ConfigurablePropHttp from .configurable_prop_integer import ConfigurablePropInteger -from .configurable_prop_integer_array import ConfigurablePropIntegerArray from .configurable_prop_object import ConfigurablePropObject -from .configurable_prop_sql import ConfigurablePropSql -from .configurable_prop_sql_auth import ConfigurablePropSqlAuth from .configurable_prop_string import ConfigurablePropString from .configurable_prop_string_array import ConfigurablePropStringArray -from .configurable_prop_timer import ConfigurablePropTimer -from .configurable_prop_timer_default import ConfigurablePropTimerDefault -from .configurable_prop_timer_option import ConfigurablePropTimerOption -from .configurable_prop_timer_static import ConfigurablePropTimerStatic from .configure_prop_opts import ConfigurePropOpts from .configure_prop_response import ConfigurePropResponse -from .connect_token import ConnectToken +from .connect_token_create_opts import ConnectTokenCreateOpts +from .connect_token_response import ConnectTokenResponse +from .create_browser_client_opts import CreateBrowserClientOpts from .create_o_auth_token_response import CreateOAuthTokenResponse from .create_token_response import CreateTokenResponse from .delete_trigger_opts import DeleteTriggerOpts @@ -64,17 +50,14 @@ from .page_info import PageInfo from .project_environment import ProjectEnvironment from .project_info_response import ProjectInfoResponse -from .project_info_response_app import ProjectInfoResponseApp +from .project_info_response_apps_item import ProjectInfoResponseAppsItem from .prop_option import PropOption from .proxy_response import ProxyResponse from .reload_props_opts import ReloadPropsOpts from .reload_props_response import ReloadPropsResponse -from .run_action_opts_stash_id import RunActionOptsStashId from .run_action_response import RunActionResponse from .start_connect_opts import StartConnectOpts -from .stash_id import StashId -from .timer_cron import TimerCron -from .timer_interval import TimerInterval +from .validate_token_params import ValidateTokenParams from .validate_token_response import ValidateTokenResponse __all__ = [ @@ -87,35 +70,21 @@ "Component", "ComponentStash", "ConfigurableProp", - "ConfigurablePropAirtableBaseId", - "ConfigurablePropAirtableFieldId", - "ConfigurablePropAirtableTableId", - "ConfigurablePropAirtableViewId", "ConfigurablePropAlert", - "ConfigurablePropAlertType", + "ConfigurablePropAlertAlertType", "ConfigurablePropAny", "ConfigurablePropApp", - "ConfigurablePropApphook", "ConfigurablePropBoolean", - "ConfigurablePropDb", "ConfigurablePropDiscord", - "ConfigurablePropDiscordChannel", - "ConfigurablePropDiscordChannelArray", - "ConfigurablePropHttp", "ConfigurablePropInteger", - "ConfigurablePropIntegerArray", "ConfigurablePropObject", - "ConfigurablePropSql", - "ConfigurablePropSqlAuth", "ConfigurablePropString", "ConfigurablePropStringArray", - "ConfigurablePropTimer", - "ConfigurablePropTimerDefault", - "ConfigurablePropTimerOption", - "ConfigurablePropTimerStatic", "ConfigurePropOpts", "ConfigurePropResponse", - "ConnectToken", + "ConnectTokenCreateOpts", + "ConnectTokenResponse", + "CreateBrowserClientOpts", "CreateOAuthTokenResponse", "CreateTokenResponse", "DeleteTriggerOpts", @@ -140,16 +109,13 @@ "PageInfo", "ProjectEnvironment", "ProjectInfoResponse", - "ProjectInfoResponseApp", + "ProjectInfoResponseAppsItem", "PropOption", "ProxyResponse", "ReloadPropsOpts", "ReloadPropsResponse", - "RunActionOptsStashId", "RunActionResponse", "StartConnectOpts", - "StashId", - "TimerCron", - "TimerInterval", + "ValidateTokenParams", "ValidateTokenResponse", ] diff --git a/src/pipedream/types/account.py b/src/pipedream/types/account.py index 7d1dd3f..ce024d3 100644 --- a/src/pipedream/types/account.py +++ b/src/pipedream/types/account.py @@ -13,7 +13,7 @@ class Account(UniversalBaseModel): End user account data, returned from the API. """ - id: str = pydantic.Field() + id: typing.Optional[str] = pydantic.Field(default=None) """ The unique ID of the account. """ diff --git a/src/pipedream/types/app.py b/src/pipedream/types/app.py index 10042cf..9389fe4 100644 --- a/src/pipedream/types/app.py +++ b/src/pipedream/types/app.py @@ -27,7 +27,11 @@ class App(UniversalBaseModel): The human-readable name of the app """ - auth_type: typing.Optional[AppAuthType] = None + auth_type: typing.Optional[AppAuthType] = pydantic.Field(default=None) + """ + The authentication type used by the app + """ + description: typing.Optional[str] = pydantic.Field(default=None) """ A short description of the app diff --git a/src/pipedream/types/component.py b/src/pipedream/types/component.py index 5ea1ff2..5d27cbd 100644 --- a/src/pipedream/types/component.py +++ b/src/pipedream/types/component.py @@ -35,7 +35,10 @@ class Component(UniversalBaseModel): The type of component (trigger or action) """ - stash: typing.Optional[ComponentStash] = None + stash: typing.Optional[ComponentStash] = pydantic.Field(default=None) + """ + Indicates if a File Stash ID is optional or required to run the component + """ if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 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_airtable_base_id.py b/src/pipedream/types/configurable_prop_airtable_base_id.py deleted file mode 100644 index f4dca84..0000000 --- a/src/pipedream/types/configurable_prop_airtable_base_id.py +++ /dev/null @@ -1,85 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ConfigurablePropAirtableBaseId(UniversalBaseModel): - type: typing.Optional[typing.Literal["$.airtable.baseId"]] = None - app_prop: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="appProp")] = pydantic.Field( - default=None - ) - """ - The name of the app prop that provides Airtable authentication - """ - - name: str = pydantic.Field() - """ - When building `configuredProps`, make sure to use this field as the key when setting the prop value - """ - - label: typing.Optional[str] = pydantic.Field(default=None) - """ - Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A description of the prop, shown to the user when configuring the component. - """ - - optional: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop does not need to be specified. - """ - - disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop will be ignored. - """ - - hidden: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, should not expose this prop to the user - """ - - remote_options: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="remoteOptions")] = ( - pydantic.Field(default=None) - ) - """ - If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options - """ - - use_query: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="useQuery")] = pydantic.Field( - default=None - ) - """ - If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options - """ - - reload_props: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="reloadProps")] = ( - pydantic.Field(default=None) - ) - """ - If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one - """ - - with_label: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="withLabel")] = pydantic.Field( - default=None - ) - """ - If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/pipedream/types/configurable_prop_airtable_field_id.py b/src/pipedream/types/configurable_prop_airtable_field_id.py deleted file mode 100644 index 51844f5..0000000 --- a/src/pipedream/types/configurable_prop_airtable_field_id.py +++ /dev/null @@ -1,85 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ConfigurablePropAirtableFieldId(UniversalBaseModel): - type: typing.Optional[typing.Literal["$.airtable.fieldId"]] = None - table_id_prop: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="tableIdProp")] = ( - pydantic.Field(default=None) - ) - """ - The name of the prop that provides the Airtable table ID - """ - - name: str = pydantic.Field() - """ - When building `configuredProps`, make sure to use this field as the key when setting the prop value - """ - - label: typing.Optional[str] = pydantic.Field(default=None) - """ - Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A description of the prop, shown to the user when configuring the component. - """ - - optional: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop does not need to be specified. - """ - - disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop will be ignored. - """ - - hidden: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, should not expose this prop to the user - """ - - remote_options: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="remoteOptions")] = ( - pydantic.Field(default=None) - ) - """ - If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options - """ - - use_query: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="useQuery")] = pydantic.Field( - default=None - ) - """ - If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options - """ - - reload_props: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="reloadProps")] = ( - pydantic.Field(default=None) - ) - """ - If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one - """ - - with_label: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="withLabel")] = pydantic.Field( - default=None - ) - """ - If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/pipedream/types/configurable_prop_airtable_table_id.py b/src/pipedream/types/configurable_prop_airtable_table_id.py deleted file mode 100644 index 819a13c..0000000 --- a/src/pipedream/types/configurable_prop_airtable_table_id.py +++ /dev/null @@ -1,85 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ConfigurablePropAirtableTableId(UniversalBaseModel): - type: typing.Optional[typing.Literal["$.airtable.tableId"]] = None - base_id_prop: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="baseIdProp")] = pydantic.Field( - default=None - ) - """ - The name of the prop that provides the Airtable base ID - """ - - name: str = pydantic.Field() - """ - When building `configuredProps`, make sure to use this field as the key when setting the prop value - """ - - label: typing.Optional[str] = pydantic.Field(default=None) - """ - Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A description of the prop, shown to the user when configuring the component. - """ - - optional: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop does not need to be specified. - """ - - disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop will be ignored. - """ - - hidden: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, should not expose this prop to the user - """ - - remote_options: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="remoteOptions")] = ( - pydantic.Field(default=None) - ) - """ - If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options - """ - - use_query: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="useQuery")] = pydantic.Field( - default=None - ) - """ - If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options - """ - - reload_props: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="reloadProps")] = ( - pydantic.Field(default=None) - ) - """ - If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one - """ - - with_label: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="withLabel")] = pydantic.Field( - default=None - ) - """ - If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/pipedream/types/configurable_prop_airtable_view_id.py b/src/pipedream/types/configurable_prop_airtable_view_id.py deleted file mode 100644 index af771e3..0000000 --- a/src/pipedream/types/configurable_prop_airtable_view_id.py +++ /dev/null @@ -1,85 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ConfigurablePropAirtableViewId(UniversalBaseModel): - type: typing.Optional[typing.Literal["$.airtable.viewId"]] = None - table_id_prop: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="tableIdProp")] = ( - pydantic.Field(default=None) - ) - """ - The name of the prop that provides the Airtable table ID - """ - - name: str = pydantic.Field() - """ - When building `configuredProps`, make sure to use this field as the key when setting the prop value - """ - - label: typing.Optional[str] = pydantic.Field(default=None) - """ - Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A description of the prop, shown to the user when configuring the component. - """ - - optional: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop does not need to be specified. - """ - - disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop will be ignored. - """ - - hidden: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, should not expose this prop to the user - """ - - remote_options: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="remoteOptions")] = ( - pydantic.Field(default=None) - ) - """ - If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options - """ - - use_query: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="useQuery")] = pydantic.Field( - default=None - ) - """ - If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options - """ - - reload_props: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="reloadProps")] = ( - pydantic.Field(default=None) - ) - """ - If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one - """ - - with_label: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="withLabel")] = pydantic.Field( - default=None - ) - """ - If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/pipedream/types/configurable_prop_alert.py b/src/pipedream/types/configurable_prop_alert.py index acd7ea7..c6d0c1b 100644 --- a/src/pipedream/types/configurable_prop_alert.py +++ b/src/pipedream/types/configurable_prop_alert.py @@ -6,20 +6,24 @@ import typing_extensions from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel from ..core.serialization import FieldMetadata -from .configurable_prop_alert_type import ConfigurablePropAlertType +from .configurable_prop_alert_alert_type import ConfigurablePropAlertAlertType class ConfigurablePropAlert(UniversalBaseModel): type: typing.Optional[typing.Literal["alert"]] = None alert_type: typing_extensions.Annotated[ - typing.Optional[ConfigurablePropAlertType], FieldMetadata(alias="alertType") - ] = None + typing.Optional[ConfigurablePropAlertAlertType], FieldMetadata(alias="alertType") + ] = pydantic.Field(default=None) + """ + The severity level of the alert. + """ + content: typing.Optional[str] = pydantic.Field(default=None) """ 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_alert_alert_type.py b/src/pipedream/types/configurable_prop_alert_alert_type.py new file mode 100644 index 0000000..2fd84e6 --- /dev/null +++ b/src/pipedream/types/configurable_prop_alert_alert_type.py @@ -0,0 +1,5 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +ConfigurablePropAlertAlertType = typing.Union[typing.Literal["info", "neutral", "warning", "error"], typing.Any] diff --git a/src/pipedream/types/configurable_prop_alert_type.py b/src/pipedream/types/configurable_prop_alert_type.py deleted file mode 100644 index 5223c58..0000000 --- a/src/pipedream/types/configurable_prop_alert_type.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -ConfigurablePropAlertType = typing.Union[typing.Literal["info", "neutral", "warning", "error"], typing.Any] 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_apphook.py b/src/pipedream/types/configurable_prop_apphook.py deleted file mode 100644 index 8dedabf..0000000 --- a/src/pipedream/types/configurable_prop_apphook.py +++ /dev/null @@ -1,102 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ConfigurablePropApphook(UniversalBaseModel): - type: typing.Optional[typing.Literal["$.interface.apphook"]] = None - app_prop: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="appProp")] = pydantic.Field( - default=None - ) - """ - The name of the app prop that this apphook depends on - """ - - event_names: typing_extensions.Annotated[typing.Optional[typing.List[str]], FieldMetadata(alias="eventNames")] = ( - pydantic.Field(default=None) - ) - """ - List of event names to listen for - """ - - remote: typing.Optional[bool] = pydantic.Field(default=None) - """ - Whether this apphook is remote - """ - - static: typing.Optional[typing.List[typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - Static configuration for the apphook - """ - - name: str = pydantic.Field() - """ - When building `configuredProps`, make sure to use this field as the key when setting the prop value - """ - - label: typing.Optional[str] = pydantic.Field(default=None) - """ - Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A description of the prop, shown to the user when configuring the component. - """ - - optional: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop does not need to be specified. - """ - - disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop will be ignored. - """ - - hidden: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, should not expose this prop to the user - """ - - remote_options: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="remoteOptions")] = ( - pydantic.Field(default=None) - ) - """ - If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options - """ - - use_query: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="useQuery")] = pydantic.Field( - default=None - ) - """ - If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options - """ - - reload_props: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="reloadProps")] = ( - pydantic.Field(default=None) - ) - """ - If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one - """ - - with_label: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="withLabel")] = pydantic.Field( - default=None - ) - """ - If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow 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_db.py b/src/pipedream/types/configurable_prop_db.py deleted file mode 100644 index 0f28108..0000000 --- a/src/pipedream/types/configurable_prop_db.py +++ /dev/null @@ -1,78 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ConfigurablePropDb(UniversalBaseModel): - type: typing.Optional[typing.Literal["$.service.db"]] = None - name: str = pydantic.Field() - """ - When building `configuredProps`, make sure to use this field as the key when setting the prop value - """ - - label: typing.Optional[str] = pydantic.Field(default=None) - """ - Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A description of the prop, shown to the user when configuring the component. - """ - - optional: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop does not need to be specified. - """ - - disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop will be ignored. - """ - - hidden: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, should not expose this prop to the user - """ - - remote_options: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="remoteOptions")] = ( - pydantic.Field(default=None) - ) - """ - If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options - """ - - use_query: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="useQuery")] = pydantic.Field( - default=None - ) - """ - If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options - """ - - reload_props: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="reloadProps")] = ( - pydantic.Field(default=None) - ) - """ - If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one - """ - - with_label: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="withLabel")] = pydantic.Field( - default=None - ) - """ - If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow 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_discord_channel.py b/src/pipedream/types/configurable_prop_discord_channel.py deleted file mode 100644 index 8da21a2..0000000 --- a/src/pipedream/types/configurable_prop_discord_channel.py +++ /dev/null @@ -1,85 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ConfigurablePropDiscordChannel(UniversalBaseModel): - type: typing.Optional[typing.Literal["$.discord.channel"]] = None - app_prop: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="appProp")] = pydantic.Field( - default=None - ) - """ - The name of the app prop that provides Discord authentication - """ - - name: str = pydantic.Field() - """ - When building `configuredProps`, make sure to use this field as the key when setting the prop value - """ - - label: typing.Optional[str] = pydantic.Field(default=None) - """ - Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A description of the prop, shown to the user when configuring the component. - """ - - optional: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop does not need to be specified. - """ - - disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop will be ignored. - """ - - hidden: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, should not expose this prop to the user - """ - - remote_options: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="remoteOptions")] = ( - pydantic.Field(default=None) - ) - """ - If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options - """ - - use_query: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="useQuery")] = pydantic.Field( - default=None - ) - """ - If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options - """ - - reload_props: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="reloadProps")] = ( - pydantic.Field(default=None) - ) - """ - If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one - """ - - with_label: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="withLabel")] = pydantic.Field( - default=None - ) - """ - If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/pipedream/types/configurable_prop_discord_channel_array.py b/src/pipedream/types/configurable_prop_discord_channel_array.py deleted file mode 100644 index b67a467..0000000 --- a/src/pipedream/types/configurable_prop_discord_channel_array.py +++ /dev/null @@ -1,85 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ConfigurablePropDiscordChannelArray(UniversalBaseModel): - type: typing.Optional[typing.Literal["$.discord.channel[]"]] = None - app_prop: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="appProp")] = pydantic.Field( - default=None - ) - """ - The name of the app prop that provides Discord authentication - """ - - name: str = pydantic.Field() - """ - When building `configuredProps`, make sure to use this field as the key when setting the prop value - """ - - label: typing.Optional[str] = pydantic.Field(default=None) - """ - Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A description of the prop, shown to the user when configuring the component. - """ - - optional: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop does not need to be specified. - """ - - disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop will be ignored. - """ - - hidden: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, should not expose this prop to the user - """ - - remote_options: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="remoteOptions")] = ( - pydantic.Field(default=None) - ) - """ - If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options - """ - - use_query: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="useQuery")] = pydantic.Field( - default=None - ) - """ - If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options - """ - - reload_props: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="reloadProps")] = ( - pydantic.Field(default=None) - ) - """ - If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one - """ - - with_label: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="withLabel")] = pydantic.Field( - default=None - ) - """ - If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/pipedream/types/configurable_prop_http.py b/src/pipedream/types/configurable_prop_http.py deleted file mode 100644 index 37e98dd..0000000 --- a/src/pipedream/types/configurable_prop_http.py +++ /dev/null @@ -1,85 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ConfigurablePropHttp(UniversalBaseModel): - type: typing.Optional[typing.Literal["$.interface.http"]] = None - custom_response: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="customResponse")] = ( - pydantic.Field(default=None) - ) - """ - Whether this HTTP interface allows custom responses - """ - - name: str = pydantic.Field() - """ - When building `configuredProps`, make sure to use this field as the key when setting the prop value - """ - - label: typing.Optional[str] = pydantic.Field(default=None) - """ - Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A description of the prop, shown to the user when configuring the component. - """ - - optional: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop does not need to be specified. - """ - - disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop will be ignored. - """ - - hidden: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, should not expose this prop to the user - """ - - remote_options: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="remoteOptions")] = ( - pydantic.Field(default=None) - ) - """ - If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options - """ - - use_query: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="useQuery")] = pydantic.Field( - default=None - ) - """ - If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options - """ - - reload_props: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="reloadProps")] = ( - pydantic.Field(default=None) - ) - """ - If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one - """ - - with_label: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="withLabel")] = pydantic.Field( - default=None - ) - """ - If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/pipedream/types/configurable_prop_integer.py b/src/pipedream/types/configurable_prop_integer.py index 8ffdd1b..ed4d01c 100644 --- a/src/pipedream/types/configurable_prop_integer.py +++ b/src/pipedream/types/configurable_prop_integer.py @@ -20,17 +20,7 @@ class ConfigurablePropInteger(UniversalBaseModel): The maximum value for this integer prop. """ - default: typing.Optional[int] = pydantic.Field(default=None) - """ - Default integer value - """ - - options: typing.Optional[typing.List[int]] = pydantic.Field(default=None) - """ - Available integer options - """ - - 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_array.py b/src/pipedream/types/configurable_prop_integer_array.py deleted file mode 100644 index a50d899..0000000 --- a/src/pipedream/types/configurable_prop_integer_array.py +++ /dev/null @@ -1,98 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata - - -class ConfigurablePropIntegerArray(UniversalBaseModel): - type: typing.Optional[typing.Literal["integer[]"]] = None - min: typing.Optional[int] = pydantic.Field(default=None) - """ - The minimum value for integers in this array - """ - - max: typing.Optional[int] = pydantic.Field(default=None) - """ - The maximum value for integers in this array - """ - - default: typing.Optional[typing.List[int]] = pydantic.Field(default=None) - """ - Default array of integers - """ - - options: typing.Optional[typing.List[int]] = pydantic.Field(default=None) - """ - Available options for the integer array - """ - - name: str = pydantic.Field() - """ - When building `configuredProps`, make sure to use this field as the key when setting the prop value - """ - - label: typing.Optional[str] = pydantic.Field(default=None) - """ - Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A description of the prop, shown to the user when configuring the component. - """ - - optional: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop does not need to be specified. - """ - - disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop will be ignored. - """ - - hidden: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, should not expose this prop to the user - """ - - remote_options: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="remoteOptions")] = ( - pydantic.Field(default=None) - ) - """ - If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options - """ - - use_query: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="useQuery")] = pydantic.Field( - default=None - ) - """ - If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options - """ - - reload_props: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="reloadProps")] = ( - pydantic.Field(default=None) - ) - """ - If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one - """ - - with_label: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="withLabel")] = pydantic.Field( - default=None - ) - """ - If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow 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_sql.py b/src/pipedream/types/configurable_prop_sql.py deleted file mode 100644 index f41481d..0000000 --- a/src/pipedream/types/configurable_prop_sql.py +++ /dev/null @@ -1,85 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .configurable_prop_sql_auth import ConfigurablePropSqlAuth - - -class ConfigurablePropSql(UniversalBaseModel): - type: typing.Optional[typing.Literal["sql"]] = None - auth: typing.Optional[ConfigurablePropSqlAuth] = None - default: typing.Optional[str] = pydantic.Field(default=None) - """ - Default SQL query - """ - - name: str = pydantic.Field() - """ - When building `configuredProps`, make sure to use this field as the key when setting the prop value - """ - - label: typing.Optional[str] = pydantic.Field(default=None) - """ - Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A description of the prop, shown to the user when configuring the component. - """ - - optional: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop does not need to be specified. - """ - - disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop will be ignored. - """ - - hidden: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, should not expose this prop to the user - """ - - remote_options: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="remoteOptions")] = ( - pydantic.Field(default=None) - ) - """ - If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options - """ - - use_query: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="useQuery")] = pydantic.Field( - default=None - ) - """ - If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options - """ - - reload_props: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="reloadProps")] = ( - pydantic.Field(default=None) - ) - """ - If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one - """ - - with_label: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="withLabel")] = pydantic.Field( - default=None - ) - """ - If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow 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 """ diff --git a/src/pipedream/types/configurable_prop_timer.py b/src/pipedream/types/configurable_prop_timer.py deleted file mode 100644 index 7d472bf..0000000 --- a/src/pipedream/types/configurable_prop_timer.py +++ /dev/null @@ -1,88 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -import typing_extensions -from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -from .configurable_prop_timer_default import ConfigurablePropTimerDefault -from .configurable_prop_timer_option import ConfigurablePropTimerOption -from .configurable_prop_timer_static import ConfigurablePropTimerStatic - - -class ConfigurablePropTimer(UniversalBaseModel): - type: typing.Optional[typing.Literal["$.interface.timer"]] = None - static: typing.Optional[ConfigurablePropTimerStatic] = None - default: typing.Optional[ConfigurablePropTimerDefault] = None - options: typing.Optional[typing.List[typing.Optional[ConfigurablePropTimerOption]]] = pydantic.Field(default=None) - """ - Available timer configuration options - """ - - name: str = pydantic.Field() - """ - When building `configuredProps`, make sure to use this field as the key when setting the prop value - """ - - label: typing.Optional[str] = pydantic.Field(default=None) - """ - Value to use as an input label. In cases where `type` is "app", should load the app via `getApp`, etc. and show `app.name` instead. - """ - - description: typing.Optional[str] = pydantic.Field(default=None) - """ - A description of the prop, shown to the user when configuring the component. - """ - - optional: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop does not need to be specified. - """ - - disabled: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, this prop will be ignored. - """ - - hidden: typing.Optional[bool] = pydantic.Field(default=None) - """ - If true, should not expose this prop to the user - """ - - remote_options: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="remoteOptions")] = ( - pydantic.Field(default=None) - ) - """ - If true, call `configureComponent` for this prop to load remote options. It is safe, and preferred, given a returned list of { label: string; value: any } objects to set the prop value to { __lv: { label: string; value: any } }. This way, on load, you can access label for the value without necessarily reloading these options - """ - - use_query: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="useQuery")] = pydantic.Field( - default=None - ) - """ - If true, calls to `configureComponent` for this prop support receiving a `query` parameter to filter remote options - """ - - reload_props: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="reloadProps")] = ( - pydantic.Field(default=None) - ) - """ - If true, after setting a value for this prop, a call to `reloadComponentProps` is required as the component has dynamic configurable props dependent on this one - """ - - with_label: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="withLabel")] = pydantic.Field( - default=None - ) - """ - If true, you must save the configured prop value as a "label-value" object which should look like: { __lv: { label: string; value: any } } because the execution needs to access the label - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/pipedream/types/configurable_prop_timer_default.py b/src/pipedream/types/configurable_prop_timer_default.py deleted file mode 100644 index 0723619..0000000 --- a/src/pipedream/types/configurable_prop_timer_default.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .timer_cron import TimerCron -from .timer_interval import TimerInterval - -ConfigurablePropTimerDefault = typing.Union[TimerInterval, TimerCron] diff --git a/src/pipedream/types/configurable_prop_timer_option.py b/src/pipedream/types/configurable_prop_timer_option.py deleted file mode 100644 index 6455f03..0000000 --- a/src/pipedream/types/configurable_prop_timer_option.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .timer_cron import TimerCron -from .timer_interval import TimerInterval - -ConfigurablePropTimerOption = typing.Union[TimerInterval, TimerCron] diff --git a/src/pipedream/types/configurable_prop_timer_static.py b/src/pipedream/types/configurable_prop_timer_static.py deleted file mode 100644 index 9babf5b..0000000 --- a/src/pipedream/types/configurable_prop_timer_static.py +++ /dev/null @@ -1,8 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .timer_cron import TimerCron -from .timer_interval import TimerInterval - -ConfigurablePropTimerStatic = typing.Union[TimerInterval, TimerCron] diff --git a/src/pipedream/types/configure_prop_opts.py b/src/pipedream/types/configure_prop_opts.py index f24a4e0..5811a46 100644 --- a/src/pipedream/types/configure_prop_opts.py +++ b/src/pipedream/types/configure_prop_opts.py @@ -41,6 +41,11 @@ class ConfigurePropOpts(UniversalBaseModel): The ID for dynamic props """ + async_handle: typing.Optional[str] = pydantic.Field(default=None) + """ + Handle for async operations + """ + page: typing.Optional[float] = pydantic.Field(default=None) """ Page number for paginated results diff --git a/src/pipedream/types/configure_prop_response.py b/src/pipedream/types/configure_prop_response.py index c2423d9..44f7086 100644 --- a/src/pipedream/types/configure_prop_response.py +++ b/src/pipedream/types/configure_prop_response.py @@ -14,24 +14,9 @@ class ConfigurePropResponse(UniversalBaseModel): options: typing.Optional[typing.List[PropOption]] = pydantic.Field(default=None) """ - Available options (with labels) for the configured prop - """ - - string_options: typing.Optional[typing.List[str]] = pydantic.Field(default=None) - """ Available options for the configured prop """ - observations: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - Any logs produced during the configuration of the prop - """ - - context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) - """ - New context after configuring the prop - """ - errors: typing.Optional[typing.List[str]] = pydantic.Field(default=None) """ Any errors that occurred during configuration diff --git a/src/pipedream/types/connect_token.py b/src/pipedream/types/connect_token.py deleted file mode 100644 index 2be0ae5..0000000 --- a/src/pipedream/types/connect_token.py +++ /dev/null @@ -1,3 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -ConnectToken = str diff --git a/src/pipedream/types/connect_token_create_opts.py b/src/pipedream/types/connect_token_create_opts.py new file mode 100644 index 0000000..2940955 --- /dev/null +++ b/src/pipedream/types/connect_token_create_opts.py @@ -0,0 +1,46 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel + + +class ConnectTokenCreateOpts(UniversalBaseModel): + """ + Options for creating a Connect token + """ + + external_user_id: str = pydantic.Field() + """ + Your end user ID, for whom you're creating the token + """ + + allowed_origins: typing.Optional[typing.List[str]] = pydantic.Field(default=None) + """ + List of allowed origins for CORS + """ + + error_redirect_uri: typing.Optional[str] = pydantic.Field(default=None) + """ + URI to redirect to on error + """ + + success_redirect_uri: typing.Optional[str] = pydantic.Field(default=None) + """ + URI to redirect to on success + """ + + webhook_uri: typing.Optional[str] = pydantic.Field(default=None) + """ + Webhook URI for notifications + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/pipedream/types/timer_interval.py b/src/pipedream/types/connect_token_response.py similarity index 56% rename from src/pipedream/types/timer_interval.py rename to src/pipedream/types/connect_token_response.py index 36981c8..c0f4cea 100644 --- a/src/pipedream/types/timer_interval.py +++ b/src/pipedream/types/connect_token_response.py @@ -1,21 +1,30 @@ # This file was auto-generated by Fern from our API Definition. +import datetime as dt import typing import pydantic -import typing_extensions from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata -class TimerInterval(UniversalBaseModel): +class ConnectTokenResponse(UniversalBaseModel): """ - Timer configuration using interval in seconds + Response received after creating a connect token """ - interval_seconds: typing_extensions.Annotated[int, FieldMetadata(alias="intervalSeconds")] = pydantic.Field() + connect_link_url: str = pydantic.Field() """ - Interval in seconds for timer execution + The Connect Link URL + """ + + expires_at: dt.datetime = pydantic.Field() + """ + The expiration time of the token in ISO 8601 format + """ + + token: str = pydantic.Field() + """ + The generated token """ if IS_PYDANTIC_V2: diff --git a/src/pipedream/types/timer_cron.py b/src/pipedream/types/create_browser_client_opts.py similarity index 72% rename from src/pipedream/types/timer_cron.py rename to src/pipedream/types/create_browser_client_opts.py index 4a0bfeb..50400a4 100644 --- a/src/pipedream/types/timer_cron.py +++ b/src/pipedream/types/create_browser_client_opts.py @@ -6,14 +6,14 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -class TimerCron(UniversalBaseModel): +class CreateBrowserClientOpts(UniversalBaseModel): """ - Timer configuration using cron expression + Options for creating a browser-side client """ - cron: str = pydantic.Field() + api_url: typing.Optional[str] = pydantic.Field(default=None) """ - Cron expression for timer execution + The API URL to use """ if IS_PYDANTIC_V2: diff --git a/src/pipedream/types/create_token_response.py b/src/pipedream/types/create_token_response.py index 7d33485..738ce83 100644 --- a/src/pipedream/types/create_token_response.py +++ b/src/pipedream/types/create_token_response.py @@ -5,7 +5,6 @@ import pydantic from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .connect_token import ConnectToken class CreateTokenResponse(UniversalBaseModel): @@ -23,7 +22,10 @@ class CreateTokenResponse(UniversalBaseModel): The expiration time of the token in ISO 8601 format """ - token: ConnectToken + token: str = pydantic.Field() + """ + The generated token + """ if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/pipedream/types/project_info_response.py b/src/pipedream/types/project_info_response.py index 11a0016..24c1c65 100644 --- a/src/pipedream/types/project_info_response.py +++ b/src/pipedream/types/project_info_response.py @@ -4,7 +4,7 @@ import pydantic from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .project_info_response_app import ProjectInfoResponseApp +from .project_info_response_apps_item import ProjectInfoResponseAppsItem class ProjectInfoResponse(UniversalBaseModel): @@ -12,7 +12,7 @@ class ProjectInfoResponse(UniversalBaseModel): Response received when retrieving project info """ - apps: typing.List[ProjectInfoResponseApp] + apps: typing.List[ProjectInfoResponseAppsItem] if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/pipedream/types/project_info_response_app.py b/src/pipedream/types/project_info_response_apps_item.py similarity index 84% rename from src/pipedream/types/project_info_response_app.py rename to src/pipedream/types/project_info_response_apps_item.py index 57f4b61..e8b0f61 100644 --- a/src/pipedream/types/project_info_response_app.py +++ b/src/pipedream/types/project_info_response_apps_item.py @@ -6,13 +6,13 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -class ProjectInfoResponseApp(UniversalBaseModel): +class ProjectInfoResponseAppsItem(UniversalBaseModel): id: typing.Optional[str] = pydantic.Field(default=None) """ ID of the app. Only applies for OAuth apps. """ - name_slug: typing.Optional[str] = pydantic.Field(default=None) + name_slug: str = pydantic.Field() """ The name slug of the target app """ diff --git a/src/pipedream/types/reload_props_opts.py b/src/pipedream/types/reload_props_opts.py index 909833f..409e0fa 100644 --- a/src/pipedream/types/reload_props_opts.py +++ b/src/pipedream/types/reload_props_opts.py @@ -36,6 +36,11 @@ class ReloadPropsOpts(UniversalBaseModel): The ID for dynamic props """ + async_handle: typing.Optional[str] = pydantic.Field(default=None) + """ + Handle for async operations + """ + if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 else: diff --git a/src/pipedream/types/run_action_opts_stash_id.py b/src/pipedream/types/run_action_opts_stash_id.py deleted file mode 100644 index 39ea056..0000000 --- a/src/pipedream/types/run_action_opts_stash_id.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .stash_id import StashId - -RunActionOptsStashId = typing.Union[typing.Optional[StashId], typing.Literal["NEW"], bool] diff --git a/src/pipedream/types/run_action_response.py b/src/pipedream/types/run_action_response.py index bfa834c..337017d 100644 --- a/src/pipedream/types/run_action_response.py +++ b/src/pipedream/types/run_action_response.py @@ -4,7 +4,6 @@ import pydantic from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .stash_id import StashId class RunActionResponse(UniversalBaseModel): @@ -15,7 +14,10 @@ class RunActionResponse(UniversalBaseModel): exports: typing.Optional[typing.Optional[typing.Any]] = None os: typing.Optional[typing.Optional[typing.Any]] = None ret: typing.Optional[typing.Optional[typing.Any]] = None - stash_id: typing.Optional[StashId] = None + stash_id: typing.Optional[str] = pydantic.Field(default=None) + """ + The ID of the File Stash that was used to sync the action's /tmp directory + """ if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 diff --git a/src/pipedream/types/stash_id.py b/src/pipedream/types/stash_id.py deleted file mode 100644 index 776db73..0000000 --- a/src/pipedream/types/stash_id.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -StashId = typing.Optional[str] diff --git a/src/pipedream/types/configurable_prop_sql_auth.py b/src/pipedream/types/validate_token_params.py similarity index 63% rename from src/pipedream/types/configurable_prop_sql_auth.py rename to src/pipedream/types/validate_token_params.py index 77c72b2..8599aa4 100644 --- a/src/pipedream/types/configurable_prop_sql_auth.py +++ b/src/pipedream/types/validate_token_params.py @@ -6,10 +6,19 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -class ConfigurablePropSqlAuth(UniversalBaseModel): - app: typing.Optional[str] = pydantic.Field(default=None) +class ValidateTokenParams(UniversalBaseModel): """ - The app that provides SQL authentication + Parameters for token validation + """ + + app_id: str = pydantic.Field() + """ + The app ID to validate against + """ + + oauth_app_id: typing.Optional[str] = pydantic.Field(default=None) + """ + The OAuth app ID """ if IS_PYDANTIC_V2: