Skip to content

🌿 Fern Regeneration -- August 8, 2025 #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
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"]
11 changes: 0 additions & 11 deletions src/pipedream/actions/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from ..types.reload_props_response import ReloadPropsResponse
from ..types.run_action_response import RunActionResponse
from .raw_client import AsyncRawActionsClient, RawActionsClient
from .types.run_action_opts_stash_id import RunActionOptsStashId

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

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

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

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

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

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

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

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

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

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

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

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

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

Expand All @@ -733,9 +720,6 @@ async def run(
"external_user_id": external_user_id,
"configured_props": configured_props,
"dynamic_props_id": dynamic_props_id,
"stash_id": convert_and_respect_annotation_metadata(
object_=stash_id, annotation=RunActionOptsStashId, direction="write"
),
},
headers={
"content-type": "application/json",
Expand Down
7 changes: 0 additions & 7 deletions src/pipedream/actions/types/__init__.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/pipedream/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/pipedream/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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
16 changes: 6 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,7 +48,7 @@
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
Expand All @@ -71,7 +69,7 @@
"ComponentStash",
"ConfigurableProp",
"ConfigurablePropAlert",
"ConfigurablePropAlertAlertType",
"ConfigurablePropAlertType",
"ConfigurablePropAny",
"ConfigurablePropApp",
"ConfigurablePropBoolean",
Expand All @@ -82,9 +80,7 @@
"ConfigurablePropStringArray",
"ConfigurePropOpts",
"ConfigurePropResponse",
"ConnectTokenCreateOpts",
"ConnectTokenResponse",
"CreateBrowserClientOpts",
"ConnectToken",
"CreateOAuthTokenResponse",
"CreateTokenResponse",
"DeleteTriggerOpts",
Expand All @@ -109,7 +105,7 @@
"PageInfo",
"ProjectEnvironment",
"ProjectInfoResponse",
"ProjectInfoResponseAppsItem",
"ProjectInfoResponseApp",
"PropOption",
"ProxyResponse",
"ReloadPropsOpts",
Expand Down
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
2 changes: 1 addition & 1 deletion src/pipedream/types/configurable_prop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down
Loading
Loading