Skip to content

Commit bfd971a

Browse files
committed
feat: update generated APIs
1 parent a332407 commit bfd971a

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

packages_generated/webhosting/src/v1/marshalling.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ const unmarshalHostingUser = (data: unknown): HostingUser => {
272272
return {
273273
contactEmail: data.contact_email,
274274
oneTimePassword: data.one_time_password,
275+
oneTimePasswordB64: data.one_time_password_b64,
275276
username: data.username,
276277
} as HostingUser
277278
}
@@ -529,6 +530,7 @@ export const unmarshalResetHostingPasswordResponse = (
529530

530531
return {
531532
oneTimePassword: data.one_time_password,
533+
oneTimePasswordB64: data.one_time_password_b64,
532534
} as ResetHostingPasswordResponse
533535
}
534536

packages_generated/webhosting/src/v1/types.gen.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export interface PlatformControlPanel {
161161
*/
162162
name: string
163163
/**
164-
* URL to connect to cPanel dashboard and to Webmail interface.
164+
* URL to connect to control panel dashboard and to Webmail interface.
165165
*/
166166
urls?: PlatformControlPanelUrls
167167
}
@@ -265,17 +265,21 @@ export interface Nameserver {
265265

266266
export interface HostingUser {
267267
/**
268-
* Main Web Hosting cPanel username.
268+
* Main Web Hosting control panel username.
269269
*/
270270
username: string
271271
/**
272-
* One-time-password used for the first login or reset password, empty after first use.
272+
* @deprecated One-time-password used for the first login to the control panel, cleared after first use (deprecated, use password_b64 instead).
273273
*/
274274
oneTimePassword?: string
275275
/**
276276
* Contact email used for the hosting.
277277
*/
278278
contactEmail: string
279+
/**
280+
* One-time-password used for the first login to the control panel, cleared after first use, encoded in base64.
281+
*/
282+
oneTimePasswordB64?: string
279283
}
280284

281285
export interface Offer {
@@ -1400,9 +1404,13 @@ export type OfferApiListOffersRequest = {
14001404

14011405
export interface ResetHostingPasswordResponse {
14021406
/**
1403-
* New temporary password.
1407+
* @deprecated New temporary password (deprecated, use password_b64 instead).
1408+
*/
1409+
oneTimePassword?: string
1410+
/**
1411+
* New temporary password, encoded in base64.
14041412
*/
1405-
oneTimePassword: string
1413+
oneTimePasswordB64: string
14061414
}
14071415

14081416
export interface ResourceSummary {

0 commit comments

Comments
 (0)