camstreamerlib 4.0.0-beta.89 → 4.0.0-beta.90
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/cjs/CamStreamerAPI.d.ts +140 -6
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +882 -57
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +4 -10
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +46 -0
- package/cjs/types/CamStreamerAPI/hlsSchema.d.ts +46 -0
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +46 -0
- package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +12 -12
- package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +46 -9
- package/cjs/types/CamStreamerAPI/rtmpSchema.js +0 -3
- package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +46 -0
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +75 -1
- package/cjs/types/CamStreamerAPI/streamCommonTypes.js +24 -2
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +46 -0
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +46 -0
- package/esm/types/CamStreamerAPI/CamStreamerAPI.js +3 -9
- package/esm/types/CamStreamerAPI/rtmpSchema.js +0 -3
- package/esm/types/CamStreamerAPI/streamCommonTypes.js +23 -1
- package/package.json +1 -1
- package/types/CamStreamerAPI.d.ts +140 -6
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +882 -57
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +46 -0
- package/types/types/CamStreamerAPI/hlsSchema.d.ts +46 -0
- package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +46 -0
- package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +12 -12
- package/types/types/CamStreamerAPI/rtmpSchema.d.ts +46 -9
- package/types/types/CamStreamerAPI/sdCardSchema.d.ts +46 -0
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +75 -1
- package/types/types/CamStreamerAPI/windySchema.d.ts +46 -0
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +46 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.audioFileDataSchema = exports.audioFileListSchema = exports.audioFileSchema = exports.storageListSchema = exports.audioFileStorageTypeSchema = exports.AudioType = exports.isYouTubeStream = exports.isWindyStream = exports.isSdCardStream = exports.isRtmpStream = exports.isMpegDvbStream = exports.isHlsStream = exports.isFacebookStream = exports.streamListSchema = exports.streamSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const facebookSchema_1 = require("./facebookSchema");
|
|
6
6
|
const hlsSchema_1 = require("./hlsSchema");
|
|
@@ -69,13 +69,7 @@ exports.audioFileSchema = zod_1.z.object({
|
|
|
69
69
|
storage: exports.audioFileStorageTypeSchema,
|
|
70
70
|
});
|
|
71
71
|
exports.audioFileListSchema = zod_1.z.array(exports.audioFileSchema);
|
|
72
|
-
exports.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
storage: zod_1.z.literal('url'),
|
|
76
|
-
});
|
|
77
|
-
exports.audioLocalSchema = zod_1.z.object({
|
|
78
|
-
file: zod_1.z.instanceof(File),
|
|
79
|
-
name: zod_1.z.string(),
|
|
80
|
-
storage: zod_1.z.enum(['flash', 'SD0']),
|
|
72
|
+
exports.audioFileDataSchema = zod_1.z.object({
|
|
73
|
+
code: zod_1.z.number(),
|
|
74
|
+
list: exports.audioFileListSchema,
|
|
81
75
|
});
|
|
@@ -97,6 +97,32 @@ export declare const facebookSchema: z.ZodObject<{
|
|
|
97
97
|
isActive: boolean;
|
|
98
98
|
}[];
|
|
99
99
|
}>]>;
|
|
100
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
101
|
+
internalVapixParameters: z.ZodObject<{
|
|
102
|
+
camera: z.ZodString;
|
|
103
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
104
|
+
compression: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
videobitrate: z.ZodOptional<z.ZodNumber>;
|
|
107
|
+
videomaxbitrate: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
camera: string;
|
|
111
|
+
resolution?: string | undefined;
|
|
112
|
+
compression?: number | undefined;
|
|
113
|
+
audio?: 0 | 1 | undefined;
|
|
114
|
+
fps?: number | undefined;
|
|
115
|
+
videobitrate?: number | undefined;
|
|
116
|
+
videomaxbitrate?: number | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
camera: string;
|
|
119
|
+
resolution?: string | undefined;
|
|
120
|
+
compression?: number | undefined;
|
|
121
|
+
audio?: 0 | 1 | undefined;
|
|
122
|
+
fps?: number | undefined;
|
|
123
|
+
videobitrate?: number | undefined;
|
|
124
|
+
videomaxbitrate?: number | undefined;
|
|
125
|
+
}>;
|
|
100
126
|
} & {
|
|
101
127
|
type: z.ZodLiteral<"facebook">;
|
|
102
128
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -126,6 +152,16 @@ export declare const facebookSchema: z.ZodObject<{
|
|
|
126
152
|
isActive: boolean;
|
|
127
153
|
}[];
|
|
128
154
|
};
|
|
155
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
156
|
+
internalVapixParameters: {
|
|
157
|
+
camera: string;
|
|
158
|
+
resolution?: string | undefined;
|
|
159
|
+
compression?: number | undefined;
|
|
160
|
+
audio?: 0 | 1 | undefined;
|
|
161
|
+
fps?: number | undefined;
|
|
162
|
+
videobitrate?: number | undefined;
|
|
163
|
+
videomaxbitrate?: number | undefined;
|
|
164
|
+
};
|
|
129
165
|
}, {
|
|
130
166
|
type: "facebook";
|
|
131
167
|
enabled: boolean;
|
|
@@ -153,4 +189,14 @@ export declare const facebookSchema: z.ZodObject<{
|
|
|
153
189
|
isActive: boolean;
|
|
154
190
|
}[];
|
|
155
191
|
};
|
|
192
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
193
|
+
internalVapixParameters: {
|
|
194
|
+
camera: string;
|
|
195
|
+
resolution?: string | undefined;
|
|
196
|
+
compression?: number | undefined;
|
|
197
|
+
audio?: 0 | 1 | undefined;
|
|
198
|
+
fps?: number | undefined;
|
|
199
|
+
videobitrate?: number | undefined;
|
|
200
|
+
videomaxbitrate?: number | undefined;
|
|
201
|
+
};
|
|
156
202
|
}>;
|
|
@@ -97,6 +97,32 @@ export declare const hlsSchema: z.ZodObject<{
|
|
|
97
97
|
isActive: boolean;
|
|
98
98
|
}[];
|
|
99
99
|
}>]>;
|
|
100
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
101
|
+
internalVapixParameters: z.ZodObject<{
|
|
102
|
+
camera: z.ZodString;
|
|
103
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
104
|
+
compression: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
videobitrate: z.ZodOptional<z.ZodNumber>;
|
|
107
|
+
videomaxbitrate: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
camera: string;
|
|
111
|
+
resolution?: string | undefined;
|
|
112
|
+
compression?: number | undefined;
|
|
113
|
+
audio?: 0 | 1 | undefined;
|
|
114
|
+
fps?: number | undefined;
|
|
115
|
+
videobitrate?: number | undefined;
|
|
116
|
+
videomaxbitrate?: number | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
camera: string;
|
|
119
|
+
resolution?: string | undefined;
|
|
120
|
+
compression?: number | undefined;
|
|
121
|
+
audio?: 0 | 1 | undefined;
|
|
122
|
+
fps?: number | undefined;
|
|
123
|
+
videobitrate?: number | undefined;
|
|
124
|
+
videomaxbitrate?: number | undefined;
|
|
125
|
+
}>;
|
|
100
126
|
} & {
|
|
101
127
|
type: z.ZodLiteral<"hls">;
|
|
102
128
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -126,6 +152,16 @@ export declare const hlsSchema: z.ZodObject<{
|
|
|
126
152
|
isActive: boolean;
|
|
127
153
|
}[];
|
|
128
154
|
};
|
|
155
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
156
|
+
internalVapixParameters: {
|
|
157
|
+
camera: string;
|
|
158
|
+
resolution?: string | undefined;
|
|
159
|
+
compression?: number | undefined;
|
|
160
|
+
audio?: 0 | 1 | undefined;
|
|
161
|
+
fps?: number | undefined;
|
|
162
|
+
videobitrate?: number | undefined;
|
|
163
|
+
videomaxbitrate?: number | undefined;
|
|
164
|
+
};
|
|
129
165
|
}, {
|
|
130
166
|
type: "hls";
|
|
131
167
|
enabled: boolean;
|
|
@@ -153,4 +189,14 @@ export declare const hlsSchema: z.ZodObject<{
|
|
|
153
189
|
isActive: boolean;
|
|
154
190
|
}[];
|
|
155
191
|
};
|
|
192
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
193
|
+
internalVapixParameters: {
|
|
194
|
+
camera: string;
|
|
195
|
+
resolution?: string | undefined;
|
|
196
|
+
compression?: number | undefined;
|
|
197
|
+
audio?: 0 | 1 | undefined;
|
|
198
|
+
fps?: number | undefined;
|
|
199
|
+
videobitrate?: number | undefined;
|
|
200
|
+
videomaxbitrate?: number | undefined;
|
|
201
|
+
};
|
|
156
202
|
}>;
|
|
@@ -97,6 +97,32 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
97
97
|
isActive: boolean;
|
|
98
98
|
}[];
|
|
99
99
|
}>]>;
|
|
100
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
101
|
+
internalVapixParameters: z.ZodObject<{
|
|
102
|
+
camera: z.ZodString;
|
|
103
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
104
|
+
compression: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
videobitrate: z.ZodOptional<z.ZodNumber>;
|
|
107
|
+
videomaxbitrate: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
camera: string;
|
|
111
|
+
resolution?: string | undefined;
|
|
112
|
+
compression?: number | undefined;
|
|
113
|
+
audio?: 0 | 1 | undefined;
|
|
114
|
+
fps?: number | undefined;
|
|
115
|
+
videobitrate?: number | undefined;
|
|
116
|
+
videomaxbitrate?: number | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
camera: string;
|
|
119
|
+
resolution?: string | undefined;
|
|
120
|
+
compression?: number | undefined;
|
|
121
|
+
audio?: 0 | 1 | undefined;
|
|
122
|
+
fps?: number | undefined;
|
|
123
|
+
videobitrate?: number | undefined;
|
|
124
|
+
videomaxbitrate?: number | undefined;
|
|
125
|
+
}>;
|
|
100
126
|
} & {
|
|
101
127
|
type: z.ZodLiteral<"mpeg_dvb">;
|
|
102
128
|
ipAddress: z.ZodString;
|
|
@@ -143,6 +169,16 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
143
169
|
isActive: boolean;
|
|
144
170
|
}[];
|
|
145
171
|
};
|
|
172
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
173
|
+
internalVapixParameters: {
|
|
174
|
+
camera: string;
|
|
175
|
+
resolution?: string | undefined;
|
|
176
|
+
compression?: number | undefined;
|
|
177
|
+
audio?: 0 | 1 | undefined;
|
|
178
|
+
fps?: number | undefined;
|
|
179
|
+
videobitrate?: number | undefined;
|
|
180
|
+
videomaxbitrate?: number | undefined;
|
|
181
|
+
};
|
|
146
182
|
ipAddress: string;
|
|
147
183
|
standard: "DVB" | "ATSC";
|
|
148
184
|
nullPacketsPaddingEnabled: boolean;
|
|
@@ -186,6 +222,16 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
186
222
|
isActive: boolean;
|
|
187
223
|
}[];
|
|
188
224
|
};
|
|
225
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
226
|
+
internalVapixParameters: {
|
|
227
|
+
camera: string;
|
|
228
|
+
resolution?: string | undefined;
|
|
229
|
+
compression?: number | undefined;
|
|
230
|
+
audio?: 0 | 1 | undefined;
|
|
231
|
+
fps?: number | undefined;
|
|
232
|
+
videobitrate?: number | undefined;
|
|
233
|
+
videomaxbitrate?: number | undefined;
|
|
234
|
+
};
|
|
189
235
|
ipAddress: string;
|
|
190
236
|
standard: "DVB" | "ATSC";
|
|
191
237
|
nullPacketsPaddingEnabled: boolean;
|
|
@@ -28,14 +28,14 @@ export declare const oldStringStreamSchema: z.ZodObject<{
|
|
|
28
28
|
schedule: string;
|
|
29
29
|
active: string;
|
|
30
30
|
trigger: string;
|
|
31
|
+
inputType: string;
|
|
32
|
+
internalVapixParameters: string;
|
|
31
33
|
audioSource: string;
|
|
32
34
|
avSyncMsec: string;
|
|
33
|
-
internalVapixParameters: string;
|
|
34
35
|
userVapixParameters: string;
|
|
35
36
|
outputParameters: string;
|
|
36
37
|
outputType: string;
|
|
37
38
|
mediaServerUrl: string;
|
|
38
|
-
inputType: string;
|
|
39
39
|
inputUrl: string;
|
|
40
40
|
forceStereo: string;
|
|
41
41
|
streamDelay: string;
|
|
@@ -50,14 +50,14 @@ export declare const oldStringStreamSchema: z.ZodObject<{
|
|
|
50
50
|
schedule: string;
|
|
51
51
|
active: string;
|
|
52
52
|
trigger: string;
|
|
53
|
+
inputType: string;
|
|
54
|
+
internalVapixParameters: string;
|
|
53
55
|
audioSource: string;
|
|
54
56
|
avSyncMsec: string;
|
|
55
|
-
internalVapixParameters: string;
|
|
56
57
|
userVapixParameters: string;
|
|
57
58
|
outputParameters: string;
|
|
58
59
|
outputType: string;
|
|
59
60
|
mediaServerUrl: string;
|
|
60
|
-
inputType: string;
|
|
61
61
|
inputUrl: string;
|
|
62
62
|
forceStereo: string;
|
|
63
63
|
streamDelay: string;
|
|
@@ -98,14 +98,14 @@ export declare const oldStringStreamSchemaWithId: z.ZodObject<{
|
|
|
98
98
|
schedule: string;
|
|
99
99
|
active: string;
|
|
100
100
|
trigger: string;
|
|
101
|
+
inputType: string;
|
|
102
|
+
internalVapixParameters: string;
|
|
101
103
|
audioSource: string;
|
|
102
104
|
avSyncMsec: string;
|
|
103
|
-
internalVapixParameters: string;
|
|
104
105
|
userVapixParameters: string;
|
|
105
106
|
outputParameters: string;
|
|
106
107
|
outputType: string;
|
|
107
108
|
mediaServerUrl: string;
|
|
108
|
-
inputType: string;
|
|
109
109
|
inputUrl: string;
|
|
110
110
|
forceStereo: string;
|
|
111
111
|
streamDelay: string;
|
|
@@ -121,14 +121,14 @@ export declare const oldStringStreamSchemaWithId: z.ZodObject<{
|
|
|
121
121
|
schedule: string;
|
|
122
122
|
active: string;
|
|
123
123
|
trigger: string;
|
|
124
|
+
inputType: string;
|
|
125
|
+
internalVapixParameters: string;
|
|
124
126
|
audioSource: string;
|
|
125
127
|
avSyncMsec: string;
|
|
126
|
-
internalVapixParameters: string;
|
|
127
128
|
userVapixParameters: string;
|
|
128
129
|
outputParameters: string;
|
|
129
130
|
outputType: string;
|
|
130
131
|
mediaServerUrl: string;
|
|
131
|
-
inputType: string;
|
|
132
132
|
inputUrl: string;
|
|
133
133
|
forceStereo: string;
|
|
134
134
|
streamDelay: string;
|
|
@@ -167,14 +167,14 @@ export declare const oldStreamSchema: z.ZodObject<{
|
|
|
167
167
|
schedule: string;
|
|
168
168
|
active: 0 | 1;
|
|
169
169
|
trigger: string;
|
|
170
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
171
|
+
internalVapixParameters: string;
|
|
170
172
|
audioSource: string;
|
|
171
173
|
avSyncMsec: number;
|
|
172
|
-
internalVapixParameters: string;
|
|
173
174
|
userVapixParameters: string;
|
|
174
175
|
outputParameters: string;
|
|
175
176
|
outputType: "video" | "none" | "images";
|
|
176
177
|
mediaServerUrl: string;
|
|
177
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
178
178
|
inputUrl: string;
|
|
179
179
|
forceStereo: 0 | 1;
|
|
180
180
|
streamDelay: number | null;
|
|
@@ -189,14 +189,14 @@ export declare const oldStreamSchema: z.ZodObject<{
|
|
|
189
189
|
schedule: string;
|
|
190
190
|
active: 0 | 1;
|
|
191
191
|
trigger: string;
|
|
192
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
193
|
+
internalVapixParameters: string;
|
|
192
194
|
audioSource: string;
|
|
193
195
|
avSyncMsec: number;
|
|
194
|
-
internalVapixParameters: string;
|
|
195
196
|
userVapixParameters: string;
|
|
196
197
|
outputParameters: string;
|
|
197
198
|
outputType: "video" | "none" | "images";
|
|
198
199
|
mediaServerUrl: string;
|
|
199
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
200
200
|
inputUrl: string;
|
|
201
201
|
forceStereo: 0 | 1;
|
|
202
202
|
streamDelay: number | null;
|
|
@@ -97,11 +97,34 @@ export declare const rtmpSchema: z.ZodObject<{
|
|
|
97
97
|
isActive: boolean;
|
|
98
98
|
}[];
|
|
99
99
|
}>]>;
|
|
100
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
101
|
+
internalVapixParameters: z.ZodObject<{
|
|
102
|
+
camera: z.ZodString;
|
|
103
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
104
|
+
compression: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
videobitrate: z.ZodOptional<z.ZodNumber>;
|
|
107
|
+
videomaxbitrate: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
camera: string;
|
|
111
|
+
resolution?: string | undefined;
|
|
112
|
+
compression?: number | undefined;
|
|
113
|
+
audio?: 0 | 1 | undefined;
|
|
114
|
+
fps?: number | undefined;
|
|
115
|
+
videobitrate?: number | undefined;
|
|
116
|
+
videomaxbitrate?: number | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
camera: string;
|
|
119
|
+
resolution?: string | undefined;
|
|
120
|
+
compression?: number | undefined;
|
|
121
|
+
audio?: 0 | 1 | undefined;
|
|
122
|
+
fps?: number | undefined;
|
|
123
|
+
videobitrate?: number | undefined;
|
|
124
|
+
videomaxbitrate?: number | undefined;
|
|
125
|
+
}>;
|
|
100
126
|
} & {
|
|
101
127
|
type: z.ZodLiteral<"rtmp">;
|
|
102
|
-
rtmpUrl: z.ZodString;
|
|
103
|
-
streamKey: z.ZodString;
|
|
104
|
-
streamIdentifier: z.ZodOptional<z.ZodString>;
|
|
105
128
|
}, "strip", z.ZodTypeAny, {
|
|
106
129
|
type: "rtmp";
|
|
107
130
|
enabled: boolean;
|
|
@@ -129,9 +152,16 @@ export declare const rtmpSchema: z.ZodObject<{
|
|
|
129
152
|
isActive: boolean;
|
|
130
153
|
}[];
|
|
131
154
|
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
155
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
156
|
+
internalVapixParameters: {
|
|
157
|
+
camera: string;
|
|
158
|
+
resolution?: string | undefined;
|
|
159
|
+
compression?: number | undefined;
|
|
160
|
+
audio?: 0 | 1 | undefined;
|
|
161
|
+
fps?: number | undefined;
|
|
162
|
+
videobitrate?: number | undefined;
|
|
163
|
+
videomaxbitrate?: number | undefined;
|
|
164
|
+
};
|
|
135
165
|
}, {
|
|
136
166
|
type: "rtmp";
|
|
137
167
|
enabled: boolean;
|
|
@@ -159,7 +189,14 @@ export declare const rtmpSchema: z.ZodObject<{
|
|
|
159
189
|
isActive: boolean;
|
|
160
190
|
}[];
|
|
161
191
|
};
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
192
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
193
|
+
internalVapixParameters: {
|
|
194
|
+
camera: string;
|
|
195
|
+
resolution?: string | undefined;
|
|
196
|
+
compression?: number | undefined;
|
|
197
|
+
audio?: 0 | 1 | undefined;
|
|
198
|
+
fps?: number | undefined;
|
|
199
|
+
videobitrate?: number | undefined;
|
|
200
|
+
videomaxbitrate?: number | undefined;
|
|
201
|
+
};
|
|
165
202
|
}>;
|
|
@@ -8,7 +8,4 @@ const zod_1 = __importDefault(require("zod"));
|
|
|
8
8
|
const streamCommonTypes_1 = require("./streamCommonTypes");
|
|
9
9
|
exports.rtmpSchema = streamCommonTypes_1.streamCommonSchema.extend({
|
|
10
10
|
type: zod_1.default.literal('rtmp'),
|
|
11
|
-
rtmpUrl: zod_1.default.string().url(),
|
|
12
|
-
streamKey: zod_1.default.string(),
|
|
13
|
-
streamIdentifier: zod_1.default.string().optional(),
|
|
14
11
|
});
|
|
@@ -97,6 +97,32 @@ export declare const sdCardSchema: z.ZodObject<{
|
|
|
97
97
|
isActive: boolean;
|
|
98
98
|
}[];
|
|
99
99
|
}>]>;
|
|
100
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
101
|
+
internalVapixParameters: z.ZodObject<{
|
|
102
|
+
camera: z.ZodString;
|
|
103
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
104
|
+
compression: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
videobitrate: z.ZodOptional<z.ZodNumber>;
|
|
107
|
+
videomaxbitrate: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
camera: string;
|
|
111
|
+
resolution?: string | undefined;
|
|
112
|
+
compression?: number | undefined;
|
|
113
|
+
audio?: 0 | 1 | undefined;
|
|
114
|
+
fps?: number | undefined;
|
|
115
|
+
videobitrate?: number | undefined;
|
|
116
|
+
videomaxbitrate?: number | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
camera: string;
|
|
119
|
+
resolution?: string | undefined;
|
|
120
|
+
compression?: number | undefined;
|
|
121
|
+
audio?: 0 | 1 | undefined;
|
|
122
|
+
fps?: number | undefined;
|
|
123
|
+
videobitrate?: number | undefined;
|
|
124
|
+
videomaxbitrate?: number | undefined;
|
|
125
|
+
}>;
|
|
100
126
|
} & {
|
|
101
127
|
type: z.ZodLiteral<"sd_card">;
|
|
102
128
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -126,6 +152,16 @@ export declare const sdCardSchema: z.ZodObject<{
|
|
|
126
152
|
isActive: boolean;
|
|
127
153
|
}[];
|
|
128
154
|
};
|
|
155
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
156
|
+
internalVapixParameters: {
|
|
157
|
+
camera: string;
|
|
158
|
+
resolution?: string | undefined;
|
|
159
|
+
compression?: number | undefined;
|
|
160
|
+
audio?: 0 | 1 | undefined;
|
|
161
|
+
fps?: number | undefined;
|
|
162
|
+
videobitrate?: number | undefined;
|
|
163
|
+
videomaxbitrate?: number | undefined;
|
|
164
|
+
};
|
|
129
165
|
}, {
|
|
130
166
|
type: "sd_card";
|
|
131
167
|
enabled: boolean;
|
|
@@ -153,4 +189,14 @@ export declare const sdCardSchema: z.ZodObject<{
|
|
|
153
189
|
isActive: boolean;
|
|
154
190
|
}[];
|
|
155
191
|
};
|
|
192
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
193
|
+
internalVapixParameters: {
|
|
194
|
+
camera: string;
|
|
195
|
+
resolution?: string | undefined;
|
|
196
|
+
compression?: number | undefined;
|
|
197
|
+
audio?: 0 | 1 | undefined;
|
|
198
|
+
fps?: number | undefined;
|
|
199
|
+
videobitrate?: number | undefined;
|
|
200
|
+
videomaxbitrate?: number | undefined;
|
|
201
|
+
};
|
|
156
202
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const streamTypeSchema: z.ZodUnion<[z.ZodLiteral<"youtube">, z.ZodLiteral<"facebook">, z.ZodLiteral<"sd_card">, z.ZodLiteral<"windy">, z.ZodLiteral<"mpeg_dvb">, z.ZodLiteral<"
|
|
2
|
+
export declare const streamTypeSchema: z.ZodUnion<[z.ZodLiteral<"youtube">, z.ZodLiteral<"facebook">, z.ZodLiteral<"sd_card">, z.ZodLiteral<"windy">, z.ZodLiteral<"mpeg_dvb">, z.ZodLiteral<"rtmp">, z.ZodLiteral<"dailymotion">, z.ZodLiteral<"ibm">, z.ZodLiteral<"hls_pull">, z.ZodLiteral<"hls_push">, z.ZodLiteral<"wowza">, z.ZodLiteral<"microsoft_stream">, z.ZodLiteral<"microsoft_azure">, z.ZodLiteral<"vimeo">, z.ZodLiteral<"twitch">, z.ZodLiteral<"church">, z.ZodLiteral<"srt">]>;
|
|
3
3
|
export type TStreamType = z.infer<typeof streamTypeSchema>;
|
|
4
4
|
declare const scheduleSchema: z.ZodObject<{
|
|
5
5
|
start: z.ZodObject<{
|
|
@@ -140,6 +140,34 @@ export declare const streamTriggerSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
140
140
|
export type TStreamTrigger = z.infer<typeof streamTriggerSchema>;
|
|
141
141
|
export type TStreamTriggerType = TStreamTrigger['type'];
|
|
142
142
|
export type TTriggerSchedule = z.infer<typeof scheduleSchema>;
|
|
143
|
+
export declare const streamInputTypeSchema: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
144
|
+
export type TStreamInputType = z.infer<typeof streamInputTypeSchema>;
|
|
145
|
+
export declare const internalVapixParametersSchema: z.ZodObject<{
|
|
146
|
+
camera: z.ZodString;
|
|
147
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
148
|
+
compression: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
videobitrate: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
videomaxbitrate: z.ZodOptional<z.ZodNumber>;
|
|
152
|
+
audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
camera: string;
|
|
155
|
+
resolution?: string | undefined;
|
|
156
|
+
compression?: number | undefined;
|
|
157
|
+
audio?: 0 | 1 | undefined;
|
|
158
|
+
fps?: number | undefined;
|
|
159
|
+
videobitrate?: number | undefined;
|
|
160
|
+
videomaxbitrate?: number | undefined;
|
|
161
|
+
}, {
|
|
162
|
+
camera: string;
|
|
163
|
+
resolution?: string | undefined;
|
|
164
|
+
compression?: number | undefined;
|
|
165
|
+
audio?: 0 | 1 | undefined;
|
|
166
|
+
fps?: number | undefined;
|
|
167
|
+
videobitrate?: number | undefined;
|
|
168
|
+
videomaxbitrate?: number | undefined;
|
|
169
|
+
}>;
|
|
170
|
+
export type TInternalVapixParameters = z.infer<typeof internalVapixParametersSchema>;
|
|
143
171
|
export declare const streamCommonSchema: z.ZodObject<{
|
|
144
172
|
id: z.ZodNumber;
|
|
145
173
|
enabled: z.ZodBoolean;
|
|
@@ -238,6 +266,32 @@ export declare const streamCommonSchema: z.ZodObject<{
|
|
|
238
266
|
isActive: boolean;
|
|
239
267
|
}[];
|
|
240
268
|
}>]>;
|
|
269
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
270
|
+
internalVapixParameters: z.ZodObject<{
|
|
271
|
+
camera: z.ZodString;
|
|
272
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
273
|
+
compression: z.ZodOptional<z.ZodNumber>;
|
|
274
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
275
|
+
videobitrate: z.ZodOptional<z.ZodNumber>;
|
|
276
|
+
videomaxbitrate: z.ZodOptional<z.ZodNumber>;
|
|
277
|
+
audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
278
|
+
}, "strip", z.ZodTypeAny, {
|
|
279
|
+
camera: string;
|
|
280
|
+
resolution?: string | undefined;
|
|
281
|
+
compression?: number | undefined;
|
|
282
|
+
audio?: 0 | 1 | undefined;
|
|
283
|
+
fps?: number | undefined;
|
|
284
|
+
videobitrate?: number | undefined;
|
|
285
|
+
videomaxbitrate?: number | undefined;
|
|
286
|
+
}, {
|
|
287
|
+
camera: string;
|
|
288
|
+
resolution?: string | undefined;
|
|
289
|
+
compression?: number | undefined;
|
|
290
|
+
audio?: 0 | 1 | undefined;
|
|
291
|
+
fps?: number | undefined;
|
|
292
|
+
videobitrate?: number | undefined;
|
|
293
|
+
videomaxbitrate?: number | undefined;
|
|
294
|
+
}>;
|
|
241
295
|
}, "strip", z.ZodTypeAny, {
|
|
242
296
|
enabled: boolean;
|
|
243
297
|
id: number;
|
|
@@ -264,6 +318,16 @@ export declare const streamCommonSchema: z.ZodObject<{
|
|
|
264
318
|
isActive: boolean;
|
|
265
319
|
}[];
|
|
266
320
|
};
|
|
321
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
322
|
+
internalVapixParameters: {
|
|
323
|
+
camera: string;
|
|
324
|
+
resolution?: string | undefined;
|
|
325
|
+
compression?: number | undefined;
|
|
326
|
+
audio?: 0 | 1 | undefined;
|
|
327
|
+
fps?: number | undefined;
|
|
328
|
+
videobitrate?: number | undefined;
|
|
329
|
+
videomaxbitrate?: number | undefined;
|
|
330
|
+
};
|
|
267
331
|
}, {
|
|
268
332
|
enabled: boolean;
|
|
269
333
|
id: number;
|
|
@@ -290,6 +354,16 @@ export declare const streamCommonSchema: z.ZodObject<{
|
|
|
290
354
|
isActive: boolean;
|
|
291
355
|
}[];
|
|
292
356
|
};
|
|
357
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
358
|
+
internalVapixParameters: {
|
|
359
|
+
camera: string;
|
|
360
|
+
resolution?: string | undefined;
|
|
361
|
+
compression?: number | undefined;
|
|
362
|
+
audio?: 0 | 1 | undefined;
|
|
363
|
+
fps?: number | undefined;
|
|
364
|
+
videobitrate?: number | undefined;
|
|
365
|
+
videomaxbitrate?: number | undefined;
|
|
366
|
+
};
|
|
293
367
|
}>;
|
|
294
368
|
export type TCommonStream = z.infer<typeof streamCommonSchema>;
|
|
295
369
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.streamCommonSchema = exports.streamTriggerSchema = exports.streamTypeSchema = void 0;
|
|
3
|
+
exports.streamCommonSchema = exports.internalVapixParametersSchema = exports.streamInputTypeSchema = exports.streamTriggerSchema = exports.streamTypeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.streamTypeSchema = zod_1.z.union([
|
|
6
6
|
zod_1.z.literal('youtube'),
|
|
@@ -8,8 +8,18 @@ exports.streamTypeSchema = zod_1.z.union([
|
|
|
8
8
|
zod_1.z.literal('sd_card'),
|
|
9
9
|
zod_1.z.literal('windy'),
|
|
10
10
|
zod_1.z.literal('mpeg_dvb'),
|
|
11
|
-
zod_1.z.literal('hls'),
|
|
12
11
|
zod_1.z.literal('rtmp'),
|
|
12
|
+
zod_1.z.literal('dailymotion'),
|
|
13
|
+
zod_1.z.literal('ibm'),
|
|
14
|
+
zod_1.z.literal('hls_pull'),
|
|
15
|
+
zod_1.z.literal('hls_push'),
|
|
16
|
+
zod_1.z.literal('wowza'),
|
|
17
|
+
zod_1.z.literal('microsoft_stream'),
|
|
18
|
+
zod_1.z.literal('microsoft_azure'),
|
|
19
|
+
zod_1.z.literal('vimeo'),
|
|
20
|
+
zod_1.z.literal('twitch'),
|
|
21
|
+
zod_1.z.literal('church'),
|
|
22
|
+
zod_1.z.literal('srt'),
|
|
13
23
|
]);
|
|
14
24
|
const scheduleSchema = zod_1.z.object({
|
|
15
25
|
start: zod_1.z.object({
|
|
@@ -33,10 +43,22 @@ exports.streamTriggerSchema = zod_1.z.discriminatedUnion('type', [
|
|
|
33
43
|
schedule: zod_1.z.array(scheduleSchema),
|
|
34
44
|
}),
|
|
35
45
|
]);
|
|
46
|
+
exports.streamInputTypeSchema = zod_1.z.union([zod_1.z.literal('CSw'), zod_1.z.literal('CRS'), zod_1.z.literal('RTSP_URL')]);
|
|
47
|
+
exports.internalVapixParametersSchema = zod_1.z.object({
|
|
48
|
+
camera: zod_1.z.string(),
|
|
49
|
+
resolution: zod_1.z.string().optional(),
|
|
50
|
+
compression: zod_1.z.number().optional(),
|
|
51
|
+
fps: zod_1.z.number().int().optional(),
|
|
52
|
+
videobitrate: zod_1.z.number().int().optional(),
|
|
53
|
+
videomaxbitrate: zod_1.z.number().int().optional(),
|
|
54
|
+
audio: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]).optional(),
|
|
55
|
+
});
|
|
36
56
|
exports.streamCommonSchema = zod_1.z.object({
|
|
37
57
|
id: zod_1.z.number(),
|
|
38
58
|
enabled: zod_1.z.boolean(),
|
|
39
59
|
active: zod_1.z.boolean(),
|
|
40
60
|
title: zod_1.z.string(),
|
|
41
61
|
trigger: exports.streamTriggerSchema,
|
|
62
|
+
inputType: exports.streamInputTypeSchema,
|
|
63
|
+
internalVapixParameters: exports.internalVapixParametersSchema,
|
|
42
64
|
});
|