From 5c4d110e25ecf2031e2b27598187024b4355eb7e Mon Sep 17 00:00:00 2001 From: David Crespo Date: Fri, 13 Mar 2026 13:05:54 -0500 Subject: [PATCH] bump API to latest dogfood --- OMICRON_VERSION | 2 +- app/api/__generated__/Api.ts | 42 +++++++++++++-------------- app/api/__generated__/OMICRON_VERSION | 2 +- app/api/__generated__/msw-handlers.ts | 8 ++--- app/api/__generated__/validate.ts | 26 ++++++++--------- 5 files changed, 40 insertions(+), 40 deletions(-) diff --git a/OMICRON_VERSION b/OMICRON_VERSION index 07a70ad91..e1d0c46dd 100644 --- a/OMICRON_VERSION +++ b/OMICRON_VERSION @@ -1 +1 @@ -dc9a109a5e2d608bc9a55485c884b284b67f358a +6409f6a4bd2a3025703b9922e2f5dcd37425de77 diff --git a/app/api/__generated__/Api.ts b/app/api/__generated__/Api.ts index d9f516f94..d74290c4b 100644 --- a/app/api/__generated__/Api.ts +++ b/app/api/__generated__/Api.ts @@ -778,8 +778,8 @@ export type BfdMode = 'single_hop' | 'multi_hop' export type BfdSessionDisable = { /** Address of the remote peer to disable a BFD session for. */ remote: string - /** The switch to enable this session on. Must be `switch0` or `switch1`. */ - switch: Name + /** The slot of the switch within the rack to disable this session on. */ + switchSlot: SwitchSlot } /** @@ -796,8 +796,8 @@ export type BfdSessionEnable = { remote: string /** The minimum interval, in microseconds, between received BFD Control packets that this system requires */ requiredRx: number - /** The switch to enable this session on. Must be `switch0` or `switch1`. */ - switch: Name + /** The slot of the switch within the rack to enable this session on. */ + switchSlot: SwitchSlot } export type BfdState = /** A stable down state. Non-responsive to incoming messages. */ @@ -819,7 +819,7 @@ export type BfdStatus = { peer: string requiredRx: number state: BfdState - switch: Name + switchSlot: SwitchSlot } /** @@ -3299,8 +3299,8 @@ export type LoopbackAddress = { id: string /** The id of the rack where this loopback address is assigned. */ rackId: string - /** Switch location where this loopback address is assigned. */ - switchLocation: string + /** The slot of the switch within the rack where this loopback address is assigned. */ + switchSlot: SwitchSlot } /** @@ -3319,8 +3319,8 @@ This allows the address to be assigned to multiple locations simultaneously. */ mask: number /** The rack containing the switch this loopback address will be configured on. */ rackId: string - /** The location of the switch within the rack this loopback address will be configured on. */ - switchLocation: Name + /** The slot of the switch within the rack this loopback address will be configured on. */ + switchSlot: SwitchSlot } /** @@ -4767,8 +4767,8 @@ export type SwitchPort = { portSettingsId?: string | null /** The rack this switch port belongs to. */ rackId: string - /** The switch location of this switch port. */ - switchLocation: string + /** The slot of the switch within the rack of this switch port. */ + switchSlot: SwitchSlot } /** @@ -6670,7 +6670,7 @@ export interface PhysicalDiskViewPathParams { export interface NetworkingSwitchPortLldpNeighborsPathParams { port: Name rackId: string - switchLocation: Name + switchSlot: SwitchSlot } export interface NetworkingSwitchPortLldpNeighborsQueryParams { @@ -6757,7 +6757,7 @@ export interface NetworkingSwitchPortLldpConfigViewPathParams { export interface NetworkingSwitchPortLldpConfigViewQueryParams { rackId: string - switchLocation: Name + switchSlot: SwitchSlot } export interface NetworkingSwitchPortLldpConfigUpdatePathParams { @@ -6766,7 +6766,7 @@ export interface NetworkingSwitchPortLldpConfigUpdatePathParams { export interface NetworkingSwitchPortLldpConfigUpdateQueryParams { rackId: string - switchLocation: Name + switchSlot: SwitchSlot } export interface NetworkingSwitchPortApplySettingsPathParams { @@ -6775,7 +6775,7 @@ export interface NetworkingSwitchPortApplySettingsPathParams { export interface NetworkingSwitchPortApplySettingsQueryParams { rackId: string - switchLocation: Name + switchSlot: SwitchSlot } export interface NetworkingSwitchPortClearSettingsPathParams { @@ -6784,7 +6784,7 @@ export interface NetworkingSwitchPortClearSettingsPathParams { export interface NetworkingSwitchPortClearSettingsQueryParams { rackId: string - switchLocation: Name + switchSlot: SwitchSlot } export interface NetworkingSwitchPortStatusPathParams { @@ -6793,7 +6793,7 @@ export interface NetworkingSwitchPortStatusPathParams { export interface NetworkingSwitchPortStatusQueryParams { rackId: string - switchLocation: Name + switchSlot: SwitchSlot } export interface SwitchListQueryParams { @@ -6992,7 +6992,7 @@ export interface NetworkingLoopbackAddressDeletePathParams { address: string rackId: string subnetMask: number - switchLocation: Name + switchSlot: SwitchSlot } export interface NetworkingSwitchPortSettingsListQueryParams { @@ -7477,7 +7477,7 @@ export class Api { * Pulled from info.version in the OpenAPI schema. Sent in the * `api-version` header on all requests. */ - apiVersion = '2026030600.0.0' + apiVersion = '2026030601.0.0' constructor({ host = '', baseParams = {}, token }: ApiConfig = {}) { this.host = host @@ -9986,7 +9986,7 @@ export class Api { params: FetchParams = {} ) => { return this.request({ - path: `/v1/system/hardware/rack-switch-port/${path.rackId}/${path.switchLocation}/${path.port}/lldp/neighbors`, + path: `/v1/system/hardware/rack-switch-port/${path.rackId}/${path.switchSlot}/${path.port}/lldp/neighbors`, method: 'GET', query, ...params, @@ -10996,7 +10996,7 @@ export class Api { params: FetchParams = {} ) => { return this.request({ - path: `/v1/system/networking/loopback-address/${path.rackId}/${path.switchLocation}/${path.address}/${path.subnetMask}`, + path: `/v1/system/networking/loopback-address/${path.rackId}/${path.switchSlot}/${path.address}/${path.subnetMask}`, method: 'DELETE', ...params, }) diff --git a/app/api/__generated__/OMICRON_VERSION b/app/api/__generated__/OMICRON_VERSION index 18da5ac7f..90e46f63c 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 -dc9a109a5e2d608bc9a55485c884b284b67f358a +6409f6a4bd2a3025703b9922e2f5dcd37425de77 diff --git a/app/api/__generated__/msw-handlers.ts b/app/api/__generated__/msw-handlers.ts index be802ede5..df98e9e1a 100644 --- a/app/api/__generated__/msw-handlers.ts +++ b/app/api/__generated__/msw-handlers.ts @@ -1065,7 +1065,7 @@ export interface MSWHandlers { req: Request cookies: Record }) => Promisable> - /** `GET /v1/system/hardware/rack-switch-port/:rackId/:switchLocation/:port/lldp/neighbors` */ + /** `GET /v1/system/hardware/rack-switch-port/:rackId/:switchSlot/:port/lldp/neighbors` */ networkingSwitchPortLldpNeighbors: (params: { path: Api.NetworkingSwitchPortLldpNeighborsPathParams query: Api.NetworkingSwitchPortLldpNeighborsQueryParams @@ -1501,7 +1501,7 @@ export interface MSWHandlers { req: Request cookies: Record }) => Promisable> - /** `DELETE /v1/system/networking/loopback-address/:rackId/:switchLocation/:address/:subnetMask` */ + /** `DELETE /v1/system/networking/loopback-address/:rackId/:switchSlot/:address/:subnetMask` */ networkingLoopbackAddressDelete: (params: { path: Api.NetworkingLoopbackAddressDeletePathParams req: Request @@ -2993,7 +2993,7 @@ export function makeHandlers(handlers: MSWHandlers): HttpHandler[] { handler(handlers['physicalDiskView'], schema.PhysicalDiskViewParams, null) ), http.get( - '/v1/system/hardware/rack-switch-port/:rackId/:switchLocation/:port/lldp/neighbors', + '/v1/system/hardware/rack-switch-port/:rackId/:switchSlot/:port/lldp/neighbors', handler( handlers['networkingSwitchPortLldpNeighbors'], schema.NetworkingSwitchPortLldpNeighborsParams, @@ -3401,7 +3401,7 @@ export function makeHandlers(handlers: MSWHandlers): HttpHandler[] { ) ), http.delete( - '/v1/system/networking/loopback-address/:rackId/:switchLocation/:address/:subnetMask', + '/v1/system/networking/loopback-address/:rackId/:switchSlot/:address/:subnetMask', handler( handlers['networkingLoopbackAddressDelete'], schema.NetworkingLoopbackAddressDeleteParams, diff --git a/app/api/__generated__/validate.ts b/app/api/__generated__/validate.ts index b1038dc9a..f29976032 100644 --- a/app/api/__generated__/validate.ts +++ b/app/api/__generated__/validate.ts @@ -737,7 +737,7 @@ export const BfdMode = z.preprocess( */ export const BfdSessionDisable = z.preprocess( processResponseBody, - z.object({ remote: z.union([z.ipv4(), z.ipv6()]), switch: Name }) + z.object({ remote: z.union([z.ipv4(), z.ipv6()]), switchSlot: SwitchSlot }) ) /** @@ -751,7 +751,7 @@ export const BfdSessionEnable = z.preprocess( mode: BfdMode, remote: z.union([z.ipv4(), z.ipv6()]), requiredRx: z.number().min(0), - switch: Name, + switchSlot: SwitchSlot, }) ) @@ -769,7 +769,7 @@ export const BfdStatus = z.preprocess( peer: z.union([z.ipv4(), z.ipv6()]), requiredRx: z.number().min(0), state: BfdState, - switch: Name, + switchSlot: SwitchSlot, }) ) @@ -3035,7 +3035,7 @@ export const LoopbackAddress = z.preprocess( addressLotBlockId: z.uuid(), id: z.uuid(), rackId: z.uuid(), - switchLocation: z.string(), + switchSlot: SwitchSlot, }) ) @@ -3050,7 +3050,7 @@ export const LoopbackAddressCreate = z.preprocess( anycast: SafeBoolean, mask: z.number().min(0).max(255), rackId: z.uuid(), - switchLocation: Name, + switchSlot: SwitchSlot, }) ) @@ -4331,7 +4331,7 @@ export const SwitchPort = z.preprocess( portName: Name, portSettingsId: z.uuid().nullable().optional(), rackId: z.uuid(), - switchLocation: z.string(), + switchSlot: SwitchSlot, }) ) @@ -6993,7 +6993,7 @@ export const NetworkingSwitchPortLldpNeighborsParams = z.preprocess( path: z.object({ port: Name, rackId: z.uuid(), - switchLocation: Name, + switchSlot: SwitchSlot, }), query: z.object({ limit: z.number().min(1).max(4294967295).nullable().optional(), @@ -7149,7 +7149,7 @@ export const NetworkingSwitchPortLldpConfigViewParams = z.preprocess( }), query: z.object({ rackId: z.uuid(), - switchLocation: Name, + switchSlot: SwitchSlot, }), }) ) @@ -7162,7 +7162,7 @@ export const NetworkingSwitchPortLldpConfigUpdateParams = z.preprocess( }), query: z.object({ rackId: z.uuid(), - switchLocation: Name, + switchSlot: SwitchSlot, }), }) ) @@ -7175,7 +7175,7 @@ export const NetworkingSwitchPortApplySettingsParams = z.preprocess( }), query: z.object({ rackId: z.uuid(), - switchLocation: Name, + switchSlot: SwitchSlot, }), }) ) @@ -7188,7 +7188,7 @@ export const NetworkingSwitchPortClearSettingsParams = z.preprocess( }), query: z.object({ rackId: z.uuid(), - switchLocation: Name, + switchSlot: SwitchSlot, }), }) ) @@ -7201,7 +7201,7 @@ export const NetworkingSwitchPortStatusParams = z.preprocess( }), query: z.object({ rackId: z.uuid(), - switchLocation: Name, + switchSlot: SwitchSlot, }), }) ) @@ -7731,7 +7731,7 @@ export const NetworkingLoopbackAddressDeleteParams = z.preprocess( address: z.union([z.ipv4(), z.ipv6()]), rackId: z.uuid(), subnetMask: z.number().min(0).max(255), - switchLocation: Name, + switchSlot: SwitchSlot, }), query: z.object({}), })