From e4fc9d50316d29fbaf06c39049f523e3eda1f55d Mon Sep 17 00:00:00 2001 From: Kuzz007 Date: Sun, 2 Aug 2026 20:05:10 +0300 Subject: [PATCH] chore(frontend): regenerate schemas/types/openapi after the amneziawg trim npm run gen, matching CI's own codegen check: picks up the updated ServerSettings/Instance doc comments (types.go) and drops ensureAction (the old kernel-module Manager's now-deleted internal enum, which tools/openapigen was scanning and emitting bindings for even though it was never meant to be part of the public API surface). Co-Authored-By: Claude Sonnet 5 --- frontend/public/openapi.json | 4 +--- frontend/src/generated/schemas.ts | 4 +--- frontend/src/generated/types.ts | 1 - frontend/src/generated/zod.ts | 3 --- 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/frontend/public/openapi.json b/frontend/public/openapi.json index ad1d468dc..157a74f2f 100644 --- a/frontend/public/openapi.json +++ b/frontend/public/openapi.json @@ -2857,7 +2857,7 @@ "description": "ServerSettings is the \"server\" block of an AmneziaWG inbound's Settings\nJSON: the interface-level configuration shared by every client/peer. The\nlisten port is deliberately not duplicated here — it lives on the inbound\nrow itself (Inbound.Port), like every other protocol.", "properties": { "externalInterface": { - "description": "ExternalInterface is the host NIC PostUp/PostDown NAT rules attach to.\nEmpty means auto-detect.", + "description": "ExternalInterface, IPv6Enabled/IPv6Subnet/IPv6ExternalInterface, and\nRouteThroughXray are all vestigial as of the hard cutover to the\nembedded path (internal/amneziawgnet) -- see the matching fields on\nInstance for what each used to do under the retired kernel-module\narchitecture and what (if anything) is planned to read them again.", "type": "string" }, "h1": { @@ -2876,7 +2876,6 @@ "type": "string" }, "ipv6Enabled": { - "description": "IPv6Enabled turns on native IPv6 for clients: an IPv6 host address is\nallocated from IPv6Subnet alongside each client's IPv4 one, and the\nserver proxies NDP for each enabled client's address so upstream\nrouters see it as directly reachable (no NAT66). IPv6ExternalInterface\noverrides ExternalInterface for the NDP-proxy PostUp/PostDown entries\nspecifically; empty reuses ExternalInterface.", "type": "boolean" }, "ipv6ExternalInterface": { @@ -2909,7 +2908,6 @@ "type": "string" }, "routeThroughXray": { - "description": "RouteThroughXray turns on this inbound's TPROXY-into-Xray bridge; see\nInstance.RouteThroughXray for what that means. Off by default.", "type": "boolean" }, "s1": { diff --git a/frontend/src/generated/schemas.ts b/frontend/src/generated/schemas.ts index 20e008d93..5a2b19c43 100644 --- a/frontend/src/generated/schemas.ts +++ b/frontend/src/generated/schemas.ts @@ -2831,7 +2831,7 @@ export const SCHEMAS: Record = { "description": "ServerSettings is the \"server\" block of an AmneziaWG inbound's Settings\nJSON: the interface-level configuration shared by every client/peer. The\nlisten port is deliberately not duplicated here — it lives on the inbound\nrow itself (Inbound.Port), like every other protocol.", "properties": { "externalInterface": { - "description": "ExternalInterface is the host NIC PostUp/PostDown NAT rules attach to.\nEmpty means auto-detect.", + "description": "ExternalInterface, IPv6Enabled/IPv6Subnet/IPv6ExternalInterface, and\nRouteThroughXray are all vestigial as of the hard cutover to the\nembedded path (internal/amneziawgnet) -- see the matching fields on\nInstance for what each used to do under the retired kernel-module\narchitecture and what (if anything) is planned to read them again.", "type": "string" }, "h1": { @@ -2850,7 +2850,6 @@ export const SCHEMAS: Record = { "type": "string" }, "ipv6Enabled": { - "description": "IPv6Enabled turns on native IPv6 for clients: an IPv6 host address is\nallocated from IPv6Subnet alongside each client's IPv4 one, and the\nserver proxies NDP for each enabled client's address so upstream\nrouters see it as directly reachable (no NAT66). IPv6ExternalInterface\noverrides ExternalInterface for the NDP-proxy PostUp/PostDown entries\nspecifically; empty reuses ExternalInterface.", "type": "boolean" }, "ipv6ExternalInterface": { @@ -2883,7 +2882,6 @@ export const SCHEMAS: Record = { "type": "string" }, "routeThroughXray": { - "description": "RouteThroughXray turns on this inbound's TPROXY-into-Xray bridge; see\nInstance.RouteThroughXray for what that means. Off by default.", "type": "boolean" }, "s1": { diff --git a/frontend/src/generated/types.ts b/frontend/src/generated/types.ts index 22693bd03..2332a0c1b 100644 --- a/frontend/src/generated/types.ts +++ b/frontend/src/generated/types.ts @@ -3,7 +3,6 @@ export type OnlineAPISupport = number; export type ProcessState = string; export type Protocol = string; export type SubLinkProvider = unknown; -export type ensureAction = number; export type geodataFileKind = number; export type staticEgressResolver = string; export type transportBits = number; diff --git a/frontend/src/generated/zod.ts b/frontend/src/generated/zod.ts index f3be7c2fc..3e510ee98 100644 --- a/frontend/src/generated/zod.ts +++ b/frontend/src/generated/zod.ts @@ -12,9 +12,6 @@ export type Protocol = z.infer; export const SubLinkProviderSchema = z.unknown(); export type SubLinkProvider = z.infer; -export const ensureActionSchema = z.number().int(); -export type ensureAction = z.infer; - export const geodataFileKindSchema = z.number().int(); export type geodataFileKind = z.infer;