@camstack/types 1.1.16 → 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/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 +388 -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;
|
|
@@ -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
|
}>>;
|
|
@@ -11982,7 +12139,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
11982
12139
|
[x: string]: unknown;
|
|
11983
12140
|
deviceId: number;
|
|
11984
12141
|
camStreamId: string;
|
|
11985
|
-
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";
|
|
11986
12143
|
url?: string | undefined;
|
|
11987
12144
|
codec?: string | undefined;
|
|
11988
12145
|
resolution?: {
|
|
@@ -12064,7 +12221,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
12064
12221
|
output: readonly {
|
|
12065
12222
|
camStreamId: string;
|
|
12066
12223
|
deviceId: number;
|
|
12067
|
-
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";
|
|
12068
12225
|
url?: string | undefined;
|
|
12069
12226
|
codec?: string | undefined;
|
|
12070
12227
|
resolution?: {
|
|
@@ -12451,7 +12608,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
12451
12608
|
};
|
|
12452
12609
|
output: readonly {
|
|
12453
12610
|
camStreamId: string;
|
|
12454
|
-
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";
|
|
12455
12612
|
url?: string | undefined;
|
|
12456
12613
|
codec?: string | undefined;
|
|
12457
12614
|
resolution?: {
|
|
@@ -13851,38 +14008,25 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
13851
14008
|
errorShape: import("@camstack/types").AugmentedErrorShape;
|
|
13852
14009
|
transformer: true;
|
|
13853
14010
|
}, 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
14011
|
getRouting: import("@trpc/server").TRPCQueryProcedure<{
|
|
13864
14012
|
input: void;
|
|
13865
|
-
output: Record<string,
|
|
14013
|
+
output: Record<string, {
|
|
14014
|
+
addonId: string;
|
|
14015
|
+
targetId: string;
|
|
14016
|
+
}[]>;
|
|
13866
14017
|
meta: object;
|
|
13867
14018
|
}>;
|
|
13868
14019
|
setRouting: import("@trpc/server").TRPCMutationProcedure<{
|
|
13869
14020
|
input: {
|
|
13870
14021
|
category: string;
|
|
13871
|
-
|
|
14022
|
+
targets: {
|
|
14023
|
+
addonId: string;
|
|
14024
|
+
targetId: string;
|
|
14025
|
+
}[];
|
|
13872
14026
|
};
|
|
13873
14027
|
output: void;
|
|
13874
14028
|
meta: object;
|
|
13875
14029
|
}>;
|
|
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
14030
|
}>>;
|
|
13887
14031
|
addonSettingsRaw: import("@trpc/server").TRPCBuiltRouter<{
|
|
13888
14032
|
ctx: TrpcContext;
|
|
@@ -16786,7 +16930,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
16786
16930
|
output: readonly {
|
|
16787
16931
|
camStreamId: string;
|
|
16788
16932
|
deviceId: number;
|
|
16789
|
-
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";
|
|
16790
16934
|
url?: string | undefined;
|
|
16791
16935
|
codec?: string | undefined;
|
|
16792
16936
|
resolution?: {
|
|
@@ -21701,29 +21845,199 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
21701
21845
|
errorShape: import("@camstack/types").AugmentedErrorShape;
|
|
21702
21846
|
transformer: true;
|
|
21703
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
|
+
}>;
|
|
21704
21914
|
send: import("@trpc/server").TRPCMutationProcedure<{
|
|
21705
21915
|
input: {
|
|
21706
21916
|
[x: string]: unknown;
|
|
21707
|
-
|
|
21708
|
-
|
|
21709
|
-
|
|
21710
|
-
|
|
21711
|
-
|
|
21712
|
-
|
|
21713
|
-
|
|
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;
|
|
21714
21956
|
};
|
|
21715
|
-
output: void;
|
|
21716
21957
|
meta: object;
|
|
21717
21958
|
}>;
|
|
21718
|
-
|
|
21959
|
+
testTarget: import("@trpc/server").TRPCMutationProcedure<{
|
|
21719
21960
|
input: {
|
|
21720
|
-
|
|
21721
|
-
|
|
21722
|
-
|
|
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
|
+
};
|
|
21723
21990
|
output: {
|
|
21724
21991
|
success: boolean;
|
|
21725
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
|
+
};
|
|
21726
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;
|
|
21727
22041
|
meta: object;
|
|
21728
22042
|
}>;
|
|
21729
22043
|
}>>;
|
|
@@ -25821,7 +26135,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
25821
26135
|
[x: string]: unknown;
|
|
25822
26136
|
deviceId: number;
|
|
25823
26137
|
camStreamId: string;
|
|
25824
|
-
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";
|
|
25825
26139
|
url?: string | undefined;
|
|
25826
26140
|
codec?: string | undefined;
|
|
25827
26141
|
resolution?: {
|
|
@@ -25903,7 +26217,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
25903
26217
|
output: readonly {
|
|
25904
26218
|
camStreamId: string;
|
|
25905
26219
|
deviceId: number;
|
|
25906
|
-
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";
|
|
25907
26221
|
url?: string | undefined;
|
|
25908
26222
|
codec?: string | undefined;
|
|
25909
26223
|
resolution?: {
|
|
@@ -26290,7 +26604,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
|
|
|
26290
26604
|
};
|
|
26291
26605
|
output: readonly {
|
|
26292
26606
|
camStreamId: string;
|
|
26293
|
-
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";
|
|
26294
26608
|
url?: string | undefined;
|
|
26295
26609
|
codec?: string | undefined;
|
|
26296
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 {
|
|
@@ -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';
|