Skip to content

Commit fb578b3

Browse files
committed
feat: update generated APIs
1 parent 4997495 commit fb578b3

File tree

5 files changed

+22
-14
lines changed

5 files changed

+22
-14
lines changed

packages/clients/src/api/cockpit/v1/index.gen.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ export { GlobalAPI, RegionalAPI } from './api.gen'
44
export type {
55
Alert,
66
AlertManager,
7-
AnyAlert,
8-
AnyAlertState,
7+
AlertState,
98
ContactPoint,
109
ContactPointEmail,
1110
DataSource,
@@ -35,8 +34,6 @@ export type {
3534
ListGrafanaProductDashboardsResponse,
3635
ListGrafanaUsersRequestOrderBy,
3736
ListGrafanaUsersResponse,
38-
ListManagedAlertsRequestOrderBy,
39-
ListManagedAlertsResponse,
4037
ListPlansRequestOrderBy,
4138
ListPlansResponse,
4239
ListTokensRequestOrderBy,
@@ -61,7 +58,6 @@ export type {
6158
RegionalApiListAlertsRequest,
6259
RegionalApiListContactPointsRequest,
6360
RegionalApiListDataSourcesRequest,
64-
RegionalApiListManagedAlertsRequest,
6561
RegionalApiListTokensRequest,
6662
RegionalApiTriggerTestAlertRequest,
6763
RegionalApiUpdateContactPointRequest,

packages/clients/src/api/secret/v1beta1/index.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export type {
3636
ListTagsResponse,
3737
Product,
3838
ProtectSecretRequest,
39+
RestoreSecretRequest,
40+
RestoreSecretVersionRequest,
3941
SSHKey,
4042
Secret,
4143
SecretStatus,

packages/clients/src/api/vpcgw/v1/index.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export type {
5353
ListPATRulesRequest,
5454
ListPATRulesRequestOrderBy,
5555
ListPATRulesResponse,
56+
MigrateToV2Request,
5657
PATRule,
5758
PATRuleProtocol,
5859
RefreshSSHKeysRequest,

packages/clients/src/api/webhosting/v1/marshalling.gen.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,9 @@ export const unmarshalHosting = (data: unknown): Hosting => {
298298

299299
return {
300300
createdAt: unmarshalDate(data.created_at),
301-
dnsStatus: data.dns_status,
301+
dnsStatus: data.dns_status ? data.dns_status : undefined,
302302
domain: data.domain,
303+
domainStatus: data.domain_status,
303304
id: data.id,
304305
ipv4: data.ipv4,
305306
offer: data.offer ? unmarshalOffer(data.offer) : undefined,
@@ -401,14 +402,16 @@ const unmarshalHostingSummary = (data: unknown): HostingSummary => {
401402

402403
return {
403404
createdAt: unmarshalDate(data.created_at),
404-
dnsStatus: data.dns_status,
405+
dnsStatus: data.dns_status ? data.dns_status : undefined,
405406
domain: data.domain,
407+
domainStatus: data.domain_status,
408+
hostingStatus: data.hosting_status,
406409
id: data.id,
407410
offerName: data.offer_name,
408411
projectId: data.project_id,
409412
protected: data.protected,
410413
region: data.region,
411-
status: data.status,
414+
status: data.status ? data.status : undefined,
412415
updatedAt: unmarshalDate(data.updated_at),
413416
} as HostingSummary
414417
}

packages/clients/src/api/webhosting/v1/types.gen.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,16 +301,20 @@ export interface HostingSummary {
301301
createdAt?: Date
302302
/** Date on which the Web Hosting plan was last updated. */
303303
updatedAt?: Date
304-
/** Status of the Web Hosting plan. */
305-
status: HostingSummaryStatus
304+
/** @deprecated Status of the Web Hosting plan. */
305+
status?: HostingSummaryStatus
306306
/** Main domain associated with the Web Hosting plan. */
307307
domain: string
308308
/** Whether the hosting is protected or not. */
309309
protected: boolean
310-
/** DNS status of the Web Hosting plan. */
311-
dnsStatus: DnsRecordsStatus
310+
/** @deprecated DNS status of the Web Hosting plan. */
311+
dnsStatus?: DnsRecordsStatus
312312
/** Name of the active offer for the Web Hosting plan. */
313313
offerName: string
314+
/** Status of the Web Hosting plan. */
315+
hostingStatus: HostingStatus
316+
/** Main domain status of the Web Hosting plan. */
317+
domainStatus: DomainStatus
314318
/** Region where the Web Hosting plan is hosted. */
315319
region: ScwRegion
316320
}
@@ -708,14 +712,16 @@ export interface Hosting {
708712
platform?: Platform
709713
/** List of tags associated with the Web Hosting plan. */
710714
tags: string[]
711-
/** DNS status of the Web Hosting plan. */
712-
dnsStatus: DnsRecordsStatus
715+
/** @deprecated DNS status of the Web Hosting plan. */
716+
dnsStatus?: DnsRecordsStatus
713717
/** Current IPv4 address of the hosting. */
714718
ipv4: string
715719
/** Whether the hosting is protected or not. */
716720
protected: boolean
717721
/** Details of the hosting user. */
718722
user?: HostingUser
723+
/** Main domain status of the Web Hosting plan. */
724+
domainStatus: DomainStatus
719725
/** Region where the Web Hosting plan is hosted. */
720726
region: ScwRegion
721727
}

0 commit comments

Comments
 (0)