@ikalogic/at1000 0.6.0 → 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-BGZGhgco.mjs → at1000-Bav5xUM1.mjs} +3 -3
- package/build/{at1000-BGZGhgco.mjs.map → at1000-Bav5xUM1.mjs.map} +1 -1
- package/build/{at1000-D9r6GCs0.cjs → at1000-DjoKZEha.cjs} +3 -3
- package/build/at1000-DjoKZEha.cjs.map +1 -0
- package/build/browser.cjs +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/{com-XQjoTBdU.d.cts → com-Bkkgrsep.d.cts} +177 -177
- package/build/{com-XQjoTBdU.d.cts.map → com-Bkkgrsep.d.cts.map} +1 -1
- package/build/{com-XQjoTBdU.d.mts → com-Bkkgrsep.d.mts} +177 -177
- package/build/{com-XQjoTBdU.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/{host-DJ8SAGMC.d.mts → host-BBjSKRqs.d.mts} +6 -6
- package/build/host-BBjSKRqs.d.mts.map +1 -0
- package/build/{host-BCOEcUog.d.cts → host-DlP73amZ.d.cts} +6 -6
- package/build/host-DlP73amZ.d.cts.map +1 -0
- package/build/{management-BGrPAG5k.cjs → management-DqBsC1HB.cjs} +2 -2
- package/build/management-DqBsC1HB.cjs.map +1 -0
- package/build/{management-CuI4cenF.mjs → management-StKcAkgo.mjs} +2 -2
- package/build/management-StKcAkgo.mjs.map +1 -0
- package/build/management.cjs +1 -1
- package/build/management.d.cts +81 -82
- package/build/management.d.cts.map +1 -1
- package/build/management.d.mts +81 -82
- 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-DDLRsahz.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.d.cts +1 -1
- package/build/power.d.mts +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-D9r6GCs0.cjs.map +0 -1
- package/build/events-Cf7iAMZP.d.cts.map +0 -1
- package/build/events-Cf7iAMZP.d.mts.map +0 -1
- package/build/gpio-Bk1VEKYF.d.cts +0 -416
- package/build/gpio-Bk1VEKYF.d.cts.map +0 -1
- package/build/gpio-bFe112uI.d.mts +0 -416
- package/build/gpio-bFe112uI.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/host-BCOEcUog.d.cts.map +0 -1
- package/build/host-DJ8SAGMC.d.mts.map +0 -1
- package/build/management-BGrPAG5k.cjs.map +0 -1
- package/build/management-CuI4cenF.mjs.map +0 -1
- package/build/package-CXtuh0C5.mjs +0 -2
- package/build/package-CXtuh0C5.mjs.map +0 -1
- package/build/package-DDLRsahz.cjs.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",
|
|
@@ -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,107 +162,107 @@ 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
|
-
}, "command" | "
|
|
165
|
+
}, "command" | "is_default" | "name">;
|
|
166
166
|
readonly "~standard": v.StandardProps<{
|
|
167
|
-
command?: string | undefined;
|
|
168
167
|
name: string;
|
|
169
168
|
is_default: boolean;
|
|
169
|
+
command?: string | undefined;
|
|
170
170
|
}, {
|
|
171
|
-
command: string;
|
|
172
171
|
name: string;
|
|
173
172
|
is_default: boolean;
|
|
173
|
+
command: string;
|
|
174
174
|
}>;
|
|
175
175
|
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
176
|
-
command: string;
|
|
177
176
|
name: string;
|
|
178
177
|
is_default: boolean;
|
|
179
|
-
|
|
178
|
+
command: string;
|
|
179
|
+
}, v.BooleanIssue | v.ObjectIssue | v.StringIssue>;
|
|
180
180
|
readonly "~types"?: {
|
|
181
181
|
readonly input: {
|
|
182
|
-
command?: string | undefined;
|
|
183
182
|
name: string;
|
|
184
183
|
is_default: boolean;
|
|
184
|
+
command?: string | undefined;
|
|
185
185
|
};
|
|
186
186
|
readonly output: {
|
|
187
|
-
command: string;
|
|
188
187
|
name: string;
|
|
189
188
|
is_default: boolean;
|
|
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
|
-
readonly command: v.OptionalSchema<v.OptionalSchema<v.StringSchema<undefined>, "">, undefined>;
|
|
196
195
|
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
197
196
|
readonly is_default: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
197
|
+
readonly command: v.OptionalSchema<v.OptionalSchema<v.StringSchema<undefined>, "">, undefined>;
|
|
198
198
|
};
|
|
199
199
|
readonly "~standard": v.StandardProps<{
|
|
200
|
-
command?: string | undefined;
|
|
201
200
|
name?: string | undefined;
|
|
202
201
|
is_default?: boolean | undefined;
|
|
203
|
-
}, {
|
|
204
202
|
command?: string | undefined;
|
|
203
|
+
}, {
|
|
205
204
|
name?: string | undefined;
|
|
206
205
|
is_default?: boolean | undefined;
|
|
206
|
+
command?: string | undefined;
|
|
207
207
|
}>;
|
|
208
208
|
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
209
|
-
command?: string | undefined;
|
|
210
209
|
name?: string | undefined;
|
|
211
210
|
is_default?: boolean | undefined;
|
|
212
|
-
|
|
211
|
+
command?: string | undefined;
|
|
212
|
+
}, v.BooleanIssue | v.ObjectIssue | v.StringIssue>;
|
|
213
213
|
readonly "~types"?: {
|
|
214
214
|
readonly input: {
|
|
215
|
-
command?: string | undefined;
|
|
216
215
|
name?: string | undefined;
|
|
217
216
|
is_default?: boolean | undefined;
|
|
217
|
+
command?: string | undefined;
|
|
218
218
|
};
|
|
219
219
|
readonly output: {
|
|
220
|
-
command?: string | undefined;
|
|
221
220
|
name?: string | undefined;
|
|
222
221
|
is_default?: boolean | undefined;
|
|
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;
|
|
@@ -571,21 +571,21 @@ declare class ManagementApi {
|
|
|
571
571
|
proto: "tcp" | "udp";
|
|
572
572
|
}[];
|
|
573
573
|
command: string;
|
|
574
|
-
state: "
|
|
575
|
-
mode?: "
|
|
574
|
+
state: "error" | "idle" | "running";
|
|
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;
|
|
@@ -597,15 +597,15 @@ declare class ManagementApi {
|
|
|
597
597
|
proto: "tcp" | "udp";
|
|
598
598
|
}[];
|
|
599
599
|
command: string;
|
|
600
|
-
state: "
|
|
601
|
-
mode?: "
|
|
600
|
+
state: "error" | "idle" | "running";
|
|
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;
|
|
@@ -617,8 +617,8 @@ declare class ManagementApi {
|
|
|
617
617
|
proto: "tcp" | "udp";
|
|
618
618
|
}[];
|
|
619
619
|
command: string;
|
|
620
|
-
state: "
|
|
621
|
-
mode?: "
|
|
620
|
+
state: "error" | "idle" | "running";
|
|
621
|
+
mode?: "development" | "normal" | undefined;
|
|
622
622
|
password_set?: boolean | undefined;
|
|
623
623
|
}>;
|
|
624
624
|
/**
|
|
@@ -630,7 +630,7 @@ declare class ManagementApi {
|
|
|
630
630
|
* @param name The project name (sent percent-encoded; the server decodes it).
|
|
631
631
|
* @returns The created project.
|
|
632
632
|
*/
|
|
633
|
-
|
|
633
|
+
import_project(file: Blob, name: string): Promise<{
|
|
634
634
|
name: string;
|
|
635
635
|
path: string;
|
|
636
636
|
id: string;
|
|
@@ -642,8 +642,8 @@ declare class ManagementApi {
|
|
|
642
642
|
proto: "tcp" | "udp";
|
|
643
643
|
}[];
|
|
644
644
|
command: string;
|
|
645
|
-
state: "
|
|
646
|
-
mode?: "
|
|
645
|
+
state: "error" | "idle" | "running";
|
|
646
|
+
mode?: "development" | "normal" | undefined;
|
|
647
647
|
password_set?: boolean | undefined;
|
|
648
648
|
}>;
|
|
649
649
|
/**
|
|
@@ -651,7 +651,7 @@ declare class ManagementApi {
|
|
|
651
651
|
* @param projectId The project slug id.
|
|
652
652
|
* @param data The data to patch the project with.
|
|
653
653
|
*/
|
|
654
|
-
|
|
654
|
+
update_project(projectId: string, data: ProjectPatch): Promise<{
|
|
655
655
|
name: string;
|
|
656
656
|
path: string;
|
|
657
657
|
id: string;
|
|
@@ -663,8 +663,8 @@ declare class ManagementApi {
|
|
|
663
663
|
proto: "tcp" | "udp";
|
|
664
664
|
}[];
|
|
665
665
|
command: string;
|
|
666
|
-
state: "
|
|
667
|
-
mode?: "
|
|
666
|
+
state: "error" | "idle" | "running";
|
|
667
|
+
mode?: "development" | "normal" | undefined;
|
|
668
668
|
password_set?: boolean | undefined;
|
|
669
669
|
}>;
|
|
670
670
|
/**
|
|
@@ -672,18 +672,18 @@ declare class ManagementApi {
|
|
|
672
672
|
* @param projectId The project slug id.
|
|
673
673
|
* @param mode The run mode: 'normal' (default) or 'development' (starts sshd).
|
|
674
674
|
*/
|
|
675
|
-
|
|
675
|
+
run_project(projectId: string, mode?: RunMode): Promise<any>;
|
|
676
676
|
/**
|
|
677
677
|
* Stops a running project.
|
|
678
678
|
* @param projectId The project slug id.
|
|
679
679
|
*/
|
|
680
|
-
|
|
680
|
+
stop_project(projectId: string): Promise<any>;
|
|
681
681
|
/**
|
|
682
682
|
* Gets the port mappings for a project.
|
|
683
683
|
* @param projectId The project slug id.
|
|
684
684
|
* @returns The project's port mappings.
|
|
685
685
|
*/
|
|
686
|
-
|
|
686
|
+
get_project_ports(projectId: string): Promise<{
|
|
687
687
|
host: number;
|
|
688
688
|
container: number;
|
|
689
689
|
proto: "tcp" | "udp";
|
|
@@ -694,7 +694,7 @@ declare class ManagementApi {
|
|
|
694
694
|
* @param ports The complete list of port mappings.
|
|
695
695
|
* @returns The updated port mappings.
|
|
696
696
|
*/
|
|
697
|
-
|
|
697
|
+
set_project_ports(projectId: string, ports: PortMapping[]): Promise<{
|
|
698
698
|
host: number;
|
|
699
699
|
container: number;
|
|
700
700
|
proto: "tcp" | "udp";
|
|
@@ -705,7 +705,7 @@ declare class ManagementApi {
|
|
|
705
705
|
* @param mapping The port mapping to add.
|
|
706
706
|
* @returns The updated port mappings.
|
|
707
707
|
*/
|
|
708
|
-
|
|
708
|
+
add_project_port(projectId: string, mapping: PortMapping): Promise<{
|
|
709
709
|
host: number;
|
|
710
710
|
container: number;
|
|
711
711
|
proto: "tcp" | "udp";
|
|
@@ -715,32 +715,32 @@ declare class ManagementApi {
|
|
|
715
715
|
* @param projectId The project slug id.
|
|
716
716
|
* @param hostPort The host port to unmap.
|
|
717
717
|
*/
|
|
718
|
-
|
|
718
|
+
delete_project_port(projectId: string, hostPort: number): Promise<void>;
|
|
719
719
|
/**
|
|
720
720
|
* Sets the password of the project's dev user (used for SSH password login in
|
|
721
721
|
* development mode).
|
|
722
722
|
* @param projectId The project slug id.
|
|
723
723
|
* @param password The new password.
|
|
724
724
|
*/
|
|
725
|
-
|
|
725
|
+
set_project_password(projectId: string, password: string): Promise<void>;
|
|
726
726
|
/**
|
|
727
727
|
* Gets the SSH authorized_keys for the project's dev user.
|
|
728
728
|
* @param projectId The project slug id.
|
|
729
729
|
* @returns The list of authorized public keys.
|
|
730
730
|
*/
|
|
731
|
-
|
|
731
|
+
get_project_authorized_keys(projectId: string): Promise<string[]>;
|
|
732
732
|
/**
|
|
733
733
|
* Replaces the SSH authorized_keys for the project's dev user.
|
|
734
734
|
* @param projectId The project slug id.
|
|
735
735
|
* @param keys The complete list of authorized public keys.
|
|
736
736
|
* @returns The updated list of authorized public keys.
|
|
737
737
|
*/
|
|
738
|
-
|
|
738
|
+
set_project_authorized_keys(projectId: string, keys: string[]): Promise<string[]>;
|
|
739
739
|
/**
|
|
740
740
|
* Deletes a project.
|
|
741
741
|
* @param projectId The project slug id.
|
|
742
742
|
*/
|
|
743
|
-
|
|
743
|
+
delete_project(projectId: string): Promise<any>;
|
|
744
744
|
/**
|
|
745
745
|
* Uploads a firmware bundle to the device and inspects it.
|
|
746
746
|
* The bundle is staged for installation but not installed yet. The body streams straight to
|
|
@@ -780,7 +780,7 @@ declare class ManagementApi {
|
|
|
780
780
|
* @returns The update status including state, progress, message and error.
|
|
781
781
|
*/
|
|
782
782
|
update_status(): Promise<{
|
|
783
|
-
state: "
|
|
783
|
+
state: "failed" | "idle" | "installing";
|
|
784
784
|
progress: number;
|
|
785
785
|
message: string;
|
|
786
786
|
error: string;
|
|
@@ -805,10 +805,10 @@ declare class ManagementApi {
|
|
|
805
805
|
* @param options.tail Max number of trailing lines (default 1000, clamped 1..10000).
|
|
806
806
|
* @returns The current run's log lines, in order.
|
|
807
807
|
*/
|
|
808
|
-
|
|
808
|
+
get_project_logs(projectId: string, options?: {
|
|
809
809
|
tail?: number;
|
|
810
810
|
}): Promise<{
|
|
811
|
-
stream: "
|
|
811
|
+
stream: "stderr" | "stdout";
|
|
812
812
|
line: string;
|
|
813
813
|
}[]>;
|
|
814
814
|
/**
|
|
@@ -824,7 +824,7 @@ declare class ManagementApi {
|
|
|
824
824
|
* @param options.tail Max number of trailing lines (default 1000, clamped 1..10000).
|
|
825
825
|
* @returns A handle whose `close()` aborts the stream.
|
|
826
826
|
*/
|
|
827
|
-
|
|
827
|
+
stream_project_logs(projectId: string, handlers: {
|
|
828
828
|
onLine: (line: LogLine) => void;
|
|
829
829
|
onEnd?: () => void;
|
|
830
830
|
onError?: (err: unknown) => void;
|
|
@@ -835,5 +835,4 @@ declare class ManagementApi {
|
|
|
835
835
|
};
|
|
836
836
|
}
|
|
837
837
|
//#endregion
|
|
838
|
-
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 };
|
|
839
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAgBE,cAAc,EAAE,mBAAmB;qBAMlC,aAAW,EAAA;;;;;YACZ,cAAc,EAAE,mBAAmB;qBAMlC,SAAO,EAAA;YACR,UAAU,EAAE,mBAAmB;cAErC,SAAO,EAAA;;;;YACD,UAAU,EAAE,mBAAmB;qBAE9B,SAAO,EAAA;;;;;;;;;;;;;;;;YAY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