13
13
from ..core .serialization import convert_and_respect_annotation_metadata
14
14
from ..types .component import Component
15
15
from ..types .configure_prop_response import ConfigurePropResponse
16
+ from ..types .configured_props import ConfiguredProps
16
17
from ..types .get_component_response import GetComponentResponse
17
18
from ..types .get_components_response import GetComponentsResponse
18
19
from ..types .reload_props_response import ReloadPropsResponse
@@ -155,7 +156,7 @@ def configure_prop(
155
156
external_user_id : str ,
156
157
prop_name : str ,
157
158
blocking : typing .Optional [bool ] = OMIT ,
158
- configured_props : typing .Optional [typing . Dict [ str , typing . Optional [ typing . Any ]] ] = OMIT ,
159
+ configured_props : typing .Optional [ConfiguredProps ] = OMIT ,
159
160
dynamic_props_id : typing .Optional [str ] = OMIT ,
160
161
page : typing .Optional [float ] = OMIT ,
161
162
prev_context : typing .Optional [typing .Dict [str , typing .Optional [typing .Any ]]] = OMIT ,
@@ -179,8 +180,7 @@ def configure_prop(
179
180
blocking : typing.Optional[bool]
180
181
Whether this operation should block until completion
181
182
182
- configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
183
- The configured properties for the component
183
+ configured_props : typing.Optional[ConfiguredProps]
184
184
185
185
dynamic_props_id : typing.Optional[str]
186
186
The ID for dynamic props
@@ -210,7 +210,9 @@ def configure_prop(
210
210
"external_user_id" : external_user_id ,
211
211
"prop_name" : prop_name ,
212
212
"blocking" : blocking ,
213
- "configured_props" : configured_props ,
213
+ "configured_props" : convert_and_respect_annotation_metadata (
214
+ object_ = configured_props , annotation = ConfiguredProps , direction = "write"
215
+ ),
214
216
"dynamic_props_id" : dynamic_props_id ,
215
217
"page" : page ,
216
218
"prev_context" : prev_context ,
@@ -243,7 +245,7 @@ def reload_props(
243
245
id : str ,
244
246
external_user_id : str ,
245
247
blocking : typing .Optional [bool ] = OMIT ,
246
- configured_props : typing .Optional [typing . Dict [ str , typing . Optional [ typing . Any ]] ] = OMIT ,
248
+ configured_props : typing .Optional [ConfiguredProps ] = OMIT ,
247
249
dynamic_props_id : typing .Optional [str ] = OMIT ,
248
250
request_options : typing .Optional [RequestOptions ] = None ,
249
251
) -> HttpResponse [ReloadPropsResponse ]:
@@ -261,8 +263,7 @@ def reload_props(
261
263
blocking : typing.Optional[bool]
262
264
Whether this operation should block until completion
263
265
264
- configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
265
- The configured properties for the component
266
+ configured_props : typing.Optional[ConfiguredProps]
266
267
267
268
dynamic_props_id : typing.Optional[str]
268
269
The ID for dynamic props
@@ -282,7 +283,9 @@ def reload_props(
282
283
"id" : id ,
283
284
"external_user_id" : external_user_id ,
284
285
"blocking" : blocking ,
285
- "configured_props" : configured_props ,
286
+ "configured_props" : convert_and_respect_annotation_metadata (
287
+ object_ = configured_props , annotation = ConfiguredProps , direction = "write"
288
+ ),
286
289
"dynamic_props_id" : dynamic_props_id ,
287
290
},
288
291
headers = {
@@ -311,7 +314,7 @@ def run(
311
314
* ,
312
315
id : str ,
313
316
external_user_id : str ,
314
- configured_props : typing .Optional [typing . Dict [ str , typing . Optional [ typing . Any ]] ] = OMIT ,
317
+ configured_props : typing .Optional [ConfiguredProps ] = OMIT ,
315
318
dynamic_props_id : typing .Optional [str ] = OMIT ,
316
319
stash_id : typing .Optional [RunActionOptsStashId ] = OMIT ,
317
320
request_options : typing .Optional [RequestOptions ] = None ,
@@ -327,8 +330,7 @@ def run(
327
330
external_user_id : str
328
331
The external user ID
329
332
330
- configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
331
- The configured properties for the action
333
+ configured_props : typing.Optional[ConfiguredProps]
332
334
333
335
dynamic_props_id : typing.Optional[str]
334
336
The ID for dynamic props
@@ -349,7 +351,9 @@ def run(
349
351
json = {
350
352
"id" : id ,
351
353
"external_user_id" : external_user_id ,
352
- "configured_props" : configured_props ,
354
+ "configured_props" : convert_and_respect_annotation_metadata (
355
+ object_ = configured_props , annotation = ConfiguredProps , direction = "write"
356
+ ),
353
357
"dynamic_props_id" : dynamic_props_id ,
354
358
"stash_id" : convert_and_respect_annotation_metadata (
355
359
object_ = stash_id , annotation = RunActionOptsStashId , direction = "write"
@@ -512,7 +516,7 @@ async def configure_prop(
512
516
external_user_id : str ,
513
517
prop_name : str ,
514
518
blocking : typing .Optional [bool ] = OMIT ,
515
- configured_props : typing .Optional [typing . Dict [ str , typing . Optional [ typing . Any ]] ] = OMIT ,
519
+ configured_props : typing .Optional [ConfiguredProps ] = OMIT ,
516
520
dynamic_props_id : typing .Optional [str ] = OMIT ,
517
521
page : typing .Optional [float ] = OMIT ,
518
522
prev_context : typing .Optional [typing .Dict [str , typing .Optional [typing .Any ]]] = OMIT ,
@@ -536,8 +540,7 @@ async def configure_prop(
536
540
blocking : typing.Optional[bool]
537
541
Whether this operation should block until completion
538
542
539
- configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
540
- The configured properties for the component
543
+ configured_props : typing.Optional[ConfiguredProps]
541
544
542
545
dynamic_props_id : typing.Optional[str]
543
546
The ID for dynamic props
@@ -567,7 +570,9 @@ async def configure_prop(
567
570
"external_user_id" : external_user_id ,
568
571
"prop_name" : prop_name ,
569
572
"blocking" : blocking ,
570
- "configured_props" : configured_props ,
573
+ "configured_props" : convert_and_respect_annotation_metadata (
574
+ object_ = configured_props , annotation = ConfiguredProps , direction = "write"
575
+ ),
571
576
"dynamic_props_id" : dynamic_props_id ,
572
577
"page" : page ,
573
578
"prev_context" : prev_context ,
@@ -600,7 +605,7 @@ async def reload_props(
600
605
id : str ,
601
606
external_user_id : str ,
602
607
blocking : typing .Optional [bool ] = OMIT ,
603
- configured_props : typing .Optional [typing . Dict [ str , typing . Optional [ typing . Any ]] ] = OMIT ,
608
+ configured_props : typing .Optional [ConfiguredProps ] = OMIT ,
604
609
dynamic_props_id : typing .Optional [str ] = OMIT ,
605
610
request_options : typing .Optional [RequestOptions ] = None ,
606
611
) -> AsyncHttpResponse [ReloadPropsResponse ]:
@@ -618,8 +623,7 @@ async def reload_props(
618
623
blocking : typing.Optional[bool]
619
624
Whether this operation should block until completion
620
625
621
- configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
622
- The configured properties for the component
626
+ configured_props : typing.Optional[ConfiguredProps]
623
627
624
628
dynamic_props_id : typing.Optional[str]
625
629
The ID for dynamic props
@@ -639,7 +643,9 @@ async def reload_props(
639
643
"id" : id ,
640
644
"external_user_id" : external_user_id ,
641
645
"blocking" : blocking ,
642
- "configured_props" : configured_props ,
646
+ "configured_props" : convert_and_respect_annotation_metadata (
647
+ object_ = configured_props , annotation = ConfiguredProps , direction = "write"
648
+ ),
643
649
"dynamic_props_id" : dynamic_props_id ,
644
650
},
645
651
headers = {
@@ -668,7 +674,7 @@ async def run(
668
674
* ,
669
675
id : str ,
670
676
external_user_id : str ,
671
- configured_props : typing .Optional [typing . Dict [ str , typing . Optional [ typing . Any ]] ] = OMIT ,
677
+ configured_props : typing .Optional [ConfiguredProps ] = OMIT ,
672
678
dynamic_props_id : typing .Optional [str ] = OMIT ,
673
679
stash_id : typing .Optional [RunActionOptsStashId ] = OMIT ,
674
680
request_options : typing .Optional [RequestOptions ] = None ,
@@ -684,8 +690,7 @@ async def run(
684
690
external_user_id : str
685
691
The external user ID
686
692
687
- configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
688
- The configured properties for the action
693
+ configured_props : typing.Optional[ConfiguredProps]
689
694
690
695
dynamic_props_id : typing.Optional[str]
691
696
The ID for dynamic props
@@ -706,7 +711,9 @@ async def run(
706
711
json = {
707
712
"id" : id ,
708
713
"external_user_id" : external_user_id ,
709
- "configured_props" : configured_props ,
714
+ "configured_props" : convert_and_respect_annotation_metadata (
715
+ object_ = configured_props , annotation = ConfiguredProps , direction = "write"
716
+ ),
710
717
"dynamic_props_id" : dynamic_props_id ,
711
718
"stash_id" : convert_and_respect_annotation_metadata (
712
719
object_ = stash_id , annotation = RunActionOptsStashId , direction = "write"
0 commit comments