Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "pipedream"

[tool.poetry]
name = "pipedream"
version = "1.0.4"
version = "1.0.5"
description = ""
readme = "README.md"
authors = []
Expand Down
20 changes: 10 additions & 10 deletions src/pipedream/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
ComponentStash,
ConfigurableProp,
ConfigurablePropAlert,
ConfigurablePropAlertAlertType,
ConfigurablePropAlertType,
ConfigurablePropAny,
ConfigurablePropApp,
ConfigurablePropBoolean,
Expand All @@ -24,9 +24,7 @@
ConfigurablePropStringArray,
ConfigurePropOpts,
ConfigurePropResponse,
ConnectTokenCreateOpts,
ConnectTokenResponse,
CreateBrowserClientOpts,
ConnectToken,
CreateOAuthTokenResponse,
CreateTokenResponse,
DeleteTriggerOpts,
Expand All @@ -51,12 +49,14 @@
PageInfo,
ProjectEnvironment,
ProjectInfoResponse,
ProjectInfoResponseAppsItem,
ProjectInfoResponseApp,
PropOption,
ProxyResponse,
ReloadPropsOpts,
ReloadPropsResponse,
RunActionResponse,
RunActionOptsStashId,
StashId,
StartConnectOpts,
ValidateTokenParams,
ValidateTokenResponse,
Expand Down Expand Up @@ -95,7 +95,7 @@
"ComponentStash",
"ConfigurableProp",
"ConfigurablePropAlert",
"ConfigurablePropAlertAlertType",
"ConfigurablePropAlertType",
"ConfigurablePropAny",
"ConfigurablePropApp",
"ConfigurablePropBoolean",
Expand All @@ -106,9 +106,7 @@
"ConfigurablePropStringArray",
"ConfigurePropOpts",
"ConfigurePropResponse",
"ConnectTokenCreateOpts",
"ConnectTokenResponse",
"CreateBrowserClientOpts",
"ConnectToken",
"CreateOAuthTokenResponse",
"CreateTokenResponse",
"DeleteTriggerOpts",
Expand All @@ -135,12 +133,14 @@
"PipedreamEnvironment",
"ProjectEnvironment",
"ProjectInfoResponse",
"ProjectInfoResponseAppsItem",
"ProjectInfoResponseApp",
"PropOption",
"ProxyResponse",
"ReloadPropsOpts",
"ReloadPropsResponse",
"RunActionResponse",
"RunActionOptsStashId",
"StashId",
"StartConnectOpts",
"ValidateTokenParams",
"ValidateTokenResponse",
Expand Down
3 changes: 0 additions & 3 deletions src/pipedream/actions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@

# isort: skip_file

from .types import RunActionOptsStashId

__all__ = ["RunActionOptsStashId"]
4 changes: 1 addition & 3 deletions src/pipedream/actions/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
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
from .types.run_action_opts_stash_id import RunActionOptsStashId

# this is used as the default value for optional parameters
OMIT = typing.cast(typing.Any, ...)
Expand Down Expand Up @@ -310,7 +310,6 @@ def run(
The ID for dynamic props

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

request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down Expand Up @@ -676,7 +675,6 @@ async def run(
The ID for dynamic props

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

request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down
4 changes: 1 addition & 3 deletions src/pipedream/actions/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
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
from .types.run_action_opts_stash_id import RunActionOptsStashId

# this is used as the default value for optional parameters
OMIT = typing.cast(typing.Any, ...)
Expand Down Expand Up @@ -345,7 +345,6 @@ def run(
The ID for dynamic props

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

request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down Expand Up @@ -715,7 +714,6 @@ async def run(
The ID for dynamic props

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

request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down
7 changes: 0 additions & 7 deletions src/pipedream/actions/types/__init__.py

This file was deleted.

4 changes: 2 additions & 2 deletions src/pipedream/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ def __init__(

def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"User-Agent": "pipedream/1.0.4",
"User-Agent": "pipedream/1.0.5",
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "pipedream",
"X-Fern-SDK-Version": "1.0.4",
"X-Fern-SDK-Version": "1.0.5",
**(self.get_custom_headers() or {}),
}
if self._project_environment is not None:
Expand Down
9 changes: 5 additions & 4 deletions src/pipedream/tokens/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

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
Expand Down Expand Up @@ -90,15 +91,15 @@ def create(

def validate(
self,
ctok: str,
ctok: ConnectToken,
*,
params: typing.Optional[ValidateTokenParams] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> ValidateTokenResponse:
"""
Parameters
----------
ctok : str
ctok : ConnectToken

params : typing.Optional[ValidateTokenParams]

Expand Down Expand Up @@ -213,15 +214,15 @@ async def main() -> None:

async def validate(
self,
ctok: str,
ctok: ConnectToken,
*,
params: typing.Optional[ValidateTokenParams] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> ValidateTokenResponse:
"""
Parameters
----------
ctok : str
ctok : ConnectToken

params : typing.Optional[ValidateTokenParams]

Expand Down
13 changes: 7 additions & 6 deletions src/pipedream/tokens/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
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.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
Expand Down Expand Up @@ -91,15 +92,15 @@ def create(

def validate(
self,
ctok: str,
ctok: ConnectToken,
*,
params: typing.Optional[ValidateTokenParams] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> HttpResponse[ValidateTokenResponse]:
"""
Parameters
----------
ctok : str
ctok : ConnectToken

params : typing.Optional[ValidateTokenParams]

Expand All @@ -112,7 +113,7 @@ def validate(
connect token validated
"""
_response = self._client_wrapper.httpx_client.request(
f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/tokens/{jsonable_encoder(ctok)}/validate",
f"v1/connect/tokens/{jsonable_encoder(ctok)}/validate",
method="GET",
params={
"params": convert_and_respect_annotation_metadata(
Expand Down Expand Up @@ -210,15 +211,15 @@ async def create(

async def validate(
self,
ctok: str,
ctok: ConnectToken,
*,
params: typing.Optional[ValidateTokenParams] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> AsyncHttpResponse[ValidateTokenResponse]:
"""
Parameters
----------
ctok : str
ctok : ConnectToken

params : typing.Optional[ValidateTokenParams]

Expand All @@ -231,7 +232,7 @@ async def validate(
connect token validated
"""
_response = await self._client_wrapper.httpx_client.request(
f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/tokens/{jsonable_encoder(ctok)}/validate",
f"v1/connect/tokens/{jsonable_encoder(ctok)}/validate",
method="GET",
params={
"params": convert_and_respect_annotation_metadata(
Expand Down
20 changes: 10 additions & 10 deletions src/pipedream/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .component_stash import ComponentStash
from .configurable_prop import ConfigurableProp
from .configurable_prop_alert import ConfigurablePropAlert
from .configurable_prop_alert_alert_type import ConfigurablePropAlertAlertType
from .configurable_prop_alert_type import ConfigurablePropAlertType
from .configurable_prop_any import ConfigurablePropAny
from .configurable_prop_app import ConfigurablePropApp
from .configurable_prop_boolean import ConfigurablePropBoolean
Expand All @@ -23,9 +23,7 @@
from .configurable_prop_string_array import ConfigurablePropStringArray
from .configure_prop_opts import ConfigurePropOpts
from .configure_prop_response import ConfigurePropResponse
from .connect_token_create_opts import ConnectTokenCreateOpts
from .connect_token_response import ConnectTokenResponse
from .create_browser_client_opts import CreateBrowserClientOpts
from .connect_token import ConnectToken
from .create_o_auth_token_response import CreateOAuthTokenResponse
from .create_token_response import CreateTokenResponse
from .delete_trigger_opts import DeleteTriggerOpts
Expand All @@ -50,13 +48,15 @@
from .page_info import PageInfo
from .project_environment import ProjectEnvironment
from .project_info_response import ProjectInfoResponse
from .project_info_response_apps_item import ProjectInfoResponseAppsItem
from .project_info_response_app import ProjectInfoResponseApp
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 .validate_token_params import ValidateTokenParams
from .validate_token_response import ValidateTokenResponse

Expand All @@ -71,7 +71,7 @@
"ComponentStash",
"ConfigurableProp",
"ConfigurablePropAlert",
"ConfigurablePropAlertAlertType",
"ConfigurablePropAlertType",
"ConfigurablePropAny",
"ConfigurablePropApp",
"ConfigurablePropBoolean",
Expand All @@ -82,9 +82,7 @@
"ConfigurablePropStringArray",
"ConfigurePropOpts",
"ConfigurePropResponse",
"ConnectTokenCreateOpts",
"ConnectTokenResponse",
"CreateBrowserClientOpts",
"ConnectToken",
"CreateOAuthTokenResponse",
"CreateTokenResponse",
"DeleteTriggerOpts",
Expand All @@ -109,13 +107,15 @@
"PageInfo",
"ProjectEnvironment",
"ProjectInfoResponse",
"ProjectInfoResponseAppsItem",
"ProjectInfoResponseApp",
"PropOption",
"ProxyResponse",
"ReloadPropsOpts",
"ReloadPropsResponse",
"RunActionOptsStashId",
"RunActionResponse",
"StartConnectOpts",
"StashId",
"ValidateTokenParams",
"ValidateTokenResponse",
]
6 changes: 1 addition & 5 deletions src/pipedream/types/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ class App(UniversalBaseModel):
The human-readable name of the app
"""

auth_type: typing.Optional[AppAuthType] = pydantic.Field(default=None)
"""
The authentication type used by the app
"""

auth_type: typing.Optional[AppAuthType] = None
description: typing.Optional[str] = pydantic.Field(default=None)
"""
A short description of the app
Expand Down
5 changes: 1 addition & 4 deletions src/pipedream/types/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ class Component(UniversalBaseModel):
The type of component (trigger or action)
"""

stash: typing.Optional[ComponentStash] = pydantic.Field(default=None)
"""
Indicates if a File Stash ID is optional or required to run the component
"""
stash: typing.Optional[ComponentStash] = None

if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
Expand Down
10 changes: 3 additions & 7 deletions src/pipedream/types/configurable_prop_alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,14 @@
import typing_extensions
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from ..core.serialization import FieldMetadata
from .configurable_prop_alert_alert_type import ConfigurablePropAlertAlertType
from .configurable_prop_alert_type import ConfigurablePropAlertType


class ConfigurablePropAlert(UniversalBaseModel):
type: typing.Optional[typing.Literal["alert"]] = None
alert_type: typing_extensions.Annotated[
typing.Optional[ConfigurablePropAlertAlertType], FieldMetadata(alias="alertType")
] = pydantic.Field(default=None)
"""
The severity level of the alert.
"""

typing.Optional[ConfigurablePropAlertType], FieldMetadata(alias="alertType")
] = None
content: typing.Optional[str] = pydantic.Field(default=None)
"""
The content of the alert, which can include HTML or plain text.
Expand Down
5 changes: 0 additions & 5 deletions src/pipedream/types/configurable_prop_alert_alert_type.py

This file was deleted.

Loading