Skip to content

Commit 618dbc1

Browse files
committed
feat: update generated APIs
1 parent 050ca6f commit 618dbc1

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export type {
1515
DeleteWebhookRequest,
1616
Domain,
1717
DomainLastStatus,
18+
DomainLastStatusAutoconfigState,
19+
DomainLastStatusAutoconfigStateReason,
1820
DomainLastStatusDkimRecord,
1921
DomainLastStatusDmarcRecord,
2022
DomainLastStatusRecordStatus,

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import type {
1616
CreateWebhookRequest,
1717
Domain,
1818
DomainLastStatus,
19+
DomainLastStatusAutoconfigState,
1920
DomainLastStatusDkimRecord,
2021
DomainLastStatusDmarcRecord,
2122
DomainLastStatusSpfRecord,
@@ -203,6 +204,22 @@ export const unmarshalCreateEmailResponse = (
203204
} as CreateEmailResponse
204205
}
205206

207+
const unmarshalDomainLastStatusAutoconfigState = (
208+
data: unknown,
209+
): DomainLastStatusAutoconfigState => {
210+
if (!isJSONObject(data)) {
211+
throw new TypeError(
212+
`Unmarshalling the type 'DomainLastStatusAutoconfigState' failed as data isn't a dictionary.`,
213+
)
214+
}
215+
216+
return {
217+
autoconfigurable: data.autoconfigurable,
218+
enabled: data.enabled,
219+
reason: data.reason ? data.reason : undefined,
220+
} as DomainLastStatusAutoconfigState
221+
}
222+
206223
const unmarshalDomainLastStatusDkimRecord = (
207224
data: unknown,
208225
): DomainLastStatusDkimRecord => {
@@ -259,6 +276,9 @@ export const unmarshalDomainLastStatus = (data: unknown): DomainLastStatus => {
259276
}
260277

261278
return {
279+
autoconfigState: data.autoconfig_state
280+
? unmarshalDomainLastStatusAutoconfigState(data.autoconfig_state)
281+
: undefined,
262282
dkimRecord: data.dkim_record
263283
? unmarshalDomainLastStatusDkimRecord(data.dkim_record)
264284
: undefined,

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
// If you have any remark or suggestion do not hesitate to open an issue.
33
import type { Region } from '../../../bridge'
44

5+
export type DomainLastStatusAutoconfigStateReason =
6+
| 'unknown_reason'
7+
| 'permission_denied'
8+
| 'domain_not_found'
9+
510
export type DomainLastStatusRecordStatus =
611
| 'unknown_record_status'
712
| 'valid'
@@ -198,6 +203,15 @@ export interface Email {
198203
flags: EmailFlag[]
199204
}
200205

206+
export interface DomainLastStatusAutoconfigState {
207+
/** Enable or disable the auto-configuration of domain DNS records. */
208+
enabled: boolean
209+
/** Whether the domain can be auto-configured or not. */
210+
autoconfigurable: boolean
211+
/** The reason that the domain cannot be auto-configurable. */
212+
reason?: DomainLastStatusAutoconfigStateReason
213+
}
214+
201215
export interface DomainLastStatusDkimRecord {
202216
/** Status of the DKIM record's configuration. */
203217
status: DomainLastStatusRecordStatus
@@ -331,9 +345,9 @@ export interface ProjectSettingsPeriodicReport {
331345
export interface UpdateProjectSettingsRequestUpdatePeriodicReport {
332346
/** (Optional) Enable or disable periodic report notifications. */
333347
enabled?: boolean
334-
/** (Optional) At which frequency you receive periodic report notifications. */
348+
/** (Optional) Frequency at which you receive periodic report notifications. */
335349
frequency?: ProjectSettingsPeriodicReportFrequency
336-
/** (Optional) At which hour you receive periodic report notifications. */
350+
/** (Optional) Hour at which you receive periodic report notifications. */
337351
sendingHour?: number
338352
/**
339353
* (Optional) On which day you receive periodic report notifications (1-7
@@ -452,6 +466,8 @@ export interface DomainLastStatus {
452466
dkimRecord?: DomainLastStatusDkimRecord
453467
/** The DMARC record verification data. */
454468
dmarcRecord?: DomainLastStatusDmarcRecord
469+
/** The verification state of domain auto-configuration. */
470+
autoconfigState?: DomainLastStatusAutoconfigState
455471
}
456472

457473
export type GetDomainLastStatusRequest = {

0 commit comments

Comments
 (0)