From 1f25b6fea5e7403e45397d7aaaaf62353f4f4680 Mon Sep 17 00:00:00 2001 From: David Crespo Date: Fri, 3 Jul 2026 08:54:29 -0500 Subject: [PATCH] minor: bump omicron --- OMICRON_VERSION | 2 +- app/api/__generated__/API_VERSION | 2 +- app/api/__generated__/Api.ts | 38 ++++++++++++++++++++++++++- app/api/__generated__/OMICRON_VERSION | 2 +- app/api/__generated__/msw-handlers.ts | 15 +++++++++++ app/api/__generated__/validate.ts | 25 ++++++++++++++++++ mock-api/msw/handlers.ts | 1 + 7 files changed, 81 insertions(+), 4 deletions(-) diff --git a/OMICRON_VERSION b/OMICRON_VERSION index cfa445e51..7dd25595c 100644 --- a/OMICRON_VERSION +++ b/OMICRON_VERSION @@ -1 +1 @@ -13937a135d7777fea06e73bfdf2792e50450b5c8 +99249b41c3e8f2c5bf2606daa35c1f399aec6e56 diff --git a/app/api/__generated__/API_VERSION b/app/api/__generated__/API_VERSION index 1995efbac..d7919c438 100644 --- a/app/api/__generated__/API_VERSION +++ b/app/api/__generated__/API_VERSION @@ -1 +1 @@ -2026060800.0.0 +2026061000.0.0 diff --git a/app/api/__generated__/Api.ts b/app/api/__generated__/Api.ts index 4c14f9f3d..32a554820 100644 --- a/app/api/__generated__/Api.ts +++ b/app/api/__generated__/Api.ts @@ -919,6 +919,20 @@ export type BgpConfigResultsPage = { nextPage?: string | null } +/** + * Parameters for updating a BGP configuration + * + * If a value is not specified, it will remain unchanged. + */ +export type BgpConfigUpdate = { + /** Update the BGP announce set associated with this configuration. */ + bgpAnnounceSetId?: NameOrId | null + description?: string | null + /** Update the maximum number of equal-cost paths. */ + maxPaths?: MaxPathConfig | null + name?: Name | null +} + /** * Route exported to a peer. */ @@ -7023,6 +7037,10 @@ export interface NetworkingBgpConfigListQueryParams { sortBy?: NameOrIdSortMode } +export interface NetworkingBgpConfigUpdateQueryParams { + nameOrId: NameOrId +} + export interface NetworkingBgpConfigDeleteQueryParams { nameOrId: NameOrId } @@ -7544,7 +7562,7 @@ export class Api { * Pulled from info.version in the OpenAPI schema. Sent in the * `api-version` header on all requests. */ - apiVersion = '2026060800.0.0' + apiVersion = '2026061000.0.0' constructor({ host = '', baseParams = {}, token }: ApiConfig = {}) { this.host = host @@ -10928,6 +10946,24 @@ export class Api { ...params, }) }, + /** + * Update the mutable fields of an existing BGP configuration + */ + networkingBgpConfigUpdate: ( + { + query, + body, + }: { query: NetworkingBgpConfigUpdateQueryParams; body: BgpConfigUpdate }, + params: FetchParams = {} + ) => { + return this.request({ + path: `/v1/system/networking/bgp`, + method: 'PUT', + body, + query, + ...params, + }) + }, /** * Create BGP configuration */ diff --git a/app/api/__generated__/OMICRON_VERSION b/app/api/__generated__/OMICRON_VERSION index d89f662cd..b67956e3e 100644 --- a/app/api/__generated__/OMICRON_VERSION +++ b/app/api/__generated__/OMICRON_VERSION @@ -1,2 +1,2 @@ # generated file. do not update manually. see docs/update-pinned-api.md -13937a135d7777fea06e73bfdf2792e50450b5c8 +99249b41c3e8f2c5bf2606daa35c1f399aec6e56 diff --git a/app/api/__generated__/msw-handlers.ts b/app/api/__generated__/msw-handlers.ts index cae57d8e4..e0c8700d9 100644 --- a/app/api/__generated__/msw-handlers.ts +++ b/app/api/__generated__/msw-handlers.ts @@ -1444,6 +1444,13 @@ export interface MSWHandlers { req: Request cookies: Record }) => Promisable> + /** `PUT /v1/system/networking/bgp` */ + networkingBgpConfigUpdate: (params: { + query: Api.NetworkingBgpConfigUpdateQueryParams + body: Json + req: Request + cookies: Record + }) => Promisable> /** `POST /v1/system/networking/bgp` */ networkingBgpConfigCreate: (params: { body: Json @@ -3383,6 +3390,14 @@ export function makeHandlers(handlers: MSWHandlers): HttpHandler[] { null ) ), + http.put( + '/v1/system/networking/bgp', + handler( + handlers['networkingBgpConfigUpdate'], + schema.NetworkingBgpConfigUpdateParams, + schema.BgpConfigUpdate + ) + ), http.post( '/v1/system/networking/bgp', handler(handlers['networkingBgpConfigCreate'], null, schema.BgpConfigCreate) diff --git a/app/api/__generated__/validate.ts b/app/api/__generated__/validate.ts index c18e4ff69..cc5b26724 100644 --- a/app/api/__generated__/validate.ts +++ b/app/api/__generated__/validate.ts @@ -857,6 +857,21 @@ export const BgpConfigResultsPage = z.preprocess( z.object({ items: BgpConfig.array(), nextPage: z.string().nullable().optional() }) ) +/** + * Parameters for updating a BGP configuration + * + * If a value is not specified, it will remain unchanged. + */ +export const BgpConfigUpdate = z.preprocess( + processResponseBody, + z.object({ + bgpAnnounceSetId: NameOrId.nullable().optional(), + description: z.string().nullable().optional(), + maxPaths: MaxPathConfig.nullable().optional(), + name: Name.nullable().optional(), + }) +) + /** * Route exported to a peer. */ @@ -7695,6 +7710,16 @@ export const NetworkingBgpConfigListParams = z.preprocess( }) ) +export const NetworkingBgpConfigUpdateParams = z.preprocess( + processResponseBody, + z.object({ + path: z.object({}), + query: z.object({ + nameOrId: NameOrId, + }), + }) +) + export const NetworkingBgpConfigCreateParams = z.preprocess( processResponseBody, z.object({ diff --git a/mock-api/msw/handlers.ts b/mock-api/msw/handlers.ts index 999b7382f..5f2b05637 100644 --- a/mock-api/msw/handlers.ts +++ b/mock-api/msw/handlers.ts @@ -2685,6 +2685,7 @@ export const handlers = makeHandlers({ networkingBgpConfigCreate: NotImplemented, networkingBgpConfigDelete: NotImplemented, networkingBgpConfigList: NotImplemented, + networkingBgpConfigUpdate: NotImplemented, networkingBgpExported: NotImplemented, networkingBgpImported: NotImplemented, networkingBgpMessageHistory: NotImplemented,