Fix StartOS 0.4 TypeScript packaging to match SDK API

This commit is contained in:
MacPro
2026-04-09 15:10:44 -05:00
parent d5046a0daf
commit 0b70cbb2bf
3436 changed files with 867051 additions and 92 deletions
@@ -0,0 +1,5 @@
export type AddDeviceParams = {
subnet: string;
name: string;
ip: string | null;
};
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=AddDeviceParams.js.map
@@ -0,0 +1 @@
{"version":3,"file":"AddDeviceParams.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/AddDeviceParams.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1,5 @@
import type { AnyVerifyingKey } from './AnyVerifyingKey';
export type AddKeyParams = {
name: string;
key: AnyVerifyingKey;
};
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=AddKeyParams.js.map
@@ -0,0 +1 @@
{"version":3,"file":"AddKeyParams.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/AddKeyParams.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
export type AddPortForwardParams = {
source: string;
target: string;
label: string | null;
};
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=AddPortForwardParams.js.map
@@ -0,0 +1 @@
{"version":3,"file":"AddPortForwardParams.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/AddPortForwardParams.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1,3 @@
export type AddSubnetParams = {
name: string;
};
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=AddSubnetParams.js.map
@@ -0,0 +1 @@
{"version":3,"file":"AddSubnetParams.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/AddSubnetParams.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1 @@
export type AnyVerifyingKey = string;
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=AnyVerifyingKey.js.map
@@ -0,0 +1 @@
{"version":3,"file":"AnyVerifyingKey.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/AnyVerifyingKey.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1 @@
export type Base64 = string;
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=Base64.js.map
@@ -0,0 +1 @@
{"version":3,"file":"Base64.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/Base64.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1 @@
export type GatewayId = string;
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=GatewayId.js.map
@@ -0,0 +1 @@
{"version":3,"file":"GatewayId.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/GatewayId.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1 @@
export type GatewayType = 'inbound-outbound' | 'outbound-only';
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=GatewayType.js.map
@@ -0,0 +1 @@
{"version":3,"file":"GatewayType.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/GatewayType.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1,11 @@
import type { NetworkInterfaceType } from './NetworkInterfaceType';
export type IpInfo = {
name: string;
scopeId: number;
deviceType: NetworkInterfaceType | null;
subnets: string[];
lanIp: string[];
wanIp: string | null;
ntpServers: string[];
dnsServers: string[];
};
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IpInfo.js.map
@@ -0,0 +1 @@
{"version":3,"file":"IpInfo.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/IpInfo.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
export type ListDevicesParams = {
subnet: string;
};
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ListDevicesParams.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ListDevicesParams.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/ListDevicesParams.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1,8 @@
import type { GatewayType } from './GatewayType';
import type { IpInfo } from './IpInfo';
export type NetworkInterfaceInfo = {
name: string | null;
secure: boolean | null;
ipInfo: IpInfo | null;
type: GatewayType | null;
};
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=NetworkInterfaceInfo.js.map
@@ -0,0 +1 @@
{"version":3,"file":"NetworkInterfaceInfo.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/NetworkInterfaceInfo.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
export type NetworkInterfaceType = 'ethernet' | 'wireless' | 'bridge' | 'wireguard' | 'loopback';
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=NetworkInterfaceType.js.map
@@ -0,0 +1 @@
{"version":3,"file":"NetworkInterfaceType.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/NetworkInterfaceType.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1 @@
export type Pem = string;
+4
View File
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=Pem.js.map
@@ -0,0 +1 @@
{"version":3,"file":"Pem.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/Pem.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1,5 @@
export type PortForwardEntry = {
target: string;
label: string | null;
enabled: boolean;
};
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=PortForwardEntry.js.map
@@ -0,0 +1 @@
{"version":3,"file":"PortForwardEntry.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/PortForwardEntry.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1,4 @@
import type { PortForwardEntry } from './PortForwardEntry';
export type PortForwards = {
[key: string]: PortForwardEntry;
};
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=PortForwards.js.map
@@ -0,0 +1 @@
{"version":3,"file":"PortForwards.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/PortForwards.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
export type RemoveDeviceParams = {
subnet: string;
ip: string;
};
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=RemoveDeviceParams.js.map
@@ -0,0 +1 @@
{"version":3,"file":"RemoveDeviceParams.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/RemoveDeviceParams.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1,4 @@
import type { AnyVerifyingKey } from './AnyVerifyingKey';
export type RemoveKeyParams = {
key: AnyVerifyingKey;
};
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=RemoveKeyParams.js.map
@@ -0,0 +1 @@
{"version":3,"file":"RemoveKeyParams.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/RemoveKeyParams.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
export type RemovePortForwardParams = {
source: string;
};
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=RemovePortForwardParams.js.map
@@ -0,0 +1 @@
{"version":3,"file":"RemovePortForwardParams.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/RemovePortForwardParams.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1,5 @@
export type Session = {
loggedIn: string;
lastActive: string;
userAgent: string | null;
};
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=Session.js.map
@@ -0,0 +1 @@
{"version":3,"file":"Session.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/Session.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1,4 @@
import type { Session } from './Session';
export type Sessions = {
[key: string]: Session;
};
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=Sessions.js.map
@@ -0,0 +1 @@
{"version":3,"file":"Sessions.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/Sessions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
export type SetPasswordParams = {
password: string;
};
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=SetPasswordParams.js.map
@@ -0,0 +1 @@
{"version":3,"file":"SetPasswordParams.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/SetPasswordParams.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1,4 @@
export type SetPortForwardEnabledParams = {
source: string;
enabled: boolean;
};
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=SetPortForwardEnabledParams.js.map
@@ -0,0 +1 @@
{"version":3,"file":"SetPortForwardEnabledParams.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/SetPortForwardEnabledParams.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1,5 @@
export type ShowConfigParams = {
subnet: string;
ip: string;
wanAddr: string | null;
};
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ShowConfigParams.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ShowConfigParams.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/ShowConfigParams.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1,3 @@
export type SignerInfo = {
name: string;
};
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=SignerInfo.js.map
@@ -0,0 +1 @@
{"version":3,"file":"SignerInfo.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/SignerInfo.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1,3 @@
export type SubnetParams = {
subnet: string;
};
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=SubnetParams.js.map
@@ -0,0 +1 @@
{"version":3,"file":"SubnetParams.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/SubnetParams.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1,5 @@
import type { Pem } from './Pem';
export type TunnelCertData = {
key: Pem;
cert: Pem;
};
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=TunnelCertData.js.map
@@ -0,0 +1 @@
{"version":3,"file":"TunnelCertData.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/TunnelCertData.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
import type { AnyVerifyingKey } from './AnyVerifyingKey';
import type { GatewayId } from './GatewayId';
import type { NetworkInterfaceInfo } from './NetworkInterfaceInfo';
import type { PortForwards } from './PortForwards';
import type { Sessions } from './Sessions';
import type { SignerInfo } from './SignerInfo';
import type { WebserverInfo } from './WebserverInfo';
import type { WgServer } from './WgServer';
export type TunnelDatabase = {
webserver: WebserverInfo;
sessions: Sessions;
password: string | null;
authPubkeys: {
[key: AnyVerifyingKey]: SignerInfo;
};
gateways: {
[key: GatewayId]: NetworkInterfaceInfo;
};
wg: WgServer;
portForwards: PortForwards;
};
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=TunnelDatabase.js.map
@@ -0,0 +1 @@
{"version":3,"file":"TunnelDatabase.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/TunnelDatabase.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
export type TunnelUpdateResult = {
/**
* "up-to-date", "update-available", or "updating"
*/
status: string;
/**
* Currently installed version
*/
installed: string;
/**
* Available candidate version
*/
candidate: string;
};
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=TunnelUpdateResult.js.map
@@ -0,0 +1 @@
{"version":3,"file":"TunnelUpdateResult.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/TunnelUpdateResult.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1,4 @@
export type UpdatePortForwardLabelParams = {
source: string;
label: string | null;
};
@@ -0,0 +1,4 @@
"use strict";
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=UpdatePortForwardLabelParams.js.map
@@ -0,0 +1 @@
{"version":3,"file":"UpdatePortForwardLabelParams.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/UpdatePortForwardLabelParams.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
@@ -0,0 +1,6 @@
import type { TunnelCertData } from './TunnelCertData';
export type WebserverInfo = {
enabled: boolean;
listen: string | null;
certificate: TunnelCertData | null;
};
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=WebserverInfo.js.map
@@ -0,0 +1 @@
{"version":3,"file":"WebserverInfo.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/WebserverInfo.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
import type { Base64 } from './Base64';
export type WgConfig = {
name: string;
key: Base64;
psk: Base64;
};
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=WgConfig.js.map
@@ -0,0 +1 @@
{"version":3,"file":"WgConfig.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/WgConfig.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
import type { Base64 } from './Base64';
import type { WgSubnetMap } from './WgSubnetMap';
export type WgServer = {
port: number;
key: Base64;
subnets: WgSubnetMap;
};
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=WgServer.js.map
@@ -0,0 +1 @@
{"version":3,"file":"WgServer.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/WgServer.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
import type { WgConfig } from './WgConfig';
export type WgSubnetClients = {
[key: string]: WgConfig;
};
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=WgSubnetClients.js.map
@@ -0,0 +1 @@
{"version":3,"file":"WgSubnetClients.js","sourceRoot":"","sources":["../../../../../base/lib/osBindings/tunnel/WgSubnetClients.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
import type { WgSubnetClients } from './WgSubnetClients';
export type WgSubnetConfig = {
name: string;
clients: WgSubnetClients;
};

Some files were not shown because too many files have changed in this diff Show More