@camstack/types 1.0.5 → 1.0.7
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/base-addon.d.ts +2 -2
- package/dist/addon.d.ts +34 -0
- package/dist/addon.js +22 -0
- package/dist/addon.mjs +3 -0
- package/dist/cap-call-context.d.ts +37 -0
- package/dist/capabilities/addons.cap.d.ts +3 -3
- package/dist/capabilities/advanced-notifier.cap.d.ts +4 -4
- package/dist/capabilities/alerts.cap.d.ts +5 -5
- package/dist/capabilities/audio-codec.cap.d.ts +2 -2
- package/dist/capabilities/camera-streams.cap.d.ts +10 -10
- package/dist/capabilities/consumables.cap.d.ts +4 -4
- package/dist/capabilities/cover.cap.d.ts +4 -4
- package/dist/capabilities/decoder.cap.d.ts +1 -1
- package/dist/capabilities/local-network.cap.d.ts +6 -6
- package/dist/capabilities/log-destination.cap.d.ts +5 -5
- package/dist/capabilities/media-player.cap.d.ts +4 -4
- package/dist/capabilities/mesh-network.cap.d.ts +3 -3
- package/dist/capabilities/metrics-provider.cap.d.ts +33 -3
- package/dist/capabilities/network-access.cap.d.ts +7 -7
- package/dist/capabilities/oauth-integration.cap.d.ts +2 -2
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +3 -3
- package/dist/capabilities/platform-probe.cap.d.ts +1 -1
- package/dist/capabilities/restreamer.cap.d.ts +2 -2
- package/dist/capabilities/schemas/streaming-shared.d.ts +7 -7
- package/dist/capabilities/sso-bridge.cap.d.ts +3 -3
- package/dist/capabilities/storage.cap.d.ts +1 -1
- package/dist/capabilities/stream-broker.cap.d.ts +27 -27
- package/dist/capabilities/stream-params.cap.d.ts +14 -14
- package/dist/capabilities/user-management.cap.d.ts +20 -20
- package/dist/capabilities/vacuum-control.cap.d.ts +13 -13
- package/dist/capabilities/valve.cap.d.ts +4 -4
- package/dist/capabilities/webrtc-session.cap.d.ts +12 -12
- package/dist/deps/binary-downloader.d.ts +1 -1
- package/dist/deps/ffmpeg-downloader.d.ts +1 -1
- package/dist/deps/python-downloader.d.ts +1 -1
- package/dist/device/base-device-provider.d.ts +4 -1
- package/dist/encode-profile.d.ts +2 -2
- package/dist/err-msg-COpsHMw2.js +18 -0
- package/dist/err-msg-IQTHeDzc.mjs +13 -0
- package/dist/generated/addon-api.d.ts +22 -12
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/health/wiring-health.d.ts +16 -16
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1271 -4538
- package/dist/index.mjs +371 -3645
- package/dist/inference/runtime-capabilities.d.ts +54 -0
- package/dist/interfaces/addon.d.ts +2 -2
- package/dist/interfaces/metrics-provider.d.ts +3 -1
- package/dist/node.js +3 -3
- package/dist/node.mjs +1 -1
- package/dist/schemas/auth-records.d.ts +4 -4
- package/dist/sleep-B1dKJAMJ.mjs +3507 -0
- package/dist/sleep-p-5TJ_dy.js +3920 -0
- package/dist/storage/filesystem-storage-provider.d.ts +2 -1
- package/package.json +6 -1
|
@@ -5471,7 +5471,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
5471
5471
|
profile: "high" | "low" | "mid";
|
|
5472
5472
|
brokerId: string;
|
|
5473
5473
|
sourceCamStreamId: string | null;
|
|
5474
|
-
status: "error" | "idle" | "connecting" | "
|
|
5474
|
+
status: "error" | "idle" | "connecting" | "unassigned" | "streaming";
|
|
5475
5475
|
resolution?: {
|
|
5476
5476
|
width: number;
|
|
5477
5477
|
height: number;
|
|
@@ -5526,11 +5526,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
5526
5526
|
[x: string]: unknown;
|
|
5527
5527
|
deviceId: number;
|
|
5528
5528
|
requirements: Readonly<{
|
|
5529
|
-
acceptCodecs?: readonly ("h264" | "h265" | "
|
|
5529
|
+
acceptCodecs?: readonly ("h264" | "h265" | "mjpeg" | "hevc" | "av1" | "vp8" | "vp9")[] | undefined;
|
|
5530
5530
|
minHeight?: number | undefined;
|
|
5531
5531
|
minWidth?: number | undefined;
|
|
5532
5532
|
excludeDerived?: boolean | undefined;
|
|
5533
|
-
requireSiblingCodec?: readonly ("h264" | "h265" | "
|
|
5533
|
+
requireSiblingCodec?: readonly ("h264" | "h265" | "mjpeg" | "hevc" | "av1" | "vp8" | "vp9")[] | undefined;
|
|
5534
5534
|
}>;
|
|
5535
5535
|
preferences?: Readonly<{
|
|
5536
5536
|
preferredProviders?: readonly string[] | undefined;
|
|
@@ -8754,6 +8754,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
8754
8754
|
};
|
|
8755
8755
|
meta: object;
|
|
8756
8756
|
}>;
|
|
8757
|
+
dumpHeapSnapshot: import("@trpc/server").TRPCMutationProcedure<{
|
|
8758
|
+
input: any;
|
|
8759
|
+
output: any;
|
|
8760
|
+
meta: object;
|
|
8761
|
+
}>;
|
|
8757
8762
|
}>>;
|
|
8758
8763
|
motion: import("@trpc/server").TRPCBuiltRouter<{
|
|
8759
8764
|
ctx: TrpcContext;
|
|
@@ -11608,7 +11613,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11608
11613
|
encodeProfile?: {
|
|
11609
11614
|
video: {
|
|
11610
11615
|
codec: "h264" | "h265" | "copy";
|
|
11611
|
-
profile?: "main" | "
|
|
11616
|
+
profile?: "main" | "high" | "baseline" | undefined;
|
|
11612
11617
|
width?: number | undefined;
|
|
11613
11618
|
height?: number | undefined;
|
|
11614
11619
|
fps?: number | undefined;
|
|
@@ -11698,7 +11703,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11698
11703
|
profile: "high" | "low" | "mid";
|
|
11699
11704
|
brokerId: string;
|
|
11700
11705
|
sourceCamStreamId: string | null;
|
|
11701
|
-
status: "error" | "idle" | "connecting" | "
|
|
11706
|
+
status: "error" | "idle" | "connecting" | "unassigned" | "streaming";
|
|
11702
11707
|
resolution?: {
|
|
11703
11708
|
width: number;
|
|
11704
11709
|
height: number;
|
|
@@ -12165,7 +12170,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
12165
12170
|
framerate?: number | undefined;
|
|
12166
12171
|
bitrate?: number | undefined;
|
|
12167
12172
|
bitrateMode?: "vbr" | "cbr" | undefined;
|
|
12168
|
-
encoderProfile?: "main" | "
|
|
12173
|
+
encoderProfile?: "main" | "high" | "baseline" | undefined;
|
|
12169
12174
|
gop?: number | undefined;
|
|
12170
12175
|
audio?: boolean | undefined;
|
|
12171
12176
|
};
|
|
@@ -18825,7 +18830,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18825
18830
|
profile: "high" | "low" | "mid";
|
|
18826
18831
|
brokerId: string;
|
|
18827
18832
|
sourceCamStreamId: string | null;
|
|
18828
|
-
status: "error" | "idle" | "connecting" | "
|
|
18833
|
+
status: "error" | "idle" | "connecting" | "unassigned" | "streaming";
|
|
18829
18834
|
resolution?: {
|
|
18830
18835
|
width: number;
|
|
18831
18836
|
height: number;
|
|
@@ -18880,11 +18885,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18880
18885
|
[x: string]: unknown;
|
|
18881
18886
|
deviceId: number;
|
|
18882
18887
|
requirements: Readonly<{
|
|
18883
|
-
acceptCodecs?: readonly ("h264" | "h265" | "
|
|
18888
|
+
acceptCodecs?: readonly ("h264" | "h265" | "mjpeg" | "hevc" | "av1" | "vp8" | "vp9")[] | undefined;
|
|
18884
18889
|
minHeight?: number | undefined;
|
|
18885
18890
|
minWidth?: number | undefined;
|
|
18886
18891
|
excludeDerived?: boolean | undefined;
|
|
18887
|
-
requireSiblingCodec?: readonly ("h264" | "h265" | "
|
|
18892
|
+
requireSiblingCodec?: readonly ("h264" | "h265" | "mjpeg" | "hevc" | "av1" | "vp8" | "vp9")[] | undefined;
|
|
18888
18893
|
}>;
|
|
18889
18894
|
preferences?: Readonly<{
|
|
18890
18895
|
preferredProviders?: readonly string[] | undefined;
|
|
@@ -22108,6 +22113,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
22108
22113
|
};
|
|
22109
22114
|
meta: object;
|
|
22110
22115
|
}>;
|
|
22116
|
+
dumpHeapSnapshot: import("@trpc/server").TRPCMutationProcedure<{
|
|
22117
|
+
input: any;
|
|
22118
|
+
output: any;
|
|
22119
|
+
meta: object;
|
|
22120
|
+
}>;
|
|
22111
22121
|
}>>;
|
|
22112
22122
|
motion: import("@trpc/server").TRPCBuiltRouter<{
|
|
22113
22123
|
ctx: TrpcContext;
|
|
@@ -24962,7 +24972,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
24962
24972
|
encodeProfile?: {
|
|
24963
24973
|
video: {
|
|
24964
24974
|
codec: "h264" | "h265" | "copy";
|
|
24965
|
-
profile?: "main" | "
|
|
24975
|
+
profile?: "main" | "high" | "baseline" | undefined;
|
|
24966
24976
|
width?: number | undefined;
|
|
24967
24977
|
height?: number | undefined;
|
|
24968
24978
|
fps?: number | undefined;
|
|
@@ -25052,7 +25062,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
25052
25062
|
profile: "high" | "low" | "mid";
|
|
25053
25063
|
brokerId: string;
|
|
25054
25064
|
sourceCamStreamId: string | null;
|
|
25055
|
-
status: "error" | "idle" | "connecting" | "
|
|
25065
|
+
status: "error" | "idle" | "connecting" | "unassigned" | "streaming";
|
|
25056
25066
|
resolution?: {
|
|
25057
25067
|
width: number;
|
|
25058
25068
|
height: number;
|
|
@@ -25519,7 +25529,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
25519
25529
|
framerate?: number | undefined;
|
|
25520
25530
|
bitrate?: number | undefined;
|
|
25521
25531
|
bitrateMode?: "vbr" | "cbr" | undefined;
|
|
25522
|
-
encoderProfile?: "main" | "
|
|
25532
|
+
encoderProfile?: "main" | "high" | "baseline" | undefined;
|
|
25523
25533
|
gop?: number | undefined;
|
|
25524
25534
|
audio?: boolean | undefined;
|
|
25525
25535
|
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* scope+access check inside `protectedProcedure` (see
|
|
7
7
|
* `server/backend/src/api/trpc/trpc.middleware.ts`).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 703 method paths across 107 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -65,7 +65,7 @@ export interface SystemProxy {
|
|
|
65
65
|
readonly integrations: Pick<InferProvider<typeof integrationsCapability>, 'list' | 'get' | 'getByAddonId' | 'create' | 'update' | 'delete' | 'getSettings' | 'setSettings' | 'getAvailableTypes' | 'testConnection'>;
|
|
66
66
|
readonly localNetwork: Pick<InferProvider<typeof localNetworkCapability>, 'list' | 'getPreferred' | 'getConnectionEndpoints' | 'getAllowedAddresses' | 'setAllowedAddresses' | 'resetAllowlistToBestMatch'>;
|
|
67
67
|
readonly meshNetwork: Pick<InferProvider<typeof meshNetworkCapability>, 'getStatus' | 'join' | 'startLogin' | 'leave' | 'logout' | 'listPeers' | 'testConnection'>;
|
|
68
|
-
readonly metricsProvider: Pick<InferProvider<typeof metricsProviderCapability>, 'collectSnapshot' | 'getCached' | 'getCurrent' | 'getDiskSpace' | 'getGpuInfo' | 'getCpuTemperature' | 'getProcessStats' | 'listAddonInstances' | 'getAddonStats' | 'listNodeProcesses' | 'killProcess'>;
|
|
68
|
+
readonly metricsProvider: Pick<InferProvider<typeof metricsProviderCapability>, 'collectSnapshot' | 'getCached' | 'getCurrent' | 'getDiskSpace' | 'getGpuInfo' | 'getCpuTemperature' | 'getProcessStats' | 'listAddonInstances' | 'getAddonStats' | 'listNodeProcesses' | 'killProcess' | 'dumpHeapSnapshot'>;
|
|
69
69
|
readonly mqttBroker: Pick<InferProvider<typeof mqttBrokerCapability>, 'listBrokers' | 'getBrokerConfig' | 'addBroker' | 'removeBroker' | 'testConnection' | 'startEmbeddedBroker' | 'stopEmbeddedBroker' | 'getStatus'>;
|
|
70
70
|
readonly networkAccess: Pick<InferProvider<typeof networkAccessCapability>, 'start' | 'stop' | 'getEndpoint' | 'getStatus' | 'listEndpoints'>;
|
|
71
71
|
readonly networkQuality: Pick<InferProvider<typeof networkQualityCapability>, 'getAllStats'>;
|
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
/** What kind of target a probe addressed. */
|
|
13
13
|
export declare const wiringProbeKindSchema: z.ZodEnum<{
|
|
14
|
-
singleton: "singleton";
|
|
15
|
-
device: "device";
|
|
16
14
|
widget: "widget";
|
|
15
|
+
device: "device";
|
|
16
|
+
singleton: "singleton";
|
|
17
17
|
}>;
|
|
18
18
|
export type WiringProbeKind = z.infer<typeof wiringProbeKindSchema>;
|
|
19
19
|
/** Result of probing a single (cap|widget [, device]) target. */
|
|
20
20
|
export declare const wiringProbeResultSchema: z.ZodObject<{
|
|
21
21
|
capName: z.ZodString;
|
|
22
22
|
kind: z.ZodEnum<{
|
|
23
|
-
singleton: "singleton";
|
|
24
|
-
device: "device";
|
|
25
23
|
widget: "widget";
|
|
24
|
+
device: "device";
|
|
25
|
+
singleton: "singleton";
|
|
26
26
|
}>;
|
|
27
27
|
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
reachable: z.ZodBoolean;
|
|
@@ -36,9 +36,9 @@ export declare const wiringAddonHealthSchema: z.ZodObject<{
|
|
|
36
36
|
caps: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
37
37
|
capName: z.ZodString;
|
|
38
38
|
kind: z.ZodEnum<{
|
|
39
|
-
singleton: "singleton";
|
|
40
|
-
device: "device";
|
|
41
39
|
widget: "widget";
|
|
40
|
+
device: "device";
|
|
41
|
+
singleton: "singleton";
|
|
42
42
|
}>;
|
|
43
43
|
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
44
44
|
reachable: z.ZodBoolean;
|
|
@@ -48,9 +48,9 @@ export declare const wiringAddonHealthSchema: z.ZodObject<{
|
|
|
48
48
|
widgets: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
49
49
|
capName: z.ZodString;
|
|
50
50
|
kind: z.ZodEnum<{
|
|
51
|
-
singleton: "singleton";
|
|
52
|
-
device: "device";
|
|
53
51
|
widget: "widget";
|
|
52
|
+
device: "device";
|
|
53
|
+
singleton: "singleton";
|
|
54
54
|
}>;
|
|
55
55
|
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
56
56
|
reachable: z.ZodBoolean;
|
|
@@ -67,9 +67,9 @@ export declare const wiringNodeHealthSchema: z.ZodObject<{
|
|
|
67
67
|
caps: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
68
68
|
capName: z.ZodString;
|
|
69
69
|
kind: z.ZodEnum<{
|
|
70
|
-
singleton: "singleton";
|
|
71
|
-
device: "device";
|
|
72
70
|
widget: "widget";
|
|
71
|
+
device: "device";
|
|
72
|
+
singleton: "singleton";
|
|
73
73
|
}>;
|
|
74
74
|
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
75
75
|
reachable: z.ZodBoolean;
|
|
@@ -79,9 +79,9 @@ export declare const wiringNodeHealthSchema: z.ZodObject<{
|
|
|
79
79
|
widgets: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
80
80
|
capName: z.ZodString;
|
|
81
81
|
kind: z.ZodEnum<{
|
|
82
|
-
singleton: "singleton";
|
|
83
|
-
device: "device";
|
|
84
82
|
widget: "widget";
|
|
83
|
+
device: "device";
|
|
84
|
+
singleton: "singleton";
|
|
85
85
|
}>;
|
|
86
86
|
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
87
87
|
reachable: z.ZodBoolean;
|
|
@@ -103,9 +103,9 @@ export declare const wiringHealthSnapshotSchema: z.ZodObject<{
|
|
|
103
103
|
caps: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
104
104
|
capName: z.ZodString;
|
|
105
105
|
kind: z.ZodEnum<{
|
|
106
|
-
singleton: "singleton";
|
|
107
|
-
device: "device";
|
|
108
106
|
widget: "widget";
|
|
107
|
+
device: "device";
|
|
108
|
+
singleton: "singleton";
|
|
109
109
|
}>;
|
|
110
110
|
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
111
111
|
reachable: z.ZodBoolean;
|
|
@@ -115,9 +115,9 @@ export declare const wiringHealthSnapshotSchema: z.ZodObject<{
|
|
|
115
115
|
widgets: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
116
116
|
capName: z.ZodString;
|
|
117
117
|
kind: z.ZodEnum<{
|
|
118
|
-
singleton: "singleton";
|
|
119
|
-
device: "device";
|
|
120
118
|
widget: "widget";
|
|
119
|
+
device: "device";
|
|
120
|
+
singleton: "singleton";
|
|
121
121
|
}>;
|
|
122
122
|
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
123
123
|
reachable: z.ZodBoolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -108,6 +108,7 @@ export type * from './interfaces/alerts.js';
|
|
|
108
108
|
export type * from './interfaces/queryable.js';
|
|
109
109
|
export * from './enums/index.js';
|
|
110
110
|
export * from './constants.js';
|
|
111
|
+
export * from './cap-call-context.js';
|
|
111
112
|
export { parseJsonUnknown, parseJsonObject, parseJsonArray, asJsonObject, asJsonArray, asString, asNumber, asBoolean, } from './utils/json-safe.js';
|
|
112
113
|
export { hfModelUrl } from './utils/hf-url.js';
|
|
113
114
|
export { cosineSimilarity } from './utils/cosine-similarity.js';
|
|
@@ -181,3 +182,5 @@ export { RingBuffer } from './utils/ring-buffer.js';
|
|
|
181
182
|
export { rectsToCells, cellsToRects, type NormRect } from './utils/privacy-grid-raster.js';
|
|
182
183
|
export { sleep, sleepCancellable } from './utils/sleep.js';
|
|
183
184
|
export { bindAddonActions } from './helpers/bind-addon-actions.js';
|
|
185
|
+
export { supportedRuntimes, runtimeDevices, defaultDeviceFor, modelFormatForRuntime, scoreRuntimes, } from './inference/runtime-capabilities.js';
|
|
186
|
+
export type { RuntimeId, DeviceOption } from './inference/runtime-capabilities.js';
|