From 4589d10df8a9071e3b215f8e7a8ca635a2c8f4ae Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 13 May 2025 14:30:58 +0000 Subject: [PATCH] feat: update generated APIs --- packages_generated/cockpit/src/v1/api.gen.ts | 5 +++-- 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, 14 insertions(+), 2 deletions(-) diff --git a/packages_generated/cockpit/src/v1/api.gen.ts b/packages_generated/cockpit/src/v1/api.gen.ts index 842ef899f..b62f2f67a 100644 --- a/packages_generated/cockpit/src/v1/api.gen.ts +++ b/packages_generated/cockpit/src/v1/api.gen.ts @@ -381,9 +381,9 @@ Deprecated: retention is now managed at the data source level. } /** - * Cockpit Regional API. + * Cockpit API. -The Cockpit Regional API allows you to create data sources and tokens to store and query data types such as metrics, logs, and traces. You can also push your data into Cockpit, and send alerts to your contact points when your resources may require your attention, using the regional Alert manager. +The Cockpit API allows you to create data sources and Cockpit tokens to store and query data types such as metrics, logs, and traces. You can also push your data into Cockpit, and send alerts to your contact points when your resources may require your attention, using the regional Alert manager. */ export class RegionalAPI extends ParentAPI { /** Lists the available regions of the API. */ @@ -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'