camstreamerlib 4.0.0-beta.115 → 4.0.0-beta.116
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 +1155 -485
- package/cjs/CamStreamerAPI.js +4 -4
- package/cjs/VapixAPI.d.ts +1 -1
- package/cjs/errors/errors.d.ts +2 -2
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +8076 -2678
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +39 -55
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +183 -55
- package/cjs/types/CamStreamerAPI/facebookSchema.js +6 -10
- package/cjs/types/CamStreamerAPI/index.d.ts +1 -5
- package/cjs/types/CamStreamerAPI/index.js +1 -5
- package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +39 -39
- package/cjs/types/CamStreamerAPI/oldStreamSchema.js +1 -1
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +224 -341
- package/cjs/types/CamStreamerAPI/streamCommonTypes.js +89 -75
- package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +7333 -0
- package/cjs/types/CamStreamerAPI/streamsSchema.js +63 -0
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +159 -45
- package/cjs/types/CamStreamerAPI/windySchema.js +1 -1
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +159 -54
- package/cjs/types/CamStreamerAPI/youtubeSchema.js +1 -4
- package/cjs/types/VapixAPI.d.ts +10 -10
- package/cjs/types/ws/CamStreamerEvents.d.ts +33 -33
- package/cjs/types/ws/CamStreamerEvents.js +3 -3
- package/esm/CamStreamerAPI.js +4 -4
- package/esm/types/CamStreamerAPI/CamStreamerAPI.js +22 -38
- package/esm/types/CamStreamerAPI/facebookSchema.js +5 -9
- package/esm/types/CamStreamerAPI/index.js +1 -5
- package/esm/types/CamStreamerAPI/oldStreamSchema.js +1 -1
- package/esm/types/CamStreamerAPI/streamCommonTypes.js +88 -74
- package/esm/types/CamStreamerAPI/streamsSchema.js +57 -0
- package/esm/types/CamStreamerAPI/windySchema.js +1 -1
- package/esm/types/CamStreamerAPI/youtubeSchema.js +1 -4
- package/esm/types/ws/CamStreamerEvents.js +3 -3
- package/package.json +1 -1
- package/types/CamStreamerAPI.d.ts +1155 -485
- package/types/VapixAPI.d.ts +1 -1
- package/types/errors/errors.d.ts +2 -2
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +8076 -2678
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +183 -55
- package/types/types/CamStreamerAPI/index.d.ts +1 -5
- package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +39 -39
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +224 -341
- package/types/types/CamStreamerAPI/streamsSchema.d.ts +7333 -0
- package/types/types/CamStreamerAPI/windySchema.d.ts +159 -45
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +159 -54
- package/types/types/VapixAPI.d.ts +10 -10
- package/types/types/ws/CamStreamerEvents.d.ts +33 -33
- package/cjs/types/CamStreamerAPI/churchSchema.d.ts +0 -293
- package/cjs/types/CamStreamerAPI/churchSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +0 -293
- package/cjs/types/CamStreamerAPI/daCastSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -293
- package/cjs/types/CamStreamerAPI/dailymotionSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -312
- package/cjs/types/CamStreamerAPI/gameChangerSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -293
- package/cjs/types/CamStreamerAPI/hlsPullSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -293
- package/cjs/types/CamStreamerAPI/hlsPushSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/ibmSchema.d.ts +0 -293
- package/cjs/types/CamStreamerAPI/ibmSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -293
- package/cjs/types/CamStreamerAPI/microsoftAzureSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -293
- package/cjs/types/CamStreamerAPI/microsoftStreamSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -314
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +0 -18
- package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +0 -619
- package/cjs/types/CamStreamerAPI/rtmpSchema.js +0 -19
- package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +0 -293
- package/cjs/types/CamStreamerAPI/sdCardSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/srtSchema.d.ts +0 -293
- package/cjs/types/CamStreamerAPI/srtSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +0 -293
- package/cjs/types/CamStreamerAPI/twitchSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +0 -293
- package/cjs/types/CamStreamerAPI/vimeoSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +0 -293
- package/cjs/types/CamStreamerAPI/wowzaSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/youtubeRtmpSchema.d.ts +0 -312
- package/cjs/types/CamStreamerAPI/youtubeRtmpSchema.js +0 -11
- package/esm/types/CamStreamerAPI/churchSchema.js +0 -5
- package/esm/types/CamStreamerAPI/daCastSchema.js +0 -5
- package/esm/types/CamStreamerAPI/dailymotionSchema.js +0 -5
- package/esm/types/CamStreamerAPI/gameChangerSchema.js +0 -5
- package/esm/types/CamStreamerAPI/hlsPullSchema.js +0 -5
- package/esm/types/CamStreamerAPI/hlsPushSchema.js +0 -5
- package/esm/types/CamStreamerAPI/ibmSchema.js +0 -5
- package/esm/types/CamStreamerAPI/microsoftAzureSchema.js +0 -5
- package/esm/types/CamStreamerAPI/microsoftStreamSchema.js +0 -5
- package/esm/types/CamStreamerAPI/mpegDvbSchema.js +0 -12
- package/esm/types/CamStreamerAPI/rtmpSchema.js +0 -13
- package/esm/types/CamStreamerAPI/sdCardSchema.js +0 -5
- package/esm/types/CamStreamerAPI/srtSchema.js +0 -5
- package/esm/types/CamStreamerAPI/twitchSchema.js +0 -5
- package/esm/types/CamStreamerAPI/vimeoSchema.js +0 -5
- package/esm/types/CamStreamerAPI/wowzaSchema.js +0 -5
- package/esm/types/CamStreamerAPI/youtubeRtmpSchema.js +0 -5
- package/types/types/CamStreamerAPI/churchSchema.d.ts +0 -293
- package/types/types/CamStreamerAPI/daCastSchema.d.ts +0 -293
- package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -293
- package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -312
- package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -293
- package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -293
- package/types/types/CamStreamerAPI/ibmSchema.d.ts +0 -293
- package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -293
- package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -293
- package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -314
- package/types/types/CamStreamerAPI/rtmpSchema.d.ts +0 -619
- package/types/types/CamStreamerAPI/sdCardSchema.d.ts +0 -293
- package/types/types/CamStreamerAPI/srtSchema.d.ts +0 -293
- package/types/types/CamStreamerAPI/twitchSchema.d.ts +0 -293
- package/types/types/CamStreamerAPI/vimeoSchema.d.ts +0 -293
- package/types/types/CamStreamerAPI/wowzaSchema.d.ts +0 -293
- package/types/types/CamStreamerAPI/youtubeRtmpSchema.d.ts +0 -312
|
@@ -1,49 +1,97 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.internalVapixParametersSchema = exports.streamCommonSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const common_1 = require("../common");
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
6
|
+
exports.streamCommonSchema = zod_1.z.object({
|
|
7
|
+
streamId: zod_1.z.string(),
|
|
8
|
+
enabled: zod_1.z.boolean(),
|
|
9
|
+
active: zod_1.z.boolean(),
|
|
10
|
+
title: zod_1.z.string(),
|
|
11
|
+
trigger: zod_1.z.discriminatedUnion('type', [
|
|
12
|
+
zod_1.z.object({
|
|
13
|
+
type: zod_1.z.literal('manual'),
|
|
14
|
+
ioPort: zod_1.z.number().nullable(),
|
|
15
|
+
}),
|
|
16
|
+
zod_1.z.object({
|
|
17
|
+
type: zod_1.z.literal('onetime'),
|
|
18
|
+
startTime: zod_1.z.number(),
|
|
19
|
+
stopTime: zod_1.z.number(),
|
|
20
|
+
}),
|
|
21
|
+
zod_1.z.object({
|
|
22
|
+
type: zod_1.z.literal('recurrent'),
|
|
23
|
+
schedule: zod_1.z.array(zod_1.z.object({
|
|
24
|
+
start: zod_1.z.object({
|
|
25
|
+
day: zod_1.z.number().int().min(0).max(6),
|
|
26
|
+
timeS: zod_1.z.number().int().min(0).max(86400),
|
|
27
|
+
}),
|
|
28
|
+
stop: zod_1.z.object({
|
|
29
|
+
day: zod_1.z.number().int().min(0).max(6),
|
|
30
|
+
timeS: zod_1.z.number().int().min(0).max(86400),
|
|
31
|
+
}),
|
|
32
|
+
isActive: zod_1.z.boolean(),
|
|
33
|
+
})),
|
|
34
|
+
}),
|
|
35
|
+
]),
|
|
36
|
+
video: zod_1.z.object({
|
|
37
|
+
output: zod_1.z.discriminatedUnion('callApi', [
|
|
38
|
+
zod_1.z.object({
|
|
39
|
+
type: zod_1.z.union([zod_1.z.literal('video'), zod_1.z.literal('images')]),
|
|
40
|
+
callApi: zod_1.z.literal(false),
|
|
41
|
+
url: zod_1.z.string(),
|
|
42
|
+
}),
|
|
43
|
+
zod_1.z.object({
|
|
44
|
+
type: zod_1.z.literal('video'),
|
|
45
|
+
callApi: zod_1.z.literal(true),
|
|
46
|
+
prepareAheadS: zod_1.z.number(),
|
|
47
|
+
}),
|
|
48
|
+
]),
|
|
49
|
+
outputParameters: zod_1.z.string(),
|
|
50
|
+
input: zod_1.z.discriminatedUnion('type', [
|
|
51
|
+
zod_1.z.object({
|
|
52
|
+
type: zod_1.z.literal('RTSP_URL'),
|
|
53
|
+
url: zod_1.z.string(),
|
|
54
|
+
}),
|
|
55
|
+
zod_1.z.object({
|
|
56
|
+
type: zod_1.z.union([zod_1.z.literal('CSw'), zod_1.z.literal('CRS')]),
|
|
57
|
+
}),
|
|
58
|
+
]),
|
|
59
|
+
streamingProtocol: zod_1.z.union([zod_1.z.literal('RTMP'), zod_1.z.literal('RTMPS'), zod_1.z.literal('HLS_PUSH')]),
|
|
60
|
+
internalVapixParameters: zod_1.z.string(),
|
|
61
|
+
userVapixParameters: zod_1.z.string(),
|
|
62
|
+
streamDelay: zod_1.z
|
|
63
|
+
.object({
|
|
64
|
+
value: zod_1.z.number().int(),
|
|
65
|
+
unit: zod_1.z.union([zod_1.z.literal('seconds'), zod_1.z.literal('minutes'), zod_1.z.literal('hours')]),
|
|
66
|
+
})
|
|
67
|
+
.optional(),
|
|
27
68
|
}),
|
|
28
|
-
zod_1.z
|
|
29
|
-
|
|
30
|
-
|
|
69
|
+
audio: zod_1.z
|
|
70
|
+
.discriminatedUnion('source', [
|
|
71
|
+
zod_1.z.object({
|
|
72
|
+
source: zod_1.z.literal('microphone'),
|
|
73
|
+
audioChannelNbr: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]),
|
|
74
|
+
forceStereo: common_1.booleanSchema,
|
|
75
|
+
}),
|
|
76
|
+
zod_1.z.object({
|
|
77
|
+
source: zod_1.z.literal('file'),
|
|
78
|
+
fileName: zod_1.z.string(),
|
|
79
|
+
filePath: zod_1.z.string(),
|
|
80
|
+
forceStereo: common_1.booleanSchema,
|
|
81
|
+
}),
|
|
82
|
+
zod_1.z.object({
|
|
83
|
+
source: zod_1.z.literal('url'),
|
|
84
|
+
fileName: zod_1.z.string(),
|
|
85
|
+
fileUrl: zod_1.z.string(),
|
|
86
|
+
avSyncMsec: zod_1.z.number().int().nonnegative(),
|
|
87
|
+
forceStereo: common_1.booleanSchema,
|
|
88
|
+
}),
|
|
89
|
+
])
|
|
90
|
+
.nullable(),
|
|
91
|
+
status: zod_1.z.object({
|
|
92
|
+
led: zod_1.z.boolean(),
|
|
93
|
+
port: zod_1.z.number().nullable(),
|
|
31
94
|
}),
|
|
32
|
-
]);
|
|
33
|
-
exports.streamInputTypeSchema = zod_1.z.union([zod_1.z.literal('CSw'), zod_1.z.literal('CRS'), zod_1.z.literal('RTSP_URL')]);
|
|
34
|
-
exports.streamingProtocolTypeSchema = zod_1.z.union([zod_1.z.literal('RTMP'), zod_1.z.literal('RTMPS'), zod_1.z.literal('HLS_PUSH')]);
|
|
35
|
-
exports.videoCodecSchema = zod_1.z.union([zod_1.z.literal('h264'), zod_1.z.literal('h265'), zod_1.z.literal('av1')]);
|
|
36
|
-
exports.overlaysSchema = zod_1.z.union([
|
|
37
|
-
zod_1.z.literal('all'),
|
|
38
|
-
zod_1.z.literal('text'),
|
|
39
|
-
zod_1.z.literal('image'),
|
|
40
|
-
zod_1.z.literal('application'),
|
|
41
|
-
zod_1.z.literal(''),
|
|
42
|
-
zod_1.z.literal('off'),
|
|
43
|
-
]);
|
|
44
|
-
exports.streamDelaySchema = zod_1.z.object({
|
|
45
|
-
value: zod_1.z.number().int(),
|
|
46
|
-
unit: zod_1.z.union([zod_1.z.literal('seconds'), zod_1.z.literal('minutes'), zod_1.z.literal('hours')]),
|
|
47
95
|
});
|
|
48
96
|
exports.internalVapixParametersSchema = common_1.bitrateVapixParamsSchema.extend({
|
|
49
97
|
camera: zod_1.z.string(),
|
|
@@ -51,7 +99,7 @@ exports.internalVapixParametersSchema = common_1.bitrateVapixParamsSchema.extend
|
|
|
51
99
|
fps: zod_1.z.number().int(),
|
|
52
100
|
compression: zod_1.z.number().int(),
|
|
53
101
|
govLength: zod_1.z.number().int(),
|
|
54
|
-
videoCodec:
|
|
102
|
+
videoCodec: zod_1.z.union([zod_1.z.literal('h264'), zod_1.z.literal('h265'), zod_1.z.literal('av1')]),
|
|
55
103
|
h264Profile: common_1.h264ProfileSchema.optional(),
|
|
56
104
|
audio: common_1.booleanSchema,
|
|
57
105
|
nbrOfChannels: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]).optional(),
|
|
@@ -66,37 +114,3 @@ exports.internalVapixParametersSchema = common_1.bitrateVapixParamsSchema.extend
|
|
|
66
114
|
])
|
|
67
115
|
.optional(),
|
|
68
116
|
});
|
|
69
|
-
exports.streamVideoSchema = zod_1.z.object({
|
|
70
|
-
inputType: exports.streamInputTypeSchema,
|
|
71
|
-
sourceUrl: zod_1.z.string().optional(),
|
|
72
|
-
internalVapixParameters: zod_1.z.string(),
|
|
73
|
-
userVapixParameters: zod_1.z.string(),
|
|
74
|
-
streamingProtocol: exports.streamingProtocolTypeSchema,
|
|
75
|
-
streamDelay: exports.streamDelaySchema.optional(),
|
|
76
|
-
});
|
|
77
|
-
exports.streamAudioSchema = zod_1.z.discriminatedUnion('source', [
|
|
78
|
-
zod_1.z.object({
|
|
79
|
-
source: zod_1.z.literal('none'),
|
|
80
|
-
}),
|
|
81
|
-
zod_1.z.object({ source: zod_1.z.literal('microphone'), audioChannelNbr: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]) }),
|
|
82
|
-
zod_1.z.object({
|
|
83
|
-
source: zod_1.z.literal('file'),
|
|
84
|
-
fileName: zod_1.z.string(),
|
|
85
|
-
filePath: zod_1.z.string(),
|
|
86
|
-
}),
|
|
87
|
-
zod_1.z.object({
|
|
88
|
-
source: zod_1.z.literal('url'),
|
|
89
|
-
fileName: zod_1.z.string(),
|
|
90
|
-
fileUrl: zod_1.z.string(),
|
|
91
|
-
avSyncMsec: zod_1.z.number().int().nonnegative(),
|
|
92
|
-
}),
|
|
93
|
-
]);
|
|
94
|
-
exports.streamCommonSchema = zod_1.z.object({
|
|
95
|
-
id: zod_1.z.number(),
|
|
96
|
-
enabled: zod_1.z.boolean(),
|
|
97
|
-
active: zod_1.z.boolean(),
|
|
98
|
-
title: zod_1.z.string(),
|
|
99
|
-
trigger: exports.streamTriggerSchema,
|
|
100
|
-
video: exports.streamVideoSchema,
|
|
101
|
-
audio: exports.streamAudioSchema,
|
|
102
|
-
});
|