@camstack/types 1.1.56 → 1.1.58
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/index.d.ts +1 -1
- package/dist/capabilities/pipeline-executor.cap.d.ts +0 -26
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +182 -32
- package/dist/capabilities/pipeline-runner.cap.d.ts +12 -0
- package/dist/generated/addon-api.d.ts +186 -88
- package/dist/generated/device-proxy.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +191 -49
- package/dist/index.mjs +190 -50
- package/dist/interfaces/pipeline-runner-capability.d.ts +22 -0
- package/dist/interfaces/platform.d.ts +2 -0
- package/dist/{sleep-D8ZkNoYz.mjs → sleep-BQ60XlE9.mjs} +2 -0
- package/dist/{sleep-CF-UWPp0.js → sleep-eVjOy4ev.js} +2 -0
- package/dist/types/agent-pipeline-settings.d.ts +41 -21
- package/dist/utils/runtime-mapping.d.ts +17 -1
- package/package.json +1 -1
|
@@ -10304,18 +10304,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10304
10304
|
output: import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineDefaultStepOutput[];
|
|
10305
10305
|
meta: object;
|
|
10306
10306
|
}>;
|
|
10307
|
-
reprobeEngine: import("@trpc/server").TRPCMutationProcedure<{
|
|
10308
|
-
input: {
|
|
10309
|
-
nodeId?: string | undefined;
|
|
10310
|
-
} | undefined;
|
|
10311
|
-
output: {
|
|
10312
|
-
runtime: "node" | "python";
|
|
10313
|
-
backend: string;
|
|
10314
|
-
format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
|
|
10315
|
-
device?: string | undefined;
|
|
10316
|
-
};
|
|
10317
|
-
meta: object;
|
|
10318
|
-
}>;
|
|
10319
10307
|
getEngineProvisioning: import("@trpc/server").TRPCQueryProcedure<{
|
|
10320
10308
|
input: {
|
|
10321
10309
|
[x: string]: unknown;
|
|
@@ -10929,6 +10917,27 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10929
10917
|
};
|
|
10930
10918
|
meta: object;
|
|
10931
10919
|
}>;
|
|
10920
|
+
setPipelineDevicePin: import("@trpc/server").TRPCMutationProcedure<{
|
|
10921
|
+
input: {
|
|
10922
|
+
[x: string]: unknown;
|
|
10923
|
+
deviceId: number;
|
|
10924
|
+
deviceKey: string;
|
|
10925
|
+
};
|
|
10926
|
+
output: {
|
|
10927
|
+
success: true;
|
|
10928
|
+
};
|
|
10929
|
+
meta: object;
|
|
10930
|
+
}>;
|
|
10931
|
+
getPipelineDevicePin: import("@trpc/server").TRPCQueryProcedure<{
|
|
10932
|
+
input: {
|
|
10933
|
+
[x: string]: unknown;
|
|
10934
|
+
deviceId: number;
|
|
10935
|
+
};
|
|
10936
|
+
output: {
|
|
10937
|
+
deviceKey: string | null;
|
|
10938
|
+
};
|
|
10939
|
+
meta: object;
|
|
10940
|
+
}>;
|
|
10932
10941
|
rebalance: import("@trpc/server").TRPCMutationProcedure<{
|
|
10933
10942
|
input: {
|
|
10934
10943
|
nodeId?: string | undefined;
|
|
@@ -10979,6 +10988,12 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10979
10988
|
avgInferenceFps: number;
|
|
10980
10989
|
avgInferenceTimeMs: number;
|
|
10981
10990
|
queueDepthTotal: number;
|
|
10991
|
+
devices: {
|
|
10992
|
+
deviceKey: string;
|
|
10993
|
+
backend: string;
|
|
10994
|
+
attachedCameras: number;
|
|
10995
|
+
queueDepthTotal: number;
|
|
10996
|
+
}[];
|
|
10982
10997
|
hardware: {
|
|
10983
10998
|
hasGpu: boolean;
|
|
10984
10999
|
inferenceBackend?: string | undefined;
|
|
@@ -11113,11 +11128,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11113
11128
|
agentNodeId: string;
|
|
11114
11129
|
};
|
|
11115
11130
|
output: {
|
|
11116
|
-
addonDefaults: Readonly<Record<string, {
|
|
11117
|
-
enabled: boolean;
|
|
11118
|
-
settings: Readonly<Record<string, unknown>>;
|
|
11119
|
-
modelId?: string | undefined;
|
|
11120
|
-
}>>;
|
|
11121
11131
|
maxCameras: number | null;
|
|
11122
11132
|
detectWeight?: number | undefined;
|
|
11123
11133
|
detect?: boolean | undefined;
|
|
@@ -11128,6 +11138,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11128
11138
|
inferenceDevices?: Record<string, {
|
|
11129
11139
|
enabled: boolean;
|
|
11130
11140
|
weight?: number | undefined;
|
|
11141
|
+
maxSessions?: number | undefined;
|
|
11142
|
+
steps?: Record<string, {
|
|
11143
|
+
modelId?: string | undefined;
|
|
11144
|
+
settings?: Record<string, unknown> | undefined;
|
|
11145
|
+
}> | undefined;
|
|
11131
11146
|
}> | undefined;
|
|
11132
11147
|
} | null;
|
|
11133
11148
|
meta: object;
|
|
@@ -11139,11 +11154,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11139
11154
|
output: readonly {
|
|
11140
11155
|
nodeId: string;
|
|
11141
11156
|
settings: {
|
|
11142
|
-
addonDefaults: Readonly<Record<string, {
|
|
11143
|
-
enabled: boolean;
|
|
11144
|
-
settings: Readonly<Record<string, unknown>>;
|
|
11145
|
-
modelId?: string | undefined;
|
|
11146
|
-
}>>;
|
|
11147
11157
|
maxCameras: number | null;
|
|
11148
11158
|
detectWeight?: number | undefined;
|
|
11149
11159
|
detect?: boolean | undefined;
|
|
@@ -11154,26 +11164,16 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11154
11164
|
inferenceDevices?: Record<string, {
|
|
11155
11165
|
enabled: boolean;
|
|
11156
11166
|
weight?: number | undefined;
|
|
11167
|
+
maxSessions?: number | undefined;
|
|
11168
|
+
steps?: Record<string, {
|
|
11169
|
+
modelId?: string | undefined;
|
|
11170
|
+
settings?: Record<string, unknown> | undefined;
|
|
11171
|
+
}> | undefined;
|
|
11157
11172
|
}> | undefined;
|
|
11158
11173
|
};
|
|
11159
11174
|
}[];
|
|
11160
11175
|
meta: object;
|
|
11161
11176
|
}>;
|
|
11162
|
-
setAgentAddonDefaults: import("@trpc/server").TRPCMutationProcedure<{
|
|
11163
|
-
input: {
|
|
11164
|
-
[x: string]: unknown;
|
|
11165
|
-
agentNodeId: string;
|
|
11166
|
-
defaults: Record<string, {
|
|
11167
|
-
enabled: boolean;
|
|
11168
|
-
settings: Readonly<Record<string, unknown>>;
|
|
11169
|
-
modelId?: string | undefined;
|
|
11170
|
-
}>;
|
|
11171
|
-
};
|
|
11172
|
-
output: {
|
|
11173
|
-
success: true;
|
|
11174
|
-
};
|
|
11175
|
-
meta: object;
|
|
11176
|
-
}>;
|
|
11177
11177
|
removeAgentSettings: import("@trpc/server").TRPCMutationProcedure<{
|
|
11178
11178
|
input: {
|
|
11179
11179
|
[x: string]: unknown;
|
|
@@ -11231,6 +11231,51 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11231
11231
|
};
|
|
11232
11232
|
meta: object;
|
|
11233
11233
|
}>;
|
|
11234
|
+
setAgentInferenceDevices: import("@trpc/server").TRPCMutationProcedure<{
|
|
11235
|
+
input: {
|
|
11236
|
+
[x: string]: unknown;
|
|
11237
|
+
agentNodeId: string;
|
|
11238
|
+
inferenceDevices: Record<string, {
|
|
11239
|
+
enabled: boolean;
|
|
11240
|
+
weight?: number | undefined;
|
|
11241
|
+
maxSessions?: number | undefined;
|
|
11242
|
+
steps?: Record<string, {
|
|
11243
|
+
modelId?: string | undefined;
|
|
11244
|
+
settings?: Record<string, unknown> | undefined;
|
|
11245
|
+
}> | undefined;
|
|
11246
|
+
}>;
|
|
11247
|
+
};
|
|
11248
|
+
output: {
|
|
11249
|
+
success: true;
|
|
11250
|
+
};
|
|
11251
|
+
meta: object;
|
|
11252
|
+
}>;
|
|
11253
|
+
getNodeInferenceDevices: import("@trpc/server").TRPCQueryProcedure<{
|
|
11254
|
+
input: {
|
|
11255
|
+
[x: string]: unknown;
|
|
11256
|
+
nodeId: string;
|
|
11257
|
+
};
|
|
11258
|
+
output: {
|
|
11259
|
+
nodeId: string;
|
|
11260
|
+
reachable: boolean;
|
|
11261
|
+
devices: readonly {
|
|
11262
|
+
key: string;
|
|
11263
|
+
backend: string;
|
|
11264
|
+
device: string;
|
|
11265
|
+
format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
|
|
11266
|
+
available: boolean;
|
|
11267
|
+
enabled: boolean;
|
|
11268
|
+
weight: number;
|
|
11269
|
+
maxSessions: number | null;
|
|
11270
|
+
defaultModelId: string;
|
|
11271
|
+
steps?: Record<string, {
|
|
11272
|
+
modelId?: string | undefined;
|
|
11273
|
+
settings?: Record<string, unknown> | undefined;
|
|
11274
|
+
}> | undefined;
|
|
11275
|
+
}[];
|
|
11276
|
+
};
|
|
11277
|
+
meta: object;
|
|
11278
|
+
}>;
|
|
11234
11279
|
resetNodePipelineDefaults: import("@trpc/server").TRPCMutationProcedure<{
|
|
11235
11280
|
input: {
|
|
11236
11281
|
[x: string]: unknown;
|
|
@@ -11251,11 +11296,10 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11251
11296
|
output: {
|
|
11252
11297
|
pinnedAgentNodeId?: string | undefined;
|
|
11253
11298
|
stepToggles?: Record<string, boolean> | undefined;
|
|
11254
|
-
|
|
11255
|
-
enabled?: boolean | undefined;
|
|
11299
|
+
stepOverridesByDevice?: Record<string, Record<string, Record<string, {
|
|
11256
11300
|
modelId?: string | undefined;
|
|
11257
11301
|
settings?: Readonly<Record<string, unknown>> | undefined;
|
|
11258
|
-
}
|
|
11302
|
+
}>>> | undefined;
|
|
11259
11303
|
pipelineByAgent?: Record<string, {
|
|
11260
11304
|
steps: readonly import("@camstack/types").PipelineStepInputOutput[];
|
|
11261
11305
|
audio: {
|
|
@@ -11283,11 +11327,10 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11283
11327
|
[x: string]: unknown;
|
|
11284
11328
|
deviceId: number;
|
|
11285
11329
|
};
|
|
11286
|
-
output: Record<string, Record<string, {
|
|
11287
|
-
enabled?: boolean | undefined;
|
|
11330
|
+
output: Record<string, Record<string, Record<string, {
|
|
11288
11331
|
modelId?: string | undefined;
|
|
11289
11332
|
settings?: Readonly<Record<string, unknown>> | undefined;
|
|
11290
|
-
}
|
|
11333
|
+
}>>> | null;
|
|
11291
11334
|
meta: object;
|
|
11292
11335
|
}>;
|
|
11293
11336
|
setCameraStepOverride: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -11295,9 +11338,9 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11295
11338
|
[x: string]: unknown;
|
|
11296
11339
|
deviceId: number;
|
|
11297
11340
|
agentNodeId: string;
|
|
11341
|
+
deviceKey: string;
|
|
11298
11342
|
addonId: string;
|
|
11299
11343
|
patch: {
|
|
11300
|
-
enabled?: boolean | undefined;
|
|
11301
11344
|
modelId?: string | undefined;
|
|
11302
11345
|
settings?: Readonly<Record<string, unknown>> | undefined;
|
|
11303
11346
|
} | null;
|
|
@@ -11786,6 +11829,12 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11786
11829
|
avgInferenceFps: number;
|
|
11787
11830
|
avgInferenceTimeMs: number;
|
|
11788
11831
|
queueDepthTotal: number;
|
|
11832
|
+
devices: {
|
|
11833
|
+
deviceKey: string;
|
|
11834
|
+
backend: string;
|
|
11835
|
+
attachedCameras: number;
|
|
11836
|
+
queueDepthTotal: number;
|
|
11837
|
+
}[];
|
|
11789
11838
|
hardware: {
|
|
11790
11839
|
hasGpu: boolean;
|
|
11791
11840
|
inferenceBackend?: string | undefined;
|
|
@@ -27059,18 +27108,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27059
27108
|
output: import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineDefaultStepOutput[];
|
|
27060
27109
|
meta: object;
|
|
27061
27110
|
}>;
|
|
27062
|
-
reprobeEngine: import("@trpc/server").TRPCMutationProcedure<{
|
|
27063
|
-
input: {
|
|
27064
|
-
nodeId?: string | undefined;
|
|
27065
|
-
} | undefined;
|
|
27066
|
-
output: {
|
|
27067
|
-
runtime: "node" | "python";
|
|
27068
|
-
backend: string;
|
|
27069
|
-
format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
|
|
27070
|
-
device?: string | undefined;
|
|
27071
|
-
};
|
|
27072
|
-
meta: object;
|
|
27073
|
-
}>;
|
|
27074
27111
|
getEngineProvisioning: import("@trpc/server").TRPCQueryProcedure<{
|
|
27075
27112
|
input: {
|
|
27076
27113
|
[x: string]: unknown;
|
|
@@ -27684,6 +27721,27 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27684
27721
|
};
|
|
27685
27722
|
meta: object;
|
|
27686
27723
|
}>;
|
|
27724
|
+
setPipelineDevicePin: import("@trpc/server").TRPCMutationProcedure<{
|
|
27725
|
+
input: {
|
|
27726
|
+
[x: string]: unknown;
|
|
27727
|
+
deviceId: number;
|
|
27728
|
+
deviceKey: string;
|
|
27729
|
+
};
|
|
27730
|
+
output: {
|
|
27731
|
+
success: true;
|
|
27732
|
+
};
|
|
27733
|
+
meta: object;
|
|
27734
|
+
}>;
|
|
27735
|
+
getPipelineDevicePin: import("@trpc/server").TRPCQueryProcedure<{
|
|
27736
|
+
input: {
|
|
27737
|
+
[x: string]: unknown;
|
|
27738
|
+
deviceId: number;
|
|
27739
|
+
};
|
|
27740
|
+
output: {
|
|
27741
|
+
deviceKey: string | null;
|
|
27742
|
+
};
|
|
27743
|
+
meta: object;
|
|
27744
|
+
}>;
|
|
27687
27745
|
rebalance: import("@trpc/server").TRPCMutationProcedure<{
|
|
27688
27746
|
input: {
|
|
27689
27747
|
nodeId?: string | undefined;
|
|
@@ -27734,6 +27792,12 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27734
27792
|
avgInferenceFps: number;
|
|
27735
27793
|
avgInferenceTimeMs: number;
|
|
27736
27794
|
queueDepthTotal: number;
|
|
27795
|
+
devices: {
|
|
27796
|
+
deviceKey: string;
|
|
27797
|
+
backend: string;
|
|
27798
|
+
attachedCameras: number;
|
|
27799
|
+
queueDepthTotal: number;
|
|
27800
|
+
}[];
|
|
27737
27801
|
hardware: {
|
|
27738
27802
|
hasGpu: boolean;
|
|
27739
27803
|
inferenceBackend?: string | undefined;
|
|
@@ -27868,11 +27932,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27868
27932
|
agentNodeId: string;
|
|
27869
27933
|
};
|
|
27870
27934
|
output: {
|
|
27871
|
-
addonDefaults: Readonly<Record<string, {
|
|
27872
|
-
enabled: boolean;
|
|
27873
|
-
settings: Readonly<Record<string, unknown>>;
|
|
27874
|
-
modelId?: string | undefined;
|
|
27875
|
-
}>>;
|
|
27876
27935
|
maxCameras: number | null;
|
|
27877
27936
|
detectWeight?: number | undefined;
|
|
27878
27937
|
detect?: boolean | undefined;
|
|
@@ -27883,6 +27942,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27883
27942
|
inferenceDevices?: Record<string, {
|
|
27884
27943
|
enabled: boolean;
|
|
27885
27944
|
weight?: number | undefined;
|
|
27945
|
+
maxSessions?: number | undefined;
|
|
27946
|
+
steps?: Record<string, {
|
|
27947
|
+
modelId?: string | undefined;
|
|
27948
|
+
settings?: Record<string, unknown> | undefined;
|
|
27949
|
+
}> | undefined;
|
|
27886
27950
|
}> | undefined;
|
|
27887
27951
|
} | null;
|
|
27888
27952
|
meta: object;
|
|
@@ -27894,11 +27958,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27894
27958
|
output: readonly {
|
|
27895
27959
|
nodeId: string;
|
|
27896
27960
|
settings: {
|
|
27897
|
-
addonDefaults: Readonly<Record<string, {
|
|
27898
|
-
enabled: boolean;
|
|
27899
|
-
settings: Readonly<Record<string, unknown>>;
|
|
27900
|
-
modelId?: string | undefined;
|
|
27901
|
-
}>>;
|
|
27902
27961
|
maxCameras: number | null;
|
|
27903
27962
|
detectWeight?: number | undefined;
|
|
27904
27963
|
detect?: boolean | undefined;
|
|
@@ -27909,26 +27968,16 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27909
27968
|
inferenceDevices?: Record<string, {
|
|
27910
27969
|
enabled: boolean;
|
|
27911
27970
|
weight?: number | undefined;
|
|
27971
|
+
maxSessions?: number | undefined;
|
|
27972
|
+
steps?: Record<string, {
|
|
27973
|
+
modelId?: string | undefined;
|
|
27974
|
+
settings?: Record<string, unknown> | undefined;
|
|
27975
|
+
}> | undefined;
|
|
27912
27976
|
}> | undefined;
|
|
27913
27977
|
};
|
|
27914
27978
|
}[];
|
|
27915
27979
|
meta: object;
|
|
27916
27980
|
}>;
|
|
27917
|
-
setAgentAddonDefaults: import("@trpc/server").TRPCMutationProcedure<{
|
|
27918
|
-
input: {
|
|
27919
|
-
[x: string]: unknown;
|
|
27920
|
-
agentNodeId: string;
|
|
27921
|
-
defaults: Record<string, {
|
|
27922
|
-
enabled: boolean;
|
|
27923
|
-
settings: Readonly<Record<string, unknown>>;
|
|
27924
|
-
modelId?: string | undefined;
|
|
27925
|
-
}>;
|
|
27926
|
-
};
|
|
27927
|
-
output: {
|
|
27928
|
-
success: true;
|
|
27929
|
-
};
|
|
27930
|
-
meta: object;
|
|
27931
|
-
}>;
|
|
27932
27981
|
removeAgentSettings: import("@trpc/server").TRPCMutationProcedure<{
|
|
27933
27982
|
input: {
|
|
27934
27983
|
[x: string]: unknown;
|
|
@@ -27986,6 +28035,51 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27986
28035
|
};
|
|
27987
28036
|
meta: object;
|
|
27988
28037
|
}>;
|
|
28038
|
+
setAgentInferenceDevices: import("@trpc/server").TRPCMutationProcedure<{
|
|
28039
|
+
input: {
|
|
28040
|
+
[x: string]: unknown;
|
|
28041
|
+
agentNodeId: string;
|
|
28042
|
+
inferenceDevices: Record<string, {
|
|
28043
|
+
enabled: boolean;
|
|
28044
|
+
weight?: number | undefined;
|
|
28045
|
+
maxSessions?: number | undefined;
|
|
28046
|
+
steps?: Record<string, {
|
|
28047
|
+
modelId?: string | undefined;
|
|
28048
|
+
settings?: Record<string, unknown> | undefined;
|
|
28049
|
+
}> | undefined;
|
|
28050
|
+
}>;
|
|
28051
|
+
};
|
|
28052
|
+
output: {
|
|
28053
|
+
success: true;
|
|
28054
|
+
};
|
|
28055
|
+
meta: object;
|
|
28056
|
+
}>;
|
|
28057
|
+
getNodeInferenceDevices: import("@trpc/server").TRPCQueryProcedure<{
|
|
28058
|
+
input: {
|
|
28059
|
+
[x: string]: unknown;
|
|
28060
|
+
nodeId: string;
|
|
28061
|
+
};
|
|
28062
|
+
output: {
|
|
28063
|
+
nodeId: string;
|
|
28064
|
+
reachable: boolean;
|
|
28065
|
+
devices: readonly {
|
|
28066
|
+
key: string;
|
|
28067
|
+
backend: string;
|
|
28068
|
+
device: string;
|
|
28069
|
+
format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
|
|
28070
|
+
available: boolean;
|
|
28071
|
+
enabled: boolean;
|
|
28072
|
+
weight: number;
|
|
28073
|
+
maxSessions: number | null;
|
|
28074
|
+
defaultModelId: string;
|
|
28075
|
+
steps?: Record<string, {
|
|
28076
|
+
modelId?: string | undefined;
|
|
28077
|
+
settings?: Record<string, unknown> | undefined;
|
|
28078
|
+
}> | undefined;
|
|
28079
|
+
}[];
|
|
28080
|
+
};
|
|
28081
|
+
meta: object;
|
|
28082
|
+
}>;
|
|
27989
28083
|
resetNodePipelineDefaults: import("@trpc/server").TRPCMutationProcedure<{
|
|
27990
28084
|
input: {
|
|
27991
28085
|
[x: string]: unknown;
|
|
@@ -28006,11 +28100,10 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
28006
28100
|
output: {
|
|
28007
28101
|
pinnedAgentNodeId?: string | undefined;
|
|
28008
28102
|
stepToggles?: Record<string, boolean> | undefined;
|
|
28009
|
-
|
|
28010
|
-
enabled?: boolean | undefined;
|
|
28103
|
+
stepOverridesByDevice?: Record<string, Record<string, Record<string, {
|
|
28011
28104
|
modelId?: string | undefined;
|
|
28012
28105
|
settings?: Readonly<Record<string, unknown>> | undefined;
|
|
28013
|
-
}
|
|
28106
|
+
}>>> | undefined;
|
|
28014
28107
|
pipelineByAgent?: Record<string, {
|
|
28015
28108
|
steps: readonly import("@camstack/types").PipelineStepInputOutput[];
|
|
28016
28109
|
audio: {
|
|
@@ -28038,11 +28131,10 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
28038
28131
|
[x: string]: unknown;
|
|
28039
28132
|
deviceId: number;
|
|
28040
28133
|
};
|
|
28041
|
-
output: Record<string, Record<string, {
|
|
28042
|
-
enabled?: boolean | undefined;
|
|
28134
|
+
output: Record<string, Record<string, Record<string, {
|
|
28043
28135
|
modelId?: string | undefined;
|
|
28044
28136
|
settings?: Readonly<Record<string, unknown>> | undefined;
|
|
28045
|
-
}
|
|
28137
|
+
}>>> | null;
|
|
28046
28138
|
meta: object;
|
|
28047
28139
|
}>;
|
|
28048
28140
|
setCameraStepOverride: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -28050,9 +28142,9 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
28050
28142
|
[x: string]: unknown;
|
|
28051
28143
|
deviceId: number;
|
|
28052
28144
|
agentNodeId: string;
|
|
28145
|
+
deviceKey: string;
|
|
28053
28146
|
addonId: string;
|
|
28054
28147
|
patch: {
|
|
28055
|
-
enabled?: boolean | undefined;
|
|
28056
28148
|
modelId?: string | undefined;
|
|
28057
28149
|
settings?: Readonly<Record<string, unknown>> | undefined;
|
|
28058
28150
|
} | null;
|
|
@@ -28541,6 +28633,12 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
28541
28633
|
avgInferenceFps: number;
|
|
28542
28634
|
avgInferenceTimeMs: number;
|
|
28543
28635
|
queueDepthTotal: number;
|
|
28636
|
+
devices: {
|
|
28637
|
+
deviceKey: string;
|
|
28638
|
+
backend: string;
|
|
28639
|
+
attachedCameras: number;
|
|
28640
|
+
queueDepthTotal: number;
|
|
28641
|
+
}[];
|
|
28544
28642
|
hardware: {
|
|
28545
28643
|
hasGpu: boolean;
|
|
28546
28644
|
inferenceBackend?: string | undefined;
|
|
@@ -271,7 +271,7 @@ export interface DeviceProxy {
|
|
|
271
271
|
readonly faceGallery: Pick<InferDeviceProxyCap<typeof faceGalleryCapability>, 'getFaceByTrack'>;
|
|
272
272
|
readonly networkQuality: Pick<InferDeviceProxyCap<typeof networkQualityCapability>, 'getDeviceStats' | 'reportClientStats'>;
|
|
273
273
|
readonly pipelineExecutor: Pick<InferDeviceProxyCap<typeof pipelineExecutorCapability>, 'runPipeline' | 'runPipelineBatch'>;
|
|
274
|
-
readonly pipelineOrchestrator: Pick<InferDeviceProxyCap<typeof pipelineOrchestratorCapability>, 'assignPipeline' | 'unassignPipeline' | 'getPipelineAssignment' | 'getCameraMetrics' | 'assignAudio' | 'unassignAudio' | 'getAudioAssignment' | 'getAudioAssignments' | 'getCameraSettings' | 'setCameraStepToggle' | 'getCameraStepOverrides' | 'setCameraStepOverride' | 'setCameraPipelineForAgent' | 'resolvePipeline' | 'getCameraStatus' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
|
|
274
|
+
readonly pipelineOrchestrator: Pick<InferDeviceProxyCap<typeof pipelineOrchestratorCapability>, 'assignPipeline' | 'unassignPipeline' | 'setPipelineDevicePin' | 'getPipelineDevicePin' | 'getPipelineAssignment' | 'getCameraMetrics' | 'assignAudio' | 'unassignAudio' | 'getAudioAssignment' | 'getAudioAssignments' | 'getCameraSettings' | 'setCameraStepToggle' | 'getCameraStepOverrides' | 'setCameraStepOverride' | 'setCameraPipelineForAgent' | 'resolvePipeline' | 'getCameraStatus' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
|
|
275
275
|
readonly pipelineRunner: Pick<InferDeviceProxyCap<typeof pipelineRunnerCapability>, 'detachCamera' | 'getCameraMetrics' | 'runDetailSubtree'>;
|
|
276
276
|
readonly plateGallery: Pick<InferDeviceProxyCap<typeof plateGalleryCapability>, 'listPlates' | 'getPlateByTrack'>;
|
|
277
277
|
readonly recording: Pick<InferDeviceProxyCap<typeof recordingCapability>, 'getAvailability' | 'getDaysWithRecordings' | 'getPlaybackManifest' | 'getDeviceConfig' | 'locateSegment' | 'readSegmentBytes' | 'setDeviceConfig' | 'rescanStorage' | 'pruneFootage' | 'deleteFootprint' | 'getStatus' | 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
|
|
@@ -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: 802 method paths across 116 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -75,8 +75,8 @@ export interface SystemProxy {
|
|
|
75
75
|
readonly networkQuality: Pick<InferProvider<typeof networkQualityCapability>, 'getAllStats'>;
|
|
76
76
|
readonly nodes: Pick<InferProvider<typeof nodesCapability>, 'topology' | 'deployAddon' | 'undeployAddon' | 'restartAddon' | 'restartProcess' | 'restartNode' | 'shutdownNode' | 'renameNode' | 'clusterAddonStatus' | 'getCapUsageGraph' | 'getNodeAddons' | 'setProcessLogLevel' | 'executeQuery'>;
|
|
77
77
|
readonly notificationOutput: Pick<InferProvider<typeof notificationOutputCapability>, 'listTargetKinds' | 'listTargets' | 'discoverTargets' | 'send' | 'testTarget' | 'upsertTarget' | 'deleteTarget' | 'setTargetEnabled'>;
|
|
78
|
-
readonly pipelineExecutor: Pick<InferProvider<typeof pipelineExecutorCapability>, 'getAvailableEngines' | 'getSelectedEngine' | 'getDefaultSteps' | '
|
|
79
|
-
readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getAudioNodeLoad' | 'getAgentSettings' | 'listAgentSettings' | '
|
|
78
|
+
readonly pipelineExecutor: Pick<InferProvider<typeof pipelineExecutorCapability>, 'getAvailableEngines' | 'getSelectedEngine' | 'getDefaultSteps' | 'getEngineProvisioning' | 'getVideoPipelineSteps' | 'setVideoPipelineSteps' | 'clearDeviceOverrides' | 'getSchema' | 'getGlobalSteps' | 'getGlobalPipelineConfig' | 'getOrchestratorConfigSchema' | 'validatePipeline' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate' | 'getCapabilities' | 'getAddonModels' | 'downloadModel' | 'deleteModel' | 'cacheFrameInPool' | 'inferCached' | 'uncacheFrame' | 'getEffectiveTuning' | 'listLoadedEngines' | 'spinEngine' | 'killEngine' | 'listReferenceImages' | 'getReferenceImage' | 'getReferenceAudioFiles' | 'getReferenceAudio' | 'getAudioCapabilities' | 'runAudioTest' | 'getDetectionConfigSchema'>;
|
|
79
|
+
readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getIngestOwner' | 'getAudioNodeLoad' | 'getAgentSettings' | 'listAgentSettings' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'setAgentDetectWeight' | 'setAgentCapabilities' | 'setAgentReachableHost' | 'setAgentInferenceDevices' | 'getNodeInferenceDevices' | 'resetNodePipelineDefaults' | 'getCameraStatuses' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate'>;
|
|
80
80
|
readonly pipelineRunner: Pick<InferProvider<typeof pipelineRunnerCapability>, 'attachCamera' | 'reportMotion' | 'getLocalLoad' | 'getLocalMetrics' | 'getAllCameraMetrics' | 'getLocalCameras' | 'getNativeCrop'>;
|
|
81
81
|
readonly plateGallery: Pick<InferProvider<typeof plateGalleryCapability>, 'getPlateMedia' | 'searchPlates' | 'suggestPlateClusters' | 'correctPlateText' | 'deletePlate' | 'listVehicles' | 'createVehicle' | 'renameVehicle' | 'deleteVehicle' | 'listVehicleSamples' | 'removeVehicleSample' | 'assignPlate' | 'unassignPlate' | 'assignPlates' | 'unassignPlates'>;
|
|
82
82
|
readonly recording: Pick<InferProvider<typeof recordingCapability>, 'getStorageUsage' | 'listOpsLog'>;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export type { EngineOutput, LetterboxMeta, ModelInputMeta } from './types/engine
|
|
|
12
12
|
export * from './types/pipeline.js';
|
|
13
13
|
export * from './types/pipeline-step.js';
|
|
14
14
|
export type { CameraPipelineConfig, PipelineTemplate as CameraPipelineTemplate, } from './types/camera-pipeline.js';
|
|
15
|
-
export type { AgentAddonConfig, AgentPipelineSettings, CameraPipelineSettings, CameraStepOverridePatch, } from './types/agent-pipeline-settings.js';
|
|
15
|
+
export type { AgentAddonConfig, AgentPipelineSettings, CameraPipelineSettings, CameraStepOverridePatch, DeviceStepConfig, } from './types/agent-pipeline-settings.js';
|
|
16
16
|
export * from './types/live-state.js';
|
|
17
17
|
export * from './types/analytics.js';
|
|
18
18
|
export type { PipelineAddonSchema, PipelineModelOption, PipelineSlotSchema, PipelineSchema, AvailableEngine, PipelineDefaultStep, PipelineTemplateStep, PipelineTemplate, TemplateValidationResult, } from './types/pipeline-schema.js';
|
|
@@ -113,7 +113,7 @@ export { parseJsonUnknown, parseJsonObject, parseJsonArray, asJsonObject, asJson
|
|
|
113
113
|
export { hfModelUrl } from './utils/hf-url.js';
|
|
114
114
|
export { cosineSimilarity } from './utils/cosine-similarity.js';
|
|
115
115
|
export { ElementConfigStore } from './utils/element-config-store.js';
|
|
116
|
-
export { resolveDetectionRuntime, resolveModelFormat, resolveAddonRuntime, formatForBackend, formatForRuntime, pythonScriptForBackend, requiresPython, BACKEND_TO_FORMAT, RUNTIME_TO_FORMAT, PYTHON_SCRIPT, } from './utils/runtime-mapping.js';
|
|
116
|
+
export { resolveDetectionRuntime, resolveModelFormat, resolveAddonRuntime, formatForBackend, formatForRuntime, pythonScriptForBackend, requiresPython, BACKEND_TO_FORMAT, DEVICE_BACKEND_TO_FORMAT, deviceBackendToFormat, RUNTIME_TO_FORMAT, PYTHON_SCRIPT, } from './utils/runtime-mapping.js';
|
|
117
117
|
export type { PipelineRuntime } from './utils/runtime-mapping.js';
|
|
118
118
|
export { runInferenceStep } from './utils/run-inference-step.js';
|
|
119
119
|
export type { InferenceStepResult } from './utils/run-inference-step.js';
|