@@ -629,6 +629,89 @@ export namespace Metadata {
629629 }
630630}
631631
632+ export type UpdateFileDetailsRequest =
633+ | UpdateFileDetailsRequest . UpdateFileDetails
634+ | UpdateFileDetailsRequest . ChangePublicationStatus ;
635+
636+ export namespace UpdateFileDetailsRequest {
637+ export interface UpdateFileDetails {
638+ /**
639+ * Define an important area in the image in the format `x,y,width,height` e.g.
640+ * `10,10,100,100`. Send `null` to unset this value.
641+ */
642+ customCoordinates ?: string | null ;
643+
644+ /**
645+ * A key-value data to be associated with the asset. To unset a key, send `null`
646+ * value for that key. Before setting any custom metadata on an asset you have to
647+ * create the field using custom metadata fields API.
648+ */
649+ customMetadata ?: { [ key : string ] : unknown } ;
650+
651+ /**
652+ * Optional text to describe the contents of the file.
653+ */
654+ description ?: string ;
655+
656+ /**
657+ * Array of extensions to be applied to the asset. Each extension can be configured
658+ * with specific parameters based on the extension type.
659+ */
660+ extensions ?: Shared . Extensions ;
661+
662+ /**
663+ * An array of AITags associated with the file that you want to remove, e.g.
664+ * `["car", "vehicle", "motorsports"]`.
665+ *
666+ * If you want to remove all AITags associated with the file, send a string -
667+ * "all".
668+ *
669+ * Note: The remove operation for `AITags` executes before any of the `extensions`
670+ * are processed.
671+ */
672+ removeAITags ?: Array < string > | 'all' ;
673+
674+ /**
675+ * An array of tags associated with the file, such as `["tag1", "tag2"]`. Send
676+ * `null` to unset all tags associated with the file.
677+ */
678+ tags ?: Array < string > | null ;
679+
680+ /**
681+ * The final status of extensions after they have completed execution will be
682+ * delivered to this endpoint as a POST request.
683+ * [Learn more](/docs/api-reference/digital-asset-management-dam/managing-assets/update-file-details#webhook-payload-structure)
684+ * about the webhook payload structure.
685+ */
686+ webhookUrl ?: string ;
687+ }
688+
689+ export interface ChangePublicationStatus {
690+ /**
691+ * Configure the publication status of a file and its versions.
692+ */
693+ publish ?: ChangePublicationStatus . Publish ;
694+ }
695+
696+ export namespace ChangePublicationStatus {
697+ /**
698+ * Configure the publication status of a file and its versions.
699+ */
700+ export interface Publish {
701+ /**
702+ * Set to `true` to publish the file. Set to `false` to unpublish the file.
703+ */
704+ isPublished : boolean ;
705+
706+ /**
707+ * Set to `true` to publish/unpublish all versions of the file. Set to `false` to
708+ * publish/unpublish only the current version of the file.
709+ */
710+ includeFileVersions ?: boolean ;
711+ }
712+ }
713+ }
714+
632715/**
633716 * Object containing details of a file or file version.
634717 */
@@ -1328,6 +1411,7 @@ export declare namespace Files {
13281411 type File as File ,
13291412 type Folder as Folder ,
13301413 type Metadata as Metadata ,
1414+ type UpdateFileDetailsRequest as UpdateFileDetailsRequest ,
13311415 type FileUpdateResponse as FileUpdateResponse ,
13321416 type FileCopyResponse as FileCopyResponse ,
13331417 type FileMoveResponse as FileMoveResponse ,
0 commit comments