@@ -215,6 +215,7 @@ def create(
215215 body : object ,
216216 tus_resumable : Literal ["1.0.0" ],
217217 upload_length : int ,
218+  direct_user : bool  |  NotGiven  =  NOT_GIVEN ,
218219 upload_creator : str  |  NotGiven  =  NOT_GIVEN ,
219220 upload_metadata : str  |  NotGiven  =  NOT_GIVEN ,
220221 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. 
@@ -240,6 +241,9 @@ def create(
240241 upload_length: Indicates the size of the entire upload in bytes. The value must be a 
241242 non-negative integer. 
242243
244+  direct_user: Provisions a URL to let your end users upload videos directly to Cloudflare 
245+  Stream without exposing your API token to clients. 
246+ 
243247 upload_creator: A user-defined identifier for the media creator. 
244248
245249 upload_metadata: Comma-separated key-value pairs following the TUS protocol specification. Values 
@@ -272,7 +276,11 @@ def create(
272276 f"/accounts/{ account_id }  /stream" ,
273277 body = maybe_transform (body , stream_create_params .StreamCreateParams ),
274278 options = make_request_options (
275-  extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout 
279+  extra_headers = extra_headers ,
280+  extra_query = extra_query ,
281+  extra_body = extra_body ,
282+  timeout = timeout ,
283+  query = maybe_transform ({"direct_user" : direct_user }, stream_create_params .StreamCreateParams ),
276284 ),
277285 cast_to = NoneType ,
278286 )
@@ -617,6 +625,7 @@ async def create(
617625 body : object ,
618626 tus_resumable : Literal ["1.0.0" ],
619627 upload_length : int ,
628+  direct_user : bool  |  NotGiven  =  NOT_GIVEN ,
620629 upload_creator : str  |  NotGiven  =  NOT_GIVEN ,
621630 upload_metadata : str  |  NotGiven  =  NOT_GIVEN ,
622631 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. 
@@ -642,6 +651,9 @@ async def create(
642651 upload_length: Indicates the size of the entire upload in bytes. The value must be a 
643652 non-negative integer. 
644653
654+  direct_user: Provisions a URL to let your end users upload videos directly to Cloudflare 
655+  Stream without exposing your API token to clients. 
656+ 
645657 upload_creator: A user-defined identifier for the media creator. 
646658
647659 upload_metadata: Comma-separated key-value pairs following the TUS protocol specification. Values 
@@ -674,7 +686,13 @@ async def create(
674686 f"/accounts/{ account_id }  /stream" ,
675687 body = await  async_maybe_transform (body , stream_create_params .StreamCreateParams ),
676688 options = make_request_options (
677-  extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout 
689+  extra_headers = extra_headers ,
690+  extra_query = extra_query ,
691+  extra_body = extra_body ,
692+  timeout = timeout ,
693+  query = await  async_maybe_transform (
694+  {"direct_user" : direct_user }, stream_create_params .StreamCreateParams 
695+  ),
678696 ),
679697 cast_to = NoneType ,
680698 )
0 commit comments