@@ -77,11 +77,11 @@ async def get(
7777 error_trace : t .Optional [bool ] = None ,
7878 filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
7979 human : t .Optional [bool ] = None ,
80- keep_alive : t .Optional [t .Union [" t.Literal[-1]" , " t.Literal[0]" , str ]] = None ,
80+ keep_alive : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
8181 pretty : t .Optional [bool ] = None ,
8282 typed_keys : t .Optional [bool ] = None ,
8383 wait_for_completion_timeout : t .Optional [
84- t .Union [" t.Literal[-1]" , " t.Literal[0]" , str ]
84+ t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]
8585 ] = None ,
8686 ) -> ObjectApiResponse [t .Any ]:
8787 """
@@ -236,16 +236,16 @@ async def submit(
236236 batched_reduce_size : t .Optional [int ] = None ,
237237 ccs_minimize_roundtrips : t .Optional [bool ] = None ,
238238 collapse : t .Optional [t .Mapping [str , t .Any ]] = None ,
239- default_operator : t .Optional [t .Union [" t.Literal[' and', 'or']" , str ]] = None ,
239+ default_operator : t .Optional [t .Union [str , t .Literal [" and" , "or" ] ]] = None ,
240240 df : t .Optional [str ] = None ,
241241 docvalue_fields : t .Optional [t .Sequence [t .Mapping [str , t .Any ]]] = None ,
242242 error_trace : t .Optional [bool ] = None ,
243243 expand_wildcards : t .Optional [
244244 t .Union [
245245 t .Sequence [
246- t .Union [" t.Literal[' all', ' closed', ' hidden', ' none', ' open']" , str ]
246+ t .Union [str , t .Literal [" all" , " closed" , " hidden" , " none" , " open" ] ]
247247 ],
248- t .Union [" t.Literal[' all', ' closed', ' hidden', ' none', ' open']" , str ],
248+ t .Union [str , t .Literal [" all" , " closed" , " hidden" , " none" , " open" ] ],
249249 ]
250250 ] = None ,
251251 explain : t .Optional [bool ] = None ,
@@ -258,7 +258,7 @@ async def submit(
258258 ignore_throttled : t .Optional [bool ] = None ,
259259 ignore_unavailable : t .Optional [bool ] = None ,
260260 indices_boost : t .Optional [t .Sequence [t .Mapping [str , float ]]] = None ,
261- keep_alive : t .Optional [t .Union [" t.Literal[-1]" , " t.Literal[0]" , str ]] = None ,
261+ keep_alive : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
262262 keep_on_completion : t .Optional [bool ] = None ,
263263 knn : t .Optional [
264264 t .Union [t .Mapping [str , t .Any ], t .Sequence [t .Mapping [str , t .Any ]]]
@@ -283,12 +283,12 @@ async def submit(
283283 routing : t .Optional [str ] = None ,
284284 runtime_mappings : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
285285 script_fields : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
286- scroll : t .Optional [t .Union [" t.Literal[-1]" , " t.Literal[0]" , str ]] = None ,
286+ scroll : t .Optional [t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]] = None ,
287287 search_after : t .Optional [
288288 t .Sequence [t .Union [None , bool , float , int , str , t .Any ]]
289289 ] = None ,
290290 search_type : t .Optional [
291- t .Union [" t.Literal[' dfs_query_then_fetch', ' query_then_fetch']" , str ]
291+ t .Union [str , t .Literal [" dfs_query_then_fetch" , " query_then_fetch" ] ]
292292 ] = None ,
293293 seq_no_primary_term : t .Optional [bool ] = None ,
294294 size : t .Optional [int ] = None ,
@@ -307,7 +307,7 @@ async def submit(
307307 suggest : t .Optional [t .Mapping [str , t .Any ]] = None ,
308308 suggest_field : t .Optional [str ] = None ,
309309 suggest_mode : t .Optional [
310- t .Union [" t.Literal[' always', ' missing', ' popular']" , str ]
310+ t .Union [str , t .Literal [" always" , " missing" , " popular" ] ]
311311 ] = None ,
312312 suggest_size : t .Optional [int ] = None ,
313313 suggest_text : t .Optional [str ] = None ,
@@ -318,7 +318,7 @@ async def submit(
318318 typed_keys : t .Optional [bool ] = None ,
319319 version : t .Optional [bool ] = None ,
320320 wait_for_completion_timeout : t .Optional [
321- t .Union [" t.Literal[-1]" , " t.Literal[0]" , str ]
321+ t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]
322322 ] = None ,
323323 body : t .Optional [t .Dict [str , t .Any ]] = None ,
324324 ) -> ObjectApiResponse [t .Any ]:
0 commit comments