From 3a2ed154587d0c5c473f1f8baad8b09ac1bab5df Mon Sep 17 00:00:00 2001 From: David Crespo Date: Tue, 10 Mar 2026 16:30:24 -0500 Subject: [PATCH] API bump for fun --- OMICRON_VERSION | 2 +- app/api/__generated__/Api.ts | 12 ++++++------ app/api/__generated__/OMICRON_VERSION | 2 +- app/api/__generated__/validate.ts | 13 +++++-------- 4 files changed, 13 insertions(+), 16 deletions(-) diff --git a/OMICRON_VERSION b/OMICRON_VERSION index 824abb4ea..07a70ad91 100644 --- a/OMICRON_VERSION +++ b/OMICRON_VERSION @@ -1 +1 @@ -87880bc474f9b35152d64518b39df5cdbbba5855 +dc9a109a5e2d608bc9a55485c884b284b67f358a diff --git a/app/api/__generated__/Api.ts b/app/api/__generated__/Api.ts index f3ea57828..d9f516f94 100644 --- a/app/api/__generated__/Api.ts +++ b/app/api/__generated__/Api.ts @@ -328,7 +328,7 @@ export type BgpMessageHistory = Record /** * Identifies switch physical location */ -export type SwitchLocation = /** Switch in upper slot */ +export type SwitchSlot = /** Switch in upper slot */ | 'switch0' /** Switch in lower slot */ @@ -341,7 +341,7 @@ export type SwitchBgpHistory = { /** Message history indexed by peer address. */ history: Record /** Switch this message history is associated with. */ - switch: SwitchLocation + switch: SwitchSlot } /** @@ -928,7 +928,7 @@ export type BgpExported = { /** The destination network prefix. */ prefix: IpNet /** Switch the route is exported from. */ - switch: SwitchLocation + switch: SwitchSlot } /** @@ -942,7 +942,7 @@ export type BgpImported = { /** The destination network prefix. */ prefix: IpNet /** Switch the route is imported into. */ - switch: SwitchLocation + switch: SwitchSlot } /** @@ -1046,7 +1046,7 @@ export type BgpPeerStatus = { /** Time of last state change. */ stateDurationMillis: number /** Switch with the peer session. */ - switch: SwitchLocation + switch: SwitchSlot } /** @@ -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 = '2026030200.0.0' + apiVersion = '2026030600.0.0' constructor({ host = '', baseParams = {}, token }: ApiConfig = {}) { this.host = host diff --git a/app/api/__generated__/OMICRON_VERSION b/app/api/__generated__/OMICRON_VERSION index 9018bd1f3..18da5ac7f 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 -87880bc474f9b35152d64518b39df5cdbbba5855 +dc9a109a5e2d608bc9a55485c884b284b67f358a diff --git a/app/api/__generated__/validate.ts b/app/api/__generated__/validate.ts index b0b08f116..b1038dc9a 100644 --- a/app/api/__generated__/validate.ts +++ b/app/api/__generated__/validate.ts @@ -327,17 +327,14 @@ export const BgpMessageHistory = z.preprocess( /** * Identifies switch physical location */ -export const SwitchLocation = z.preprocess( - processResponseBody, - z.enum(['switch0', 'switch1']) -) +export const SwitchSlot = z.preprocess(processResponseBody, z.enum(['switch0', 'switch1'])) /** * BGP message history for a particular switch. */ export const SwitchBgpHistory = z.preprocess( processResponseBody, - z.object({ history: z.record(z.string(), BgpMessageHistory), switch: SwitchLocation }) + z.object({ history: z.record(z.string(), BgpMessageHistory), switch: SwitchSlot }) ) /** @@ -865,7 +862,7 @@ export const BgpConfigResultsPage = z.preprocess( */ export const BgpExported = z.preprocess( processResponseBody, - z.object({ peerId: z.string(), prefix: IpNet, switch: SwitchLocation }) + z.object({ peerId: z.string(), prefix: IpNet, switch: SwitchSlot }) ) /** @@ -877,7 +874,7 @@ export const BgpImported = z.preprocess( id: z.number().min(0).max(4294967295), nexthop: z.union([z.ipv4(), z.ipv6()]), prefix: IpNet, - switch: SwitchLocation, + switch: SwitchSlot, }) ) @@ -954,7 +951,7 @@ export const BgpPeerStatus = z.preprocess( remoteAsn: z.number().min(0).max(4294967295), state: BgpPeerState, stateDurationMillis: z.number().min(0), - switch: SwitchLocation, + switch: SwitchSlot, }) )