mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
chore: update bindings and use typed params for outbound gateway API
This commit is contained in:
4
sdk/base/lib/osBindings/SetDefaultOutboundParams.ts
Normal file
4
sdk/base/lib/osBindings/SetDefaultOutboundParams.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { GatewayId } from './GatewayId'
|
||||
|
||||
export type SetDefaultOutboundParams = { gateway: GatewayId | null }
|
||||
8
sdk/base/lib/osBindings/SetOutboundGatewayParams.ts
Normal file
8
sdk/base/lib/osBindings/SetOutboundGatewayParams.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { GatewayId } from './GatewayId'
|
||||
import type { PackageId } from './PackageId'
|
||||
|
||||
export type SetOutboundGatewayParams = {
|
||||
package: PackageId
|
||||
gateway: GatewayId | null
|
||||
}
|
||||
@@ -243,6 +243,7 @@ export { Sessions } from './Sessions'
|
||||
export { Session } from './Session'
|
||||
export { SetCountryParams } from './SetCountryParams'
|
||||
export { SetDataVersionParams } from './SetDataVersionParams'
|
||||
export { SetDefaultOutboundParams } from './SetDefaultOutboundParams'
|
||||
export { SetDependenciesParams } from './SetDependenciesParams'
|
||||
export { SetHealth } from './SetHealth'
|
||||
export { SetIconParams } from './SetIconParams'
|
||||
@@ -250,6 +251,7 @@ export { SetLanguageParams } from './SetLanguageParams'
|
||||
export { SetMainStatusStatus } from './SetMainStatusStatus'
|
||||
export { SetMainStatus } from './SetMainStatus'
|
||||
export { SetNameParams } from './SetNameParams'
|
||||
export { SetOutboundGatewayParams } from './SetOutboundGatewayParams'
|
||||
export { SetStaticDnsParams } from './SetStaticDnsParams'
|
||||
export { SetupExecuteParams } from './SetupExecuteParams'
|
||||
export { SetupInfo } from './SetupInfo'
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type AnyVerifyingKey = string;
|
||||
export type AnyVerifyingKey = string
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Base64 = string;
|
||||
export type Base64 = string
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Pem = string;
|
||||
export type Pem = string
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type PortForwards = { [key: string]: string };
|
||||
export type PortForwards = { [key: string]: string }
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Session = { loggedIn: string, lastActive: string, userAgent: string | null, };
|
||||
export type Session = {
|
||||
loggedIn: string
|
||||
lastActive: string
|
||||
userAgent: string | null
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Session } from "./Session";
|
||||
import type { Session } from './Session'
|
||||
|
||||
export type Sessions = { [key: string]: Session };
|
||||
export type Sessions = { [key: string]: Session }
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type SignerInfo = { name: string, };
|
||||
export type SignerInfo = { name: string }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Pem } from "./Pem";
|
||||
import type { Pem } from './Pem'
|
||||
|
||||
export type TunnelCertData = { key: Pem, cert: Pem, };
|
||||
export type TunnelCertData = { key: Pem; cert: Pem }
|
||||
|
||||
@@ -1,9 +1,17 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { AnyVerifyingKey } from "./AnyVerifyingKey";
|
||||
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";
|
||||
import type { AnyVerifyingKey } from './AnyVerifyingKey'
|
||||
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: AnyVerifyingKey]: SignerInfo }, wg: WgServer, portForwards: PortForwards, };
|
||||
export type TunnelDatabase = {
|
||||
webserver: WebserverInfo
|
||||
sessions: Sessions
|
||||
password: string | null
|
||||
authPubkeys: { [key: AnyVerifyingKey]: SignerInfo }
|
||||
gateways: { [key: AnyVerifyingKey]: SignerInfo }
|
||||
wg: WgServer
|
||||
portForwards: PortForwards
|
||||
}
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { TunnelCertData } from "./TunnelCertData";
|
||||
import type { TunnelCertData } from './TunnelCertData'
|
||||
|
||||
export type WebserverInfo = { enabled: boolean, listen: string | null, certificate: TunnelCertData | null, };
|
||||
export type WebserverInfo = {
|
||||
enabled: boolean
|
||||
listen: string | null
|
||||
certificate: TunnelCertData | null
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Base64 } from "./Base64";
|
||||
import type { Base64 } from './Base64'
|
||||
|
||||
export type WgConfig = { name: string, key: Base64, psk: Base64, };
|
||||
export type WgConfig = { name: string; key: Base64; psk: Base64 }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Base64 } from "./Base64";
|
||||
import type { WgSubnetMap } from "./WgSubnetMap";
|
||||
import type { Base64 } from './Base64'
|
||||
import type { WgSubnetMap } from './WgSubnetMap'
|
||||
|
||||
export type WgServer = { port: number, key: Base64, subnets: WgSubnetMap, };
|
||||
export type WgServer = { port: number; key: Base64; subnets: WgSubnetMap }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { WgConfig } from "./WgConfig";
|
||||
import type { WgConfig } from './WgConfig'
|
||||
|
||||
export type WgSubnetClients = { [key: string]: WgConfig };
|
||||
export type WgSubnetClients = { [key: string]: WgConfig }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { WgSubnetClients } from "./WgSubnetClients";
|
||||
import type { WgSubnetClients } from './WgSubnetClients'
|
||||
|
||||
export type WgSubnetConfig = { name: string, clients: WgSubnetClients, };
|
||||
export type WgSubnetConfig = { name: string; clients: WgSubnetClients }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { WgSubnetConfig } from "./WgSubnetConfig";
|
||||
import type { WgSubnetConfig } from './WgSubnetConfig'
|
||||
|
||||
export type WgSubnetMap = { [key: string]: WgSubnetConfig };
|
||||
export type WgSubnetMap = { [key: string]: WgSubnetConfig }
|
||||
|
||||
Reference in New Issue
Block a user