Skip to content

Commit 9388358

Browse files
committed
SDK regeneration
1 parent 504c1df commit 9388358

22 files changed

+74
-168
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "pipedream"
33

44
[tool.poetry]
55
name = "pipedream"
6-
version = "1.0.4"
6+
version = "1.0.5"
77
description = ""
88
readme = "README.md"
99
authors = []

src/pipedream/actions/types/run_action_opts_stash_id.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
import typing
44

5-
RunActionOptsStashId = typing.Union[str, bool]
5+
from ...types.stash_id import StashId
6+
7+
RunActionOptsStashId = typing.Union[typing.Optional[StashId], typing.Literal["NEW"], bool]

src/pipedream/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import typing
55

66
import httpx
7-
from .types.project_environment import ProjectEnvironment
7+
from ._.types.project_environment import ProjectEnvironment
88
from .accounts.client import AccountsClient, AsyncAccountsClient
99
from .actions.client import ActionsClient, AsyncActionsClient
1010
from .app_categories.client import AppCategoriesClient, AsyncAppCategoriesClient

src/pipedream/core/client_wrapper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import typing
44

55
import httpx
6-
from ..types.project_environment import ProjectEnvironment
6+
from .._.types.project_environment import ProjectEnvironment
77
from .http_client import AsyncHttpClient, HttpClient
88

99

@@ -27,10 +27,10 @@ def __init__(
2727

2828
def get_headers(self) -> typing.Dict[str, str]:
2929
headers: typing.Dict[str, str] = {
30-
"User-Agent": "pipedream/1.0.4",
30+
"User-Agent": "pipedream/1.0.5",
3131
"X-Fern-Language": "Python",
3232
"X-Fern-SDK-Name": "pipedream",
33-
"X-Fern-SDK-Version": "1.0.4",
33+
"X-Fern-SDK-Version": "1.0.5",
3434
**(self.get_custom_headers() or {}),
3535
}
3636
if self._project_environment is not None:

src/pipedream/tokens/client.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
66
from ..core.request_options import RequestOptions
7+
from ..types.connect_token import ConnectToken
78
from ..types.create_token_response import CreateTokenResponse
89
from ..types.validate_token_params import ValidateTokenParams
910
from ..types.validate_token_response import ValidateTokenResponse
@@ -90,15 +91,15 @@ def create(
9091

9192
def validate(
9293
self,
93-
ctok: str,
94+
ctok: ConnectToken,
9495
*,
9596
params: typing.Optional[ValidateTokenParams] = None,
9697
request_options: typing.Optional[RequestOptions] = None,
9798
) -> ValidateTokenResponse:
9899
"""
99100
Parameters
100101
----------
101-
ctok : str
102+
ctok : ConnectToken
102103
103104
params : typing.Optional[ValidateTokenParams]
104105
@@ -213,15 +214,15 @@ async def main() -> None:
213214

214215
async def validate(
215216
self,
216-
ctok: str,
217+
ctok: ConnectToken,
217218
*,
218219
params: typing.Optional[ValidateTokenParams] = None,
219220
request_options: typing.Optional[RequestOptions] = None,
220221
) -> ValidateTokenResponse:
221222
"""
222223
Parameters
223224
----------
224-
ctok : str
225+
ctok : ConnectToken
225226
226227
params : typing.Optional[ValidateTokenParams]
227228

src/pipedream/tokens/raw_client.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from ..core.pydantic_utilities import parse_obj_as
1111
from ..core.request_options import RequestOptions
1212
from ..core.serialization import convert_and_respect_annotation_metadata
13+
from ..types.connect_token import ConnectToken
1314
from ..types.create_token_response import CreateTokenResponse
1415
from ..types.validate_token_params import ValidateTokenParams
1516
from ..types.validate_token_response import ValidateTokenResponse
@@ -91,15 +92,15 @@ def create(
9192

9293
def validate(
9394
self,
94-
ctok: str,
95+
ctok: ConnectToken,
9596
*,
9697
params: typing.Optional[ValidateTokenParams] = None,
9798
request_options: typing.Optional[RequestOptions] = None,
9899
) -> HttpResponse[ValidateTokenResponse]:
99100
"""
100101
Parameters
101102
----------
102-
ctok : str
103+
ctok : ConnectToken
103104
104105
params : typing.Optional[ValidateTokenParams]
105106
@@ -112,7 +113,7 @@ def validate(
112113
connect token validated
113114
"""
114115
_response = self._client_wrapper.httpx_client.request(
115-
f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/tokens/{jsonable_encoder(ctok)}/validate",
116+
f"v1/connect/tokens/{jsonable_encoder(ctok)}/validate",
116117
method="GET",
117118
params={
118119
"params": convert_and_respect_annotation_metadata(
@@ -210,15 +211,15 @@ async def create(
210211

211212
async def validate(
212213
self,
213-
ctok: str,
214+
ctok: ConnectToken,
214215
*,
215216
params: typing.Optional[ValidateTokenParams] = None,
216217
request_options: typing.Optional[RequestOptions] = None,
217218
) -> AsyncHttpResponse[ValidateTokenResponse]:
218219
"""
219220
Parameters
220221
----------
221-
ctok : str
222+
ctok : ConnectToken
222223
223224
params : typing.Optional[ValidateTokenParams]
224225
@@ -231,7 +232,7 @@ async def validate(
231232
connect token validated
232233
"""
233234
_response = await self._client_wrapper.httpx_client.request(
234-
f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/tokens/{jsonable_encoder(ctok)}/validate",
235+
f"v1/connect/tokens/{jsonable_encoder(ctok)}/validate",
235236
method="GET",
236237
params={
237238
"params": convert_and_respect_annotation_metadata(

src/pipedream/types/__init__.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from .component_stash import ComponentStash
1313
from .configurable_prop import ConfigurableProp
1414
from .configurable_prop_alert import ConfigurablePropAlert
15-
from .configurable_prop_alert_alert_type import ConfigurablePropAlertAlertType
15+
from .configurable_prop_alert_type import ConfigurablePropAlertType
1616
from .configurable_prop_any import ConfigurablePropAny
1717
from .configurable_prop_app import ConfigurablePropApp
1818
from .configurable_prop_boolean import ConfigurablePropBoolean
@@ -23,9 +23,7 @@
2323
from .configurable_prop_string_array import ConfigurablePropStringArray
2424
from .configure_prop_opts import ConfigurePropOpts
2525
from .configure_prop_response import ConfigurePropResponse
26-
from .connect_token_create_opts import ConnectTokenCreateOpts
27-
from .connect_token_response import ConnectTokenResponse
28-
from .create_browser_client_opts import CreateBrowserClientOpts
26+
from .connect_token import ConnectToken
2927
from .create_o_auth_token_response import CreateOAuthTokenResponse
3028
from .create_token_response import CreateTokenResponse
3129
from .delete_trigger_opts import DeleteTriggerOpts
@@ -50,13 +48,14 @@
5048
from .page_info import PageInfo
5149
from .project_environment import ProjectEnvironment
5250
from .project_info_response import ProjectInfoResponse
53-
from .project_info_response_apps_item import ProjectInfoResponseAppsItem
51+
from .project_info_response_app import ProjectInfoResponseApp
5452
from .prop_option import PropOption
5553
from .proxy_response import ProxyResponse
5654
from .reload_props_opts import ReloadPropsOpts
5755
from .reload_props_response import ReloadPropsResponse
5856
from .run_action_response import RunActionResponse
5957
from .start_connect_opts import StartConnectOpts
58+
from .stash_id import StashId
6059
from .validate_token_params import ValidateTokenParams
6160
from .validate_token_response import ValidateTokenResponse
6261

@@ -71,7 +70,7 @@
7170
"ComponentStash",
7271
"ConfigurableProp",
7372
"ConfigurablePropAlert",
74-
"ConfigurablePropAlertAlertType",
73+
"ConfigurablePropAlertType",
7574
"ConfigurablePropAny",
7675
"ConfigurablePropApp",
7776
"ConfigurablePropBoolean",
@@ -82,9 +81,7 @@
8281
"ConfigurablePropStringArray",
8382
"ConfigurePropOpts",
8483
"ConfigurePropResponse",
85-
"ConnectTokenCreateOpts",
86-
"ConnectTokenResponse",
87-
"CreateBrowserClientOpts",
84+
"ConnectToken",
8885
"CreateOAuthTokenResponse",
8986
"CreateTokenResponse",
9087
"DeleteTriggerOpts",
@@ -109,13 +106,14 @@
109106
"PageInfo",
110107
"ProjectEnvironment",
111108
"ProjectInfoResponse",
112-
"ProjectInfoResponseAppsItem",
109+
"ProjectInfoResponseApp",
113110
"PropOption",
114111
"ProxyResponse",
115112
"ReloadPropsOpts",
116113
"ReloadPropsResponse",
117114
"RunActionResponse",
118115
"StartConnectOpts",
116+
"StashId",
119117
"ValidateTokenParams",
120118
"ValidateTokenResponse",
121119
]

src/pipedream/types/app.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ class App(UniversalBaseModel):
2727
The human-readable name of the app
2828
"""
2929

30-
auth_type: typing.Optional[AppAuthType] = pydantic.Field(default=None)
31-
"""
32-
The authentication type used by the app
33-
"""
34-
30+
auth_type: typing.Optional[AppAuthType] = None
3531
description: typing.Optional[str] = pydantic.Field(default=None)
3632
"""
3733
A short description of the app

src/pipedream/types/component.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ class Component(UniversalBaseModel):
3535
The type of component (trigger or action)
3636
"""
3737

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

4340
if IS_PYDANTIC_V2:
4441
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

src/pipedream/types/configurable_prop_alert.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,14 @@
66
import typing_extensions
77
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
88
from ..core.serialization import FieldMetadata
9-
from .configurable_prop_alert_alert_type import ConfigurablePropAlertAlertType
9+
from .configurable_prop_alert_type import ConfigurablePropAlertType
1010

1111

1212
class ConfigurablePropAlert(UniversalBaseModel):
1313
type: typing.Optional[typing.Literal["alert"]] = None
1414
alert_type: typing_extensions.Annotated[
15-
typing.Optional[ConfigurablePropAlertAlertType], FieldMetadata(alias="alertType")
16-
] = pydantic.Field(default=None)
17-
"""
18-
The severity level of the alert.
19-
"""
20-
15+
typing.Optional[ConfigurablePropAlertType], FieldMetadata(alias="alertType")
16+
] = None
2117
content: typing.Optional[str] = pydantic.Field(default=None)
2218
"""
2319
The content of the alert, which can include HTML or plain text.

0 commit comments

Comments
 (0)