Skip to content

Commit 05ded01

Browse files
committed
SDK regeneration
1 parent 497b259 commit 05ded01

32 files changed

+174
-110
lines changed

src/pipedream/actions/client.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from ..types.component import Component
99
from ..types.configure_prop_response import ConfigurePropResponse
1010
from ..types.reload_props_response import ReloadPropsResponse
11-
from ..types.run_action_opts_stash_id import RunActionOptsStashId
1211
from ..types.run_action_response import RunActionResponse
1312
from .raw_client import AsyncRawActionsClient, RawActionsClient
1413

@@ -289,7 +288,6 @@ def run(
289288
async_handle: typing.Optional[str] = None,
290289
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
291290
dynamic_props_id: typing.Optional[str] = OMIT,
292-
stash_id: typing.Optional[RunActionOptsStashId] = OMIT,
293291
request_options: typing.Optional[RequestOptions] = None,
294292
) -> RunActionResponse:
295293
"""
@@ -309,8 +307,6 @@ def run(
309307
dynamic_props_id : typing.Optional[str]
310308
The ID for dynamic props
311309
312-
stash_id : typing.Optional[RunActionOptsStashId]
313-
314310
request_options : typing.Optional[RequestOptions]
315311
Request-specific configuration.
316312
@@ -340,7 +336,6 @@ def run(
340336
async_handle=async_handle,
341337
configured_props=configured_props,
342338
dynamic_props_id=dynamic_props_id,
343-
stash_id=stash_id,
344339
request_options=request_options,
345340
)
346341
return _response.data
@@ -654,7 +649,6 @@ async def run(
654649
async_handle: typing.Optional[str] = None,
655650
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
656651
dynamic_props_id: typing.Optional[str] = OMIT,
657-
stash_id: typing.Optional[RunActionOptsStashId] = OMIT,
658652
request_options: typing.Optional[RequestOptions] = None,
659653
) -> RunActionResponse:
660654
"""
@@ -674,8 +668,6 @@ async def run(
674668
dynamic_props_id : typing.Optional[str]
675669
The ID for dynamic props
676670
677-
stash_id : typing.Optional[RunActionOptsStashId]
678-
679671
request_options : typing.Optional[RequestOptions]
680672
Request-specific configuration.
681673
@@ -713,7 +705,6 @@ async def main() -> None:
713705
async_handle=async_handle,
714706
configured_props=configured_props,
715707
dynamic_props_id=dynamic_props_id,
716-
stash_id=stash_id,
717708
request_options=request_options,
718709
)
719710
return _response.data

src/pipedream/actions/raw_client.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@
1010
from ..core.pagination import AsyncPager, BaseHttpResponse, SyncPager
1111
from ..core.pydantic_utilities import parse_obj_as
1212
from ..core.request_options import RequestOptions
13-
from ..core.serialization import convert_and_respect_annotation_metadata
1413
from ..types.component import Component
1514
from ..types.configure_prop_response import ConfigurePropResponse
1615
from ..types.get_component_response import GetComponentResponse
1716
from ..types.get_components_response import GetComponentsResponse
1817
from ..types.reload_props_response import ReloadPropsResponse
19-
from ..types.run_action_opts_stash_id import RunActionOptsStashId
2018
from ..types.run_action_response import RunActionResponse
2119

2220
# this is used as the default value for optional parameters
@@ -324,7 +322,6 @@ def run(
324322
async_handle: typing.Optional[str] = None,
325323
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
326324
dynamic_props_id: typing.Optional[str] = OMIT,
327-
stash_id: typing.Optional[RunActionOptsStashId] = OMIT,
328325
request_options: typing.Optional[RequestOptions] = None,
329326
) -> HttpResponse[RunActionResponse]:
330327
"""
@@ -344,8 +341,6 @@ def run(
344341
dynamic_props_id : typing.Optional[str]
345342
The ID for dynamic props
346343
347-
stash_id : typing.Optional[RunActionOptsStashId]
348-
349344
request_options : typing.Optional[RequestOptions]
350345
Request-specific configuration.
351346
@@ -362,9 +357,6 @@ def run(
362357
"external_user_id": external_user_id,
363358
"configured_props": configured_props,
364359
"dynamic_props_id": dynamic_props_id,
365-
"stash_id": convert_and_respect_annotation_metadata(
366-
object_=stash_id, annotation=RunActionOptsStashId, direction="write"
367-
),
368360
},
369361
headers={
370362
"content-type": "application/json",
@@ -693,7 +685,6 @@ async def run(
693685
async_handle: typing.Optional[str] = None,
694686
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
695687
dynamic_props_id: typing.Optional[str] = OMIT,
696-
stash_id: typing.Optional[RunActionOptsStashId] = OMIT,
697688
request_options: typing.Optional[RequestOptions] = None,
698689
) -> AsyncHttpResponse[RunActionResponse]:
699690
"""
@@ -713,8 +704,6 @@ async def run(
713704
dynamic_props_id : typing.Optional[str]
714705
The ID for dynamic props
715706
716-
stash_id : typing.Optional[RunActionOptsStashId]
717-
718707
request_options : typing.Optional[RequestOptions]
719708
Request-specific configuration.
720709
@@ -731,9 +720,6 @@ async def run(
731720
"external_user_id": external_user_id,
732721
"configured_props": configured_props,
733722
"dynamic_props_id": dynamic_props_id,
734-
"stash_id": convert_and_respect_annotation_metadata(
735-
object_=stash_id, annotation=RunActionOptsStashId, direction="write"
736-
),
737723
},
738724
headers={
739725
"content-type": "application/json",

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: 1 addition & 1 deletion
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

src/pipedream/tokens/client.py

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

55
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
66
from ..core.request_options import RequestOptions
7-
from ..types.connect_token import ConnectToken
87
from ..types.create_token_response import CreateTokenResponse
98
from ..types.validate_token_params import ValidateTokenParams
109
from ..types.validate_token_response import ValidateTokenResponse
@@ -91,15 +90,15 @@ def create(
9190

9291
def validate(
9392
self,
94-
ctok: ConnectToken,
93+
ctok: str,
9594
*,
9695
params: typing.Optional[ValidateTokenParams] = None,
9796
request_options: typing.Optional[RequestOptions] = None,
9897
) -> ValidateTokenResponse:
9998
"""
10099
Parameters
101100
----------
102-
ctok : ConnectToken
101+
ctok : str
103102
104103
params : typing.Optional[ValidateTokenParams]
105104
@@ -214,15 +213,15 @@ async def main() -> None:
214213

215214
async def validate(
216215
self,
217-
ctok: ConnectToken,
216+
ctok: str,
218217
*,
219218
params: typing.Optional[ValidateTokenParams] = None,
220219
request_options: typing.Optional[RequestOptions] = None,
221220
) -> ValidateTokenResponse:
222221
"""
223222
Parameters
224223
----------
225-
ctok : ConnectToken
224+
ctok : str
226225
227226
params : typing.Optional[ValidateTokenParams]
228227

src/pipedream/tokens/raw_client.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
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
1413
from ..types.create_token_response import CreateTokenResponse
1514
from ..types.validate_token_params import ValidateTokenParams
1615
from ..types.validate_token_response import ValidateTokenResponse
@@ -92,15 +91,15 @@ def create(
9291

9392
def validate(
9493
self,
95-
ctok: ConnectToken,
94+
ctok: str,
9695
*,
9796
params: typing.Optional[ValidateTokenParams] = None,
9897
request_options: typing.Optional[RequestOptions] = None,
9998
) -> HttpResponse[ValidateTokenResponse]:
10099
"""
101100
Parameters
102101
----------
103-
ctok : ConnectToken
102+
ctok : str
104103
105104
params : typing.Optional[ValidateTokenParams]
106105
@@ -113,7 +112,7 @@ def validate(
113112
connect token validated
114113
"""
115114
_response = self._client_wrapper.httpx_client.request(
116-
f"v1/connect/tokens/{jsonable_encoder(ctok)}/validate",
115+
f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/tokens/{jsonable_encoder(ctok)}/validate",
117116
method="GET",
118117
params={
119118
"params": convert_and_respect_annotation_metadata(
@@ -211,15 +210,15 @@ async def create(
211210

212211
async def validate(
213212
self,
214-
ctok: ConnectToken,
213+
ctok: str,
215214
*,
216215
params: typing.Optional[ValidateTokenParams] = None,
217216
request_options: typing.Optional[RequestOptions] = None,
218217
) -> AsyncHttpResponse[ValidateTokenResponse]:
219218
"""
220219
Parameters
221220
----------
222-
ctok : ConnectToken
221+
ctok : str
223222
224223
params : typing.Optional[ValidateTokenParams]
225224
@@ -232,7 +231,7 @@ async def validate(
232231
connect token validated
233232
"""
234233
_response = await self._client_wrapper.httpx_client.request(
235-
f"v1/connect/tokens/{jsonable_encoder(ctok)}/validate",
234+
f"v1/connect/{jsonable_encoder(self._client_wrapper._project_id)}/tokens/{jsonable_encoder(ctok)}/validate",
236235
method="GET",
237236
params={
238237
"params": convert_and_respect_annotation_metadata(

src/pipedream/types/__init__.py

Lines changed: 10 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_type import ConfigurablePropAlertType
15+
from .configurable_prop_alert_alert_type import ConfigurablePropAlertAlertType
1616
from .configurable_prop_any import ConfigurablePropAny
1717
from .configurable_prop_app import ConfigurablePropApp
1818
from .configurable_prop_boolean import ConfigurablePropBoolean
@@ -23,7 +23,9 @@
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 import ConnectToken
26+
from .connect_token_create_opts import ConnectTokenCreateOpts
27+
from .connect_token_response import ConnectTokenResponse
28+
from .create_browser_client_opts import CreateBrowserClientOpts
2729
from .create_o_auth_token_response import CreateOAuthTokenResponse
2830
from .create_token_response import CreateTokenResponse
2931
from .delete_trigger_opts import DeleteTriggerOpts
@@ -48,15 +50,13 @@
4850
from .page_info import PageInfo
4951
from .project_environment import ProjectEnvironment
5052
from .project_info_response import ProjectInfoResponse
51-
from .project_info_response_app import ProjectInfoResponseApp
53+
from .project_info_response_apps_item import ProjectInfoResponseAppsItem
5254
from .prop_option import PropOption
5355
from .proxy_response import ProxyResponse
5456
from .reload_props_opts import ReloadPropsOpts
5557
from .reload_props_response import ReloadPropsResponse
56-
from .run_action_opts_stash_id import RunActionOptsStashId
5758
from .run_action_response import RunActionResponse
5859
from .start_connect_opts import StartConnectOpts
59-
from .stash_id import StashId
6060
from .validate_token_params import ValidateTokenParams
6161
from .validate_token_response import ValidateTokenResponse
6262

@@ -71,7 +71,7 @@
7171
"ComponentStash",
7272
"ConfigurableProp",
7373
"ConfigurablePropAlert",
74-
"ConfigurablePropAlertType",
74+
"ConfigurablePropAlertAlertType",
7575
"ConfigurablePropAny",
7676
"ConfigurablePropApp",
7777
"ConfigurablePropBoolean",
@@ -82,7 +82,9 @@
8282
"ConfigurablePropStringArray",
8383
"ConfigurePropOpts",
8484
"ConfigurePropResponse",
85-
"ConnectToken",
85+
"ConnectTokenCreateOpts",
86+
"ConnectTokenResponse",
87+
"CreateBrowserClientOpts",
8688
"CreateOAuthTokenResponse",
8789
"CreateTokenResponse",
8890
"DeleteTriggerOpts",
@@ -107,15 +109,13 @@
107109
"PageInfo",
108110
"ProjectEnvironment",
109111
"ProjectInfoResponse",
110-
"ProjectInfoResponseApp",
112+
"ProjectInfoResponseAppsItem",
111113
"PropOption",
112114
"ProxyResponse",
113115
"ReloadPropsOpts",
114116
"ReloadPropsResponse",
115-
"RunActionOptsStashId",
116117
"RunActionResponse",
117118
"StartConnectOpts",
118-
"StashId",
119119
"ValidateTokenParams",
120120
"ValidateTokenResponse",
121121
]

src/pipedream/types/app.py

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

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

src/pipedream/types/component.py

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

38-
stash: typing.Optional[ComponentStash] = None
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+
"""
3942

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

src/pipedream/types/configurable_prop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ConfigurableProp(UniversalBaseModel):
1313
A configuration or input field for a component.
1414
"""
1515

16-
name: str = pydantic.Field()
16+
name: typing.Optional[str] = pydantic.Field(default=None)
1717
"""
1818
When building `configuredProps`, make sure to use this field as the key when setting the prop value
1919
"""

0 commit comments

Comments
 (0)