camstreamerlib 4.0.0-beta.4 → 4.0.0-beta.40
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/README.md +112 -0
- package/cjs/CamOverlayAPI.js +135 -92
- package/cjs/CamScripterAPI.js +52 -42
- package/cjs/CamStreamerAPI.js +83 -39
- package/cjs/CamSwitcherAPI.js +141 -123
- package/cjs/CamSwitcherEvents.js +4 -60
- package/cjs/PlaneTrackerAPI.js +200 -0
- package/cjs/VapixAPI.js +323 -233
- package/cjs/{CreatePackage.js → bin/CreatePackage.js} +22 -19
- package/cjs/errors/errors.js +64 -1
- package/cjs/index.js +17 -4
- package/cjs/internal/ProxyClient.js +28 -32
- package/cjs/internal/WsEvents.js +72 -0
- package/cjs/internal/types.js +2 -0
- package/cjs/internal/utils.js +22 -3
- package/cjs/{CamOverlayDrawingAPI.js → node/CamOverlayDrawingAPI.js} +7 -4
- package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Frame.js +33 -0
- package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Painter.js +5 -17
- package/cjs/node/CamOverlayPainter/ResourceManager.js +72 -0
- package/cjs/{CamScripterAPICameraEventsGenerator.js → node/CamScripterAPICameraEventsGenerator.js} +7 -4
- package/cjs/node/DefaultClient.js +10 -12
- package/cjs/{internal → node}/Digest.js +8 -5
- package/cjs/node/HttpRequestSender.js +14 -4
- package/cjs/node/HttpServer.js +15 -12
- package/cjs/{VapixEvents.js → node/VapixEvents.js} +1 -1
- package/cjs/node/WsClient.js +12 -9
- package/cjs/node/events/AxisCameraStationEvents.js +53 -0
- package/cjs/node/events/GenetecAgent.js +123 -0
- package/cjs/node/index.js +38 -5
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +92 -0
- package/cjs/types/CamOverlayAPI/accuweatherSchema.js +47 -0
- package/cjs/types/CamOverlayAPI/customGraphicsSchema.js +72 -0
- package/cjs/types/CamOverlayAPI/imagesSchema.js +9 -0
- package/cjs/types/CamOverlayAPI/index.js +27 -0
- package/cjs/types/CamOverlayAPI/infotickerSchema.js +26 -0
- package/cjs/types/CamOverlayAPI/pipSchema.js +39 -0
- package/cjs/types/CamOverlayAPI/ptzCompassSchema.js +25 -0
- package/cjs/types/CamOverlayAPI/ptzSchema.js +12 -0
- package/cjs/types/CamOverlayAPI/scoreBoardSchema.js +132 -0
- package/cjs/types/CamOverlayAPI/screenSharingSchema.js +8 -0
- package/cjs/types/CamOverlayAPI/serviceCommonTypes.js +91 -0
- package/cjs/types/CamOverlayAPI/webCameraSharingSchema.js +8 -0
- package/cjs/types/CamOverlayDrawingAPI.js +2 -0
- package/cjs/types/CamOverlayPainter.js +14 -0
- package/cjs/types/CamScripterAPI.js +22 -7
- package/cjs/types/CamScripterAPICameraEventsGenerator.js +2 -0
- package/cjs/types/CamStreamerAPI.js +34 -3
- package/cjs/types/CamSwitcherAPI.js +38 -1
- package/cjs/types/CamSwitcherEvents.js +8 -0
- package/cjs/types/GenetecAgent.js +31 -0
- package/cjs/types/PlaneTrackerAPI.js +281 -0
- package/cjs/types/VapixAPI.js +71 -13
- package/cjs/types/VapixEvents.js +2 -0
- package/cjs/web/DefaultClient.js +22 -10
- package/cjs/web/WsClient.js +3 -3
- package/esm/CamOverlayAPI.js +131 -88
- package/esm/CamScripterAPI.js +48 -38
- package/esm/CamStreamerAPI.js +81 -38
- package/esm/CamSwitcherAPI.js +137 -119
- package/esm/CamSwitcherEvents.js +5 -61
- package/esm/PlaneTrackerAPI.js +196 -0
- package/esm/VapixAPI.js +315 -225
- package/esm/{CreatePackage.js → bin/CreatePackage.js} +3 -3
- package/esm/errors/errors.js +54 -0
- package/esm/index.js +12 -3
- package/esm/internal/ProxyClient.js +28 -32
- package/esm/internal/WsEvents.js +68 -0
- package/esm/internal/utils.js +17 -1
- package/esm/{CamOverlayDrawingAPI.js → node/CamOverlayDrawingAPI.js} +2 -2
- package/esm/{CamOverlayPainter → node/CamOverlayPainter}/Frame.js +33 -0
- package/esm/{CamOverlayPainter → node/CamOverlayPainter}/Painter.js +2 -13
- package/esm/{CamOverlayPainter → node/CamOverlayPainter}/ResourceManager.js +7 -5
- package/esm/{CamScripterAPICameraEventsGenerator.js → node/CamScripterAPICameraEventsGenerator.js} +2 -2
- package/esm/node/DefaultClient.js +10 -12
- package/esm/{internal → node}/Digest.js +1 -1
- package/esm/node/HttpRequestSender.js +14 -4
- package/esm/node/HttpServer.js +5 -5
- package/esm/{VapixEvents.js → node/VapixEvents.js} +1 -1
- package/esm/node/WsClient.js +3 -3
- package/esm/{events → node/events}/AxisCameraStationEvents.js +18 -13
- package/esm/node/events/GenetecAgent.js +119 -0
- package/esm/node/index.js +17 -2
- package/esm/types/CamOverlayAPI/CamOverlayAPI.js +76 -0
- package/esm/types/CamOverlayAPI/accuweatherSchema.js +44 -0
- package/esm/types/CamOverlayAPI/customGraphicsSchema.js +69 -0
- package/esm/types/CamOverlayAPI/imagesSchema.js +6 -0
- package/esm/types/CamOverlayAPI/index.js +11 -0
- package/esm/types/CamOverlayAPI/infotickerSchema.js +23 -0
- package/esm/types/CamOverlayAPI/pipSchema.js +36 -0
- package/esm/types/CamOverlayAPI/ptzCompassSchema.js +22 -0
- package/esm/types/CamOverlayAPI/ptzSchema.js +9 -0
- package/esm/types/CamOverlayAPI/scoreBoardSchema.js +129 -0
- package/esm/types/CamOverlayAPI/screenSharingSchema.js +5 -0
- package/esm/types/CamOverlayAPI/serviceCommonTypes.js +88 -0
- package/esm/types/CamOverlayAPI/webCameraSharingSchema.js +5 -0
- package/esm/types/CamOverlayPainter.js +11 -0
- package/esm/types/CamScripterAPI.js +21 -6
- package/esm/types/CamScripterAPICameraEventsGenerator.js +1 -0
- package/esm/types/CamStreamerAPI.js +33 -2
- package/esm/types/CamSwitcherAPI.js +38 -1
- package/esm/types/CamSwitcherEvents.js +8 -0
- package/esm/types/GenetecAgent.js +28 -0
- package/esm/types/PlaneTrackerAPI.js +278 -0
- package/esm/types/VapixAPI.js +70 -12
- package/esm/types/VapixEvents.js +1 -0
- package/esm/web/DefaultClient.js +22 -10
- package/esm/web/WsClient.js +3 -3
- package/package.json +30 -12
- package/types/CamOverlayAPI.d.ts +865 -0
- package/types/CamScripterAPI.d.ts +47 -0
- package/types/CamStreamerAPI.d.ts +64 -0
- package/types/CamSwitcherAPI.d.ts +167 -0
- package/types/CamSwitcherEvents.d.ts +8 -0
- package/types/PlaneTrackerAPI.d.ts +226 -0
- package/types/VapixAPI.d.ts +118 -0
- package/types/bin/CreatePackage.d.ts +1 -0
- package/{esm → types}/errors/errors.d.ts +28 -1
- package/types/index.d.ts +20 -0
- package/types/internal/ProxyClient.d.ts +10 -0
- package/types/internal/WsEvents.d.ts +41 -0
- package/types/internal/types.d.ts +45 -0
- package/{cjs → types}/internal/utils.d.ts +4 -1
- package/{cjs → types}/internal/versionCompare.d.ts +2 -2
- package/types/node/CamOverlayDrawingAPI.d.ts +41 -0
- package/{esm → types/node}/CamOverlayPainter/Frame.d.ts +8 -37
- package/{cjs → types/node}/CamOverlayPainter/Painter.d.ts +5 -21
- package/types/node/CamOverlayPainter/ResourceManager.d.ts +15 -0
- package/types/node/CamScripterAPICameraEventsGenerator.d.ts +31 -0
- package/types/node/DefaultClient.d.ts +16 -0
- package/{esm → types}/node/HttpRequestSender.d.ts +1 -0
- package/{cjs → types}/node/HttpServer.d.ts +2 -2
- package/types/node/VapixEvents.d.ts +16 -0
- package/{cjs → types}/node/WsClient.d.ts +3 -2
- package/types/node/events/AxisCameraStationEvents.d.ts +12 -0
- package/types/node/events/GenetecAgent.d.ts +16 -0
- package/types/node/index.d.ts +17 -0
- package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +4321 -0
- package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +84 -0
- package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +700 -0
- package/types/types/CamOverlayAPI/imagesSchema.d.ts +95 -0
- package/types/types/CamOverlayAPI/index.d.ts +11 -0
- package/types/types/CamOverlayAPI/infotickerSchema.d.ts +96 -0
- package/types/types/CamOverlayAPI/pipSchema.d.ts +125 -0
- package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +93 -0
- package/types/types/CamOverlayAPI/ptzSchema.d.ts +118 -0
- package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +357 -0
- package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +58 -0
- package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +145 -0
- package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +58 -0
- package/types/types/CamOverlayDrawingAPI.d.ts +48 -0
- package/types/types/CamOverlayPainter.d.ts +76 -0
- package/types/types/CamScripterAPI.d.ts +130 -0
- package/types/types/CamScripterAPICameraEventsGenerator.d.ts +45 -0
- package/types/types/CamStreamerAPI.d.ts +272 -0
- package/{esm → types}/types/CamSwitcherAPI.d.ts +115 -36
- package/{cjs → types}/types/CamSwitcherEvents.d.ts +77 -0
- package/{esm/events → types/types}/GenetecAgent.d.ts +47 -47
- package/types/types/PlaneTrackerAPI.d.ts +877 -0
- package/{cjs → types}/types/VapixAPI.d.ts +647 -465
- package/types/types/VapixEvents.d.ts +15 -0
- package/{esm → types}/types/common.d.ts +15 -5
- package/types/web/DefaultClient.d.ts +6 -0
- package/cjs/CamOverlayAPI.d.ts +0 -31
- package/cjs/CamOverlayDrawingAPI.d.ts +0 -86
- package/cjs/CamOverlayPainter/Frame.d.ts +0 -96
- package/cjs/CamOverlayPainter/ResourceManager.d.ts +0 -14
- package/cjs/CamOverlayPainter/ResourceManager.js +0 -46
- package/cjs/CamScripterAPI.d.ts +0 -19
- package/cjs/CamScripterAPICameraEventsGenerator.d.ts +0 -74
- package/cjs/CamStreamerAPI.d.ts +0 -16
- package/cjs/CamSwitcherAPI.d.ts +0 -48
- package/cjs/CamSwitcherEvents.d.ts +0 -18
- package/cjs/VapixAPI.d.ts +0 -66
- package/cjs/VapixEvents.d.ts +0 -43
- package/cjs/errors/errors.d.ts +0 -34
- package/cjs/events/AxisCameraStationEvents.d.ts +0 -9
- package/cjs/events/AxisCameraStationEvents.js +0 -48
- package/cjs/events/GenetecAgent.d.ts +0 -174
- package/cjs/events/GenetecAgent.js +0 -123
- package/cjs/index.d.ts +0 -11
- package/cjs/internal/ProxyClient.d.ts +0 -11
- package/cjs/internal/common.d.ts +0 -39
- package/cjs/internal/common.js +0 -27
- package/cjs/node/DefaultClient.d.ts +0 -15
- package/cjs/node/HttpRequestSender.d.ts +0 -28
- package/cjs/node/WsEventClient.d.ts +0 -13
- package/cjs/node/WsEventClient.js +0 -22
- package/cjs/types/CamOverlayAPI.d.ts +0 -188
- package/cjs/types/CamOverlayAPI.js +0 -47
- package/cjs/types/CamScripterAPI.d.ts +0 -67
- package/cjs/types/CamStreamerAPI.d.ts +0 -139
- package/cjs/types/CamSwitcherAPI.d.ts +0 -814
- package/cjs/types/common.d.ts +0 -37
- package/cjs/web/DefaultClient.d.ts +0 -6
- package/cjs/web/index.d.ts +0 -2
- package/esm/CamOverlayAPI.d.ts +0 -31
- package/esm/CamOverlayDrawingAPI.d.ts +0 -86
- package/esm/CamOverlayPainter/Painter.d.ts +0 -48
- package/esm/CamOverlayPainter/ResourceManager.d.ts +0 -14
- package/esm/CamScripterAPI.d.ts +0 -19
- package/esm/CamScripterAPICameraEventsGenerator.d.ts +0 -74
- package/esm/CamStreamerAPI.d.ts +0 -16
- package/esm/CamSwitcherAPI.d.ts +0 -48
- package/esm/CamSwitcherEvents.d.ts +0 -18
- package/esm/VapixAPI.d.ts +0 -66
- package/esm/VapixEvents.d.ts +0 -43
- package/esm/events/AxisCameraStationEvents.d.ts +0 -9
- package/esm/events/GenetecAgent.js +0 -119
- package/esm/index.d.ts +0 -11
- package/esm/internal/Digest.d.ts +0 -4
- package/esm/internal/ProxyClient.d.ts +0 -11
- package/esm/internal/common.d.ts +0 -39
- package/esm/internal/common.js +0 -20
- package/esm/internal/constants.d.ts +0 -1
- package/esm/internal/transformers.d.ts +0 -5
- package/esm/internal/utils.d.ts +0 -11
- package/esm/internal/versionCompare.d.ts +0 -6
- package/esm/node/DefaultClient.d.ts +0 -15
- package/esm/node/HttpServer.d.ts +0 -21
- package/esm/node/WsClient.d.ts +0 -39
- package/esm/node/WsEventClient.d.ts +0 -13
- package/esm/node/WsEventClient.js +0 -18
- package/esm/node/index.d.ts +0 -2
- package/esm/types/CamOverlayAPI.d.ts +0 -188
- package/esm/types/CamOverlayAPI.js +0 -44
- package/esm/types/CamScripterAPI.d.ts +0 -67
- package/esm/types/CamStreamerAPI.d.ts +0 -139
- package/esm/types/CamSwitcherEvents.d.ts +0 -491
- package/esm/types/VapixAPI.d.ts +0 -1683
- package/esm/web/DefaultClient.d.ts +0 -6
- package/esm/web/WsClient.d.ts +0 -13
- package/esm/web/index.d.ts +0 -2
- /package/{cjs/CreatePackage.d.ts → esm/internal/types.js} +0 -0
- /package/esm/{CreatePackage.d.ts → types/CamOverlayDrawingAPI.js} +0 -0
- /package/{cjs → types}/internal/constants.d.ts +0 -0
- /package/{cjs → types}/internal/transformers.d.ts +0 -0
- /package/{cjs/internal → types/node}/Digest.d.ts +0 -0
- /package/{cjs → types}/web/WsClient.d.ts +0 -0
- /package/{cjs/node → types/web}/index.d.ts +0 -0
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { HttpOptions } from '../internal/common';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
export type CamOverlayOptions = HttpOptions;
|
|
4
|
-
export type TFileType = 'image' | 'font';
|
|
5
|
-
export type TCoordinates = 'top_left' | 'top_right' | 'top' | 'bottom_left' | 'bottom_right' | 'bottom' | 'left' | 'right' | 'center' | '';
|
|
6
|
-
export declare const serviceSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
7
|
-
export type TService = z.infer<typeof serviceSchema>;
|
|
8
|
-
export type TServiceList = {
|
|
9
|
-
services: TService[];
|
|
10
|
-
};
|
|
11
|
-
export declare const fieldSchema: z.ZodObject<{
|
|
12
|
-
field_name: z.ZodString;
|
|
13
|
-
text: z.ZodString;
|
|
14
|
-
color: z.ZodOptional<z.ZodString>;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
field_name: string;
|
|
17
|
-
text: string;
|
|
18
|
-
color?: string | undefined;
|
|
19
|
-
}, {
|
|
20
|
-
field_name: string;
|
|
21
|
-
text: string;
|
|
22
|
-
color?: string | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
export type TField = z.infer<typeof fieldSchema>;
|
|
25
|
-
export declare const fileSchema: z.ZodObject<{
|
|
26
|
-
name: z.ZodString;
|
|
27
|
-
path: z.ZodString;
|
|
28
|
-
storage: z.ZodString;
|
|
29
|
-
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
path: string;
|
|
31
|
-
name: string;
|
|
32
|
-
storage: string;
|
|
33
|
-
}, {
|
|
34
|
-
path: string;
|
|
35
|
-
name: string;
|
|
36
|
-
storage: string;
|
|
37
|
-
}>;
|
|
38
|
-
export type TFile = z.infer<typeof fileSchema>;
|
|
39
|
-
export declare const fileListSchema: z.ZodArray<z.ZodObject<{
|
|
40
|
-
name: z.ZodString;
|
|
41
|
-
path: z.ZodString;
|
|
42
|
-
storage: z.ZodString;
|
|
43
|
-
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
path: string;
|
|
45
|
-
name: string;
|
|
46
|
-
storage: string;
|
|
47
|
-
}, {
|
|
48
|
-
path: string;
|
|
49
|
-
name: string;
|
|
50
|
-
storage: string;
|
|
51
|
-
}>, "many">;
|
|
52
|
-
export type TFileList = z.infer<typeof fileListSchema>;
|
|
53
|
-
export declare enum ImageType {
|
|
54
|
-
PNG = 0,
|
|
55
|
-
JPEG = 1
|
|
56
|
-
}
|
|
57
|
-
export declare const fontStorageSchema: z.ZodTuple<[z.ZodObject<{
|
|
58
|
-
type: z.ZodLiteral<"SD0">;
|
|
59
|
-
state: z.ZodLiteral<"SD Card">;
|
|
60
|
-
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
type: "SD0";
|
|
62
|
-
state: "SD Card";
|
|
63
|
-
}, {
|
|
64
|
-
type: "SD0";
|
|
65
|
-
state: "SD Card";
|
|
66
|
-
}>, z.ZodObject<{
|
|
67
|
-
type: z.ZodLiteral<"flash">;
|
|
68
|
-
state: z.ZodString;
|
|
69
|
-
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
type: "flash";
|
|
71
|
-
state: string;
|
|
72
|
-
}, {
|
|
73
|
-
type: "flash";
|
|
74
|
-
state: string;
|
|
75
|
-
}>], null>;
|
|
76
|
-
export type TFontStorage = z.infer<typeof fontStorageSchema>;
|
|
77
|
-
export declare const imageStorageSchema: z.ZodTuple<[z.ZodObject<{
|
|
78
|
-
type: z.ZodLiteral<"SD0">;
|
|
79
|
-
state: z.ZodLiteral<"SD Card">;
|
|
80
|
-
}, "strip", z.ZodTypeAny, {
|
|
81
|
-
type: "SD0";
|
|
82
|
-
state: "SD Card";
|
|
83
|
-
}, {
|
|
84
|
-
type: "SD0";
|
|
85
|
-
state: "SD Card";
|
|
86
|
-
}>, z.ZodObject<{
|
|
87
|
-
type: z.ZodLiteral<"flash">;
|
|
88
|
-
state: z.ZodString;
|
|
89
|
-
}, "strip", z.ZodTypeAny, {
|
|
90
|
-
type: "flash";
|
|
91
|
-
state: string;
|
|
92
|
-
}, {
|
|
93
|
-
type: "flash";
|
|
94
|
-
state: string;
|
|
95
|
-
}>, z.ZodObject<{
|
|
96
|
-
type: z.ZodLiteral<"samba">;
|
|
97
|
-
state: z.ZodLiteral<"Microsoft Network Share">;
|
|
98
|
-
}, "strip", z.ZodTypeAny, {
|
|
99
|
-
type: "samba";
|
|
100
|
-
state: "Microsoft Network Share";
|
|
101
|
-
}, {
|
|
102
|
-
type: "samba";
|
|
103
|
-
state: "Microsoft Network Share";
|
|
104
|
-
}>, z.ZodObject<{
|
|
105
|
-
type: z.ZodLiteral<"url">;
|
|
106
|
-
state: z.ZodLiteral<"URL">;
|
|
107
|
-
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
type: "url";
|
|
109
|
-
state: "URL";
|
|
110
|
-
}, {
|
|
111
|
-
type: "url";
|
|
112
|
-
state: "URL";
|
|
113
|
-
}>, z.ZodObject<{
|
|
114
|
-
type: z.ZodLiteral<"ftp">;
|
|
115
|
-
state: z.ZodLiteral<"FTP">;
|
|
116
|
-
}, "strip", z.ZodTypeAny, {
|
|
117
|
-
type: "ftp";
|
|
118
|
-
state: "FTP";
|
|
119
|
-
}, {
|
|
120
|
-
type: "ftp";
|
|
121
|
-
state: "FTP";
|
|
122
|
-
}>], null>;
|
|
123
|
-
export type TImageStorage = z.infer<typeof imageStorageSchema>;
|
|
124
|
-
export declare const storageSchema: z.ZodUnion<[z.ZodTuple<[z.ZodObject<{
|
|
125
|
-
type: z.ZodLiteral<"SD0">;
|
|
126
|
-
state: z.ZodLiteral<"SD Card">;
|
|
127
|
-
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
type: "SD0";
|
|
129
|
-
state: "SD Card";
|
|
130
|
-
}, {
|
|
131
|
-
type: "SD0";
|
|
132
|
-
state: "SD Card";
|
|
133
|
-
}>, z.ZodObject<{
|
|
134
|
-
type: z.ZodLiteral<"flash">;
|
|
135
|
-
state: z.ZodString;
|
|
136
|
-
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
type: "flash";
|
|
138
|
-
state: string;
|
|
139
|
-
}, {
|
|
140
|
-
type: "flash";
|
|
141
|
-
state: string;
|
|
142
|
-
}>], null>, z.ZodTuple<[z.ZodObject<{
|
|
143
|
-
type: z.ZodLiteral<"SD0">;
|
|
144
|
-
state: z.ZodLiteral<"SD Card">;
|
|
145
|
-
}, "strip", z.ZodTypeAny, {
|
|
146
|
-
type: "SD0";
|
|
147
|
-
state: "SD Card";
|
|
148
|
-
}, {
|
|
149
|
-
type: "SD0";
|
|
150
|
-
state: "SD Card";
|
|
151
|
-
}>, z.ZodObject<{
|
|
152
|
-
type: z.ZodLiteral<"flash">;
|
|
153
|
-
state: z.ZodString;
|
|
154
|
-
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
type: "flash";
|
|
156
|
-
state: string;
|
|
157
|
-
}, {
|
|
158
|
-
type: "flash";
|
|
159
|
-
state: string;
|
|
160
|
-
}>, z.ZodObject<{
|
|
161
|
-
type: z.ZodLiteral<"samba">;
|
|
162
|
-
state: z.ZodLiteral<"Microsoft Network Share">;
|
|
163
|
-
}, "strip", z.ZodTypeAny, {
|
|
164
|
-
type: "samba";
|
|
165
|
-
state: "Microsoft Network Share";
|
|
166
|
-
}, {
|
|
167
|
-
type: "samba";
|
|
168
|
-
state: "Microsoft Network Share";
|
|
169
|
-
}>, z.ZodObject<{
|
|
170
|
-
type: z.ZodLiteral<"url">;
|
|
171
|
-
state: z.ZodLiteral<"URL">;
|
|
172
|
-
}, "strip", z.ZodTypeAny, {
|
|
173
|
-
type: "url";
|
|
174
|
-
state: "URL";
|
|
175
|
-
}, {
|
|
176
|
-
type: "url";
|
|
177
|
-
state: "URL";
|
|
178
|
-
}>, z.ZodObject<{
|
|
179
|
-
type: z.ZodLiteral<"ftp">;
|
|
180
|
-
state: z.ZodLiteral<"FTP">;
|
|
181
|
-
}, "strip", z.ZodTypeAny, {
|
|
182
|
-
type: "ftp";
|
|
183
|
-
state: "FTP";
|
|
184
|
-
}, {
|
|
185
|
-
type: "ftp";
|
|
186
|
-
state: "FTP";
|
|
187
|
-
}>], null>]>;
|
|
188
|
-
export type TStorage = z.infer<typeof storageSchema>;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.storageSchema = exports.imageStorageSchema = exports.fontStorageSchema = exports.ImageType = exports.fileListSchema = exports.fileSchema = exports.fieldSchema = exports.serviceSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.serviceSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.any());
|
|
6
|
-
exports.fieldSchema = zod_1.z.object({
|
|
7
|
-
field_name: zod_1.z.string(),
|
|
8
|
-
text: zod_1.z.string(),
|
|
9
|
-
color: zod_1.z.string().optional(),
|
|
10
|
-
});
|
|
11
|
-
exports.fileSchema = zod_1.z.object({
|
|
12
|
-
name: zod_1.z.string(),
|
|
13
|
-
path: zod_1.z.string(),
|
|
14
|
-
storage: zod_1.z.string(),
|
|
15
|
-
});
|
|
16
|
-
exports.fileListSchema = zod_1.z.array(exports.fileSchema);
|
|
17
|
-
var ImageType;
|
|
18
|
-
(function (ImageType) {
|
|
19
|
-
ImageType[ImageType["PNG"] = 0] = "PNG";
|
|
20
|
-
ImageType[ImageType["JPEG"] = 1] = "JPEG";
|
|
21
|
-
})(ImageType || (exports.ImageType = ImageType = {}));
|
|
22
|
-
exports.fontStorageSchema = zod_1.z.tuple([
|
|
23
|
-
zod_1.z.object({
|
|
24
|
-
type: zod_1.z.literal('SD0'),
|
|
25
|
-
state: zod_1.z.literal('SD Card'),
|
|
26
|
-
}),
|
|
27
|
-
zod_1.z.object({
|
|
28
|
-
type: zod_1.z.literal('flash'),
|
|
29
|
-
state: zod_1.z.string(),
|
|
30
|
-
}),
|
|
31
|
-
]);
|
|
32
|
-
exports.imageStorageSchema = zod_1.z.tuple([
|
|
33
|
-
...exports.fontStorageSchema.items,
|
|
34
|
-
zod_1.z.object({
|
|
35
|
-
type: zod_1.z.literal('samba'),
|
|
36
|
-
state: zod_1.z.literal('Microsoft Network Share'),
|
|
37
|
-
}),
|
|
38
|
-
zod_1.z.object({
|
|
39
|
-
type: zod_1.z.literal('url'),
|
|
40
|
-
state: zod_1.z.literal('URL'),
|
|
41
|
-
}),
|
|
42
|
-
zod_1.z.object({
|
|
43
|
-
type: zod_1.z.literal('ftp'),
|
|
44
|
-
state: zod_1.z.literal('FTP'),
|
|
45
|
-
}),
|
|
46
|
-
]);
|
|
47
|
-
exports.storageSchema = zod_1.z.union([exports.fontStorageSchema, exports.imageStorageSchema]);
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { HttpOptions } from '../internal/common';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
export type CamScripterOptions = HttpOptions;
|
|
4
|
-
export type TStorageType = 'INTERNAL' | 'SD_CARD';
|
|
5
|
-
export type TNodeState = 'OK' | 'NOT_INSTALLED' | 'NOT_FOUND';
|
|
6
|
-
export declare const packageInfoListSchema: z.ZodArray<z.ZodObject<{
|
|
7
|
-
storage: z.ZodUnion<[z.ZodLiteral<"SD_CARD">, z.ZodLiteral<"INTERNAL">]>;
|
|
8
|
-
manifest: z.ZodObject<{
|
|
9
|
-
package_name: z.ZodString;
|
|
10
|
-
package_menu_name: z.ZodString;
|
|
11
|
-
package_version: z.ZodString;
|
|
12
|
-
vendor: z.ZodString;
|
|
13
|
-
required_camscripter_version: z.ZodString;
|
|
14
|
-
required_camscripter_rbi_version: z.ZodString;
|
|
15
|
-
ui_link: z.ZodString;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
package_name: string;
|
|
18
|
-
package_menu_name: string;
|
|
19
|
-
package_version: string;
|
|
20
|
-
vendor: string;
|
|
21
|
-
required_camscripter_version: string;
|
|
22
|
-
required_camscripter_rbi_version: string;
|
|
23
|
-
ui_link: string;
|
|
24
|
-
}, {
|
|
25
|
-
package_name: string;
|
|
26
|
-
package_menu_name: string;
|
|
27
|
-
package_version: string;
|
|
28
|
-
vendor: string;
|
|
29
|
-
required_camscripter_version: string;
|
|
30
|
-
required_camscripter_rbi_version: string;
|
|
31
|
-
ui_link: string;
|
|
32
|
-
}>;
|
|
33
|
-
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
storage: "INTERNAL" | "SD_CARD";
|
|
35
|
-
manifest: {
|
|
36
|
-
package_name: string;
|
|
37
|
-
package_menu_name: string;
|
|
38
|
-
package_version: string;
|
|
39
|
-
vendor: string;
|
|
40
|
-
required_camscripter_version: string;
|
|
41
|
-
required_camscripter_rbi_version: string;
|
|
42
|
-
ui_link: string;
|
|
43
|
-
};
|
|
44
|
-
}, {
|
|
45
|
-
storage: "INTERNAL" | "SD_CARD";
|
|
46
|
-
manifest: {
|
|
47
|
-
package_name: string;
|
|
48
|
-
package_menu_name: string;
|
|
49
|
-
package_version: string;
|
|
50
|
-
vendor: string;
|
|
51
|
-
required_camscripter_version: string;
|
|
52
|
-
required_camscripter_rbi_version: string;
|
|
53
|
-
ui_link: string;
|
|
54
|
-
};
|
|
55
|
-
}>, "many">;
|
|
56
|
-
export type TPackageInfoList = z.infer<typeof packageInfoListSchema>;
|
|
57
|
-
export declare const storageSchema: z.ZodArray<z.ZodObject<{
|
|
58
|
-
type: z.ZodUnion<[z.ZodLiteral<"INTERNAL">, z.ZodLiteral<"SD_CARD">]>;
|
|
59
|
-
capacity_mb: z.ZodNumber;
|
|
60
|
-
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
type: "INTERNAL" | "SD_CARD";
|
|
62
|
-
capacity_mb: number;
|
|
63
|
-
}, {
|
|
64
|
-
type: "INTERNAL" | "SD_CARD";
|
|
65
|
-
capacity_mb: number;
|
|
66
|
-
}>, "many">;
|
|
67
|
-
export type TStorage = z.infer<typeof storageSchema>;
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { HttpOptions } from '../internal/common';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
export type CamStreamerAPIOptions = HttpOptions;
|
|
4
|
-
export declare const streamAttributesSchema: z.ZodObject<{
|
|
5
|
-
enabled: z.ZodString;
|
|
6
|
-
active: z.ZodString;
|
|
7
|
-
audioSource: z.ZodString;
|
|
8
|
-
avSyncMsec: z.ZodString;
|
|
9
|
-
internalVapixParameters: z.ZodString;
|
|
10
|
-
userVapixParameters: z.ZodString;
|
|
11
|
-
outputParameters: z.ZodString;
|
|
12
|
-
outputType: z.ZodString;
|
|
13
|
-
mediaServerUrl: z.ZodString;
|
|
14
|
-
inputType: z.ZodString;
|
|
15
|
-
inputUrl: z.ZodString;
|
|
16
|
-
forceStereo: z.ZodString;
|
|
17
|
-
streamDelay: z.ZodString;
|
|
18
|
-
statusLed: z.ZodString;
|
|
19
|
-
statusPort: z.ZodString;
|
|
20
|
-
callApi: z.ZodString;
|
|
21
|
-
trigger: z.ZodString;
|
|
22
|
-
schedule: z.ZodString;
|
|
23
|
-
prepareAhead: z.ZodString;
|
|
24
|
-
startTime: z.ZodString;
|
|
25
|
-
stopTime: z.ZodString;
|
|
26
|
-
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
enabled: string;
|
|
28
|
-
active: string;
|
|
29
|
-
audioSource: string;
|
|
30
|
-
avSyncMsec: string;
|
|
31
|
-
internalVapixParameters: string;
|
|
32
|
-
userVapixParameters: string;
|
|
33
|
-
outputParameters: string;
|
|
34
|
-
outputType: string;
|
|
35
|
-
mediaServerUrl: string;
|
|
36
|
-
inputType: string;
|
|
37
|
-
inputUrl: string;
|
|
38
|
-
forceStereo: string;
|
|
39
|
-
streamDelay: string;
|
|
40
|
-
statusLed: string;
|
|
41
|
-
statusPort: string;
|
|
42
|
-
callApi: string;
|
|
43
|
-
trigger: string;
|
|
44
|
-
schedule: string;
|
|
45
|
-
prepareAhead: string;
|
|
46
|
-
startTime: string;
|
|
47
|
-
stopTime: string;
|
|
48
|
-
}, {
|
|
49
|
-
enabled: string;
|
|
50
|
-
active: string;
|
|
51
|
-
audioSource: string;
|
|
52
|
-
avSyncMsec: string;
|
|
53
|
-
internalVapixParameters: string;
|
|
54
|
-
userVapixParameters: string;
|
|
55
|
-
outputParameters: string;
|
|
56
|
-
outputType: string;
|
|
57
|
-
mediaServerUrl: string;
|
|
58
|
-
inputType: string;
|
|
59
|
-
inputUrl: string;
|
|
60
|
-
forceStereo: string;
|
|
61
|
-
streamDelay: string;
|
|
62
|
-
statusLed: string;
|
|
63
|
-
statusPort: string;
|
|
64
|
-
callApi: string;
|
|
65
|
-
trigger: string;
|
|
66
|
-
schedule: string;
|
|
67
|
-
prepareAhead: string;
|
|
68
|
-
startTime: string;
|
|
69
|
-
stopTime: string;
|
|
70
|
-
}>;
|
|
71
|
-
export type TStreamAttributes = z.infer<typeof streamAttributesSchema>;
|
|
72
|
-
export declare const streamListSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
73
|
-
enabled: z.ZodString;
|
|
74
|
-
active: z.ZodString;
|
|
75
|
-
audioSource: z.ZodString;
|
|
76
|
-
avSyncMsec: z.ZodString;
|
|
77
|
-
internalVapixParameters: z.ZodString;
|
|
78
|
-
userVapixParameters: z.ZodString;
|
|
79
|
-
outputParameters: z.ZodString;
|
|
80
|
-
outputType: z.ZodString;
|
|
81
|
-
mediaServerUrl: z.ZodString;
|
|
82
|
-
inputType: z.ZodString;
|
|
83
|
-
inputUrl: z.ZodString;
|
|
84
|
-
forceStereo: z.ZodString;
|
|
85
|
-
streamDelay: z.ZodString;
|
|
86
|
-
statusLed: z.ZodString;
|
|
87
|
-
statusPort: z.ZodString;
|
|
88
|
-
callApi: z.ZodString;
|
|
89
|
-
trigger: z.ZodString;
|
|
90
|
-
schedule: z.ZodString;
|
|
91
|
-
prepareAhead: z.ZodString;
|
|
92
|
-
startTime: z.ZodString;
|
|
93
|
-
stopTime: z.ZodString;
|
|
94
|
-
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
enabled: string;
|
|
96
|
-
active: string;
|
|
97
|
-
audioSource: string;
|
|
98
|
-
avSyncMsec: string;
|
|
99
|
-
internalVapixParameters: string;
|
|
100
|
-
userVapixParameters: string;
|
|
101
|
-
outputParameters: string;
|
|
102
|
-
outputType: string;
|
|
103
|
-
mediaServerUrl: string;
|
|
104
|
-
inputType: string;
|
|
105
|
-
inputUrl: string;
|
|
106
|
-
forceStereo: string;
|
|
107
|
-
streamDelay: string;
|
|
108
|
-
statusLed: string;
|
|
109
|
-
statusPort: string;
|
|
110
|
-
callApi: string;
|
|
111
|
-
trigger: string;
|
|
112
|
-
schedule: string;
|
|
113
|
-
prepareAhead: string;
|
|
114
|
-
startTime: string;
|
|
115
|
-
stopTime: string;
|
|
116
|
-
}, {
|
|
117
|
-
enabled: string;
|
|
118
|
-
active: string;
|
|
119
|
-
audioSource: string;
|
|
120
|
-
avSyncMsec: string;
|
|
121
|
-
internalVapixParameters: string;
|
|
122
|
-
userVapixParameters: string;
|
|
123
|
-
outputParameters: string;
|
|
124
|
-
outputType: string;
|
|
125
|
-
mediaServerUrl: string;
|
|
126
|
-
inputType: string;
|
|
127
|
-
inputUrl: string;
|
|
128
|
-
forceStereo: string;
|
|
129
|
-
streamDelay: string;
|
|
130
|
-
statusLed: string;
|
|
131
|
-
statusPort: string;
|
|
132
|
-
callApi: string;
|
|
133
|
-
trigger: string;
|
|
134
|
-
schedule: string;
|
|
135
|
-
prepareAhead: string;
|
|
136
|
-
startTime: string;
|
|
137
|
-
stopTime: string;
|
|
138
|
-
}>>;
|
|
139
|
-
export type TStreamList = z.infer<typeof streamListSchema>;
|