Skip to content

Commit aedba04

Browse files
committed
SDK regeneration
1 parent 4166610 commit aedba04

File tree

65 files changed

+352
-1110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+352
-1110
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.6"
6+
version = "1.0.7"
77
description = ""
88
readme = "README.md"
99
authors = []

src/pipedream/actions/client.py

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from ..core.request_options import RequestOptions
88
from ..types.component import Component
99
from ..types.configure_prop_response import ConfigurePropResponse
10-
from ..types.configured_props import ConfiguredProps
1110
from ..types.reload_props_response import ReloadPropsResponse
1211
from ..types.run_action_opts_stash_id import RunActionOptsStashId
1312
from ..types.run_action_response import RunActionResponse
@@ -132,7 +131,7 @@ def configure_prop(
132131
external_user_id: str,
133132
prop_name: str,
134133
blocking: typing.Optional[bool] = OMIT,
135-
configured_props: typing.Optional[ConfiguredProps] = OMIT,
134+
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
136135
dynamic_props_id: typing.Optional[str] = OMIT,
137136
page: typing.Optional[float] = OMIT,
138137
prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
@@ -156,7 +155,8 @@ def configure_prop(
156155
blocking : typing.Optional[bool]
157156
Whether this operation should block until completion
158157
159-
configured_props : typing.Optional[ConfiguredProps]
158+
configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
159+
The configured properties for the component
160160
161161
dynamic_props_id : typing.Optional[str]
162162
The ID for dynamic props
@@ -214,7 +214,7 @@ def reload_props(
214214
id: str,
215215
external_user_id: str,
216216
blocking: typing.Optional[bool] = OMIT,
217-
configured_props: typing.Optional[ConfiguredProps] = OMIT,
217+
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
218218
dynamic_props_id: typing.Optional[str] = OMIT,
219219
request_options: typing.Optional[RequestOptions] = None,
220220
) -> ReloadPropsResponse:
@@ -232,7 +232,8 @@ def reload_props(
232232
blocking : typing.Optional[bool]
233233
Whether this operation should block until completion
234234
235-
configured_props : typing.Optional[ConfiguredProps]
235+
configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
236+
The configured properties for the component
236237
237238
dynamic_props_id : typing.Optional[str]
238239
The ID for dynamic props
@@ -275,7 +276,7 @@ def run(
275276
*,
276277
id: str,
277278
external_user_id: str,
278-
configured_props: typing.Optional[ConfiguredProps] = OMIT,
279+
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
279280
dynamic_props_id: typing.Optional[str] = OMIT,
280281
stash_id: typing.Optional[RunActionOptsStashId] = OMIT,
281282
request_options: typing.Optional[RequestOptions] = None,
@@ -291,7 +292,8 @@ def run(
291292
external_user_id : str
292293
The external user ID
293294
294-
configured_props : typing.Optional[ConfiguredProps]
295+
configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
296+
The configured properties for the action
295297
296298
dynamic_props_id : typing.Optional[str]
297299
The ID for dynamic props
@@ -466,7 +468,7 @@ async def configure_prop(
466468
external_user_id: str,
467469
prop_name: str,
468470
blocking: typing.Optional[bool] = OMIT,
469-
configured_props: typing.Optional[ConfiguredProps] = OMIT,
471+
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
470472
dynamic_props_id: typing.Optional[str] = OMIT,
471473
page: typing.Optional[float] = OMIT,
472474
prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
@@ -490,7 +492,8 @@ async def configure_prop(
490492
blocking : typing.Optional[bool]
491493
Whether this operation should block until completion
492494
493-
configured_props : typing.Optional[ConfiguredProps]
495+
configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
496+
The configured properties for the component
494497
495498
dynamic_props_id : typing.Optional[str]
496499
The ID for dynamic props
@@ -556,7 +559,7 @@ async def reload_props(
556559
id: str,
557560
external_user_id: str,
558561
blocking: typing.Optional[bool] = OMIT,
559-
configured_props: typing.Optional[ConfiguredProps] = OMIT,
562+
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
560563
dynamic_props_id: typing.Optional[str] = OMIT,
561564
request_options: typing.Optional[RequestOptions] = None,
562565
) -> ReloadPropsResponse:
@@ -574,7 +577,8 @@ async def reload_props(
574577
blocking : typing.Optional[bool]
575578
Whether this operation should block until completion
576579
577-
configured_props : typing.Optional[ConfiguredProps]
580+
configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
581+
The configured properties for the component
578582
579583
dynamic_props_id : typing.Optional[str]
580584
The ID for dynamic props
@@ -625,7 +629,7 @@ async def run(
625629
*,
626630
id: str,
627631
external_user_id: str,
628-
configured_props: typing.Optional[ConfiguredProps] = OMIT,
632+
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
629633
dynamic_props_id: typing.Optional[str] = OMIT,
630634
stash_id: typing.Optional[RunActionOptsStashId] = OMIT,
631635
request_options: typing.Optional[RequestOptions] = None,
@@ -641,7 +645,8 @@ async def run(
641645
external_user_id : str
642646
The external user ID
643647
644-
configured_props : typing.Optional[ConfiguredProps]
648+
configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
649+
The configured properties for the action
645650
646651
dynamic_props_id : typing.Optional[str]
647652
The ID for dynamic props

src/pipedream/actions/raw_client.py

Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from ..core.serialization import convert_and_respect_annotation_metadata
1414
from ..types.component import Component
1515
from ..types.configure_prop_response import ConfigurePropResponse
16-
from ..types.configured_props import ConfiguredProps
1716
from ..types.get_component_response import GetComponentResponse
1817
from ..types.get_components_response import GetComponentsResponse
1918
from ..types.reload_props_response import ReloadPropsResponse
@@ -156,7 +155,7 @@ def configure_prop(
156155
external_user_id: str,
157156
prop_name: str,
158157
blocking: typing.Optional[bool] = OMIT,
159-
configured_props: typing.Optional[ConfiguredProps] = OMIT,
158+
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
160159
dynamic_props_id: typing.Optional[str] = OMIT,
161160
page: typing.Optional[float] = OMIT,
162161
prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
@@ -180,7 +179,8 @@ def configure_prop(
180179
blocking : typing.Optional[bool]
181180
Whether this operation should block until completion
182181
183-
configured_props : typing.Optional[ConfiguredProps]
182+
configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
183+
The configured properties for the component
184184
185185
dynamic_props_id : typing.Optional[str]
186186
The ID for dynamic props
@@ -210,9 +210,7 @@ def configure_prop(
210210
"external_user_id": external_user_id,
211211
"prop_name": prop_name,
212212
"blocking": blocking,
213-
"configured_props": convert_and_respect_annotation_metadata(
214-
object_=configured_props, annotation=ConfiguredProps, direction="write"
215-
),
213+
"configured_props": configured_props,
216214
"dynamic_props_id": dynamic_props_id,
217215
"page": page,
218216
"prev_context": prev_context,
@@ -245,7 +243,7 @@ def reload_props(
245243
id: str,
246244
external_user_id: str,
247245
blocking: typing.Optional[bool] = OMIT,
248-
configured_props: typing.Optional[ConfiguredProps] = OMIT,
246+
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
249247
dynamic_props_id: typing.Optional[str] = OMIT,
250248
request_options: typing.Optional[RequestOptions] = None,
251249
) -> HttpResponse[ReloadPropsResponse]:
@@ -263,7 +261,8 @@ def reload_props(
263261
blocking : typing.Optional[bool]
264262
Whether this operation should block until completion
265263
266-
configured_props : typing.Optional[ConfiguredProps]
264+
configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
265+
The configured properties for the component
267266
268267
dynamic_props_id : typing.Optional[str]
269268
The ID for dynamic props
@@ -283,9 +282,7 @@ def reload_props(
283282
"id": id,
284283
"external_user_id": external_user_id,
285284
"blocking": blocking,
286-
"configured_props": convert_and_respect_annotation_metadata(
287-
object_=configured_props, annotation=ConfiguredProps, direction="write"
288-
),
285+
"configured_props": configured_props,
289286
"dynamic_props_id": dynamic_props_id,
290287
},
291288
headers={
@@ -314,7 +311,7 @@ def run(
314311
*,
315312
id: str,
316313
external_user_id: str,
317-
configured_props: typing.Optional[ConfiguredProps] = OMIT,
314+
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
318315
dynamic_props_id: typing.Optional[str] = OMIT,
319316
stash_id: typing.Optional[RunActionOptsStashId] = OMIT,
320317
request_options: typing.Optional[RequestOptions] = None,
@@ -330,7 +327,8 @@ def run(
330327
external_user_id : str
331328
The external user ID
332329
333-
configured_props : typing.Optional[ConfiguredProps]
330+
configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
331+
The configured properties for the action
334332
335333
dynamic_props_id : typing.Optional[str]
336334
The ID for dynamic props
@@ -351,9 +349,7 @@ def run(
351349
json={
352350
"id": id,
353351
"external_user_id": external_user_id,
354-
"configured_props": convert_and_respect_annotation_metadata(
355-
object_=configured_props, annotation=ConfiguredProps, direction="write"
356-
),
352+
"configured_props": configured_props,
357353
"dynamic_props_id": dynamic_props_id,
358354
"stash_id": convert_and_respect_annotation_metadata(
359355
object_=stash_id, annotation=RunActionOptsStashId, direction="write"
@@ -516,7 +512,7 @@ async def configure_prop(
516512
external_user_id: str,
517513
prop_name: str,
518514
blocking: typing.Optional[bool] = OMIT,
519-
configured_props: typing.Optional[ConfiguredProps] = OMIT,
515+
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
520516
dynamic_props_id: typing.Optional[str] = OMIT,
521517
page: typing.Optional[float] = OMIT,
522518
prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
@@ -540,7 +536,8 @@ async def configure_prop(
540536
blocking : typing.Optional[bool]
541537
Whether this operation should block until completion
542538
543-
configured_props : typing.Optional[ConfiguredProps]
539+
configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
540+
The configured properties for the component
544541
545542
dynamic_props_id : typing.Optional[str]
546543
The ID for dynamic props
@@ -570,9 +567,7 @@ async def configure_prop(
570567
"external_user_id": external_user_id,
571568
"prop_name": prop_name,
572569
"blocking": blocking,
573-
"configured_props": convert_and_respect_annotation_metadata(
574-
object_=configured_props, annotation=ConfiguredProps, direction="write"
575-
),
570+
"configured_props": configured_props,
576571
"dynamic_props_id": dynamic_props_id,
577572
"page": page,
578573
"prev_context": prev_context,
@@ -605,7 +600,7 @@ async def reload_props(
605600
id: str,
606601
external_user_id: str,
607602
blocking: typing.Optional[bool] = OMIT,
608-
configured_props: typing.Optional[ConfiguredProps] = OMIT,
603+
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
609604
dynamic_props_id: typing.Optional[str] = OMIT,
610605
request_options: typing.Optional[RequestOptions] = None,
611606
) -> AsyncHttpResponse[ReloadPropsResponse]:
@@ -623,7 +618,8 @@ async def reload_props(
623618
blocking : typing.Optional[bool]
624619
Whether this operation should block until completion
625620
626-
configured_props : typing.Optional[ConfiguredProps]
621+
configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
622+
The configured properties for the component
627623
628624
dynamic_props_id : typing.Optional[str]
629625
The ID for dynamic props
@@ -643,9 +639,7 @@ async def reload_props(
643639
"id": id,
644640
"external_user_id": external_user_id,
645641
"blocking": blocking,
646-
"configured_props": convert_and_respect_annotation_metadata(
647-
object_=configured_props, annotation=ConfiguredProps, direction="write"
648-
),
642+
"configured_props": configured_props,
649643
"dynamic_props_id": dynamic_props_id,
650644
},
651645
headers={
@@ -674,7 +668,7 @@ async def run(
674668
*,
675669
id: str,
676670
external_user_id: str,
677-
configured_props: typing.Optional[ConfiguredProps] = OMIT,
671+
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
678672
dynamic_props_id: typing.Optional[str] = OMIT,
679673
stash_id: typing.Optional[RunActionOptsStashId] = OMIT,
680674
request_options: typing.Optional[RequestOptions] = None,
@@ -690,7 +684,8 @@ async def run(
690684
external_user_id : str
691685
The external user ID
692686
693-
configured_props : typing.Optional[ConfiguredProps]
687+
configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
688+
The configured properties for the action
694689
695690
dynamic_props_id : typing.Optional[str]
696691
The ID for dynamic props
@@ -711,9 +706,7 @@ async def run(
711706
json={
712707
"id": id,
713708
"external_user_id": external_user_id,
714-
"configured_props": convert_and_respect_annotation_metadata(
715-
object_=configured_props, annotation=ConfiguredProps, direction="write"
716-
),
709+
"configured_props": configured_props,
717710
"dynamic_props_id": dynamic_props_id,
718711
"stash_id": convert_and_respect_annotation_metadata(
719712
object_=stash_id, annotation=RunActionOptsStashId, direction="write"

src/pipedream/apps/__init__.py

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,6 @@
22

33
# isort: skip_file
44

5-
import typing
6-
from importlib import import_module
7-
8-
if typing.TYPE_CHECKING:
9-
from .types import AppsListRequestSortDirection, AppsListRequestSortKey
10-
_dynamic_imports: typing.Dict[str, str] = {"AppsListRequestSortDirection": ".types", "AppsListRequestSortKey": ".types"}
11-
12-
13-
def __getattr__(attr_name: str) -> typing.Any:
14-
module_name = _dynamic_imports.get(attr_name)
15-
if module_name is None:
16-
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
17-
try:
18-
module = import_module(module_name, __package__)
19-
result = getattr(module, attr_name)
20-
return result
21-
except ImportError as e:
22-
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
23-
except AttributeError as e:
24-
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
25-
26-
27-
def __dir__():
28-
lazy_attrs = list(_dynamic_imports.keys())
29-
return sorted(lazy_attrs)
30-
5+
from .types import AppsListRequestSortDirection, AppsListRequestSortKey
316

327
__all__ = ["AppsListRequestSortDirection", "AppsListRequestSortKey"]

src/pipedream/apps/types/__init__.py

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,7 @@
22

33
# isort: skip_file
44

5-
import typing
6-
from importlib import import_module
7-
8-
if typing.TYPE_CHECKING:
9-
from .apps_list_request_sort_direction import AppsListRequestSortDirection
10-
from .apps_list_request_sort_key import AppsListRequestSortKey
11-
_dynamic_imports: typing.Dict[str, str] = {
12-
"AppsListRequestSortDirection": ".apps_list_request_sort_direction",
13-
"AppsListRequestSortKey": ".apps_list_request_sort_key",
14-
}
15-
16-
17-
def __getattr__(attr_name: str) -> typing.Any:
18-
module_name = _dynamic_imports.get(attr_name)
19-
if module_name is None:
20-
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
21-
try:
22-
module = import_module(module_name, __package__)
23-
result = getattr(module, attr_name)
24-
return result
25-
except ImportError as e:
26-
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
27-
except AttributeError as e:
28-
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
29-
30-
31-
def __dir__():
32-
lazy_attrs = list(_dynamic_imports.keys())
33-
return sorted(lazy_attrs)
34-
5+
from .apps_list_request_sort_direction import AppsListRequestSortDirection
6+
from .apps_list_request_sort_key import AppsListRequestSortKey
357

368
__all__ = ["AppsListRequestSortDirection", "AppsListRequestSortKey"]

0 commit comments

Comments
 (0)