@camstack/types 0.1.35 → 0.1.36
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/capabilities/addon-widgets-source.cap.d.ts +73 -5
- package/dist/capabilities/addon-widgets-source.cap.d.ts.map +1 -1
- package/dist/capabilities/addon-widgets.cap.d.ts +22 -4
- package/dist/capabilities/addon-widgets.cap.d.ts.map +1 -1
- package/dist/capabilities/audio-analysis.cap.d.ts +7 -4
- package/dist/capabilities/audio-analysis.cap.d.ts.map +1 -1
- package/dist/capabilities/camera-streams.cap.d.ts +7 -5
- package/dist/capabilities/camera-streams.cap.d.ts.map +1 -1
- package/dist/capabilities/capability-definition.d.ts +114 -0
- package/dist/capabilities/capability-definition.d.ts.map +1 -1
- package/dist/capabilities/decoder.cap.d.ts +90 -0
- package/dist/capabilities/decoder.cap.d.ts.map +1 -1
- package/dist/capabilities/detection-pipeline.cap.d.ts +6 -4
- package/dist/capabilities/detection-pipeline.cap.d.ts.map +1 -1
- package/dist/capabilities/device-manager.cap.d.ts +3 -3
- package/dist/capabilities/device-ops.cap.d.ts +1 -1
- package/dist/capabilities/index.d.ts +18 -11
- package/dist/capabilities/index.d.ts.map +1 -1
- package/dist/capabilities/motion-detection.cap.d.ts +2 -0
- package/dist/capabilities/motion-detection.cap.d.ts.map +1 -1
- package/dist/capabilities/motion-zones.cap.d.ts +83 -0
- package/dist/capabilities/motion-zones.cap.d.ts.map +1 -0
- package/dist/capabilities/nodes.cap.d.ts +9 -0
- package/dist/capabilities/nodes.cap.d.ts.map +1 -1
- package/dist/capabilities/oauth-integration.cap.d.ts +103 -0
- package/dist/capabilities/oauth-integration.cap.d.ts.map +1 -0
- package/dist/capabilities/pipeline-analytics.cap.d.ts +2 -0
- package/dist/capabilities/pipeline-analytics.cap.d.ts.map +1 -1
- package/dist/capabilities/ptz-autotrack.cap.d.ts +10 -0
- package/dist/capabilities/ptz-autotrack.cap.d.ts.map +1 -1
- package/dist/capabilities/ptz.cap.d.ts +57 -1
- package/dist/capabilities/ptz.cap.d.ts.map +1 -1
- package/dist/capabilities/schemas/streaming-shared.d.ts +110 -3
- package/dist/capabilities/schemas/streaming-shared.d.ts.map +1 -1
- package/dist/capabilities/snapshot.cap.d.ts +2 -0
- package/dist/capabilities/snapshot.cap.d.ts.map +1 -1
- package/dist/capabilities/sso-bridge.cap.d.ts +120 -0
- package/dist/capabilities/sso-bridge.cap.d.ts.map +1 -1
- package/dist/capabilities/stream-broker.cap.d.ts +97 -4
- package/dist/capabilities/stream-broker.cap.d.ts.map +1 -1
- package/dist/capabilities/stream-params-config-schema.d.ts +56 -0
- package/dist/capabilities/stream-params-config-schema.d.ts.map +1 -0
- package/dist/capabilities/stream-params.cap.d.ts +482 -0
- package/dist/capabilities/stream-params.cap.d.ts.map +1 -0
- package/dist/capabilities/user-management.cap.d.ts +198 -1
- package/dist/capabilities/user-management.cap.d.ts.map +1 -1
- package/dist/capabilities/webrtc-session.cap.d.ts +2 -0
- package/dist/capabilities/webrtc-session.cap.d.ts.map +1 -1
- package/dist/generated/addon-api.d.ts +1175 -51
- package/dist/generated/addon-api.d.ts.map +1 -1
- package/dist/generated/cap-status-types.d.ts +7 -3
- package/dist/generated/cap-status-types.d.ts.map +1 -1
- package/dist/generated/capability-router-map.d.ts +13 -4
- package/dist/generated/capability-router-map.d.ts.map +1 -1
- package/dist/generated/device-local-state.d.ts +6 -0
- package/dist/generated/device-local-state.d.ts.map +1 -1
- package/dist/generated/device-proxy.d.ts +6 -0
- package/dist/generated/device-proxy.d.ts.map +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts.map +1 -1
- package/dist/generated/system-proxy.d.ts +4 -4
- package/dist/generated/system-proxy.d.ts.map +1 -1
- package/dist/{index-BkSgJYP7.js → index-BblD92Si.js} +600 -98
- package/dist/index-BblD92Si.js.map +1 -0
- package/dist/{index-CWhQOnm9.mjs → index-CgPd35k5.mjs} +949 -447
- package/dist/index-CgPd35k5.mjs.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +313 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +587 -281
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/addon.d.ts +123 -29
- package/dist/interfaces/addon.d.ts.map +1 -1
- package/dist/interfaces/capability.d.ts +6 -23
- package/dist/interfaces/capability.d.ts.map +1 -1
- package/dist/interfaces/config-ui.d.ts +4 -101
- package/dist/interfaces/config-ui.d.ts.map +1 -1
- package/dist/interfaces/decoder.d.ts +12 -0
- package/dist/interfaces/decoder.d.ts.map +1 -1
- package/dist/interfaces/device-provider.d.ts +0 -4
- package/dist/interfaces/device-provider.d.ts.map +1 -1
- package/dist/interfaces/event-bus.d.ts +15 -0
- package/dist/interfaces/event-bus.d.ts.map +1 -1
- package/dist/interfaces/frame-handle.d.ts +40 -0
- package/dist/interfaces/frame-handle.d.ts.map +1 -0
- package/dist/interfaces/kernel-abstractions.d.ts +6 -0
- package/dist/interfaces/kernel-abstractions.d.ts.map +1 -1
- package/dist/interfaces/stream-broker.d.ts +40 -21
- package/dist/interfaces/stream-broker.d.ts.map +1 -1
- package/dist/node.js +1 -1
- package/dist/node.mjs +1 -1
- package/package.json +1 -1
- package/dist/index-BkSgJYP7.js.map +0 -1
- package/dist/index-CWhQOnm9.mjs.map +0 -1
|
@@ -1171,6 +1171,20 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
1171
1171
|
}>;
|
|
1172
1172
|
meta: object;
|
|
1173
1173
|
}>;
|
|
1174
|
+
getCapUsageGraph: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
1175
|
+
input: {
|
|
1176
|
+
[x: string]: unknown;
|
|
1177
|
+
windowSeconds?: number | undefined;
|
|
1178
|
+
};
|
|
1179
|
+
output: readonly {
|
|
1180
|
+
callerAddonId: string;
|
|
1181
|
+
providerAddonId: string;
|
|
1182
|
+
capName: string;
|
|
1183
|
+
callsPerMin: number;
|
|
1184
|
+
lastCallAtMs: number;
|
|
1185
|
+
}[];
|
|
1186
|
+
meta: object;
|
|
1187
|
+
}>;
|
|
1174
1188
|
getNodeAddons: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
1175
1189
|
input: {
|
|
1176
1190
|
[x: string]: unknown;
|
|
@@ -3153,6 +3167,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
3153
3167
|
height?: number | undefined;
|
|
3154
3168
|
deviceId?: number | undefined;
|
|
3155
3169
|
tag?: string | undefined;
|
|
3170
|
+
frameSink?: "callback" | "shm" | undefined;
|
|
3156
3171
|
};
|
|
3157
3172
|
output: {
|
|
3158
3173
|
sessionId: string;
|
|
@@ -3208,6 +3223,68 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
3208
3223
|
}[];
|
|
3209
3224
|
meta: object;
|
|
3210
3225
|
}>;
|
|
3226
|
+
pullHandles: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
3227
|
+
input: {
|
|
3228
|
+
[x: string]: unknown;
|
|
3229
|
+
sessionId: string;
|
|
3230
|
+
maxCount?: number | undefined;
|
|
3231
|
+
};
|
|
3232
|
+
output: {
|
|
3233
|
+
shmId: string;
|
|
3234
|
+
slot: number;
|
|
3235
|
+
seq: number;
|
|
3236
|
+
width: number;
|
|
3237
|
+
height: number;
|
|
3238
|
+
format: "jpeg" | "rgb" | "bgr" | "yuv420" | "gray";
|
|
3239
|
+
pts: number;
|
|
3240
|
+
byteLength: number;
|
|
3241
|
+
nodeId: string;
|
|
3242
|
+
slotCount: number;
|
|
3243
|
+
}[];
|
|
3244
|
+
meta: object;
|
|
3245
|
+
}>;
|
|
3246
|
+
getFrame: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
3247
|
+
input: {
|
|
3248
|
+
[x: string]: unknown;
|
|
3249
|
+
handle: {
|
|
3250
|
+
shmId: string;
|
|
3251
|
+
slot: number;
|
|
3252
|
+
seq: number;
|
|
3253
|
+
width: number;
|
|
3254
|
+
height: number;
|
|
3255
|
+
format: "jpeg" | "rgb" | "bgr" | "yuv420" | "gray";
|
|
3256
|
+
pts: number;
|
|
3257
|
+
byteLength: number;
|
|
3258
|
+
nodeId: string;
|
|
3259
|
+
slotCount: number;
|
|
3260
|
+
};
|
|
3261
|
+
};
|
|
3262
|
+
output: {
|
|
3263
|
+
data: Uint8Array<ArrayBuffer>;
|
|
3264
|
+
width: number;
|
|
3265
|
+
height: number;
|
|
3266
|
+
format: "jpeg" | "rgb" | "bgr" | "yuv420" | "gray";
|
|
3267
|
+
timestamp: number;
|
|
3268
|
+
} | null;
|
|
3269
|
+
meta: object;
|
|
3270
|
+
}>;
|
|
3271
|
+
getShmStats: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
3272
|
+
input: {
|
|
3273
|
+
[x: string]: unknown;
|
|
3274
|
+
sessionId: string;
|
|
3275
|
+
};
|
|
3276
|
+
output: {
|
|
3277
|
+
sessionId: string;
|
|
3278
|
+
slotCount: number;
|
|
3279
|
+
slotByteLength: number;
|
|
3280
|
+
segmentBytes: number;
|
|
3281
|
+
budgetMb: number;
|
|
3282
|
+
framesWritten: number;
|
|
3283
|
+
getFrameHits: number;
|
|
3284
|
+
getFrameMisses: number;
|
|
3285
|
+
} | null;
|
|
3286
|
+
meta: object;
|
|
3287
|
+
}>;
|
|
3211
3288
|
updateConfig: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
3212
3289
|
input: {
|
|
3213
3290
|
[x: string]: unknown;
|
|
@@ -3221,6 +3298,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
3221
3298
|
height?: number | undefined;
|
|
3222
3299
|
deviceId?: number | undefined;
|
|
3223
3300
|
tag?: string | undefined;
|
|
3301
|
+
frameSink?: "callback" | "shm" | undefined;
|
|
3224
3302
|
};
|
|
3225
3303
|
};
|
|
3226
3304
|
output: void;
|
|
@@ -3685,9 +3763,15 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
3685
3763
|
nodeId?: string | undefined;
|
|
3686
3764
|
} | undefined;
|
|
3687
3765
|
output: readonly {
|
|
3688
|
-
|
|
3766
|
+
tab: string;
|
|
3689
3767
|
label: string;
|
|
3690
|
-
|
|
3768
|
+
kind: "remote";
|
|
3769
|
+
remote: {
|
|
3770
|
+
remoteName: string;
|
|
3771
|
+
exposedModule: string;
|
|
3772
|
+
componentKey?: string | undefined;
|
|
3773
|
+
};
|
|
3774
|
+
stableId: string;
|
|
3691
3775
|
bundle: string;
|
|
3692
3776
|
hosts: readonly ("device-tab" | "dashboard" | "integration-detail")[];
|
|
3693
3777
|
requires: {
|
|
@@ -3700,6 +3784,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
3700
3784
|
defaultRows: number;
|
|
3701
3785
|
addonId: string;
|
|
3702
3786
|
bundleUrl: string;
|
|
3787
|
+
subTab?: string | undefined;
|
|
3788
|
+
order?: number | undefined;
|
|
3703
3789
|
description?: string | undefined;
|
|
3704
3790
|
icon?: string | undefined;
|
|
3705
3791
|
}[];
|
|
@@ -3718,9 +3804,15 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
3718
3804
|
addonId?: string | undefined;
|
|
3719
3805
|
} | undefined;
|
|
3720
3806
|
output: readonly {
|
|
3721
|
-
|
|
3807
|
+
tab: string;
|
|
3722
3808
|
label: string;
|
|
3723
|
-
|
|
3809
|
+
kind: "remote";
|
|
3810
|
+
remote: {
|
|
3811
|
+
remoteName: string;
|
|
3812
|
+
exposedModule: string;
|
|
3813
|
+
componentKey?: string | undefined;
|
|
3814
|
+
};
|
|
3815
|
+
stableId: string;
|
|
3724
3816
|
bundle: string;
|
|
3725
3817
|
hosts: readonly ("device-tab" | "dashboard" | "integration-detail")[];
|
|
3726
3818
|
requires: {
|
|
@@ -3731,6 +3823,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
3731
3823
|
allowedSizes: readonly ("xs" | "sm" | "md" | "lg" | "xl")[];
|
|
3732
3824
|
defaultColumns: number;
|
|
3733
3825
|
defaultRows: number;
|
|
3826
|
+
subTab?: string | undefined;
|
|
3827
|
+
order?: number | undefined;
|
|
3734
3828
|
description?: string | undefined;
|
|
3735
3829
|
icon?: string | undefined;
|
|
3736
3830
|
}[];
|
|
@@ -4401,7 +4495,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
4401
4495
|
profile: "high" | "low" | "mid";
|
|
4402
4496
|
brokerId: string;
|
|
4403
4497
|
sourceCamStreamId: string | null;
|
|
4404
|
-
status: "error" | "streaming" | "
|
|
4498
|
+
status: "error" | "streaming" | "unassigned" | "idle" | "connecting";
|
|
4405
4499
|
resolution?: {
|
|
4406
4500
|
width: number;
|
|
4407
4501
|
height: number;
|
|
@@ -5875,7 +5969,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
5875
5969
|
online: boolean;
|
|
5876
5970
|
lastSeenMs: number;
|
|
5877
5971
|
isSelf: boolean;
|
|
5878
|
-
connection: "idle" | "
|
|
5972
|
+
connection: "idle" | "relay" | "direct";
|
|
5879
5973
|
relay: string | null;
|
|
5880
5974
|
lastHandshakeMs: number;
|
|
5881
5975
|
rxBytes: number;
|
|
@@ -6394,6 +6488,50 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
6394
6488
|
meta: object;
|
|
6395
6489
|
}>;
|
|
6396
6490
|
}>>;
|
|
6491
|
+
motionZones: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
6492
|
+
ctx: import("@camstack/types").TrpcContext;
|
|
6493
|
+
meta: object;
|
|
6494
|
+
errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
|
|
6495
|
+
transformer: true;
|
|
6496
|
+
}, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
|
|
6497
|
+
getStatus: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
6498
|
+
input: {
|
|
6499
|
+
[x: string]: unknown;
|
|
6500
|
+
deviceId: number;
|
|
6501
|
+
};
|
|
6502
|
+
output: unknown;
|
|
6503
|
+
meta: object;
|
|
6504
|
+
}>;
|
|
6505
|
+
getOptions: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
6506
|
+
input: {
|
|
6507
|
+
[x: string]: unknown;
|
|
6508
|
+
deviceId: number;
|
|
6509
|
+
};
|
|
6510
|
+
output: {
|
|
6511
|
+
gridWidth: number;
|
|
6512
|
+
gridHeight: number;
|
|
6513
|
+
sensitivity: {
|
|
6514
|
+
min: number;
|
|
6515
|
+
max: number;
|
|
6516
|
+
step: number;
|
|
6517
|
+
};
|
|
6518
|
+
};
|
|
6519
|
+
meta: object;
|
|
6520
|
+
}>;
|
|
6521
|
+
setZone: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
6522
|
+
input: {
|
|
6523
|
+
[x: string]: unknown;
|
|
6524
|
+
deviceId: number;
|
|
6525
|
+
patch: {
|
|
6526
|
+
enabled?: boolean | undefined;
|
|
6527
|
+
sensitivity?: number | undefined;
|
|
6528
|
+
cells?: boolean[] | undefined;
|
|
6529
|
+
};
|
|
6530
|
+
};
|
|
6531
|
+
output: void;
|
|
6532
|
+
meta: object;
|
|
6533
|
+
}>;
|
|
6534
|
+
}>>;
|
|
6397
6535
|
mqttBroker: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
6398
6536
|
ctx: import("@camstack/types").TrpcContext;
|
|
6399
6537
|
meta: object;
|
|
@@ -6611,6 +6749,42 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
6611
6749
|
meta: object;
|
|
6612
6750
|
}>;
|
|
6613
6751
|
}>>;
|
|
6752
|
+
oauthIntegration: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
6753
|
+
ctx: import("@camstack/types").TrpcContext;
|
|
6754
|
+
meta: object;
|
|
6755
|
+
errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
|
|
6756
|
+
transformer: true;
|
|
6757
|
+
}, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
|
|
6758
|
+
getDescriptor: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
6759
|
+
input: {
|
|
6760
|
+
nodeId?: string | undefined;
|
|
6761
|
+
addonId?: string | undefined;
|
|
6762
|
+
} | undefined;
|
|
6763
|
+
output: {
|
|
6764
|
+
integrationId: string;
|
|
6765
|
+
displayName: string;
|
|
6766
|
+
requestedScopes: ({
|
|
6767
|
+
type: "category";
|
|
6768
|
+
target: "system" | "device";
|
|
6769
|
+
access: ("delete" | "create" | "view")[];
|
|
6770
|
+
} | {
|
|
6771
|
+
type: "capability";
|
|
6772
|
+
target: string;
|
|
6773
|
+
access: ("delete" | "create" | "view")[];
|
|
6774
|
+
} | {
|
|
6775
|
+
type: "addon";
|
|
6776
|
+
target: string;
|
|
6777
|
+
access: ("delete" | "create" | "view")[];
|
|
6778
|
+
} | {
|
|
6779
|
+
type: "device";
|
|
6780
|
+
targets: string[];
|
|
6781
|
+
access: ("delete" | "create" | "view")[];
|
|
6782
|
+
})[];
|
|
6783
|
+
allowedRedirectPrefixes: string[];
|
|
6784
|
+
};
|
|
6785
|
+
meta: object;
|
|
6786
|
+
}>;
|
|
6787
|
+
}>>;
|
|
6614
6788
|
osd: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
6615
6789
|
ctx: import("@camstack/types").TrpcContext;
|
|
6616
6790
|
meta: object;
|
|
@@ -7035,6 +7209,40 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
7035
7209
|
output: void;
|
|
7036
7210
|
meta: object;
|
|
7037
7211
|
}>;
|
|
7212
|
+
savePreset: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
7213
|
+
input: {
|
|
7214
|
+
[x: string]: unknown;
|
|
7215
|
+
deviceId: number;
|
|
7216
|
+
presetId: string;
|
|
7217
|
+
name: string;
|
|
7218
|
+
};
|
|
7219
|
+
output: void;
|
|
7220
|
+
meta: object;
|
|
7221
|
+
}>;
|
|
7222
|
+
deletePreset: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
7223
|
+
input: {
|
|
7224
|
+
[x: string]: unknown;
|
|
7225
|
+
deviceId: number;
|
|
7226
|
+
presetId: string;
|
|
7227
|
+
};
|
|
7228
|
+
output: void;
|
|
7229
|
+
meta: object;
|
|
7230
|
+
}>;
|
|
7231
|
+
getOptions: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
7232
|
+
input: {
|
|
7233
|
+
[x: string]: unknown;
|
|
7234
|
+
deviceId: number;
|
|
7235
|
+
};
|
|
7236
|
+
output: {
|
|
7237
|
+
hasPan: boolean;
|
|
7238
|
+
hasTilt: boolean;
|
|
7239
|
+
hasZoom: boolean;
|
|
7240
|
+
supportsPresets: boolean;
|
|
7241
|
+
hasAutofocus: boolean;
|
|
7242
|
+
maxPresets?: number | undefined;
|
|
7243
|
+
};
|
|
7244
|
+
meta: object;
|
|
7245
|
+
}>;
|
|
7038
7246
|
goHome: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
7039
7247
|
input: {
|
|
7040
7248
|
[x: string]: unknown;
|
|
@@ -7055,6 +7263,15 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
7055
7263
|
};
|
|
7056
7264
|
meta: object;
|
|
7057
7265
|
}>;
|
|
7266
|
+
setAutofocus: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
7267
|
+
input: {
|
|
7268
|
+
[x: string]: unknown;
|
|
7269
|
+
deviceId: number;
|
|
7270
|
+
enabled: boolean;
|
|
7271
|
+
};
|
|
7272
|
+
output: void;
|
|
7273
|
+
meta: object;
|
|
7274
|
+
}>;
|
|
7058
7275
|
}>>;
|
|
7059
7276
|
ptzAutotrack: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
7060
7277
|
ctx: import("@camstack/types").TrpcContext;
|
|
@@ -7807,6 +8024,27 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
7807
8024
|
email?: string | undefined;
|
|
7808
8025
|
displayName?: string | undefined;
|
|
7809
8026
|
hubUrl?: string | undefined;
|
|
8027
|
+
scopes?: ({
|
|
8028
|
+
type: "category";
|
|
8029
|
+
target: "system" | "device";
|
|
8030
|
+
access: ("delete" | "create" | "view")[];
|
|
8031
|
+
} | {
|
|
8032
|
+
type: "capability";
|
|
8033
|
+
target: string;
|
|
8034
|
+
access: ("delete" | "create" | "view")[];
|
|
8035
|
+
} | {
|
|
8036
|
+
type: "addon";
|
|
8037
|
+
target: string;
|
|
8038
|
+
access: ("delete" | "create" | "view")[];
|
|
8039
|
+
} | {
|
|
8040
|
+
type: "device";
|
|
8041
|
+
targets: string[];
|
|
8042
|
+
access: ("delete" | "create" | "view")[];
|
|
8043
|
+
})[] | undefined;
|
|
8044
|
+
redirectUri?: string | undefined;
|
|
8045
|
+
integrationId?: string | undefined;
|
|
8046
|
+
jti?: string | undefined;
|
|
8047
|
+
sessionId?: string | undefined;
|
|
7810
8048
|
};
|
|
7811
8049
|
ttlSec?: number | undefined;
|
|
7812
8050
|
};
|
|
@@ -7828,6 +8066,27 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
7828
8066
|
email?: string | undefined;
|
|
7829
8067
|
displayName?: string | undefined;
|
|
7830
8068
|
hubUrl?: string | undefined;
|
|
8069
|
+
scopes?: ({
|
|
8070
|
+
type: "category";
|
|
8071
|
+
target: "system" | "device";
|
|
8072
|
+
access: ("delete" | "create" | "view")[];
|
|
8073
|
+
} | {
|
|
8074
|
+
type: "capability";
|
|
8075
|
+
target: string;
|
|
8076
|
+
access: ("delete" | "create" | "view")[];
|
|
8077
|
+
} | {
|
|
8078
|
+
type: "addon";
|
|
8079
|
+
target: string;
|
|
8080
|
+
access: ("delete" | "create" | "view")[];
|
|
8081
|
+
} | {
|
|
8082
|
+
type: "device";
|
|
8083
|
+
targets: string[];
|
|
8084
|
+
access: ("delete" | "create" | "view")[];
|
|
8085
|
+
})[] | undefined;
|
|
8086
|
+
redirectUri?: string | undefined;
|
|
8087
|
+
integrationId?: string | undefined;
|
|
8088
|
+
jti?: string | undefined;
|
|
8089
|
+
sessionId?: string | undefined;
|
|
7831
8090
|
} | null;
|
|
7832
8091
|
meta: object;
|
|
7833
8092
|
}>;
|
|
@@ -8484,7 +8743,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
8484
8743
|
profile: "high" | "low" | "mid";
|
|
8485
8744
|
brokerId: string;
|
|
8486
8745
|
sourceCamStreamId: string | null;
|
|
8487
|
-
status: "error" | "streaming" | "
|
|
8746
|
+
status: "error" | "streaming" | "unassigned" | "idle" | "connecting";
|
|
8488
8747
|
resolution?: {
|
|
8489
8748
|
width: number;
|
|
8490
8749
|
height: number;
|
|
@@ -8630,12 +8889,83 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
8630
8889
|
};
|
|
8631
8890
|
meta: object;
|
|
8632
8891
|
}>;
|
|
8633
|
-
|
|
8892
|
+
subscribeAudioChunks: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
8893
|
+
input: {
|
|
8894
|
+
[x: string]: unknown;
|
|
8895
|
+
brokerId: string;
|
|
8896
|
+
tag?: string | undefined;
|
|
8897
|
+
};
|
|
8898
|
+
output: {
|
|
8899
|
+
subscriptionId: string;
|
|
8900
|
+
};
|
|
8901
|
+
meta: object;
|
|
8902
|
+
}>;
|
|
8903
|
+
pullAudioChunks: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
8904
|
+
input: {
|
|
8905
|
+
[x: string]: unknown;
|
|
8906
|
+
subscriptionId: string;
|
|
8907
|
+
maxCount?: number | undefined;
|
|
8908
|
+
};
|
|
8909
|
+
output: readonly {
|
|
8910
|
+
data: Uint8Array<ArrayBuffer>;
|
|
8911
|
+
sampleRate: number;
|
|
8912
|
+
channels: number;
|
|
8913
|
+
timestamp: number;
|
|
8914
|
+
}[];
|
|
8915
|
+
meta: object;
|
|
8916
|
+
}>;
|
|
8917
|
+
unsubscribeAudioChunks: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
8918
|
+
input: {
|
|
8919
|
+
[x: string]: unknown;
|
|
8920
|
+
subscriptionId: string;
|
|
8921
|
+
};
|
|
8922
|
+
output: {
|
|
8923
|
+
released: boolean;
|
|
8924
|
+
};
|
|
8925
|
+
meta: object;
|
|
8926
|
+
}>;
|
|
8927
|
+
subscribeFrames: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
8634
8928
|
input: {
|
|
8635
8929
|
[x: string]: unknown;
|
|
8636
8930
|
brokerId: string;
|
|
8931
|
+
format: "rgb" | "bgr" | "yuv420" | "gray";
|
|
8932
|
+
maxFps?: number | undefined;
|
|
8933
|
+
tag?: string | undefined;
|
|
8934
|
+
};
|
|
8935
|
+
output: {
|
|
8936
|
+
subscriptionId: string;
|
|
8937
|
+
maxFps: number;
|
|
8938
|
+
};
|
|
8939
|
+
meta: object;
|
|
8940
|
+
}>;
|
|
8941
|
+
pullFrameHandles: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
8942
|
+
input: {
|
|
8943
|
+
[x: string]: unknown;
|
|
8944
|
+
subscriptionId: string;
|
|
8945
|
+
maxCount?: number | undefined;
|
|
8946
|
+
};
|
|
8947
|
+
output: readonly {
|
|
8948
|
+
shmId: string;
|
|
8949
|
+
slot: number;
|
|
8950
|
+
seq: number;
|
|
8951
|
+
width: number;
|
|
8952
|
+
height: number;
|
|
8953
|
+
format: "jpeg" | "rgb" | "bgr" | "yuv420" | "gray";
|
|
8954
|
+
pts: number;
|
|
8955
|
+
byteLength: number;
|
|
8956
|
+
nodeId: string;
|
|
8957
|
+
slotCount: number;
|
|
8958
|
+
}[];
|
|
8959
|
+
meta: object;
|
|
8960
|
+
}>;
|
|
8961
|
+
unsubscribeFrames: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
8962
|
+
input: {
|
|
8963
|
+
[x: string]: unknown;
|
|
8964
|
+
subscriptionId: string;
|
|
8965
|
+
};
|
|
8966
|
+
output: {
|
|
8967
|
+
released: boolean;
|
|
8637
8968
|
};
|
|
8638
|
-
output: import("@camstack/types").IStreamBroker | null;
|
|
8639
8969
|
meta: object;
|
|
8640
8970
|
}>;
|
|
8641
8971
|
setPreBufferDuration: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
@@ -8719,7 +9049,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
8719
9049
|
meta: object;
|
|
8720
9050
|
}>;
|
|
8721
9051
|
}>>;
|
|
8722
|
-
|
|
9052
|
+
streamParams: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
8723
9053
|
ctx: import("@camstack/types").TrpcContext;
|
|
8724
9054
|
meta: object;
|
|
8725
9055
|
errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
|
|
@@ -8733,20 +9063,126 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
8733
9063
|
output: unknown;
|
|
8734
9064
|
meta: object;
|
|
8735
9065
|
}>;
|
|
8736
|
-
|
|
9066
|
+
getOptions: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
8737
9067
|
input: {
|
|
8738
9068
|
[x: string]: unknown;
|
|
8739
9069
|
deviceId: number;
|
|
8740
|
-
on: boolean;
|
|
8741
9070
|
};
|
|
8742
|
-
output:
|
|
8743
|
-
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
|
|
9071
|
+
output: {
|
|
9072
|
+
main?: {
|
|
9073
|
+
resolutions: {
|
|
9074
|
+
width: number;
|
|
9075
|
+
height: number;
|
|
9076
|
+
}[];
|
|
9077
|
+
codecs: ("h264" | "h265")[];
|
|
9078
|
+
framerates: number[];
|
|
9079
|
+
bitrates: number[];
|
|
9080
|
+
supportsBitrateMode: boolean;
|
|
9081
|
+
supportsEncoderProfile: boolean;
|
|
9082
|
+
supportsGop: boolean;
|
|
9083
|
+
bitrateRange?: [number, number] | undefined;
|
|
9084
|
+
gop?: {
|
|
9085
|
+
min: number;
|
|
9086
|
+
max: number;
|
|
9087
|
+
step: number;
|
|
9088
|
+
} | undefined;
|
|
9089
|
+
} | undefined;
|
|
9090
|
+
sub?: {
|
|
9091
|
+
resolutions: {
|
|
9092
|
+
width: number;
|
|
9093
|
+
height: number;
|
|
9094
|
+
}[];
|
|
9095
|
+
codecs: ("h264" | "h265")[];
|
|
9096
|
+
framerates: number[];
|
|
9097
|
+
bitrates: number[];
|
|
9098
|
+
supportsBitrateMode: boolean;
|
|
9099
|
+
supportsEncoderProfile: boolean;
|
|
9100
|
+
supportsGop: boolean;
|
|
9101
|
+
bitrateRange?: [number, number] | undefined;
|
|
9102
|
+
gop?: {
|
|
9103
|
+
min: number;
|
|
9104
|
+
max: number;
|
|
9105
|
+
step: number;
|
|
9106
|
+
} | undefined;
|
|
9107
|
+
} | undefined;
|
|
9108
|
+
ext?: {
|
|
9109
|
+
resolutions: {
|
|
9110
|
+
width: number;
|
|
9111
|
+
height: number;
|
|
9112
|
+
}[];
|
|
9113
|
+
codecs: ("h264" | "h265")[];
|
|
9114
|
+
framerates: number[];
|
|
9115
|
+
bitrates: number[];
|
|
9116
|
+
supportsBitrateMode: boolean;
|
|
9117
|
+
supportsEncoderProfile: boolean;
|
|
9118
|
+
supportsGop: boolean;
|
|
9119
|
+
bitrateRange?: [number, number] | undefined;
|
|
9120
|
+
gop?: {
|
|
9121
|
+
min: number;
|
|
9122
|
+
max: number;
|
|
9123
|
+
step: number;
|
|
9124
|
+
} | undefined;
|
|
9125
|
+
} | undefined;
|
|
9126
|
+
};
|
|
9127
|
+
meta: object;
|
|
9128
|
+
}>;
|
|
9129
|
+
setProfile: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
9130
|
+
input: {
|
|
9131
|
+
[x: string]: unknown;
|
|
9132
|
+
deviceId: number;
|
|
9133
|
+
profile: "sub" | "main" | "ext";
|
|
9134
|
+
patch: {
|
|
9135
|
+
width?: number | undefined;
|
|
9136
|
+
height?: number | undefined;
|
|
9137
|
+
codec?: "h264" | "h265" | undefined;
|
|
9138
|
+
framerate?: number | undefined;
|
|
9139
|
+
bitrate?: number | undefined;
|
|
9140
|
+
bitrateMode?: "vbr" | "cbr" | undefined;
|
|
9141
|
+
encoderProfile?: "main" | "high" | "baseline" | undefined;
|
|
9142
|
+
gop?: number | undefined;
|
|
9143
|
+
audio?: boolean | undefined;
|
|
9144
|
+
};
|
|
9145
|
+
};
|
|
9146
|
+
output: void;
|
|
9147
|
+
meta: object;
|
|
9148
|
+
}>;
|
|
9149
|
+
getConfigSchema: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
9150
|
+
input: {
|
|
9151
|
+
[x: string]: unknown;
|
|
9152
|
+
deviceId: number;
|
|
9153
|
+
};
|
|
9154
|
+
output: unknown;
|
|
9155
|
+
meta: object;
|
|
9156
|
+
}>;
|
|
9157
|
+
}>>;
|
|
9158
|
+
switch: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
9159
|
+
ctx: import("@camstack/types").TrpcContext;
|
|
9160
|
+
meta: object;
|
|
9161
|
+
errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
|
|
9162
|
+
transformer: true;
|
|
9163
|
+
}, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
|
|
9164
|
+
getStatus: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
9165
|
+
input: {
|
|
9166
|
+
[x: string]: unknown;
|
|
9167
|
+
deviceId: number;
|
|
9168
|
+
};
|
|
9169
|
+
output: unknown;
|
|
9170
|
+
meta: object;
|
|
9171
|
+
}>;
|
|
9172
|
+
setState: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
9173
|
+
input: {
|
|
9174
|
+
[x: string]: unknown;
|
|
9175
|
+
deviceId: number;
|
|
9176
|
+
on: boolean;
|
|
9177
|
+
};
|
|
9178
|
+
output: void;
|
|
9179
|
+
meta: object;
|
|
9180
|
+
}>;
|
|
9181
|
+
}>>;
|
|
9182
|
+
turnProvider: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
9183
|
+
ctx: import("@camstack/types").TrpcContext;
|
|
9184
|
+
meta: object;
|
|
9185
|
+
errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
|
|
8750
9186
|
transformer: true;
|
|
8751
9187
|
}, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
|
|
8752
9188
|
getTurnServers: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
@@ -9221,6 +9657,132 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
9221
9657
|
};
|
|
9222
9658
|
meta: object;
|
|
9223
9659
|
}>;
|
|
9660
|
+
oauthIssueCode: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
9661
|
+
input: {
|
|
9662
|
+
[x: string]: unknown;
|
|
9663
|
+
integrationId: string;
|
|
9664
|
+
userId: string;
|
|
9665
|
+
username: string;
|
|
9666
|
+
scopes: ({
|
|
9667
|
+
type: "category";
|
|
9668
|
+
target: "system" | "device";
|
|
9669
|
+
access: ("delete" | "create" | "view")[];
|
|
9670
|
+
} | {
|
|
9671
|
+
type: "capability";
|
|
9672
|
+
target: string;
|
|
9673
|
+
access: ("delete" | "create" | "view")[];
|
|
9674
|
+
} | {
|
|
9675
|
+
type: "addon";
|
|
9676
|
+
target: string;
|
|
9677
|
+
access: ("delete" | "create" | "view")[];
|
|
9678
|
+
} | {
|
|
9679
|
+
type: "device";
|
|
9680
|
+
targets: string[];
|
|
9681
|
+
access: ("delete" | "create" | "view")[];
|
|
9682
|
+
})[];
|
|
9683
|
+
redirectUri: string;
|
|
9684
|
+
hubUrl: string;
|
|
9685
|
+
};
|
|
9686
|
+
output: {
|
|
9687
|
+
code: string;
|
|
9688
|
+
};
|
|
9689
|
+
meta: object;
|
|
9690
|
+
}>;
|
|
9691
|
+
oauthExchangeCode: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
9692
|
+
input: {
|
|
9693
|
+
[x: string]: unknown;
|
|
9694
|
+
code: string;
|
|
9695
|
+
redirectUri: string;
|
|
9696
|
+
};
|
|
9697
|
+
output: {
|
|
9698
|
+
accessToken: string;
|
|
9699
|
+
refreshToken: string;
|
|
9700
|
+
expiresIn: number;
|
|
9701
|
+
} | null;
|
|
9702
|
+
meta: object;
|
|
9703
|
+
}>;
|
|
9704
|
+
oauthRefresh: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
9705
|
+
input: {
|
|
9706
|
+
[x: string]: unknown;
|
|
9707
|
+
refreshToken: string;
|
|
9708
|
+
};
|
|
9709
|
+
output: {
|
|
9710
|
+
accessToken: string;
|
|
9711
|
+
refreshToken: string;
|
|
9712
|
+
expiresIn: number;
|
|
9713
|
+
} | null;
|
|
9714
|
+
meta: object;
|
|
9715
|
+
}>;
|
|
9716
|
+
oauthVerifyAccessToken: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
9717
|
+
input: {
|
|
9718
|
+
[x: string]: unknown;
|
|
9719
|
+
token: string;
|
|
9720
|
+
};
|
|
9721
|
+
output: {
|
|
9722
|
+
userId: string;
|
|
9723
|
+
username: string;
|
|
9724
|
+
scopes: ({
|
|
9725
|
+
type: "category";
|
|
9726
|
+
target: "system" | "device";
|
|
9727
|
+
access: ("delete" | "create" | "view")[];
|
|
9728
|
+
} | {
|
|
9729
|
+
type: "capability";
|
|
9730
|
+
target: string;
|
|
9731
|
+
access: ("delete" | "create" | "view")[];
|
|
9732
|
+
} | {
|
|
9733
|
+
type: "addon";
|
|
9734
|
+
target: string;
|
|
9735
|
+
access: ("delete" | "create" | "view")[];
|
|
9736
|
+
} | {
|
|
9737
|
+
type: "device";
|
|
9738
|
+
targets: string[];
|
|
9739
|
+
access: ("delete" | "create" | "view")[];
|
|
9740
|
+
})[];
|
|
9741
|
+
} | null;
|
|
9742
|
+
meta: object;
|
|
9743
|
+
}>;
|
|
9744
|
+
listOauthSessions: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
9745
|
+
input: {
|
|
9746
|
+
nodeId?: string | undefined;
|
|
9747
|
+
} | undefined;
|
|
9748
|
+
output: {
|
|
9749
|
+
id: string;
|
|
9750
|
+
userId: string;
|
|
9751
|
+
username: string;
|
|
9752
|
+
integrationId: string;
|
|
9753
|
+
scopes: ({
|
|
9754
|
+
type: "category";
|
|
9755
|
+
target: "system" | "device";
|
|
9756
|
+
access: ("delete" | "create" | "view")[];
|
|
9757
|
+
} | {
|
|
9758
|
+
type: "capability";
|
|
9759
|
+
target: string;
|
|
9760
|
+
access: ("delete" | "create" | "view")[];
|
|
9761
|
+
} | {
|
|
9762
|
+
type: "addon";
|
|
9763
|
+
target: string;
|
|
9764
|
+
access: ("delete" | "create" | "view")[];
|
|
9765
|
+
} | {
|
|
9766
|
+
type: "device";
|
|
9767
|
+
targets: string[];
|
|
9768
|
+
access: ("delete" | "create" | "view")[];
|
|
9769
|
+
})[];
|
|
9770
|
+
createdAt: number;
|
|
9771
|
+
lastUsedAt: number;
|
|
9772
|
+
revokedAt: number | null;
|
|
9773
|
+
}[];
|
|
9774
|
+
meta: object;
|
|
9775
|
+
}>;
|
|
9776
|
+
revokeOauthSession: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
9777
|
+
input: {
|
|
9778
|
+
[x: string]: unknown;
|
|
9779
|
+
id: string;
|
|
9780
|
+
};
|
|
9781
|
+
output: {
|
|
9782
|
+
success: boolean;
|
|
9783
|
+
};
|
|
9784
|
+
meta: object;
|
|
9785
|
+
}>;
|
|
9224
9786
|
}>>;
|
|
9225
9787
|
userPasskeys: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
9226
9788
|
ctx: import("@camstack/types").TrpcContext;
|
|
@@ -10773,6 +11335,20 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
10773
11335
|
}>;
|
|
10774
11336
|
meta: object;
|
|
10775
11337
|
}>;
|
|
11338
|
+
getCapUsageGraph: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
11339
|
+
input: {
|
|
11340
|
+
[x: string]: unknown;
|
|
11341
|
+
windowSeconds?: number | undefined;
|
|
11342
|
+
};
|
|
11343
|
+
output: readonly {
|
|
11344
|
+
callerAddonId: string;
|
|
11345
|
+
providerAddonId: string;
|
|
11346
|
+
capName: string;
|
|
11347
|
+
callsPerMin: number;
|
|
11348
|
+
lastCallAtMs: number;
|
|
11349
|
+
}[];
|
|
11350
|
+
meta: object;
|
|
11351
|
+
}>;
|
|
10776
11352
|
getNodeAddons: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
10777
11353
|
input: {
|
|
10778
11354
|
[x: string]: unknown;
|
|
@@ -12755,6 +13331,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
12755
13331
|
height?: number | undefined;
|
|
12756
13332
|
deviceId?: number | undefined;
|
|
12757
13333
|
tag?: string | undefined;
|
|
13334
|
+
frameSink?: "callback" | "shm" | undefined;
|
|
12758
13335
|
};
|
|
12759
13336
|
output: {
|
|
12760
13337
|
sessionId: string;
|
|
@@ -12810,6 +13387,68 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
12810
13387
|
}[];
|
|
12811
13388
|
meta: object;
|
|
12812
13389
|
}>;
|
|
13390
|
+
pullHandles: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
13391
|
+
input: {
|
|
13392
|
+
[x: string]: unknown;
|
|
13393
|
+
sessionId: string;
|
|
13394
|
+
maxCount?: number | undefined;
|
|
13395
|
+
};
|
|
13396
|
+
output: {
|
|
13397
|
+
shmId: string;
|
|
13398
|
+
slot: number;
|
|
13399
|
+
seq: number;
|
|
13400
|
+
width: number;
|
|
13401
|
+
height: number;
|
|
13402
|
+
format: "jpeg" | "rgb" | "bgr" | "yuv420" | "gray";
|
|
13403
|
+
pts: number;
|
|
13404
|
+
byteLength: number;
|
|
13405
|
+
nodeId: string;
|
|
13406
|
+
slotCount: number;
|
|
13407
|
+
}[];
|
|
13408
|
+
meta: object;
|
|
13409
|
+
}>;
|
|
13410
|
+
getFrame: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
13411
|
+
input: {
|
|
13412
|
+
[x: string]: unknown;
|
|
13413
|
+
handle: {
|
|
13414
|
+
shmId: string;
|
|
13415
|
+
slot: number;
|
|
13416
|
+
seq: number;
|
|
13417
|
+
width: number;
|
|
13418
|
+
height: number;
|
|
13419
|
+
format: "jpeg" | "rgb" | "bgr" | "yuv420" | "gray";
|
|
13420
|
+
pts: number;
|
|
13421
|
+
byteLength: number;
|
|
13422
|
+
nodeId: string;
|
|
13423
|
+
slotCount: number;
|
|
13424
|
+
};
|
|
13425
|
+
};
|
|
13426
|
+
output: {
|
|
13427
|
+
data: Uint8Array<ArrayBuffer>;
|
|
13428
|
+
width: number;
|
|
13429
|
+
height: number;
|
|
13430
|
+
format: "jpeg" | "rgb" | "bgr" | "yuv420" | "gray";
|
|
13431
|
+
timestamp: number;
|
|
13432
|
+
} | null;
|
|
13433
|
+
meta: object;
|
|
13434
|
+
}>;
|
|
13435
|
+
getShmStats: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
13436
|
+
input: {
|
|
13437
|
+
[x: string]: unknown;
|
|
13438
|
+
sessionId: string;
|
|
13439
|
+
};
|
|
13440
|
+
output: {
|
|
13441
|
+
sessionId: string;
|
|
13442
|
+
slotCount: number;
|
|
13443
|
+
slotByteLength: number;
|
|
13444
|
+
segmentBytes: number;
|
|
13445
|
+
budgetMb: number;
|
|
13446
|
+
framesWritten: number;
|
|
13447
|
+
getFrameHits: number;
|
|
13448
|
+
getFrameMisses: number;
|
|
13449
|
+
} | null;
|
|
13450
|
+
meta: object;
|
|
13451
|
+
}>;
|
|
12813
13452
|
updateConfig: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
12814
13453
|
input: {
|
|
12815
13454
|
[x: string]: unknown;
|
|
@@ -12823,6 +13462,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
12823
13462
|
height?: number | undefined;
|
|
12824
13463
|
deviceId?: number | undefined;
|
|
12825
13464
|
tag?: string | undefined;
|
|
13465
|
+
frameSink?: "callback" | "shm" | undefined;
|
|
12826
13466
|
};
|
|
12827
13467
|
};
|
|
12828
13468
|
output: void;
|
|
@@ -13287,9 +13927,15 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
13287
13927
|
nodeId?: string | undefined;
|
|
13288
13928
|
} | undefined;
|
|
13289
13929
|
output: readonly {
|
|
13290
|
-
|
|
13930
|
+
tab: string;
|
|
13291
13931
|
label: string;
|
|
13292
|
-
|
|
13932
|
+
kind: "remote";
|
|
13933
|
+
remote: {
|
|
13934
|
+
remoteName: string;
|
|
13935
|
+
exposedModule: string;
|
|
13936
|
+
componentKey?: string | undefined;
|
|
13937
|
+
};
|
|
13938
|
+
stableId: string;
|
|
13293
13939
|
bundle: string;
|
|
13294
13940
|
hosts: readonly ("device-tab" | "dashboard" | "integration-detail")[];
|
|
13295
13941
|
requires: {
|
|
@@ -13302,6 +13948,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
13302
13948
|
defaultRows: number;
|
|
13303
13949
|
addonId: string;
|
|
13304
13950
|
bundleUrl: string;
|
|
13951
|
+
subTab?: string | undefined;
|
|
13952
|
+
order?: number | undefined;
|
|
13305
13953
|
description?: string | undefined;
|
|
13306
13954
|
icon?: string | undefined;
|
|
13307
13955
|
}[];
|
|
@@ -13320,9 +13968,15 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
13320
13968
|
addonId?: string | undefined;
|
|
13321
13969
|
} | undefined;
|
|
13322
13970
|
output: readonly {
|
|
13323
|
-
|
|
13971
|
+
tab: string;
|
|
13324
13972
|
label: string;
|
|
13325
|
-
|
|
13973
|
+
kind: "remote";
|
|
13974
|
+
remote: {
|
|
13975
|
+
remoteName: string;
|
|
13976
|
+
exposedModule: string;
|
|
13977
|
+
componentKey?: string | undefined;
|
|
13978
|
+
};
|
|
13979
|
+
stableId: string;
|
|
13326
13980
|
bundle: string;
|
|
13327
13981
|
hosts: readonly ("device-tab" | "dashboard" | "integration-detail")[];
|
|
13328
13982
|
requires: {
|
|
@@ -13333,6 +13987,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
13333
13987
|
allowedSizes: readonly ("xs" | "sm" | "md" | "lg" | "xl")[];
|
|
13334
13988
|
defaultColumns: number;
|
|
13335
13989
|
defaultRows: number;
|
|
13990
|
+
subTab?: string | undefined;
|
|
13991
|
+
order?: number | undefined;
|
|
13336
13992
|
description?: string | undefined;
|
|
13337
13993
|
icon?: string | undefined;
|
|
13338
13994
|
}[];
|
|
@@ -14003,7 +14659,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
14003
14659
|
profile: "high" | "low" | "mid";
|
|
14004
14660
|
brokerId: string;
|
|
14005
14661
|
sourceCamStreamId: string | null;
|
|
14006
|
-
status: "error" | "streaming" | "
|
|
14662
|
+
status: "error" | "streaming" | "unassigned" | "idle" | "connecting";
|
|
14007
14663
|
resolution?: {
|
|
14008
14664
|
width: number;
|
|
14009
14665
|
height: number;
|
|
@@ -15477,7 +16133,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
15477
16133
|
online: boolean;
|
|
15478
16134
|
lastSeenMs: number;
|
|
15479
16135
|
isSelf: boolean;
|
|
15480
|
-
connection: "idle" | "
|
|
16136
|
+
connection: "idle" | "relay" | "direct";
|
|
15481
16137
|
relay: string | null;
|
|
15482
16138
|
lastHandshakeMs: number;
|
|
15483
16139
|
rxBytes: number;
|
|
@@ -15996,7 +16652,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
15996
16652
|
meta: object;
|
|
15997
16653
|
}>;
|
|
15998
16654
|
}>>;
|
|
15999
|
-
|
|
16655
|
+
motionZones: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
16000
16656
|
ctx: import("@camstack/types").TrpcContext;
|
|
16001
16657
|
meta: object;
|
|
16002
16658
|
errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
|
|
@@ -16004,36 +16660,80 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
16004
16660
|
}, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
|
|
16005
16661
|
getStatus: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
16006
16662
|
input: {
|
|
16007
|
-
|
|
16008
|
-
|
|
16009
|
-
}
|
|
16663
|
+
[x: string]: unknown;
|
|
16664
|
+
deviceId: number;
|
|
16665
|
+
};
|
|
16010
16666
|
output: unknown;
|
|
16011
16667
|
meta: object;
|
|
16012
16668
|
}>;
|
|
16013
|
-
|
|
16669
|
+
getOptions: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
16014
16670
|
input: {
|
|
16015
|
-
|
|
16016
|
-
|
|
16017
|
-
}
|
|
16671
|
+
[x: string]: unknown;
|
|
16672
|
+
deviceId: number;
|
|
16673
|
+
};
|
|
16018
16674
|
output: {
|
|
16019
|
-
|
|
16020
|
-
|
|
16021
|
-
|
|
16022
|
-
|
|
16023
|
-
|
|
16024
|
-
|
|
16025
|
-
|
|
16026
|
-
|
|
16027
|
-
lastCheckedAt?: number | undefined;
|
|
16028
|
-
}[];
|
|
16675
|
+
gridWidth: number;
|
|
16676
|
+
gridHeight: number;
|
|
16677
|
+
sensitivity: {
|
|
16678
|
+
min: number;
|
|
16679
|
+
max: number;
|
|
16680
|
+
step: number;
|
|
16681
|
+
};
|
|
16682
|
+
};
|
|
16029
16683
|
meta: object;
|
|
16030
16684
|
}>;
|
|
16031
|
-
|
|
16685
|
+
setZone: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
16032
16686
|
input: {
|
|
16033
16687
|
[x: string]: unknown;
|
|
16034
|
-
|
|
16035
|
-
|
|
16036
|
-
|
|
16688
|
+
deviceId: number;
|
|
16689
|
+
patch: {
|
|
16690
|
+
enabled?: boolean | undefined;
|
|
16691
|
+
sensitivity?: number | undefined;
|
|
16692
|
+
cells?: boolean[] | undefined;
|
|
16693
|
+
};
|
|
16694
|
+
};
|
|
16695
|
+
output: void;
|
|
16696
|
+
meta: object;
|
|
16697
|
+
}>;
|
|
16698
|
+
}>>;
|
|
16699
|
+
mqttBroker: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
16700
|
+
ctx: import("@camstack/types").TrpcContext;
|
|
16701
|
+
meta: object;
|
|
16702
|
+
errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
|
|
16703
|
+
transformer: true;
|
|
16704
|
+
}, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
|
|
16705
|
+
getStatus: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
16706
|
+
input: {
|
|
16707
|
+
nodeId?: string | undefined;
|
|
16708
|
+
addonId?: string | undefined;
|
|
16709
|
+
} | undefined;
|
|
16710
|
+
output: unknown;
|
|
16711
|
+
meta: object;
|
|
16712
|
+
}>;
|
|
16713
|
+
listBrokers: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
16714
|
+
input: {
|
|
16715
|
+
nodeId?: string | undefined;
|
|
16716
|
+
addonId?: string | undefined;
|
|
16717
|
+
} | undefined;
|
|
16718
|
+
output: {
|
|
16719
|
+
id: string;
|
|
16720
|
+
name: string;
|
|
16721
|
+
url: string;
|
|
16722
|
+
kind: "external" | "embedded";
|
|
16723
|
+
status: "connected" | "disconnected" | "auth-failed" | "unreachable" | "tls-error";
|
|
16724
|
+
latencyMs: number | null;
|
|
16725
|
+
error?: string | undefined;
|
|
16726
|
+
connectedClients?: number | undefined;
|
|
16727
|
+
lastCheckedAt?: number | undefined;
|
|
16728
|
+
}[];
|
|
16729
|
+
meta: object;
|
|
16730
|
+
}>;
|
|
16731
|
+
getBrokerConfig: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
16732
|
+
input: {
|
|
16733
|
+
[x: string]: unknown;
|
|
16734
|
+
id: string;
|
|
16735
|
+
};
|
|
16736
|
+
output: {
|
|
16037
16737
|
url: string;
|
|
16038
16738
|
username?: string | undefined;
|
|
16039
16739
|
password?: string | undefined;
|
|
@@ -16213,6 +16913,42 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
16213
16913
|
meta: object;
|
|
16214
16914
|
}>;
|
|
16215
16915
|
}>>;
|
|
16916
|
+
oauthIntegration: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
16917
|
+
ctx: import("@camstack/types").TrpcContext;
|
|
16918
|
+
meta: object;
|
|
16919
|
+
errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
|
|
16920
|
+
transformer: true;
|
|
16921
|
+
}, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
|
|
16922
|
+
getDescriptor: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
16923
|
+
input: {
|
|
16924
|
+
nodeId?: string | undefined;
|
|
16925
|
+
addonId?: string | undefined;
|
|
16926
|
+
} | undefined;
|
|
16927
|
+
output: {
|
|
16928
|
+
integrationId: string;
|
|
16929
|
+
displayName: string;
|
|
16930
|
+
requestedScopes: ({
|
|
16931
|
+
type: "category";
|
|
16932
|
+
target: "system" | "device";
|
|
16933
|
+
access: ("delete" | "create" | "view")[];
|
|
16934
|
+
} | {
|
|
16935
|
+
type: "capability";
|
|
16936
|
+
target: string;
|
|
16937
|
+
access: ("delete" | "create" | "view")[];
|
|
16938
|
+
} | {
|
|
16939
|
+
type: "addon";
|
|
16940
|
+
target: string;
|
|
16941
|
+
access: ("delete" | "create" | "view")[];
|
|
16942
|
+
} | {
|
|
16943
|
+
type: "device";
|
|
16944
|
+
targets: string[];
|
|
16945
|
+
access: ("delete" | "create" | "view")[];
|
|
16946
|
+
})[];
|
|
16947
|
+
allowedRedirectPrefixes: string[];
|
|
16948
|
+
};
|
|
16949
|
+
meta: object;
|
|
16950
|
+
}>;
|
|
16951
|
+
}>>;
|
|
16216
16952
|
osd: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
16217
16953
|
ctx: import("@camstack/types").TrpcContext;
|
|
16218
16954
|
meta: object;
|
|
@@ -16637,6 +17373,40 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
16637
17373
|
output: void;
|
|
16638
17374
|
meta: object;
|
|
16639
17375
|
}>;
|
|
17376
|
+
savePreset: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
17377
|
+
input: {
|
|
17378
|
+
[x: string]: unknown;
|
|
17379
|
+
deviceId: number;
|
|
17380
|
+
presetId: string;
|
|
17381
|
+
name: string;
|
|
17382
|
+
};
|
|
17383
|
+
output: void;
|
|
17384
|
+
meta: object;
|
|
17385
|
+
}>;
|
|
17386
|
+
deletePreset: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
17387
|
+
input: {
|
|
17388
|
+
[x: string]: unknown;
|
|
17389
|
+
deviceId: number;
|
|
17390
|
+
presetId: string;
|
|
17391
|
+
};
|
|
17392
|
+
output: void;
|
|
17393
|
+
meta: object;
|
|
17394
|
+
}>;
|
|
17395
|
+
getOptions: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
17396
|
+
input: {
|
|
17397
|
+
[x: string]: unknown;
|
|
17398
|
+
deviceId: number;
|
|
17399
|
+
};
|
|
17400
|
+
output: {
|
|
17401
|
+
hasPan: boolean;
|
|
17402
|
+
hasTilt: boolean;
|
|
17403
|
+
hasZoom: boolean;
|
|
17404
|
+
supportsPresets: boolean;
|
|
17405
|
+
hasAutofocus: boolean;
|
|
17406
|
+
maxPresets?: number | undefined;
|
|
17407
|
+
};
|
|
17408
|
+
meta: object;
|
|
17409
|
+
}>;
|
|
16640
17410
|
goHome: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
16641
17411
|
input: {
|
|
16642
17412
|
[x: string]: unknown;
|
|
@@ -16657,6 +17427,15 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
16657
17427
|
};
|
|
16658
17428
|
meta: object;
|
|
16659
17429
|
}>;
|
|
17430
|
+
setAutofocus: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
17431
|
+
input: {
|
|
17432
|
+
[x: string]: unknown;
|
|
17433
|
+
deviceId: number;
|
|
17434
|
+
enabled: boolean;
|
|
17435
|
+
};
|
|
17436
|
+
output: void;
|
|
17437
|
+
meta: object;
|
|
17438
|
+
}>;
|
|
16660
17439
|
}>>;
|
|
16661
17440
|
ptzAutotrack: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
16662
17441
|
ctx: import("@camstack/types").TrpcContext;
|
|
@@ -17409,6 +18188,27 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
17409
18188
|
email?: string | undefined;
|
|
17410
18189
|
displayName?: string | undefined;
|
|
17411
18190
|
hubUrl?: string | undefined;
|
|
18191
|
+
scopes?: ({
|
|
18192
|
+
type: "category";
|
|
18193
|
+
target: "system" | "device";
|
|
18194
|
+
access: ("delete" | "create" | "view")[];
|
|
18195
|
+
} | {
|
|
18196
|
+
type: "capability";
|
|
18197
|
+
target: string;
|
|
18198
|
+
access: ("delete" | "create" | "view")[];
|
|
18199
|
+
} | {
|
|
18200
|
+
type: "addon";
|
|
18201
|
+
target: string;
|
|
18202
|
+
access: ("delete" | "create" | "view")[];
|
|
18203
|
+
} | {
|
|
18204
|
+
type: "device";
|
|
18205
|
+
targets: string[];
|
|
18206
|
+
access: ("delete" | "create" | "view")[];
|
|
18207
|
+
})[] | undefined;
|
|
18208
|
+
redirectUri?: string | undefined;
|
|
18209
|
+
integrationId?: string | undefined;
|
|
18210
|
+
jti?: string | undefined;
|
|
18211
|
+
sessionId?: string | undefined;
|
|
17412
18212
|
};
|
|
17413
18213
|
ttlSec?: number | undefined;
|
|
17414
18214
|
};
|
|
@@ -17430,6 +18230,27 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
17430
18230
|
email?: string | undefined;
|
|
17431
18231
|
displayName?: string | undefined;
|
|
17432
18232
|
hubUrl?: string | undefined;
|
|
18233
|
+
scopes?: ({
|
|
18234
|
+
type: "category";
|
|
18235
|
+
target: "system" | "device";
|
|
18236
|
+
access: ("delete" | "create" | "view")[];
|
|
18237
|
+
} | {
|
|
18238
|
+
type: "capability";
|
|
18239
|
+
target: string;
|
|
18240
|
+
access: ("delete" | "create" | "view")[];
|
|
18241
|
+
} | {
|
|
18242
|
+
type: "addon";
|
|
18243
|
+
target: string;
|
|
18244
|
+
access: ("delete" | "create" | "view")[];
|
|
18245
|
+
} | {
|
|
18246
|
+
type: "device";
|
|
18247
|
+
targets: string[];
|
|
18248
|
+
access: ("delete" | "create" | "view")[];
|
|
18249
|
+
})[] | undefined;
|
|
18250
|
+
redirectUri?: string | undefined;
|
|
18251
|
+
integrationId?: string | undefined;
|
|
18252
|
+
jti?: string | undefined;
|
|
18253
|
+
sessionId?: string | undefined;
|
|
17433
18254
|
} | null;
|
|
17434
18255
|
meta: object;
|
|
17435
18256
|
}>;
|
|
@@ -18086,7 +18907,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18086
18907
|
profile: "high" | "low" | "mid";
|
|
18087
18908
|
brokerId: string;
|
|
18088
18909
|
sourceCamStreamId: string | null;
|
|
18089
|
-
status: "error" | "streaming" | "
|
|
18910
|
+
status: "error" | "streaming" | "unassigned" | "idle" | "connecting";
|
|
18090
18911
|
resolution?: {
|
|
18091
18912
|
width: number;
|
|
18092
18913
|
height: number;
|
|
@@ -18232,12 +19053,83 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18232
19053
|
};
|
|
18233
19054
|
meta: object;
|
|
18234
19055
|
}>;
|
|
18235
|
-
|
|
19056
|
+
subscribeAudioChunks: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
19057
|
+
input: {
|
|
19058
|
+
[x: string]: unknown;
|
|
19059
|
+
brokerId: string;
|
|
19060
|
+
tag?: string | undefined;
|
|
19061
|
+
};
|
|
19062
|
+
output: {
|
|
19063
|
+
subscriptionId: string;
|
|
19064
|
+
};
|
|
19065
|
+
meta: object;
|
|
19066
|
+
}>;
|
|
19067
|
+
pullAudioChunks: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
19068
|
+
input: {
|
|
19069
|
+
[x: string]: unknown;
|
|
19070
|
+
subscriptionId: string;
|
|
19071
|
+
maxCount?: number | undefined;
|
|
19072
|
+
};
|
|
19073
|
+
output: readonly {
|
|
19074
|
+
data: Uint8Array<ArrayBuffer>;
|
|
19075
|
+
sampleRate: number;
|
|
19076
|
+
channels: number;
|
|
19077
|
+
timestamp: number;
|
|
19078
|
+
}[];
|
|
19079
|
+
meta: object;
|
|
19080
|
+
}>;
|
|
19081
|
+
unsubscribeAudioChunks: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
19082
|
+
input: {
|
|
19083
|
+
[x: string]: unknown;
|
|
19084
|
+
subscriptionId: string;
|
|
19085
|
+
};
|
|
19086
|
+
output: {
|
|
19087
|
+
released: boolean;
|
|
19088
|
+
};
|
|
19089
|
+
meta: object;
|
|
19090
|
+
}>;
|
|
19091
|
+
subscribeFrames: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
18236
19092
|
input: {
|
|
18237
19093
|
[x: string]: unknown;
|
|
18238
19094
|
brokerId: string;
|
|
19095
|
+
format: "rgb" | "bgr" | "yuv420" | "gray";
|
|
19096
|
+
maxFps?: number | undefined;
|
|
19097
|
+
tag?: string | undefined;
|
|
19098
|
+
};
|
|
19099
|
+
output: {
|
|
19100
|
+
subscriptionId: string;
|
|
19101
|
+
maxFps: number;
|
|
19102
|
+
};
|
|
19103
|
+
meta: object;
|
|
19104
|
+
}>;
|
|
19105
|
+
pullFrameHandles: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
19106
|
+
input: {
|
|
19107
|
+
[x: string]: unknown;
|
|
19108
|
+
subscriptionId: string;
|
|
19109
|
+
maxCount?: number | undefined;
|
|
19110
|
+
};
|
|
19111
|
+
output: readonly {
|
|
19112
|
+
shmId: string;
|
|
19113
|
+
slot: number;
|
|
19114
|
+
seq: number;
|
|
19115
|
+
width: number;
|
|
19116
|
+
height: number;
|
|
19117
|
+
format: "jpeg" | "rgb" | "bgr" | "yuv420" | "gray";
|
|
19118
|
+
pts: number;
|
|
19119
|
+
byteLength: number;
|
|
19120
|
+
nodeId: string;
|
|
19121
|
+
slotCount: number;
|
|
19122
|
+
}[];
|
|
19123
|
+
meta: object;
|
|
19124
|
+
}>;
|
|
19125
|
+
unsubscribeFrames: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
19126
|
+
input: {
|
|
19127
|
+
[x: string]: unknown;
|
|
19128
|
+
subscriptionId: string;
|
|
19129
|
+
};
|
|
19130
|
+
output: {
|
|
19131
|
+
released: boolean;
|
|
18239
19132
|
};
|
|
18240
|
-
output: import("@camstack/types").IStreamBroker | null;
|
|
18241
19133
|
meta: object;
|
|
18242
19134
|
}>;
|
|
18243
19135
|
setPreBufferDuration: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
@@ -18321,6 +19213,112 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18321
19213
|
meta: object;
|
|
18322
19214
|
}>;
|
|
18323
19215
|
}>>;
|
|
19216
|
+
streamParams: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
19217
|
+
ctx: import("@camstack/types").TrpcContext;
|
|
19218
|
+
meta: object;
|
|
19219
|
+
errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
|
|
19220
|
+
transformer: true;
|
|
19221
|
+
}, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
|
|
19222
|
+
getStatus: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
19223
|
+
input: {
|
|
19224
|
+
[x: string]: unknown;
|
|
19225
|
+
deviceId: number;
|
|
19226
|
+
};
|
|
19227
|
+
output: unknown;
|
|
19228
|
+
meta: object;
|
|
19229
|
+
}>;
|
|
19230
|
+
getOptions: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
19231
|
+
input: {
|
|
19232
|
+
[x: string]: unknown;
|
|
19233
|
+
deviceId: number;
|
|
19234
|
+
};
|
|
19235
|
+
output: {
|
|
19236
|
+
main?: {
|
|
19237
|
+
resolutions: {
|
|
19238
|
+
width: number;
|
|
19239
|
+
height: number;
|
|
19240
|
+
}[];
|
|
19241
|
+
codecs: ("h264" | "h265")[];
|
|
19242
|
+
framerates: number[];
|
|
19243
|
+
bitrates: number[];
|
|
19244
|
+
supportsBitrateMode: boolean;
|
|
19245
|
+
supportsEncoderProfile: boolean;
|
|
19246
|
+
supportsGop: boolean;
|
|
19247
|
+
bitrateRange?: [number, number] | undefined;
|
|
19248
|
+
gop?: {
|
|
19249
|
+
min: number;
|
|
19250
|
+
max: number;
|
|
19251
|
+
step: number;
|
|
19252
|
+
} | undefined;
|
|
19253
|
+
} | undefined;
|
|
19254
|
+
sub?: {
|
|
19255
|
+
resolutions: {
|
|
19256
|
+
width: number;
|
|
19257
|
+
height: number;
|
|
19258
|
+
}[];
|
|
19259
|
+
codecs: ("h264" | "h265")[];
|
|
19260
|
+
framerates: number[];
|
|
19261
|
+
bitrates: number[];
|
|
19262
|
+
supportsBitrateMode: boolean;
|
|
19263
|
+
supportsEncoderProfile: boolean;
|
|
19264
|
+
supportsGop: boolean;
|
|
19265
|
+
bitrateRange?: [number, number] | undefined;
|
|
19266
|
+
gop?: {
|
|
19267
|
+
min: number;
|
|
19268
|
+
max: number;
|
|
19269
|
+
step: number;
|
|
19270
|
+
} | undefined;
|
|
19271
|
+
} | undefined;
|
|
19272
|
+
ext?: {
|
|
19273
|
+
resolutions: {
|
|
19274
|
+
width: number;
|
|
19275
|
+
height: number;
|
|
19276
|
+
}[];
|
|
19277
|
+
codecs: ("h264" | "h265")[];
|
|
19278
|
+
framerates: number[];
|
|
19279
|
+
bitrates: number[];
|
|
19280
|
+
supportsBitrateMode: boolean;
|
|
19281
|
+
supportsEncoderProfile: boolean;
|
|
19282
|
+
supportsGop: boolean;
|
|
19283
|
+
bitrateRange?: [number, number] | undefined;
|
|
19284
|
+
gop?: {
|
|
19285
|
+
min: number;
|
|
19286
|
+
max: number;
|
|
19287
|
+
step: number;
|
|
19288
|
+
} | undefined;
|
|
19289
|
+
} | undefined;
|
|
19290
|
+
};
|
|
19291
|
+
meta: object;
|
|
19292
|
+
}>;
|
|
19293
|
+
setProfile: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
19294
|
+
input: {
|
|
19295
|
+
[x: string]: unknown;
|
|
19296
|
+
deviceId: number;
|
|
19297
|
+
profile: "sub" | "main" | "ext";
|
|
19298
|
+
patch: {
|
|
19299
|
+
width?: number | undefined;
|
|
19300
|
+
height?: number | undefined;
|
|
19301
|
+
codec?: "h264" | "h265" | undefined;
|
|
19302
|
+
framerate?: number | undefined;
|
|
19303
|
+
bitrate?: number | undefined;
|
|
19304
|
+
bitrateMode?: "vbr" | "cbr" | undefined;
|
|
19305
|
+
encoderProfile?: "main" | "high" | "baseline" | undefined;
|
|
19306
|
+
gop?: number | undefined;
|
|
19307
|
+
audio?: boolean | undefined;
|
|
19308
|
+
};
|
|
19309
|
+
};
|
|
19310
|
+
output: void;
|
|
19311
|
+
meta: object;
|
|
19312
|
+
}>;
|
|
19313
|
+
getConfigSchema: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
19314
|
+
input: {
|
|
19315
|
+
[x: string]: unknown;
|
|
19316
|
+
deviceId: number;
|
|
19317
|
+
};
|
|
19318
|
+
output: unknown;
|
|
19319
|
+
meta: object;
|
|
19320
|
+
}>;
|
|
19321
|
+
}>>;
|
|
18324
19322
|
switch: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
18325
19323
|
ctx: import("@camstack/types").TrpcContext;
|
|
18326
19324
|
meta: object;
|
|
@@ -18823,6 +19821,132 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
18823
19821
|
};
|
|
18824
19822
|
meta: object;
|
|
18825
19823
|
}>;
|
|
19824
|
+
oauthIssueCode: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
19825
|
+
input: {
|
|
19826
|
+
[x: string]: unknown;
|
|
19827
|
+
integrationId: string;
|
|
19828
|
+
userId: string;
|
|
19829
|
+
username: string;
|
|
19830
|
+
scopes: ({
|
|
19831
|
+
type: "category";
|
|
19832
|
+
target: "system" | "device";
|
|
19833
|
+
access: ("delete" | "create" | "view")[];
|
|
19834
|
+
} | {
|
|
19835
|
+
type: "capability";
|
|
19836
|
+
target: string;
|
|
19837
|
+
access: ("delete" | "create" | "view")[];
|
|
19838
|
+
} | {
|
|
19839
|
+
type: "addon";
|
|
19840
|
+
target: string;
|
|
19841
|
+
access: ("delete" | "create" | "view")[];
|
|
19842
|
+
} | {
|
|
19843
|
+
type: "device";
|
|
19844
|
+
targets: string[];
|
|
19845
|
+
access: ("delete" | "create" | "view")[];
|
|
19846
|
+
})[];
|
|
19847
|
+
redirectUri: string;
|
|
19848
|
+
hubUrl: string;
|
|
19849
|
+
};
|
|
19850
|
+
output: {
|
|
19851
|
+
code: string;
|
|
19852
|
+
};
|
|
19853
|
+
meta: object;
|
|
19854
|
+
}>;
|
|
19855
|
+
oauthExchangeCode: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
19856
|
+
input: {
|
|
19857
|
+
[x: string]: unknown;
|
|
19858
|
+
code: string;
|
|
19859
|
+
redirectUri: string;
|
|
19860
|
+
};
|
|
19861
|
+
output: {
|
|
19862
|
+
accessToken: string;
|
|
19863
|
+
refreshToken: string;
|
|
19864
|
+
expiresIn: number;
|
|
19865
|
+
} | null;
|
|
19866
|
+
meta: object;
|
|
19867
|
+
}>;
|
|
19868
|
+
oauthRefresh: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
19869
|
+
input: {
|
|
19870
|
+
[x: string]: unknown;
|
|
19871
|
+
refreshToken: string;
|
|
19872
|
+
};
|
|
19873
|
+
output: {
|
|
19874
|
+
accessToken: string;
|
|
19875
|
+
refreshToken: string;
|
|
19876
|
+
expiresIn: number;
|
|
19877
|
+
} | null;
|
|
19878
|
+
meta: object;
|
|
19879
|
+
}>;
|
|
19880
|
+
oauthVerifyAccessToken: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
19881
|
+
input: {
|
|
19882
|
+
[x: string]: unknown;
|
|
19883
|
+
token: string;
|
|
19884
|
+
};
|
|
19885
|
+
output: {
|
|
19886
|
+
userId: string;
|
|
19887
|
+
username: string;
|
|
19888
|
+
scopes: ({
|
|
19889
|
+
type: "category";
|
|
19890
|
+
target: "system" | "device";
|
|
19891
|
+
access: ("delete" | "create" | "view")[];
|
|
19892
|
+
} | {
|
|
19893
|
+
type: "capability";
|
|
19894
|
+
target: string;
|
|
19895
|
+
access: ("delete" | "create" | "view")[];
|
|
19896
|
+
} | {
|
|
19897
|
+
type: "addon";
|
|
19898
|
+
target: string;
|
|
19899
|
+
access: ("delete" | "create" | "view")[];
|
|
19900
|
+
} | {
|
|
19901
|
+
type: "device";
|
|
19902
|
+
targets: string[];
|
|
19903
|
+
access: ("delete" | "create" | "view")[];
|
|
19904
|
+
})[];
|
|
19905
|
+
} | null;
|
|
19906
|
+
meta: object;
|
|
19907
|
+
}>;
|
|
19908
|
+
listOauthSessions: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
|
|
19909
|
+
input: {
|
|
19910
|
+
nodeId?: string | undefined;
|
|
19911
|
+
} | undefined;
|
|
19912
|
+
output: {
|
|
19913
|
+
id: string;
|
|
19914
|
+
userId: string;
|
|
19915
|
+
username: string;
|
|
19916
|
+
integrationId: string;
|
|
19917
|
+
scopes: ({
|
|
19918
|
+
type: "category";
|
|
19919
|
+
target: "system" | "device";
|
|
19920
|
+
access: ("delete" | "create" | "view")[];
|
|
19921
|
+
} | {
|
|
19922
|
+
type: "capability";
|
|
19923
|
+
target: string;
|
|
19924
|
+
access: ("delete" | "create" | "view")[];
|
|
19925
|
+
} | {
|
|
19926
|
+
type: "addon";
|
|
19927
|
+
target: string;
|
|
19928
|
+
access: ("delete" | "create" | "view")[];
|
|
19929
|
+
} | {
|
|
19930
|
+
type: "device";
|
|
19931
|
+
targets: string[];
|
|
19932
|
+
access: ("delete" | "create" | "view")[];
|
|
19933
|
+
})[];
|
|
19934
|
+
createdAt: number;
|
|
19935
|
+
lastUsedAt: number;
|
|
19936
|
+
revokedAt: number | null;
|
|
19937
|
+
}[];
|
|
19938
|
+
meta: object;
|
|
19939
|
+
}>;
|
|
19940
|
+
revokeOauthSession: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
|
|
19941
|
+
input: {
|
|
19942
|
+
[x: string]: unknown;
|
|
19943
|
+
id: string;
|
|
19944
|
+
};
|
|
19945
|
+
output: {
|
|
19946
|
+
success: boolean;
|
|
19947
|
+
};
|
|
19948
|
+
meta: object;
|
|
19949
|
+
}>;
|
|
18826
19950
|
}>>;
|
|
18827
19951
|
userPasskeys: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
|
|
18828
19952
|
ctx: import("@camstack/types").TrpcContext;
|