33from __future__ import annotations
44
55import typing_extensions
6- from typing import Any , Type , Mapping , cast
6+ from typing import Any , Type , Mapping , Optional , cast
77
88import httpx
99
@@ -101,6 +101,7 @@ def create(
101101 * ,
102102 account_id : str ,
103103 id : str | NotGiven = NOT_GIVEN ,
104+ creator : str | NotGiven = NOT_GIVEN ,
104105 file : FileTypes | NotGiven = NOT_GIVEN ,
105106 metadata : object | NotGiven = NOT_GIVEN ,
106107 require_signed_urls : bool | NotGiven = NOT_GIVEN ,
@@ -122,6 +123,8 @@ def create(
122123
123124 id: An optional custom unique identifier for your image.
124125
126+ creator: Can set the creator field with an internal user ID.
127+
125128 file: An image binary data. Only needed when type is uploading a file.
126129
127130 metadata: User modifiable key-value store. Can use used for keeping references to another
@@ -145,6 +148,7 @@ def create(
145148 body = deepcopy_minimal (
146149 {
147150 "id" : id ,
151+ "creator" : creator ,
148152 "file" : file ,
149153 "metadata" : metadata ,
150154 "require_signed_urls" : require_signed_urls ,
@@ -175,6 +179,7 @@ def list(
175179 self ,
176180 * ,
177181 account_id : str ,
182+ creator : Optional [str ] | NotGiven = NOT_GIVEN ,
178183 page : float | NotGiven = NOT_GIVEN ,
179184 per_page : float | NotGiven = NOT_GIVEN ,
180185 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -192,6 +197,9 @@ def list(
192197 Args:
193198 account_id: Account identifier tag.
194199
200+ creator: Internal user ID set within the creator field. Setting to empty string "" will
201+ return images where creator field is not set
202+
195203 page: Page number of paginated results.
196204
197205 per_page: Number of items per page.
@@ -216,6 +224,7 @@ def list(
216224 timeout = timeout ,
217225 query = maybe_transform (
218226 {
227+ "creator" : creator ,
219228 "page" : page ,
220229 "per_page" : per_page ,
221230 },
@@ -281,6 +290,7 @@ def edit(
281290 image_id : str ,
282291 * ,
283292 account_id : str ,
293+ creator : str | NotGiven = NOT_GIVEN ,
284294 metadata : object | NotGiven = NOT_GIVEN ,
285295 require_signed_urls : bool | NotGiven = NOT_GIVEN ,
286296 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -300,6 +310,8 @@ def edit(
300310
301311 image_id: Image unique identifier.
302312
313+ creator: Can set the creator field with an internal user ID.
314+
303315 metadata: User modifiable key-value store. Can be used for keeping references to another
304316 system of record for managing images. No change if not specified.
305317
@@ -323,6 +335,7 @@ def edit(
323335 f"/accounts/{ account_id } /images/v1/{ image_id } " ,
324336 body = maybe_transform (
325337 {
338+ "creator" : creator ,
326339 "metadata" : metadata ,
327340 "require_signed_urls" : require_signed_urls ,
328341 },
@@ -424,6 +437,7 @@ async def create(
424437 * ,
425438 account_id : str ,
426439 id : str | NotGiven = NOT_GIVEN ,
440+ creator : str | NotGiven = NOT_GIVEN ,
427441 file : FileTypes | NotGiven = NOT_GIVEN ,
428442 metadata : object | NotGiven = NOT_GIVEN ,
429443 require_signed_urls : bool | NotGiven = NOT_GIVEN ,
@@ -445,6 +459,8 @@ async def create(
445459
446460 id: An optional custom unique identifier for your image.
447461
462+ creator: Can set the creator field with an internal user ID.
463+
448464 file: An image binary data. Only needed when type is uploading a file.
449465
450466 metadata: User modifiable key-value store. Can use used for keeping references to another
@@ -468,6 +484,7 @@ async def create(
468484 body = deepcopy_minimal (
469485 {
470486 "id" : id ,
487+ "creator" : creator ,
471488 "file" : file ,
472489 "metadata" : metadata ,
473490 "require_signed_urls" : require_signed_urls ,
@@ -498,6 +515,7 @@ def list(
498515 self ,
499516 * ,
500517 account_id : str ,
518+ creator : Optional [str ] | NotGiven = NOT_GIVEN ,
501519 page : float | NotGiven = NOT_GIVEN ,
502520 per_page : float | NotGiven = NOT_GIVEN ,
503521 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -515,6 +533,9 @@ def list(
515533 Args:
516534 account_id: Account identifier tag.
517535
536+ creator: Internal user ID set within the creator field. Setting to empty string "" will
537+ return images where creator field is not set
538+
518539 page: Page number of paginated results.
519540
520541 per_page: Number of items per page.
@@ -539,6 +560,7 @@ def list(
539560 timeout = timeout ,
540561 query = maybe_transform (
541562 {
563+ "creator" : creator ,
542564 "page" : page ,
543565 "per_page" : per_page ,
544566 },
@@ -604,6 +626,7 @@ async def edit(
604626 image_id : str ,
605627 * ,
606628 account_id : str ,
629+ creator : str | NotGiven = NOT_GIVEN ,
607630 metadata : object | NotGiven = NOT_GIVEN ,
608631 require_signed_urls : bool | NotGiven = NOT_GIVEN ,
609632 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -623,6 +646,8 @@ async def edit(
623646
624647 image_id: Image unique identifier.
625648
649+ creator: Can set the creator field with an internal user ID.
650+
626651 metadata: User modifiable key-value store. Can be used for keeping references to another
627652 system of record for managing images. No change if not specified.
628653
@@ -646,6 +671,7 @@ async def edit(
646671 f"/accounts/{ account_id } /images/v1/{ image_id } " ,
647672 body = await async_maybe_transform (
648673 {
674+ "creator" : creator ,
649675 "metadata" : metadata ,
650676 "require_signed_urls" : require_signed_urls ,
651677 },
0 commit comments