@camstack/types 1.1.15 → 1.1.17
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/audio-codec.cap.d.ts +1 -0
- package/dist/capabilities/camera-streams.cap.d.ts +2 -0
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/notification-output.cap.d.ts +503 -24
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +6 -5
- package/dist/capabilities/schemas/streaming-shared.d.ts +2 -0
- package/dist/capabilities/storage.cap.d.ts +4 -0
- package/dist/capabilities/stream-broker.cap.d.ts +5 -0
- package/dist/capabilities/stream-catalog.cap.d.ts +2 -0
- package/dist/generated/addon-api.d.ts +392 -74
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +483 -23
- package/dist/index.mjs +465 -24
- package/dist/interfaces/notification.d.ts +24 -14
- package/dist/interfaces/storage-location-declaration.d.ts +4 -0
- package/dist/interfaces/stream-broker.d.ts +13 -2
- package/dist/notification/degrade-engine.d.ts +60 -0
- package/dist/notification/format-transcode.d.ts +19 -0
- package/dist/{sleep-BQzZ7joF.js → sleep-BabrCASa.js} +1 -0
- package/dist/{sleep-C2M2zF7x.mjs → sleep-MHm--th-.mjs} +1 -0
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ declare const RtspRestreamEntrySchema: z.ZodObject<{
|
|
|
14
14
|
export declare const BrokerRtspClientSchema: z.ZodObject<{
|
|
15
15
|
sessionId: z.ZodString;
|
|
16
16
|
remoteAddr: z.ZodString;
|
|
17
|
+
userAgent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
18
|
playing: z.ZodBoolean;
|
|
18
19
|
muted: z.ZodBoolean;
|
|
19
20
|
connectedAt: z.ZodNumber;
|
|
@@ -135,6 +136,7 @@ export declare const BrokerClientsSchema: z.ZodObject<{
|
|
|
135
136
|
rtsp: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
136
137
|
sessionId: z.ZodString;
|
|
137
138
|
remoteAddr: z.ZodString;
|
|
139
|
+
userAgent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
140
|
playing: z.ZodBoolean;
|
|
139
141
|
muted: z.ZodBoolean;
|
|
140
142
|
connectedAt: z.ZodNumber;
|
|
@@ -282,6 +284,7 @@ export declare const streamBrokerCapability: {
|
|
|
282
284
|
"pull-rtsp": "pull-rtsp";
|
|
283
285
|
"pull-rtmp": "pull-rtmp";
|
|
284
286
|
"pull-http": "pull-http";
|
|
287
|
+
"pull-flv": "pull-flv";
|
|
285
288
|
"pull-rfc4571": "pull-rfc4571";
|
|
286
289
|
"push-annexb": "push-annexb";
|
|
287
290
|
derived: "derived";
|
|
@@ -382,6 +385,7 @@ export declare const streamBrokerCapability: {
|
|
|
382
385
|
"pull-rtsp": "pull-rtsp";
|
|
383
386
|
"pull-rtmp": "pull-rtmp";
|
|
384
387
|
"pull-http": "pull-http";
|
|
388
|
+
"pull-flv": "pull-flv";
|
|
385
389
|
"pull-rfc4571": "pull-rfc4571";
|
|
386
390
|
"push-annexb": "push-annexb";
|
|
387
391
|
derived: "derived";
|
|
@@ -475,6 +479,7 @@ export declare const streamBrokerCapability: {
|
|
|
475
479
|
rtsp: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
476
480
|
sessionId: z.ZodString;
|
|
477
481
|
remoteAddr: z.ZodString;
|
|
482
|
+
userAgent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
478
483
|
playing: z.ZodBoolean;
|
|
479
484
|
muted: z.ZodBoolean;
|
|
480
485
|
connectedAt: z.ZodNumber;
|
|
@@ -25,6 +25,7 @@ export declare const CamStreamDescriptorSchema: z.ZodObject<{
|
|
|
25
25
|
"pull-rtsp": "pull-rtsp";
|
|
26
26
|
"pull-rtmp": "pull-rtmp";
|
|
27
27
|
"pull-http": "pull-http";
|
|
28
|
+
"pull-flv": "pull-flv";
|
|
28
29
|
"pull-rfc4571": "pull-rfc4571";
|
|
29
30
|
"push-annexb": "push-annexb";
|
|
30
31
|
derived: "derived";
|
|
@@ -63,6 +64,7 @@ export declare const streamCatalogCapability: {
|
|
|
63
64
|
"pull-rtsp": "pull-rtsp";
|
|
64
65
|
"pull-rtmp": "pull-rtmp";
|
|
65
66
|
"pull-http": "pull-http";
|
|
67
|
+
"pull-flv": "pull-flv";
|
|
66
68
|
"pull-rfc4571": "pull-rfc4571";
|
|
67
69
|
"push-annexb": "push-annexb";
|
|
68
70
|
derived: "derived";
|
|
@@ -12,38 +12,25 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
12
12
|
errorShape: import("@camstack/types").AugmentedErrorShape;
|
|
13
13
|
transformer: true;
|
|
14
14
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
15
|
-
listOutputs: import("@trpc/server").TRPCQueryProcedure<{
|
|
16
|
-
input: void;
|
|
17
|
-
output: readonly {
|
|
18
|
-
id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
icon: string;
|
|
21
|
-
}[];
|
|
22
|
-
meta: object;
|
|
23
|
-
}>;
|
|
24
15
|
getRouting: import("@trpc/server").TRPCQueryProcedure<{
|
|
25
16
|
input: void;
|
|
26
|
-
output: Record<string,
|
|
17
|
+
output: Record<string, {
|
|
18
|
+
addonId: string;
|
|
19
|
+
targetId: string;
|
|
20
|
+
}[]>;
|
|
27
21
|
meta: object;
|
|
28
22
|
}>;
|
|
29
23
|
setRouting: import("@trpc/server").TRPCMutationProcedure<{
|
|
30
24
|
input: {
|
|
31
25
|
category: string;
|
|
32
|
-
|
|
26
|
+
targets: {
|
|
27
|
+
addonId: string;
|
|
28
|
+
targetId: string;
|
|
29
|
+
}[];
|
|
33
30
|
};
|
|
34
31
|
output: void;
|
|
35
32
|
meta: object;
|
|
36
33
|
}>;
|
|
37
|
-
sendTest: import("@trpc/server").TRPCMutationProcedure<{
|
|
38
|
-
input: {
|
|
39
|
-
outputId: string;
|
|
40
|
-
};
|
|
41
|
-
output: {
|
|
42
|
-
success: boolean;
|
|
43
|
-
error?: string | undefined;
|
|
44
|
-
};
|
|
45
|
-
meta: object;
|
|
46
|
-
}>;
|
|
47
34
|
}>>;
|
|
48
35
|
addonSettingsRaw: import("@trpc/server").TRPCBuiltRouter<{
|
|
49
36
|
ctx: TrpcContext;
|
|
@@ -2947,7 +2934,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
2947
2934
|
output: readonly {
|
|
2948
2935
|
camStreamId: string;
|
|
2949
2936
|
deviceId: number;
|
|
2950
|
-
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
2937
|
+
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
2951
2938
|
url?: string | undefined;
|
|
2952
2939
|
codec?: string | undefined;
|
|
2953
2940
|
resolution?: {
|
|
@@ -7862,29 +7849,199 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
7862
7849
|
errorShape: import("@camstack/types").AugmentedErrorShape;
|
|
7863
7850
|
transformer: true;
|
|
7864
7851
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7852
|
+
listTargetKinds: import("@trpc/server").TRPCQueryProcedure<{
|
|
7853
|
+
input: {
|
|
7854
|
+
[x: string]: unknown;
|
|
7855
|
+
};
|
|
7856
|
+
output: {
|
|
7857
|
+
kind: string;
|
|
7858
|
+
label: string;
|
|
7859
|
+
icon: string;
|
|
7860
|
+
addonId: string;
|
|
7861
|
+
configSchema: unknown;
|
|
7862
|
+
supportsDiscovery: boolean;
|
|
7863
|
+
caps: {
|
|
7864
|
+
attachments: {
|
|
7865
|
+
mediaTypes: ("image" | "audio" | "icon" | "video" | "gif")[];
|
|
7866
|
+
mode: "url" | "bytes" | "both";
|
|
7867
|
+
max: number;
|
|
7868
|
+
maxBytes?: number | undefined;
|
|
7869
|
+
};
|
|
7870
|
+
actions: number;
|
|
7871
|
+
levels: {
|
|
7872
|
+
id: string;
|
|
7873
|
+
label: string;
|
|
7874
|
+
ordinal: number | null;
|
|
7875
|
+
flags?: {
|
|
7876
|
+
critical?: boolean | undefined;
|
|
7877
|
+
silent?: boolean | undefined;
|
|
7878
|
+
noPush?: boolean | undefined;
|
|
7879
|
+
} | undefined;
|
|
7880
|
+
requires?: string[] | undefined;
|
|
7881
|
+
description?: string | undefined;
|
|
7882
|
+
}[];
|
|
7883
|
+
format: ("text" | "markdown" | "html")[];
|
|
7884
|
+
clickUrl: boolean;
|
|
7885
|
+
sound: boolean;
|
|
7886
|
+
ttl: boolean;
|
|
7887
|
+
bodyMaxLen: number;
|
|
7888
|
+
};
|
|
7889
|
+
}[];
|
|
7890
|
+
meta: object;
|
|
7891
|
+
}>;
|
|
7892
|
+
listTargets: import("@trpc/server").TRPCQueryProcedure<{
|
|
7893
|
+
input: {
|
|
7894
|
+
[x: string]: unknown;
|
|
7895
|
+
};
|
|
7896
|
+
output: {
|
|
7897
|
+
id: string;
|
|
7898
|
+
name: string;
|
|
7899
|
+
kind: string;
|
|
7900
|
+
addonId: string;
|
|
7901
|
+
enabled: boolean;
|
|
7902
|
+
config: Record<string, unknown>;
|
|
7903
|
+
}[];
|
|
7904
|
+
meta: object;
|
|
7905
|
+
}>;
|
|
7906
|
+
discoverTargets: import("@trpc/server").TRPCQueryProcedure<{
|
|
7907
|
+
input: {
|
|
7908
|
+
[x: string]: unknown;
|
|
7909
|
+
kind: string;
|
|
7910
|
+
};
|
|
7911
|
+
output: {
|
|
7912
|
+
kind: string;
|
|
7913
|
+
suggestedName: string;
|
|
7914
|
+
config: Record<string, unknown>;
|
|
7915
|
+
}[];
|
|
7916
|
+
meta: object;
|
|
7917
|
+
}>;
|
|
7865
7918
|
send: import("@trpc/server").TRPCMutationProcedure<{
|
|
7866
7919
|
input: {
|
|
7867
7920
|
[x: string]: unknown;
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
|
|
7921
|
+
targetId: string;
|
|
7922
|
+
notification: {
|
|
7923
|
+
body: string;
|
|
7924
|
+
title?: string | undefined;
|
|
7925
|
+
format?: "text" | "markdown" | "html" | undefined;
|
|
7926
|
+
priority?: number | undefined;
|
|
7927
|
+
level?: string | undefined;
|
|
7928
|
+
attachments?: {
|
|
7929
|
+
mediaType: "image" | "audio" | "icon" | "video" | "gif";
|
|
7930
|
+
url?: string | undefined;
|
|
7931
|
+
bytes?: Uint8Array<ArrayBuffer> | undefined;
|
|
7932
|
+
mime?: string | undefined;
|
|
7933
|
+
name?: string | undefined;
|
|
7934
|
+
}[] | undefined;
|
|
7935
|
+
clickUrl?: string | undefined;
|
|
7936
|
+
actions?: {
|
|
7937
|
+
id: string;
|
|
7938
|
+
label: string;
|
|
7939
|
+
url?: string | undefined;
|
|
7940
|
+
}[] | undefined;
|
|
7941
|
+
sound?: string | undefined;
|
|
7942
|
+
ttl?: number | undefined;
|
|
7943
|
+
tag?: string | undefined;
|
|
7944
|
+
deviceId?: number | undefined;
|
|
7945
|
+
eventId?: string | undefined;
|
|
7946
|
+
metadata?: Record<string, unknown> | undefined;
|
|
7947
|
+
};
|
|
7948
|
+
};
|
|
7949
|
+
output: {
|
|
7950
|
+
success: boolean;
|
|
7951
|
+
error?: string | undefined;
|
|
7952
|
+
renderedAs?: {
|
|
7953
|
+
level: string;
|
|
7954
|
+
format: "text" | "markdown" | "html";
|
|
7955
|
+
attachmentsSent: number;
|
|
7956
|
+
actionsSent: number;
|
|
7957
|
+
truncated: boolean;
|
|
7958
|
+
dropped: string[];
|
|
7959
|
+
} | undefined;
|
|
7875
7960
|
};
|
|
7876
|
-
output: void;
|
|
7877
7961
|
meta: object;
|
|
7878
7962
|
}>;
|
|
7879
|
-
|
|
7963
|
+
testTarget: import("@trpc/server").TRPCMutationProcedure<{
|
|
7880
7964
|
input: {
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7965
|
+
[x: string]: unknown;
|
|
7966
|
+
targetId: string;
|
|
7967
|
+
sample?: {
|
|
7968
|
+
body: string;
|
|
7969
|
+
title?: string | undefined;
|
|
7970
|
+
format?: "text" | "markdown" | "html" | undefined;
|
|
7971
|
+
priority?: number | undefined;
|
|
7972
|
+
level?: string | undefined;
|
|
7973
|
+
attachments?: {
|
|
7974
|
+
mediaType: "image" | "audio" | "icon" | "video" | "gif";
|
|
7975
|
+
url?: string | undefined;
|
|
7976
|
+
bytes?: Uint8Array<ArrayBuffer> | undefined;
|
|
7977
|
+
mime?: string | undefined;
|
|
7978
|
+
name?: string | undefined;
|
|
7979
|
+
}[] | undefined;
|
|
7980
|
+
clickUrl?: string | undefined;
|
|
7981
|
+
actions?: {
|
|
7982
|
+
id: string;
|
|
7983
|
+
label: string;
|
|
7984
|
+
url?: string | undefined;
|
|
7985
|
+
}[] | undefined;
|
|
7986
|
+
sound?: string | undefined;
|
|
7987
|
+
ttl?: number | undefined;
|
|
7988
|
+
tag?: string | undefined;
|
|
7989
|
+
deviceId?: number | undefined;
|
|
7990
|
+
eventId?: string | undefined;
|
|
7991
|
+
metadata?: Record<string, unknown> | undefined;
|
|
7992
|
+
} | undefined;
|
|
7993
|
+
};
|
|
7884
7994
|
output: {
|
|
7885
7995
|
success: boolean;
|
|
7886
7996
|
error?: string | undefined;
|
|
7997
|
+
renderedAs?: {
|
|
7998
|
+
level: string;
|
|
7999
|
+
format: "text" | "markdown" | "html";
|
|
8000
|
+
attachmentsSent: number;
|
|
8001
|
+
actionsSent: number;
|
|
8002
|
+
truncated: boolean;
|
|
8003
|
+
dropped: string[];
|
|
8004
|
+
} | undefined;
|
|
8005
|
+
};
|
|
8006
|
+
meta: object;
|
|
8007
|
+
}>;
|
|
8008
|
+
upsertTarget: import("@trpc/server").TRPCMutationProcedure<{
|
|
8009
|
+
input: {
|
|
8010
|
+
[x: string]: unknown;
|
|
8011
|
+
target: {
|
|
8012
|
+
id: string;
|
|
8013
|
+
name: string;
|
|
8014
|
+
kind: string;
|
|
8015
|
+
addonId: string;
|
|
8016
|
+
enabled: boolean;
|
|
8017
|
+
config: Record<string, unknown>;
|
|
8018
|
+
};
|
|
7887
8019
|
};
|
|
8020
|
+
output: {
|
|
8021
|
+
id: string;
|
|
8022
|
+
name: string;
|
|
8023
|
+
kind: string;
|
|
8024
|
+
addonId: string;
|
|
8025
|
+
enabled: boolean;
|
|
8026
|
+
config: Record<string, unknown>;
|
|
8027
|
+
};
|
|
8028
|
+
meta: object;
|
|
8029
|
+
}>;
|
|
8030
|
+
deleteTarget: import("@trpc/server").TRPCMutationProcedure<{
|
|
8031
|
+
input: {
|
|
8032
|
+
[x: string]: unknown;
|
|
8033
|
+
targetId: string;
|
|
8034
|
+
};
|
|
8035
|
+
output: void;
|
|
8036
|
+
meta: object;
|
|
8037
|
+
}>;
|
|
8038
|
+
setTargetEnabled: import("@trpc/server").TRPCMutationProcedure<{
|
|
8039
|
+
input: {
|
|
8040
|
+
[x: string]: unknown;
|
|
8041
|
+
targetId: string;
|
|
8042
|
+
enabled: boolean;
|
|
8043
|
+
};
|
|
8044
|
+
output: void;
|
|
7888
8045
|
meta: object;
|
|
7889
8046
|
}>;
|
|
7890
8047
|
}>>;
|
|
@@ -11524,6 +11681,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11524
11681
|
cardinality: "single" | "multi";
|
|
11525
11682
|
description?: string | undefined;
|
|
11526
11683
|
defaultsTo?: string | undefined;
|
|
11684
|
+
defaultRoot?: "data" | "media" | undefined;
|
|
11527
11685
|
}[];
|
|
11528
11686
|
meta: object;
|
|
11529
11687
|
}>;
|
|
@@ -11981,7 +12139,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11981
12139
|
[x: string]: unknown;
|
|
11982
12140
|
deviceId: number;
|
|
11983
12141
|
camStreamId: string;
|
|
11984
|
-
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
12142
|
+
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
11985
12143
|
url?: string | undefined;
|
|
11986
12144
|
codec?: string | undefined;
|
|
11987
12145
|
resolution?: {
|
|
@@ -12063,7 +12221,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
12063
12221
|
output: readonly {
|
|
12064
12222
|
camStreamId: string;
|
|
12065
12223
|
deviceId: number;
|
|
12066
|
-
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
12224
|
+
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
12067
12225
|
url?: string | undefined;
|
|
12068
12226
|
codec?: string | undefined;
|
|
12069
12227
|
resolution?: {
|
|
@@ -12155,6 +12313,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
12155
12313
|
connectedAt: number;
|
|
12156
12314
|
lastRtpAt: number;
|
|
12157
12315
|
bytesSent: number;
|
|
12316
|
+
userAgent?: string | null | undefined;
|
|
12158
12317
|
}[];
|
|
12159
12318
|
decoded: readonly {
|
|
12160
12319
|
tag: string;
|
|
@@ -12449,7 +12608,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
12449
12608
|
};
|
|
12450
12609
|
output: readonly {
|
|
12451
12610
|
camStreamId: string;
|
|
12452
|
-
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
12611
|
+
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
12453
12612
|
url?: string | undefined;
|
|
12454
12613
|
codec?: string | undefined;
|
|
12455
12614
|
resolution?: {
|
|
@@ -13849,38 +14008,25 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
13849
14008
|
errorShape: import("@camstack/types").AugmentedErrorShape;
|
|
13850
14009
|
transformer: true;
|
|
13851
14010
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
13852
|
-
listOutputs: import("@trpc/server").TRPCQueryProcedure<{
|
|
13853
|
-
input: void;
|
|
13854
|
-
output: readonly {
|
|
13855
|
-
id: string;
|
|
13856
|
-
name: string;
|
|
13857
|
-
icon: string;
|
|
13858
|
-
}[];
|
|
13859
|
-
meta: object;
|
|
13860
|
-
}>;
|
|
13861
14011
|
getRouting: import("@trpc/server").TRPCQueryProcedure<{
|
|
13862
14012
|
input: void;
|
|
13863
|
-
output: Record<string,
|
|
14013
|
+
output: Record<string, {
|
|
14014
|
+
addonId: string;
|
|
14015
|
+
targetId: string;
|
|
14016
|
+
}[]>;
|
|
13864
14017
|
meta: object;
|
|
13865
14018
|
}>;
|
|
13866
14019
|
setRouting: import("@trpc/server").TRPCMutationProcedure<{
|
|
13867
14020
|
input: {
|
|
13868
14021
|
category: string;
|
|
13869
|
-
|
|
14022
|
+
targets: {
|
|
14023
|
+
addonId: string;
|
|
14024
|
+
targetId: string;
|
|
14025
|
+
}[];
|
|
13870
14026
|
};
|
|
13871
14027
|
output: void;
|
|
13872
14028
|
meta: object;
|
|
13873
14029
|
}>;
|
|
13874
|
-
sendTest: import("@trpc/server").TRPCMutationProcedure<{
|
|
13875
|
-
input: {
|
|
13876
|
-
outputId: string;
|
|
13877
|
-
};
|
|
13878
|
-
output: {
|
|
13879
|
-
success: boolean;
|
|
13880
|
-
error?: string | undefined;
|
|
13881
|
-
};
|
|
13882
|
-
meta: object;
|
|
13883
|
-
}>;
|
|
13884
14030
|
}>>;
|
|
13885
14031
|
addonSettingsRaw: import("@trpc/server").TRPCBuiltRouter<{
|
|
13886
14032
|
ctx: TrpcContext;
|
|
@@ -16784,7 +16930,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
16784
16930
|
output: readonly {
|
|
16785
16931
|
camStreamId: string;
|
|
16786
16932
|
deviceId: number;
|
|
16787
|
-
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
16933
|
+
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
16788
16934
|
url?: string | undefined;
|
|
16789
16935
|
codec?: string | undefined;
|
|
16790
16936
|
resolution?: {
|
|
@@ -21699,29 +21845,199 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
21699
21845
|
errorShape: import("@camstack/types").AugmentedErrorShape;
|
|
21700
21846
|
transformer: true;
|
|
21701
21847
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
21848
|
+
listTargetKinds: import("@trpc/server").TRPCQueryProcedure<{
|
|
21849
|
+
input: {
|
|
21850
|
+
[x: string]: unknown;
|
|
21851
|
+
};
|
|
21852
|
+
output: {
|
|
21853
|
+
kind: string;
|
|
21854
|
+
label: string;
|
|
21855
|
+
icon: string;
|
|
21856
|
+
addonId: string;
|
|
21857
|
+
configSchema: unknown;
|
|
21858
|
+
supportsDiscovery: boolean;
|
|
21859
|
+
caps: {
|
|
21860
|
+
attachments: {
|
|
21861
|
+
mediaTypes: ("image" | "audio" | "icon" | "video" | "gif")[];
|
|
21862
|
+
mode: "url" | "bytes" | "both";
|
|
21863
|
+
max: number;
|
|
21864
|
+
maxBytes?: number | undefined;
|
|
21865
|
+
};
|
|
21866
|
+
actions: number;
|
|
21867
|
+
levels: {
|
|
21868
|
+
id: string;
|
|
21869
|
+
label: string;
|
|
21870
|
+
ordinal: number | null;
|
|
21871
|
+
flags?: {
|
|
21872
|
+
critical?: boolean | undefined;
|
|
21873
|
+
silent?: boolean | undefined;
|
|
21874
|
+
noPush?: boolean | undefined;
|
|
21875
|
+
} | undefined;
|
|
21876
|
+
requires?: string[] | undefined;
|
|
21877
|
+
description?: string | undefined;
|
|
21878
|
+
}[];
|
|
21879
|
+
format: ("text" | "markdown" | "html")[];
|
|
21880
|
+
clickUrl: boolean;
|
|
21881
|
+
sound: boolean;
|
|
21882
|
+
ttl: boolean;
|
|
21883
|
+
bodyMaxLen: number;
|
|
21884
|
+
};
|
|
21885
|
+
}[];
|
|
21886
|
+
meta: object;
|
|
21887
|
+
}>;
|
|
21888
|
+
listTargets: import("@trpc/server").TRPCQueryProcedure<{
|
|
21889
|
+
input: {
|
|
21890
|
+
[x: string]: unknown;
|
|
21891
|
+
};
|
|
21892
|
+
output: {
|
|
21893
|
+
id: string;
|
|
21894
|
+
name: string;
|
|
21895
|
+
kind: string;
|
|
21896
|
+
addonId: string;
|
|
21897
|
+
enabled: boolean;
|
|
21898
|
+
config: Record<string, unknown>;
|
|
21899
|
+
}[];
|
|
21900
|
+
meta: object;
|
|
21901
|
+
}>;
|
|
21902
|
+
discoverTargets: import("@trpc/server").TRPCQueryProcedure<{
|
|
21903
|
+
input: {
|
|
21904
|
+
[x: string]: unknown;
|
|
21905
|
+
kind: string;
|
|
21906
|
+
};
|
|
21907
|
+
output: {
|
|
21908
|
+
kind: string;
|
|
21909
|
+
suggestedName: string;
|
|
21910
|
+
config: Record<string, unknown>;
|
|
21911
|
+
}[];
|
|
21912
|
+
meta: object;
|
|
21913
|
+
}>;
|
|
21702
21914
|
send: import("@trpc/server").TRPCMutationProcedure<{
|
|
21703
21915
|
input: {
|
|
21704
21916
|
[x: string]: unknown;
|
|
21705
|
-
|
|
21706
|
-
|
|
21707
|
-
|
|
21708
|
-
|
|
21709
|
-
|
|
21710
|
-
|
|
21711
|
-
|
|
21917
|
+
targetId: string;
|
|
21918
|
+
notification: {
|
|
21919
|
+
body: string;
|
|
21920
|
+
title?: string | undefined;
|
|
21921
|
+
format?: "text" | "markdown" | "html" | undefined;
|
|
21922
|
+
priority?: number | undefined;
|
|
21923
|
+
level?: string | undefined;
|
|
21924
|
+
attachments?: {
|
|
21925
|
+
mediaType: "image" | "audio" | "icon" | "video" | "gif";
|
|
21926
|
+
url?: string | undefined;
|
|
21927
|
+
bytes?: Uint8Array<ArrayBuffer> | undefined;
|
|
21928
|
+
mime?: string | undefined;
|
|
21929
|
+
name?: string | undefined;
|
|
21930
|
+
}[] | undefined;
|
|
21931
|
+
clickUrl?: string | undefined;
|
|
21932
|
+
actions?: {
|
|
21933
|
+
id: string;
|
|
21934
|
+
label: string;
|
|
21935
|
+
url?: string | undefined;
|
|
21936
|
+
}[] | undefined;
|
|
21937
|
+
sound?: string | undefined;
|
|
21938
|
+
ttl?: number | undefined;
|
|
21939
|
+
tag?: string | undefined;
|
|
21940
|
+
deviceId?: number | undefined;
|
|
21941
|
+
eventId?: string | undefined;
|
|
21942
|
+
metadata?: Record<string, unknown> | undefined;
|
|
21943
|
+
};
|
|
21944
|
+
};
|
|
21945
|
+
output: {
|
|
21946
|
+
success: boolean;
|
|
21947
|
+
error?: string | undefined;
|
|
21948
|
+
renderedAs?: {
|
|
21949
|
+
level: string;
|
|
21950
|
+
format: "text" | "markdown" | "html";
|
|
21951
|
+
attachmentsSent: number;
|
|
21952
|
+
actionsSent: number;
|
|
21953
|
+
truncated: boolean;
|
|
21954
|
+
dropped: string[];
|
|
21955
|
+
} | undefined;
|
|
21712
21956
|
};
|
|
21713
|
-
output: void;
|
|
21714
21957
|
meta: object;
|
|
21715
21958
|
}>;
|
|
21716
|
-
|
|
21959
|
+
testTarget: import("@trpc/server").TRPCMutationProcedure<{
|
|
21717
21960
|
input: {
|
|
21718
|
-
|
|
21719
|
-
|
|
21720
|
-
|
|
21961
|
+
[x: string]: unknown;
|
|
21962
|
+
targetId: string;
|
|
21963
|
+
sample?: {
|
|
21964
|
+
body: string;
|
|
21965
|
+
title?: string | undefined;
|
|
21966
|
+
format?: "text" | "markdown" | "html" | undefined;
|
|
21967
|
+
priority?: number | undefined;
|
|
21968
|
+
level?: string | undefined;
|
|
21969
|
+
attachments?: {
|
|
21970
|
+
mediaType: "image" | "audio" | "icon" | "video" | "gif";
|
|
21971
|
+
url?: string | undefined;
|
|
21972
|
+
bytes?: Uint8Array<ArrayBuffer> | undefined;
|
|
21973
|
+
mime?: string | undefined;
|
|
21974
|
+
name?: string | undefined;
|
|
21975
|
+
}[] | undefined;
|
|
21976
|
+
clickUrl?: string | undefined;
|
|
21977
|
+
actions?: {
|
|
21978
|
+
id: string;
|
|
21979
|
+
label: string;
|
|
21980
|
+
url?: string | undefined;
|
|
21981
|
+
}[] | undefined;
|
|
21982
|
+
sound?: string | undefined;
|
|
21983
|
+
ttl?: number | undefined;
|
|
21984
|
+
tag?: string | undefined;
|
|
21985
|
+
deviceId?: number | undefined;
|
|
21986
|
+
eventId?: string | undefined;
|
|
21987
|
+
metadata?: Record<string, unknown> | undefined;
|
|
21988
|
+
} | undefined;
|
|
21989
|
+
};
|
|
21721
21990
|
output: {
|
|
21722
21991
|
success: boolean;
|
|
21723
21992
|
error?: string | undefined;
|
|
21993
|
+
renderedAs?: {
|
|
21994
|
+
level: string;
|
|
21995
|
+
format: "text" | "markdown" | "html";
|
|
21996
|
+
attachmentsSent: number;
|
|
21997
|
+
actionsSent: number;
|
|
21998
|
+
truncated: boolean;
|
|
21999
|
+
dropped: string[];
|
|
22000
|
+
} | undefined;
|
|
22001
|
+
};
|
|
22002
|
+
meta: object;
|
|
22003
|
+
}>;
|
|
22004
|
+
upsertTarget: import("@trpc/server").TRPCMutationProcedure<{
|
|
22005
|
+
input: {
|
|
22006
|
+
[x: string]: unknown;
|
|
22007
|
+
target: {
|
|
22008
|
+
id: string;
|
|
22009
|
+
name: string;
|
|
22010
|
+
kind: string;
|
|
22011
|
+
addonId: string;
|
|
22012
|
+
enabled: boolean;
|
|
22013
|
+
config: Record<string, unknown>;
|
|
22014
|
+
};
|
|
21724
22015
|
};
|
|
22016
|
+
output: {
|
|
22017
|
+
id: string;
|
|
22018
|
+
name: string;
|
|
22019
|
+
kind: string;
|
|
22020
|
+
addonId: string;
|
|
22021
|
+
enabled: boolean;
|
|
22022
|
+
config: Record<string, unknown>;
|
|
22023
|
+
};
|
|
22024
|
+
meta: object;
|
|
22025
|
+
}>;
|
|
22026
|
+
deleteTarget: import("@trpc/server").TRPCMutationProcedure<{
|
|
22027
|
+
input: {
|
|
22028
|
+
[x: string]: unknown;
|
|
22029
|
+
targetId: string;
|
|
22030
|
+
};
|
|
22031
|
+
output: void;
|
|
22032
|
+
meta: object;
|
|
22033
|
+
}>;
|
|
22034
|
+
setTargetEnabled: import("@trpc/server").TRPCMutationProcedure<{
|
|
22035
|
+
input: {
|
|
22036
|
+
[x: string]: unknown;
|
|
22037
|
+
targetId: string;
|
|
22038
|
+
enabled: boolean;
|
|
22039
|
+
};
|
|
22040
|
+
output: void;
|
|
21725
22041
|
meta: object;
|
|
21726
22042
|
}>;
|
|
21727
22043
|
}>>;
|
|
@@ -25361,6 +25677,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
25361
25677
|
cardinality: "single" | "multi";
|
|
25362
25678
|
description?: string | undefined;
|
|
25363
25679
|
defaultsTo?: string | undefined;
|
|
25680
|
+
defaultRoot?: "data" | "media" | undefined;
|
|
25364
25681
|
}[];
|
|
25365
25682
|
meta: object;
|
|
25366
25683
|
}>;
|
|
@@ -25818,7 +26135,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
25818
26135
|
[x: string]: unknown;
|
|
25819
26136
|
deviceId: number;
|
|
25820
26137
|
camStreamId: string;
|
|
25821
|
-
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
26138
|
+
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
25822
26139
|
url?: string | undefined;
|
|
25823
26140
|
codec?: string | undefined;
|
|
25824
26141
|
resolution?: {
|
|
@@ -25900,7 +26217,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
25900
26217
|
output: readonly {
|
|
25901
26218
|
camStreamId: string;
|
|
25902
26219
|
deviceId: number;
|
|
25903
|
-
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
26220
|
+
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
25904
26221
|
url?: string | undefined;
|
|
25905
26222
|
codec?: string | undefined;
|
|
25906
26223
|
resolution?: {
|
|
@@ -25992,6 +26309,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
25992
26309
|
connectedAt: number;
|
|
25993
26310
|
lastRtpAt: number;
|
|
25994
26311
|
bytesSent: number;
|
|
26312
|
+
userAgent?: string | null | undefined;
|
|
25995
26313
|
}[];
|
|
25996
26314
|
decoded: readonly {
|
|
25997
26315
|
tag: string;
|
|
@@ -26286,7 +26604,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
26286
26604
|
};
|
|
26287
26605
|
output: readonly {
|
|
26288
26606
|
camStreamId: string;
|
|
26289
|
-
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
26607
|
+
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
26290
26608
|
url?: string | undefined;
|
|
26291
26609
|
codec?: string | undefined;
|
|
26292
26610
|
resolution?: {
|
|
@@ -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: 724 method paths across 110 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|