From 1a217658f3c824af0e9bda78ebd5990c28114092 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 13 May 2025 14:22:33 +0000 Subject: [PATCH] feat: update generated APIs --- packages_generated/cockpit/src/v1/api.gen.ts | 1 + packages_generated/cockpit/src/v1/marshalling.gen.ts | 1 + packages_generated/cockpit/src/v1/types.gen.ts | 8 ++++++++ packages_generated/key_manager/src/v1alpha1/index.gen.ts | 1 + .../product_catalog/src/v2alpha1/index.gen.ts | 1 + 5 files changed, 12 insertions(+) diff --git a/packages_generated/cockpit/src/v1/api.gen.ts b/packages_generated/cockpit/src/v1/api.gen.ts index 842ef899f..fd7bff8c5 100644 --- a/packages_generated/cockpit/src/v1/api.gen.ts +++ b/packages_generated/cockpit/src/v1/api.gen.ts @@ -801,6 +801,7 @@ If you need to receive alerts for other receivers, you can create additional con method: 'GET', path: `/cockpit/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/alerts`, urlParams: urlParams( + ['data_source_id', request.dataSourceId], ['is_enabled', request.isEnabled], ['is_preconfigured', request.isPreconfigured], [ diff --git a/packages_generated/cockpit/src/v1/marshalling.gen.ts b/packages_generated/cockpit/src/v1/marshalling.gen.ts index 06d27e651..5567a1127 100644 --- a/packages_generated/cockpit/src/v1/marshalling.gen.ts +++ b/packages_generated/cockpit/src/v1/marshalling.gen.ts @@ -294,6 +294,7 @@ const unmarshalAlert = (data: unknown): Alert => { return { annotations: data.annotations, + dataSourceId: data.data_source_id, duration: data.duration, enabled: data.enabled, name: data.name, diff --git a/packages_generated/cockpit/src/v1/types.gen.ts b/packages_generated/cockpit/src/v1/types.gen.ts index 677085d47..b710c117f 100644 --- a/packages_generated/cockpit/src/v1/types.gen.ts +++ b/packages_generated/cockpit/src/v1/types.gen.ts @@ -116,6 +116,10 @@ export interface Alert { * Contains additional data for preconfigured alerts, such as the rule ID, display name, and description. Only present if the alert is preconfigured. */ preconfiguredData?: PreconfiguredAlertData + /** + * ID of the data source containing the alert rule. + */ + dataSourceId: string } /** @@ -964,6 +968,10 @@ export type RegionalApiListAlertsRequest = { * Valid values to filter on are `inactive`, `pending` and `firing`. If omitted, no filtering is applied on alert states. Other filters may still apply. */ state?: AlertState + /** + * If omitted, only alerts from the default scaleway data source will be listed. + */ + dataSourceId?: string } /** diff --git a/packages_generated/key_manager/src/v1alpha1/index.gen.ts b/packages_generated/key_manager/src/v1alpha1/index.gen.ts index 4cab830dc..361f17108 100644 --- a/packages_generated/key_manager/src/v1alpha1/index.gen.ts +++ b/packages_generated/key_manager/src/v1alpha1/index.gen.ts @@ -28,6 +28,7 @@ export type { KeyUsage, ListKeysRequest, ListKeysRequestOrderBy, + ListKeysRequestUsage, ListKeysResponse, ProtectKeyRequest, PublicKey, diff --git a/packages_generated/product_catalog/src/v2alpha1/index.gen.ts b/packages_generated/product_catalog/src/v2alpha1/index.gen.ts index ae5d23a8e..c22bb7719 100644 --- a/packages_generated/product_catalog/src/v2alpha1/index.gen.ts +++ b/packages_generated/product_catalog/src/v2alpha1/index.gen.ts @@ -23,6 +23,7 @@ export type { PublicCatalogProductPropertiesHardwareRAM, PublicCatalogProductPropertiesHardwareStorage, PublicCatalogProductPropertiesInstance, + PublicCatalogProductStatus, PublicCatalogProductUnitOfMeasure, PublicCatalogProductUnitOfMeasureCountableUnit, } from './types.gen'