@ikalogic/at1000 0.2.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/build/at1000-B3HgANSi.d.mts +109 -0
- package/build/at1000-B3HgANSi.d.mts.map +1 -0
- package/build/at1000-B_udjy0I.cjs +8 -0
- package/build/at1000-B_udjy0I.cjs.map +1 -0
- package/build/at1000-BjVj0Ujk.mjs +8 -0
- package/build/at1000-BjVj0Ujk.mjs.map +1 -0
- package/build/at1000-C6w5G8L4.d.cts +109 -0
- package/build/at1000-C6w5G8L4.d.cts.map +1 -0
- package/build/browser.cjs +1 -1
- package/build/browser.cjs.map +1 -1
- package/build/browser.d.cts +9 -2
- package/build/browser.d.cts.map +1 -1
- package/build/browser.d.mts +9 -2
- package/build/browser.d.mts.map +1 -1
- package/build/browser.mjs +1 -1
- package/build/browser.mjs.map +1 -1
- package/build/{com-CBhjFJPB.d.cts → com-BLw4CGid.d.cts} +61 -61
- package/build/{com-CBhjFJPB.d.cts.map → com-BLw4CGid.d.cts.map} +1 -1
- package/build/{com-CBhjFJPB.d.mts → com-BLw4CGid.d.mts} +61 -61
- package/build/{com-CBhjFJPB.d.mts.map → com-BLw4CGid.d.mts.map} +1 -1
- package/build/com.cjs +1 -1
- package/build/com.cjs.map +1 -1
- package/build/com.d.cts +2 -2
- package/build/com.d.mts +2 -2
- package/build/com.mjs +1 -1
- package/build/com.mjs.map +1 -1
- package/build/events-CBVQfojK.d.cts +359 -0
- package/build/events-CBVQfojK.d.cts.map +1 -0
- package/build/events-CBVQfojK.d.mts +359 -0
- package/build/events-CBVQfojK.d.mts.map +1 -0
- package/build/events.cjs +1 -0
- package/build/events.d.cts +2 -0
- package/build/events.d.mts +2 -0
- package/build/events.mjs +1 -0
- package/build/{gpio-DNrdX-QV.d.cts → gpio-BuvDysYa.d.cts} +65 -16
- package/build/gpio-BuvDysYa.d.cts.map +1 -0
- package/build/{gpio-DchxrXWK.d.mts → gpio-DgQHE5fr.d.mts} +65 -16
- package/build/gpio-DgQHE5fr.d.mts.map +1 -0
- package/build/gpio.cjs +1 -1
- package/build/gpio.cjs.map +1 -1
- package/build/gpio.d.cts +2 -2
- package/build/gpio.d.mts +2 -2
- package/build/gpio.mjs +1 -1
- package/build/gpio.mjs.map +1 -1
- package/build/{hmi-DszM-Hfp.d.cts → hmi-BrdqKB3o.d.cts} +17 -5
- package/build/hmi-BrdqKB3o.d.cts.map +1 -0
- package/build/{hmi-DszM-Hfp.d.mts → hmi-BrdqKB3o.d.mts} +17 -5
- package/build/hmi-BrdqKB3o.d.mts.map +1 -0
- package/build/hmi.cjs +1 -1
- package/build/hmi.cjs.map +1 -1
- package/build/hmi.d.cts +2 -2
- package/build/hmi.d.mts +2 -2
- package/build/hmi.mjs +1 -1
- package/build/hmi.mjs.map +1 -1
- package/build/management.cjs +1 -2
- package/build/management.d.cts +816 -2
- package/build/management.d.cts.map +1 -0
- package/build/management.d.mts +816 -2
- package/build/management.d.mts.map +1 -0
- package/build/management.mjs +1 -2
- package/build/node.cjs +1 -1
- package/build/node.cjs.map +1 -1
- package/build/node.d.cts +16 -3
- package/build/node.d.cts.map +1 -1
- package/build/node.d.mts +16 -3
- package/build/node.d.mts.map +1 -1
- package/build/node.mjs +1 -1
- package/build/node.mjs.map +1 -1
- package/build/package-Bcvmz2Lx.cjs +2 -0
- package/build/package-Bcvmz2Lx.cjs.map +1 -0
- package/build/package-CN49oc-F.mjs +2 -0
- package/build/package-CN49oc-F.mjs.map +1 -0
- package/build/{power-o75Gjpwf.d.cts → power-FmknBUz2.d.cts} +30 -30
- package/build/{power-CN_9o_NX.d.mts.map → power-FmknBUz2.d.cts.map} +1 -1
- package/build/{power-CN_9o_NX.d.mts → power-HWfK-Ybw.d.mts} +30 -30
- package/build/{power-o75Gjpwf.d.cts.map → power-HWfK-Ybw.d.mts.map} +1 -1
- package/build/power.cjs +1 -1
- package/build/power.cjs.map +1 -1
- package/build/power.d.cts +2 -2
- package/build/power.d.mts +2 -2
- package/build/power.mjs +1 -1
- package/build/power.mjs.map +1 -1
- package/build/{relays-BCn6rQN1.d.cts → relays-8EGNIK1T.d.cts} +5 -2
- package/build/relays-8EGNIK1T.d.cts.map +1 -0
- package/build/{relays-BCn6rQN1.d.mts → relays-8EGNIK1T.d.mts} +5 -2
- package/build/relays-8EGNIK1T.d.mts.map +1 -0
- package/build/relays.cjs +1 -1
- package/build/relays.cjs.map +1 -1
- package/build/relays.d.cts +2 -2
- package/build/relays.d.mts +2 -2
- package/build/relays.mjs +1 -1
- package/build/relays.mjs.map +1 -1
- package/build/session-D7TpUd6L.d.cts +44 -0
- package/build/session-D7TpUd6L.d.cts.map +1 -0
- package/build/session-D7TpUd6L.d.mts +44 -0
- package/build/session-D7TpUd6L.d.mts.map +1 -0
- package/build/session.cjs +1 -0
- package/build/session.d.cts +2 -0
- package/build/session.d.mts +2 -0
- package/build/session.mjs +1 -0
- package/package.json +22 -2
- package/build/at1000-BXtrf8Rt.d.cts +0 -50
- package/build/at1000-BXtrf8Rt.d.cts.map +0 -1
- package/build/at1000-BuI_g7jF.cjs +0 -3
- package/build/at1000-BuI_g7jF.cjs.map +0 -1
- package/build/at1000-DVDltAyk.mjs +0 -3
- package/build/at1000-DVDltAyk.mjs.map +0 -1
- package/build/at1000-D_rOUVFH.d.mts +0 -50
- package/build/at1000-D_rOUVFH.d.mts.map +0 -1
- package/build/gpio-DNrdX-QV.d.cts.map +0 -1
- package/build/gpio-DchxrXWK.d.mts.map +0 -1
- package/build/hmi-DszM-Hfp.d.cts.map +0 -1
- package/build/hmi-DszM-Hfp.d.mts.map +0 -1
- package/build/management-C0iQha23.d.cts +0 -512
- package/build/management-C0iQha23.d.cts.map +0 -1
- package/build/management-C0iQha23.d.mts +0 -512
- package/build/management-C0iQha23.d.mts.map +0 -1
- package/build/management.cjs.map +0 -1
- package/build/management.mjs.map +0 -1
- package/build/relays-BCn6rQN1.d.cts.map +0 -1
- package/build/relays-BCn6rQN1.d.mts.map +0 -1
package/build/management.d.mts
CHANGED
|
@@ -1,2 +1,816 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { UpFetch } from "up-fetch";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
|
|
4
|
+
//#region src/api/management.d.ts
|
|
5
|
+
declare enum CommunicationInterfaceType {
|
|
6
|
+
Can = "can",
|
|
7
|
+
Rs232 = "rs232",
|
|
8
|
+
Rs485 = "rs485",
|
|
9
|
+
I2c = "i2c",
|
|
10
|
+
Spi = "spi",
|
|
11
|
+
Uart = "uart"
|
|
12
|
+
}
|
|
13
|
+
declare const info: v.ObjectSchema<{
|
|
14
|
+
readonly model: v.StringSchema<undefined>;
|
|
15
|
+
readonly hostname: v.StringSchema<undefined>;
|
|
16
|
+
readonly serial_number: v.StringSchema<undefined>;
|
|
17
|
+
readonly firmware_version: v.StringSchema<undefined>;
|
|
18
|
+
readonly firmware_commit: v.StringSchema<undefined>;
|
|
19
|
+
readonly hardware_version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
20
|
+
readonly disk_used: v.NumberSchema<undefined>;
|
|
21
|
+
readonly disk_total: v.NumberSchema<undefined>;
|
|
22
|
+
readonly docker_used: v.NumberSchema<undefined>;
|
|
23
|
+
readonly capabilities: v.ObjectSchema<{
|
|
24
|
+
readonly io: v.ObjectSchema<{
|
|
25
|
+
readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
26
|
+
readonly input_voltage: v.ObjectSchema<{
|
|
27
|
+
readonly min: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -24, undefined>, v.MaxValueAction<number, 24, undefined>]>;
|
|
28
|
+
readonly max: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -24, undefined>, v.MaxValueAction<number, 24, undefined>]>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
readonly output_voltage: v.ObjectSchema<{
|
|
31
|
+
readonly min: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -24, undefined>, v.MaxValueAction<number, 24, undefined>]>;
|
|
32
|
+
readonly max: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -24, undefined>, v.MaxValueAction<number, 24, undefined>]>;
|
|
33
|
+
}, undefined>;
|
|
34
|
+
}, undefined>;
|
|
35
|
+
readonly relays: v.ObjectSchema<{
|
|
36
|
+
readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
37
|
+
readonly max_current: v.NumberSchema<undefined>;
|
|
38
|
+
readonly max_voltage: v.NumberSchema<undefined>;
|
|
39
|
+
readonly on_resistance: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
40
|
+
}, undefined>;
|
|
41
|
+
readonly usb_ports: v.ArraySchema<v.ObjectSchema<{
|
|
42
|
+
readonly type: v.PicklistSchema<["3.0", "2.0"], undefined>;
|
|
43
|
+
readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
44
|
+
}, undefined>, undefined>;
|
|
45
|
+
readonly ethernet: v.ArraySchema<v.ObjectSchema<{
|
|
46
|
+
readonly type: v.PicklistSchema<["1000BASE-T", "100BASE-T", "10BASE-T"], undefined>;
|
|
47
|
+
readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
48
|
+
}, undefined>, undefined>;
|
|
49
|
+
readonly communication: v.ArraySchema<v.ObjectSchema<{
|
|
50
|
+
readonly type: v.EnumSchema<typeof CommunicationInterfaceType, undefined>;
|
|
51
|
+
readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
52
|
+
}, undefined>, undefined>;
|
|
53
|
+
readonly power_supply: v.ObjectSchema<{
|
|
54
|
+
readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
55
|
+
readonly output_voltage: v.ObjectSchema<{
|
|
56
|
+
readonly min: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -24, undefined>, v.MaxValueAction<number, 24, undefined>]>;
|
|
57
|
+
readonly max: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -24, undefined>, v.MaxValueAction<number, 24, undefined>]>;
|
|
58
|
+
}, undefined>;
|
|
59
|
+
readonly current: v.ObjectSchema<{
|
|
60
|
+
readonly max: v.NumberSchema<undefined>;
|
|
61
|
+
}, undefined>;
|
|
62
|
+
}, undefined>;
|
|
63
|
+
readonly current_measurement: v.ArraySchema<v.ObjectSchema<{
|
|
64
|
+
readonly type: v.PicklistSchema<["low_precision", "high_precision"], undefined>;
|
|
65
|
+
readonly source: v.StringSchema<undefined>;
|
|
66
|
+
readonly resolution: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
67
|
+
}, undefined>, undefined>;
|
|
68
|
+
readonly hmi: v.ObjectSchema<{
|
|
69
|
+
readonly display: v.ObjectSchema<{
|
|
70
|
+
readonly type: v.StringSchema<undefined>;
|
|
71
|
+
readonly size: v.ObjectSchema<{
|
|
72
|
+
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
73
|
+
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
74
|
+
}, undefined>;
|
|
75
|
+
}, undefined>;
|
|
76
|
+
readonly input: v.ObjectSchema<{
|
|
77
|
+
readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
78
|
+
readonly type: v.StringSchema<undefined>;
|
|
79
|
+
}, undefined>;
|
|
80
|
+
readonly speaker: v.ObjectSchema<{
|
|
81
|
+
readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
82
|
+
readonly type: v.StringSchema<undefined>;
|
|
83
|
+
}, undefined>;
|
|
84
|
+
}, undefined>;
|
|
85
|
+
}, undefined>;
|
|
86
|
+
}, undefined>;
|
|
87
|
+
type Information = v.InferOutput<typeof info>;
|
|
88
|
+
declare const portMapping: v.ObjectSchema<{
|
|
89
|
+
readonly host: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>;
|
|
90
|
+
readonly container: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>;
|
|
91
|
+
readonly proto: v.PicklistSchema<["tcp", "udp"], undefined>;
|
|
92
|
+
}, undefined>;
|
|
93
|
+
type PortMapping = v.InferOutput<typeof portMapping>;
|
|
94
|
+
declare const runMode: v.PicklistSchema<["normal", "development"], undefined>;
|
|
95
|
+
type RunMode = v.InferOutput<typeof runMode>;
|
|
96
|
+
declare const logLine: v.ObjectSchema<{
|
|
97
|
+
readonly stream: v.PicklistSchema<["stdout", "stderr"], undefined>;
|
|
98
|
+
readonly line: v.StringSchema<undefined>;
|
|
99
|
+
}, undefined>;
|
|
100
|
+
type LogLine = v.InferOutput<typeof logLine>;
|
|
101
|
+
declare const project: v.ObjectSchema<{
|
|
102
|
+
readonly name: v.StringSchema<undefined>;
|
|
103
|
+
readonly path: v.StringSchema<undefined>;
|
|
104
|
+
readonly id: v.StringSchema<undefined>;
|
|
105
|
+
readonly image: v.StringSchema<undefined>;
|
|
106
|
+
readonly is_default: v.BooleanSchema<undefined>;
|
|
107
|
+
readonly ports: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
108
|
+
readonly host: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>;
|
|
109
|
+
readonly container: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>;
|
|
110
|
+
readonly proto: v.PicklistSchema<["tcp", "udp"], undefined>;
|
|
111
|
+
}, undefined>, undefined>, readonly []>;
|
|
112
|
+
readonly command: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
113
|
+
readonly state: v.PicklistSchema<["idle", "running", "error"], undefined>;
|
|
114
|
+
readonly mode: v.OptionalSchema<v.PicklistSchema<["normal", "development"], undefined>, undefined>;
|
|
115
|
+
}, undefined>;
|
|
116
|
+
type Project = v.InferOutput<typeof project>;
|
|
117
|
+
declare const projectEvent: v.VariantSchema<"change", [v.ObjectSchema<{
|
|
118
|
+
readonly change: v.LiteralSchema<"state_changed", undefined>;
|
|
119
|
+
readonly id: v.StringSchema<undefined>;
|
|
120
|
+
readonly state: v.PicklistSchema<["created", "started", "stopped", "removed", "error"], undefined>;
|
|
121
|
+
}, undefined>, v.ObjectSchema<{
|
|
122
|
+
readonly change: v.LiteralSchema<"renamed", undefined>;
|
|
123
|
+
readonly id: v.StringSchema<undefined>;
|
|
124
|
+
readonly name: v.StringSchema<undefined>;
|
|
125
|
+
}, undefined>, v.ObjectSchema<{
|
|
126
|
+
readonly change: v.LiteralSchema<"default_changed", undefined>;
|
|
127
|
+
readonly id: v.StringSchema<undefined>;
|
|
128
|
+
readonly is_default: v.BooleanSchema<undefined>;
|
|
129
|
+
}, undefined>], undefined>;
|
|
130
|
+
type ProjectEvent = v.InferOutput<typeof projectEvent>;
|
|
131
|
+
declare const projectPatch: Omit<Omit<v.ObjectSchema<{
|
|
132
|
+
readonly name: v.StringSchema<undefined>;
|
|
133
|
+
readonly path: v.StringSchema<undefined>;
|
|
134
|
+
readonly id: v.StringSchema<undefined>;
|
|
135
|
+
readonly image: v.StringSchema<undefined>;
|
|
136
|
+
readonly is_default: v.BooleanSchema<undefined>;
|
|
137
|
+
readonly ports: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
138
|
+
readonly host: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>;
|
|
139
|
+
readonly container: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>;
|
|
140
|
+
readonly proto: v.PicklistSchema<["tcp", "udp"], undefined>;
|
|
141
|
+
}, undefined>, undefined>, readonly []>;
|
|
142
|
+
readonly command: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
143
|
+
readonly state: v.PicklistSchema<["idle", "running", "error"], undefined>;
|
|
144
|
+
readonly mode: v.OptionalSchema<v.PicklistSchema<["normal", "development"], undefined>, undefined>;
|
|
145
|
+
}, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
|
|
146
|
+
readonly entries: Pick<{
|
|
147
|
+
readonly name: v.StringSchema<undefined>;
|
|
148
|
+
readonly path: v.StringSchema<undefined>;
|
|
149
|
+
readonly id: v.StringSchema<undefined>;
|
|
150
|
+
readonly image: v.StringSchema<undefined>;
|
|
151
|
+
readonly is_default: v.BooleanSchema<undefined>;
|
|
152
|
+
readonly ports: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
153
|
+
readonly host: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>;
|
|
154
|
+
readonly container: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>;
|
|
155
|
+
readonly proto: v.PicklistSchema<["tcp", "udp"], undefined>;
|
|
156
|
+
}, undefined>, undefined>, readonly []>;
|
|
157
|
+
readonly command: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
158
|
+
readonly state: v.PicklistSchema<["idle", "running", "error"], undefined>;
|
|
159
|
+
readonly mode: v.OptionalSchema<v.PicklistSchema<["normal", "development"], undefined>, undefined>;
|
|
160
|
+
}, "name" | "is_default" | "command">;
|
|
161
|
+
readonly "~standard": v.StandardProps<{
|
|
162
|
+
name: string;
|
|
163
|
+
is_default: boolean;
|
|
164
|
+
command?: string | undefined;
|
|
165
|
+
}, {
|
|
166
|
+
name: string;
|
|
167
|
+
is_default: boolean;
|
|
168
|
+
command: string;
|
|
169
|
+
}>;
|
|
170
|
+
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
171
|
+
name: string;
|
|
172
|
+
is_default: boolean;
|
|
173
|
+
command: string;
|
|
174
|
+
}, v.BooleanIssue | v.StringIssue | v.ObjectIssue>;
|
|
175
|
+
readonly "~types"?: {
|
|
176
|
+
readonly input: {
|
|
177
|
+
name: string;
|
|
178
|
+
is_default: boolean;
|
|
179
|
+
command?: string | undefined;
|
|
180
|
+
};
|
|
181
|
+
readonly output: {
|
|
182
|
+
name: string;
|
|
183
|
+
is_default: boolean;
|
|
184
|
+
command: string;
|
|
185
|
+
};
|
|
186
|
+
readonly issue: v.BooleanIssue | v.StringIssue | v.ObjectIssue;
|
|
187
|
+
} | undefined;
|
|
188
|
+
}, "~types" | "~run" | "~standard" | "entries"> & {
|
|
189
|
+
readonly entries: {
|
|
190
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
191
|
+
readonly is_default: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
192
|
+
readonly command: v.OptionalSchema<v.OptionalSchema<v.StringSchema<undefined>, "">, undefined>;
|
|
193
|
+
};
|
|
194
|
+
readonly "~standard": v.StandardProps<{
|
|
195
|
+
name?: string | undefined;
|
|
196
|
+
is_default?: boolean | undefined;
|
|
197
|
+
command?: string | undefined;
|
|
198
|
+
}, {
|
|
199
|
+
name?: string | undefined;
|
|
200
|
+
is_default?: boolean | undefined;
|
|
201
|
+
command?: string | undefined;
|
|
202
|
+
}>;
|
|
203
|
+
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
204
|
+
name?: string | undefined;
|
|
205
|
+
is_default?: boolean | undefined;
|
|
206
|
+
command?: string | undefined;
|
|
207
|
+
}, v.BooleanIssue | v.StringIssue | v.ObjectIssue>;
|
|
208
|
+
readonly "~types"?: {
|
|
209
|
+
readonly input: {
|
|
210
|
+
name?: string | undefined;
|
|
211
|
+
is_default?: boolean | undefined;
|
|
212
|
+
command?: string | undefined;
|
|
213
|
+
};
|
|
214
|
+
readonly output: {
|
|
215
|
+
name?: string | undefined;
|
|
216
|
+
is_default?: boolean | undefined;
|
|
217
|
+
command?: string | undefined;
|
|
218
|
+
};
|
|
219
|
+
readonly issue: v.BooleanIssue | v.StringIssue | v.ObjectIssue;
|
|
220
|
+
} | undefined;
|
|
221
|
+
};
|
|
222
|
+
type ProjectPatch = v.InferOutput<typeof projectPatch>;
|
|
223
|
+
declare const projectTemplate: v.PicklistSchema<["nodejs", "python"], undefined>;
|
|
224
|
+
type ProjectTemplate = v.InferOutput<typeof projectTemplate>;
|
|
225
|
+
declare const createProject: v.ObjectSchema<{
|
|
226
|
+
readonly name: v.StringSchema<undefined>;
|
|
227
|
+
readonly template: v.PicklistSchema<["nodejs", "python"], undefined>;
|
|
228
|
+
readonly command: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
229
|
+
}, undefined>;
|
|
230
|
+
type CreateProject = v.InferOutput<typeof createProject>;
|
|
231
|
+
declare const bundleInfo: v.ObjectSchema<{
|
|
232
|
+
readonly bundle: v.StringSchema<undefined>;
|
|
233
|
+
readonly version: v.StringSchema<undefined>;
|
|
234
|
+
readonly compatible: v.StringSchema<undefined>;
|
|
235
|
+
readonly description: v.StringSchema<undefined>;
|
|
236
|
+
}, undefined>;
|
|
237
|
+
type BundleInfo = v.InferOutput<typeof bundleInfo>;
|
|
238
|
+
declare const installResponse: v.ObjectSchema<{
|
|
239
|
+
readonly message: v.StringSchema<undefined>;
|
|
240
|
+
readonly bundle: v.StringSchema<undefined>;
|
|
241
|
+
}, undefined>;
|
|
242
|
+
type InstallResponse = v.InferOutput<typeof installResponse>;
|
|
243
|
+
declare const updateStatus: v.ObjectSchema<{
|
|
244
|
+
readonly state: v.PicklistSchema<["idle", "installing", "failed"], undefined>;
|
|
245
|
+
readonly progress: v.NumberSchema<undefined>;
|
|
246
|
+
readonly message: v.StringSchema<undefined>;
|
|
247
|
+
readonly error: v.StringSchema<undefined>;
|
|
248
|
+
}, undefined>;
|
|
249
|
+
type UpdateStatus = v.InferOutput<typeof updateStatus>;
|
|
250
|
+
declare const rebootResponse: v.ObjectSchema<{
|
|
251
|
+
readonly message: v.StringSchema<undefined>;
|
|
252
|
+
}, undefined>;
|
|
253
|
+
type RebootResponse = v.InferOutput<typeof rebootResponse>;
|
|
254
|
+
declare const calibrationPoint: v.ObjectSchema<{
|
|
255
|
+
readonly set: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
256
|
+
readonly measured: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
257
|
+
readonly reading: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, undefined>;
|
|
258
|
+
}, undefined>;
|
|
259
|
+
type CalibrationPoint = v.InferOutput<typeof calibrationPoint>;
|
|
260
|
+
declare const channelCalibration: v.ObjectSchema<{
|
|
261
|
+
readonly channel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 31, undefined>]>;
|
|
262
|
+
readonly points: v.ArraySchema<v.ObjectSchema<{
|
|
263
|
+
readonly set: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
264
|
+
readonly measured: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
265
|
+
readonly reading: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, undefined>;
|
|
266
|
+
}, undefined>, undefined>;
|
|
267
|
+
readonly max_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
268
|
+
readonly avg_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
269
|
+
}, undefined>;
|
|
270
|
+
type ChannelCalibration = v.InferOutput<typeof channelCalibration>;
|
|
271
|
+
declare const dutPsuCalibration: v.ObjectSchema<{
|
|
272
|
+
readonly voltage: v.ObjectSchema<{
|
|
273
|
+
readonly points: v.ArraySchema<v.ObjectSchema<{
|
|
274
|
+
readonly set: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
275
|
+
readonly measured: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
276
|
+
readonly reading: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, undefined>;
|
|
277
|
+
}, undefined>, undefined>;
|
|
278
|
+
readonly max_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
279
|
+
readonly avg_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
280
|
+
}, undefined>;
|
|
281
|
+
readonly current: v.ObjectSchema<{
|
|
282
|
+
readonly load_ohms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>, v.MinValueAction<number, number, undefined>]>;
|
|
283
|
+
readonly points: v.ArraySchema<v.ObjectSchema<{
|
|
284
|
+
readonly set: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
285
|
+
readonly measured: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
286
|
+
readonly reading: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, undefined>;
|
|
287
|
+
}, undefined>, undefined>;
|
|
288
|
+
readonly max_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
289
|
+
readonly avg_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
290
|
+
}, undefined>;
|
|
291
|
+
}, undefined>;
|
|
292
|
+
type DutPsuCalibration = v.InferOutput<typeof dutPsuCalibration>;
|
|
293
|
+
declare const currentTestResult: v.ObjectSchema<{
|
|
294
|
+
readonly load_ohms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>, v.MinValueAction<number, number, undefined>]>;
|
|
295
|
+
readonly voltage_applied: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
296
|
+
readonly measured_current: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
297
|
+
readonly expected_current: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
298
|
+
readonly error_percent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
299
|
+
}, undefined>;
|
|
300
|
+
/** @deprecated See {@link currentTestResult}. */
|
|
301
|
+
type CurrentTestResult = v.InferOutput<typeof currentTestResult>;
|
|
302
|
+
declare const relayTestResult: v.ObjectSchema<{
|
|
303
|
+
readonly relay: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 7, undefined>]>;
|
|
304
|
+
readonly status: v.PicklistSchema<["pass", "fail"], undefined>;
|
|
305
|
+
readonly test_voltage: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
306
|
+
readonly closed_current: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
307
|
+
readonly open_current: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
308
|
+
readonly calibration: v.OptionalSchema<v.ObjectSchema<{
|
|
309
|
+
readonly channel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 31, undefined>]>;
|
|
310
|
+
readonly points: v.ArraySchema<v.ObjectSchema<{
|
|
311
|
+
readonly set: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
312
|
+
readonly measured: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
313
|
+
readonly reading: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, undefined>;
|
|
314
|
+
}, undefined>, undefined>;
|
|
315
|
+
readonly max_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
316
|
+
readonly avg_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
317
|
+
}, undefined>, undefined>;
|
|
318
|
+
}, undefined>;
|
|
319
|
+
type RelayTestResult = v.InferOutput<typeof relayTestResult>;
|
|
320
|
+
declare const usbTestResult: v.ObjectSchema<{
|
|
321
|
+
readonly port: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
322
|
+
readonly status: v.PicklistSchema<["pass", "fail"], undefined>;
|
|
323
|
+
readonly voltage: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>; /** @deprecated Legacy field; only present on calibrations from older devices. */
|
|
324
|
+
readonly current_tests: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
325
|
+
readonly load_ohms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>, v.MinValueAction<number, number, undefined>]>;
|
|
326
|
+
readonly voltage_applied: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
327
|
+
readonly measured_current: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
328
|
+
readonly expected_current: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
329
|
+
readonly error_percent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
330
|
+
}, undefined>, undefined>, undefined>;
|
|
331
|
+
}, undefined>;
|
|
332
|
+
type UsbTestResult = v.InferOutput<typeof usbTestResult>;
|
|
333
|
+
declare const calibrationData: v.ObjectSchema<{
|
|
334
|
+
readonly schema_version: v.LiteralSchema<1, undefined>;
|
|
335
|
+
readonly tool_version: v.StringSchema<undefined>;
|
|
336
|
+
readonly device_id: v.StringSchema<undefined>;
|
|
337
|
+
readonly timestamp: v.StringSchema<undefined>;
|
|
338
|
+
readonly firmware_version: v.StringSchema<undefined>;
|
|
339
|
+
readonly dac: v.ArraySchema<v.ObjectSchema<{
|
|
340
|
+
readonly channel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 31, undefined>]>;
|
|
341
|
+
readonly points: v.ArraySchema<v.ObjectSchema<{
|
|
342
|
+
readonly set: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
343
|
+
readonly measured: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
344
|
+
readonly reading: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, undefined>;
|
|
345
|
+
}, undefined>, undefined>;
|
|
346
|
+
readonly max_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
347
|
+
readonly avg_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
348
|
+
}, undefined>, undefined>;
|
|
349
|
+
readonly adc_positive: v.ArraySchema<v.ObjectSchema<{
|
|
350
|
+
readonly channel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 31, undefined>]>;
|
|
351
|
+
readonly points: v.ArraySchema<v.ObjectSchema<{
|
|
352
|
+
readonly set: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
353
|
+
readonly measured: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
354
|
+
readonly reading: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, undefined>;
|
|
355
|
+
}, undefined>, undefined>;
|
|
356
|
+
readonly max_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
357
|
+
readonly avg_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
358
|
+
}, undefined>, undefined>;
|
|
359
|
+
readonly adc_negative: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
360
|
+
readonly channel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 31, undefined>]>;
|
|
361
|
+
readonly points: v.ArraySchema<v.ObjectSchema<{
|
|
362
|
+
readonly set: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
363
|
+
readonly measured: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
364
|
+
readonly reading: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, undefined>;
|
|
365
|
+
}, undefined>, undefined>;
|
|
366
|
+
readonly max_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
367
|
+
readonly avg_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
368
|
+
}, undefined>, undefined>, undefined>;
|
|
369
|
+
readonly dut_psu: v.ObjectSchema<{
|
|
370
|
+
readonly voltage: v.ObjectSchema<{
|
|
371
|
+
readonly points: v.ArraySchema<v.ObjectSchema<{
|
|
372
|
+
readonly set: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
373
|
+
readonly measured: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
374
|
+
readonly reading: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, undefined>;
|
|
375
|
+
}, undefined>, undefined>;
|
|
376
|
+
readonly max_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
377
|
+
readonly avg_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
378
|
+
}, undefined>;
|
|
379
|
+
readonly current: v.ObjectSchema<{
|
|
380
|
+
readonly load_ohms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>, v.MinValueAction<number, number, undefined>]>;
|
|
381
|
+
readonly points: v.ArraySchema<v.ObjectSchema<{
|
|
382
|
+
readonly set: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
383
|
+
readonly measured: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
384
|
+
readonly reading: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, undefined>;
|
|
385
|
+
}, undefined>, undefined>;
|
|
386
|
+
readonly max_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
387
|
+
readonly avg_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
388
|
+
}, undefined>;
|
|
389
|
+
}, undefined>;
|
|
390
|
+
readonly relays: v.ArraySchema<v.ObjectSchema<{
|
|
391
|
+
readonly relay: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 7, undefined>]>;
|
|
392
|
+
readonly status: v.PicklistSchema<["pass", "fail"], undefined>;
|
|
393
|
+
readonly test_voltage: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
394
|
+
readonly closed_current: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
395
|
+
readonly open_current: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
396
|
+
readonly calibration: v.OptionalSchema<v.ObjectSchema<{
|
|
397
|
+
readonly channel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 31, undefined>]>;
|
|
398
|
+
readonly points: v.ArraySchema<v.ObjectSchema<{
|
|
399
|
+
readonly set: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
400
|
+
readonly measured: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
401
|
+
readonly reading: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, undefined>;
|
|
402
|
+
}, undefined>, undefined>;
|
|
403
|
+
readonly max_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
404
|
+
readonly avg_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
405
|
+
}, undefined>, undefined>;
|
|
406
|
+
}, undefined>, undefined>;
|
|
407
|
+
readonly usb: v.ArraySchema<v.ObjectSchema<{
|
|
408
|
+
readonly port: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
409
|
+
readonly status: v.PicklistSchema<["pass", "fail"], undefined>;
|
|
410
|
+
readonly voltage: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>; /** @deprecated Legacy field; only present on calibrations from older devices. */
|
|
411
|
+
readonly current_tests: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
412
|
+
readonly load_ohms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>, v.MinValueAction<number, number, undefined>]>;
|
|
413
|
+
readonly voltage_applied: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
414
|
+
readonly measured_current: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
415
|
+
readonly expected_current: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
416
|
+
readonly error_percent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
417
|
+
}, undefined>, undefined>, undefined>;
|
|
418
|
+
}, undefined>, undefined>;
|
|
419
|
+
}, undefined>;
|
|
420
|
+
type CalibrationData = v.InferOutput<typeof calibrationData>;
|
|
421
|
+
declare const calibrationState: v.ObjectSchema<{
|
|
422
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
423
|
+
readonly loaded: v.BooleanSchema<undefined>;
|
|
424
|
+
readonly last_error: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
425
|
+
readonly calibrated_at: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
426
|
+
}, undefined>;
|
|
427
|
+
type CalibrationState = v.InferOutput<typeof calibrationState>;
|
|
428
|
+
/** @hideconstructor */
|
|
429
|
+
declare class ManagementApi {
|
|
430
|
+
private readonly fetch;
|
|
431
|
+
private readonly host;
|
|
432
|
+
constructor(fetch: UpFetch, host: string);
|
|
433
|
+
/**
|
|
434
|
+
* Gets device information and capabilities.
|
|
435
|
+
* @returns The device information.
|
|
436
|
+
*/
|
|
437
|
+
info(): Promise<{
|
|
438
|
+
model: string;
|
|
439
|
+
hostname: string;
|
|
440
|
+
serial_number: string;
|
|
441
|
+
firmware_version: string;
|
|
442
|
+
firmware_commit: string;
|
|
443
|
+
hardware_version?: number | undefined;
|
|
444
|
+
disk_used: number;
|
|
445
|
+
disk_total: number;
|
|
446
|
+
docker_used: number;
|
|
447
|
+
capabilities: {
|
|
448
|
+
io: {
|
|
449
|
+
count: number;
|
|
450
|
+
input_voltage: {
|
|
451
|
+
min: number;
|
|
452
|
+
max: number;
|
|
453
|
+
};
|
|
454
|
+
output_voltage: {
|
|
455
|
+
min: number;
|
|
456
|
+
max: number;
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
relays: {
|
|
460
|
+
count: number;
|
|
461
|
+
max_current: number;
|
|
462
|
+
max_voltage: number;
|
|
463
|
+
on_resistance: number;
|
|
464
|
+
};
|
|
465
|
+
usb_ports: {
|
|
466
|
+
type: "3.0" | "2.0";
|
|
467
|
+
count: number;
|
|
468
|
+
}[];
|
|
469
|
+
ethernet: {
|
|
470
|
+
type: "1000BASE-T" | "100BASE-T" | "10BASE-T";
|
|
471
|
+
count: number;
|
|
472
|
+
}[];
|
|
473
|
+
communication: {
|
|
474
|
+
type: CommunicationInterfaceType;
|
|
475
|
+
count: number;
|
|
476
|
+
}[];
|
|
477
|
+
power_supply: {
|
|
478
|
+
count: number;
|
|
479
|
+
output_voltage: {
|
|
480
|
+
min: number;
|
|
481
|
+
max: number;
|
|
482
|
+
};
|
|
483
|
+
current: {
|
|
484
|
+
max: number;
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
current_measurement: {
|
|
488
|
+
type: "low_precision" | "high_precision";
|
|
489
|
+
source: string;
|
|
490
|
+
resolution: number;
|
|
491
|
+
}[];
|
|
492
|
+
hmi: {
|
|
493
|
+
display: {
|
|
494
|
+
type: string;
|
|
495
|
+
size: {
|
|
496
|
+
width: number;
|
|
497
|
+
height: number;
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
input: {
|
|
501
|
+
count: number;
|
|
502
|
+
type: string;
|
|
503
|
+
};
|
|
504
|
+
speaker: {
|
|
505
|
+
count: number;
|
|
506
|
+
type: string;
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
}>;
|
|
511
|
+
/**
|
|
512
|
+
* Gets the loaded calibration data.
|
|
513
|
+
* @returns The canonical calibration data stored on the device.
|
|
514
|
+
*/
|
|
515
|
+
get_calibration(): Promise<CalibrationData>;
|
|
516
|
+
/**
|
|
517
|
+
* Uploads and activates calibration data.
|
|
518
|
+
* @param data The full calibration report to store on the device.
|
|
519
|
+
*/
|
|
520
|
+
set_calibration(data: CalibrationData): Promise<CalibrationData>;
|
|
521
|
+
/**
|
|
522
|
+
* Gets runtime calibration enable/load state.
|
|
523
|
+
*/
|
|
524
|
+
get_calibration_state(): Promise<CalibrationState>;
|
|
525
|
+
/**
|
|
526
|
+
* Enables or disables runtime calibration correction.
|
|
527
|
+
* @param enabled Whether calibration correction should be applied.
|
|
528
|
+
*/
|
|
529
|
+
set_calibration_enabled(enabled: boolean): Promise<CalibrationState>;
|
|
530
|
+
/** Enables runtime calibration correction. */
|
|
531
|
+
enable_calibration(): Promise<CalibrationState>;
|
|
532
|
+
/** Disables runtime calibration correction. */
|
|
533
|
+
disable_calibration(): Promise<CalibrationState>;
|
|
534
|
+
/**
|
|
535
|
+
* Gets the current date and time of the device.
|
|
536
|
+
* @returns The current date and time.
|
|
537
|
+
*/
|
|
538
|
+
datetime(): Promise<Date>;
|
|
539
|
+
/**
|
|
540
|
+
* Sets the date and time of the device.
|
|
541
|
+
*
|
|
542
|
+
* This will only work if the device is not connected to the internet.
|
|
543
|
+
*
|
|
544
|
+
* @param datetime The date and time to set.
|
|
545
|
+
*/
|
|
546
|
+
setDatetime(datetime: Date): Promise<void>;
|
|
547
|
+
/**
|
|
548
|
+
* Gets a list of all projects.
|
|
549
|
+
* @returns An array of projects.
|
|
550
|
+
*/
|
|
551
|
+
getProjects(): Promise<{
|
|
552
|
+
name: string;
|
|
553
|
+
path: string;
|
|
554
|
+
id: string;
|
|
555
|
+
image: string;
|
|
556
|
+
is_default: boolean;
|
|
557
|
+
ports: {
|
|
558
|
+
host: number;
|
|
559
|
+
container: number;
|
|
560
|
+
proto: "tcp" | "udp";
|
|
561
|
+
}[];
|
|
562
|
+
command: string;
|
|
563
|
+
state: "error" | "idle" | "running";
|
|
564
|
+
mode?: "normal" | "development" | undefined;
|
|
565
|
+
}[]>;
|
|
566
|
+
/**
|
|
567
|
+
* Lists the AT1000 base images present on the device.
|
|
568
|
+
* @returns Repo tags of on-device base images (e.g. "localhost/at1000-base:latest").
|
|
569
|
+
*/
|
|
570
|
+
listImages(): Promise<string[]>;
|
|
571
|
+
/**
|
|
572
|
+
* Gets a single project by id.
|
|
573
|
+
* @param projectId The project slug id.
|
|
574
|
+
* @returns The project info.
|
|
575
|
+
*/
|
|
576
|
+
getProject(projectId: string): Promise<{
|
|
577
|
+
name: string;
|
|
578
|
+
path: string;
|
|
579
|
+
id: string;
|
|
580
|
+
image: string;
|
|
581
|
+
is_default: boolean;
|
|
582
|
+
ports: {
|
|
583
|
+
host: number;
|
|
584
|
+
container: number;
|
|
585
|
+
proto: "tcp" | "udp";
|
|
586
|
+
}[];
|
|
587
|
+
command: string;
|
|
588
|
+
state: "error" | "idle" | "running";
|
|
589
|
+
mode?: "normal" | "development" | undefined;
|
|
590
|
+
}>;
|
|
591
|
+
/**
|
|
592
|
+
* Creates a new project from a preinstalled template.
|
|
593
|
+
* @param newProject The project creation data.
|
|
594
|
+
*/
|
|
595
|
+
createProject(newProject: CreateProject): Promise<{
|
|
596
|
+
name: string;
|
|
597
|
+
path: string;
|
|
598
|
+
id: string;
|
|
599
|
+
image: string;
|
|
600
|
+
is_default: boolean;
|
|
601
|
+
ports: {
|
|
602
|
+
host: number;
|
|
603
|
+
container: number;
|
|
604
|
+
proto: "tcp" | "udp";
|
|
605
|
+
}[];
|
|
606
|
+
command: string;
|
|
607
|
+
state: "error" | "idle" | "running";
|
|
608
|
+
mode?: "normal" | "development" | undefined;
|
|
609
|
+
}>;
|
|
610
|
+
/**
|
|
611
|
+
* Imports a project from a container image archive (.tar / .tar.gz).
|
|
612
|
+
* @param file The image archive to import.
|
|
613
|
+
* @param name The project name (sent percent-encoded; the server decodes it).
|
|
614
|
+
* @returns The created project.
|
|
615
|
+
*/
|
|
616
|
+
importProject(file: Blob, name: string): Promise<{
|
|
617
|
+
name: string;
|
|
618
|
+
path: string;
|
|
619
|
+
id: string;
|
|
620
|
+
image: string;
|
|
621
|
+
is_default: boolean;
|
|
622
|
+
ports: {
|
|
623
|
+
host: number;
|
|
624
|
+
container: number;
|
|
625
|
+
proto: "tcp" | "udp";
|
|
626
|
+
}[];
|
|
627
|
+
command: string;
|
|
628
|
+
state: "error" | "idle" | "running";
|
|
629
|
+
mode?: "normal" | "development" | undefined;
|
|
630
|
+
}>;
|
|
631
|
+
/**
|
|
632
|
+
* Patches an existing project (`name`, `is_default`, `command`). An empty `command` clears it (entrypoint autodetect).
|
|
633
|
+
* @param projectId The project slug id.
|
|
634
|
+
* @param data The data to patch the project with.
|
|
635
|
+
*/
|
|
636
|
+
updateProject(projectId: string, data: ProjectPatch): Promise<{
|
|
637
|
+
name: string;
|
|
638
|
+
path: string;
|
|
639
|
+
id: string;
|
|
640
|
+
image: string;
|
|
641
|
+
is_default: boolean;
|
|
642
|
+
ports: {
|
|
643
|
+
host: number;
|
|
644
|
+
container: number;
|
|
645
|
+
proto: "tcp" | "udp";
|
|
646
|
+
}[];
|
|
647
|
+
command: string;
|
|
648
|
+
state: "error" | "idle" | "running";
|
|
649
|
+
mode?: "normal" | "development" | undefined;
|
|
650
|
+
}>;
|
|
651
|
+
/**
|
|
652
|
+
* Runs a project.
|
|
653
|
+
* @param projectId The project slug id.
|
|
654
|
+
* @param mode The run mode: 'normal' (default) or 'development' (starts sshd).
|
|
655
|
+
*/
|
|
656
|
+
runProject(projectId: string, mode?: RunMode): Promise<any>;
|
|
657
|
+
/**
|
|
658
|
+
* Stops a running project.
|
|
659
|
+
* @param projectId The project slug id.
|
|
660
|
+
*/
|
|
661
|
+
stopProject(projectId: string): Promise<any>;
|
|
662
|
+
/**
|
|
663
|
+
* Gets the port mappings for a project.
|
|
664
|
+
* @param projectId The project slug id.
|
|
665
|
+
* @returns The project's port mappings.
|
|
666
|
+
*/
|
|
667
|
+
getProjectPorts(projectId: string): Promise<{
|
|
668
|
+
host: number;
|
|
669
|
+
container: number;
|
|
670
|
+
proto: "tcp" | "udp";
|
|
671
|
+
}[]>;
|
|
672
|
+
/**
|
|
673
|
+
* Replaces the full set of port mappings for a project.
|
|
674
|
+
* @param projectId The project slug id.
|
|
675
|
+
* @param ports The complete list of port mappings.
|
|
676
|
+
* @returns The updated port mappings.
|
|
677
|
+
*/
|
|
678
|
+
setProjectPorts(projectId: string, ports: PortMapping[]): Promise<{
|
|
679
|
+
host: number;
|
|
680
|
+
container: number;
|
|
681
|
+
proto: "tcp" | "udp";
|
|
682
|
+
}[]>;
|
|
683
|
+
/**
|
|
684
|
+
* Adds a single port mapping to a project.
|
|
685
|
+
* @param projectId The project slug id.
|
|
686
|
+
* @param mapping The port mapping to add.
|
|
687
|
+
* @returns The updated port mappings.
|
|
688
|
+
*/
|
|
689
|
+
addProjectPort(projectId: string, mapping: PortMapping): Promise<{
|
|
690
|
+
host: number;
|
|
691
|
+
container: number;
|
|
692
|
+
proto: "tcp" | "udp";
|
|
693
|
+
}[]>;
|
|
694
|
+
/**
|
|
695
|
+
* Removes the port mapping for a host port from a project.
|
|
696
|
+
* @param projectId The project slug id.
|
|
697
|
+
* @param hostPort The host port to unmap.
|
|
698
|
+
*/
|
|
699
|
+
deleteProjectPort(projectId: string, hostPort: number): Promise<void>;
|
|
700
|
+
/**
|
|
701
|
+
* Sets the password of the project's dev user (used for SSH password login in
|
|
702
|
+
* development mode).
|
|
703
|
+
* @param projectId The project slug id.
|
|
704
|
+
* @param password The new password.
|
|
705
|
+
*/
|
|
706
|
+
setProjectPassword(projectId: string, password: string): Promise<void>;
|
|
707
|
+
/**
|
|
708
|
+
* Gets the SSH authorized_keys for the project's dev user.
|
|
709
|
+
* @param projectId The project slug id.
|
|
710
|
+
* @returns The list of authorized public keys.
|
|
711
|
+
*/
|
|
712
|
+
getProjectAuthorizedKeys(projectId: string): Promise<string[]>;
|
|
713
|
+
/**
|
|
714
|
+
* Replaces the SSH authorized_keys for the project's dev user.
|
|
715
|
+
* @param projectId The project slug id.
|
|
716
|
+
* @param keys The complete list of authorized public keys.
|
|
717
|
+
* @returns The updated list of authorized public keys.
|
|
718
|
+
*/
|
|
719
|
+
setProjectAuthorizedKeys(projectId: string, keys: string[]): Promise<string[]>;
|
|
720
|
+
/**
|
|
721
|
+
* Deletes a project.
|
|
722
|
+
* @param projectId The project slug id.
|
|
723
|
+
*/
|
|
724
|
+
deleteProject(projectId: string): Promise<any>;
|
|
725
|
+
/**
|
|
726
|
+
* Uploads a firmware bundle to the device and inspects it.
|
|
727
|
+
* The bundle is staged for installation but not installed yet.
|
|
728
|
+
* @param file The firmware bundle file (.raucb).
|
|
729
|
+
* @param filename Optional filename for the bundle. Defaults to 'bundle.raucb'.
|
|
730
|
+
* @returns Bundle metadata including version information.
|
|
731
|
+
*/
|
|
732
|
+
upload_bundle(file: Blob, filename?: string): Promise<{
|
|
733
|
+
bundle: string;
|
|
734
|
+
version: string;
|
|
735
|
+
compatible: string;
|
|
736
|
+
description: string;
|
|
737
|
+
}>;
|
|
738
|
+
/**
|
|
739
|
+
* Gets metadata for the currently staged firmware bundle.
|
|
740
|
+
* @returns Bundle metadata including version information.
|
|
741
|
+
*/
|
|
742
|
+
bundle_info(): Promise<{
|
|
743
|
+
bundle: string;
|
|
744
|
+
version: string;
|
|
745
|
+
compatible: string;
|
|
746
|
+
description: string;
|
|
747
|
+
}>;
|
|
748
|
+
/**
|
|
749
|
+
* Installs a previously uploaded firmware bundle.
|
|
750
|
+
* @returns The install response with message and bundle name.
|
|
751
|
+
*/
|
|
752
|
+
install_update(): Promise<{
|
|
753
|
+
message: string;
|
|
754
|
+
bundle: string;
|
|
755
|
+
}>;
|
|
756
|
+
/**
|
|
757
|
+
* Gets the current firmware update status.
|
|
758
|
+
* @returns The update status including state, progress, message and error.
|
|
759
|
+
*/
|
|
760
|
+
update_status(): Promise<{
|
|
761
|
+
state: "idle" | "installing" | "failed";
|
|
762
|
+
progress: number;
|
|
763
|
+
message: string;
|
|
764
|
+
error: string;
|
|
765
|
+
}>;
|
|
766
|
+
/**
|
|
767
|
+
* Reboots the device.
|
|
768
|
+
* @returns The reboot response message.
|
|
769
|
+
*/
|
|
770
|
+
reboot(): Promise<{
|
|
771
|
+
message: string;
|
|
772
|
+
}>;
|
|
773
|
+
/**
|
|
774
|
+
* Gets the current run's container logs for a project (one-shot).
|
|
775
|
+
*
|
|
776
|
+
* Lines are scoped server-side to the container's most recent start: a running
|
|
777
|
+
* project returns the live run so far, an idle/stopped project the last run.
|
|
778
|
+
* stdout and stderr are merged into one chronological array; each entry's
|
|
779
|
+
* `stream` field says which it came from.
|
|
780
|
+
*
|
|
781
|
+
* @param projectId The project slug id.
|
|
782
|
+
* @param options.tail Max number of trailing lines (default 1000, clamped 1..10000).
|
|
783
|
+
* @returns The current run's log lines, in order.
|
|
784
|
+
*/
|
|
785
|
+
getProjectLogs(projectId: string, options?: {
|
|
786
|
+
tail?: number;
|
|
787
|
+
}): Promise<{
|
|
788
|
+
stream: "stdout" | "stderr";
|
|
789
|
+
line: string;
|
|
790
|
+
}[]>;
|
|
791
|
+
/**
|
|
792
|
+
* Streams the current run's container logs for a project over SSE.
|
|
793
|
+
*
|
|
794
|
+
* Replays the current run's recent lines (bounded by `tail`) then follows live
|
|
795
|
+
* with zero gap. `onLine` fires once per line (stdout and stderr merged in
|
|
796
|
+
* order); `onEnd` fires when the follow ends (the container stopped, or an
|
|
797
|
+
* idle project's last-run replay completed). No auto-reconnect.
|
|
798
|
+
*
|
|
799
|
+
* @param projectId The project slug id.
|
|
800
|
+
* @param handlers Line/end/error callbacks.
|
|
801
|
+
* @param options.tail Max number of trailing lines (default 1000, clamped 1..10000).
|
|
802
|
+
* @returns A handle whose `close()` aborts the stream.
|
|
803
|
+
*/
|
|
804
|
+
streamProjectLogs(projectId: string, handlers: {
|
|
805
|
+
onLine: (line: LogLine) => void;
|
|
806
|
+
onEnd?: () => void;
|
|
807
|
+
onError?: (err: unknown) => void;
|
|
808
|
+
}, options?: {
|
|
809
|
+
tail?: number;
|
|
810
|
+
}): {
|
|
811
|
+
close: () => void;
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
//#endregion
|
|
815
|
+
export { BundleInfo, CalibrationData, CalibrationPoint, CalibrationState, ChannelCalibration, CommunicationInterfaceType, CreateProject, CurrentTestResult, DutPsuCalibration, Information, InstallResponse, LogLine, ManagementApi, PortMapping, Project, ProjectEvent, ProjectPatch, ProjectTemplate, RebootResponse, RelayTestResult, RunMode, UpdateStatus, UsbTestResult, calibrationData, calibrationState, portMapping, project, projectEvent, runMode, updateStatus };
|
|
816
|
+
//# sourceMappingURL=management.d.mts.map
|