@camstack/types 1.1.16 → 1.1.18
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/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/stream-broker.cap.d.ts +2 -0
- package/dist/capabilities/stream-catalog.cap.d.ts +2 -0
- package/dist/generated/addon-api.d.ts +430 -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 +463 -22
- package/dist/index.mjs +445 -23
- package/dist/interfaces/notification.d.ts +24 -14
- 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
|
@@ -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;
|
|
@@ -236,6 +223,26 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
236
223
|
};
|
|
237
224
|
meta: object;
|
|
238
225
|
}>;
|
|
226
|
+
getRecent: import("@trpc/server").TRPCQueryProcedure<{
|
|
227
|
+
input: {
|
|
228
|
+
category?: string | string[] | undefined;
|
|
229
|
+
limit?: number | undefined;
|
|
230
|
+
};
|
|
231
|
+
output: {
|
|
232
|
+
id: string;
|
|
233
|
+
timestamp: string;
|
|
234
|
+
source: {
|
|
235
|
+
type: string;
|
|
236
|
+
id: string | number;
|
|
237
|
+
nodeId?: string | undefined;
|
|
238
|
+
addonId?: string | undefined;
|
|
239
|
+
deviceId?: number | undefined;
|
|
240
|
+
};
|
|
241
|
+
category: string;
|
|
242
|
+
data: Record<string, unknown>;
|
|
243
|
+
}[];
|
|
244
|
+
meta: object;
|
|
245
|
+
}>;
|
|
239
246
|
}>>;
|
|
240
247
|
repl: import("@trpc/server").TRPCBuiltRouter<{
|
|
241
248
|
ctx: TrpcContext;
|
|
@@ -2947,7 +2954,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
2947
2954
|
output: readonly {
|
|
2948
2955
|
camStreamId: string;
|
|
2949
2956
|
deviceId: number;
|
|
2950
|
-
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
2957
|
+
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
2951
2958
|
url?: string | undefined;
|
|
2952
2959
|
codec?: string | undefined;
|
|
2953
2960
|
resolution?: {
|
|
@@ -7862,31 +7869,202 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
7862
7869
|
errorShape: import("@camstack/types").AugmentedErrorShape;
|
|
7863
7870
|
transformer: true;
|
|
7864
7871
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7872
|
+
listTargetKinds: import("@trpc/server").TRPCQueryProcedure<{
|
|
7873
|
+
input: {
|
|
7874
|
+
[x: string]: unknown;
|
|
7875
|
+
};
|
|
7876
|
+
output: {
|
|
7877
|
+
kind: string;
|
|
7878
|
+
label: string;
|
|
7879
|
+
icon: string;
|
|
7880
|
+
addonId: string;
|
|
7881
|
+
configSchema: unknown;
|
|
7882
|
+
supportsDiscovery: boolean;
|
|
7883
|
+
caps: {
|
|
7884
|
+
attachments: {
|
|
7885
|
+
mediaTypes: ("image" | "audio" | "icon" | "video" | "gif")[];
|
|
7886
|
+
mode: "url" | "bytes" | "both";
|
|
7887
|
+
max: number;
|
|
7888
|
+
maxBytes?: number | undefined;
|
|
7889
|
+
};
|
|
7890
|
+
actions: number;
|
|
7891
|
+
levels: {
|
|
7892
|
+
id: string;
|
|
7893
|
+
label: string;
|
|
7894
|
+
ordinal: number | null;
|
|
7895
|
+
flags?: {
|
|
7896
|
+
critical?: boolean | undefined;
|
|
7897
|
+
silent?: boolean | undefined;
|
|
7898
|
+
noPush?: boolean | undefined;
|
|
7899
|
+
} | undefined;
|
|
7900
|
+
requires?: string[] | undefined;
|
|
7901
|
+
description?: string | undefined;
|
|
7902
|
+
}[];
|
|
7903
|
+
format: ("text" | "markdown" | "html")[];
|
|
7904
|
+
clickUrl: boolean;
|
|
7905
|
+
sound: boolean;
|
|
7906
|
+
ttl: boolean;
|
|
7907
|
+
bodyMaxLen: number;
|
|
7908
|
+
};
|
|
7909
|
+
}[];
|
|
7910
|
+
meta: object;
|
|
7911
|
+
}>;
|
|
7912
|
+
listTargets: import("@trpc/server").TRPCQueryProcedure<{
|
|
7913
|
+
input: {
|
|
7914
|
+
[x: string]: unknown;
|
|
7915
|
+
};
|
|
7916
|
+
output: {
|
|
7917
|
+
id: string;
|
|
7918
|
+
name: string;
|
|
7919
|
+
kind: string;
|
|
7920
|
+
addonId: string;
|
|
7921
|
+
enabled: boolean;
|
|
7922
|
+
config: Record<string, unknown>;
|
|
7923
|
+
}[];
|
|
7924
|
+
meta: object;
|
|
7925
|
+
}>;
|
|
7926
|
+
discoverTargets: import("@trpc/server").TRPCQueryProcedure<{
|
|
7927
|
+
input: {
|
|
7928
|
+
[x: string]: unknown;
|
|
7929
|
+
kind: string;
|
|
7930
|
+
config?: Record<string, unknown> | undefined;
|
|
7931
|
+
};
|
|
7932
|
+
output: {
|
|
7933
|
+
kind: string;
|
|
7934
|
+
suggestedName: string;
|
|
7935
|
+
config: Record<string, unknown>;
|
|
7936
|
+
}[];
|
|
7937
|
+
meta: object;
|
|
7938
|
+
}>;
|
|
7865
7939
|
send: import("@trpc/server").TRPCMutationProcedure<{
|
|
7866
7940
|
input: {
|
|
7867
7941
|
[x: string]: unknown;
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
|
|
7942
|
+
targetId: string;
|
|
7943
|
+
notification: {
|
|
7944
|
+
body: string;
|
|
7945
|
+
title?: string | undefined;
|
|
7946
|
+
format?: "text" | "markdown" | "html" | undefined;
|
|
7947
|
+
priority?: number | undefined;
|
|
7948
|
+
level?: string | undefined;
|
|
7949
|
+
attachments?: {
|
|
7950
|
+
mediaType: "image" | "audio" | "icon" | "video" | "gif";
|
|
7951
|
+
url?: string | undefined;
|
|
7952
|
+
bytes?: Uint8Array<ArrayBuffer> | undefined;
|
|
7953
|
+
mime?: string | undefined;
|
|
7954
|
+
name?: string | undefined;
|
|
7955
|
+
}[] | undefined;
|
|
7956
|
+
clickUrl?: string | undefined;
|
|
7957
|
+
actions?: {
|
|
7958
|
+
id: string;
|
|
7959
|
+
label: string;
|
|
7960
|
+
url?: string | undefined;
|
|
7961
|
+
}[] | undefined;
|
|
7962
|
+
sound?: string | undefined;
|
|
7963
|
+
ttl?: number | undefined;
|
|
7964
|
+
tag?: string | undefined;
|
|
7965
|
+
deviceId?: number | undefined;
|
|
7966
|
+
eventId?: string | undefined;
|
|
7967
|
+
metadata?: Record<string, unknown> | undefined;
|
|
7968
|
+
};
|
|
7969
|
+
};
|
|
7970
|
+
output: {
|
|
7971
|
+
success: boolean;
|
|
7972
|
+
error?: string | undefined;
|
|
7973
|
+
renderedAs?: {
|
|
7974
|
+
level: string;
|
|
7975
|
+
format: "text" | "markdown" | "html";
|
|
7976
|
+
attachmentsSent: number;
|
|
7977
|
+
actionsSent: number;
|
|
7978
|
+
truncated: boolean;
|
|
7979
|
+
dropped: string[];
|
|
7980
|
+
} | undefined;
|
|
7875
7981
|
};
|
|
7876
|
-
output: void;
|
|
7877
7982
|
meta: object;
|
|
7878
7983
|
}>;
|
|
7879
|
-
|
|
7984
|
+
testTarget: import("@trpc/server").TRPCMutationProcedure<{
|
|
7880
7985
|
input: {
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7986
|
+
[x: string]: unknown;
|
|
7987
|
+
targetId: string;
|
|
7988
|
+
sample?: {
|
|
7989
|
+
body: string;
|
|
7990
|
+
title?: string | undefined;
|
|
7991
|
+
format?: "text" | "markdown" | "html" | undefined;
|
|
7992
|
+
priority?: number | undefined;
|
|
7993
|
+
level?: string | undefined;
|
|
7994
|
+
attachments?: {
|
|
7995
|
+
mediaType: "image" | "audio" | "icon" | "video" | "gif";
|
|
7996
|
+
url?: string | undefined;
|
|
7997
|
+
bytes?: Uint8Array<ArrayBuffer> | undefined;
|
|
7998
|
+
mime?: string | undefined;
|
|
7999
|
+
name?: string | undefined;
|
|
8000
|
+
}[] | undefined;
|
|
8001
|
+
clickUrl?: string | undefined;
|
|
8002
|
+
actions?: {
|
|
8003
|
+
id: string;
|
|
8004
|
+
label: string;
|
|
8005
|
+
url?: string | undefined;
|
|
8006
|
+
}[] | undefined;
|
|
8007
|
+
sound?: string | undefined;
|
|
8008
|
+
ttl?: number | undefined;
|
|
8009
|
+
tag?: string | undefined;
|
|
8010
|
+
deviceId?: number | undefined;
|
|
8011
|
+
eventId?: string | undefined;
|
|
8012
|
+
metadata?: Record<string, unknown> | undefined;
|
|
8013
|
+
} | undefined;
|
|
8014
|
+
};
|
|
7884
8015
|
output: {
|
|
7885
8016
|
success: boolean;
|
|
7886
8017
|
error?: string | undefined;
|
|
8018
|
+
renderedAs?: {
|
|
8019
|
+
level: string;
|
|
8020
|
+
format: "text" | "markdown" | "html";
|
|
8021
|
+
attachmentsSent: number;
|
|
8022
|
+
actionsSent: number;
|
|
8023
|
+
truncated: boolean;
|
|
8024
|
+
dropped: string[];
|
|
8025
|
+
} | undefined;
|
|
8026
|
+
};
|
|
8027
|
+
meta: object;
|
|
8028
|
+
}>;
|
|
8029
|
+
upsertTarget: import("@trpc/server").TRPCMutationProcedure<{
|
|
8030
|
+
input: {
|
|
8031
|
+
[x: string]: unknown;
|
|
8032
|
+
target: {
|
|
8033
|
+
id: string;
|
|
8034
|
+
name: string;
|
|
8035
|
+
kind: string;
|
|
8036
|
+
addonId: string;
|
|
8037
|
+
enabled: boolean;
|
|
8038
|
+
config: Record<string, unknown>;
|
|
8039
|
+
};
|
|
8040
|
+
};
|
|
8041
|
+
output: {
|
|
8042
|
+
id: string;
|
|
8043
|
+
name: string;
|
|
8044
|
+
kind: string;
|
|
8045
|
+
addonId: string;
|
|
8046
|
+
enabled: boolean;
|
|
8047
|
+
config: Record<string, unknown>;
|
|
7887
8048
|
};
|
|
7888
8049
|
meta: object;
|
|
7889
8050
|
}>;
|
|
8051
|
+
deleteTarget: import("@trpc/server").TRPCMutationProcedure<{
|
|
8052
|
+
input: {
|
|
8053
|
+
[x: string]: unknown;
|
|
8054
|
+
targetId: string;
|
|
8055
|
+
};
|
|
8056
|
+
output: void;
|
|
8057
|
+
meta: object;
|
|
8058
|
+
}>;
|
|
8059
|
+
setTargetEnabled: import("@trpc/server").TRPCMutationProcedure<{
|
|
8060
|
+
input: {
|
|
8061
|
+
[x: string]: unknown;
|
|
8062
|
+
targetId: string;
|
|
8063
|
+
enabled: boolean;
|
|
8064
|
+
};
|
|
8065
|
+
output: void;
|
|
8066
|
+
meta: object;
|
|
8067
|
+
}>;
|
|
7890
8068
|
}>>;
|
|
7891
8069
|
notifier: import("@trpc/server").TRPCBuiltRouter<{
|
|
7892
8070
|
ctx: TrpcContext;
|
|
@@ -11982,7 +12160,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11982
12160
|
[x: string]: unknown;
|
|
11983
12161
|
deviceId: number;
|
|
11984
12162
|
camStreamId: string;
|
|
11985
|
-
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
12163
|
+
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
11986
12164
|
url?: string | undefined;
|
|
11987
12165
|
codec?: string | undefined;
|
|
11988
12166
|
resolution?: {
|
|
@@ -12064,7 +12242,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
12064
12242
|
output: readonly {
|
|
12065
12243
|
camStreamId: string;
|
|
12066
12244
|
deviceId: number;
|
|
12067
|
-
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
12245
|
+
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
12068
12246
|
url?: string | undefined;
|
|
12069
12247
|
codec?: string | undefined;
|
|
12070
12248
|
resolution?: {
|
|
@@ -12451,7 +12629,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
12451
12629
|
};
|
|
12452
12630
|
output: readonly {
|
|
12453
12631
|
camStreamId: string;
|
|
12454
|
-
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
12632
|
+
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
12455
12633
|
url?: string | undefined;
|
|
12456
12634
|
codec?: string | undefined;
|
|
12457
12635
|
resolution?: {
|
|
@@ -13851,38 +14029,25 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
13851
14029
|
errorShape: import("@camstack/types").AugmentedErrorShape;
|
|
13852
14030
|
transformer: true;
|
|
13853
14031
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
13854
|
-
listOutputs: import("@trpc/server").TRPCQueryProcedure<{
|
|
13855
|
-
input: void;
|
|
13856
|
-
output: readonly {
|
|
13857
|
-
id: string;
|
|
13858
|
-
name: string;
|
|
13859
|
-
icon: string;
|
|
13860
|
-
}[];
|
|
13861
|
-
meta: object;
|
|
13862
|
-
}>;
|
|
13863
14032
|
getRouting: import("@trpc/server").TRPCQueryProcedure<{
|
|
13864
14033
|
input: void;
|
|
13865
|
-
output: Record<string,
|
|
14034
|
+
output: Record<string, {
|
|
14035
|
+
addonId: string;
|
|
14036
|
+
targetId: string;
|
|
14037
|
+
}[]>;
|
|
13866
14038
|
meta: object;
|
|
13867
14039
|
}>;
|
|
13868
14040
|
setRouting: import("@trpc/server").TRPCMutationProcedure<{
|
|
13869
14041
|
input: {
|
|
13870
14042
|
category: string;
|
|
13871
|
-
|
|
14043
|
+
targets: {
|
|
14044
|
+
addonId: string;
|
|
14045
|
+
targetId: string;
|
|
14046
|
+
}[];
|
|
13872
14047
|
};
|
|
13873
14048
|
output: void;
|
|
13874
14049
|
meta: object;
|
|
13875
14050
|
}>;
|
|
13876
|
-
sendTest: import("@trpc/server").TRPCMutationProcedure<{
|
|
13877
|
-
input: {
|
|
13878
|
-
outputId: string;
|
|
13879
|
-
};
|
|
13880
|
-
output: {
|
|
13881
|
-
success: boolean;
|
|
13882
|
-
error?: string | undefined;
|
|
13883
|
-
};
|
|
13884
|
-
meta: object;
|
|
13885
|
-
}>;
|
|
13886
14051
|
}>>;
|
|
13887
14052
|
addonSettingsRaw: import("@trpc/server").TRPCBuiltRouter<{
|
|
13888
14053
|
ctx: TrpcContext;
|
|
@@ -14075,6 +14240,26 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
14075
14240
|
};
|
|
14076
14241
|
meta: object;
|
|
14077
14242
|
}>;
|
|
14243
|
+
getRecent: import("@trpc/server").TRPCQueryProcedure<{
|
|
14244
|
+
input: {
|
|
14245
|
+
category?: string | string[] | undefined;
|
|
14246
|
+
limit?: number | undefined;
|
|
14247
|
+
};
|
|
14248
|
+
output: {
|
|
14249
|
+
id: string;
|
|
14250
|
+
timestamp: string;
|
|
14251
|
+
source: {
|
|
14252
|
+
type: string;
|
|
14253
|
+
id: string | number;
|
|
14254
|
+
nodeId?: string | undefined;
|
|
14255
|
+
addonId?: string | undefined;
|
|
14256
|
+
deviceId?: number | undefined;
|
|
14257
|
+
};
|
|
14258
|
+
category: string;
|
|
14259
|
+
data: Record<string, unknown>;
|
|
14260
|
+
}[];
|
|
14261
|
+
meta: object;
|
|
14262
|
+
}>;
|
|
14078
14263
|
}>>;
|
|
14079
14264
|
repl: import("@trpc/server").TRPCBuiltRouter<{
|
|
14080
14265
|
ctx: TrpcContext;
|
|
@@ -16786,7 +16971,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
16786
16971
|
output: readonly {
|
|
16787
16972
|
camStreamId: string;
|
|
16788
16973
|
deviceId: number;
|
|
16789
|
-
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
16974
|
+
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
16790
16975
|
url?: string | undefined;
|
|
16791
16976
|
codec?: string | undefined;
|
|
16792
16977
|
resolution?: {
|
|
@@ -21701,31 +21886,202 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
21701
21886
|
errorShape: import("@camstack/types").AugmentedErrorShape;
|
|
21702
21887
|
transformer: true;
|
|
21703
21888
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
21889
|
+
listTargetKinds: import("@trpc/server").TRPCQueryProcedure<{
|
|
21890
|
+
input: {
|
|
21891
|
+
[x: string]: unknown;
|
|
21892
|
+
};
|
|
21893
|
+
output: {
|
|
21894
|
+
kind: string;
|
|
21895
|
+
label: string;
|
|
21896
|
+
icon: string;
|
|
21897
|
+
addonId: string;
|
|
21898
|
+
configSchema: unknown;
|
|
21899
|
+
supportsDiscovery: boolean;
|
|
21900
|
+
caps: {
|
|
21901
|
+
attachments: {
|
|
21902
|
+
mediaTypes: ("image" | "audio" | "icon" | "video" | "gif")[];
|
|
21903
|
+
mode: "url" | "bytes" | "both";
|
|
21904
|
+
max: number;
|
|
21905
|
+
maxBytes?: number | undefined;
|
|
21906
|
+
};
|
|
21907
|
+
actions: number;
|
|
21908
|
+
levels: {
|
|
21909
|
+
id: string;
|
|
21910
|
+
label: string;
|
|
21911
|
+
ordinal: number | null;
|
|
21912
|
+
flags?: {
|
|
21913
|
+
critical?: boolean | undefined;
|
|
21914
|
+
silent?: boolean | undefined;
|
|
21915
|
+
noPush?: boolean | undefined;
|
|
21916
|
+
} | undefined;
|
|
21917
|
+
requires?: string[] | undefined;
|
|
21918
|
+
description?: string | undefined;
|
|
21919
|
+
}[];
|
|
21920
|
+
format: ("text" | "markdown" | "html")[];
|
|
21921
|
+
clickUrl: boolean;
|
|
21922
|
+
sound: boolean;
|
|
21923
|
+
ttl: boolean;
|
|
21924
|
+
bodyMaxLen: number;
|
|
21925
|
+
};
|
|
21926
|
+
}[];
|
|
21927
|
+
meta: object;
|
|
21928
|
+
}>;
|
|
21929
|
+
listTargets: import("@trpc/server").TRPCQueryProcedure<{
|
|
21930
|
+
input: {
|
|
21931
|
+
[x: string]: unknown;
|
|
21932
|
+
};
|
|
21933
|
+
output: {
|
|
21934
|
+
id: string;
|
|
21935
|
+
name: string;
|
|
21936
|
+
kind: string;
|
|
21937
|
+
addonId: string;
|
|
21938
|
+
enabled: boolean;
|
|
21939
|
+
config: Record<string, unknown>;
|
|
21940
|
+
}[];
|
|
21941
|
+
meta: object;
|
|
21942
|
+
}>;
|
|
21943
|
+
discoverTargets: import("@trpc/server").TRPCQueryProcedure<{
|
|
21944
|
+
input: {
|
|
21945
|
+
[x: string]: unknown;
|
|
21946
|
+
kind: string;
|
|
21947
|
+
config?: Record<string, unknown> | undefined;
|
|
21948
|
+
};
|
|
21949
|
+
output: {
|
|
21950
|
+
kind: string;
|
|
21951
|
+
suggestedName: string;
|
|
21952
|
+
config: Record<string, unknown>;
|
|
21953
|
+
}[];
|
|
21954
|
+
meta: object;
|
|
21955
|
+
}>;
|
|
21704
21956
|
send: import("@trpc/server").TRPCMutationProcedure<{
|
|
21705
21957
|
input: {
|
|
21706
21958
|
[x: string]: unknown;
|
|
21707
|
-
|
|
21708
|
-
|
|
21709
|
-
|
|
21710
|
-
|
|
21711
|
-
|
|
21712
|
-
|
|
21713
|
-
|
|
21959
|
+
targetId: string;
|
|
21960
|
+
notification: {
|
|
21961
|
+
body: string;
|
|
21962
|
+
title?: string | undefined;
|
|
21963
|
+
format?: "text" | "markdown" | "html" | undefined;
|
|
21964
|
+
priority?: number | undefined;
|
|
21965
|
+
level?: string | undefined;
|
|
21966
|
+
attachments?: {
|
|
21967
|
+
mediaType: "image" | "audio" | "icon" | "video" | "gif";
|
|
21968
|
+
url?: string | undefined;
|
|
21969
|
+
bytes?: Uint8Array<ArrayBuffer> | undefined;
|
|
21970
|
+
mime?: string | undefined;
|
|
21971
|
+
name?: string | undefined;
|
|
21972
|
+
}[] | undefined;
|
|
21973
|
+
clickUrl?: string | undefined;
|
|
21974
|
+
actions?: {
|
|
21975
|
+
id: string;
|
|
21976
|
+
label: string;
|
|
21977
|
+
url?: string | undefined;
|
|
21978
|
+
}[] | undefined;
|
|
21979
|
+
sound?: string | undefined;
|
|
21980
|
+
ttl?: number | undefined;
|
|
21981
|
+
tag?: string | undefined;
|
|
21982
|
+
deviceId?: number | undefined;
|
|
21983
|
+
eventId?: string | undefined;
|
|
21984
|
+
metadata?: Record<string, unknown> | undefined;
|
|
21985
|
+
};
|
|
21986
|
+
};
|
|
21987
|
+
output: {
|
|
21988
|
+
success: boolean;
|
|
21989
|
+
error?: string | undefined;
|
|
21990
|
+
renderedAs?: {
|
|
21991
|
+
level: string;
|
|
21992
|
+
format: "text" | "markdown" | "html";
|
|
21993
|
+
attachmentsSent: number;
|
|
21994
|
+
actionsSent: number;
|
|
21995
|
+
truncated: boolean;
|
|
21996
|
+
dropped: string[];
|
|
21997
|
+
} | undefined;
|
|
21714
21998
|
};
|
|
21715
|
-
output: void;
|
|
21716
21999
|
meta: object;
|
|
21717
22000
|
}>;
|
|
21718
|
-
|
|
22001
|
+
testTarget: import("@trpc/server").TRPCMutationProcedure<{
|
|
21719
22002
|
input: {
|
|
21720
|
-
|
|
21721
|
-
|
|
21722
|
-
|
|
22003
|
+
[x: string]: unknown;
|
|
22004
|
+
targetId: string;
|
|
22005
|
+
sample?: {
|
|
22006
|
+
body: string;
|
|
22007
|
+
title?: string | undefined;
|
|
22008
|
+
format?: "text" | "markdown" | "html" | undefined;
|
|
22009
|
+
priority?: number | undefined;
|
|
22010
|
+
level?: string | undefined;
|
|
22011
|
+
attachments?: {
|
|
22012
|
+
mediaType: "image" | "audio" | "icon" | "video" | "gif";
|
|
22013
|
+
url?: string | undefined;
|
|
22014
|
+
bytes?: Uint8Array<ArrayBuffer> | undefined;
|
|
22015
|
+
mime?: string | undefined;
|
|
22016
|
+
name?: string | undefined;
|
|
22017
|
+
}[] | undefined;
|
|
22018
|
+
clickUrl?: string | undefined;
|
|
22019
|
+
actions?: {
|
|
22020
|
+
id: string;
|
|
22021
|
+
label: string;
|
|
22022
|
+
url?: string | undefined;
|
|
22023
|
+
}[] | undefined;
|
|
22024
|
+
sound?: string | undefined;
|
|
22025
|
+
ttl?: number | undefined;
|
|
22026
|
+
tag?: string | undefined;
|
|
22027
|
+
deviceId?: number | undefined;
|
|
22028
|
+
eventId?: string | undefined;
|
|
22029
|
+
metadata?: Record<string, unknown> | undefined;
|
|
22030
|
+
} | undefined;
|
|
22031
|
+
};
|
|
21723
22032
|
output: {
|
|
21724
22033
|
success: boolean;
|
|
21725
22034
|
error?: string | undefined;
|
|
22035
|
+
renderedAs?: {
|
|
22036
|
+
level: string;
|
|
22037
|
+
format: "text" | "markdown" | "html";
|
|
22038
|
+
attachmentsSent: number;
|
|
22039
|
+
actionsSent: number;
|
|
22040
|
+
truncated: boolean;
|
|
22041
|
+
dropped: string[];
|
|
22042
|
+
} | undefined;
|
|
22043
|
+
};
|
|
22044
|
+
meta: object;
|
|
22045
|
+
}>;
|
|
22046
|
+
upsertTarget: import("@trpc/server").TRPCMutationProcedure<{
|
|
22047
|
+
input: {
|
|
22048
|
+
[x: string]: unknown;
|
|
22049
|
+
target: {
|
|
22050
|
+
id: string;
|
|
22051
|
+
name: string;
|
|
22052
|
+
kind: string;
|
|
22053
|
+
addonId: string;
|
|
22054
|
+
enabled: boolean;
|
|
22055
|
+
config: Record<string, unknown>;
|
|
22056
|
+
};
|
|
22057
|
+
};
|
|
22058
|
+
output: {
|
|
22059
|
+
id: string;
|
|
22060
|
+
name: string;
|
|
22061
|
+
kind: string;
|
|
22062
|
+
addonId: string;
|
|
22063
|
+
enabled: boolean;
|
|
22064
|
+
config: Record<string, unknown>;
|
|
21726
22065
|
};
|
|
21727
22066
|
meta: object;
|
|
21728
22067
|
}>;
|
|
22068
|
+
deleteTarget: import("@trpc/server").TRPCMutationProcedure<{
|
|
22069
|
+
input: {
|
|
22070
|
+
[x: string]: unknown;
|
|
22071
|
+
targetId: string;
|
|
22072
|
+
};
|
|
22073
|
+
output: void;
|
|
22074
|
+
meta: object;
|
|
22075
|
+
}>;
|
|
22076
|
+
setTargetEnabled: import("@trpc/server").TRPCMutationProcedure<{
|
|
22077
|
+
input: {
|
|
22078
|
+
[x: string]: unknown;
|
|
22079
|
+
targetId: string;
|
|
22080
|
+
enabled: boolean;
|
|
22081
|
+
};
|
|
22082
|
+
output: void;
|
|
22083
|
+
meta: object;
|
|
22084
|
+
}>;
|
|
21729
22085
|
}>>;
|
|
21730
22086
|
notifier: import("@trpc/server").TRPCBuiltRouter<{
|
|
21731
22087
|
ctx: TrpcContext;
|
|
@@ -25821,7 +26177,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
25821
26177
|
[x: string]: unknown;
|
|
25822
26178
|
deviceId: number;
|
|
25823
26179
|
camStreamId: string;
|
|
25824
|
-
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
26180
|
+
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
25825
26181
|
url?: string | undefined;
|
|
25826
26182
|
codec?: string | undefined;
|
|
25827
26183
|
resolution?: {
|
|
@@ -25903,7 +26259,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
25903
26259
|
output: readonly {
|
|
25904
26260
|
camStreamId: string;
|
|
25905
26261
|
deviceId: number;
|
|
25906
|
-
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
26262
|
+
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
25907
26263
|
url?: string | undefined;
|
|
25908
26264
|
codec?: string | undefined;
|
|
25909
26265
|
resolution?: {
|
|
@@ -26290,7 +26646,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
26290
26646
|
};
|
|
26291
26647
|
output: readonly {
|
|
26292
26648
|
camStreamId: string;
|
|
26293
|
-
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
26649
|
+
kind: "pull-rtsp" | "pull-rtmp" | "pull-http" | "pull-flv" | "pull-rfc4571" | "push-annexb" | "derived";
|
|
26294
26650
|
url?: string | undefined;
|
|
26295
26651
|
codec?: string | undefined;
|
|
26296
26652
|
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 {
|
|
@@ -70,7 +70,7 @@ export interface SystemProxy {
|
|
|
70
70
|
readonly networkAccess: Pick<InferProvider<typeof networkAccessCapability>, 'start' | 'stop' | 'getEndpoint' | 'getStatus' | 'listEndpoints'>;
|
|
71
71
|
readonly networkQuality: Pick<InferProvider<typeof networkQualityCapability>, 'getAllStats'>;
|
|
72
72
|
readonly nodes: Pick<InferProvider<typeof nodesCapability>, 'topology' | 'deployAddon' | 'undeployAddon' | 'restartAddon' | 'restartProcess' | 'restartNode' | 'shutdownNode' | 'renameNode' | 'clusterAddonStatus' | 'getCapUsageGraph' | 'getNodeAddons' | 'setProcessLogLevel' | 'executeQuery'>;
|
|
73
|
-
readonly notificationOutput: Pick<InferProvider<typeof notificationOutputCapability>, 'send' | '
|
|
73
|
+
readonly notificationOutput: Pick<InferProvider<typeof notificationOutputCapability>, 'listTargetKinds' | 'listTargets' | 'discoverTargets' | 'send' | 'testTarget' | 'upsertTarget' | 'deleteTarget' | 'setTargetEnabled'>;
|
|
74
74
|
readonly pipelineExecutor: Pick<InferProvider<typeof pipelineExecutorCapability>, 'getAvailableEngines' | 'getSelectedEngine' | 'getDefaultSteps' | 'reprobeEngine' | 'getEngineProvisioning' | 'getVideoPipelineSteps' | 'setVideoPipelineSteps' | 'getSchema' | 'getGlobalSteps' | 'getGlobalPipelineConfig' | 'getOrchestratorConfigSchema' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate' | 'getCapabilities' | 'getAddonModels' | 'downloadModel' | 'deleteModel' | 'detect' | 'cacheFrameInPool' | 'inferCached' | 'uncacheFrame' | 'getEffectiveTuning' | 'listLoadedEngines' | 'spinEngine' | 'killEngine' | 'listReferenceImages' | 'getReferenceImage' | 'getReferenceAudioFiles' | 'getReferenceAudio' | 'getAudioCapabilities' | 'runAudioTest' | 'getDetectionConfigSchema'>;
|
|
75
75
|
readonly pipelineOrchestrator: Pick<InferProvider<typeof pipelineOrchestratorCapability>, 'rebalance' | 'getPipelineAssignments' | 'getAgentLoad' | 'getGlobalMetrics' | 'getCapabilityBindings' | 'setCapabilityBinding' | 'getDecoderAssignments' | 'getAudioNodeLoad' | 'getAgentSettings' | 'listAgentSettings' | 'setAgentAddonDefaults' | 'removeAgentSettings' | 'setAgentMaxCameras' | 'getCameraStatuses' | 'listTemplates' | 'saveTemplate' | 'updateTemplate' | 'deleteTemplate'>;
|
|
76
76
|
readonly pipelineRunner: Pick<InferProvider<typeof pipelineRunnerCapability>, 'attachCamera' | 'reportMotion' | 'getLocalLoad' | 'getLocalMetrics' | 'getAllCameraMetrics' | 'getLocalCameras'>;
|
package/dist/index.d.ts
CHANGED
|
@@ -132,6 +132,8 @@ export { DeviceRuntimeState } from './device/device-runtime-state.js';
|
|
|
132
132
|
export type { IDeviceRuntimeState } from './device/device-runtime-state.js';
|
|
133
133
|
export { createRuntimeStateBridge } from './device/runtime-state-helpers.js';
|
|
134
134
|
export type { RuntimeStateBridge } from './device/runtime-state-helpers.js';
|
|
135
|
+
export { prepareNotification, type PreparedAction, type PreparedAttachment, type PreparedNotification, type ResolvedLevel, } from './notification/degrade-engine.js';
|
|
136
|
+
export { htmlToText, markdownToHtmlLite, markdownToText, type NotificationFormat as NotificationBodyFormat, resolveFormat, textToHtml, transcodeBody, } from './notification/format-transcode.js';
|
|
135
137
|
export { BaseDevice } from './device/base-device.js';
|
|
136
138
|
export type { AccessoryChildSpec } from './device/base-device.js';
|
|
137
139
|
export { SourceInfoSchema, synthesizeSourceInfo, mergeSourceInfo, normalizeUnit, extractSourceInfoFromMetadata, SOURCE_INFO_METADATA_KEY, } from './device/source-info.js';
|