@@ -150,6 +150,20 @@ export interface CreateDatabaseRequestUser {
150150 password : string
151151}
152152
153+ export interface AutoConfigDomainDns {
154+ /** Whether or not to synchronize domain nameservers. */
155+ nameservers : boolean
156+ /** Whether or not to synchronize web records. */
157+ webRecords : boolean
158+ /** Whether or not to synchronize mail records. */
159+ mailRecords : boolean
160+ /**
161+ * Whether or not to synchronize all types of records. Takes priority over the
162+ * other fields.
163+ */
164+ allRecords : boolean
165+ }
166+
153167export interface CreateHostingRequestDomainConfiguration {
154168 updateNameservers : boolean
155169 updateWebRecord : boolean
@@ -586,16 +600,30 @@ export type DnsApiSyncDomainDnsRecordsRequest = {
586600 region ?: ScwRegion
587601 /** Domain for which the DNS records will be synchronized. */
588602 domain : string
589- /** Whether or not to synchronize the web records. */
590- updateWebRecords : boolean
591- /** Whether or not to synchronize the mail records. */
592- updateMailRecords : boolean
593- /** Whether or not to synchronize all types of records. This one has priority. */
594- updateAllRecords : boolean
595- /** Whether or not to synchronize domain nameservers. */
596- updateNameservers : boolean
603+ /**
604+ * @deprecated Whether or not to synchronize the web records (deprecated, use
605+ * auto_config_domain_dns).
606+ */
607+ updateWebRecords ?: boolean
608+ /**
609+ * @deprecated Whether or not to synchronize the mail records (deprecated, use
610+ * auto_config_domain_dns).
611+ */
612+ updateMailRecords ?: boolean
613+ /**
614+ * @deprecated Whether or not to synchronize all types of records. This one
615+ * has priority (deprecated, use auto_config_domain_dns).
616+ */
617+ updateAllRecords ?: boolean
618+ /**
619+ * @deprecated Whether or not to synchronize domain nameservers (deprecated,
620+ * use auto_config_domain_dns).
621+ */
622+ updateNameservers ?: boolean
597623 /** Custom records to synchronize. */
598624 customRecords ?: SyncDomainDnsRecordsRequestRecord [ ]
625+ /** Whether or not to synchronize each types of records. */
626+ autoConfigDomainDns ?: AutoConfigDomainDns
599627}
600628
601629export interface DnsRecords {
@@ -618,8 +646,13 @@ export interface Domain {
618646 owner : DomainZoneOwner
619647 /** A list of actions that can be performed on the domain. */
620648 availableActions : DomainAction [ ]
621- /** A list of DNS-related actions that can be auto configured for the domain. */
622- availableDnsActions : DomainDnsAction [ ]
649+ /**
650+ * @deprecated A list of DNS-related actions that can be auto configured for
651+ * the domain (deprecated, use auto_config_domain_dns instead).
652+ */
653+ availableDnsActions ?: DomainDnsAction [ ]
654+ /** Whether or not to synchronize each type of record. */
655+ autoConfigDomainDns ?: AutoConfigDomainDns
623656}
624657
625658export type FtpAccountApiChangeFtpAccountPasswordRequest = {
@@ -742,15 +775,22 @@ export type HostingApiCreateHostingRequest = {
742775 /** Default language for the control panel interface. */
743776 language ?: StdLanguageCode
744777 /**
745- * Indicates whether to update hosting domain name servers and DNS records for
746- * domains managed by Scaleway Elements.
778+ * @deprecated Indicates whether to update hosting domain name servers and DNS
779+ * records for domains managed by Scaleway Elements (deprecated, use
780+ * auto_config_domain_dns instead).
747781 */
748782 domainConfiguration ?: CreateHostingRequestDomainConfiguration
749783 /**
750784 * Indicates whether to skip a welcome email to the contact email containing
751785 * hosting info.
752786 */
753787 skipWelcomeEmail ?: boolean
788+ /**
789+ * Indicates whether to update hosting domain name servers and DNS records for
790+ * domains managed by Scaleway Elements (deprecated, use auto_update_* fields
791+ * instead).
792+ */
793+ autoConfigDomainDns ?: AutoConfigDomainDns
754794}
755795
756796export type HostingApiCreateSessionRequest = {
0 commit comments