Skip to content

Commit 293ac79

Browse files
feat(tem): handle autoconfig in create domain endpoint (#1382)
Co-authored-by: Jules Castéran <[email protected]>
1 parent 434edec commit 293ac79

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/clients/src/api/tem/v1alpha1/marshalling.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export const unmarshalDomain = (data: unknown): Domain => {
140140
}
141141

142142
return {
143+
autoconfig: data.autoconfig,
143144
createdAt: unmarshalDate(data.created_at),
144145
dkimConfig: data.dkim_config,
145146
id: data.id,
@@ -374,6 +375,7 @@ export const marshalCreateDomainRequest = (
374375
defaults: DefaultValues,
375376
): Record<string, unknown> => ({
376377
accept_tos: request.acceptTos,
378+
autoconfig: request.autoconfig,
377379
domain_name: request.domainName,
378380
project_id: request.projectId ?? defaults.defaultProjectId,
379381
})

packages/clients/src/api/tem/v1alpha1/types.gen.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ export interface Domain {
252252
reputation?: DomainReputation
253253
/** List of records to configure to validate a domain. */
254254
records?: DomainRecords
255+
/** Status of auto-configuration for the domain's DNS zone. */
256+
autoconfig: boolean
255257
/**
256258
* Region to target. If none is passed will use default region from the
257259
* config.
@@ -337,6 +339,8 @@ export type CreateDomainRequest = {
337339
domainName: string
338340
/** Accept Scaleway's Terms of Service. */
339341
acceptTos: boolean
342+
/** Activate auto-configuration of the domain's DNS zone. */
343+
autoconfig: boolean
340344
}
341345

342346
export type CreateEmailRequest = {

0 commit comments

Comments
 (0)