10
10
from ..core .pagination import AsyncPager , BaseHttpResponse , SyncPager
11
11
from ..core .pydantic_utilities import parse_obj_as
12
12
from ..core .request_options import RequestOptions
13
+ from ..core .serialization import convert_and_respect_annotation_metadata
13
14
from ..types .component import Component
15
+ from ..types .configure_prop_opts_configured_props_value import ConfigurePropOptsConfiguredPropsValue
14
16
from ..types .configure_prop_response import ConfigurePropResponse
15
17
from ..types .get_component_response import GetComponentResponse
16
18
from ..types .get_components_response import GetComponentsResponse
@@ -152,7 +154,7 @@ def configure_prop(
152
154
external_user_id : str ,
153
155
prop_name : str ,
154
156
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 ,
156
158
dynamic_props_id : typing .Optional [str ] = OMIT ,
157
159
page : typing .Optional [float ] = OMIT ,
158
160
prev_context : typing .Optional [typing .Dict [str , typing .Optional [typing .Any ]]] = OMIT ,
@@ -176,7 +178,7 @@ def configure_prop(
176
178
blocking : typing.Optional[bool]
177
179
Whether this operation should block until completion
178
180
179
- configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any] ]]
181
+ configured_props : typing.Optional[typing.Dict[str, ConfigurePropOptsConfiguredPropsValue ]]
180
182
The configured properties for the component
181
183
182
184
dynamic_props_id : typing.Optional[str]
@@ -207,7 +209,11 @@ def configure_prop(
207
209
"external_user_id" : external_user_id ,
208
210
"prop_name" : prop_name ,
209
211
"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
+ ),
211
217
"dynamic_props_id" : dynamic_props_id ,
212
218
"page" : page ,
213
219
"prev_context" : prev_context ,
@@ -439,7 +445,7 @@ async def configure_prop(
439
445
external_user_id : str ,
440
446
prop_name : str ,
441
447
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 ,
443
449
dynamic_props_id : typing .Optional [str ] = OMIT ,
444
450
page : typing .Optional [float ] = OMIT ,
445
451
prev_context : typing .Optional [typing .Dict [str , typing .Optional [typing .Any ]]] = OMIT ,
@@ -463,7 +469,7 @@ async def configure_prop(
463
469
blocking : typing.Optional[bool]
464
470
Whether this operation should block until completion
465
471
466
- configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any] ]]
472
+ configured_props : typing.Optional[typing.Dict[str, ConfigurePropOptsConfiguredPropsValue ]]
467
473
The configured properties for the component
468
474
469
475
dynamic_props_id : typing.Optional[str]
@@ -494,7 +500,11 @@ async def configure_prop(
494
500
"external_user_id" : external_user_id ,
495
501
"prop_name" : prop_name ,
496
502
"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
+ ),
498
508
"dynamic_props_id" : dynamic_props_id ,
499
509
"page" : page ,
500
510
"prev_context" : prev_context ,
0 commit comments