camstreamerlib 3.5.2 → 4.0.0-beta.2
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/CamOverlayAPI.d.ts +11 -28
- package/CamOverlayAPI.js +116 -138
- package/CamOverlayDrawingAPI.js +26 -18
- package/CamOverlayPainter/Frame.js +167 -182
- package/CamOverlayPainter/Painter.js +80 -101
- package/CamOverlayPainter/ResourceManager.js +31 -46
- package/CamScripterAPI.d.ts +19 -0
- package/CamScripterAPI.js +66 -0
- package/CamScripterAPICameraEventsGenerator.js +22 -16
- package/CamStreamerAPI.d.ts +5 -27
- package/CamStreamerAPI.js +45 -71
- package/CamSwitcherAPI.d.ts +38 -71
- package/CamSwitcherAPI.js +329 -91
- package/CamSwitcherEvents.d.ts +15 -33
- package/CamSwitcherEvents.js +53 -97
- package/CreatePackage.js +5 -7
- package/README.md +3 -1
- package/VapixAPI.d.ts +66 -0
- package/VapixAPI.js +454 -0
- package/VapixEvents.js +18 -16
- package/errors/errors.d.ts +34 -0
- package/errors/errors.js +66 -0
- package/events/AxisCameraStationEvents.js +29 -42
- package/events/GenetecAgent.d.ts +14 -15
- package/events/GenetecAgent.js +81 -100
- package/internal/Digest.js +5 -11
- package/internal/ProxyClient.d.ts +11 -0
- package/internal/ProxyClient.js +40 -0
- package/internal/common.d.ts +19 -4
- package/internal/common.js +11 -26
- package/internal/constants.d.ts +1 -0
- package/internal/constants.js +1 -0
- package/internal/transformers.d.ts +5 -0
- package/internal/transformers.js +25 -0
- package/internal/utils.d.ts +11 -0
- package/internal/utils.js +34 -0
- package/internal/versionCompare.d.ts +6 -0
- package/internal/versionCompare.js +44 -0
- package/node/DefaultClient.d.ts +15 -0
- package/node/DefaultClient.js +50 -0
- package/{internal → node}/HttpRequestSender.d.ts +2 -2
- package/node/HttpRequestSender.js +85 -0
- package/{HttpServer.d.ts → node/HttpServer.d.ts} +1 -1
- package/{HttpServer.js → node/HttpServer.js} +22 -24
- package/{internal → node}/WsClient.d.ts +1 -1
- package/{internal → node}/WsClient.js +32 -39
- package/node/WsEventClient.d.ts +13 -0
- package/node/WsEventClient.js +18 -0
- package/package.json +7 -3
- package/types/CamOverlayAPI.d.ts +188 -0
- package/types/CamOverlayAPI.js +44 -0
- package/types/CamScripterAPI.d.ts +67 -0
- package/types/CamScripterAPI.js +17 -0
- package/types/CamStreamerAPI.d.ts +139 -0
- package/types/CamStreamerAPI.js +25 -0
- package/types/CamSwitcherAPI.d.ts +814 -0
- package/types/CamSwitcherAPI.js +134 -0
- package/types/CamswitcherEvents.d.ts +491 -0
- package/types/CamswitcherEvents.js +59 -0
- package/types/VapixAPI.d.ts +1704 -0
- package/types/VapixAPI.js +129 -0
- package/types/common.d.ts +37 -0
- package/types/common.js +11 -0
- package/web/DefaultClient.d.ts +6 -0
- package/web/DefaultClient.js +16 -0
- package/web/WsClient.d.ts +13 -0
- package/web/WsClient.js +58 -0
- package/CameraVapix.d.ts +0 -98
- package/CameraVapix.js +0 -441
- package/DefaultAgent.d.ts +0 -15
- package/DefaultAgent.js +0 -68
- package/internal/HttpRequestSender.js +0 -117
|
@@ -0,0 +1,188 @@
|
|
|
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>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const serviceSchema = z.record(z.string(), z.any());
|
|
3
|
+
export const fieldSchema = z.object({
|
|
4
|
+
field_name: z.string(),
|
|
5
|
+
text: z.string(),
|
|
6
|
+
color: z.string().optional(),
|
|
7
|
+
});
|
|
8
|
+
export const fileSchema = z.object({
|
|
9
|
+
name: z.string(),
|
|
10
|
+
path: z.string(),
|
|
11
|
+
storage: z.string(),
|
|
12
|
+
});
|
|
13
|
+
export const fileListSchema = z.array(fileSchema);
|
|
14
|
+
export var ImageType;
|
|
15
|
+
(function (ImageType) {
|
|
16
|
+
ImageType[ImageType["PNG"] = 0] = "PNG";
|
|
17
|
+
ImageType[ImageType["JPEG"] = 1] = "JPEG";
|
|
18
|
+
})(ImageType || (ImageType = {}));
|
|
19
|
+
export const fontStorageSchema = z.tuple([
|
|
20
|
+
z.object({
|
|
21
|
+
type: z.literal('SD0'),
|
|
22
|
+
state: z.literal('SD Card'),
|
|
23
|
+
}),
|
|
24
|
+
z.object({
|
|
25
|
+
type: z.literal('flash'),
|
|
26
|
+
state: z.string(),
|
|
27
|
+
}),
|
|
28
|
+
]);
|
|
29
|
+
export const imageStorageSchema = z.tuple([
|
|
30
|
+
...fontStorageSchema.items,
|
|
31
|
+
z.object({
|
|
32
|
+
type: z.literal('samba'),
|
|
33
|
+
state: z.literal('Microsoft Network Share'),
|
|
34
|
+
}),
|
|
35
|
+
z.object({
|
|
36
|
+
type: z.literal('url'),
|
|
37
|
+
state: z.literal('URL'),
|
|
38
|
+
}),
|
|
39
|
+
z.object({
|
|
40
|
+
type: z.literal('ftp'),
|
|
41
|
+
state: z.literal('FTP'),
|
|
42
|
+
}),
|
|
43
|
+
]);
|
|
44
|
+
export const storageSchema = z.union([fontStorageSchema, imageStorageSchema]);
|
|
@@ -0,0 +1,67 @@
|
|
|
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>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const packageInfoListSchema = z.array(z.object({
|
|
3
|
+
storage: z.union([z.literal('SD_CARD'), z.literal('INTERNAL')]),
|
|
4
|
+
manifest: z.object({
|
|
5
|
+
package_name: z.string(),
|
|
6
|
+
package_menu_name: z.string(),
|
|
7
|
+
package_version: z.string(),
|
|
8
|
+
vendor: z.string(),
|
|
9
|
+
required_camscripter_version: z.string(),
|
|
10
|
+
required_camscripter_rbi_version: z.string(),
|
|
11
|
+
ui_link: z.string(),
|
|
12
|
+
}),
|
|
13
|
+
}));
|
|
14
|
+
export const storageSchema = z.array(z.object({
|
|
15
|
+
type: z.union([z.literal('INTERNAL'), z.literal('SD_CARD')]),
|
|
16
|
+
capacity_mb: z.number(),
|
|
17
|
+
}));
|
|
@@ -0,0 +1,139 @@
|
|
|
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>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const streamAttributesSchema = z.object({
|
|
3
|
+
enabled: z.string(),
|
|
4
|
+
active: z.string(),
|
|
5
|
+
audioSource: z.string(),
|
|
6
|
+
avSyncMsec: z.string(),
|
|
7
|
+
internalVapixParameters: z.string(),
|
|
8
|
+
userVapixParameters: z.string(),
|
|
9
|
+
outputParameters: z.string(),
|
|
10
|
+
outputType: z.string(),
|
|
11
|
+
mediaServerUrl: z.string(),
|
|
12
|
+
inputType: z.string(),
|
|
13
|
+
inputUrl: z.string(),
|
|
14
|
+
forceStereo: z.string(),
|
|
15
|
+
streamDelay: z.string(),
|
|
16
|
+
statusLed: z.string(),
|
|
17
|
+
statusPort: z.string(),
|
|
18
|
+
callApi: z.string(),
|
|
19
|
+
trigger: z.string(),
|
|
20
|
+
schedule: z.string(),
|
|
21
|
+
prepareAhead: z.string(),
|
|
22
|
+
startTime: z.string(),
|
|
23
|
+
stopTime: z.string(),
|
|
24
|
+
});
|
|
25
|
+
export const streamListSchema = z.record(z.string(), streamAttributesSchema);
|