@ikalogic/at1000 0.5.2 → 0.7.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/build/at1000-Bav5xUM1.mjs +3 -0
- package/build/at1000-Bav5xUM1.mjs.map +1 -0
- package/build/at1000-DjoKZEha.cjs +3 -0
- package/build/at1000-DjoKZEha.cjs.map +1 -0
- package/build/browser.cjs +1 -1
- package/build/browser.cjs.map +1 -1
- package/build/browser.d.cts +3 -3
- package/build/browser.d.cts.map +1 -1
- package/build/browser.d.mts +3 -3
- package/build/browser.d.mts.map +1 -1
- package/build/browser.mjs +1 -1
- package/build/browser.mjs.map +1 -1
- package/build/{com-DN1l6xqC.d.cts → com-Bkkgrsep.d.cts} +177 -177
- package/build/{com-DN1l6xqC.d.cts.map → com-Bkkgrsep.d.cts.map} +1 -1
- package/build/{com-DN1l6xqC.d.mts → com-Bkkgrsep.d.mts} +177 -177
- package/build/{com-DN1l6xqC.d.mts.map → com-Bkkgrsep.d.mts.map} +1 -1
- package/build/com.cjs +1 -1
- package/build/com.d.cts +1 -1
- package/build/com.d.mts +1 -1
- package/build/{common-BSrNhbq_.cjs → common-BUohXSqz.cjs} +2 -2
- package/build/{common-BSrNhbq_.cjs.map → common-BUohXSqz.cjs.map} +1 -1
- package/build/{events-Cf7iAMZP.d.cts → events-8aTmwMUi.d.cts} +6 -6
- package/build/events-8aTmwMUi.d.cts.map +1 -0
- package/build/{events-Cf7iAMZP.d.mts → events-8aTmwMUi.d.mts} +6 -6
- package/build/events-8aTmwMUi.d.mts.map +1 -0
- package/build/events.cjs +1 -1
- package/build/events.d.cts +1 -1
- package/build/events.d.mts +1 -1
- package/build/events.mjs +1 -1
- package/build/gpio-5-tRkdTW.d.mts +712 -0
- package/build/gpio-5-tRkdTW.d.mts.map +1 -0
- package/build/gpio-D3QEeLKh.d.cts +712 -0
- package/build/gpio-D3QEeLKh.d.cts.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-B-potLdl.d.cts → hmi-BEMiVKDF.d.cts} +2 -2
- package/build/hmi-BEMiVKDF.d.cts.map +1 -0
- package/build/{hmi-B-potLdl.d.mts → hmi-BEMiVKDF.d.mts} +2 -2
- package/build/hmi-BEMiVKDF.d.mts.map +1 -0
- package/build/hmi.cjs +1 -1
- package/build/hmi.d.cts +1 -1
- package/build/hmi.d.mts +1 -1
- package/build/{at1000-gm586Tc9.d.mts → host-BBjSKRqs.d.mts} +18 -16
- package/build/host-BBjSKRqs.d.mts.map +1 -0
- package/build/{at1000-tUTVczQa.d.cts → host-DlP73amZ.d.cts} +18 -16
- package/build/host-DlP73amZ.d.cts.map +1 -0
- package/build/management-DqBsC1HB.cjs +7 -0
- package/build/management-DqBsC1HB.cjs.map +1 -0
- package/build/management-StKcAkgo.mjs +7 -0
- package/build/management-StKcAkgo.mjs.map +1 -0
- package/build/management.cjs +1 -1
- package/build/management.d.cts +75 -70
- package/build/management.d.cts.map +1 -1
- package/build/management.d.mts +75 -70
- package/build/management.d.mts.map +1 -1
- package/build/management.mjs +1 -1
- package/build/node.cjs +1 -1
- package/build/node.cjs.map +1 -1
- package/build/node.d.cts +3 -3
- package/build/node.d.cts.map +1 -1
- package/build/node.d.mts +3 -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-DNfLRnEC.mjs +2 -0
- package/build/package-DNfLRnEC.mjs.map +1 -0
- package/build/{package-0hAwYBa1.cjs → package-iERj9NJ6.cjs} +2 -2
- package/build/package-iERj9NJ6.cjs.map +1 -0
- package/build/{power-B8QFbKdP.d.cts → power-B3oUS0wU.d.cts} +18 -18
- package/build/power-B3oUS0wU.d.cts.map +1 -0
- package/build/{power-BZmXOJyK.d.mts → power-D08VFff6.d.mts} +18 -18
- package/build/power-D08VFff6.d.mts.map +1 -0
- package/build/power.cjs +1 -1
- package/build/power.cjs.map +1 -1
- package/build/power.d.cts +1 -1
- package/build/power.d.mts +1 -1
- package/build/power.mjs.map +1 -1
- package/build/relays-TADiLsPk.d.cts.map +1 -1
- package/build/relays-TADiLsPk.d.mts.map +1 -1
- package/build/relays.cjs +1 -1
- package/build/{rolldown-runtime-CMqjfN_6.cjs → rolldown-runtime-BocRIvOZ.cjs} +1 -1
- package/build/session-qWW9mqWH.d.cts.map +1 -1
- package/build/session-qWW9mqWH.d.mts.map +1 -1
- package/build/session.cjs +1 -1
- package/build/session.mjs +1 -1
- package/package.json +12 -22
- package/build/at1000-DbIvMQUc.cjs +0 -8
- package/build/at1000-DbIvMQUc.cjs.map +0 -1
- package/build/at1000-Zs18VzlP.mjs +0 -8
- package/build/at1000-Zs18VzlP.mjs.map +0 -1
- package/build/at1000-gm586Tc9.d.mts.map +0 -1
- package/build/at1000-tUTVczQa.d.cts.map +0 -1
- package/build/events-Cf7iAMZP.d.cts.map +0 -1
- package/build/events-Cf7iAMZP.d.mts.map +0 -1
- package/build/gpio-CsxbjhA_.d.cts +0 -406
- package/build/gpio-CsxbjhA_.d.cts.map +0 -1
- package/build/gpio-Dk-s_yMc.d.mts +0 -406
- package/build/gpio-Dk-s_yMc.d.mts.map +0 -1
- package/build/hmi-B-potLdl.d.cts.map +0 -1
- package/build/hmi-B-potLdl.d.mts.map +0 -1
- package/build/package-0hAwYBa1.cjs.map +0 -1
- package/build/package-CU5MagIg.mjs +0 -2
- package/build/package-CU5MagIg.mjs.map +0 -1
- package/build/power-B8QFbKdP.d.cts.map +0 -1
- package/build/power-BZmXOJyK.d.mts.map +0 -1
package/build/management.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UpFetch } from "up-fetch";
|
|
2
2
|
import * as v from "valibot";
|
|
3
3
|
//#region src/api/management.d.ts
|
|
4
|
-
declare enum CommunicationInterfaceType {
|
|
4
|
+
export declare enum CommunicationInterfaceType {
|
|
5
5
|
Can = "can",
|
|
6
6
|
Rs232 = "rs232",
|
|
7
7
|
Rs485 = "rs485",
|
|
@@ -26,8 +26,8 @@ declare const info: v.ObjectSchema<{
|
|
|
26
26
|
readonly io: v.ObjectSchema<{
|
|
27
27
|
readonly count: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
28
28
|
readonly input_voltage: v.ObjectSchema<{
|
|
29
|
-
readonly min: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -
|
|
30
|
-
readonly max: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -
|
|
29
|
+
readonly min: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -25, undefined>, v.MaxValueAction<number, 25, undefined>]>;
|
|
30
|
+
readonly max: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -25, undefined>, v.MaxValueAction<number, 25, undefined>]>;
|
|
31
31
|
}, undefined>;
|
|
32
32
|
readonly output_voltage: v.ObjectSchema<{
|
|
33
33
|
readonly min: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -24, undefined>, v.MaxValueAction<number, 24, undefined>]>;
|
|
@@ -86,21 +86,21 @@ declare const info: v.ObjectSchema<{
|
|
|
86
86
|
}, undefined>;
|
|
87
87
|
}, undefined>;
|
|
88
88
|
}, undefined>;
|
|
89
|
-
type Information = v.InferOutput<typeof info>;
|
|
90
|
-
declare const portMapping: v.ObjectSchema<{
|
|
89
|
+
export type Information = v.InferOutput<typeof info>;
|
|
90
|
+
export declare const portMapping: v.ObjectSchema<{
|
|
91
91
|
readonly host: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>;
|
|
92
92
|
readonly container: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>;
|
|
93
93
|
readonly proto: v.PicklistSchema<["tcp", "udp"], undefined>;
|
|
94
94
|
}, undefined>;
|
|
95
|
-
type PortMapping = v.InferOutput<typeof portMapping>;
|
|
96
|
-
declare const runMode: v.PicklistSchema<["normal", "development"], undefined>;
|
|
97
|
-
type RunMode = v.InferOutput<typeof runMode>;
|
|
95
|
+
export type PortMapping = v.InferOutput<typeof portMapping>;
|
|
96
|
+
export declare const runMode: v.PicklistSchema<["normal", "development"], undefined>;
|
|
97
|
+
export type RunMode = v.InferOutput<typeof runMode>;
|
|
98
98
|
declare const logLine: v.ObjectSchema<{
|
|
99
99
|
readonly stream: v.PicklistSchema<["stdout", "stderr"], undefined>;
|
|
100
100
|
readonly line: v.StringSchema<undefined>;
|
|
101
101
|
}, undefined>;
|
|
102
|
-
type LogLine = v.InferOutput<typeof logLine>;
|
|
103
|
-
declare const project: v.ObjectSchema<{
|
|
102
|
+
export type LogLine = v.InferOutput<typeof logLine>;
|
|
103
|
+
export declare const project: v.ObjectSchema<{
|
|
104
104
|
readonly name: v.StringSchema<undefined>;
|
|
105
105
|
readonly path: v.StringSchema<undefined>;
|
|
106
106
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -116,8 +116,8 @@ declare const project: v.ObjectSchema<{
|
|
|
116
116
|
readonly mode: v.OptionalSchema<v.PicklistSchema<["normal", "development"], undefined>, undefined>;
|
|
117
117
|
readonly password_set: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
118
118
|
}, undefined>;
|
|
119
|
-
type Project = v.InferOutput<typeof project>;
|
|
120
|
-
declare const projectEvent: v.VariantSchema<"change", [v.ObjectSchema<{
|
|
119
|
+
export type Project = v.InferOutput<typeof project>;
|
|
120
|
+
export declare const projectEvent: v.VariantSchema<"change", [v.ObjectSchema<{
|
|
121
121
|
readonly change: v.LiteralSchema<"state_changed", undefined>;
|
|
122
122
|
readonly id: v.StringSchema<undefined>;
|
|
123
123
|
readonly state: v.PicklistSchema<["created", "started", "stopped", "removed", "error"], undefined>;
|
|
@@ -130,7 +130,7 @@ declare const projectEvent: v.VariantSchema<"change", [v.ObjectSchema<{
|
|
|
130
130
|
readonly id: v.StringSchema<undefined>;
|
|
131
131
|
readonly is_default: v.BooleanSchema<undefined>;
|
|
132
132
|
}, undefined>], undefined>;
|
|
133
|
-
type ProjectEvent = v.InferOutput<typeof projectEvent>;
|
|
133
|
+
export type ProjectEvent = v.InferOutput<typeof projectEvent>;
|
|
134
134
|
declare const projectPatch: Omit<Omit<v.ObjectSchema<{
|
|
135
135
|
readonly name: v.StringSchema<undefined>;
|
|
136
136
|
readonly path: v.StringSchema<undefined>;
|
|
@@ -146,7 +146,7 @@ declare const projectPatch: Omit<Omit<v.ObjectSchema<{
|
|
|
146
146
|
readonly state: v.PicklistSchema<["idle", "running", "error"], undefined>;
|
|
147
147
|
readonly mode: v.OptionalSchema<v.PicklistSchema<["normal", "development"], undefined>, undefined>;
|
|
148
148
|
readonly password_set: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
149
|
-
}, undefined>, "
|
|
149
|
+
}, undefined>, "entries" | "~run" | "~standard" | "~types"> & {
|
|
150
150
|
readonly entries: Pick<{
|
|
151
151
|
readonly name: v.StringSchema<undefined>;
|
|
152
152
|
readonly path: v.StringSchema<undefined>;
|
|
@@ -162,7 +162,7 @@ declare const projectPatch: Omit<Omit<v.ObjectSchema<{
|
|
|
162
162
|
readonly state: v.PicklistSchema<["idle", "running", "error"], undefined>;
|
|
163
163
|
readonly mode: v.OptionalSchema<v.PicklistSchema<["normal", "development"], undefined>, undefined>;
|
|
164
164
|
readonly password_set: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
165
|
-
}, "
|
|
165
|
+
}, "command" | "is_default" | "name">;
|
|
166
166
|
readonly "~standard": v.StandardProps<{
|
|
167
167
|
name: string;
|
|
168
168
|
is_default: boolean;
|
|
@@ -176,7 +176,7 @@ declare const projectPatch: Omit<Omit<v.ObjectSchema<{
|
|
|
176
176
|
name: string;
|
|
177
177
|
is_default: boolean;
|
|
178
178
|
command: string;
|
|
179
|
-
}, v.BooleanIssue | v.
|
|
179
|
+
}, v.BooleanIssue | v.ObjectIssue | v.StringIssue>;
|
|
180
180
|
readonly "~types"?: {
|
|
181
181
|
readonly input: {
|
|
182
182
|
name: string;
|
|
@@ -188,9 +188,9 @@ declare const projectPatch: Omit<Omit<v.ObjectSchema<{
|
|
|
188
188
|
is_default: boolean;
|
|
189
189
|
command: string;
|
|
190
190
|
};
|
|
191
|
-
readonly issue: v.BooleanIssue | v.
|
|
191
|
+
readonly issue: v.BooleanIssue | v.ObjectIssue | v.StringIssue;
|
|
192
192
|
} | undefined;
|
|
193
|
-
}, "
|
|
193
|
+
}, "entries" | "~run" | "~standard" | "~types"> & {
|
|
194
194
|
readonly entries: {
|
|
195
195
|
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
196
196
|
readonly is_default: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -209,7 +209,7 @@ declare const projectPatch: Omit<Omit<v.ObjectSchema<{
|
|
|
209
209
|
name?: string | undefined;
|
|
210
210
|
is_default?: boolean | undefined;
|
|
211
211
|
command?: string | undefined;
|
|
212
|
-
}, v.BooleanIssue | v.
|
|
212
|
+
}, v.BooleanIssue | v.ObjectIssue | v.StringIssue>;
|
|
213
213
|
readonly "~types"?: {
|
|
214
214
|
readonly input: {
|
|
215
215
|
name?: string | undefined;
|
|
@@ -221,48 +221,48 @@ declare const projectPatch: Omit<Omit<v.ObjectSchema<{
|
|
|
221
221
|
is_default?: boolean | undefined;
|
|
222
222
|
command?: string | undefined;
|
|
223
223
|
};
|
|
224
|
-
readonly issue: v.BooleanIssue | v.
|
|
224
|
+
readonly issue: v.BooleanIssue | v.ObjectIssue | v.StringIssue;
|
|
225
225
|
} | undefined;
|
|
226
226
|
};
|
|
227
|
-
type ProjectPatch = v.InferOutput<typeof projectPatch>;
|
|
227
|
+
export type ProjectPatch = v.InferOutput<typeof projectPatch>;
|
|
228
228
|
declare const projectTemplate: v.PicklistSchema<["nodejs", "python"], undefined>;
|
|
229
|
-
type ProjectTemplate = v.InferOutput<typeof projectTemplate>;
|
|
229
|
+
export type ProjectTemplate = v.InferOutput<typeof projectTemplate>;
|
|
230
230
|
declare const createProject: v.ObjectSchema<{
|
|
231
231
|
readonly name: v.StringSchema<undefined>;
|
|
232
232
|
readonly template: v.PicklistSchema<["nodejs", "python"], undefined>;
|
|
233
233
|
readonly command: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
234
234
|
}, undefined>;
|
|
235
|
-
type CreateProject = v.InferOutput<typeof createProject>;
|
|
235
|
+
export type CreateProject = v.InferOutput<typeof createProject>;
|
|
236
236
|
declare const bundleInfo: v.ObjectSchema<{
|
|
237
237
|
readonly bundle: v.StringSchema<undefined>;
|
|
238
238
|
readonly version: v.StringSchema<undefined>;
|
|
239
239
|
readonly compatible: v.StringSchema<undefined>;
|
|
240
240
|
readonly description: v.StringSchema<undefined>;
|
|
241
241
|
}, undefined>;
|
|
242
|
-
type BundleInfo = v.InferOutput<typeof bundleInfo>;
|
|
242
|
+
export type BundleInfo = v.InferOutput<typeof bundleInfo>;
|
|
243
243
|
declare const installResponse: v.ObjectSchema<{
|
|
244
244
|
readonly message: v.StringSchema<undefined>;
|
|
245
245
|
readonly bundle: v.StringSchema<undefined>;
|
|
246
246
|
}, undefined>;
|
|
247
|
-
type InstallResponse = v.InferOutput<typeof installResponse>;
|
|
248
|
-
declare const updateStatus: v.ObjectSchema<{
|
|
247
|
+
export type InstallResponse = v.InferOutput<typeof installResponse>;
|
|
248
|
+
export declare const updateStatus: v.ObjectSchema<{
|
|
249
249
|
readonly state: v.PicklistSchema<["idle", "installing", "failed"], undefined>;
|
|
250
250
|
readonly progress: v.NumberSchema<undefined>;
|
|
251
251
|
readonly message: v.StringSchema<undefined>;
|
|
252
252
|
readonly error: v.StringSchema<undefined>;
|
|
253
253
|
readonly boot: v.OptionalSchema<v.PicklistSchema<["confirmed", "pending", "unknown"], undefined>, undefined>;
|
|
254
254
|
}, undefined>;
|
|
255
|
-
type UpdateStatus = v.InferOutput<typeof updateStatus>;
|
|
255
|
+
export type UpdateStatus = v.InferOutput<typeof updateStatus>;
|
|
256
256
|
declare const rebootResponse: v.ObjectSchema<{
|
|
257
257
|
readonly message: v.StringSchema<undefined>;
|
|
258
258
|
}, undefined>;
|
|
259
|
-
type RebootResponse = v.InferOutput<typeof rebootResponse>;
|
|
259
|
+
export type RebootResponse = v.InferOutput<typeof rebootResponse>;
|
|
260
260
|
declare const calibrationPoint: v.ObjectSchema<{
|
|
261
261
|
readonly set: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
262
262
|
readonly measured: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
263
263
|
readonly reading: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, undefined>;
|
|
264
264
|
}, undefined>;
|
|
265
|
-
type CalibrationPoint = v.InferOutput<typeof calibrationPoint>;
|
|
265
|
+
export type CalibrationPoint = v.InferOutput<typeof calibrationPoint>;
|
|
266
266
|
declare const channelCalibration: v.ObjectSchema<{
|
|
267
267
|
readonly channel: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 31, undefined>]>;
|
|
268
268
|
readonly points: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -273,7 +273,7 @@ declare const channelCalibration: v.ObjectSchema<{
|
|
|
273
273
|
readonly max_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
274
274
|
readonly avg_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
275
275
|
}, undefined>;
|
|
276
|
-
type ChannelCalibration = v.InferOutput<typeof channelCalibration>;
|
|
276
|
+
export type ChannelCalibration = v.InferOutput<typeof channelCalibration>;
|
|
277
277
|
declare const dutPsuCalibration: v.ObjectSchema<{
|
|
278
278
|
readonly voltage: v.ObjectSchema<{
|
|
279
279
|
readonly points: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -295,7 +295,7 @@ declare const dutPsuCalibration: v.ObjectSchema<{
|
|
|
295
295
|
readonly avg_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
296
296
|
}, undefined>;
|
|
297
297
|
}, undefined>;
|
|
298
|
-
type DutPsuCalibration = v.InferOutput<typeof dutPsuCalibration>;
|
|
298
|
+
export type DutPsuCalibration = v.InferOutput<typeof dutPsuCalibration>;
|
|
299
299
|
declare const currentTestResult: v.ObjectSchema<{
|
|
300
300
|
readonly load_ohms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>, v.MinValueAction<number, number, undefined>]>;
|
|
301
301
|
readonly voltage_applied: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
@@ -304,7 +304,7 @@ declare const currentTestResult: v.ObjectSchema<{
|
|
|
304
304
|
readonly error_percent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
305
305
|
}, undefined>;
|
|
306
306
|
/** @deprecated See {@link currentTestResult}. */
|
|
307
|
-
type CurrentTestResult = v.InferOutput<typeof currentTestResult>;
|
|
307
|
+
export type CurrentTestResult = v.InferOutput<typeof currentTestResult>;
|
|
308
308
|
declare const relayTestResult: v.ObjectSchema<{
|
|
309
309
|
readonly relay: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 7, undefined>]>;
|
|
310
310
|
readonly status: v.PicklistSchema<["pass", "fail"], undefined>;
|
|
@@ -322,7 +322,7 @@ declare const relayTestResult: v.ObjectSchema<{
|
|
|
322
322
|
readonly avg_error: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
323
323
|
}, undefined>, undefined>;
|
|
324
324
|
}, undefined>;
|
|
325
|
-
type RelayTestResult = v.InferOutput<typeof relayTestResult>;
|
|
325
|
+
export type RelayTestResult = v.InferOutput<typeof relayTestResult>;
|
|
326
326
|
declare const usbTestResult: v.ObjectSchema<{
|
|
327
327
|
readonly port: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
328
328
|
readonly status: v.PicklistSchema<["pass", "fail"], undefined>;
|
|
@@ -336,8 +336,8 @@ declare const usbTestResult: v.ObjectSchema<{
|
|
|
336
336
|
readonly error_percent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>;
|
|
337
337
|
}, undefined>, undefined>, undefined>;
|
|
338
338
|
}, undefined>;
|
|
339
|
-
type UsbTestResult = v.InferOutput<typeof usbTestResult>;
|
|
340
|
-
declare const calibrationData: v.ObjectSchema<{
|
|
339
|
+
export type UsbTestResult = v.InferOutput<typeof usbTestResult>;
|
|
340
|
+
export declare const calibrationData: v.ObjectSchema<{
|
|
341
341
|
readonly schema_version: v.LiteralSchema<1, undefined>;
|
|
342
342
|
readonly tool_version: v.StringSchema<undefined>;
|
|
343
343
|
readonly device_id: v.StringSchema<undefined>;
|
|
@@ -425,16 +425,16 @@ declare const calibrationData: v.ObjectSchema<{
|
|
|
425
425
|
}, undefined>, undefined>, undefined>;
|
|
426
426
|
}, undefined>, undefined>;
|
|
427
427
|
}, undefined>;
|
|
428
|
-
type CalibrationData = v.InferOutput<typeof calibrationData>;
|
|
429
|
-
declare const calibrationState: v.ObjectSchema<{
|
|
428
|
+
export type CalibrationData = v.InferOutput<typeof calibrationData>;
|
|
429
|
+
export declare const calibrationState: v.ObjectSchema<{
|
|
430
430
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
431
431
|
readonly loaded: v.BooleanSchema<undefined>;
|
|
432
432
|
readonly last_error: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
433
433
|
readonly calibrated_at: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
434
434
|
}, undefined>;
|
|
435
|
-
type CalibrationState = v.InferOutput<typeof calibrationState>;
|
|
435
|
+
export type CalibrationState = v.InferOutput<typeof calibrationState>;
|
|
436
436
|
/** @hideconstructor */
|
|
437
|
-
declare class ManagementApi {
|
|
437
|
+
export declare class ManagementApi {
|
|
438
438
|
private readonly fetch;
|
|
439
439
|
private readonly host;
|
|
440
440
|
constructor(fetch: UpFetch, host: string);
|
|
@@ -474,7 +474,7 @@ declare class ManagementApi {
|
|
|
474
474
|
on_resistance: number;
|
|
475
475
|
};
|
|
476
476
|
usb_ports: {
|
|
477
|
-
type: "
|
|
477
|
+
type: "2.0" | "3.0";
|
|
478
478
|
count: number;
|
|
479
479
|
}[];
|
|
480
480
|
ethernet: {
|
|
@@ -496,7 +496,7 @@ declare class ManagementApi {
|
|
|
496
496
|
};
|
|
497
497
|
};
|
|
498
498
|
current_measurement: {
|
|
499
|
-
type: "
|
|
499
|
+
type: "high_precision" | "low_precision";
|
|
500
500
|
source: string;
|
|
501
501
|
resolution: number;
|
|
502
502
|
}[];
|
|
@@ -554,12 +554,12 @@ declare class ManagementApi {
|
|
|
554
554
|
*
|
|
555
555
|
* @param datetime The date and time to set.
|
|
556
556
|
*/
|
|
557
|
-
|
|
557
|
+
set_datetime(datetime: Date): Promise<void>;
|
|
558
558
|
/**
|
|
559
559
|
* Gets a list of all projects.
|
|
560
560
|
* @returns An array of projects.
|
|
561
561
|
*/
|
|
562
|
-
|
|
562
|
+
get_projects(): Promise<{
|
|
563
563
|
name: string;
|
|
564
564
|
path: string;
|
|
565
565
|
id: string;
|
|
@@ -572,20 +572,20 @@ declare class ManagementApi {
|
|
|
572
572
|
}[];
|
|
573
573
|
command: string;
|
|
574
574
|
state: "error" | "idle" | "running";
|
|
575
|
-
mode?: "
|
|
575
|
+
mode?: "development" | "normal" | undefined;
|
|
576
576
|
password_set?: boolean | undefined;
|
|
577
577
|
}[]>;
|
|
578
578
|
/**
|
|
579
579
|
* Lists the AT1000 base images present on the device.
|
|
580
580
|
* @returns Repo tags of on-device base images (e.g. "localhost/at1000-base:latest").
|
|
581
581
|
*/
|
|
582
|
-
|
|
582
|
+
list_images(): Promise<string[]>;
|
|
583
583
|
/**
|
|
584
584
|
* Gets a single project by id.
|
|
585
585
|
* @param projectId The project slug id.
|
|
586
586
|
* @returns The project info.
|
|
587
587
|
*/
|
|
588
|
-
|
|
588
|
+
get_project(projectId: string): Promise<{
|
|
589
589
|
name: string;
|
|
590
590
|
path: string;
|
|
591
591
|
id: string;
|
|
@@ -598,14 +598,14 @@ declare class ManagementApi {
|
|
|
598
598
|
}[];
|
|
599
599
|
command: string;
|
|
600
600
|
state: "error" | "idle" | "running";
|
|
601
|
-
mode?: "
|
|
601
|
+
mode?: "development" | "normal" | undefined;
|
|
602
602
|
password_set?: boolean | undefined;
|
|
603
603
|
}>;
|
|
604
604
|
/**
|
|
605
605
|
* Creates a new project from a preinstalled template.
|
|
606
606
|
* @param newProject The project creation data.
|
|
607
607
|
*/
|
|
608
|
-
|
|
608
|
+
create_project(newProject: CreateProject): Promise<{
|
|
609
609
|
name: string;
|
|
610
610
|
path: string;
|
|
611
611
|
id: string;
|
|
@@ -618,16 +618,19 @@ declare class ManagementApi {
|
|
|
618
618
|
}[];
|
|
619
619
|
command: string;
|
|
620
620
|
state: "error" | "idle" | "running";
|
|
621
|
-
mode?: "
|
|
621
|
+
mode?: "development" | "normal" | undefined;
|
|
622
622
|
password_set?: boolean | undefined;
|
|
623
623
|
}>;
|
|
624
624
|
/**
|
|
625
|
-
* Imports a project from a container image archive (.tar / .tar.gz).
|
|
625
|
+
* Imports a project from a container image archive (.tar / .tar.gz). The archive streams
|
|
626
|
+
* straight to the device, so pass a lazily file-backed Blob (`await fs.openAsBlob(path)` on
|
|
627
|
+
* Node, a `File` from an input element in the browser): `new Blob([await readFile(path)])`
|
|
628
|
+
* buffers the whole archive in the caller's heap.
|
|
626
629
|
* @param file The image archive to import.
|
|
627
630
|
* @param name The project name (sent percent-encoded; the server decodes it).
|
|
628
631
|
* @returns The created project.
|
|
629
632
|
*/
|
|
630
|
-
|
|
633
|
+
import_project(file: Blob, name: string): Promise<{
|
|
631
634
|
name: string;
|
|
632
635
|
path: string;
|
|
633
636
|
id: string;
|
|
@@ -640,7 +643,7 @@ declare class ManagementApi {
|
|
|
640
643
|
}[];
|
|
641
644
|
command: string;
|
|
642
645
|
state: "error" | "idle" | "running";
|
|
643
|
-
mode?: "
|
|
646
|
+
mode?: "development" | "normal" | undefined;
|
|
644
647
|
password_set?: boolean | undefined;
|
|
645
648
|
}>;
|
|
646
649
|
/**
|
|
@@ -648,7 +651,7 @@ declare class ManagementApi {
|
|
|
648
651
|
* @param projectId The project slug id.
|
|
649
652
|
* @param data The data to patch the project with.
|
|
650
653
|
*/
|
|
651
|
-
|
|
654
|
+
update_project(projectId: string, data: ProjectPatch): Promise<{
|
|
652
655
|
name: string;
|
|
653
656
|
path: string;
|
|
654
657
|
id: string;
|
|
@@ -661,7 +664,7 @@ declare class ManagementApi {
|
|
|
661
664
|
}[];
|
|
662
665
|
command: string;
|
|
663
666
|
state: "error" | "idle" | "running";
|
|
664
|
-
mode?: "
|
|
667
|
+
mode?: "development" | "normal" | undefined;
|
|
665
668
|
password_set?: boolean | undefined;
|
|
666
669
|
}>;
|
|
667
670
|
/**
|
|
@@ -669,18 +672,18 @@ declare class ManagementApi {
|
|
|
669
672
|
* @param projectId The project slug id.
|
|
670
673
|
* @param mode The run mode: 'normal' (default) or 'development' (starts sshd).
|
|
671
674
|
*/
|
|
672
|
-
|
|
675
|
+
run_project(projectId: string, mode?: RunMode): Promise<any>;
|
|
673
676
|
/**
|
|
674
677
|
* Stops a running project.
|
|
675
678
|
* @param projectId The project slug id.
|
|
676
679
|
*/
|
|
677
|
-
|
|
680
|
+
stop_project(projectId: string): Promise<any>;
|
|
678
681
|
/**
|
|
679
682
|
* Gets the port mappings for a project.
|
|
680
683
|
* @param projectId The project slug id.
|
|
681
684
|
* @returns The project's port mappings.
|
|
682
685
|
*/
|
|
683
|
-
|
|
686
|
+
get_project_ports(projectId: string): Promise<{
|
|
684
687
|
host: number;
|
|
685
688
|
container: number;
|
|
686
689
|
proto: "tcp" | "udp";
|
|
@@ -691,7 +694,7 @@ declare class ManagementApi {
|
|
|
691
694
|
* @param ports The complete list of port mappings.
|
|
692
695
|
* @returns The updated port mappings.
|
|
693
696
|
*/
|
|
694
|
-
|
|
697
|
+
set_project_ports(projectId: string, ports: PortMapping[]): Promise<{
|
|
695
698
|
host: number;
|
|
696
699
|
container: number;
|
|
697
700
|
proto: "tcp" | "udp";
|
|
@@ -702,7 +705,7 @@ declare class ManagementApi {
|
|
|
702
705
|
* @param mapping The port mapping to add.
|
|
703
706
|
* @returns The updated port mappings.
|
|
704
707
|
*/
|
|
705
|
-
|
|
708
|
+
add_project_port(projectId: string, mapping: PortMapping): Promise<{
|
|
706
709
|
host: number;
|
|
707
710
|
container: number;
|
|
708
711
|
proto: "tcp" | "udp";
|
|
@@ -712,35 +715,38 @@ declare class ManagementApi {
|
|
|
712
715
|
* @param projectId The project slug id.
|
|
713
716
|
* @param hostPort The host port to unmap.
|
|
714
717
|
*/
|
|
715
|
-
|
|
718
|
+
delete_project_port(projectId: string, hostPort: number): Promise<void>;
|
|
716
719
|
/**
|
|
717
720
|
* Sets the password of the project's dev user (used for SSH password login in
|
|
718
721
|
* development mode).
|
|
719
722
|
* @param projectId The project slug id.
|
|
720
723
|
* @param password The new password.
|
|
721
724
|
*/
|
|
722
|
-
|
|
725
|
+
set_project_password(projectId: string, password: string): Promise<void>;
|
|
723
726
|
/**
|
|
724
727
|
* Gets the SSH authorized_keys for the project's dev user.
|
|
725
728
|
* @param projectId The project slug id.
|
|
726
729
|
* @returns The list of authorized public keys.
|
|
727
730
|
*/
|
|
728
|
-
|
|
731
|
+
get_project_authorized_keys(projectId: string): Promise<string[]>;
|
|
729
732
|
/**
|
|
730
733
|
* Replaces the SSH authorized_keys for the project's dev user.
|
|
731
734
|
* @param projectId The project slug id.
|
|
732
735
|
* @param keys The complete list of authorized public keys.
|
|
733
736
|
* @returns The updated list of authorized public keys.
|
|
734
737
|
*/
|
|
735
|
-
|
|
738
|
+
set_project_authorized_keys(projectId: string, keys: string[]): Promise<string[]>;
|
|
736
739
|
/**
|
|
737
740
|
* Deletes a project.
|
|
738
741
|
* @param projectId The project slug id.
|
|
739
742
|
*/
|
|
740
|
-
|
|
743
|
+
delete_project(projectId: string): Promise<any>;
|
|
741
744
|
/**
|
|
742
745
|
* Uploads a firmware bundle to the device and inspects it.
|
|
743
|
-
* The bundle is staged for installation but not installed yet.
|
|
746
|
+
* The bundle is staged for installation but not installed yet. The body streams straight to
|
|
747
|
+
* the device, so pass a lazily file-backed Blob (`await fs.openAsBlob(path)` on Node, a `File`
|
|
748
|
+
* from an input element in the browser): `new Blob([await readFile(path)])` buffers the whole
|
|
749
|
+
* bundle in the caller's heap.
|
|
744
750
|
* @param file The firmware bundle file (.raucb).
|
|
745
751
|
* @param filename Optional filename for the bundle. Defaults to 'bundle.raucb'.
|
|
746
752
|
* @returns Bundle metadata including version information.
|
|
@@ -774,7 +780,7 @@ declare class ManagementApi {
|
|
|
774
780
|
* @returns The update status including state, progress, message and error.
|
|
775
781
|
*/
|
|
776
782
|
update_status(): Promise<{
|
|
777
|
-
state: "
|
|
783
|
+
state: "failed" | "idle" | "installing";
|
|
778
784
|
progress: number;
|
|
779
785
|
message: string;
|
|
780
786
|
error: string;
|
|
@@ -799,10 +805,10 @@ declare class ManagementApi {
|
|
|
799
805
|
* @param options.tail Max number of trailing lines (default 1000, clamped 1..10000).
|
|
800
806
|
* @returns The current run's log lines, in order.
|
|
801
807
|
*/
|
|
802
|
-
|
|
808
|
+
get_project_logs(projectId: string, options?: {
|
|
803
809
|
tail?: number;
|
|
804
810
|
}): Promise<{
|
|
805
|
-
stream: "
|
|
811
|
+
stream: "stderr" | "stdout";
|
|
806
812
|
line: string;
|
|
807
813
|
}[]>;
|
|
808
814
|
/**
|
|
@@ -818,7 +824,7 @@ declare class ManagementApi {
|
|
|
818
824
|
* @param options.tail Max number of trailing lines (default 1000, clamped 1..10000).
|
|
819
825
|
* @returns A handle whose `close()` aborts the stream.
|
|
820
826
|
*/
|
|
821
|
-
|
|
827
|
+
stream_project_logs(projectId: string, handlers: {
|
|
822
828
|
onLine: (line: LogLine) => void;
|
|
823
829
|
onEnd?: () => void;
|
|
824
830
|
onError?: (err: unknown) => void;
|
|
@@ -829,5 +835,4 @@ declare class ManagementApi {
|
|
|
829
835
|
};
|
|
830
836
|
}
|
|
831
837
|
//#endregion
|
|
832
|
-
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 };
|
|
833
838
|
//# sourceMappingURL=management.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"management.d.cts","names":[],"sources":["../src/api/management.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"management.d.cts","names":[],"sources":["../src/api/management.ts"],"mappings":";;;oBAMY;EACV;EACA;EACA;EACA;EACA;EACA;;cAiFI,MAAI,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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