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