Skip to content

Commit 48df918

Browse files
committed
SDK regeneration
1 parent 504c1df commit 48df918

19 files changed

+62
-163
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/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: 6 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,7 +48,7 @@
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
@@ -71,7 +69,7 @@
7169
"ComponentStash",
7270
"ConfigurableProp",
7371
"ConfigurablePropAlert",
74-
"ConfigurablePropAlertAlertType",
72+
"ConfigurablePropAlertType",
7573
"ConfigurablePropAny",
7674
"ConfigurablePropApp",
7775
"ConfigurablePropBoolean",
@@ -82,9 +80,7 @@
8280
"ConfigurablePropStringArray",
8381
"ConfigurePropOpts",
8482
"ConfigurePropResponse",
85-
"ConnectTokenCreateOpts",
86-
"ConnectTokenResponse",
87-
"CreateBrowserClientOpts",
83+
"ConnectToken",
8884
"CreateOAuthTokenResponse",
8985
"CreateTokenResponse",
9086
"DeleteTriggerOpts",
@@ -109,7 +105,7 @@
109105
"PageInfo",
110106
"ProjectEnvironment",
111107
"ProjectInfoResponse",
112-
"ProjectInfoResponseAppsItem",
108+
"ProjectInfoResponseApp",
113109
"PropOption",
114110
"ProxyResponse",
115111
"ReloadPropsOpts",

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.

src/pipedream/types/configurable_prop_alert_alert_type.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)