From 1ebb507cbb50824f07e3361c2364aecb70828930 Mon Sep 17 00:00:00 2001 From: Eduard Gert Date: Fri, 15 May 2026 13:01:19 +0200 Subject: [PATCH] remove bindings from git --- client/ui/CLAUDE.md | 2 +- client/ui/frontend/CLAUDE.md | 2 +- .../netbird/client/ui/services/connection.ts | 51 - .../netbird/client/ui/services/debug.ts | 44 - .../netbird/client/ui/services/forwarding.ts | 29 - .../netbird/client/ui/services/i18n.ts | 44 - .../netbird/client/ui/services/index.ts | 60 - .../netbird/client/ui/services/models.ts | 1194 ----------------- .../netbird/client/ui/services/networks.ts | 33 - .../netbird/client/ui/services/peers.ts | 90 -- .../netbird/client/ui/services/preferences.ts | 40 - .../netbird/client/ui/services/profiles.ts | 52 - .../client/ui/services/profileswitcher.ts | 62 - .../netbird/client/ui/services/settings.ts | 35 - .../netbird/client/ui/services/update.ts | 41 - .../wailsapp/wails/v3/internal/eventcreate.ts | 33 - .../wailsapp/wails/v3/internal/eventdata.d.ts | 25 - .../v3/pkg/services/notifications/index.ts | 13 - .../v3/pkg/services/notifications/models.ts | 107 -- .../notifications/notificationservice.ts | 62 - client/ui/frontend/package.json | 1 + 21 files changed, 3 insertions(+), 2017 deletions(-) delete mode 100644 client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/connection.ts delete mode 100644 client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/debug.ts delete mode 100644 client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/forwarding.ts delete mode 100644 client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/i18n.ts delete mode 100644 client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/index.ts delete mode 100644 client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/models.ts delete mode 100644 client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/networks.ts delete mode 100644 client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/peers.ts delete mode 100644 client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/preferences.ts delete mode 100644 client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/profiles.ts delete mode 100644 client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/profileswitcher.ts delete mode 100644 client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/settings.ts delete mode 100644 client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/update.ts delete mode 100644 client/ui/frontend/bindings/github.com/wailsapp/wails/v3/internal/eventcreate.ts delete mode 100644 client/ui/frontend/bindings/github.com/wailsapp/wails/v3/internal/eventdata.d.ts delete mode 100644 client/ui/frontend/bindings/github.com/wailsapp/wails/v3/pkg/services/notifications/index.ts delete mode 100644 client/ui/frontend/bindings/github.com/wailsapp/wails/v3/pkg/services/notifications/models.ts delete mode 100644 client/ui/frontend/bindings/github.com/wailsapp/wails/v3/pkg/services/notifications/notificationservice.ts diff --git a/client/ui/CLAUDE.md b/client/ui/CLAUDE.md index 442506e6d..77bb098d5 100644 --- a/client/ui/CLAUDE.md +++ b/client/ui/CLAUDE.md @@ -27,7 +27,7 @@ Each service is registered via `app.RegisterService(application.NewService(svc)) - `screens/` — content shown inside `AppLayout` (`Status`, `Peers`, `Networks`, `Profiles`, `Settings`, `Update`, `QuickActions`, `Debug`). ### Generated bindings -- `frontend/bindings/**` — generated, do not edit by hand. Regenerate via `wails3 generate bindings -clean=true -ts` from this directory after editing any `services/*.go`. +- `frontend/bindings/**` — generated, **gitignored**, do not edit by hand. After editing any `services/*.go`, regenerate from this directory via `wails3 generate bindings -clean=true -ts` (or `pnpm bindings` from `frontend/`). Fresh clones need to run this once before `pnpm typecheck` will succeed; `wails3 dev` regenerates on its own. ## Services rundown diff --git a/client/ui/frontend/CLAUDE.md b/client/ui/frontend/CLAUDE.md index 19475fbf0..87f92bfee 100644 --- a/client/ui/frontend/CLAUDE.md +++ b/client/ui/frontend/CLAUDE.md @@ -42,7 +42,7 @@ pnpm format:check So `import { Connection } from "@bindings/services"` and `import type { Status } from "@bindings/services/models.js"` are the canonical imports. **Don't** hand-write deep `../../bindings/github.com/...` paths — a few legacy screens (`screens/Profiles.tsx`, `pages/Update.tsx`) still do; treat that as a smell. -Bindings are regenerated from Go via `wails3 generate bindings -clean=true -ts` from `client/ui/`. Don't edit anything under `bindings/`. +`bindings/` is **gitignored** — every file is generated and never hand-edited. Regenerate from `client/ui/` via `wails3 generate bindings -clean=true -ts`, or use the `pnpm bindings` shortcut from this directory. A fresh clone has no `bindings/` on disk, so `pnpm typecheck` will fail until you run it once; `wails3 dev` regenerates on its own. ## Routing (app.tsx) diff --git a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/connection.ts b/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/connection.ts deleted file mode 100644 index db3e2b556..000000000 --- a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/connection.ts +++ /dev/null @@ -1,51 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -/** - * Connection groups the daemon RPCs that drive login / connect / disconnect. - * @module - */ - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime"; - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import * as $models from "./models.js"; - -export function Down(): $CancellablePromise { - return $Call.ByID(70044537); -} - -export function Login(p: $models.LoginParams): $CancellablePromise<$models.LoginResult> { - return $Call.ByID(252661358, p).then(($result: any) => { - return $$createType0($result); - }); -} - -export function Logout(p: $models.LogoutParams): $CancellablePromise { - return $Call.ByID(3824847887, p); -} - -/** - * OpenURL launches the user's preferred browser to display url. Mirrors the - * Fyne client's openURL helper so the SSO flow can pop the verification page - * the same way as the legacy UI — WebKitGTK's window.open is blocked by the - * embedded webview, and asking the user to copy/paste defeats the point of - * SSO. Honors $BROWSER first, then falls back to the platform default. - */ -export function OpenURL(url: string): $CancellablePromise { - return $Call.ByID(3786555598, url); -} - -export function Up(p: $models.UpParams): $CancellablePromise { - return $Call.ByID(3381092588, p); -} - -export function WaitSSOLogin(p: $models.WaitSSOParams): $CancellablePromise { - return $Call.ByID(1751351500, p); -} - -// Private type creation functions -const $$createType0 = $models.LoginResult.createFrom; diff --git a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/debug.ts b/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/debug.ts deleted file mode 100644 index 35329dfbf..000000000 --- a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/debug.ts +++ /dev/null @@ -1,44 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -/** - * Debug groups debug / log-level / packet-trace RPCs. - * @module - */ - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime"; - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import * as $models from "./models.js"; - -export function Bundle(p: $models.DebugBundleParams): $CancellablePromise<$models.DebugBundleResult> { - return $Call.ByID(617551238, p).then(($result: any) => { - return $$createType0($result); - }); -} - -export function GetLogLevel(): $CancellablePromise<$models.LogLevel> { - return $Call.ByID(3832950014).then(($result: any) => { - return $$createType1($result); - }); -} - -/** - * RevealFile opens the OS file manager focused on the given path. Wails' - * Browser.OpenURL refuses non-http(s) schemes, so the UI calls this binding - * instead of constructing a file:// URL. - */ -export function RevealFile(path: string): $CancellablePromise { - return $Call.ByID(2620662837, path); -} - -export function SetLogLevel(lvl: $models.LogLevel): $CancellablePromise { - return $Call.ByID(4122411498, lvl); -} - -// Private type creation functions -const $$createType0 = $models.DebugBundleResult.createFrom; -const $$createType1 = $models.LogLevel.createFrom; diff --git a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/forwarding.ts b/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/forwarding.ts deleted file mode 100644 index 803afe6b0..000000000 --- a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/forwarding.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -/** - * Forwarding groups the daemon RPCs that surface exposed/forwarded services. - * @module - */ - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime"; - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import * as $models from "./models.js"; - -/** - * List returns the current set of forwarding rules from the daemon's - * reverse proxy. The frontend renders these as the "exposed services" list. - */ -export function List(): $CancellablePromise<$models.ForwardingRule[]> { - return $Call.ByID(3831092172).then(($result: any) => { - return $$createType1($result); - }); -} - -// Private type creation functions -const $$createType0 = $models.ForwardingRule.createFrom; -const $$createType1 = $Create.Array($$createType0); diff --git a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/i18n.ts b/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/i18n.ts deleted file mode 100644 index e94e9c8a4..000000000 --- a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/i18n.ts +++ /dev/null @@ -1,44 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -/** - * I18n is the Wails-bound facade over i18n.Bundle. It exists only to give - * the binding generator a service type with the context.Context-first - * signatures it expects; the translation logic, locale loading and the - * LanguageCode type all live in client/ui/i18n. - * @module - */ - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime"; - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import * as i18n$0 from "../i18n/models.js"; - -/** - * Bundle returns the full key->text map for one language, letting the - * React side drive its own translation library (i18next, etc.) off the - * same source bundles the tray uses. - */ -export function Bundle(code: i18n$0.LanguageCode): $CancellablePromise<{ [_ in string]?: string }> { - return $Call.ByID(1780869897, code).then(($result: any) => { - return $$createType0($result); - }); -} - -/** - * Languages exposes the list of shipped locales to the frontend so the - * settings page can populate its language picker. - */ -export function Languages(): $CancellablePromise { - return $Call.ByID(768152924).then(($result: any) => { - return $$createType2($result); - }); -} - -// Private type creation functions -const $$createType0 = $Create.Map($Create.Any, $Create.Any); -const $$createType1 = i18n$0.Language.createFrom; -const $$createType2 = $Create.Array($$createType1); diff --git a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/index.ts b/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/index.ts deleted file mode 100644 index aa9a99b02..000000000 --- a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/index.ts +++ /dev/null @@ -1,60 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -import * as Connection from "./connection.js"; -import * as Debug from "./debug.js"; -import * as Forwarding from "./forwarding.js"; -import * as I18n from "./i18n.js"; -import * as Networks from "./networks.js"; -import * as Peers from "./peers.js"; -import * as Preferences from "./preferences.js"; -import * as ProfileSwitcher from "./profileswitcher.js"; -import * as Profiles from "./profiles.js"; -import * as Settings from "./settings.js"; -import * as Update from "./update.js"; -import * as WindowManager from "./windowmanager.js"; -export { - Connection, - Debug, - Forwarding, - I18n, - Networks, - Peers, - Preferences, - ProfileSwitcher, - Profiles, - Settings, - Update, - WindowManager -}; - -export { - ActiveProfile, - Config, - ConfigParams, - DebugBundleParams, - DebugBundleResult, - Features, - ForwardingRule, - LocalPeer, - LogLevel, - LoginParams, - LoginResult, - LogoutParams, - Network, - PeerLink, - PeerStatus, - PortInfo, - PortRange, - Profile, - ProfileRef, - SelectNetworksParams, - SetConfigParams, - Status, - SystemEvent, - UpParams, - UpdateAvailable, - UpdateProgress, - UpdateResult, - WaitSSOParams -} from "./models.js"; diff --git a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/models.ts b/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/models.ts deleted file mode 100644 index d561338bf..000000000 --- a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/models.ts +++ /dev/null @@ -1,1194 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import { Create as $Create } from "@wailsio/runtime"; - -/** - * ActiveProfile is the result of GetActiveProfile. - */ -export class ActiveProfile { - "profileName": string; - "username": string; - - /** Creates a new ActiveProfile instance. */ - constructor($$source: Partial = {}) { - if (!("profileName" in $$source)) { - this["profileName"] = ""; - } - if (!("username" in $$source)) { - this["username"] = ""; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new ActiveProfile instance from a string or object. - */ - static createFrom($$source: any = {}): ActiveProfile { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new ActiveProfile($$parsedSource as Partial); - } -} - -/** - * Config is the daemon configuration the UI exposes in the settings window. - * Pointer fields mark "set" vs "unset" so the UI can omit a value to keep the - * daemon's current setting (matching SetConfigRequest's optional semantics). - */ -export class Config { - "managementUrl": string; - "adminUrl": string; - "configFile": string; - "logFile": string; - "preSharedKey": string; - "interfaceName": string; - "wireguardPort": number; - "mtu": number; - "disableAutoConnect": boolean; - "serverSshAllowed": boolean; - "rosenpassEnabled": boolean; - "rosenpassPermissive": boolean; - "disableNotifications": boolean; - "lazyConnectionEnabled": boolean; - "blockInbound": boolean; - "networkMonitor": boolean; - "disableClientRoutes": boolean; - "disableServerRoutes": boolean; - "disableDns": boolean; - "disableIpv6": boolean; - "blockLanAccess": boolean; - "enableSshRoot": boolean; - "enableSshSftp": boolean; - "enableSshLocalPortForwarding": boolean; - "enableSshRemotePortForwarding": boolean; - "disableSshAuth": boolean; - "sshJwtCacheTtl": number; - - /** Creates a new Config instance. */ - constructor($$source: Partial = {}) { - if (!("managementUrl" in $$source)) { - this["managementUrl"] = ""; - } - if (!("adminUrl" in $$source)) { - this["adminUrl"] = ""; - } - if (!("configFile" in $$source)) { - this["configFile"] = ""; - } - if (!("logFile" in $$source)) { - this["logFile"] = ""; - } - if (!("preSharedKey" in $$source)) { - this["preSharedKey"] = ""; - } - if (!("interfaceName" in $$source)) { - this["interfaceName"] = ""; - } - if (!("wireguardPort" in $$source)) { - this["wireguardPort"] = 0; - } - if (!("mtu" in $$source)) { - this["mtu"] = 0; - } - if (!("disableAutoConnect" in $$source)) { - this["disableAutoConnect"] = false; - } - if (!("serverSshAllowed" in $$source)) { - this["serverSshAllowed"] = false; - } - if (!("rosenpassEnabled" in $$source)) { - this["rosenpassEnabled"] = false; - } - if (!("rosenpassPermissive" in $$source)) { - this["rosenpassPermissive"] = false; - } - if (!("disableNotifications" in $$source)) { - this["disableNotifications"] = false; - } - if (!("lazyConnectionEnabled" in $$source)) { - this["lazyConnectionEnabled"] = false; - } - if (!("blockInbound" in $$source)) { - this["blockInbound"] = false; - } - if (!("networkMonitor" in $$source)) { - this["networkMonitor"] = false; - } - if (!("disableClientRoutes" in $$source)) { - this["disableClientRoutes"] = false; - } - if (!("disableServerRoutes" in $$source)) { - this["disableServerRoutes"] = false; - } - if (!("disableDns" in $$source)) { - this["disableDns"] = false; - } - if (!("disableIpv6" in $$source)) { - this["disableIpv6"] = false; - } - if (!("blockLanAccess" in $$source)) { - this["blockLanAccess"] = false; - } - if (!("enableSshRoot" in $$source)) { - this["enableSshRoot"] = false; - } - if (!("enableSshSftp" in $$source)) { - this["enableSshSftp"] = false; - } - if (!("enableSshLocalPortForwarding" in $$source)) { - this["enableSshLocalPortForwarding"] = false; - } - if (!("enableSshRemotePortForwarding" in $$source)) { - this["enableSshRemotePortForwarding"] = false; - } - if (!("disableSshAuth" in $$source)) { - this["disableSshAuth"] = false; - } - if (!("sshJwtCacheTtl" in $$source)) { - this["sshJwtCacheTtl"] = 0; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new Config instance from a string or object. - */ - static createFrom($$source: any = {}): Config { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new Config($$parsedSource as Partial); - } -} - -/** - * ConfigParams selects which profile/user to read or write config for. - */ -export class ConfigParams { - "profileName": string; - "username": string; - - /** Creates a new ConfigParams instance. */ - constructor($$source: Partial = {}) { - if (!("profileName" in $$source)) { - this["profileName"] = ""; - } - if (!("username" in $$source)) { - this["username"] = ""; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new ConfigParams instance from a string or object. - */ - static createFrom($$source: any = {}): ConfigParams { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new ConfigParams($$parsedSource as Partial); - } -} - -/** - * DebugBundleParams configures what the daemon collects when generating a - * debug bundle. - */ -export class DebugBundleParams { - "anonymize": boolean; - "systemInfo": boolean; - "uploadUrl": string; - "logFileCount": number; - - /** Creates a new DebugBundleParams instance. */ - constructor($$source: Partial = {}) { - if (!("anonymize" in $$source)) { - this["anonymize"] = false; - } - if (!("systemInfo" in $$source)) { - this["systemInfo"] = false; - } - if (!("uploadUrl" in $$source)) { - this["uploadUrl"] = ""; - } - if (!("logFileCount" in $$source)) { - this["logFileCount"] = 0; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new DebugBundleParams instance from a string or object. - */ - static createFrom($$source: any = {}): DebugBundleParams { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new DebugBundleParams($$parsedSource as Partial); - } -} - -/** - * DebugBundleResult mirrors DebugBundleResponse — Path is set on local-only - * bundles, UploadedKey on successful uploads, UploadFailureReason on failed - * uploads. - */ -export class DebugBundleResult { - "path": string; - "uploadedKey": string; - "uploadFailureReason": string; - - /** Creates a new DebugBundleResult instance. */ - constructor($$source: Partial = {}) { - if (!("path" in $$source)) { - this["path"] = ""; - } - if (!("uploadedKey" in $$source)) { - this["uploadedKey"] = ""; - } - if (!("uploadFailureReason" in $$source)) { - this["uploadFailureReason"] = ""; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new DebugBundleResult instance from a string or object. - */ - static createFrom($$source: any = {}): DebugBundleResult { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new DebugBundleResult($$parsedSource as Partial); - } -} - -/** - * Features reports which UI surfaces the daemon has disabled. The Fyne UI uses - * these flags to grey out menu items the operator turned off server-side. - */ -export class Features { - "disableProfiles": boolean; - "disableUpdateSettings": boolean; - "disableNetworks": boolean; - - /** Creates a new Features instance. */ - constructor($$source: Partial = {}) { - if (!("disableProfiles" in $$source)) { - this["disableProfiles"] = false; - } - if (!("disableUpdateSettings" in $$source)) { - this["disableUpdateSettings"] = false; - } - if (!("disableNetworks" in $$source)) { - this["disableNetworks"] = false; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new Features instance from a string or object. - */ - static createFrom($$source: any = {}): Features { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new Features($$parsedSource as Partial); - } -} - -/** - * ForwardingRule is one entry from the daemon's reverse-proxy table — - * what we ship to the frontend's "exposed services" view. - */ -export class ForwardingRule { - "protocol": string; - "destinationPort": PortInfo; - "translatedAddress": string; - "translatedHostname": string; - "translatedPort": PortInfo; - - /** Creates a new ForwardingRule instance. */ - constructor($$source: Partial = {}) { - if (!("protocol" in $$source)) { - this["protocol"] = ""; - } - if (!("destinationPort" in $$source)) { - this["destinationPort"] = (new PortInfo()); - } - if (!("translatedAddress" in $$source)) { - this["translatedAddress"] = ""; - } - if (!("translatedHostname" in $$source)) { - this["translatedHostname"] = ""; - } - if (!("translatedPort" in $$source)) { - this["translatedPort"] = (new PortInfo()); - } - - Object.assign(this, $$source); - } - - /** - * Creates a new ForwardingRule instance from a string or object. - */ - static createFrom($$source: any = {}): ForwardingRule { - const $$createField1_0 = $$createType0; - const $$createField4_0 = $$createType0; - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - if ("destinationPort" in $$parsedSource) { - $$parsedSource["destinationPort"] = $$createField1_0($$parsedSource["destinationPort"]); - } - if ("translatedPort" in $$parsedSource) { - $$parsedSource["translatedPort"] = $$createField4_0($$parsedSource["translatedPort"]); - } - return new ForwardingRule($$parsedSource as Partial); - } -} - -/** - * LocalPeer mirrors LocalPeerState — what this client looks like on the mesh. - */ -export class LocalPeer { - "ip": string; - "pubKey": string; - "fqdn": string; - "networks": string[]; - - /** Creates a new LocalPeer instance. */ - constructor($$source: Partial = {}) { - if (!("ip" in $$source)) { - this["ip"] = ""; - } - if (!("pubKey" in $$source)) { - this["pubKey"] = ""; - } - if (!("fqdn" in $$source)) { - this["fqdn"] = ""; - } - if (!("networks" in $$source)) { - this["networks"] = []; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new LocalPeer instance from a string or object. - */ - static createFrom($$source: any = {}): LocalPeer { - const $$createField3_0 = $$createType1; - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - if ("networks" in $$parsedSource) { - $$parsedSource["networks"] = $$createField3_0($$parsedSource["networks"]); - } - return new LocalPeer($$parsedSource as Partial); - } -} - -/** - * LogLevel is a single log-level value the daemon understands ("error", - * "warn", "info", "debug", "trace"). - */ -export class LogLevel { - "level": string; - - /** Creates a new LogLevel instance. */ - constructor($$source: Partial = {}) { - if (!("level" in $$source)) { - this["level"] = ""; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new LogLevel instance from a string or object. - */ - static createFrom($$source: any = {}): LogLevel { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new LogLevel($$parsedSource as Partial); - } -} - -/** - * LoginParams carries the fields the UI sets when starting a login. - */ -export class LoginParams { - "profileName": string; - "username": string; - "managementUrl": string; - "setupKey": string; - "preSharedKey": string; - "hostname": string; - "hint": string; - - /** Creates a new LoginParams instance. */ - constructor($$source: Partial = {}) { - if (!("profileName" in $$source)) { - this["profileName"] = ""; - } - if (!("username" in $$source)) { - this["username"] = ""; - } - if (!("managementUrl" in $$source)) { - this["managementUrl"] = ""; - } - if (!("setupKey" in $$source)) { - this["setupKey"] = ""; - } - if (!("preSharedKey" in $$source)) { - this["preSharedKey"] = ""; - } - if (!("hostname" in $$source)) { - this["hostname"] = ""; - } - if (!("hint" in $$source)) { - this["hint"] = ""; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new LoginParams instance from a string or object. - */ - static createFrom($$source: any = {}): LoginParams { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new LoginParams($$parsedSource as Partial); - } -} - -/** - * LoginResult is the daemon's reply to a Login call. - */ -export class LoginResult { - "needsSsoLogin": boolean; - "userCode": string; - "verificationUri": string; - "verificationUriComplete": string; - - /** Creates a new LoginResult instance. */ - constructor($$source: Partial = {}) { - if (!("needsSsoLogin" in $$source)) { - this["needsSsoLogin"] = false; - } - if (!("userCode" in $$source)) { - this["userCode"] = ""; - } - if (!("verificationUri" in $$source)) { - this["verificationUri"] = ""; - } - if (!("verificationUriComplete" in $$source)) { - this["verificationUriComplete"] = ""; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new LoginResult instance from a string or object. - */ - static createFrom($$source: any = {}): LoginResult { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new LoginResult($$parsedSource as Partial); - } -} - -/** - * LogoutParams selects the profile the daemon should log out. - */ -export class LogoutParams { - "profileName": string; - "username": string; - - /** Creates a new LogoutParams instance. */ - constructor($$source: Partial = {}) { - if (!("profileName" in $$source)) { - this["profileName"] = ""; - } - if (!("username" in $$source)) { - this["username"] = ""; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new LogoutParams instance from a string or object. - */ - static createFrom($$source: any = {}): LogoutParams { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new LogoutParams($$parsedSource as Partial); - } -} - -/** - * Network is one routed network the daemon offers to the client. - */ -export class Network { - "id": string; - "range": string; - "selected": boolean; - "domains": string[]; - "resolvedIps": { [_ in string]?: string[] }; - - /** Creates a new Network instance. */ - constructor($$source: Partial = {}) { - if (!("id" in $$source)) { - this["id"] = ""; - } - if (!("range" in $$source)) { - this["range"] = ""; - } - if (!("selected" in $$source)) { - this["selected"] = false; - } - if (!("domains" in $$source)) { - this["domains"] = []; - } - if (!("resolvedIps" in $$source)) { - this["resolvedIps"] = {}; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new Network instance from a string or object. - */ - static createFrom($$source: any = {}): Network { - const $$createField3_0 = $$createType1; - const $$createField4_0 = $$createType2; - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - if ("domains" in $$parsedSource) { - $$parsedSource["domains"] = $$createField3_0($$parsedSource["domains"]); - } - if ("resolvedIps" in $$parsedSource) { - $$parsedSource["resolvedIps"] = $$createField4_0($$parsedSource["resolvedIps"]); - } - return new Network($$parsedSource as Partial); - } -} - -/** - * PeerLink is one of the named connections between this peer and its mgmt - * or signal server. - */ -export class PeerLink { - "url": string; - "connected": boolean; - "error"?: string; - - /** Creates a new PeerLink instance. */ - constructor($$source: Partial = {}) { - if (!("url" in $$source)) { - this["url"] = ""; - } - if (!("connected" in $$source)) { - this["connected"] = false; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new PeerLink instance from a string or object. - */ - static createFrom($$source: any = {}): PeerLink { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new PeerLink($$parsedSource as Partial); - } -} - -/** - * PeerStatus is the frontend-facing shape of a daemon PeerState. Carries - * enough detail for the dashboard's compact peer row plus the on-click - * troubleshooting expansion (ICE candidate types, endpoints, handshake age). - */ -export class PeerStatus { - "ip": string; - "pubKey": string; - "connStatus": string; - "connStatusUpdateUnix": number; - "relayed": boolean; - "localIceCandidateType": string; - "remoteIceCandidateType": string; - "localIceCandidateEndpoint": string; - "remoteIceCandidateEndpoint": string; - "fqdn": string; - "bytesRx": number; - "bytesTx": number; - "latencyMs": number; - "relayAddress": string; - "lastHandshakeUnix": number; - "rosenpassEnabled": boolean; - "networks": string[]; - - /** Creates a new PeerStatus instance. */ - constructor($$source: Partial = {}) { - if (!("ip" in $$source)) { - this["ip"] = ""; - } - if (!("pubKey" in $$source)) { - this["pubKey"] = ""; - } - if (!("connStatus" in $$source)) { - this["connStatus"] = ""; - } - if (!("connStatusUpdateUnix" in $$source)) { - this["connStatusUpdateUnix"] = 0; - } - if (!("relayed" in $$source)) { - this["relayed"] = false; - } - if (!("localIceCandidateType" in $$source)) { - this["localIceCandidateType"] = ""; - } - if (!("remoteIceCandidateType" in $$source)) { - this["remoteIceCandidateType"] = ""; - } - if (!("localIceCandidateEndpoint" in $$source)) { - this["localIceCandidateEndpoint"] = ""; - } - if (!("remoteIceCandidateEndpoint" in $$source)) { - this["remoteIceCandidateEndpoint"] = ""; - } - if (!("fqdn" in $$source)) { - this["fqdn"] = ""; - } - if (!("bytesRx" in $$source)) { - this["bytesRx"] = 0; - } - if (!("bytesTx" in $$source)) { - this["bytesTx"] = 0; - } - if (!("latencyMs" in $$source)) { - this["latencyMs"] = 0; - } - if (!("relayAddress" in $$source)) { - this["relayAddress"] = ""; - } - if (!("lastHandshakeUnix" in $$source)) { - this["lastHandshakeUnix"] = 0; - } - if (!("rosenpassEnabled" in $$source)) { - this["rosenpassEnabled"] = false; - } - if (!("networks" in $$source)) { - this["networks"] = []; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new PeerStatus instance from a string or object. - */ - static createFrom($$source: any = {}): PeerStatus { - const $$createField16_0 = $$createType1; - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - if ("networks" in $$parsedSource) { - $$parsedSource["networks"] = $$createField16_0($$parsedSource["networks"]); - } - return new PeerStatus($$parsedSource as Partial); - } -} - -/** - * PortInfo carries the destination or translated port for a forwarding rule. - * Exactly one of Port or Range is populated, mirroring the daemon's oneof. - */ -export class PortInfo { - "port"?: number | null; - "range"?: PortRange | null; - - /** Creates a new PortInfo instance. */ - constructor($$source: Partial = {}) { - - Object.assign(this, $$source); - } - - /** - * Creates a new PortInfo instance from a string or object. - */ - static createFrom($$source: any = {}): PortInfo { - const $$createField1_0 = $$createType4; - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - if ("range" in $$parsedSource) { - $$parsedSource["range"] = $$createField1_0($$parsedSource["range"]); - } - return new PortInfo($$parsedSource as Partial); - } -} - -/** - * PortRange describes a contiguous port range. Both ends are inclusive. - */ -export class PortRange { - "start": number; - "end": number; - - /** Creates a new PortRange instance. */ - constructor($$source: Partial = {}) { - if (!("start" in $$source)) { - this["start"] = 0; - } - if (!("end" in $$source)) { - this["end"] = 0; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new PortRange instance from a string or object. - */ - static createFrom($$source: any = {}): PortRange { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new PortRange($$parsedSource as Partial); - } -} - -/** - * Profile is one named daemon profile. - */ -export class Profile { - "name": string; - "isActive": boolean; - - /** - * Email is the account address associated with this profile, sourced from - * the per-profile state file written by the CLI after a successful SSO - * login (e.g. ~/Library/Application Support/netbird/default.state.json on - * macOS). The daemon always runs as root, so its getConfigDir() resolves to - * the root home directory and cannot reach the user-owned state file. The - * UI process runs as the logged-in user and can read it directly via - * profilemanager.ProfileManager, which is why the email is fetched here - * instead of being returned by the ListProfiles RPC. - */ - "email": string; - - /** Creates a new Profile instance. */ - constructor($$source: Partial = {}) { - if (!("name" in $$source)) { - this["name"] = ""; - } - if (!("isActive" in $$source)) { - this["isActive"] = false; - } - if (!("email" in $$source)) { - this["email"] = ""; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new Profile instance from a string or object. - */ - static createFrom($$source: any = {}): Profile { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new Profile($$parsedSource as Partial); - } -} - -/** - * ProfileRef identifies a profile by name+username. - */ -export class ProfileRef { - "profileName": string; - "username": string; - - /** Creates a new ProfileRef instance. */ - constructor($$source: Partial = {}) { - if (!("profileName" in $$source)) { - this["profileName"] = ""; - } - if (!("username" in $$source)) { - this["username"] = ""; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new ProfileRef instance from a string or object. - */ - static createFrom($$source: any = {}): ProfileRef { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new ProfileRef($$parsedSource as Partial); - } -} - -/** - * SelectNetworksParams selects which networks to enable / disable. - * All means "every available network" (used by Select-All / Deselect-All buttons); - * Append means "leave the existing selection in place and merge these IDs in". - */ -export class SelectNetworksParams { - "networkIds": string[]; - "append": boolean; - "all": boolean; - - /** Creates a new SelectNetworksParams instance. */ - constructor($$source: Partial = {}) { - if (!("networkIds" in $$source)) { - this["networkIds"] = []; - } - if (!("append" in $$source)) { - this["append"] = false; - } - if (!("all" in $$source)) { - this["all"] = false; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new SelectNetworksParams instance from a string or object. - */ - static createFrom($$source: any = {}): SelectNetworksParams { - const $$createField0_0 = $$createType1; - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - if ("networkIds" in $$parsedSource) { - $$parsedSource["networkIds"] = $$createField0_0($$parsedSource["networkIds"]); - } - return new SelectNetworksParams($$parsedSource as Partial); - } -} - -/** - * SetConfigParams is a partial update — only fields with non-nil pointers - * are sent to the daemon. The frontend uses this to flip individual toggles. - */ -export class SetConfigParams { - "profileName": string; - "username": string; - "managementUrl": string; - "adminUrl": string; - "interfaceName"?: string | null; - "wireguardPort"?: number | null; - "mtu"?: number | null; - "preSharedKey"?: string | null; - "disableAutoConnect"?: boolean | null; - "serverSshAllowed"?: boolean | null; - "rosenpassEnabled"?: boolean | null; - "rosenpassPermissive"?: boolean | null; - "disableNotifications"?: boolean | null; - "lazyConnectionEnabled"?: boolean | null; - "blockInbound"?: boolean | null; - "networkMonitor"?: boolean | null; - "disableClientRoutes"?: boolean | null; - "disableServerRoutes"?: boolean | null; - "disableDns"?: boolean | null; - "disableIpv6"?: boolean | null; - "disableFirewall"?: boolean | null; - "blockLanAccess"?: boolean | null; - "enableSshRoot"?: boolean | null; - "enableSshSftp"?: boolean | null; - "enableSshLocalPortForwarding"?: boolean | null; - "enableSshRemotePortForwarding"?: boolean | null; - "disableSshAuth"?: boolean | null; - "sshJwtCacheTtl"?: number | null; - - /** Creates a new SetConfigParams instance. */ - constructor($$source: Partial = {}) { - if (!("profileName" in $$source)) { - this["profileName"] = ""; - } - if (!("username" in $$source)) { - this["username"] = ""; - } - if (!("managementUrl" in $$source)) { - this["managementUrl"] = ""; - } - if (!("adminUrl" in $$source)) { - this["adminUrl"] = ""; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new SetConfigParams instance from a string or object. - */ - static createFrom($$source: any = {}): SetConfigParams { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new SetConfigParams($$parsedSource as Partial); - } -} - -/** - * Status is the snapshot the frontend renders on the dashboard. - */ -export class Status { - "status": string; - "daemonVersion": string; - "management": PeerLink; - "signal": PeerLink; - "local": LocalPeer; - "peers": PeerStatus[]; - "events": SystemEvent[]; - - /** Creates a new Status instance. */ - constructor($$source: Partial = {}) { - if (!("status" in $$source)) { - this["status"] = ""; - } - if (!("daemonVersion" in $$source)) { - this["daemonVersion"] = ""; - } - if (!("management" in $$source)) { - this["management"] = (new PeerLink()); - } - if (!("signal" in $$source)) { - this["signal"] = (new PeerLink()); - } - if (!("local" in $$source)) { - this["local"] = (new LocalPeer()); - } - if (!("peers" in $$source)) { - this["peers"] = []; - } - if (!("events" in $$source)) { - this["events"] = []; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new Status instance from a string or object. - */ - static createFrom($$source: any = {}): Status { - const $$createField2_0 = $$createType5; - const $$createField3_0 = $$createType5; - const $$createField4_0 = $$createType6; - const $$createField5_0 = $$createType8; - const $$createField6_0 = $$createType10; - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - if ("management" in $$parsedSource) { - $$parsedSource["management"] = $$createField2_0($$parsedSource["management"]); - } - if ("signal" in $$parsedSource) { - $$parsedSource["signal"] = $$createField3_0($$parsedSource["signal"]); - } - if ("local" in $$parsedSource) { - $$parsedSource["local"] = $$createField4_0($$parsedSource["local"]); - } - if ("peers" in $$parsedSource) { - $$parsedSource["peers"] = $$createField5_0($$parsedSource["peers"]); - } - if ("events" in $$parsedSource) { - $$parsedSource["events"] = $$createField6_0($$parsedSource["events"]); - } - return new Status($$parsedSource as Partial); - } -} - -/** - * SystemEvent is the frontend-facing shape of a daemon SystemEvent. - */ -export class SystemEvent { - "id": string; - "severity": string; - "category": string; - "message": string; - "userMessage": string; - "timestamp": number; - "metadata": { [_ in string]?: string }; - - /** Creates a new SystemEvent instance. */ - constructor($$source: Partial = {}) { - if (!("id" in $$source)) { - this["id"] = ""; - } - if (!("severity" in $$source)) { - this["severity"] = ""; - } - if (!("category" in $$source)) { - this["category"] = ""; - } - if (!("message" in $$source)) { - this["message"] = ""; - } - if (!("userMessage" in $$source)) { - this["userMessage"] = ""; - } - if (!("timestamp" in $$source)) { - this["timestamp"] = 0; - } - if (!("metadata" in $$source)) { - this["metadata"] = {}; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new SystemEvent instance from a string or object. - */ - static createFrom($$source: any = {}): SystemEvent { - const $$createField6_0 = $$createType11; - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - if ("metadata" in $$parsedSource) { - $$parsedSource["metadata"] = $$createField6_0($$parsedSource["metadata"]); - } - return new SystemEvent($$parsedSource as Partial); - } -} - -/** - * UpParams selects the profile the daemon should bring up. - */ -export class UpParams { - "profileName": string; - "username": string; - - /** Creates a new UpParams instance. */ - constructor($$source: Partial = {}) { - if (!("profileName" in $$source)) { - this["profileName"] = ""; - } - if (!("username" in $$source)) { - this["username"] = ""; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new UpParams instance from a string or object. - */ - static createFrom($$source: any = {}): UpParams { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new UpParams($$parsedSource as Partial); - } -} - -/** - * UpdateAvailable carries the new_version_available metadata. - */ -export class UpdateAvailable { - "version": string; - "enforced": boolean; - - /** Creates a new UpdateAvailable instance. */ - constructor($$source: Partial = {}) { - if (!("version" in $$source)) { - this["version"] = ""; - } - if (!("enforced" in $$source)) { - this["enforced"] = false; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new UpdateAvailable instance from a string or object. - */ - static createFrom($$source: any = {}): UpdateAvailable { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new UpdateAvailable($$parsedSource as Partial); - } -} - -/** - * UpdateProgress carries the progress_window metadata. - */ -export class UpdateProgress { - "action": string; - "version": string; - - /** Creates a new UpdateProgress instance. */ - constructor($$source: Partial = {}) { - if (!("action" in $$source)) { - this["action"] = ""; - } - if (!("version" in $$source)) { - this["version"] = ""; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new UpdateProgress instance from a string or object. - */ - static createFrom($$source: any = {}): UpdateProgress { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new UpdateProgress($$parsedSource as Partial); - } -} - -/** - * UpdateResult mirrors TriggerUpdateResponse: Success false carries an error - * message in ErrorMsg. - */ -export class UpdateResult { - "success": boolean; - "errorMsg": string; - - /** Creates a new UpdateResult instance. */ - constructor($$source: Partial = {}) { - if (!("success" in $$source)) { - this["success"] = false; - } - if (!("errorMsg" in $$source)) { - this["errorMsg"] = ""; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new UpdateResult instance from a string or object. - */ - static createFrom($$source: any = {}): UpdateResult { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new UpdateResult($$parsedSource as Partial); - } -} - -/** - * WaitSSOParams carries the fields the UI passes to WaitSSOLogin. - */ -export class WaitSSOParams { - "userCode": string; - "hostname": string; - - /** Creates a new WaitSSOParams instance. */ - constructor($$source: Partial = {}) { - if (!("userCode" in $$source)) { - this["userCode"] = ""; - } - if (!("hostname" in $$source)) { - this["hostname"] = ""; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new WaitSSOParams instance from a string or object. - */ - static createFrom($$source: any = {}): WaitSSOParams { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new WaitSSOParams($$parsedSource as Partial); - } -} - -// Private type creation functions -const $$createType0 = PortInfo.createFrom; -const $$createType1 = $Create.Array($Create.Any); -const $$createType2 = $Create.Map($Create.Any, $$createType1); -const $$createType3 = PortRange.createFrom; -const $$createType4 = $Create.Nullable($$createType3); -const $$createType5 = PeerLink.createFrom; -const $$createType6 = LocalPeer.createFrom; -const $$createType7 = PeerStatus.createFrom; -const $$createType8 = $Create.Array($$createType7); -const $$createType9 = SystemEvent.createFrom; -const $$createType10 = $Create.Array($$createType9); -const $$createType11 = $Create.Map($Create.Any, $Create.Any); diff --git a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/networks.ts b/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/networks.ts deleted file mode 100644 index 82a8d870f..000000000 --- a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/networks.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -/** - * Networks groups the daemon RPCs that read and toggle routed networks. - * @module - */ - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime"; - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import * as $models from "./models.js"; - -export function Deselect(p: $models.SelectNetworksParams): $CancellablePromise { - return $Call.ByID(3382210947, p); -} - -export function List(): $CancellablePromise<$models.Network[]> { - return $Call.ByID(1550842096).then(($result: any) => { - return $$createType1($result); - }); -} - -export function Select(p: $models.SelectNetworksParams): $CancellablePromise { - return $Call.ByID(1339338400, p); -} - -// Private type creation functions -const $$createType0 = $models.Network.createFrom; -const $$createType1 = $Create.Array($$createType0); diff --git a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/peers.ts b/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/peers.ts deleted file mode 100644 index f33589c81..000000000 --- a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/peers.ts +++ /dev/null @@ -1,90 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -/** - * Peers serves the dashboard data: one polled Status RPC and a long-running - * SubscribeEvents stream that re-emits every event over the Wails event bus. - * - * Profile-switch suppression: ProfileSwitcher calls BeginProfileSwitch - * before tearing down the old profile when it would otherwise be followed - * by an Up on the new profile (i.e. previous status was Connected or - * Connecting). statusStreamLoop then swallows the transient stale - * Connected and Idle pushes the daemon emits during Down so the tray - * and the React Status page both see Connecting → new-profile-state - * instead of Connected → Connected → Idle → Connecting → new-state. - * - * Suppression transition (applied by shouldSuppress before each emit): - * - * ┌────────────────────────────────────────────┬──────────────────────────────────┐ - * │ Incoming daemon status │ Action │ - * ├────────────────────────────────────────────┼──────────────────────────────────┤ - * │ Connected, Idle │ Suppress (the blink we hide) │ - * │ Connecting │ Emit, clear flag (new Up began) │ - * │ NeedsLogin, LoginFailed, SessionExpired, │ Emit, clear flag (new profile's │ - * │ DaemonUnavailable │ "Up won't run" terminal state) │ - * │ (timeout elapsed) │ Clear flag, emit normally │ - * └────────────────────────────────────────────┴──────────────────────────────────┘ - * @module - */ - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime"; - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import * as $models from "./models.js"; - -/** - * BeginProfileSwitch is called by ProfileSwitcher at the start of a switch - * when the previous status was Connected/Connecting — i.e. the daemon is - * about to emit Connected updates during Down's peer-count teardown and - * then an Idle before the new profile's Up resumes the stream. The flag - * makes statusStreamLoop drop those transient events. A synthetic - * Connecting snapshot is emitted right away so both consumers (tray and - * React) paint the optimistic state immediately. A 30s safety timeout - * clears the flag if the daemon never emits a follow-up status. - */ -export function BeginProfileSwitch(): $CancellablePromise { - return $Call.ByID(3532998514); -} - -/** - * CancelProfileSwitch is called by callers that abort the switch midway - * (the tray's Disconnect click while Connecting). Clears the suppression - * flag so the next daemon Idle paints through immediately instead of - * being swallowed. - */ -export function CancelProfileSwitch(): $CancellablePromise { - return $Call.ByID(4190545179); -} - -/** - * Get returns the current daemon status snapshot. - */ -export function Get(): $CancellablePromise<$models.Status> { - return $Call.ByID(3266051360).then(($result: any) => { - return $$createType0($result); - }); -} - -/** - * Watch starts the background loops that feed the frontend: - * - statusStreamLoop: push-driven snapshots on connection-state change - * (Connected/Disconnected/Connecting, peer list, address). Drives the - * tray icon, Status page, and Peers page. - * - toastStreamLoop: DNS / network / auth / connectivity / update - * SystemEvent stream. Drives OS notifications, the Recent Events - * list, and the update-overlay flag. The daemon-side RPC is named - * SubscribeEvents — only the loop's local alias differs to keep the - * two streams distinguishable in this file. - * - * Safe to call once at boot; both loops self-restart on stream errors - * via exponential backoff. - */ -export function Watch(): $CancellablePromise { - return $Call.ByID(2799871735); -} - -// Private type creation functions -const $$createType0 = $models.Status.createFrom; diff --git a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/preferences.ts b/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/preferences.ts deleted file mode 100644 index 658cd32c4..000000000 --- a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/preferences.ts +++ /dev/null @@ -1,40 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -/** - * Preferences is the Wails-bound facade over preferences.Store. The store - * itself owns persistence and the subscription channel; this type just - * re-exposes Get and SetLanguage with the context.Context-first signature - * the Wails binding generator wants. - * @module - */ - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime"; - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import * as i18n$0 from "../i18n/models.js"; -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import * as preferences$0 from "../preferences/models.js"; - -/** - * Get returns the current user-scope preferences. - */ -export function Get(): $CancellablePromise { - return $Call.ByID(3500743391).then(($result: any) => { - return $$createType0($result); - }); -} - -/** - * SetLanguage validates and persists a new UI language. - */ -export function SetLanguage(lang: i18n$0.LanguageCode): $CancellablePromise { - return $Call.ByID(3710099805, lang); -} - -// Private type creation functions -const $$createType0 = preferences$0.UIPreferences.createFrom; diff --git a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/profiles.ts b/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/profiles.ts deleted file mode 100644 index 9a4577e0b..000000000 --- a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/profiles.ts +++ /dev/null @@ -1,52 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -/** - * Profiles groups the daemon RPCs that manage named profiles. - * @module - */ - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime"; - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import * as $models from "./models.js"; - -export function Add(p: $models.ProfileRef): $CancellablePromise { - return $Call.ByID(722930578, p); -} - -export function GetActive(): $CancellablePromise<$models.ActiveProfile> { - return $Call.ByID(3458449443).then(($result: any) => { - return $$createType0($result); - }); -} - -export function List(username: string): $CancellablePromise<$models.Profile[]> { - return $Call.ByID(3702185167, username).then(($result: any) => { - return $$createType2($result); - }); -} - -export function Remove(p: $models.ProfileRef): $CancellablePromise { - return $Call.ByID(2365690315, p); -} - -export function Switch(p: $models.ProfileRef): $CancellablePromise { - return $Call.ByID(3209858855, p); -} - -/** - * Username returns the OS username the daemon expects for profile lookups. - * The frontend calls this once at boot and reuses the result. - */ -export function Username(): $CancellablePromise { - return $Call.ByID(262345647); -} - -// Private type creation functions -const $$createType0 = $models.ActiveProfile.createFrom; -const $$createType1 = $models.Profile.createFrom; -const $$createType2 = $Create.Array($$createType1); diff --git a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/profileswitcher.ts b/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/profileswitcher.ts deleted file mode 100644 index 7148338f8..000000000 --- a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/profileswitcher.ts +++ /dev/null @@ -1,62 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -/** - * ProfileSwitcher encapsulates the full profile-switching reconnect policy - * so both the tray and the React frontend use identical logic. - * - * Reconnect policy + optimistic-feedback table (driven by prevStatus - * captured from Peers.Get at SwitchActive entry): - * - * ┌─────────────────┬──────────────────────┬──────────────────────────┬────────────────────┐ - * │ Previous status │ Action │ Optimistic UI label │ Suppressed events │ - * │ │ │ shown immediately │ until new flow │ - * ├─────────────────┼──────────────────────┼──────────────────────────┼────────────────────┤ - * │ Connected │ Switch + Down + Up │ Connecting (synthetic) │ Connected, Idle │ - * │ Connecting │ Switch + Down + Up │ Connecting (unchanged) │ Connected, Idle │ - * │ NeedsLogin │ Switch + Down │ (no change) │ — │ - * │ LoginFailed │ Switch + Down │ (no change) │ — │ - * │ SessionExpired │ Switch + Down │ (no change) │ — │ - * │ Idle │ Switch only │ (no change) │ — │ - * └─────────────────┴──────────────────────┴──────────────────────────┴────────────────────┘ - * - * Only Connected/Connecting trigger the optimistic Connecting paint - * (via Peers.BeginProfileSwitch): they're the only prevStatuses where - * the daemon emits stale Connected updates (peer count drops as the - * engine tears down) and then Idle, before the new profile's Up - * resumes the stream. Both are swallowed by Peers.shouldSuppress - * until a status that signals the new flow has begun (Connecting, or - * any of the "Up won't run" terminal states: NeedsLogin / LoginFailed / - * SessionExpired / DaemonUnavailable). The other prevStatuses either - * don't drive Down/Up at all (Idle) or stop after Down (NeedsLogin / - * LoginFailed / SessionExpired) — the resulting Idle is the correct - * terminal state, so no suppression is needed. - * - * Rationale for each Action choice: - * - * Connected → Reconnect with the new profile. - * Connecting → Stop old retry loop, restart. - * NeedsLogin → Clear stale error; user logs in. - * LoginFailed → Clear stale error; user logs in. - * SessionExpired → Clear stale error; user logs in. - * Idle → User chose offline; don't connect. - * @module - */ - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime"; - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import * as $models from "./models.js"; - -/** - * SwitchActive switches to the named profile applying the reconnect policy. - * All RPCs complete quickly: Up uses async mode so the daemon starts the - * connection attempt and returns immediately; status updates flow via the - * SubscribeStatus stream. - */ -export function SwitchActive(p: $models.ProfileRef): $CancellablePromise { - return $Call.ByID(4025913103, p); -} diff --git a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/settings.ts b/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/settings.ts deleted file mode 100644 index bc7b7b2d1..000000000 --- a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/settings.ts +++ /dev/null @@ -1,35 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -/** - * Settings groups the daemon RPCs that read and write the daemon config. - * @module - */ - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime"; - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import * as $models from "./models.js"; - -export function GetConfig(p: $models.ConfigParams): $CancellablePromise<$models.Config> { - return $Call.ByID(59246988, p).then(($result: any) => { - return $$createType0($result); - }); -} - -export function GetFeatures(): $CancellablePromise<$models.Features> { - return $Call.ByID(2056724965).then(($result: any) => { - return $$createType1($result); - }); -} - -export function SetConfig(p: $models.SetConfigParams): $CancellablePromise { - return $Call.ByID(26939944, p); -} - -// Private type creation functions -const $$createType0 = $models.Config.createFrom; -const $$createType1 = $models.Features.createFrom; diff --git a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/update.ts b/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/update.ts deleted file mode 100644 index c2bdd85e9..000000000 --- a/client/ui/frontend/bindings/github.com/netbirdio/netbird/client/ui/services/update.ts +++ /dev/null @@ -1,41 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -/** - * Update groups the RPCs that drive the enforced-update install flow. - * @module - */ - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime"; - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import * as $models from "./models.js"; - -export function GetInstallerResult(): $CancellablePromise<$models.UpdateResult> { - return $Call.ByID(2533624807).then(($result: any) => { - return $$createType0($result); - }); -} - -/** - * Quit asks the host application to exit. The /update page calls this once - * the daemon-side installer has reported success, mirroring the legacy - * Fyne UI's app.Quit() in showInstallerResult. Schedules the actual exit - * off the calling goroutine so the JS-side caller's response can return - * before the runtime tears down. - */ -export function Quit(): $CancellablePromise { - return $Call.ByID(409602657); -} - -export function Trigger(): $CancellablePromise<$models.UpdateResult> { - return $Call.ByID(166270378).then(($result: any) => { - return $$createType0($result); - }); -} - -// Private type creation functions -const $$createType0 = $models.UpdateResult.createFrom; diff --git a/client/ui/frontend/bindings/github.com/wailsapp/wails/v3/internal/eventcreate.ts b/client/ui/frontend/bindings/github.com/wailsapp/wails/v3/internal/eventcreate.ts deleted file mode 100644 index 83fb78bce..000000000 --- a/client/ui/frontend/bindings/github.com/wailsapp/wails/v3/internal/eventcreate.ts +++ /dev/null @@ -1,33 +0,0 @@ -//@ts-check -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import { Create as $Create } from "@wailsio/runtime"; - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import * as preferences$0 from "../../../../netbirdio/netbird/client/ui/preferences/models.js"; -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import * as services$0 from "../../../../netbirdio/netbird/client/ui/services/models.js"; - -function configure() { - Object.freeze(Object.assign($Create.Events, { - "netbird:event": $$createType0, - "netbird:preferences:changed": $$createType1, - "netbird:status": $$createType2, - "netbird:update:available": $$createType3, - "netbird:update:progress": $$createType4, - })); -} - -// Private type creation functions -const $$createType0 = services$0.SystemEvent.createFrom; -const $$createType1 = preferences$0.UIPreferences.createFrom; -const $$createType2 = services$0.Status.createFrom; -const $$createType3 = services$0.UpdateAvailable.createFrom; -const $$createType4 = services$0.UpdateProgress.createFrom; - -configure(); diff --git a/client/ui/frontend/bindings/github.com/wailsapp/wails/v3/internal/eventdata.d.ts b/client/ui/frontend/bindings/github.com/wailsapp/wails/v3/internal/eventdata.d.ts deleted file mode 100644 index c09d0ecb4..000000000 --- a/client/ui/frontend/bindings/github.com/wailsapp/wails/v3/internal/eventdata.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import type { Events } from "@wailsio/runtime"; - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import type * as preferences$0 from "../../../../netbirdio/netbird/client/ui/preferences/models.js"; -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import type * as services$0 from "../../../../netbirdio/netbird/client/ui/services/models.js"; - -declare module "@wailsio/runtime" { - namespace Events { - interface CustomEvents { - "netbird:event": services$0.SystemEvent; - "netbird:preferences:changed": preferences$0.UIPreferences; - "netbird:status": services$0.Status; - "netbird:update:available": services$0.UpdateAvailable; - "netbird:update:progress": services$0.UpdateProgress; - } - } -} diff --git a/client/ui/frontend/bindings/github.com/wailsapp/wails/v3/pkg/services/notifications/index.ts b/client/ui/frontend/bindings/github.com/wailsapp/wails/v3/pkg/services/notifications/index.ts deleted file mode 100644 index 71eda3bb9..000000000 --- a/client/ui/frontend/bindings/github.com/wailsapp/wails/v3/pkg/services/notifications/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -import * as NotificationService from "./notificationservice.js"; -export { - NotificationService -}; - -export { - NotificationAction, - NotificationCategory, - NotificationOptions -} from "./models.js"; diff --git a/client/ui/frontend/bindings/github.com/wailsapp/wails/v3/pkg/services/notifications/models.ts b/client/ui/frontend/bindings/github.com/wailsapp/wails/v3/pkg/services/notifications/models.ts deleted file mode 100644 index 3fbcb8270..000000000 --- a/client/ui/frontend/bindings/github.com/wailsapp/wails/v3/pkg/services/notifications/models.ts +++ /dev/null @@ -1,107 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import { Create as $Create } from "@wailsio/runtime"; - -/** - * NotificationAction represents an action button for a notification. - */ -export class NotificationAction { - "id"?: string; - "title"?: string; - - /** - * (macOS-specific) - */ - "destructive"?: boolean; - - /** Creates a new NotificationAction instance. */ - constructor($$source: Partial = {}) { - - Object.assign(this, $$source); - } - - /** - * Creates a new NotificationAction instance from a string or object. - */ - static createFrom($$source: any = {}): NotificationAction { - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - return new NotificationAction($$parsedSource as Partial); - } -} - -/** - * NotificationCategory groups actions for notifications. - */ -export class NotificationCategory { - "id"?: string; - "actions"?: NotificationAction[]; - "hasReplyField"?: boolean; - "replyPlaceholder"?: string; - "replyButtonTitle"?: string; - - /** Creates a new NotificationCategory instance. */ - constructor($$source: Partial = {}) { - - Object.assign(this, $$source); - } - - /** - * Creates a new NotificationCategory instance from a string or object. - */ - static createFrom($$source: any = {}): NotificationCategory { - const $$createField1_0 = $$createType1; - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - if ("actions" in $$parsedSource) { - $$parsedSource["actions"] = $$createField1_0($$parsedSource["actions"]); - } - return new NotificationCategory($$parsedSource as Partial); - } -} - -/** - * NotificationOptions contains configuration for a notification - */ -export class NotificationOptions { - "id": string; - "title": string; - - /** - * (macOS and Linux only) - */ - "subtitle"?: string; - "body"?: string; - "categoryId"?: string; - "data"?: { [_ in string]?: any }; - - /** Creates a new NotificationOptions instance. */ - constructor($$source: Partial = {}) { - if (!("id" in $$source)) { - this["id"] = ""; - } - if (!("title" in $$source)) { - this["title"] = ""; - } - - Object.assign(this, $$source); - } - - /** - * Creates a new NotificationOptions instance from a string or object. - */ - static createFrom($$source: any = {}): NotificationOptions { - const $$createField5_0 = $$createType2; - let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source; - if ("data" in $$parsedSource) { - $$parsedSource["data"] = $$createField5_0($$parsedSource["data"]); - } - return new NotificationOptions($$parsedSource as Partial); - } -} - -// Private type creation functions -const $$createType0 = NotificationAction.createFrom; -const $$createType1 = $Create.Array($$createType0); -const $$createType2 = $Create.Map($Create.Any, $Create.Any); diff --git a/client/ui/frontend/bindings/github.com/wailsapp/wails/v3/pkg/services/notifications/notificationservice.ts b/client/ui/frontend/bindings/github.com/wailsapp/wails/v3/pkg/services/notifications/notificationservice.ts deleted file mode 100644 index 859f3570f..000000000 --- a/client/ui/frontend/bindings/github.com/wailsapp/wails/v3/pkg/services/notifications/notificationservice.ts +++ /dev/null @@ -1,62 +0,0 @@ -// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL -// This file is automatically generated. DO NOT EDIT - -/** - * Service represents the notifications service - * @module - */ - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime"; - -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: Unused imports -import * as $models from "./models.js"; - -export function CheckNotificationAuthorization(): $CancellablePromise { - return $Call.ByID(2216952893); -} - -export function RegisterNotificationCategory(category: $models.NotificationCategory): $CancellablePromise { - return $Call.ByID(2917562919, category); -} - -export function RemoveAllDeliveredNotifications(): $CancellablePromise { - return $Call.ByID(3956282340); -} - -export function RemoveAllPendingNotifications(): $CancellablePromise { - return $Call.ByID(108821341); -} - -export function RemoveDeliveredNotification(identifier: string): $CancellablePromise { - return $Call.ByID(975691940, identifier); -} - -export function RemoveNotification(identifier: string): $CancellablePromise { - return $Call.ByID(3966653866, identifier); -} - -export function RemoveNotificationCategory(categoryID: string): $CancellablePromise { - return $Call.ByID(2032615554, categoryID); -} - -export function RemovePendingNotification(identifier: string): $CancellablePromise { - return $Call.ByID(3729049703, identifier); -} - -/** - * Public methods that delegate to the implementation. - */ -export function RequestNotificationAuthorization(): $CancellablePromise { - return $Call.ByID(3933442950); -} - -export function SendNotification(options: $models.NotificationOptions): $CancellablePromise { - return $Call.ByID(3968228732, options); -} - -export function SendNotificationWithActions(options: $models.NotificationOptions): $CancellablePromise { - return $Call.ByID(1886542847, options); -} diff --git a/client/ui/frontend/package.json b/client/ui/frontend/package.json index 46ed4319b..20cffe5df 100644 --- a/client/ui/frontend/package.json +++ b/client/ui/frontend/package.json @@ -9,6 +9,7 @@ "build": "tsc && vite build --mode production", "preview": "vite preview", "typecheck": "tsc --noEmit", + "bindings": "cd .. && wails3 generate bindings -clean=true -ts", "format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,css,json,md}\"", "format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,css,json,md}\"" },