@camstack/types 1.1.0 → 1.1.1
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.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/alerts.cap.d.ts +5 -5
- package/dist/capabilities/custom-model-registry.cap.d.ts +209 -0
- package/dist/capabilities/index.d.ts +10 -1
- package/dist/capabilities/model-convert.cap.d.ts +218 -0
- package/dist/capabilities/model-distributor.cap.d.ts +230 -0
- package/dist/capabilities/storage.cap.d.ts +1 -1
- package/dist/enums/event-category.d.ts +7 -1
- package/dist/generated/addon-api.d.ts +582 -6
- package/dist/generated/capability-router-map.d.ts +13 -4
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/index.js +268 -1
- package/dist/index.mjs +253 -2
- package/dist/interfaces/capability.d.ts +1 -0
- package/dist/interfaces/event-bus.d.ts +13 -0
- package/dist/{sleep-B1dKJAMJ.mjs → sleep-BV7rLc6Y.mjs} +6 -0
- package/dist/{sleep-p-5TJ_dy.js → sleep-DQ586nj1.js} +6 -0
- package/dist/types/detection.d.ts +6 -0
- package/dist/types/labels.d.ts +9 -7
- package/dist/types/models.d.ts +348 -55
- package/dist/types/pipeline-step.d.ts +2 -0
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-DQ586nj1.js");
|
|
3
3
|
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
4
4
|
exports.BaseAddon = require_sleep.BaseAddon;
|
|
5
5
|
exports.DATAPLANE_SECRET_HEADER = require_sleep.DATAPLANE_SECRET_HEADER;
|
package/dist/addon.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as ReadinessTimeoutError, D as parseJsonUnknown, N as scopeKey, O as DATAPLANE_SECRET_HEADER, S as asJsonObject, a as adminUiCapability, at as BaseAddon, ht as DisposerChain, i as deviceOpsCapability, k as ReadinessRegistry, lt as emitReadiness, mt as EventCategory, o as createDeviceProxy, ot as normalizeAddonInitResult, p as expandCapMethods, t as sleep, w as asString, y as DeviceType } from "./sleep-
|
|
1
|
+
import { A as ReadinessTimeoutError, D as parseJsonUnknown, N as scopeKey, O as DATAPLANE_SECRET_HEADER, S as asJsonObject, a as adminUiCapability, at as BaseAddon, ht as DisposerChain, i as deviceOpsCapability, k as ReadinessRegistry, lt as emitReadiness, mt as EventCategory, o as createDeviceProxy, ot as normalizeAddonInitResult, p as expandCapMethods, t as sleep, w as asString, y as DeviceType } from "./sleep-BV7rLc6Y.mjs";
|
|
2
2
|
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
3
3
|
export { BaseAddon, DATAPLANE_SECRET_HEADER, DeviceType, DisposerChain, EventCategory, ReadinessRegistry, ReadinessTimeoutError, adminUiCapability, asJsonObject, asString, createDeviceProxy, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, normalizeAddonInitResult, parseJsonUnknown, scopeKey, sleep };
|
|
@@ -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
|
-
error: "error";
|
|
12
11
|
success: "success";
|
|
12
|
+
error: "error";
|
|
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
|
-
error: "error";
|
|
32
31
|
success: "success";
|
|
32
|
+
error: "error";
|
|
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
|
-
error: "error";
|
|
68
67
|
success: "success";
|
|
68
|
+
error: "error";
|
|
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
|
-
error: "error";
|
|
98
97
|
success: "success";
|
|
98
|
+
error: "error";
|
|
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
|
-
error: "error";
|
|
130
129
|
success: "success";
|
|
130
|
+
error: "error";
|
|
131
131
|
info: "info";
|
|
132
132
|
warning: "warning";
|
|
133
133
|
}>;
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
/**
|
|
4
|
+
* `custom-model-registry` — collection cap exposing operator-registered
|
|
5
|
+
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
6
|
+
* contributes a list of `CustomModelDescriptor`s; the hub auto-concatenates
|
|
7
|
+
* them across providers (`concatCollection`).
|
|
8
|
+
*
|
|
9
|
+
* The detection-pipeline is *aware* of this cap: when at least one provider
|
|
10
|
+
* exists it unions these descriptors into the per-step model picker and the
|
|
11
|
+
* runtime model-resolution path, alongside the static catalog. When no
|
|
12
|
+
* provider exists the consumer no-ops entirely (identical to the catalog-only
|
|
13
|
+
* behaviour).
|
|
14
|
+
*
|
|
15
|
+
* A descriptor carries a full `ModelCatalogEntry` directly — the same shape
|
|
16
|
+
* the static catalog uses — so the existing download/resolution code consumes
|
|
17
|
+
* it unchanged. `stepId` is the detection step the model targets
|
|
18
|
+
* (e.g. `'object-detection'`).
|
|
19
|
+
*/
|
|
20
|
+
export declare const CustomModelDescriptorSchema: z.ZodObject<{
|
|
21
|
+
stepId: z.ZodString;
|
|
22
|
+
entry: z.ZodObject<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
description: z.ZodString;
|
|
26
|
+
formats: z.ZodObject<{
|
|
27
|
+
onnx: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
url: z.ZodString;
|
|
29
|
+
sizeMB: z.ZodNumber;
|
|
30
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
32
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
33
|
+
node: "node";
|
|
34
|
+
python: "python";
|
|
35
|
+
}>>>>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
coreml: z.ZodOptional<z.ZodObject<{
|
|
38
|
+
url: z.ZodString;
|
|
39
|
+
sizeMB: z.ZodNumber;
|
|
40
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
42
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
43
|
+
node: "node";
|
|
44
|
+
python: "python";
|
|
45
|
+
}>>>>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
openvino: z.ZodOptional<z.ZodObject<{
|
|
48
|
+
url: z.ZodString;
|
|
49
|
+
sizeMB: z.ZodNumber;
|
|
50
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
52
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
53
|
+
node: "node";
|
|
54
|
+
python: "python";
|
|
55
|
+
}>>>>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
tflite: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
url: z.ZodString;
|
|
59
|
+
sizeMB: z.ZodNumber;
|
|
60
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
62
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
63
|
+
node: "node";
|
|
64
|
+
python: "python";
|
|
65
|
+
}>>>>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
pt: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
url: z.ZodString;
|
|
69
|
+
sizeMB: z.ZodNumber;
|
|
70
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
72
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
73
|
+
node: "node";
|
|
74
|
+
python: "python";
|
|
75
|
+
}>>>>;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
inputSize: z.ZodObject<{
|
|
79
|
+
width: z.ZodNumber;
|
|
80
|
+
height: z.ZodNumber;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
labels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
name: z.ZodString;
|
|
85
|
+
category: z.ZodOptional<z.ZodString>;
|
|
86
|
+
description: z.ZodOptional<z.ZodString>;
|
|
87
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
88
|
+
}, z.core.$strip>>>;
|
|
89
|
+
inputLayout: z.ZodOptional<z.ZodEnum<{
|
|
90
|
+
nchw: "nchw";
|
|
91
|
+
nhwc: "nhwc";
|
|
92
|
+
}>>;
|
|
93
|
+
inputNormalization: z.ZodOptional<z.ZodEnum<{
|
|
94
|
+
"zero-one": "zero-one";
|
|
95
|
+
imagenet: "imagenet";
|
|
96
|
+
none: "none";
|
|
97
|
+
}>>;
|
|
98
|
+
preprocessMode: z.ZodOptional<z.ZodEnum<{
|
|
99
|
+
letterbox: "letterbox";
|
|
100
|
+
resize: "resize";
|
|
101
|
+
}>>;
|
|
102
|
+
faceAlignment: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
extraFiles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
104
|
+
url: z.ZodString;
|
|
105
|
+
filename: z.ZodString;
|
|
106
|
+
sizeMB: z.ZodNumber;
|
|
107
|
+
}, z.core.$strip>>>>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export type CustomModelDescriptor = z.infer<typeof CustomModelDescriptorSchema>;
|
|
111
|
+
export declare const customModelRegistryCapability: {
|
|
112
|
+
readonly name: "custom-model-registry";
|
|
113
|
+
readonly scope: "system";
|
|
114
|
+
readonly mode: "collection";
|
|
115
|
+
readonly internal: true;
|
|
116
|
+
readonly methods: {
|
|
117
|
+
readonly listModels: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
118
|
+
stepId: z.ZodString;
|
|
119
|
+
entry: z.ZodObject<{
|
|
120
|
+
id: z.ZodString;
|
|
121
|
+
name: z.ZodString;
|
|
122
|
+
description: z.ZodString;
|
|
123
|
+
formats: z.ZodObject<{
|
|
124
|
+
onnx: z.ZodOptional<z.ZodObject<{
|
|
125
|
+
url: z.ZodString;
|
|
126
|
+
sizeMB: z.ZodNumber;
|
|
127
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
129
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
130
|
+
node: "node";
|
|
131
|
+
python: "python";
|
|
132
|
+
}>>>>;
|
|
133
|
+
}, z.core.$strip>>;
|
|
134
|
+
coreml: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
url: z.ZodString;
|
|
136
|
+
sizeMB: z.ZodNumber;
|
|
137
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
138
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
139
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
140
|
+
node: "node";
|
|
141
|
+
python: "python";
|
|
142
|
+
}>>>>;
|
|
143
|
+
}, z.core.$strip>>;
|
|
144
|
+
openvino: z.ZodOptional<z.ZodObject<{
|
|
145
|
+
url: z.ZodString;
|
|
146
|
+
sizeMB: z.ZodNumber;
|
|
147
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
149
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
150
|
+
node: "node";
|
|
151
|
+
python: "python";
|
|
152
|
+
}>>>>;
|
|
153
|
+
}, z.core.$strip>>;
|
|
154
|
+
tflite: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
url: z.ZodString;
|
|
156
|
+
sizeMB: z.ZodNumber;
|
|
157
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
159
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
160
|
+
node: "node";
|
|
161
|
+
python: "python";
|
|
162
|
+
}>>>>;
|
|
163
|
+
}, z.core.$strip>>;
|
|
164
|
+
pt: z.ZodOptional<z.ZodObject<{
|
|
165
|
+
url: z.ZodString;
|
|
166
|
+
sizeMB: z.ZodNumber;
|
|
167
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
169
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
170
|
+
node: "node";
|
|
171
|
+
python: "python";
|
|
172
|
+
}>>>>;
|
|
173
|
+
}, z.core.$strip>>;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
inputSize: z.ZodObject<{
|
|
176
|
+
width: z.ZodNumber;
|
|
177
|
+
height: z.ZodNumber;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
labels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
180
|
+
id: z.ZodString;
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
category: z.ZodOptional<z.ZodString>;
|
|
183
|
+
description: z.ZodOptional<z.ZodString>;
|
|
184
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
185
|
+
}, z.core.$strip>>>;
|
|
186
|
+
inputLayout: z.ZodOptional<z.ZodEnum<{
|
|
187
|
+
nchw: "nchw";
|
|
188
|
+
nhwc: "nhwc";
|
|
189
|
+
}>>;
|
|
190
|
+
inputNormalization: z.ZodOptional<z.ZodEnum<{
|
|
191
|
+
"zero-one": "zero-one";
|
|
192
|
+
imagenet: "imagenet";
|
|
193
|
+
none: "none";
|
|
194
|
+
}>>;
|
|
195
|
+
preprocessMode: z.ZodOptional<z.ZodEnum<{
|
|
196
|
+
letterbox: "letterbox";
|
|
197
|
+
resize: "resize";
|
|
198
|
+
}>>;
|
|
199
|
+
faceAlignment: z.ZodOptional<z.ZodBoolean>;
|
|
200
|
+
extraFiles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
201
|
+
url: z.ZodString;
|
|
202
|
+
filename: z.ZodString;
|
|
203
|
+
sizeMB: z.ZodNumber;
|
|
204
|
+
}, z.core.$strip>>>>;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
export type ICustomModelRegistryProvider = InferProvider<typeof customModelRegistryCapability>;
|
|
@@ -51,6 +51,12 @@ export type { IAddonPagesSourceProvider } from './addon-pages-source.cap.js';
|
|
|
51
51
|
export { addonWidgetsCapability, EnrichedWidgetMetadataSchema } from './addon-widgets.cap.js';
|
|
52
52
|
export type { IAddonWidgetsAggregatorProvider, EnrichedWidgetMetadata, } from './addon-widgets.cap.js';
|
|
53
53
|
export { addonWidgetsSourceCapability, WidgetMetadataSchema, WidgetRemoteSchema, WidgetHostEnum, WidgetSizeEnum, } from './addon-widgets-source.cap.js';
|
|
54
|
+
export { customModelRegistryCapability, CustomModelDescriptorSchema, } from './custom-model-registry.cap.js';
|
|
55
|
+
export type { ICustomModelRegistryProvider, CustomModelDescriptor, } from './custom-model-registry.cap.js';
|
|
56
|
+
export { modelDistributorCapability, ModelDistributeInputSchema, ModelDistributeResultSchema, } from './model-distributor.cap.js';
|
|
57
|
+
export type { IModelDistributorProvider, ModelDistributeInput, ModelDistributeResult, } from './model-distributor.cap.js';
|
|
58
|
+
export { modelConvertCapability, ModelConvertInputSchema, } from './model-convert.cap.js';
|
|
59
|
+
export type { IModelConvertProvider, ModelConvertInput, } from './model-convert.cap.js';
|
|
54
60
|
export type { IAddonWidgetsSourceProvider, WidgetMetadata } from './addon-widgets-source.cap.js';
|
|
55
61
|
export { addonRoutesCapability } from './addon-routes.cap.js';
|
|
56
62
|
export { streamBrokerCapability, RtspRestreamEntrySchema, BrokerRtspClientSchema, BrokerDecodedClientSchema, BrokerAudioClientSchema, BrokerEncodedClientSchema, BrokerConsumerKindSchema, BrokerConsumerAttributionSchema, BrokerClientsSchema, PlaceholderReasonSchema, GetStreamWithCodecInputSchema, RtpSourceSchema, } from './stream-broker.cap.js';
|
|
@@ -202,6 +208,9 @@ import type { addonPagesCapability } from './addon-pages.cap.js';
|
|
|
202
208
|
import type { addonPagesSourceCapability } from './addon-pages-source.cap.js';
|
|
203
209
|
import type { addonWidgetsCapability } from './addon-widgets.cap.js';
|
|
204
210
|
import type { addonWidgetsSourceCapability } from './addon-widgets-source.cap.js';
|
|
211
|
+
import type { customModelRegistryCapability } from './custom-model-registry.cap.js';
|
|
212
|
+
import type { modelDistributorCapability } from './model-distributor.cap.js';
|
|
213
|
+
import type { modelConvertCapability } from './model-convert.cap.js';
|
|
205
214
|
import type { addonRoutesCapability } from './addon-routes.cap.js';
|
|
206
215
|
import type { streamBrokerCapability } from './stream-broker.cap.js';
|
|
207
216
|
import type { decoderCapability } from './decoder.cap.js';
|
|
@@ -299,6 +308,6 @@ import type { streamCatalogCapability } from './stream-catalog.cap.js';
|
|
|
299
308
|
import type { motionZonesCapability } from './motion-zones.cap.js';
|
|
300
309
|
import type { privacyMaskCapability } from './privacy-mask.cap.js';
|
|
301
310
|
import type { IReadinessRegistry } from '../interfaces/readiness.js';
|
|
302
|
-
type AnyCapability = typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof settingsStoreCapability | typeof logDestinationCapability | typeof adminUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof restreamerCapability | typeof webrtcCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof streamingEngineCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof networkAccessCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof snapshotProviderCapability | typeof notificationOutputCapability | typeof advancedNotifierCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof consumablesCapability | typeof rebootCapability | typeof deviceDiscoveryCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof vacuumControlCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof eventsCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof deviceOpsCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof integrationsCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof privacyMaskCapability;
|
|
311
|
+
type AnyCapability = typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof settingsStoreCapability | typeof logDestinationCapability | typeof adminUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof restreamerCapability | typeof webrtcCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof streamingEngineCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof networkAccessCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof snapshotProviderCapability | typeof notificationOutputCapability | typeof advancedNotifierCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof consumablesCapability | typeof rebootCapability | typeof deviceDiscoveryCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof vacuumControlCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof eventsCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof deviceOpsCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof integrationsCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof privacyMaskCapability;
|
|
303
312
|
export type CapabilityName = AnyCapability['name'];
|
|
304
313
|
export type ITypedReadinessRegistry = IReadinessRegistry<CapabilityName>;
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
export declare const ModelConvertInputSchema: z.ZodObject<{
|
|
4
|
+
sourceUrl: z.ZodString;
|
|
5
|
+
metadata: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
labels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
category: z.ZodOptional<z.ZodString>;
|
|
12
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>>>;
|
|
15
|
+
inputSize: z.ZodObject<{
|
|
16
|
+
width: z.ZodNumber;
|
|
17
|
+
height: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
inputLayout: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
nchw: "nchw";
|
|
21
|
+
nhwc: "nhwc";
|
|
22
|
+
}>>;
|
|
23
|
+
inputNormalization: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
"zero-one": "zero-one";
|
|
25
|
+
imagenet: "imagenet";
|
|
26
|
+
none: "none";
|
|
27
|
+
}>>;
|
|
28
|
+
preprocessMode: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
letterbox: "letterbox";
|
|
30
|
+
resize: "resize";
|
|
31
|
+
}>>;
|
|
32
|
+
outputFormat: z.ZodEnum<{
|
|
33
|
+
yolo: "yolo";
|
|
34
|
+
ssd: "ssd";
|
|
35
|
+
embedding: "embedding";
|
|
36
|
+
classification: "classification";
|
|
37
|
+
ocr: "ocr";
|
|
38
|
+
segmentation: "segmentation";
|
|
39
|
+
}>;
|
|
40
|
+
faceAlignment: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
targets: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
43
|
+
format: z.ZodLiteral<"openvino">;
|
|
44
|
+
precisions: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
45
|
+
fp16: "fp16";
|
|
46
|
+
int8: "int8";
|
|
47
|
+
}>>>;
|
|
48
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
+
format: z.ZodLiteral<"coreml">;
|
|
50
|
+
}, z.core.$strip>], "format">>>;
|
|
51
|
+
calibrationRef: z.ZodOptional<z.ZodString>;
|
|
52
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type ModelConvertInput = z.infer<typeof ModelConvertInputSchema>;
|
|
55
|
+
export declare const modelConvertCapability: {
|
|
56
|
+
readonly name: "model-convert";
|
|
57
|
+
readonly scope: "system";
|
|
58
|
+
readonly mode: "singleton";
|
|
59
|
+
readonly internal: true;
|
|
60
|
+
readonly methods: {
|
|
61
|
+
readonly convert: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
62
|
+
sourceUrl: z.ZodString;
|
|
63
|
+
metadata: z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
name: z.ZodString;
|
|
66
|
+
labels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
67
|
+
id: z.ZodString;
|
|
68
|
+
name: z.ZodString;
|
|
69
|
+
category: z.ZodOptional<z.ZodString>;
|
|
70
|
+
description: z.ZodOptional<z.ZodString>;
|
|
71
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, z.core.$strip>>>;
|
|
73
|
+
inputSize: z.ZodObject<{
|
|
74
|
+
width: z.ZodNumber;
|
|
75
|
+
height: z.ZodNumber;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
inputLayout: z.ZodOptional<z.ZodEnum<{
|
|
78
|
+
nchw: "nchw";
|
|
79
|
+
nhwc: "nhwc";
|
|
80
|
+
}>>;
|
|
81
|
+
inputNormalization: z.ZodOptional<z.ZodEnum<{
|
|
82
|
+
"zero-one": "zero-one";
|
|
83
|
+
imagenet: "imagenet";
|
|
84
|
+
none: "none";
|
|
85
|
+
}>>;
|
|
86
|
+
preprocessMode: z.ZodOptional<z.ZodEnum<{
|
|
87
|
+
letterbox: "letterbox";
|
|
88
|
+
resize: "resize";
|
|
89
|
+
}>>;
|
|
90
|
+
outputFormat: z.ZodEnum<{
|
|
91
|
+
yolo: "yolo";
|
|
92
|
+
ssd: "ssd";
|
|
93
|
+
embedding: "embedding";
|
|
94
|
+
classification: "classification";
|
|
95
|
+
ocr: "ocr";
|
|
96
|
+
segmentation: "segmentation";
|
|
97
|
+
}>;
|
|
98
|
+
faceAlignment: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
targets: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
101
|
+
format: z.ZodLiteral<"openvino">;
|
|
102
|
+
precisions: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
103
|
+
fp16: "fp16";
|
|
104
|
+
int8: "int8";
|
|
105
|
+
}>>>;
|
|
106
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
+
format: z.ZodLiteral<"coreml">;
|
|
108
|
+
}, z.core.$strip>], "format">>>;
|
|
109
|
+
calibrationRef: z.ZodOptional<z.ZodString>;
|
|
110
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
|
+
entry: z.ZodObject<{
|
|
113
|
+
id: z.ZodString;
|
|
114
|
+
name: z.ZodString;
|
|
115
|
+
description: z.ZodString;
|
|
116
|
+
formats: z.ZodObject<{
|
|
117
|
+
onnx: z.ZodOptional<z.ZodObject<{
|
|
118
|
+
url: z.ZodString;
|
|
119
|
+
sizeMB: z.ZodNumber;
|
|
120
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
122
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
123
|
+
node: "node";
|
|
124
|
+
python: "python";
|
|
125
|
+
}>>>>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
coreml: z.ZodOptional<z.ZodObject<{
|
|
128
|
+
url: z.ZodString;
|
|
129
|
+
sizeMB: z.ZodNumber;
|
|
130
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
132
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
133
|
+
node: "node";
|
|
134
|
+
python: "python";
|
|
135
|
+
}>>>>;
|
|
136
|
+
}, z.core.$strip>>;
|
|
137
|
+
openvino: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
url: z.ZodString;
|
|
139
|
+
sizeMB: z.ZodNumber;
|
|
140
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
142
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
143
|
+
node: "node";
|
|
144
|
+
python: "python";
|
|
145
|
+
}>>>>;
|
|
146
|
+
}, z.core.$strip>>;
|
|
147
|
+
tflite: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
url: z.ZodString;
|
|
149
|
+
sizeMB: z.ZodNumber;
|
|
150
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
152
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
153
|
+
node: "node";
|
|
154
|
+
python: "python";
|
|
155
|
+
}>>>>;
|
|
156
|
+
}, z.core.$strip>>;
|
|
157
|
+
pt: z.ZodOptional<z.ZodObject<{
|
|
158
|
+
url: z.ZodString;
|
|
159
|
+
sizeMB: z.ZodNumber;
|
|
160
|
+
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
+
files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
162
|
+
runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
163
|
+
node: "node";
|
|
164
|
+
python: "python";
|
|
165
|
+
}>>>>;
|
|
166
|
+
}, z.core.$strip>>;
|
|
167
|
+
}, z.core.$strip>;
|
|
168
|
+
inputSize: z.ZodObject<{
|
|
169
|
+
width: z.ZodNumber;
|
|
170
|
+
height: z.ZodNumber;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
labels: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
173
|
+
id: z.ZodString;
|
|
174
|
+
name: z.ZodString;
|
|
175
|
+
category: z.ZodOptional<z.ZodString>;
|
|
176
|
+
description: z.ZodOptional<z.ZodString>;
|
|
177
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
178
|
+
}, z.core.$strip>>>;
|
|
179
|
+
inputLayout: z.ZodOptional<z.ZodEnum<{
|
|
180
|
+
nchw: "nchw";
|
|
181
|
+
nhwc: "nhwc";
|
|
182
|
+
}>>;
|
|
183
|
+
inputNormalization: z.ZodOptional<z.ZodEnum<{
|
|
184
|
+
"zero-one": "zero-one";
|
|
185
|
+
imagenet: "imagenet";
|
|
186
|
+
none: "none";
|
|
187
|
+
}>>;
|
|
188
|
+
preprocessMode: z.ZodOptional<z.ZodEnum<{
|
|
189
|
+
letterbox: "letterbox";
|
|
190
|
+
resize: "resize";
|
|
191
|
+
}>>;
|
|
192
|
+
faceAlignment: z.ZodOptional<z.ZodBoolean>;
|
|
193
|
+
extraFiles: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
194
|
+
url: z.ZodString;
|
|
195
|
+
filename: z.ZodString;
|
|
196
|
+
sizeMB: z.ZodNumber;
|
|
197
|
+
}, z.core.$strip>>>>;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
artifacts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
200
|
+
format: z.ZodEnum<{
|
|
201
|
+
onnx: "onnx";
|
|
202
|
+
coreml: "coreml";
|
|
203
|
+
openvino: "openvino";
|
|
204
|
+
tflite: "tflite";
|
|
205
|
+
pt: "pt";
|
|
206
|
+
}>;
|
|
207
|
+
precision: z.ZodOptional<z.ZodEnum<{
|
|
208
|
+
fp16: "fp16";
|
|
209
|
+
int8: "int8";
|
|
210
|
+
}>>;
|
|
211
|
+
sizeMB: z.ZodNumber;
|
|
212
|
+
validated: z.ZodBoolean;
|
|
213
|
+
files: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
214
|
+
}, z.core.$strip>>>;
|
|
215
|
+
}, z.core.$strip>, "mutation">;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
export type IModelConvertProvider = InferProvider<typeof modelConvertCapability>;
|