1313from ..core .serialization import convert_and_respect_annotation_metadata
1414from ..types .component import Component
1515from ..types .configure_prop_response import ConfigurePropResponse
16+ from ..types .configured_props import ConfiguredProps
1617from ..types .get_component_response import GetComponentResponse
1718from ..types .get_components_response import GetComponentsResponse
1819from ..types .reload_props_response import ReloadPropsResponse
@@ -155,7 +156,7 @@ def configure_prop(
155156 external_user_id : str ,
156157 prop_name : str ,
157158 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 ,
159160 dynamic_props_id : typing .Optional [str ] = OMIT ,
160161 page : typing .Optional [float ] = OMIT ,
161162 prev_context : typing .Optional [typing .Dict [str , typing .Optional [typing .Any ]]] = OMIT ,
@@ -179,8 +180,7 @@ def configure_prop(
179180 blocking : typing.Optional[bool]
180181 Whether this operation should block until completion
181182
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]
184184
185185 dynamic_props_id : typing.Optional[str]
186186 The ID for dynamic props
@@ -210,7 +210,9 @@ def configure_prop(
210210 "external_user_id" : external_user_id ,
211211 "prop_name" : prop_name ,
212212 "blocking" : blocking ,
213- "configured_props" : configured_props ,
213+ "configured_props" : convert_and_respect_annotation_metadata (
214+ object_ = configured_props , annotation = ConfiguredProps , direction = "write"
215+ ),
214216 "dynamic_props_id" : dynamic_props_id ,
215217 "page" : page ,
216218 "prev_context" : prev_context ,
@@ -243,7 +245,7 @@ def reload_props(
243245 id : str ,
244246 external_user_id : str ,
245247 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 ,
247249 dynamic_props_id : typing .Optional [str ] = OMIT ,
248250 request_options : typing .Optional [RequestOptions ] = None ,
249251 ) -> HttpResponse [ReloadPropsResponse ]:
@@ -261,8 +263,7 @@ def reload_props(
261263 blocking : typing.Optional[bool]
262264 Whether this operation should block until completion
263265
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]
266267
267268 dynamic_props_id : typing.Optional[str]
268269 The ID for dynamic props
@@ -282,7 +283,9 @@ def reload_props(
282283 "id" : id ,
283284 "external_user_id" : external_user_id ,
284285 "blocking" : blocking ,
285- "configured_props" : configured_props ,
286+ "configured_props" : convert_and_respect_annotation_metadata (
287+ object_ = configured_props , annotation = ConfiguredProps , direction = "write"
288+ ),
286289 "dynamic_props_id" : dynamic_props_id ,
287290 },
288291 headers = {
@@ -311,7 +314,7 @@ def run(
311314 * ,
312315 id : str ,
313316 external_user_id : str ,
314- configured_props : typing .Optional [typing . Dict [ str , typing . Optional [ typing . Any ]] ] = OMIT ,
317+ configured_props : typing .Optional [ConfiguredProps ] = OMIT ,
315318 dynamic_props_id : typing .Optional [str ] = OMIT ,
316319 stash_id : typing .Optional [RunActionOptsStashId ] = OMIT ,
317320 request_options : typing .Optional [RequestOptions ] = None ,
@@ -327,8 +330,7 @@ def run(
327330 external_user_id : str
328331 The external user ID
329332
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]
332334
333335 dynamic_props_id : typing.Optional[str]
334336 The ID for dynamic props
@@ -349,7 +351,9 @@ def run(
349351 json = {
350352 "id" : id ,
351353 "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+ ),
353357 "dynamic_props_id" : dynamic_props_id ,
354358 "stash_id" : convert_and_respect_annotation_metadata (
355359 object_ = stash_id , annotation = RunActionOptsStashId , direction = "write"
@@ -512,7 +516,7 @@ async def configure_prop(
512516 external_user_id : str ,
513517 prop_name : str ,
514518 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 ,
516520 dynamic_props_id : typing .Optional [str ] = OMIT ,
517521 page : typing .Optional [float ] = OMIT ,
518522 prev_context : typing .Optional [typing .Dict [str , typing .Optional [typing .Any ]]] = OMIT ,
@@ -536,8 +540,7 @@ async def configure_prop(
536540 blocking : typing.Optional[bool]
537541 Whether this operation should block until completion
538542
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]
541544
542545 dynamic_props_id : typing.Optional[str]
543546 The ID for dynamic props
@@ -567,7 +570,9 @@ async def configure_prop(
567570 "external_user_id" : external_user_id ,
568571 "prop_name" : prop_name ,
569572 "blocking" : blocking ,
570- "configured_props" : configured_props ,
573+ "configured_props" : convert_and_respect_annotation_metadata (
574+ object_ = configured_props , annotation = ConfiguredProps , direction = "write"
575+ ),
571576 "dynamic_props_id" : dynamic_props_id ,
572577 "page" : page ,
573578 "prev_context" : prev_context ,
@@ -600,7 +605,7 @@ async def reload_props(
600605 id : str ,
601606 external_user_id : str ,
602607 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 ,
604609 dynamic_props_id : typing .Optional [str ] = OMIT ,
605610 request_options : typing .Optional [RequestOptions ] = None ,
606611 ) -> AsyncHttpResponse [ReloadPropsResponse ]:
@@ -618,8 +623,7 @@ async def reload_props(
618623 blocking : typing.Optional[bool]
619624 Whether this operation should block until completion
620625
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]
623627
624628 dynamic_props_id : typing.Optional[str]
625629 The ID for dynamic props
@@ -639,7 +643,9 @@ async def reload_props(
639643 "id" : id ,
640644 "external_user_id" : external_user_id ,
641645 "blocking" : blocking ,
642- "configured_props" : configured_props ,
646+ "configured_props" : convert_and_respect_annotation_metadata (
647+ object_ = configured_props , annotation = ConfiguredProps , direction = "write"
648+ ),
643649 "dynamic_props_id" : dynamic_props_id ,
644650 },
645651 headers = {
@@ -668,7 +674,7 @@ async def run(
668674 * ,
669675 id : str ,
670676 external_user_id : str ,
671- configured_props : typing .Optional [typing . Dict [ str , typing . Optional [ typing . Any ]] ] = OMIT ,
677+ configured_props : typing .Optional [ConfiguredProps ] = OMIT ,
672678 dynamic_props_id : typing .Optional [str ] = OMIT ,
673679 stash_id : typing .Optional [RunActionOptsStashId ] = OMIT ,
674680 request_options : typing .Optional [RequestOptions ] = None ,
@@ -684,8 +690,7 @@ async def run(
684690 external_user_id : str
685691 The external user ID
686692
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]
689694
690695 dynamic_props_id : typing.Optional[str]
691696 The ID for dynamic props
@@ -706,7 +711,9 @@ async def run(
706711 json = {
707712 "id" : id ,
708713 "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+ ),
710717 "dynamic_props_id" : dynamic_props_id ,
711718 "stash_id" : convert_and_respect_annotation_metadata (
712719 object_ = stash_id , annotation = RunActionOptsStashId , direction = "write"
0 commit comments