camstreamerlib 4.0.0-beta.114 → 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 -503
- 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 +8086 -2769
- 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 -503
- package/types/VapixAPI.d.ts +1 -1
- package/types/errors/errors.d.ts +2 -2
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +8086 -2769
- 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 -341
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +0 -27
- 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 -21
- 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 -341
- 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
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { streamCommonSchema } from './streamCommonTypes';
|
|
3
|
+
export const commonRtmpSchema = streamCommonSchema.extend({
|
|
4
|
+
streamKey: z.string(),
|
|
5
|
+
streamIdentifier: z.string().optional(),
|
|
6
|
+
});
|
|
7
|
+
export const churchSchema = streamCommonSchema.extend({
|
|
8
|
+
platform: z.literal('church'),
|
|
9
|
+
});
|
|
10
|
+
export const daCastSchema = streamCommonSchema.extend({
|
|
11
|
+
platform: z.literal('da_cast'),
|
|
12
|
+
});
|
|
13
|
+
export const dailymotionSchema = streamCommonSchema.extend({
|
|
14
|
+
platform: z.literal('dailymotion'),
|
|
15
|
+
});
|
|
16
|
+
export const gameChangerSchema = commonRtmpSchema.extend({
|
|
17
|
+
platform: z.literal('game_changer'),
|
|
18
|
+
});
|
|
19
|
+
export const hlsPullSchema = streamCommonSchema.extend({
|
|
20
|
+
platform: z.literal('hls_pull'),
|
|
21
|
+
});
|
|
22
|
+
export const hlsPushSchema = streamCommonSchema.extend({
|
|
23
|
+
platform: z.literal('hls_push'),
|
|
24
|
+
});
|
|
25
|
+
export const ibmSchema = streamCommonSchema.extend({
|
|
26
|
+
platform: z.literal('ibm'),
|
|
27
|
+
});
|
|
28
|
+
export const mpegDvbSchema = streamCommonSchema.extend({
|
|
29
|
+
platform: z.literal('mpeg_dvb'),
|
|
30
|
+
});
|
|
31
|
+
export const microsoftAzureSchema = streamCommonSchema.extend({
|
|
32
|
+
platform: z.literal('microsoft_azure'),
|
|
33
|
+
});
|
|
34
|
+
export const microsoftStreamSchema = streamCommonSchema.extend({
|
|
35
|
+
platform: z.literal('microsoft_stream'),
|
|
36
|
+
});
|
|
37
|
+
export const rtmpSchema = commonRtmpSchema.extend({
|
|
38
|
+
platform: z.literal('rtmp'),
|
|
39
|
+
});
|
|
40
|
+
export const sdCardSchema = streamCommonSchema.extend({
|
|
41
|
+
platform: z.literal('sd_card'),
|
|
42
|
+
});
|
|
43
|
+
export const srtSchema = streamCommonSchema.extend({
|
|
44
|
+
platform: z.literal('srt'),
|
|
45
|
+
});
|
|
46
|
+
export const twitchSchema = streamCommonSchema.extend({
|
|
47
|
+
platform: z.literal('twitch'),
|
|
48
|
+
});
|
|
49
|
+
export const vimeoSchema = streamCommonSchema.extend({
|
|
50
|
+
platform: z.literal('vimeo'),
|
|
51
|
+
});
|
|
52
|
+
export const wowzaSchema = streamCommonSchema.extend({
|
|
53
|
+
platform: z.literal('wowza'),
|
|
54
|
+
});
|
|
55
|
+
export const youtubeRtmpSchema = commonRtmpSchema.extend({
|
|
56
|
+
platform: z.literal('youtube_rtmp'),
|
|
57
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
import { streamCommonSchema } from './streamCommonTypes';
|
|
3
3
|
export const youtubeSchema = streamCommonSchema.extend({
|
|
4
|
-
|
|
4
|
+
platform: z.literal('youtube'),
|
|
5
5
|
description: z.string().optional(),
|
|
6
6
|
playlist: z.string().optional(),
|
|
7
7
|
tags: z.array(z.string()),
|
|
@@ -10,9 +10,6 @@ export const youtubeSchema = streamCommonSchema.extend({
|
|
|
10
10
|
latency: z.union([z.literal('normal'), z.literal('low'), z.literal('ultra_low')]),
|
|
11
11
|
afterEndStatus: z.union([z.literal('no_change'), z.literal('public'), z.literal('unlisted'), z.literal('private')]),
|
|
12
12
|
dvr: z.boolean(),
|
|
13
|
-
saveToSdCard: z.boolean(),
|
|
14
|
-
statusCameraLed: z.boolean(),
|
|
15
|
-
statusCameraOutput: z.string().nullable(),
|
|
16
13
|
hasWatchdogs: z.boolean(),
|
|
17
14
|
countdown: z.boolean(),
|
|
18
15
|
enableManualControl: z.boolean(),
|
|
@@ -3,7 +3,7 @@ const csEventsDataSchema = z.discriminatedUnion('type', [
|
|
|
3
3
|
z.object({ type: z.literal('authorization'), state: z.string() }),
|
|
4
4
|
z.object({
|
|
5
5
|
type: z.literal('StreamState'),
|
|
6
|
-
|
|
6
|
+
streamId: z.string(),
|
|
7
7
|
isStreaming: z.boolean(),
|
|
8
8
|
active: z.boolean(),
|
|
9
9
|
enabled: z.boolean(),
|
|
@@ -12,13 +12,13 @@ const csEventsDataSchema = z.discriminatedUnion('type', [
|
|
|
12
12
|
type: z.literal('CS_API_SUCCESS'),
|
|
13
13
|
apiCall: z.string(),
|
|
14
14
|
message: z.string(),
|
|
15
|
-
|
|
15
|
+
streamId: z.string(),
|
|
16
16
|
}),
|
|
17
17
|
z.object({
|
|
18
18
|
type: z.literal('CS_API_ERROR'),
|
|
19
19
|
apiCall: z.string(),
|
|
20
20
|
message: z.string(),
|
|
21
|
-
|
|
21
|
+
streamId: z.string(),
|
|
22
22
|
code: z.string(),
|
|
23
23
|
}),
|
|
24
24
|
z.object({
|