1010from ..core .pagination import AsyncPager , BaseHttpResponse , SyncPager
1111from ..core .pydantic_utilities import parse_obj_as
1212from ..core .request_options import RequestOptions
13+ from ..core .serialization import convert_and_respect_annotation_metadata
1314from ..types .component import Component
15+ from ..types .configure_prop_opts_configured_props_value import ConfigurePropOptsConfiguredPropsValue
1416from ..types .configure_prop_response import ConfigurePropResponse
1517from ..types .get_component_response import GetComponentResponse
1618from ..types .get_components_response import GetComponentsResponse
@@ -152,7 +154,7 @@ def configure_prop(
152154 external_user_id : str ,
153155 prop_name : str ,
154156 blocking : typing .Optional [bool ] = OMIT ,
155- configured_props : typing .Optional [typing .Dict [str , typing . Optional [ typing . Any ] ]] = OMIT ,
157+ configured_props : typing .Optional [typing .Dict [str , ConfigurePropOptsConfiguredPropsValue ]] = OMIT ,
156158 dynamic_props_id : typing .Optional [str ] = OMIT ,
157159 page : typing .Optional [float ] = OMIT ,
158160 prev_context : typing .Optional [typing .Dict [str , typing .Optional [typing .Any ]]] = OMIT ,
@@ -176,7 +178,7 @@ def configure_prop(
176178 blocking : typing.Optional[bool]
177179 Whether this operation should block until completion
178180
179- configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any] ]]
181+ configured_props : typing.Optional[typing.Dict[str, ConfigurePropOptsConfiguredPropsValue ]]
180182 The configured properties for the component
181183
182184 dynamic_props_id : typing.Optional[str]
@@ -207,7 +209,11 @@ def configure_prop(
207209 "external_user_id" : external_user_id ,
208210 "prop_name" : prop_name ,
209211 "blocking" : blocking ,
210- "configured_props" : configured_props ,
212+ "configured_props" : convert_and_respect_annotation_metadata (
213+ object_ = configured_props ,
214+ annotation = typing .Dict [str , ConfigurePropOptsConfiguredPropsValue ],
215+ direction = "write" ,
216+ ),
211217 "dynamic_props_id" : dynamic_props_id ,
212218 "page" : page ,
213219 "prev_context" : prev_context ,
@@ -439,7 +445,7 @@ async def configure_prop(
439445 external_user_id : str ,
440446 prop_name : str ,
441447 blocking : typing .Optional [bool ] = OMIT ,
442- configured_props : typing .Optional [typing .Dict [str , typing . Optional [ typing . Any ] ]] = OMIT ,
448+ configured_props : typing .Optional [typing .Dict [str , ConfigurePropOptsConfiguredPropsValue ]] = OMIT ,
443449 dynamic_props_id : typing .Optional [str ] = OMIT ,
444450 page : typing .Optional [float ] = OMIT ,
445451 prev_context : typing .Optional [typing .Dict [str , typing .Optional [typing .Any ]]] = OMIT ,
@@ -463,7 +469,7 @@ async def configure_prop(
463469 blocking : typing.Optional[bool]
464470 Whether this operation should block until completion
465471
466- configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any] ]]
472+ configured_props : typing.Optional[typing.Dict[str, ConfigurePropOptsConfiguredPropsValue ]]
467473 The configured properties for the component
468474
469475 dynamic_props_id : typing.Optional[str]
@@ -494,7 +500,11 @@ async def configure_prop(
494500 "external_user_id" : external_user_id ,
495501 "prop_name" : prop_name ,
496502 "blocking" : blocking ,
497- "configured_props" : configured_props ,
503+ "configured_props" : convert_and_respect_annotation_metadata (
504+ object_ = configured_props ,
505+ annotation = typing .Dict [str , ConfigurePropOptsConfiguredPropsValue ],
506+ direction = "write" ,
507+ ),
498508 "dynamic_props_id" : dynamic_props_id ,
499509 "page" : page ,
500510 "prev_context" : prev_context ,
0 commit comments