@camstack/types 1.2.74 → 1.2.76
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/dist/addon.d.ts +19 -18
- package/dist/addon.js +59 -56
- package/dist/addon.mjs +59 -57
- package/dist/capabilities/alerts.cap.d.ts +5 -5
- package/dist/capabilities/battery.cap.d.ts +4 -4
- package/dist/capabilities/custom-model-registry.cap.d.ts +4 -4
- package/dist/capabilities/decoder.cap.d.ts +2 -2
- package/dist/capabilities/face-gallery.cap.d.ts +1 -1
- package/dist/capabilities/index.d.ts +3 -3
- package/dist/capabilities/lawn-mower-control.cap.d.ts +4 -4
- package/dist/capabilities/llm-runtime.cap.d.ts +121 -3
- package/dist/capabilities/llm.cap.d.ts +189 -4
- package/dist/capabilities/metrics-provider.cap.d.ts +2 -2
- package/dist/capabilities/model-convert.cap.d.ts +6 -6
- package/dist/capabilities/model-distributor.cap.d.ts +4 -4
- package/dist/capabilities/notification-output.cap.d.ts +9 -9
- package/dist/capabilities/notification-rules.cap.d.ts +11 -11
- package/dist/capabilities/osd-manager.cap.d.ts +6 -6
- package/dist/capabilities/pipeline-analytics.cap.d.ts +39 -39
- package/dist/capabilities/pipeline-executor.cap.d.ts +7 -7
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +6 -6
- package/dist/capabilities/pipeline-runner.cap.d.ts +2 -0
- package/dist/capabilities/platform-probe.cap.d.ts +2 -2
- package/dist/capabilities/recording.cap.d.ts +3 -3
- package/dist/capabilities/scene-monitor.cap.d.ts +68 -0
- package/dist/capabilities/stream-broker.cap.d.ts +6 -6
- package/dist/device/base-device-provider.d.ts +9 -0
- package/dist/encode-profile.d.ts +2 -2
- package/dist/generated/addon-api.d.ts +7 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +241 -9
- package/dist/index.mjs +236 -10
- package/dist/interfaces/recording-config.d.ts +2 -2
- package/dist/interfaces/stream-broker.d.ts +9 -1
- package/dist/{sleep-CQayd2Su.mjs → sleep-BfRjZ3C3.mjs} +37 -1
- package/dist/{sleep-B-mRsuDp.js → sleep-DslGLq5_.js} +42 -0
- package/dist/types/models.d.ts +7 -7
- package/dist/util/boot-recovery-backoff.d.ts +26 -0
- package/package.json +1 -1
package/dist/addon.d.ts
CHANGED
|
@@ -16,25 +16,26 @@
|
|
|
16
16
|
*
|
|
17
17
|
* See memory: camstack_runner_ram_and_build_rootcause.
|
|
18
18
|
*/
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
19
|
+
export { BaseAddon, normalizeAddonInitResult } from './addon/base-addon.js';
|
|
20
|
+
export { nodePin, readNodePin } from './cap-call-context.js';
|
|
21
|
+
export type { IAdminUiProvider } from './capabilities/admin-ui.cap.js';
|
|
22
|
+
export { adminUiCapability } from './capabilities/admin-ui.cap.js';
|
|
23
|
+
export { expandCapMethods } from './capabilities/capability-definition.js';
|
|
24
|
+
export { deviceOpsCapability } from './capabilities/device-ops.cap.js';
|
|
25
|
+
export type { IViewerUiProvider } from './capabilities/viewer-ui.cap.js';
|
|
26
|
+
export { viewerUiCapability } from './capabilities/viewer-ui.cap.js';
|
|
23
27
|
export { DeviceType } from './device/device-type.js';
|
|
24
|
-
export { emitReadiness } from './interfaces/event-bus.js';
|
|
25
28
|
export { DisposerChain } from './disposer-chain.js';
|
|
26
|
-
export {
|
|
27
|
-
export { DATAPLANE_SECRET_HEADER } from './interfaces/addon-data-plane.js';
|
|
28
|
-
export { expandCapMethods } from './capabilities/capability-definition.js';
|
|
29
|
-
export { nodePin, readNodePin } from './cap-call-context.js';
|
|
30
|
-
export { COLLECTION_ARRAY_METHODS, isCollectionArrayMethodName, } from './generated/collection-array-methods.js';
|
|
31
|
-
export { DEVICE_SCOPED_CAPS, isDeviceScopedCap } from './generated/device-scoped-caps.js';
|
|
29
|
+
export { EventCategory } from './enums/event-category.js';
|
|
32
30
|
export { CAP_INPUT_DEFAULTS, withCapInputDefaults } from './generated/cap-input-defaults.js';
|
|
33
|
-
export {
|
|
31
|
+
export { COLLECTION_ARRAY_METHODS, isCollectionArrayMethodName, } from './generated/collection-array-methods.js';
|
|
34
32
|
export { createDeviceProxy } from './generated/device-proxy.js';
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export
|
|
39
|
-
export
|
|
40
|
-
export
|
|
33
|
+
export { DEVICE_SCOPED_CAPS, isDeviceScopedCap } from './generated/device-scoped-caps.js';
|
|
34
|
+
export type { AddonDeclaration, AddonInitResult, ICamstackAddon, ProviderRegistration, } from './interfaces/addon.js';
|
|
35
|
+
export { DATAPLANE_SECRET_HEADER } from './interfaces/addon-data-plane.js';
|
|
36
|
+
export { emitReadiness } from './interfaces/event-bus.js';
|
|
37
|
+
export { ReadinessRegistry, ReadinessTimeoutError, scopeKey, } from './readiness/readiness-registry.js';
|
|
38
|
+
export { BOOT_RECOVERY_BACKOFF_MS } from './util/boot-recovery-backoff.js';
|
|
39
|
+
export { errMsg } from './utils/err-msg.js';
|
|
40
|
+
export { asJsonObject, asString, parseJsonUnknown } from './utils/json-safe.js';
|
|
41
|
+
export { sleep } from './utils/sleep.js';
|
package/dist/addon.js
CHANGED
|
@@ -1,62 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_event_category = require("./event-category-D3gG7oil.js");
|
|
3
|
-
const require_sleep = require("./sleep-
|
|
3
|
+
const require_sleep = require("./sleep-DslGLq5_.js");
|
|
4
4
|
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
5
|
-
//#region src/generated/collection-array-methods.ts
|
|
6
|
-
/**
|
|
7
|
-
* AUTO-GENERATED by scripts/generate-collection-array-methods.ts — DO NOT EDIT.
|
|
8
|
-
*
|
|
9
|
-
* For every COLLECTION-mode capability, the array-returning (non-subscription)
|
|
10
|
-
* method names the hub fans across providers. The addon-runner uses this to
|
|
11
|
-
* reproduce the hub's graceful "provider skips an unimplemented collection
|
|
12
|
-
* method" behaviour (see child-cap-dispatch) WITHOUT importing the schema
|
|
13
|
-
* barrel (`ALL_CAPABILITY_DEFINITIONS`), which would cost ~144MB RSS per
|
|
14
|
-
* forked runner. See docs/decisions/adr-0028.md.
|
|
15
|
-
*
|
|
16
|
-
* Coverage: 17 collection caps, 30 array methods.
|
|
17
|
-
*/
|
|
18
|
-
var COLLECTION_ARRAY_METHODS = Object.freeze({
|
|
19
|
-
"addon-pages-source": ["listPages"],
|
|
20
|
-
"addon-routes": ["getRoutes"],
|
|
21
|
-
"addon-widgets-source": ["listWidgets"],
|
|
22
|
-
"broker": ["list", "listProviders"],
|
|
23
|
-
"custom-model-registry": ["listModels"],
|
|
24
|
-
"data-store-provider": ["histogram", "query"],
|
|
25
|
-
"device-export": ["listExposedDevices", "listSupportedDeviceKinds"],
|
|
26
|
-
"device-provider": ["discoverDevices", "getDevices"],
|
|
27
|
-
"llm": [
|
|
28
|
-
"getDefaults",
|
|
29
|
-
"getUsage",
|
|
30
|
-
"listModelCatalog",
|
|
31
|
-
"listModels",
|
|
32
|
-
"listNodeModels",
|
|
33
|
-
"listProfileKinds",
|
|
34
|
-
"listProfiles",
|
|
35
|
-
"listRuntimeNodes"
|
|
36
|
-
],
|
|
37
|
-
"log-destination": ["query"],
|
|
38
|
-
"login-method": ["getLoginMethods"],
|
|
39
|
-
"mqtt-broker": ["listBrokers"],
|
|
40
|
-
"network-access": ["listEndpoints"],
|
|
41
|
-
"notification-output": [
|
|
42
|
-
"discoverTargets",
|
|
43
|
-
"listTargetKinds",
|
|
44
|
-
"listTargets"
|
|
45
|
-
],
|
|
46
|
-
"storage-provider": ["list"],
|
|
47
|
-
"turn-provider": ["getTurnServers"],
|
|
48
|
-
"user-passkeys": ["listPasskeys"]
|
|
49
|
-
});
|
|
50
|
-
/**
|
|
51
|
-
* True when `method` on cap `capName` is a COLLECTION cap's array-returning
|
|
52
|
-
* (non-subscription) method — the schema-free runner-side equivalent of
|
|
53
|
-
* `isCollectionArrayMethod(capDefsByName.get(capName), method)`.
|
|
54
|
-
*/
|
|
55
|
-
function isCollectionArrayMethodName(capName, method) {
|
|
56
|
-
const methods = COLLECTION_ARRAY_METHODS[capName];
|
|
57
|
-
return methods !== void 0 && methods.includes(method);
|
|
58
|
-
}
|
|
59
|
-
//#endregion
|
|
60
5
|
//#region src/generated/cap-input-defaults.ts
|
|
61
6
|
/**
|
|
62
7
|
* AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
|
|
@@ -121,6 +66,7 @@ var CAP_INPUT_DEFAULTS = Object.freeze({
|
|
|
121
66
|
"flashAttention": false,
|
|
122
67
|
"mlock": false,
|
|
123
68
|
"noMmap": false,
|
|
69
|
+
"extraArgs": [],
|
|
124
70
|
"autoStart": false,
|
|
125
71
|
"idleStopMinutes": 30
|
|
126
72
|
} } },
|
|
@@ -131,6 +77,7 @@ var CAP_INPUT_DEFAULTS = Object.freeze({
|
|
|
131
77
|
"flashAttention": false,
|
|
132
78
|
"mlock": false,
|
|
133
79
|
"noMmap": false,
|
|
80
|
+
"extraArgs": [],
|
|
134
81
|
"autoStart": false,
|
|
135
82
|
"idleStopMinutes": 30
|
|
136
83
|
} } }
|
|
@@ -353,6 +300,62 @@ function materialise(defaults) {
|
|
|
353
300
|
return out;
|
|
354
301
|
}
|
|
355
302
|
//#endregion
|
|
303
|
+
//#region src/generated/collection-array-methods.ts
|
|
304
|
+
/**
|
|
305
|
+
* AUTO-GENERATED by scripts/generate-collection-array-methods.ts — DO NOT EDIT.
|
|
306
|
+
*
|
|
307
|
+
* For every COLLECTION-mode capability, the array-returning (non-subscription)
|
|
308
|
+
* method names the hub fans across providers. The addon-runner uses this to
|
|
309
|
+
* reproduce the hub's graceful "provider skips an unimplemented collection
|
|
310
|
+
* method" behaviour (see child-cap-dispatch) WITHOUT importing the schema
|
|
311
|
+
* barrel (`ALL_CAPABILITY_DEFINITIONS`), which would cost ~144MB RSS per
|
|
312
|
+
* forked runner. See docs/decisions/adr-0028.md.
|
|
313
|
+
*
|
|
314
|
+
* Coverage: 17 collection caps, 30 array methods.
|
|
315
|
+
*/
|
|
316
|
+
var COLLECTION_ARRAY_METHODS = Object.freeze({
|
|
317
|
+
"addon-pages-source": ["listPages"],
|
|
318
|
+
"addon-routes": ["getRoutes"],
|
|
319
|
+
"addon-widgets-source": ["listWidgets"],
|
|
320
|
+
"broker": ["list", "listProviders"],
|
|
321
|
+
"custom-model-registry": ["listModels"],
|
|
322
|
+
"data-store-provider": ["histogram", "query"],
|
|
323
|
+
"device-export": ["listExposedDevices", "listSupportedDeviceKinds"],
|
|
324
|
+
"device-provider": ["discoverDevices", "getDevices"],
|
|
325
|
+
"llm": [
|
|
326
|
+
"getDefaults",
|
|
327
|
+
"getUsage",
|
|
328
|
+
"listModelCatalog",
|
|
329
|
+
"listModels",
|
|
330
|
+
"listNodeModels",
|
|
331
|
+
"listProfileKinds",
|
|
332
|
+
"listProfiles",
|
|
333
|
+
"listRuntimeNodes"
|
|
334
|
+
],
|
|
335
|
+
"log-destination": ["query"],
|
|
336
|
+
"login-method": ["getLoginMethods"],
|
|
337
|
+
"mqtt-broker": ["listBrokers"],
|
|
338
|
+
"network-access": ["listEndpoints"],
|
|
339
|
+
"notification-output": [
|
|
340
|
+
"discoverTargets",
|
|
341
|
+
"listTargetKinds",
|
|
342
|
+
"listTargets"
|
|
343
|
+
],
|
|
344
|
+
"storage-provider": ["list"],
|
|
345
|
+
"turn-provider": ["getTurnServers"],
|
|
346
|
+
"user-passkeys": ["listPasskeys"]
|
|
347
|
+
});
|
|
348
|
+
/**
|
|
349
|
+
* True when `method` on cap `capName` is a COLLECTION cap's array-returning
|
|
350
|
+
* (non-subscription) method — the schema-free runner-side equivalent of
|
|
351
|
+
* `isCollectionArrayMethod(capDefsByName.get(capName), method)`.
|
|
352
|
+
*/
|
|
353
|
+
function isCollectionArrayMethodName(capName, method) {
|
|
354
|
+
const methods = COLLECTION_ARRAY_METHODS[capName];
|
|
355
|
+
return methods !== void 0 && methods.includes(method);
|
|
356
|
+
}
|
|
357
|
+
//#endregion
|
|
358
|
+
exports.BOOT_RECOVERY_BACKOFF_MS = require_sleep.BOOT_RECOVERY_BACKOFF_MS;
|
|
356
359
|
exports.BaseAddon = require_sleep.BaseAddon;
|
|
357
360
|
exports.CAP_INPUT_DEFAULTS = CAP_INPUT_DEFAULTS;
|
|
358
361
|
exports.COLLECTION_ARRAY_METHODS = COLLECTION_ARRAY_METHODS;
|
package/dist/addon.mjs
CHANGED
|
@@ -1,61 +1,6 @@
|
|
|
1
1
|
import { t as EventCategory } from "./event-category-Bxo5yJjt.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { A as expandCapMethods, B as ReadinessTimeoutError, I as nodePin, L as readNodePin, T as adminUiCapability, U as scopeKey, _t as BaseAddon, a as asJsonObject, b as viewerUiCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, gt as DisposerChain, ht as DATAPLANE_SECRET_HEADER, m as createDeviceProxy, p as isDeviceScopedCap, s as asString, t as sleep, u as parseJsonUnknown, vt as normalizeAddonInitResult, w as DeviceType, xt as emitReadiness, y as deviceOpsCapability, z as ReadinessRegistry } from "./sleep-BfRjZ3C3.mjs";
|
|
3
3
|
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
4
|
-
//#region src/generated/collection-array-methods.ts
|
|
5
|
-
/**
|
|
6
|
-
* AUTO-GENERATED by scripts/generate-collection-array-methods.ts — DO NOT EDIT.
|
|
7
|
-
*
|
|
8
|
-
* For every COLLECTION-mode capability, the array-returning (non-subscription)
|
|
9
|
-
* method names the hub fans across providers. The addon-runner uses this to
|
|
10
|
-
* reproduce the hub's graceful "provider skips an unimplemented collection
|
|
11
|
-
* method" behaviour (see child-cap-dispatch) WITHOUT importing the schema
|
|
12
|
-
* barrel (`ALL_CAPABILITY_DEFINITIONS`), which would cost ~144MB RSS per
|
|
13
|
-
* forked runner. See docs/decisions/adr-0028.md.
|
|
14
|
-
*
|
|
15
|
-
* Coverage: 17 collection caps, 30 array methods.
|
|
16
|
-
*/
|
|
17
|
-
var COLLECTION_ARRAY_METHODS = Object.freeze({
|
|
18
|
-
"addon-pages-source": ["listPages"],
|
|
19
|
-
"addon-routes": ["getRoutes"],
|
|
20
|
-
"addon-widgets-source": ["listWidgets"],
|
|
21
|
-
"broker": ["list", "listProviders"],
|
|
22
|
-
"custom-model-registry": ["listModels"],
|
|
23
|
-
"data-store-provider": ["histogram", "query"],
|
|
24
|
-
"device-export": ["listExposedDevices", "listSupportedDeviceKinds"],
|
|
25
|
-
"device-provider": ["discoverDevices", "getDevices"],
|
|
26
|
-
"llm": [
|
|
27
|
-
"getDefaults",
|
|
28
|
-
"getUsage",
|
|
29
|
-
"listModelCatalog",
|
|
30
|
-
"listModels",
|
|
31
|
-
"listNodeModels",
|
|
32
|
-
"listProfileKinds",
|
|
33
|
-
"listProfiles",
|
|
34
|
-
"listRuntimeNodes"
|
|
35
|
-
],
|
|
36
|
-
"log-destination": ["query"],
|
|
37
|
-
"login-method": ["getLoginMethods"],
|
|
38
|
-
"mqtt-broker": ["listBrokers"],
|
|
39
|
-
"network-access": ["listEndpoints"],
|
|
40
|
-
"notification-output": [
|
|
41
|
-
"discoverTargets",
|
|
42
|
-
"listTargetKinds",
|
|
43
|
-
"listTargets"
|
|
44
|
-
],
|
|
45
|
-
"storage-provider": ["list"],
|
|
46
|
-
"turn-provider": ["getTurnServers"],
|
|
47
|
-
"user-passkeys": ["listPasskeys"]
|
|
48
|
-
});
|
|
49
|
-
/**
|
|
50
|
-
* True when `method` on cap `capName` is a COLLECTION cap's array-returning
|
|
51
|
-
* (non-subscription) method — the schema-free runner-side equivalent of
|
|
52
|
-
* `isCollectionArrayMethod(capDefsByName.get(capName), method)`.
|
|
53
|
-
*/
|
|
54
|
-
function isCollectionArrayMethodName(capName, method) {
|
|
55
|
-
const methods = COLLECTION_ARRAY_METHODS[capName];
|
|
56
|
-
return methods !== void 0 && methods.includes(method);
|
|
57
|
-
}
|
|
58
|
-
//#endregion
|
|
59
4
|
//#region src/generated/cap-input-defaults.ts
|
|
60
5
|
/**
|
|
61
6
|
* AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
|
|
@@ -120,6 +65,7 @@ var CAP_INPUT_DEFAULTS = Object.freeze({
|
|
|
120
65
|
"flashAttention": false,
|
|
121
66
|
"mlock": false,
|
|
122
67
|
"noMmap": false,
|
|
68
|
+
"extraArgs": [],
|
|
123
69
|
"autoStart": false,
|
|
124
70
|
"idleStopMinutes": 30
|
|
125
71
|
} } },
|
|
@@ -130,6 +76,7 @@ var CAP_INPUT_DEFAULTS = Object.freeze({
|
|
|
130
76
|
"flashAttention": false,
|
|
131
77
|
"mlock": false,
|
|
132
78
|
"noMmap": false,
|
|
79
|
+
"extraArgs": [],
|
|
133
80
|
"autoStart": false,
|
|
134
81
|
"idleStopMinutes": 30
|
|
135
82
|
} } }
|
|
@@ -352,4 +299,59 @@ function materialise(defaults) {
|
|
|
352
299
|
return out;
|
|
353
300
|
}
|
|
354
301
|
//#endregion
|
|
355
|
-
|
|
302
|
+
//#region src/generated/collection-array-methods.ts
|
|
303
|
+
/**
|
|
304
|
+
* AUTO-GENERATED by scripts/generate-collection-array-methods.ts — DO NOT EDIT.
|
|
305
|
+
*
|
|
306
|
+
* For every COLLECTION-mode capability, the array-returning (non-subscription)
|
|
307
|
+
* method names the hub fans across providers. The addon-runner uses this to
|
|
308
|
+
* reproduce the hub's graceful "provider skips an unimplemented collection
|
|
309
|
+
* method" behaviour (see child-cap-dispatch) WITHOUT importing the schema
|
|
310
|
+
* barrel (`ALL_CAPABILITY_DEFINITIONS`), which would cost ~144MB RSS per
|
|
311
|
+
* forked runner. See docs/decisions/adr-0028.md.
|
|
312
|
+
*
|
|
313
|
+
* Coverage: 17 collection caps, 30 array methods.
|
|
314
|
+
*/
|
|
315
|
+
var COLLECTION_ARRAY_METHODS = Object.freeze({
|
|
316
|
+
"addon-pages-source": ["listPages"],
|
|
317
|
+
"addon-routes": ["getRoutes"],
|
|
318
|
+
"addon-widgets-source": ["listWidgets"],
|
|
319
|
+
"broker": ["list", "listProviders"],
|
|
320
|
+
"custom-model-registry": ["listModels"],
|
|
321
|
+
"data-store-provider": ["histogram", "query"],
|
|
322
|
+
"device-export": ["listExposedDevices", "listSupportedDeviceKinds"],
|
|
323
|
+
"device-provider": ["discoverDevices", "getDevices"],
|
|
324
|
+
"llm": [
|
|
325
|
+
"getDefaults",
|
|
326
|
+
"getUsage",
|
|
327
|
+
"listModelCatalog",
|
|
328
|
+
"listModels",
|
|
329
|
+
"listNodeModels",
|
|
330
|
+
"listProfileKinds",
|
|
331
|
+
"listProfiles",
|
|
332
|
+
"listRuntimeNodes"
|
|
333
|
+
],
|
|
334
|
+
"log-destination": ["query"],
|
|
335
|
+
"login-method": ["getLoginMethods"],
|
|
336
|
+
"mqtt-broker": ["listBrokers"],
|
|
337
|
+
"network-access": ["listEndpoints"],
|
|
338
|
+
"notification-output": [
|
|
339
|
+
"discoverTargets",
|
|
340
|
+
"listTargetKinds",
|
|
341
|
+
"listTargets"
|
|
342
|
+
],
|
|
343
|
+
"storage-provider": ["list"],
|
|
344
|
+
"turn-provider": ["getTurnServers"],
|
|
345
|
+
"user-passkeys": ["listPasskeys"]
|
|
346
|
+
});
|
|
347
|
+
/**
|
|
348
|
+
* True when `method` on cap `capName` is a COLLECTION cap's array-returning
|
|
349
|
+
* (non-subscription) method — the schema-free runner-side equivalent of
|
|
350
|
+
* `isCollectionArrayMethod(capDefsByName.get(capName), method)`.
|
|
351
|
+
*/
|
|
352
|
+
function isCollectionArrayMethodName(capName, method) {
|
|
353
|
+
const methods = COLLECTION_ARRAY_METHODS[capName];
|
|
354
|
+
return methods !== void 0 && methods.includes(method);
|
|
355
|
+
}
|
|
356
|
+
//#endregion
|
|
357
|
+
export { BOOT_RECOVERY_BACKOFF_MS, BaseAddon, CAP_INPUT_DEFAULTS, COLLECTION_ARRAY_METHODS, DATAPLANE_SECRET_HEADER, DEVICE_SCOPED_CAPS, DeviceType, DisposerChain, EventCategory, ReadinessRegistry, ReadinessTimeoutError, adminUiCapability, asJsonObject, asString, createDeviceProxy, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, isCollectionArrayMethodName, isDeviceScopedCap, nodePin, normalizeAddonInitResult, parseJsonUnknown, readNodePin, scopeKey, sleep, viewerUiCapability, withCapInputDefaults };
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import { type InferProvider } from './capability-definition.js';
|
|
10
10
|
export declare const AlertSeveritySchema: z.ZodEnum<{
|
|
11
|
-
success: "success";
|
|
12
11
|
error: "error";
|
|
12
|
+
success: "success";
|
|
13
13
|
info: "info";
|
|
14
14
|
warning: "warning";
|
|
15
15
|
}>;
|
|
@@ -28,8 +28,8 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
28
28
|
id: z.ZodString;
|
|
29
29
|
category: z.ZodString;
|
|
30
30
|
severity: z.ZodEnum<{
|
|
31
|
-
success: "success";
|
|
32
31
|
error: "error";
|
|
32
|
+
success: "success";
|
|
33
33
|
info: "info";
|
|
34
34
|
warning: "warning";
|
|
35
35
|
}>;
|
|
@@ -64,8 +64,8 @@ export declare const alertsCapability: {
|
|
|
64
64
|
id: z.ZodString;
|
|
65
65
|
category: z.ZodString;
|
|
66
66
|
severity: z.ZodEnum<{
|
|
67
|
-
success: "success";
|
|
68
67
|
error: "error";
|
|
68
|
+
success: "success";
|
|
69
69
|
info: "info";
|
|
70
70
|
warning: "warning";
|
|
71
71
|
}>;
|
|
@@ -94,8 +94,8 @@ export declare const alertsCapability: {
|
|
|
94
94
|
id: z.ZodOptional<z.ZodString>;
|
|
95
95
|
category: z.ZodOptional<z.ZodString>;
|
|
96
96
|
severity: z.ZodOptional<z.ZodEnum<{
|
|
97
|
-
success: "success";
|
|
98
97
|
error: "error";
|
|
98
|
+
success: "success";
|
|
99
99
|
info: "info";
|
|
100
100
|
warning: "warning";
|
|
101
101
|
}>>;
|
|
@@ -126,8 +126,8 @@ export declare const alertsCapability: {
|
|
|
126
126
|
id: z.ZodString;
|
|
127
127
|
category: z.ZodString;
|
|
128
128
|
severity: z.ZodEnum<{
|
|
129
|
-
success: "success";
|
|
130
129
|
error: "error";
|
|
130
|
+
success: "success";
|
|
131
131
|
info: "info";
|
|
132
132
|
warning: "warning";
|
|
133
133
|
}>;
|
|
@@ -11,9 +11,9 @@ import { DeviceType } from '../device/device-type.js';
|
|
|
11
11
|
export declare const BatteryStatusSchema: z.ZodObject<{
|
|
12
12
|
percentage: z.ZodNumber;
|
|
13
13
|
charging: z.ZodEnum<{
|
|
14
|
-
none: "none";
|
|
15
14
|
dc: "dc";
|
|
16
15
|
solar: "solar";
|
|
16
|
+
none: "none";
|
|
17
17
|
}>;
|
|
18
18
|
sleeping: z.ZodBoolean;
|
|
19
19
|
lastUpdated: z.ZodNumber;
|
|
@@ -64,9 +64,9 @@ export declare const batteryCapability: {
|
|
|
64
64
|
status: z.ZodObject<{
|
|
65
65
|
percentage: z.ZodNumber;
|
|
66
66
|
charging: z.ZodEnum<{
|
|
67
|
-
none: "none";
|
|
68
67
|
dc: "dc";
|
|
69
68
|
solar: "solar";
|
|
69
|
+
none: "none";
|
|
70
70
|
}>;
|
|
71
71
|
sleeping: z.ZodBoolean;
|
|
72
72
|
lastUpdated: z.ZodNumber;
|
|
@@ -79,9 +79,9 @@ export declare const batteryCapability: {
|
|
|
79
79
|
readonly schema: z.ZodObject<{
|
|
80
80
|
percentage: z.ZodNumber;
|
|
81
81
|
charging: z.ZodEnum<{
|
|
82
|
-
none: "none";
|
|
83
82
|
dc: "dc";
|
|
84
83
|
solar: "solar";
|
|
84
|
+
none: "none";
|
|
85
85
|
}>;
|
|
86
86
|
sleeping: z.ZodBoolean;
|
|
87
87
|
lastUpdated: z.ZodNumber;
|
|
@@ -107,9 +107,9 @@ export declare const batteryCapability: {
|
|
|
107
107
|
readonly runtimeState: z.ZodObject<{
|
|
108
108
|
percentage: z.ZodNumber;
|
|
109
109
|
charging: z.ZodEnum<{
|
|
110
|
-
none: "none";
|
|
111
110
|
dc: "dc";
|
|
112
111
|
solar: "solar";
|
|
112
|
+
none: "none";
|
|
113
113
|
}>;
|
|
114
114
|
sleeping: z.ZodBoolean;
|
|
115
115
|
lastUpdated: z.ZodNumber;
|
|
@@ -102,9 +102,9 @@ export declare const CustomModelDescriptorSchema: z.ZodObject<{
|
|
|
102
102
|
nhwc: "nhwc";
|
|
103
103
|
}>>;
|
|
104
104
|
inputNormalization: z.ZodOptional<z.ZodEnum<{
|
|
105
|
+
none: "none";
|
|
105
106
|
"zero-one": "zero-one";
|
|
106
107
|
imagenet: "imagenet";
|
|
107
|
-
none: "none";
|
|
108
108
|
}>>;
|
|
109
109
|
outputProbabilities: z.ZodOptional<z.ZodBoolean>;
|
|
110
110
|
preprocessMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -132,8 +132,8 @@ export declare const CustomModelDescriptorSchema: z.ZodObject<{
|
|
|
132
132
|
int8: "int8";
|
|
133
133
|
}>>;
|
|
134
134
|
optimization: z.ZodOptional<z.ZodEnum<{
|
|
135
|
-
standard: "standard";
|
|
136
135
|
fast: "fast";
|
|
136
|
+
standard: "standard";
|
|
137
137
|
}>>;
|
|
138
138
|
resolution: z.ZodOptional<z.ZodNumber>;
|
|
139
139
|
}, z.core.$strip>>;
|
|
@@ -231,9 +231,9 @@ export declare const customModelRegistryCapability: {
|
|
|
231
231
|
nhwc: "nhwc";
|
|
232
232
|
}>>;
|
|
233
233
|
inputNormalization: z.ZodOptional<z.ZodEnum<{
|
|
234
|
+
none: "none";
|
|
234
235
|
"zero-one": "zero-one";
|
|
235
236
|
imagenet: "imagenet";
|
|
236
|
-
none: "none";
|
|
237
237
|
}>>;
|
|
238
238
|
outputProbabilities: z.ZodOptional<z.ZodBoolean>;
|
|
239
239
|
preprocessMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -261,8 +261,8 @@ export declare const customModelRegistryCapability: {
|
|
|
261
261
|
int8: "int8";
|
|
262
262
|
}>>;
|
|
263
263
|
optimization: z.ZodOptional<z.ZodEnum<{
|
|
264
|
-
standard: "standard";
|
|
265
264
|
fast: "fast";
|
|
265
|
+
standard: "standard";
|
|
266
266
|
}>>;
|
|
267
267
|
resolution: z.ZodOptional<z.ZodNumber>;
|
|
268
268
|
}, z.core.$strip>>;
|
|
@@ -80,8 +80,8 @@ export declare const decoderCapability: {
|
|
|
80
80
|
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
81
81
|
tag: z.ZodOptional<z.ZodString>;
|
|
82
82
|
frameSink: z.ZodDefault<z.ZodEnum<{
|
|
83
|
-
shm: "shm";
|
|
84
83
|
callback: "callback";
|
|
84
|
+
shm: "shm";
|
|
85
85
|
}>>;
|
|
86
86
|
debug: z.ZodOptional<z.ZodBoolean>;
|
|
87
87
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -210,8 +210,8 @@ export declare const decoderCapability: {
|
|
|
210
210
|
deviceId: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
211
211
|
tag: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
212
212
|
frameSink: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
213
|
-
shm: "shm";
|
|
214
213
|
callback: "callback";
|
|
214
|
+
shm: "shm";
|
|
215
215
|
}>>>;
|
|
216
216
|
debug: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
217
217
|
}, z.core.$strip>;
|
|
@@ -91,9 +91,9 @@ export declare const faceGalleryCapability: {
|
|
|
91
91
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
92
92
|
filter: z.ZodOptional<z.ZodEnum<{
|
|
93
93
|
unassigned: "unassigned";
|
|
94
|
+
all: "all";
|
|
94
95
|
recognized: "recognized";
|
|
95
96
|
identified: "identified";
|
|
96
|
-
all: "all";
|
|
97
97
|
}>>;
|
|
98
98
|
includeCrops: z.ZodOptional<z.ZodBoolean>;
|
|
99
99
|
}, z.core.$strip>>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -56,8 +56,8 @@ export { deviceStateCapability } from './device-state.cap.js';
|
|
|
56
56
|
export type { IEmbeddingEncoderProvider } from './embedding-encoder.cap.js';
|
|
57
57
|
export { EmbeddingInfoSchema, EmbeddingResultSchema, embeddingEncoderCapability, } from './embedding-encoder.cap.js';
|
|
58
58
|
export { filesystemBrowseCapability, type IFilesystemBrowseProvider, } from './filesystem-browse.cap.js';
|
|
59
|
-
export { type ILlmProvider, type LlmDefault, LlmDefaultSchema, type LlmDefaultSelector, LlmDefaultSelectorSchema, type LlmProfile, type LlmProfileKind, type LlmProfileKindDescriptor, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, type LlmRuntimeNode, LlmRuntimeNodeSchema, type LlmUsageRollup, LlmUsageRollupSchema, llmCapability, type ManagedModelCatalogEntry, ManagedModelCatalogEntrySchema, } from './llm.cap.js';
|
|
60
|
-
export { type ILlmRuntimeProvider, type LlmNodeModel, LlmNodeModelSchema, type LlmRuntimeCompleteInput, LlmRuntimeCompleteInputSchema, type LlmRuntimeDiskUsage, LlmRuntimeDiskUsageSchema, type LlmRuntimeStatus, LlmRuntimeStatusSchema, llmRuntimeCapability, type ManagedModelRef, ManagedModelRefSchema, type ManagedRuntimeConfig, ManagedRuntimeConfigSchema, } from './llm-runtime.cap.js';
|
|
59
|
+
export { type HfModelResolution, HfModelResolutionSchema, type ILlmProvider, type LlmDefault, LlmDefaultSchema, type LlmDefaultSelector, LlmDefaultSelectorSchema, type LlmProfile, type LlmProfileKind, type LlmProfileKindDescriptor, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, type LlmRuntimeNode, LlmRuntimeNodeSchema, type LlmUsageRollup, LlmUsageRollupSchema, llmCapability, type ManagedModelCatalogEntry, ManagedModelCatalogEntrySchema, } from './llm.cap.js';
|
|
60
|
+
export { type ILlmRuntimeProvider, type LlmDownloadProgress, LlmDownloadProgressSchema, type LlmNodeModel, LlmNodeModelSchema, type LlmRuntimeCompleteInput, LlmRuntimeCompleteInputSchema, type LlmRuntimeDiskUsage, LlmRuntimeDiskUsageSchema, type LlmRuntimeStatus, LlmRuntimeStatusSchema, llmRuntimeCapability, type ManagedModelExtraFile, ManagedModelExtraFileSchema, type ManagedModelRef, ManagedModelRefSchema, type ManagedRuntimeConfig, ManagedRuntimeConfigSchema, } from './llm-runtime.cap.js';
|
|
61
61
|
export { type LlmErrorCode, LlmErrorCodeSchema, type LlmGenerateBaseInput, LlmGenerateBaseInputSchema, type LlmGenerateErr, LlmGenerateErrSchema, type LlmGenerateOk, LlmGenerateOkSchema, type LlmGenerateResult, LlmGenerateResultSchema, type LlmImage, LlmImageSchema, type LlmRetryPolicy, LlmRetryPolicySchema, LlmTimeoutDefaults, type LlmUsage, LlmUsageSchema, } from './llm-shared.js';
|
|
62
62
|
export { LogEntrySchema, LogLevelSchema, logDestinationCapability } from './log-destination.cap.js';
|
|
63
63
|
export type { ILoginMethodProvider, LoginMethodContribution, LoginStage, PasskeyLoginMethod, RedirectLoginMethod, WidgetLoginMethod, } from './login-method.cap.js';
|
|
@@ -181,7 +181,7 @@ export { type IPtzAutotrackProvider, type PtzAutotrackRuntimeState, PtzAutotrack
|
|
|
181
181
|
export { type IRebootProvider, rebootCapability } from './reboot.cap.js';
|
|
182
182
|
export { type IRecordingProvider, type LocateSegmentResult, LocateSegmentResultSchema, type ReadGopBytesResult, ReadGopBytesResultSchema, type ReadSegmentBytesResult, ReadSegmentBytesResultSchema, type RecordingAvailability, RecordingAvailabilitySchema, type RecordingDays, RecordingDaysSchema, type RecordingDeviceUsage, RecordingDeviceUsageSchema, type RecordingLocationUsage, RecordingLocationUsageSchema, type RecordingManifest, RecordingManifestSchema, RecordingRangeSchema, type RecordingRebalanceInput, RecordingRebalanceInputSchema, type RecordingRebalanceMove, RecordingRebalanceMoveSchema, type RecordingRebalancePlan, RecordingRebalancePlanSchema, type RecordingRebalanceSkip, type RecordingRebalanceSkipReason, RecordingRebalanceSkipReasonSchema, RecordingRebalanceSkipSchema, type RecordingStatus, RecordingStatusSchema, type RecordingStorageUsage, RecordingStorageUsageSchema, recordingCapability, } from './recording.cap.js';
|
|
183
183
|
export { EXPORT_DENSE_MAX_RANGES, type ExportBytes, ExportBytesSchema, type ExportDense, type ExportDenseRange, ExportDenseRangeSchema, ExportDenseSchema, type ExportDownload, ExportDownloadSchema, type ExportOptions, ExportOptionsSchema, type ExportRecord, ExportRecordSchema, ExportSpeedSchema, type ExportState, ExportStateSchema, ExportTimelapseSchema, type IRecordingExportProvider, RECORDING_EXPORT_MAX_READ_BYTES, recordingExportCapability, } from './recording-export.cap.js';
|
|
184
|
-
export { type ISceneMonitorProvider, SCENE_CONDITIONS, SCENE_CONFIRM_DEFAULT_MAX_IMAGE_PX, SCENE_CONFIRM_DEFAULT_TIMEOUT_MS, SCENE_DEFAULT_ANCHOR_THRESHOLD, SCENE_DEFAULT_CHECK_INTERVAL_SEC, SCENE_DEFAULT_OBSERVATION_SPACING_SEC, SCENE_DEFAULT_QUIET_SECONDS, SCENE_DIVERGED, SCENE_RESET_RECAPTURES, type SceneCheck, SceneCheckSchema, type SceneCondition, SceneConditionSchema, type SceneConfirm, SceneConfirmSchema, type SceneMonitor, SceneMonitorSchema, type SceneMonitorState, SceneMonitorStateSchema, type SceneMonitorStatus, SceneMonitorStatusSchema, type SceneReference, SceneReferenceSchema, type SceneUnavailable, SceneUnavailableSchema, type SceneVerdict, SceneVerdictSchema, sceneMonitorCapability, } from './scene-monitor.cap.js';
|
|
184
|
+
export { type ISceneMonitorProvider, SCENE_CONDITIONS, SCENE_CONFIRM_DEFAULT_MAX_IMAGE_PX, SCENE_CONFIRM_DEFAULT_TIMEOUT_MS, SCENE_DEFAULT_ANCHOR_THRESHOLD, SCENE_DEFAULT_CHECK_INTERVAL_SEC, SCENE_DEFAULT_OBSERVATION_SPACING_SEC, SCENE_DEFAULT_QUIET_SECONDS, SCENE_DEFAULT_UNCOVERED_POLICY, SCENE_DIVERGED, SCENE_RESET_RECAPTURES, type SceneCheck, SceneCheckSchema, type SceneCondition, SceneConditionSchema, type SceneConfirm, SceneConfirmSchema, type SceneMonitor, SceneMonitorSchema, type SceneMonitorState, SceneMonitorStateSchema, type SceneMonitorStatus, SceneMonitorStatusSchema, type SceneReference, SceneReferenceSchema, type SceneUnavailable, SceneUnavailableSchema, type SceneUncoveredPolicy, SceneUncoveredPolicySchema, type SceneVerdict, SceneVerdictSchema, sceneMonitorCapability, } from './scene-monitor.cap.js';
|
|
185
185
|
export { type ZoneRule, type ZoneRuleMode, ZoneRuleModeEnum, ZoneRuleSchema, type ZoneRules, ZoneRulesArraySchema, } from './schemas/zone-rule.js';
|
|
186
186
|
export { type IScriptRunnerProvider, type ScriptRunnerStatus, ScriptRunnerStatusSchema, scriptRunnerCapability, } from './script-runner.cap.js';
|
|
187
187
|
export { type ISmokeProvider, type SmokeStatus, SmokeStatusSchema, smokeCapability, } from './smoke.cap.js';
|
|
@@ -15,8 +15,8 @@ import { DeviceType } from '../device/device-type.js';
|
|
|
15
15
|
export declare const LawnMowerActivitySchema: z.ZodEnum<{
|
|
16
16
|
error: "error";
|
|
17
17
|
idle: "idle";
|
|
18
|
-
mowing: "mowing";
|
|
19
18
|
paused: "paused";
|
|
19
|
+
mowing: "mowing";
|
|
20
20
|
docked: "docked";
|
|
21
21
|
}>;
|
|
22
22
|
export type LawnMowerActivity = z.infer<typeof LawnMowerActivitySchema>;
|
|
@@ -31,8 +31,8 @@ export declare const LawnMowerControlStatusSchema: z.ZodObject<{
|
|
|
31
31
|
activity: z.ZodEnum<{
|
|
32
32
|
error: "error";
|
|
33
33
|
idle: "idle";
|
|
34
|
-
mowing: "mowing";
|
|
35
34
|
paused: "paused";
|
|
35
|
+
mowing: "mowing";
|
|
36
36
|
docked: "docked";
|
|
37
37
|
}>;
|
|
38
38
|
batteryLevel: z.ZodNullable<z.ZodNumber>;
|
|
@@ -69,8 +69,8 @@ export declare const lawnMowerControlCapability: {
|
|
|
69
69
|
activity: z.ZodEnum<{
|
|
70
70
|
error: "error";
|
|
71
71
|
idle: "idle";
|
|
72
|
-
mowing: "mowing";
|
|
73
72
|
paused: "paused";
|
|
73
|
+
mowing: "mowing";
|
|
74
74
|
docked: "docked";
|
|
75
75
|
}>;
|
|
76
76
|
batteryLevel: z.ZodNullable<z.ZodNumber>;
|
|
@@ -94,8 +94,8 @@ export declare const lawnMowerControlCapability: {
|
|
|
94
94
|
activity: z.ZodEnum<{
|
|
95
95
|
error: "error";
|
|
96
96
|
idle: "idle";
|
|
97
|
-
mowing: "mowing";
|
|
98
97
|
paused: "paused";
|
|
98
|
+
mowing: "mowing";
|
|
99
99
|
docked: "docked";
|
|
100
100
|
}>;
|
|
101
101
|
batteryLevel: z.ZodNullable<z.ZodNumber>;
|