@camstack/types 1.1.57 → 1.1.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.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 +163 -33
- package/dist/capabilities/pipeline-runner.cap.d.ts +12 -0
- package/dist/generated/addon-api.d.ts +190 -102
- 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 +168 -54
- package/dist/index.mjs +167 -55
- package/dist/interfaces/pipeline-runner-capability.d.ts +22 -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
|
@@ -10301,19 +10301,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10301
10301
|
format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
|
|
10302
10302
|
device?: string | undefined;
|
|
10303
10303
|
};
|
|
10304
|
-
output: import("
|
|
10305
|
-
meta: object;
|
|
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
|
-
};
|
|
10304
|
+
output: import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineDefaultStepOutput[];
|
|
10317
10305
|
meta: object;
|
|
10318
10306
|
}>;
|
|
10319
10307
|
getEngineProvisioning: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -10435,7 +10423,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10435
10423
|
input: {
|
|
10436
10424
|
nodeId?: string | undefined;
|
|
10437
10425
|
} | undefined;
|
|
10438
|
-
output: readonly import("
|
|
10426
|
+
output: readonly import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineDefaultStepOutput[] | null;
|
|
10439
10427
|
meta: object;
|
|
10440
10428
|
}>;
|
|
10441
10429
|
getGlobalPipelineConfig: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -10489,7 +10477,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10489
10477
|
format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
|
|
10490
10478
|
device?: string | undefined;
|
|
10491
10479
|
};
|
|
10492
|
-
steps: readonly import("
|
|
10480
|
+
steps: readonly import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineTemplateStepOutput[];
|
|
10493
10481
|
}[];
|
|
10494
10482
|
meta: object;
|
|
10495
10483
|
}>;
|
|
@@ -10516,7 +10504,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10516
10504
|
format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
|
|
10517
10505
|
device?: string | undefined;
|
|
10518
10506
|
};
|
|
10519
|
-
steps: readonly import("
|
|
10507
|
+
steps: readonly import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineTemplateStepOutput[];
|
|
10520
10508
|
};
|
|
10521
10509
|
meta: object;
|
|
10522
10510
|
}>;
|
|
@@ -10538,7 +10526,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10538
10526
|
format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
|
|
10539
10527
|
device?: string | undefined;
|
|
10540
10528
|
};
|
|
10541
|
-
steps: readonly import("
|
|
10529
|
+
steps: readonly import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineTemplateStepOutput[];
|
|
10542
10530
|
};
|
|
10543
10531
|
meta: object;
|
|
10544
10532
|
}>;
|
|
@@ -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;
|
|
@@ -11232,8 +11232,48 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11232
11232
|
meta: object;
|
|
11233
11233
|
}>;
|
|
11234
11234
|
setAgentInferenceDevices: import("@trpc/server").TRPCMutationProcedure<{
|
|
11235
|
-
input:
|
|
11236
|
-
|
|
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
|
+
};
|
|
11237
11277
|
meta: object;
|
|
11238
11278
|
}>;
|
|
11239
11279
|
resetNodePipelineDefaults: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -11256,11 +11296,10 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11256
11296
|
output: {
|
|
11257
11297
|
pinnedAgentNodeId?: string | undefined;
|
|
11258
11298
|
stepToggles?: Record<string, boolean> | undefined;
|
|
11259
|
-
|
|
11260
|
-
enabled?: boolean | undefined;
|
|
11299
|
+
stepOverridesByDevice?: Record<string, Record<string, Record<string, {
|
|
11261
11300
|
modelId?: string | undefined;
|
|
11262
11301
|
settings?: Readonly<Record<string, unknown>> | undefined;
|
|
11263
|
-
}
|
|
11302
|
+
}>>> | undefined;
|
|
11264
11303
|
pipelineByAgent?: Record<string, {
|
|
11265
11304
|
steps: readonly import("@camstack/types").PipelineStepInputOutput[];
|
|
11266
11305
|
audio: {
|
|
@@ -11288,11 +11327,10 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11288
11327
|
[x: string]: unknown;
|
|
11289
11328
|
deviceId: number;
|
|
11290
11329
|
};
|
|
11291
|
-
output: Record<string, Record<string, {
|
|
11292
|
-
enabled?: boolean | undefined;
|
|
11330
|
+
output: Record<string, Record<string, Record<string, {
|
|
11293
11331
|
modelId?: string | undefined;
|
|
11294
11332
|
settings?: Readonly<Record<string, unknown>> | undefined;
|
|
11295
|
-
}
|
|
11333
|
+
}>>> | null;
|
|
11296
11334
|
meta: object;
|
|
11297
11335
|
}>;
|
|
11298
11336
|
setCameraStepOverride: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -11300,9 +11338,9 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11300
11338
|
[x: string]: unknown;
|
|
11301
11339
|
deviceId: number;
|
|
11302
11340
|
agentNodeId: string;
|
|
11341
|
+
deviceKey: string;
|
|
11303
11342
|
addonId: string;
|
|
11304
11343
|
patch: {
|
|
11305
|
-
enabled?: boolean | undefined;
|
|
11306
11344
|
modelId?: string | undefined;
|
|
11307
11345
|
settings?: Readonly<Record<string, unknown>> | undefined;
|
|
11308
11346
|
} | null;
|
|
@@ -11791,6 +11829,12 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11791
11829
|
avgInferenceFps: number;
|
|
11792
11830
|
avgInferenceTimeMs: number;
|
|
11793
11831
|
queueDepthTotal: number;
|
|
11832
|
+
devices: {
|
|
11833
|
+
deviceKey: string;
|
|
11834
|
+
backend: string;
|
|
11835
|
+
attachedCameras: number;
|
|
11836
|
+
queueDepthTotal: number;
|
|
11837
|
+
}[];
|
|
11794
11838
|
hardware: {
|
|
11795
11839
|
hasGpu: boolean;
|
|
11796
11840
|
inferenceBackend?: string | undefined;
|
|
@@ -27061,19 +27105,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27061
27105
|
format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
|
|
27062
27106
|
device?: string | undefined;
|
|
27063
27107
|
};
|
|
27064
|
-
output: import("
|
|
27065
|
-
meta: object;
|
|
27066
|
-
}>;
|
|
27067
|
-
reprobeEngine: import("@trpc/server").TRPCMutationProcedure<{
|
|
27068
|
-
input: {
|
|
27069
|
-
nodeId?: string | undefined;
|
|
27070
|
-
} | undefined;
|
|
27071
|
-
output: {
|
|
27072
|
-
runtime: "node" | "python";
|
|
27073
|
-
backend: string;
|
|
27074
|
-
format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
|
|
27075
|
-
device?: string | undefined;
|
|
27076
|
-
};
|
|
27108
|
+
output: import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineDefaultStepOutput[];
|
|
27077
27109
|
meta: object;
|
|
27078
27110
|
}>;
|
|
27079
27111
|
getEngineProvisioning: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -27195,7 +27227,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27195
27227
|
input: {
|
|
27196
27228
|
nodeId?: string | undefined;
|
|
27197
27229
|
} | undefined;
|
|
27198
|
-
output: readonly import("
|
|
27230
|
+
output: readonly import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineDefaultStepOutput[] | null;
|
|
27199
27231
|
meta: object;
|
|
27200
27232
|
}>;
|
|
27201
27233
|
getGlobalPipelineConfig: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -27249,7 +27281,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27249
27281
|
format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
|
|
27250
27282
|
device?: string | undefined;
|
|
27251
27283
|
};
|
|
27252
|
-
steps: readonly import("
|
|
27284
|
+
steps: readonly import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineTemplateStepOutput[];
|
|
27253
27285
|
}[];
|
|
27254
27286
|
meta: object;
|
|
27255
27287
|
}>;
|
|
@@ -27276,7 +27308,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27276
27308
|
format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
|
|
27277
27309
|
device?: string | undefined;
|
|
27278
27310
|
};
|
|
27279
|
-
steps: readonly import("
|
|
27311
|
+
steps: readonly import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineTemplateStepOutput[];
|
|
27280
27312
|
};
|
|
27281
27313
|
meta: object;
|
|
27282
27314
|
}>;
|
|
@@ -27298,7 +27330,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27298
27330
|
format: "onnx" | "coreml" | "openvino" | "tflite" | "pt" | "gguf";
|
|
27299
27331
|
device?: string | undefined;
|
|
27300
27332
|
};
|
|
27301
|
-
steps: readonly import("
|
|
27333
|
+
steps: readonly import("packages/types/dist/capabilities/pipeline-executor.cap").PipelineTemplateStepOutput[];
|
|
27302
27334
|
};
|
|
27303
27335
|
meta: object;
|
|
27304
27336
|
}>;
|
|
@@ -27689,6 +27721,27 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27689
27721
|
};
|
|
27690
27722
|
meta: object;
|
|
27691
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
|
+
}>;
|
|
27692
27745
|
rebalance: import("@trpc/server").TRPCMutationProcedure<{
|
|
27693
27746
|
input: {
|
|
27694
27747
|
nodeId?: string | undefined;
|
|
@@ -27739,6 +27792,12 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27739
27792
|
avgInferenceFps: number;
|
|
27740
27793
|
avgInferenceTimeMs: number;
|
|
27741
27794
|
queueDepthTotal: number;
|
|
27795
|
+
devices: {
|
|
27796
|
+
deviceKey: string;
|
|
27797
|
+
backend: string;
|
|
27798
|
+
attachedCameras: number;
|
|
27799
|
+
queueDepthTotal: number;
|
|
27800
|
+
}[];
|
|
27742
27801
|
hardware: {
|
|
27743
27802
|
hasGpu: boolean;
|
|
27744
27803
|
inferenceBackend?: string | undefined;
|
|
@@ -27873,11 +27932,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27873
27932
|
agentNodeId: string;
|
|
27874
27933
|
};
|
|
27875
27934
|
output: {
|
|
27876
|
-
addonDefaults: Readonly<Record<string, {
|
|
27877
|
-
enabled: boolean;
|
|
27878
|
-
settings: Readonly<Record<string, unknown>>;
|
|
27879
|
-
modelId?: string | undefined;
|
|
27880
|
-
}>>;
|
|
27881
27935
|
maxCameras: number | null;
|
|
27882
27936
|
detectWeight?: number | undefined;
|
|
27883
27937
|
detect?: boolean | undefined;
|
|
@@ -27888,6 +27942,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27888
27942
|
inferenceDevices?: Record<string, {
|
|
27889
27943
|
enabled: boolean;
|
|
27890
27944
|
weight?: number | undefined;
|
|
27945
|
+
maxSessions?: number | undefined;
|
|
27946
|
+
steps?: Record<string, {
|
|
27947
|
+
modelId?: string | undefined;
|
|
27948
|
+
settings?: Record<string, unknown> | undefined;
|
|
27949
|
+
}> | undefined;
|
|
27891
27950
|
}> | undefined;
|
|
27892
27951
|
} | null;
|
|
27893
27952
|
meta: object;
|
|
@@ -27899,11 +27958,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27899
27958
|
output: readonly {
|
|
27900
27959
|
nodeId: string;
|
|
27901
27960
|
settings: {
|
|
27902
|
-
addonDefaults: Readonly<Record<string, {
|
|
27903
|
-
enabled: boolean;
|
|
27904
|
-
settings: Readonly<Record<string, unknown>>;
|
|
27905
|
-
modelId?: string | undefined;
|
|
27906
|
-
}>>;
|
|
27907
27961
|
maxCameras: number | null;
|
|
27908
27962
|
detectWeight?: number | undefined;
|
|
27909
27963
|
detect?: boolean | undefined;
|
|
@@ -27914,26 +27968,16 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27914
27968
|
inferenceDevices?: Record<string, {
|
|
27915
27969
|
enabled: boolean;
|
|
27916
27970
|
weight?: number | undefined;
|
|
27971
|
+
maxSessions?: number | undefined;
|
|
27972
|
+
steps?: Record<string, {
|
|
27973
|
+
modelId?: string | undefined;
|
|
27974
|
+
settings?: Record<string, unknown> | undefined;
|
|
27975
|
+
}> | undefined;
|
|
27917
27976
|
}> | undefined;
|
|
27918
27977
|
};
|
|
27919
27978
|
}[];
|
|
27920
27979
|
meta: object;
|
|
27921
27980
|
}>;
|
|
27922
|
-
setAgentAddonDefaults: import("@trpc/server").TRPCMutationProcedure<{
|
|
27923
|
-
input: {
|
|
27924
|
-
[x: string]: unknown;
|
|
27925
|
-
agentNodeId: string;
|
|
27926
|
-
defaults: Record<string, {
|
|
27927
|
-
enabled: boolean;
|
|
27928
|
-
settings: Readonly<Record<string, unknown>>;
|
|
27929
|
-
modelId?: string | undefined;
|
|
27930
|
-
}>;
|
|
27931
|
-
};
|
|
27932
|
-
output: {
|
|
27933
|
-
success: true;
|
|
27934
|
-
};
|
|
27935
|
-
meta: object;
|
|
27936
|
-
}>;
|
|
27937
27981
|
removeAgentSettings: import("@trpc/server").TRPCMutationProcedure<{
|
|
27938
27982
|
input: {
|
|
27939
27983
|
[x: string]: unknown;
|
|
@@ -27992,8 +28036,48 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
27992
28036
|
meta: object;
|
|
27993
28037
|
}>;
|
|
27994
28038
|
setAgentInferenceDevices: import("@trpc/server").TRPCMutationProcedure<{
|
|
27995
|
-
input:
|
|
27996
|
-
|
|
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
|
+
};
|
|
27997
28081
|
meta: object;
|
|
27998
28082
|
}>;
|
|
27999
28083
|
resetNodePipelineDefaults: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -28016,11 +28100,10 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
28016
28100
|
output: {
|
|
28017
28101
|
pinnedAgentNodeId?: string | undefined;
|
|
28018
28102
|
stepToggles?: Record<string, boolean> | undefined;
|
|
28019
|
-
|
|
28020
|
-
enabled?: boolean | undefined;
|
|
28103
|
+
stepOverridesByDevice?: Record<string, Record<string, Record<string, {
|
|
28021
28104
|
modelId?: string | undefined;
|
|
28022
28105
|
settings?: Readonly<Record<string, unknown>> | undefined;
|
|
28023
|
-
}
|
|
28106
|
+
}>>> | undefined;
|
|
28024
28107
|
pipelineByAgent?: Record<string, {
|
|
28025
28108
|
steps: readonly import("@camstack/types").PipelineStepInputOutput[];
|
|
28026
28109
|
audio: {
|
|
@@ -28048,11 +28131,10 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
28048
28131
|
[x: string]: unknown;
|
|
28049
28132
|
deviceId: number;
|
|
28050
28133
|
};
|
|
28051
|
-
output: Record<string, Record<string, {
|
|
28052
|
-
enabled?: boolean | undefined;
|
|
28134
|
+
output: Record<string, Record<string, Record<string, {
|
|
28053
28135
|
modelId?: string | undefined;
|
|
28054
28136
|
settings?: Readonly<Record<string, unknown>> | undefined;
|
|
28055
|
-
}
|
|
28137
|
+
}>>> | null;
|
|
28056
28138
|
meta: object;
|
|
28057
28139
|
}>;
|
|
28058
28140
|
setCameraStepOverride: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -28060,9 +28142,9 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
28060
28142
|
[x: string]: unknown;
|
|
28061
28143
|
deviceId: number;
|
|
28062
28144
|
agentNodeId: string;
|
|
28145
|
+
deviceKey: string;
|
|
28063
28146
|
addonId: string;
|
|
28064
28147
|
patch: {
|
|
28065
|
-
enabled?: boolean | undefined;
|
|
28066
28148
|
modelId?: string | undefined;
|
|
28067
28149
|
settings?: Readonly<Record<string, unknown>> | undefined;
|
|
28068
28150
|
} | null;
|
|
@@ -28551,6 +28633,12 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
28551
28633
|
avgInferenceFps: number;
|
|
28552
28634
|
avgInferenceTimeMs: number;
|
|
28553
28635
|
queueDepthTotal: number;
|
|
28636
|
+
devices: {
|
|
28637
|
+
deviceKey: string;
|
|
28638
|
+
backend: string;
|
|
28639
|
+
attachedCameras: number;
|
|
28640
|
+
queueDepthTotal: number;
|
|
28641
|
+
}[];
|
|
28554
28642
|
hardware: {
|
|
28555
28643
|
hasGpu: boolean;
|
|
28556
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';
|