mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
build multi-arch s9pks (#2601)
* build multi-arch s9pks * remove images incrementally * wip * prevent rebuild * fix sdk makefile * fix hanging on uninstall * fix build * fix build * fix build * fix build (for real this time) * fix git hash computation
This commit is contained in:
33
sdk/Makefile
33
sdk/Makefile
@@ -1,19 +1,23 @@
|
||||
TS_FILES := $(shell find ./**/*.ts )
|
||||
TS_FILES := $(shell git ls-files lib) lib/test/output.ts
|
||||
version = $(shell git tag --sort=committerdate | tail -1)
|
||||
|
||||
.PHONY: test clean bundle fmt buildOutput check
|
||||
|
||||
test: $(TS_FILES) lib/test/output.ts
|
||||
npm test
|
||||
|
||||
clean:
|
||||
rm -rf dist/* | true
|
||||
rm -rf dist
|
||||
rm -f lib/test/output.ts
|
||||
rm -rf node_modules
|
||||
|
||||
lib/test/output.ts: lib/test/makeOutput.ts scripts/oldSpecToBuilder.ts
|
||||
lib/test/output.ts: node_modules lib/test/makeOutput.ts scripts/oldSpecToBuilder.ts
|
||||
npm run buildOutput
|
||||
|
||||
buildOutput: lib/test/output.ts fmt
|
||||
echo 'done'
|
||||
bundle: dist | test fmt
|
||||
touch dist
|
||||
|
||||
|
||||
bundle: $(TS_FILES) package.json .FORCE node_modules test fmt
|
||||
dist: $(TS_FILES) package.json node_modules README.md LICENSE
|
||||
npx tsc
|
||||
npx tsc --project tsconfig-cjs.json
|
||||
cp package.json dist/package.json
|
||||
@@ -21,9 +25,7 @@ bundle: $(TS_FILES) package.json .FORCE node_modules test fmt
|
||||
cp LICENSE dist/LICENSE
|
||||
touch dist
|
||||
|
||||
full-bundle:
|
||||
make clean
|
||||
make bundle
|
||||
full-bundle: clean bundle
|
||||
|
||||
check:
|
||||
npm run check
|
||||
@@ -32,13 +34,10 @@ fmt: node_modules
|
||||
npx prettier --write "**/*.ts"
|
||||
|
||||
node_modules: package.json
|
||||
npm install
|
||||
npm ci
|
||||
|
||||
publish: clean bundle package.json README.md LICENSE
|
||||
publish: clean bundle package.json README.md LICENSE
|
||||
cd dist && npm publish --access=public
|
||||
link: bundle
|
||||
cp package.json dist/package.json
|
||||
cp README.md dist/README.md
|
||||
cp LICENSE dist/LICENSE
|
||||
|
||||
link: bundle
|
||||
cd dist && npm link
|
||||
.FORCE:
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { object, string } from "ts-matches"
|
||||
import { Effects } from "../types"
|
||||
import { Origin } from "./Origin"
|
||||
import { AddSslOptions } from "../../../core/startos/bindings/AddSslOptions"
|
||||
import { Security } from "../../../core/startos/bindings/Security"
|
||||
import { BindOptions } from "../../../core/startos/bindings/BindOptions"
|
||||
import { AlpnInfo } from "../../../core/startos/bindings/AlpnInfo"
|
||||
import { AddSslOptions } from ".././osBindings"
|
||||
import { Security } from ".././osBindings"
|
||||
import { BindOptions } from ".././osBindings"
|
||||
import { AlpnInfo } from ".././osBindings"
|
||||
|
||||
export { AddSslOptions, Security, BindOptions }
|
||||
|
||||
|
||||
3
sdk/lib/osBindings/ActionId.ts
Normal file
3
sdk/lib/osBindings/ActionId.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ActionId = string
|
||||
12
sdk/lib/osBindings/ActionMetadata.ts
Normal file
12
sdk/lib/osBindings/ActionMetadata.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { AllowedStatuses } from "./AllowedStatuses"
|
||||
|
||||
export type ActionMetadata = {
|
||||
name: string
|
||||
description: string
|
||||
warning: string | null
|
||||
input: any
|
||||
disabled: boolean
|
||||
allowedStatuses: AllowedStatuses
|
||||
group: string | null
|
||||
}
|
||||
8
sdk/lib/osBindings/AddSslOptions.ts
Normal file
8
sdk/lib/osBindings/AddSslOptions.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 { AlpnInfo } from "./AlpnInfo"
|
||||
|
||||
export type AddSslOptions = {
|
||||
scheme: string | null
|
||||
preferredExternalPort: number
|
||||
alpn: AlpnInfo
|
||||
}
|
||||
10
sdk/lib/osBindings/AddressInfo.ts
Normal file
10
sdk/lib/osBindings/AddressInfo.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { BindOptions } from "./BindOptions"
|
||||
import type { HostId } from "./HostId"
|
||||
|
||||
export type AddressInfo = {
|
||||
username: string | null
|
||||
hostId: HostId
|
||||
bindOptions: BindOptions
|
||||
suffix: string
|
||||
}
|
||||
9
sdk/lib/osBindings/Alerts.ts
Normal file
9
sdk/lib/osBindings/Alerts.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Alerts = {
|
||||
install: string | null
|
||||
uninstall: string | null
|
||||
restore: string | null
|
||||
start: string | null
|
||||
stop: string | null
|
||||
}
|
||||
3
sdk/lib/osBindings/Algorithm.ts
Normal file
3
sdk/lib/osBindings/Algorithm.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Algorithm = "ecdsa" | "ed25519"
|
||||
5
sdk/lib/osBindings/AllPackageData.ts
Normal file
5
sdk/lib/osBindings/AllPackageData.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { PackageDataEntry } from "./PackageDataEntry"
|
||||
import type { PackageId } from "./PackageId"
|
||||
|
||||
export type AllPackageData = { [key: PackageId]: PackageDataEntry }
|
||||
3
sdk/lib/osBindings/AllowedStatuses.ts
Normal file
3
sdk/lib/osBindings/AllowedStatuses.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type AllowedStatuses = "onlyRunning" | "onlyStopped" | "any"
|
||||
4
sdk/lib/osBindings/AlpnInfo.ts
Normal file
4
sdk/lib/osBindings/AlpnInfo.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 { MaybeUtf8String } from "./MaybeUtf8String"
|
||||
|
||||
export type AlpnInfo = "reflect" | { specified: Array<MaybeUtf8String> }
|
||||
3
sdk/lib/osBindings/BackupProgress.ts
Normal file
3
sdk/lib/osBindings/BackupProgress.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type BackupProgress = { complete: boolean }
|
||||
4
sdk/lib/osBindings/BindInfo.ts
Normal file
4
sdk/lib/osBindings/BindInfo.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 { BindOptions } from "./BindOptions"
|
||||
|
||||
export type BindInfo = { options: BindOptions; assignedLanPort: number | null }
|
||||
10
sdk/lib/osBindings/BindOptions.ts
Normal file
10
sdk/lib/osBindings/BindOptions.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { AddSslOptions } from "./AddSslOptions"
|
||||
import type { Security } from "./Security"
|
||||
|
||||
export type BindOptions = {
|
||||
scheme: string | null
|
||||
preferredExternalPort: number
|
||||
addSsl: AddSslOptions | null
|
||||
secure: Security | null
|
||||
}
|
||||
15
sdk/lib/osBindings/BindParams.ts
Normal file
15
sdk/lib/osBindings/BindParams.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { AddSslOptions } from "./AddSslOptions"
|
||||
import type { HostId } from "./HostId"
|
||||
import type { HostKind } from "./HostKind"
|
||||
import type { Security } from "./Security"
|
||||
|
||||
export type BindParams = {
|
||||
kind: HostKind
|
||||
id: HostId
|
||||
internalPort: number
|
||||
scheme: string | null
|
||||
preferredExternalPort: number
|
||||
addSsl: AddSslOptions | null
|
||||
secure: Security | null
|
||||
}
|
||||
3
sdk/lib/osBindings/Callback.ts
Normal file
3
sdk/lib/osBindings/Callback.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Callback = () => void
|
||||
10
sdk/lib/osBindings/ChrootParams.ts
Normal file
10
sdk/lib/osBindings/ChrootParams.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ChrootParams = {
|
||||
env: string | null
|
||||
workdir: string | null
|
||||
user: string | null
|
||||
path: string
|
||||
command: string
|
||||
args: string[]
|
||||
}
|
||||
3
sdk/lib/osBindings/CreateOverlayedImageParams.ts
Normal file
3
sdk/lib/osBindings/CreateOverlayedImageParams.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type CreateOverlayedImageParams = { imageId: string }
|
||||
5
sdk/lib/osBindings/CurrentDependencies.ts
Normal file
5
sdk/lib/osBindings/CurrentDependencies.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { CurrentDependencyInfo } from "./CurrentDependencyInfo"
|
||||
import type { PackageId } from "./PackageId"
|
||||
|
||||
export type CurrentDependencies = { [key: PackageId]: CurrentDependencyInfo }
|
||||
10
sdk/lib/osBindings/CurrentDependencyInfo.ts
Normal file
10
sdk/lib/osBindings/CurrentDependencyInfo.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { DataUrl } from "./DataUrl"
|
||||
|
||||
export type CurrentDependencyInfo = {
|
||||
title: string
|
||||
icon: DataUrl
|
||||
registryUrl: string
|
||||
versionSpec: string
|
||||
configSatisfied: boolean
|
||||
} & ({ kind: "exists" } | { kind: "running"; healthChecks: string[] })
|
||||
3
sdk/lib/osBindings/DataUrl.ts
Normal file
3
sdk/lib/osBindings/DataUrl.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type DataUrl = string
|
||||
3
sdk/lib/osBindings/DepInfo.ts
Normal file
3
sdk/lib/osBindings/DepInfo.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type DepInfo = { description: string | null; optional: boolean }
|
||||
5
sdk/lib/osBindings/Dependencies.ts
Normal file
5
sdk/lib/osBindings/Dependencies.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { DepInfo } from "./DepInfo"
|
||||
import type { PackageId } from "./PackageId"
|
||||
|
||||
export type Dependencies = { [key: PackageId]: DepInfo }
|
||||
3
sdk/lib/osBindings/DependencyKind.ts
Normal file
3
sdk/lib/osBindings/DependencyKind.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type DependencyKind = "exists" | "running"
|
||||
11
sdk/lib/osBindings/DependencyRequirement.ts
Normal file
11
sdk/lib/osBindings/DependencyRequirement.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type DependencyRequirement =
|
||||
| {
|
||||
kind: "running"
|
||||
id: string
|
||||
healthChecks: string[]
|
||||
versionSpec: string
|
||||
registryUrl: string
|
||||
}
|
||||
| { kind: "exists"; id: string; versionSpec: string; registryUrl: string }
|
||||
3
sdk/lib/osBindings/Description.ts
Normal file
3
sdk/lib/osBindings/Description.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Description = { short: string; long: string }
|
||||
3
sdk/lib/osBindings/DestroyOverlayedImageParams.ts
Normal file
3
sdk/lib/osBindings/DestroyOverlayedImageParams.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type DestroyOverlayedImageParams = { guid: string }
|
||||
3
sdk/lib/osBindings/Duration.ts
Normal file
3
sdk/lib/osBindings/Duration.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Duration = string
|
||||
3
sdk/lib/osBindings/EncryptedWire.ts
Normal file
3
sdk/lib/osBindings/EncryptedWire.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type EncryptedWire = { encrypted: any }
|
||||
7
sdk/lib/osBindings/ExecuteAction.ts
Normal file
7
sdk/lib/osBindings/ExecuteAction.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ExecuteAction = {
|
||||
serviceId: string | null
|
||||
actionId: string
|
||||
input: any
|
||||
}
|
||||
4
sdk/lib/osBindings/ExportActionParams.ts
Normal file
4
sdk/lib/osBindings/ExportActionParams.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 { ActionMetadata } from "./ActionMetadata"
|
||||
|
||||
export type ExportActionParams = { id: string; metadata: ActionMetadata }
|
||||
14
sdk/lib/osBindings/ExportServiceInterfaceParams.ts
Normal file
14
sdk/lib/osBindings/ExportServiceInterfaceParams.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { AddressInfo } from "./AddressInfo"
|
||||
import type { ServiceInterfaceType } from "./ServiceInterfaceType"
|
||||
|
||||
export type ExportServiceInterfaceParams = {
|
||||
id: string
|
||||
name: string
|
||||
description: string
|
||||
hasPrimary: boolean
|
||||
disabled: boolean
|
||||
masked: boolean
|
||||
addressInfo: AddressInfo
|
||||
type: ServiceInterfaceType
|
||||
}
|
||||
10
sdk/lib/osBindings/ExportedHostInfo.ts
Normal file
10
sdk/lib/osBindings/ExportedHostInfo.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { ExportedHostnameInfo } from "./ExportedHostnameInfo"
|
||||
import type { HostId } from "./HostId"
|
||||
import type { HostKind } from "./HostKind"
|
||||
|
||||
export type ExportedHostInfo = {
|
||||
id: HostId
|
||||
kind: HostKind
|
||||
hostnames: Array<ExportedHostnameInfo>
|
||||
}
|
||||
12
sdk/lib/osBindings/ExportedHostnameInfo.ts
Normal file
12
sdk/lib/osBindings/ExportedHostnameInfo.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { ExportedIpHostname } from "./ExportedIpHostname"
|
||||
import type { ExportedOnionHostname } from "./ExportedOnionHostname"
|
||||
|
||||
export type ExportedHostnameInfo =
|
||||
| {
|
||||
kind: "ip"
|
||||
networkInterfaceId: string
|
||||
public: boolean
|
||||
hostname: ExportedIpHostname
|
||||
}
|
||||
| { kind: "onion"; hostname: ExportedOnionHostname }
|
||||
18
sdk/lib/osBindings/ExportedIpHostname.ts
Normal file
18
sdk/lib/osBindings/ExportedIpHostname.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ExportedIpHostname =
|
||||
| { kind: "ipv4"; value: string; port: number | null; sslPort: number | null }
|
||||
| { kind: "ipv6"; value: string; port: number | null; sslPort: number | null }
|
||||
| {
|
||||
kind: "local"
|
||||
value: string
|
||||
port: number | null
|
||||
sslPort: number | null
|
||||
}
|
||||
| {
|
||||
kind: "domain"
|
||||
domain: string
|
||||
subdomain: string | null
|
||||
port: number | null
|
||||
sslPort: number | null
|
||||
}
|
||||
7
sdk/lib/osBindings/ExportedOnionHostname.ts
Normal file
7
sdk/lib/osBindings/ExportedOnionHostname.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ExportedOnionHostname = {
|
||||
value: string
|
||||
port: number | null
|
||||
sslPort: number | null
|
||||
}
|
||||
3
sdk/lib/osBindings/ExposeForDependentsParams.ts
Normal file
3
sdk/lib/osBindings/ExposeForDependentsParams.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ExposeForDependentsParams = { paths: string[] }
|
||||
5
sdk/lib/osBindings/FullProgress.ts
Normal file
5
sdk/lib/osBindings/FullProgress.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { NamedProgress } from "./NamedProgress"
|
||||
import type { Progress } from "./Progress"
|
||||
|
||||
export type FullProgress = { overall: Progress; phases: Array<NamedProgress> }
|
||||
10
sdk/lib/osBindings/GetHostInfoParams.ts
Normal file
10
sdk/lib/osBindings/GetHostInfoParams.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Callback } from "./Callback"
|
||||
import type { GetHostInfoParamsKind } from "./GetHostInfoParamsKind"
|
||||
|
||||
export type GetHostInfoParams = {
|
||||
kind: GetHostInfoParamsKind | null
|
||||
serviceInterfaceId: string
|
||||
packageId: string | null
|
||||
callback: Callback
|
||||
}
|
||||
3
sdk/lib/osBindings/GetHostInfoParamsKind.ts
Normal file
3
sdk/lib/osBindings/GetHostInfoParamsKind.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type GetHostInfoParamsKind = "multi"
|
||||
8
sdk/lib/osBindings/GetPrimaryUrlParams.ts
Normal file
8
sdk/lib/osBindings/GetPrimaryUrlParams.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 { Callback } from "./Callback"
|
||||
|
||||
export type GetPrimaryUrlParams = {
|
||||
packageId: string | null
|
||||
serviceInterfaceId: string
|
||||
callback: Callback
|
||||
}
|
||||
8
sdk/lib/osBindings/GetServiceInterfaceParams.ts
Normal file
8
sdk/lib/osBindings/GetServiceInterfaceParams.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 { Callback } from "./Callback"
|
||||
|
||||
export type GetServiceInterfaceParams = {
|
||||
packageId: string | null
|
||||
serviceInterfaceId: string
|
||||
callback: Callback
|
||||
}
|
||||
8
sdk/lib/osBindings/GetServicePortForwardParams.ts
Normal file
8
sdk/lib/osBindings/GetServicePortForwardParams.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 { HostId } from "./HostId"
|
||||
|
||||
export type GetServicePortForwardParams = {
|
||||
packageId: string | null
|
||||
internalPort: number
|
||||
hostId: HostId
|
||||
}
|
||||
8
sdk/lib/osBindings/GetSslCertificateParams.ts
Normal file
8
sdk/lib/osBindings/GetSslCertificateParams.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 { Algorithm } from "./Algorithm"
|
||||
|
||||
export type GetSslCertificateParams = {
|
||||
packageId: string | null
|
||||
hostId: string
|
||||
algorithm: Algorithm | null
|
||||
}
|
||||
8
sdk/lib/osBindings/GetSslKeyParams.ts
Normal file
8
sdk/lib/osBindings/GetSslKeyParams.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 { Algorithm } from "./Algorithm"
|
||||
|
||||
export type GetSslKeyParams = {
|
||||
packageId: string | null
|
||||
hostId: string
|
||||
algorithm: Algorithm | null
|
||||
}
|
||||
3
sdk/lib/osBindings/GetStoreParams.ts
Normal file
3
sdk/lib/osBindings/GetStoreParams.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type GetStoreParams = { packageId: string | null; path: string }
|
||||
4
sdk/lib/osBindings/GetSystemSmtpParams.ts
Normal file
4
sdk/lib/osBindings/GetSystemSmtpParams.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 { Callback } from "./Callback"
|
||||
|
||||
export type GetSystemSmtpParams = { callback: Callback }
|
||||
3
sdk/lib/osBindings/Governor.ts
Normal file
3
sdk/lib/osBindings/Governor.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Governor = string
|
||||
7
sdk/lib/osBindings/HardwareRequirements.ts
Normal file
7
sdk/lib/osBindings/HardwareRequirements.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type HardwareRequirements = {
|
||||
device: { [key: string]: string }
|
||||
ram: bigint | null
|
||||
arch: Array<string> | null
|
||||
}
|
||||
3
sdk/lib/osBindings/HealthCheckId.ts
Normal file
3
sdk/lib/osBindings/HealthCheckId.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type HealthCheckId = string
|
||||
9
sdk/lib/osBindings/HealthCheckResult.ts
Normal file
9
sdk/lib/osBindings/HealthCheckResult.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type HealthCheckResult = { name: string } & (
|
||||
| { result: "success"; message: string | null }
|
||||
| { result: "disabled"; message: string | null }
|
||||
| { result: "starting"; message: string | null }
|
||||
| { result: "loading"; message: string }
|
||||
| { result: "failure"; message: string }
|
||||
)
|
||||
11
sdk/lib/osBindings/Host.ts
Normal file
11
sdk/lib/osBindings/Host.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { BindInfo } from "./BindInfo"
|
||||
import type { HostAddress } from "./HostAddress"
|
||||
import type { HostKind } from "./HostKind"
|
||||
|
||||
export type Host = {
|
||||
kind: HostKind
|
||||
bindings: { [key: number]: BindInfo }
|
||||
addresses: Array<HostAddress>
|
||||
primary: HostAddress | null
|
||||
}
|
||||
3
sdk/lib/osBindings/HostAddress.ts
Normal file
3
sdk/lib/osBindings/HostAddress.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type HostAddress = { kind: "onion"; address: string }
|
||||
3
sdk/lib/osBindings/HostId.ts
Normal file
3
sdk/lib/osBindings/HostId.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type HostId = string
|
||||
5
sdk/lib/osBindings/HostInfo.ts
Normal file
5
sdk/lib/osBindings/HostInfo.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Host } from "./Host"
|
||||
import type { HostId } from "./HostId"
|
||||
|
||||
export type HostInfo = { [key: HostId]: Host }
|
||||
3
sdk/lib/osBindings/HostKind.ts
Normal file
3
sdk/lib/osBindings/HostKind.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type HostKind = "multi"
|
||||
3
sdk/lib/osBindings/ImageId.ts
Normal file
3
sdk/lib/osBindings/ImageId.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ImageId = string
|
||||
4
sdk/lib/osBindings/InstalledState.ts
Normal file
4
sdk/lib/osBindings/InstalledState.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 { Manifest } from "./Manifest"
|
||||
|
||||
export type InstalledState = { manifest: Manifest }
|
||||
5
sdk/lib/osBindings/InstallingInfo.ts
Normal file
5
sdk/lib/osBindings/InstallingInfo.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { FullProgress } from "./FullProgress"
|
||||
import type { Manifest } from "./Manifest"
|
||||
|
||||
export type InstallingInfo = { newManifest: Manifest; progress: FullProgress }
|
||||
4
sdk/lib/osBindings/InstallingState.ts
Normal file
4
sdk/lib/osBindings/InstallingState.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 { InstallingInfo } from "./InstallingInfo"
|
||||
|
||||
export type InstallingState = { installingInfo: InstallingInfo }
|
||||
8
sdk/lib/osBindings/IpInfo.ts
Normal file
8
sdk/lib/osBindings/IpInfo.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.
|
||||
|
||||
export type IpInfo = {
|
||||
ipv4Range: string | null
|
||||
ipv4: string | null
|
||||
ipv6Range: string | null
|
||||
ipv6: string | null
|
||||
}
|
||||
7
sdk/lib/osBindings/ListServiceInterfacesParams.ts
Normal file
7
sdk/lib/osBindings/ListServiceInterfacesParams.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Callback } from "./Callback"
|
||||
|
||||
export type ListServiceInterfacesParams = {
|
||||
packageId: string | null
|
||||
callback: Callback
|
||||
}
|
||||
20
sdk/lib/osBindings/MainStatus.ts
Normal file
20
sdk/lib/osBindings/MainStatus.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Duration } from "./Duration"
|
||||
import type { HealthCheckId } from "./HealthCheckId"
|
||||
import type { HealthCheckResult } from "./HealthCheckResult"
|
||||
|
||||
export type MainStatus =
|
||||
| { status: "stopped" }
|
||||
| { status: "restarting" }
|
||||
| { status: "stopping"; timeout: Duration }
|
||||
| { status: "starting" }
|
||||
| {
|
||||
status: "running"
|
||||
started: string
|
||||
health: { [key: HealthCheckId]: HealthCheckResult }
|
||||
}
|
||||
| {
|
||||
status: "backingUp"
|
||||
started: string | null
|
||||
health: { [key: HealthCheckId]: HealthCheckResult }
|
||||
}
|
||||
32
sdk/lib/osBindings/Manifest.ts
Normal file
32
sdk/lib/osBindings/Manifest.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Alerts } from "./Alerts"
|
||||
import type { Dependencies } from "./Dependencies"
|
||||
import type { Description } from "./Description"
|
||||
import type { HardwareRequirements } from "./HardwareRequirements"
|
||||
import type { ImageId } from "./ImageId"
|
||||
import type { PackageId } from "./PackageId"
|
||||
import type { VolumeId } from "./VolumeId"
|
||||
|
||||
export type Manifest = {
|
||||
id: PackageId
|
||||
title: string
|
||||
version: string
|
||||
releaseNotes: string
|
||||
license: string
|
||||
replaces: Array<string>
|
||||
wrapperRepo: string
|
||||
upstreamRepo: string
|
||||
supportSite: string
|
||||
marketingSite: string
|
||||
donationUrl: string | null
|
||||
description: Description
|
||||
images: Array<ImageId>
|
||||
assets: Array<VolumeId>
|
||||
volumes: Array<VolumeId>
|
||||
alerts: Alerts
|
||||
dependencies: Dependencies
|
||||
hardwareRequirements: HardwareRequirements
|
||||
gitHash: string | null
|
||||
osVersion: string
|
||||
hasConfig: boolean
|
||||
}
|
||||
3
sdk/lib/osBindings/MaybeUtf8String.ts
Normal file
3
sdk/lib/osBindings/MaybeUtf8String.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type MaybeUtf8String = string | number[]
|
||||
4
sdk/lib/osBindings/MountParams.ts
Normal file
4
sdk/lib/osBindings/MountParams.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 { MountTarget } from "./MountTarget"
|
||||
|
||||
export type MountParams = { location: string; target: MountTarget }
|
||||
8
sdk/lib/osBindings/MountTarget.ts
Normal file
8
sdk/lib/osBindings/MountTarget.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.
|
||||
|
||||
export type MountTarget = {
|
||||
packageId: string
|
||||
volumeId: string
|
||||
subpath: string | null
|
||||
readonly: boolean
|
||||
}
|
||||
4
sdk/lib/osBindings/NamedProgress.ts
Normal file
4
sdk/lib/osBindings/NamedProgress.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 { Progress } from "./Progress"
|
||||
|
||||
export type NamedProgress = { name: string; progress: Progress }
|
||||
24
sdk/lib/osBindings/PackageDataEntry.ts
Normal file
24
sdk/lib/osBindings/PackageDataEntry.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { ActionId } from "./ActionId"
|
||||
import type { ActionMetadata } from "./ActionMetadata"
|
||||
import type { CurrentDependencies } from "./CurrentDependencies"
|
||||
import type { DataUrl } from "./DataUrl"
|
||||
import type { HostInfo } from "./HostInfo"
|
||||
import type { PackageState } from "./PackageState"
|
||||
import type { ServiceInterfaceId } from "./ServiceInterfaceId"
|
||||
import type { ServiceInterfaceWithHostInfo } from "./ServiceInterfaceWithHostInfo"
|
||||
import type { Status } from "./Status"
|
||||
|
||||
export type PackageDataEntry = {
|
||||
stateInfo: PackageState
|
||||
status: Status
|
||||
marketplaceUrl: string | null
|
||||
developerKey: string
|
||||
icon: DataUrl
|
||||
lastBackup: string | null
|
||||
currentDependencies: CurrentDependencies
|
||||
actions: { [key: ActionId]: ActionMetadata }
|
||||
serviceInterfaces: { [key: ServiceInterfaceId]: ServiceInterfaceWithHostInfo }
|
||||
hosts: HostInfo
|
||||
storeExposedDependents: string[]
|
||||
}
|
||||
3
sdk/lib/osBindings/PackageId.ts
Normal file
3
sdk/lib/osBindings/PackageId.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type PackageId = string
|
||||
11
sdk/lib/osBindings/PackageState.ts
Normal file
11
sdk/lib/osBindings/PackageState.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { InstalledState } from "./InstalledState"
|
||||
import type { InstallingState } from "./InstallingState"
|
||||
import type { UpdatingState } from "./UpdatingState"
|
||||
|
||||
export type PackageState =
|
||||
| ({ state: "installing" } & InstallingState)
|
||||
| ({ state: "restoring" } & InstallingState)
|
||||
| ({ state: "updating" } & UpdatingState)
|
||||
| ({ state: "installed" } & InstalledState)
|
||||
| ({ state: "removing" } & InstalledState)
|
||||
3
sdk/lib/osBindings/ParamsMaybePackageId.ts
Normal file
3
sdk/lib/osBindings/ParamsMaybePackageId.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ParamsMaybePackageId = { packageId: string | null }
|
||||
3
sdk/lib/osBindings/ParamsPackageId.ts
Normal file
3
sdk/lib/osBindings/ParamsPackageId.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ParamsPackageId = { packageId: string }
|
||||
4
sdk/lib/osBindings/PasswordType.ts
Normal file
4
sdk/lib/osBindings/PasswordType.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 { EncryptedWire } from "./EncryptedWire"
|
||||
|
||||
export type PasswordType = EncryptedWire | string
|
||||
3
sdk/lib/osBindings/Progress.ts
Normal file
3
sdk/lib/osBindings/Progress.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Progress = boolean | { done: number; total: number | null }
|
||||
9
sdk/lib/osBindings/Public.ts
Normal file
9
sdk/lib/osBindings/Public.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { AllPackageData } from "./AllPackageData"
|
||||
import type { ServerInfo } from "./ServerInfo"
|
||||
|
||||
export type Public = {
|
||||
serverInfo: ServerInfo
|
||||
packageData: AllPackageData
|
||||
ui: any
|
||||
}
|
||||
3
sdk/lib/osBindings/RemoveActionParams.ts
Normal file
3
sdk/lib/osBindings/RemoveActionParams.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type RemoveActionParams = { id: string }
|
||||
3
sdk/lib/osBindings/RemoveAddressParams.ts
Normal file
3
sdk/lib/osBindings/RemoveAddressParams.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type RemoveAddressParams = { id: string }
|
||||
3
sdk/lib/osBindings/ReverseProxyBind.ts
Normal file
3
sdk/lib/osBindings/ReverseProxyBind.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ReverseProxyBind = { ip: string | null; port: number; ssl: boolean }
|
||||
7
sdk/lib/osBindings/ReverseProxyDestination.ts
Normal file
7
sdk/lib/osBindings/ReverseProxyDestination.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ReverseProxyDestination = {
|
||||
ip: string | null
|
||||
port: number
|
||||
ssl: boolean
|
||||
}
|
||||
3
sdk/lib/osBindings/ReverseProxyHttp.ts
Normal file
3
sdk/lib/osBindings/ReverseProxyHttp.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ReverseProxyHttp = { headers: null | { [key: string]: string } }
|
||||
10
sdk/lib/osBindings/ReverseProxyParams.ts
Normal file
10
sdk/lib/osBindings/ReverseProxyParams.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { ReverseProxyBind } from "./ReverseProxyBind"
|
||||
import type { ReverseProxyDestination } from "./ReverseProxyDestination"
|
||||
import type { ReverseProxyHttp } from "./ReverseProxyHttp"
|
||||
|
||||
export type ReverseProxyParams = {
|
||||
bind: ReverseProxyBind
|
||||
dst: ReverseProxyDestination
|
||||
http: ReverseProxyHttp
|
||||
}
|
||||
3
sdk/lib/osBindings/Security.ts
Normal file
3
sdk/lib/osBindings/Security.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Security = { ssl: boolean }
|
||||
31
sdk/lib/osBindings/ServerInfo.ts
Normal file
31
sdk/lib/osBindings/ServerInfo.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Governor } from "./Governor"
|
||||
import type { IpInfo } from "./IpInfo"
|
||||
import type { ServerStatus } from "./ServerStatus"
|
||||
import type { WifiInfo } from "./WifiInfo"
|
||||
|
||||
export type ServerInfo = {
|
||||
arch: string
|
||||
platform: string
|
||||
id: string
|
||||
hostname: string
|
||||
version: string
|
||||
lastBackup: string | null
|
||||
eosVersionCompat: string
|
||||
lanAddress: string
|
||||
onionAddress: string
|
||||
/**
|
||||
* for backwards compatibility
|
||||
*/
|
||||
torAddress: string
|
||||
ipInfo: { [key: string]: IpInfo }
|
||||
statusInfo: ServerStatus
|
||||
wifi: WifiInfo
|
||||
unreadNotificationCount: number
|
||||
passwordHash: string
|
||||
pubkey: string
|
||||
caFingerprint: string
|
||||
ntpSynced: boolean
|
||||
zram: boolean
|
||||
governor: Governor | null
|
||||
}
|
||||
3
sdk/lib/osBindings/ServerSpecs.ts
Normal file
3
sdk/lib/osBindings/ServerSpecs.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ServerSpecs = { cpu: string; disk: string; memory: string }
|
||||
12
sdk/lib/osBindings/ServerStatus.ts
Normal file
12
sdk/lib/osBindings/ServerStatus.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { BackupProgress } from "./BackupProgress"
|
||||
import type { PackageId } from "./PackageId"
|
||||
import type { UpdateProgress } from "./UpdateProgress"
|
||||
|
||||
export type ServerStatus = {
|
||||
backupProgress: { [key: PackageId]: BackupProgress } | null
|
||||
updated: boolean
|
||||
updateProgress: UpdateProgress | null
|
||||
shuttingDown: boolean
|
||||
restarting: boolean
|
||||
}
|
||||
15
sdk/lib/osBindings/ServiceInterface.ts
Normal file
15
sdk/lib/osBindings/ServiceInterface.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { AddressInfo } from "./AddressInfo"
|
||||
import type { ServiceInterfaceId } from "./ServiceInterfaceId"
|
||||
import type { ServiceInterfaceType } from "./ServiceInterfaceType"
|
||||
|
||||
export type ServiceInterface = {
|
||||
id: ServiceInterfaceId
|
||||
name: string
|
||||
description: string
|
||||
hasPrimary: boolean
|
||||
disabled: boolean
|
||||
masked: boolean
|
||||
addressInfo: AddressInfo
|
||||
type: ServiceInterfaceType
|
||||
}
|
||||
3
sdk/lib/osBindings/ServiceInterfaceId.ts
Normal file
3
sdk/lib/osBindings/ServiceInterfaceId.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ServiceInterfaceId = string
|
||||
3
sdk/lib/osBindings/ServiceInterfaceType.ts
Normal file
3
sdk/lib/osBindings/ServiceInterfaceType.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ServiceInterfaceType = "ui" | "p2p" | "api"
|
||||
17
sdk/lib/osBindings/ServiceInterfaceWithHostInfo.ts
Normal file
17
sdk/lib/osBindings/ServiceInterfaceWithHostInfo.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { AddressInfo } from "./AddressInfo"
|
||||
import type { ExportedHostInfo } from "./ExportedHostInfo"
|
||||
import type { ServiceInterfaceId } from "./ServiceInterfaceId"
|
||||
import type { ServiceInterfaceType } from "./ServiceInterfaceType"
|
||||
|
||||
export type ServiceInterfaceWithHostInfo = {
|
||||
hostInfo: ExportedHostInfo
|
||||
id: ServiceInterfaceId
|
||||
name: string
|
||||
description: string
|
||||
hasPrimary: boolean
|
||||
disabled: boolean
|
||||
masked: boolean
|
||||
addressInfo: AddressInfo
|
||||
type: ServiceInterfaceType
|
||||
}
|
||||
3
sdk/lib/osBindings/Session.ts
Normal file
3
sdk/lib/osBindings/Session.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// 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; metadata: any }
|
||||
4
sdk/lib/osBindings/SessionList.ts
Normal file
4
sdk/lib/osBindings/SessionList.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 { Sessions } from "./Sessions"
|
||||
|
||||
export type SessionList = { current: string; sessions: Sessions }
|
||||
5
sdk/lib/osBindings/Sessions.ts
Normal file
5
sdk/lib/osBindings/Sessions.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Sessions = {
|
||||
[key: string]: { loggedIn: string; lastActive: string; metadata: any }
|
||||
}
|
||||
3
sdk/lib/osBindings/SetConfigured.ts
Normal file
3
sdk/lib/osBindings/SetConfigured.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type SetConfigured = { configured: boolean }
|
||||
6
sdk/lib/osBindings/SetDependenciesParams.ts
Normal file
6
sdk/lib/osBindings/SetDependenciesParams.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { DependencyRequirement } from "./DependencyRequirement"
|
||||
|
||||
export type SetDependenciesParams = {
|
||||
dependencies: Array<DependencyRequirement>
|
||||
}
|
||||
10
sdk/lib/osBindings/SetHealth.ts
Normal file
10
sdk/lib/osBindings/SetHealth.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { HealthCheckId } from "./HealthCheckId"
|
||||
|
||||
export type SetHealth = { id: HealthCheckId; name: string } & (
|
||||
| { result: "success"; message: string | null }
|
||||
| { result: "disabled"; message: string | null }
|
||||
| { result: "starting"; message: string | null }
|
||||
| { result: "loading"; message: string }
|
||||
| { result: "failure"; message: string }
|
||||
)
|
||||
4
sdk/lib/osBindings/SetMainStatus.ts
Normal file
4
sdk/lib/osBindings/SetMainStatus.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 { Status } from "./Status"
|
||||
|
||||
export type SetMainStatus = { status: Status }
|
||||
3
sdk/lib/osBindings/SetStoreParams.ts
Normal file
3
sdk/lib/osBindings/SetStoreParams.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type SetStoreParams = { value: any; path: string }
|
||||
4
sdk/lib/osBindings/Status.ts
Normal file
4
sdk/lib/osBindings/Status.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 { MainStatus } from "./MainStatus"
|
||||
|
||||
export type Status = { configured: boolean; main: MainStatus }
|
||||
3
sdk/lib/osBindings/UpdateProgress.ts
Normal file
3
sdk/lib/osBindings/UpdateProgress.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type UpdateProgress = { size: number | null; downloaded: number }
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user