camstreamerlib 4.0.0-beta.115 → 4.0.0-beta.117
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 +1235 -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 +8759 -2681
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +39 -55
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +197 -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 +238 -341
- package/cjs/types/CamStreamerAPI/streamCommonTypes.js +92 -75
- package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +7585 -0
- package/cjs/types/CamStreamerAPI/streamsSchema.js +63 -0
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +173 -45
- package/cjs/types/CamStreamerAPI/windySchema.js +1 -1
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +173 -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 +91 -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 +1235 -485
- package/types/VapixAPI.d.ts +1 -1
- package/types/errors/errors.d.ts +2 -2
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +8759 -2681
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +197 -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 +238 -341
- package/types/types/CamStreamerAPI/streamsSchema.d.ts +7585 -0
- package/types/types/CamStreamerAPI/windySchema.d.ts +173 -45
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +173 -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
|
@@ -3,127 +3,111 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.audioLocalSchema = exports.audioUrlSchema = exports.audioFileListSchema = exports.audioFileSchema = exports.storageListSchema = exports.audioFileStorageTypeSchema = exports.AudioType = exports.isYoutubeRtmpStream = exports.isGameChangerStream = exports.isMicrosoftStream = exports.isMicrosoftAzureStream = exports.isIbmStream = exports.isDailymotionStream = exports.isWowzaStream = exports.isHlsPushStream = exports.isHlsPullStream = exports.isDaCastStream = exports.isSrtStream = exports.isChurchStream = exports.isTwitchStream = exports.isVimeoStream = exports.isYouTubeStream = exports.isWindyStream = exports.isSdCardStream = exports.isRtmpStream = exports.isMpegDvbStream = exports.isFacebookStream = exports.streamListSchema = exports.streamSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const facebookSchema_1 = require("./facebookSchema");
|
|
6
|
-
const mpegDvbSchema_1 = require("./mpegDvbSchema");
|
|
7
|
-
const rtmpSchema_1 = require("./rtmpSchema");
|
|
8
|
-
const sdCardSchema_1 = require("./sdCardSchema");
|
|
9
6
|
const windySchema_1 = require("./windySchema");
|
|
10
7
|
const youtubeSchema_1 = require("./youtubeSchema");
|
|
11
|
-
const
|
|
12
|
-
const twitchSchema_1 = require("./twitchSchema");
|
|
13
|
-
const churchSchema_1 = require("./churchSchema");
|
|
14
|
-
const srtSchema_1 = require("./srtSchema");
|
|
15
|
-
const daCastSchema_1 = require("./daCastSchema");
|
|
16
|
-
const hlsPullSchema_1 = require("./hlsPullSchema");
|
|
17
|
-
const hlsPushSchema_1 = require("./hlsPushSchema");
|
|
18
|
-
const wowzaSchema_1 = require("./wowzaSchema");
|
|
19
|
-
const dailymotionSchema_1 = require("./dailymotionSchema");
|
|
20
|
-
const ibmSchema_1 = require("./ibmSchema");
|
|
21
|
-
const microsoftAzureSchema_1 = require("./microsoftAzureSchema");
|
|
22
|
-
const microsoftStreamSchema_1 = require("./microsoftStreamSchema");
|
|
23
|
-
const gameChangerSchema_1 = require("./gameChangerSchema");
|
|
8
|
+
const streamsSchema_1 = require("./streamsSchema");
|
|
24
9
|
const common_1 = require("../common");
|
|
25
|
-
|
|
26
|
-
exports.streamSchema = zod_1.z.discriminatedUnion('type', [
|
|
10
|
+
exports.streamSchema = zod_1.z.discriminatedUnion('platform', [
|
|
27
11
|
facebookSchema_1.facebookSchema,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
12
|
+
streamsSchema_1.mpegDvbSchema,
|
|
13
|
+
streamsSchema_1.rtmpSchema,
|
|
14
|
+
streamsSchema_1.sdCardSchema,
|
|
31
15
|
windySchema_1.windySchema,
|
|
32
16
|
youtubeSchema_1.youtubeSchema,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
17
|
+
streamsSchema_1.vimeoSchema,
|
|
18
|
+
streamsSchema_1.twitchSchema,
|
|
19
|
+
streamsSchema_1.churchSchema,
|
|
20
|
+
streamsSchema_1.srtSchema,
|
|
21
|
+
streamsSchema_1.daCastSchema,
|
|
22
|
+
streamsSchema_1.hlsPullSchema,
|
|
23
|
+
streamsSchema_1.hlsPushSchema,
|
|
24
|
+
streamsSchema_1.wowzaSchema,
|
|
25
|
+
streamsSchema_1.dailymotionSchema,
|
|
26
|
+
streamsSchema_1.ibmSchema,
|
|
27
|
+
streamsSchema_1.microsoftAzureSchema,
|
|
28
|
+
streamsSchema_1.microsoftStreamSchema,
|
|
29
|
+
streamsSchema_1.gameChangerSchema,
|
|
30
|
+
streamsSchema_1.youtubeRtmpSchema,
|
|
47
31
|
]);
|
|
48
32
|
exports.streamListSchema = zod_1.z.object({ streamList: zod_1.z.array(exports.streamSchema) });
|
|
49
33
|
const isFacebookStream = (stream) => {
|
|
50
|
-
return stream.
|
|
34
|
+
return stream.platform === 'facebook';
|
|
51
35
|
};
|
|
52
36
|
exports.isFacebookStream = isFacebookStream;
|
|
53
37
|
const isMpegDvbStream = (stream) => {
|
|
54
|
-
return stream.
|
|
38
|
+
return stream.platform === 'mpeg_dvb';
|
|
55
39
|
};
|
|
56
40
|
exports.isMpegDvbStream = isMpegDvbStream;
|
|
57
41
|
const isRtmpStream = (stream) => {
|
|
58
|
-
return stream.
|
|
42
|
+
return stream.platform === 'rtmp';
|
|
59
43
|
};
|
|
60
44
|
exports.isRtmpStream = isRtmpStream;
|
|
61
45
|
const isSdCardStream = (stream) => {
|
|
62
|
-
return stream.
|
|
46
|
+
return stream.platform === 'sd_card';
|
|
63
47
|
};
|
|
64
48
|
exports.isSdCardStream = isSdCardStream;
|
|
65
49
|
const isWindyStream = (stream) => {
|
|
66
|
-
return stream.
|
|
50
|
+
return stream.platform === 'windy';
|
|
67
51
|
};
|
|
68
52
|
exports.isWindyStream = isWindyStream;
|
|
69
53
|
const isYouTubeStream = (stream) => {
|
|
70
|
-
return stream.
|
|
54
|
+
return stream.platform === 'youtube';
|
|
71
55
|
};
|
|
72
56
|
exports.isYouTubeStream = isYouTubeStream;
|
|
73
57
|
const isVimeoStream = (stream) => {
|
|
74
|
-
return stream.
|
|
58
|
+
return stream.platform === 'vimeo';
|
|
75
59
|
};
|
|
76
60
|
exports.isVimeoStream = isVimeoStream;
|
|
77
61
|
const isTwitchStream = (stream) => {
|
|
78
|
-
return stream.
|
|
62
|
+
return stream.platform === 'twitch';
|
|
79
63
|
};
|
|
80
64
|
exports.isTwitchStream = isTwitchStream;
|
|
81
65
|
const isChurchStream = (stream) => {
|
|
82
|
-
return stream.
|
|
66
|
+
return stream.platform === 'church';
|
|
83
67
|
};
|
|
84
68
|
exports.isChurchStream = isChurchStream;
|
|
85
69
|
const isSrtStream = (stream) => {
|
|
86
|
-
return stream.
|
|
70
|
+
return stream.platform === 'srt';
|
|
87
71
|
};
|
|
88
72
|
exports.isSrtStream = isSrtStream;
|
|
89
73
|
const isDaCastStream = (stream) => {
|
|
90
|
-
return stream.
|
|
74
|
+
return stream.platform === 'da_cast';
|
|
91
75
|
};
|
|
92
76
|
exports.isDaCastStream = isDaCastStream;
|
|
93
77
|
const isHlsPullStream = (stream) => {
|
|
94
|
-
return stream.
|
|
78
|
+
return stream.platform === 'hls_pull';
|
|
95
79
|
};
|
|
96
80
|
exports.isHlsPullStream = isHlsPullStream;
|
|
97
81
|
const isHlsPushStream = (stream) => {
|
|
98
|
-
return stream.
|
|
82
|
+
return stream.platform === 'hls_push';
|
|
99
83
|
};
|
|
100
84
|
exports.isHlsPushStream = isHlsPushStream;
|
|
101
85
|
const isWowzaStream = (stream) => {
|
|
102
|
-
return stream.
|
|
86
|
+
return stream.platform === 'wowza';
|
|
103
87
|
};
|
|
104
88
|
exports.isWowzaStream = isWowzaStream;
|
|
105
89
|
const isDailymotionStream = (stream) => {
|
|
106
|
-
return stream.
|
|
90
|
+
return stream.platform === 'dailymotion';
|
|
107
91
|
};
|
|
108
92
|
exports.isDailymotionStream = isDailymotionStream;
|
|
109
93
|
const isIbmStream = (stream) => {
|
|
110
|
-
return stream.
|
|
94
|
+
return stream.platform === 'ibm';
|
|
111
95
|
};
|
|
112
96
|
exports.isIbmStream = isIbmStream;
|
|
113
97
|
const isMicrosoftAzureStream = (stream) => {
|
|
114
|
-
return stream.
|
|
98
|
+
return stream.platform === 'microsoft_azure';
|
|
115
99
|
};
|
|
116
100
|
exports.isMicrosoftAzureStream = isMicrosoftAzureStream;
|
|
117
101
|
const isMicrosoftStream = (stream) => {
|
|
118
|
-
return stream.
|
|
102
|
+
return stream.platform === 'microsoft_stream';
|
|
119
103
|
};
|
|
120
104
|
exports.isMicrosoftStream = isMicrosoftStream;
|
|
121
105
|
const isGameChangerStream = (stream) => {
|
|
122
|
-
return stream.
|
|
106
|
+
return stream.platform === 'game_changer';
|
|
123
107
|
};
|
|
124
108
|
exports.isGameChangerStream = isGameChangerStream;
|
|
125
109
|
const isYoutubeRtmpStream = (stream) => {
|
|
126
|
-
return stream.
|
|
110
|
+
return stream.platform === 'youtube_rtmp';
|
|
127
111
|
};
|
|
128
112
|
exports.isYoutubeRtmpStream = isYoutubeRtmpStream;
|
|
129
113
|
var AudioType;
|
|
@@ -1,32 +1,51 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
|
|
2
|
+
declare const timelinePostSchema: z.ZodObject<{
|
|
3
|
+
postLocation: z.ZodLiteral<"timeline">;
|
|
4
|
+
streamPrivacy: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"friends">, z.ZodLiteral<"only_me">]>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
postLocation: "timeline";
|
|
7
|
+
streamPrivacy: "public" | "friends" | "only_me";
|
|
8
|
+
}, {
|
|
9
|
+
postLocation: "timeline";
|
|
10
|
+
streamPrivacy: "public" | "friends" | "only_me";
|
|
11
|
+
}>;
|
|
12
|
+
export type TTimeLinePost = z.infer<typeof timelinePostSchema>;
|
|
13
|
+
export type TFacebookStreamPrivacy = TTimeLinePost['streamPrivacy'];
|
|
14
|
+
declare const pagePostSchema: z.ZodObject<{
|
|
15
|
+
postLocation: z.ZodLiteral<"page">;
|
|
16
|
+
page: z.ZodString;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
postLocation: "page";
|
|
19
|
+
page: string;
|
|
20
|
+
}, {
|
|
21
|
+
postLocation: "page";
|
|
22
|
+
page: string;
|
|
23
|
+
}>;
|
|
24
|
+
export type TPagePost = z.infer<typeof pagePostSchema>;
|
|
3
25
|
export declare const facebookSchema: z.ZodObject<{
|
|
4
|
-
|
|
26
|
+
streamId: z.ZodString;
|
|
5
27
|
enabled: z.ZodBoolean;
|
|
6
28
|
active: z.ZodBoolean;
|
|
7
29
|
title: z.ZodString;
|
|
8
30
|
trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
9
31
|
type: z.ZodLiteral<"manual">;
|
|
10
|
-
ioPort: z.ZodNullable<z.
|
|
32
|
+
ioPort: z.ZodNullable<z.ZodNumber>;
|
|
11
33
|
}, "strip", z.ZodTypeAny, {
|
|
12
34
|
type: "manual";
|
|
13
|
-
ioPort:
|
|
35
|
+
ioPort: number | null;
|
|
14
36
|
}, {
|
|
15
37
|
type: "manual";
|
|
16
|
-
ioPort:
|
|
38
|
+
ioPort: number | null;
|
|
17
39
|
}>, z.ZodObject<{
|
|
18
40
|
type: z.ZodLiteral<"onetime">;
|
|
19
41
|
startTime: z.ZodNumber;
|
|
20
42
|
stopTime: z.ZodNumber;
|
|
21
|
-
ioPort: z.ZodNullable<z.ZodString>;
|
|
22
43
|
}, "strip", z.ZodTypeAny, {
|
|
23
44
|
type: "onetime";
|
|
24
|
-
ioPort: string | null;
|
|
25
45
|
startTime: number;
|
|
26
46
|
stopTime: number;
|
|
27
47
|
}, {
|
|
28
48
|
type: "onetime";
|
|
29
|
-
ioPort: string | null;
|
|
30
49
|
startTime: number;
|
|
31
50
|
stopTime: number;
|
|
32
51
|
}>, z.ZodObject<{
|
|
@@ -102,11 +121,57 @@ export declare const facebookSchema: z.ZodObject<{
|
|
|
102
121
|
}[];
|
|
103
122
|
}>]>;
|
|
104
123
|
video: z.ZodObject<{
|
|
105
|
-
|
|
106
|
-
|
|
124
|
+
output: z.ZodDiscriminatedUnion<"callApi", [z.ZodObject<{
|
|
125
|
+
type: z.ZodUnion<[z.ZodLiteral<"video">, z.ZodLiteral<"images">]>;
|
|
126
|
+
callApi: z.ZodLiteral<false>;
|
|
127
|
+
url: z.ZodString;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
type: "video" | "images";
|
|
130
|
+
url: string;
|
|
131
|
+
callApi: false;
|
|
132
|
+
}, {
|
|
133
|
+
type: "video" | "images";
|
|
134
|
+
url: string;
|
|
135
|
+
callApi: false;
|
|
136
|
+
}>, z.ZodObject<{
|
|
137
|
+
type: z.ZodLiteral<"video">;
|
|
138
|
+
callApi: z.ZodLiteral<true>;
|
|
139
|
+
prepareAheadS: z.ZodNumber;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
type: "video";
|
|
142
|
+
callApi: true;
|
|
143
|
+
prepareAheadS: number;
|
|
144
|
+
}, {
|
|
145
|
+
type: "video";
|
|
146
|
+
callApi: true;
|
|
147
|
+
prepareAheadS: number;
|
|
148
|
+
}>]>;
|
|
149
|
+
outputParameters: z.ZodString;
|
|
150
|
+
input: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
151
|
+
type: z.ZodLiteral<"RTSP_URL">;
|
|
152
|
+
url: z.ZodString;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
type: "RTSP_URL";
|
|
155
|
+
url: string;
|
|
156
|
+
}, {
|
|
157
|
+
type: "RTSP_URL";
|
|
158
|
+
url: string;
|
|
159
|
+
}>, z.ZodObject<{
|
|
160
|
+
type: z.ZodLiteral<"CSw">;
|
|
161
|
+
}, "strip", z.ZodTypeAny, {
|
|
162
|
+
type: "CSw";
|
|
163
|
+
}, {
|
|
164
|
+
type: "CSw";
|
|
165
|
+
}>, z.ZodObject<{
|
|
166
|
+
type: z.ZodLiteral<"CRS">;
|
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
|
168
|
+
type: "CRS";
|
|
169
|
+
}, {
|
|
170
|
+
type: "CRS";
|
|
171
|
+
}>]>;
|
|
172
|
+
streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
|
|
107
173
|
internalVapixParameters: z.ZodString;
|
|
108
174
|
userVapixParameters: z.ZodString;
|
|
109
|
-
streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
|
|
110
175
|
streamDelay: z.ZodOptional<z.ZodObject<{
|
|
111
176
|
value: z.ZodNumber;
|
|
112
177
|
unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
|
|
@@ -118,51 +183,83 @@ export declare const facebookSchema: z.ZodObject<{
|
|
|
118
183
|
unit: "seconds" | "minutes" | "hours";
|
|
119
184
|
}>>;
|
|
120
185
|
}, "strip", z.ZodTypeAny, {
|
|
121
|
-
|
|
186
|
+
output: {
|
|
187
|
+
type: "video" | "images";
|
|
188
|
+
url: string;
|
|
189
|
+
callApi: false;
|
|
190
|
+
} | {
|
|
191
|
+
type: "video";
|
|
192
|
+
callApi: true;
|
|
193
|
+
prepareAheadS: number;
|
|
194
|
+
};
|
|
195
|
+
outputParameters: string;
|
|
196
|
+
input: {
|
|
197
|
+
type: "RTSP_URL";
|
|
198
|
+
url: string;
|
|
199
|
+
} | {
|
|
200
|
+
type: "CSw";
|
|
201
|
+
} | {
|
|
202
|
+
type: "CRS";
|
|
203
|
+
};
|
|
204
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
122
205
|
internalVapixParameters: string;
|
|
123
206
|
userVapixParameters: string;
|
|
124
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
125
|
-
sourceUrl?: string | undefined;
|
|
126
207
|
streamDelay?: {
|
|
127
208
|
value: number;
|
|
128
209
|
unit: "seconds" | "minutes" | "hours";
|
|
129
210
|
} | undefined;
|
|
130
211
|
}, {
|
|
131
|
-
|
|
212
|
+
output: {
|
|
213
|
+
type: "video" | "images";
|
|
214
|
+
url: string;
|
|
215
|
+
callApi: false;
|
|
216
|
+
} | {
|
|
217
|
+
type: "video";
|
|
218
|
+
callApi: true;
|
|
219
|
+
prepareAheadS: number;
|
|
220
|
+
};
|
|
221
|
+
outputParameters: string;
|
|
222
|
+
input: {
|
|
223
|
+
type: "RTSP_URL";
|
|
224
|
+
url: string;
|
|
225
|
+
} | {
|
|
226
|
+
type: "CSw";
|
|
227
|
+
} | {
|
|
228
|
+
type: "CRS";
|
|
229
|
+
};
|
|
230
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
132
231
|
internalVapixParameters: string;
|
|
133
232
|
userVapixParameters: string;
|
|
134
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
135
|
-
sourceUrl?: string | undefined;
|
|
136
233
|
streamDelay?: {
|
|
137
234
|
value: number;
|
|
138
235
|
unit: "seconds" | "minutes" | "hours";
|
|
139
236
|
} | undefined;
|
|
140
237
|
}>;
|
|
141
|
-
audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
|
|
142
|
-
source: z.ZodLiteral<"none">;
|
|
143
|
-
}, "strip", z.ZodTypeAny, {
|
|
144
|
-
source: "none";
|
|
145
|
-
}, {
|
|
146
|
-
source: "none";
|
|
147
|
-
}>, z.ZodObject<{
|
|
238
|
+
audio: z.ZodNullable<z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
|
|
148
239
|
source: z.ZodLiteral<"microphone">;
|
|
149
240
|
audioChannelNbr: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>;
|
|
241
|
+
forceStereo: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
150
242
|
}, "strip", z.ZodTypeAny, {
|
|
151
243
|
source: "microphone";
|
|
152
244
|
audioChannelNbr: 1 | 2;
|
|
245
|
+
forceStereo: 0 | 1;
|
|
153
246
|
}, {
|
|
154
247
|
source: "microphone";
|
|
155
248
|
audioChannelNbr: 1 | 2;
|
|
249
|
+
forceStereo: 0 | 1;
|
|
156
250
|
}>, z.ZodObject<{
|
|
157
251
|
source: z.ZodLiteral<"file">;
|
|
158
252
|
fileName: z.ZodString;
|
|
159
253
|
filePath: z.ZodString;
|
|
254
|
+
forceStereo: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
160
255
|
}, "strip", z.ZodTypeAny, {
|
|
161
256
|
source: "file";
|
|
257
|
+
forceStereo: 0 | 1;
|
|
162
258
|
fileName: string;
|
|
163
259
|
filePath: string;
|
|
164
260
|
}, {
|
|
165
261
|
source: "file";
|
|
262
|
+
forceStereo: 0 | 1;
|
|
166
263
|
fileName: string;
|
|
167
264
|
filePath: string;
|
|
168
265
|
}>, z.ZodObject<{
|
|
@@ -170,24 +267,34 @@ export declare const facebookSchema: z.ZodObject<{
|
|
|
170
267
|
fileName: z.ZodString;
|
|
171
268
|
fileUrl: z.ZodString;
|
|
172
269
|
avSyncMsec: z.ZodNumber;
|
|
270
|
+
forceStereo: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
173
271
|
}, "strip", z.ZodTypeAny, {
|
|
174
272
|
source: "url";
|
|
273
|
+
forceStereo: 0 | 1;
|
|
175
274
|
fileName: string;
|
|
176
275
|
fileUrl: string;
|
|
177
276
|
avSyncMsec: number;
|
|
178
277
|
}, {
|
|
179
278
|
source: "url";
|
|
279
|
+
forceStereo: 0 | 1;
|
|
180
280
|
fileName: string;
|
|
181
281
|
fileUrl: string;
|
|
182
282
|
avSyncMsec: number;
|
|
183
|
-
}>]
|
|
283
|
+
}>]>>;
|
|
284
|
+
status: z.ZodObject<{
|
|
285
|
+
led: z.ZodBoolean;
|
|
286
|
+
port: z.ZodNullable<z.ZodNumber>;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
port: number | null;
|
|
289
|
+
led: boolean;
|
|
290
|
+
}, {
|
|
291
|
+
port: number | null;
|
|
292
|
+
led: boolean;
|
|
293
|
+
}>;
|
|
184
294
|
} & {
|
|
185
|
-
|
|
295
|
+
platform: z.ZodLiteral<"facebook">;
|
|
186
296
|
description: z.ZodOptional<z.ZodString>;
|
|
187
297
|
deleteAfterEnd: z.ZodBoolean;
|
|
188
|
-
saveToSdCard: z.ZodBoolean;
|
|
189
|
-
statusCameraLed: z.ZodBoolean;
|
|
190
|
-
statusCameraOutput: z.ZodNullable<z.ZodString>;
|
|
191
298
|
countdown: z.ZodBoolean;
|
|
192
299
|
post: z.ZodDiscriminatedUnion<"postLocation", [z.ZodObject<{
|
|
193
300
|
postLocation: z.ZodLiteral<"timeline">;
|
|
@@ -216,43 +323,62 @@ export declare const facebookSchema: z.ZodObject<{
|
|
|
216
323
|
postLocation: "page";
|
|
217
324
|
page: string;
|
|
218
325
|
};
|
|
219
|
-
|
|
326
|
+
status: {
|
|
327
|
+
port: number | null;
|
|
328
|
+
led: boolean;
|
|
329
|
+
};
|
|
220
330
|
audio: {
|
|
221
|
-
source: "none";
|
|
222
|
-
} | {
|
|
223
331
|
source: "microphone";
|
|
224
332
|
audioChannelNbr: 1 | 2;
|
|
333
|
+
forceStereo: 0 | 1;
|
|
225
334
|
} | {
|
|
226
335
|
source: "file";
|
|
336
|
+
forceStereo: 0 | 1;
|
|
227
337
|
fileName: string;
|
|
228
338
|
filePath: string;
|
|
229
339
|
} | {
|
|
230
340
|
source: "url";
|
|
341
|
+
forceStereo: 0 | 1;
|
|
231
342
|
fileName: string;
|
|
232
343
|
fileUrl: string;
|
|
233
344
|
avSyncMsec: number;
|
|
234
|
-
};
|
|
345
|
+
} | null;
|
|
235
346
|
video: {
|
|
236
|
-
|
|
347
|
+
output: {
|
|
348
|
+
type: "video" | "images";
|
|
349
|
+
url: string;
|
|
350
|
+
callApi: false;
|
|
351
|
+
} | {
|
|
352
|
+
type: "video";
|
|
353
|
+
callApi: true;
|
|
354
|
+
prepareAheadS: number;
|
|
355
|
+
};
|
|
356
|
+
outputParameters: string;
|
|
357
|
+
input: {
|
|
358
|
+
type: "RTSP_URL";
|
|
359
|
+
url: string;
|
|
360
|
+
} | {
|
|
361
|
+
type: "CSw";
|
|
362
|
+
} | {
|
|
363
|
+
type: "CRS";
|
|
364
|
+
};
|
|
365
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
237
366
|
internalVapixParameters: string;
|
|
238
367
|
userVapixParameters: string;
|
|
239
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
240
|
-
sourceUrl?: string | undefined;
|
|
241
368
|
streamDelay?: {
|
|
242
369
|
value: number;
|
|
243
370
|
unit: "seconds" | "minutes" | "hours";
|
|
244
371
|
} | undefined;
|
|
245
372
|
};
|
|
246
373
|
enabled: boolean;
|
|
247
|
-
|
|
374
|
+
streamId: string;
|
|
248
375
|
active: boolean;
|
|
249
376
|
title: string;
|
|
250
377
|
trigger: {
|
|
251
378
|
type: "manual";
|
|
252
|
-
ioPort:
|
|
379
|
+
ioPort: number | null;
|
|
253
380
|
} | {
|
|
254
381
|
type: "onetime";
|
|
255
|
-
ioPort: string | null;
|
|
256
382
|
startTime: number;
|
|
257
383
|
stopTime: number;
|
|
258
384
|
} | {
|
|
@@ -269,10 +395,8 @@ export declare const facebookSchema: z.ZodObject<{
|
|
|
269
395
|
isActive: boolean;
|
|
270
396
|
}[];
|
|
271
397
|
};
|
|
398
|
+
platform: "facebook";
|
|
272
399
|
deleteAfterEnd: boolean;
|
|
273
|
-
saveToSdCard: boolean;
|
|
274
|
-
statusCameraLed: boolean;
|
|
275
|
-
statusCameraOutput: string | null;
|
|
276
400
|
countdown: boolean;
|
|
277
401
|
description?: string | undefined;
|
|
278
402
|
}, {
|
|
@@ -283,43 +407,62 @@ export declare const facebookSchema: z.ZodObject<{
|
|
|
283
407
|
postLocation: "page";
|
|
284
408
|
page: string;
|
|
285
409
|
};
|
|
286
|
-
|
|
410
|
+
status: {
|
|
411
|
+
port: number | null;
|
|
412
|
+
led: boolean;
|
|
413
|
+
};
|
|
287
414
|
audio: {
|
|
288
|
-
source: "none";
|
|
289
|
-
} | {
|
|
290
415
|
source: "microphone";
|
|
291
416
|
audioChannelNbr: 1 | 2;
|
|
417
|
+
forceStereo: 0 | 1;
|
|
292
418
|
} | {
|
|
293
419
|
source: "file";
|
|
420
|
+
forceStereo: 0 | 1;
|
|
294
421
|
fileName: string;
|
|
295
422
|
filePath: string;
|
|
296
423
|
} | {
|
|
297
424
|
source: "url";
|
|
425
|
+
forceStereo: 0 | 1;
|
|
298
426
|
fileName: string;
|
|
299
427
|
fileUrl: string;
|
|
300
428
|
avSyncMsec: number;
|
|
301
|
-
};
|
|
429
|
+
} | null;
|
|
302
430
|
video: {
|
|
303
|
-
|
|
431
|
+
output: {
|
|
432
|
+
type: "video" | "images";
|
|
433
|
+
url: string;
|
|
434
|
+
callApi: false;
|
|
435
|
+
} | {
|
|
436
|
+
type: "video";
|
|
437
|
+
callApi: true;
|
|
438
|
+
prepareAheadS: number;
|
|
439
|
+
};
|
|
440
|
+
outputParameters: string;
|
|
441
|
+
input: {
|
|
442
|
+
type: "RTSP_URL";
|
|
443
|
+
url: string;
|
|
444
|
+
} | {
|
|
445
|
+
type: "CSw";
|
|
446
|
+
} | {
|
|
447
|
+
type: "CRS";
|
|
448
|
+
};
|
|
449
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
304
450
|
internalVapixParameters: string;
|
|
305
451
|
userVapixParameters: string;
|
|
306
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
307
|
-
sourceUrl?: string | undefined;
|
|
308
452
|
streamDelay?: {
|
|
309
453
|
value: number;
|
|
310
454
|
unit: "seconds" | "minutes" | "hours";
|
|
311
455
|
} | undefined;
|
|
312
456
|
};
|
|
313
457
|
enabled: boolean;
|
|
314
|
-
|
|
458
|
+
streamId: string;
|
|
315
459
|
active: boolean;
|
|
316
460
|
title: string;
|
|
317
461
|
trigger: {
|
|
318
462
|
type: "manual";
|
|
319
|
-
ioPort:
|
|
463
|
+
ioPort: number | null;
|
|
320
464
|
} | {
|
|
321
465
|
type: "onetime";
|
|
322
|
-
ioPort: string | null;
|
|
323
466
|
startTime: number;
|
|
324
467
|
stopTime: number;
|
|
325
468
|
} | {
|
|
@@ -336,10 +479,9 @@ export declare const facebookSchema: z.ZodObject<{
|
|
|
336
479
|
isActive: boolean;
|
|
337
480
|
}[];
|
|
338
481
|
};
|
|
482
|
+
platform: "facebook";
|
|
339
483
|
deleteAfterEnd: boolean;
|
|
340
|
-
saveToSdCard: boolean;
|
|
341
|
-
statusCameraLed: boolean;
|
|
342
|
-
statusCameraOutput: string | null;
|
|
343
484
|
countdown: boolean;
|
|
344
485
|
description?: string | undefined;
|
|
345
486
|
}>;
|
|
487
|
+
export {};
|
|
@@ -3,25 +3,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.facebookSchema =
|
|
6
|
+
exports.facebookSchema = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
const streamCommonTypes_1 = require("./streamCommonTypes");
|
|
9
|
-
|
|
10
|
-
const timelinePost = zod_1.default.object({
|
|
9
|
+
const timelinePostSchema = zod_1.default.object({
|
|
11
10
|
postLocation: zod_1.default.literal('timeline'),
|
|
12
|
-
streamPrivacy:
|
|
11
|
+
streamPrivacy: zod_1.default.union([zod_1.default.literal('public'), zod_1.default.literal('friends'), zod_1.default.literal('only_me')]),
|
|
13
12
|
});
|
|
14
|
-
const
|
|
13
|
+
const pagePostSchema = zod_1.default.object({
|
|
15
14
|
postLocation: zod_1.default.literal('page'),
|
|
16
15
|
page: zod_1.default.string(),
|
|
17
16
|
});
|
|
18
17
|
exports.facebookSchema = streamCommonTypes_1.streamCommonSchema.extend({
|
|
19
|
-
|
|
18
|
+
platform: zod_1.default.literal('facebook'),
|
|
20
19
|
description: zod_1.default.string().optional(),
|
|
21
20
|
deleteAfterEnd: zod_1.default.boolean(),
|
|
22
|
-
saveToSdCard: zod_1.default.boolean(),
|
|
23
|
-
statusCameraLed: zod_1.default.boolean(),
|
|
24
|
-
statusCameraOutput: zod_1.default.string().nullable(),
|
|
25
21
|
countdown: zod_1.default.boolean(),
|
|
26
|
-
post: zod_1.default.discriminatedUnion('postLocation', [
|
|
22
|
+
post: zod_1.default.discriminatedUnion('postLocation', [timelinePostSchema, pagePostSchema]),
|
|
27
23
|
});
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
export * from './CamStreamerAPI';
|
|
2
2
|
export * from './streamCommonTypes';
|
|
3
3
|
export * from './facebookSchema';
|
|
4
|
-
export * from './mpegDvbSchema';
|
|
5
|
-
export * from './rtmpSchema';
|
|
6
|
-
export * from './gameChangerSchema';
|
|
7
|
-
export * from './sdCardSchema';
|
|
8
4
|
export * from './windySchema';
|
|
9
5
|
export * from './youtubeSchema';
|
|
10
|
-
export * from './
|
|
6
|
+
export * from './streamsSchema';
|
|
@@ -17,10 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./CamStreamerAPI"), exports);
|
|
18
18
|
__exportStar(require("./streamCommonTypes"), exports);
|
|
19
19
|
__exportStar(require("./facebookSchema"), exports);
|
|
20
|
-
__exportStar(require("./mpegDvbSchema"), exports);
|
|
21
|
-
__exportStar(require("./rtmpSchema"), exports);
|
|
22
|
-
__exportStar(require("./gameChangerSchema"), exports);
|
|
23
|
-
__exportStar(require("./sdCardSchema"), exports);
|
|
24
20
|
__exportStar(require("./windySchema"), exports);
|
|
25
21
|
__exportStar(require("./youtubeSchema"), exports);
|
|
26
|
-
__exportStar(require("./
|
|
22
|
+
__exportStar(require("./streamsSchema"), exports);
|