camstreamerlib 4.0.0-beta.96 → 4.0.0-beta.99

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.
Files changed (91) hide show
  1. package/cjs/CamOverlayAPI.d.ts +4 -4
  2. package/cjs/CamStreamerAPI.d.ts +1483 -65
  3. package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +22 -22
  4. package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +12 -12
  5. package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +2 -2
  6. package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +11825 -2376
  7. package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +79 -7
  8. package/cjs/types/CamStreamerAPI/churchSchema.d.ts +275 -0
  9. package/cjs/types/CamStreamerAPI/churchSchema.js +11 -0
  10. package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +275 -0
  11. package/cjs/types/CamStreamerAPI/daCastSchema.js +11 -0
  12. package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +275 -0
  13. package/cjs/types/CamStreamerAPI/dailymotionSchema.js +11 -0
  14. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +51 -5
  15. package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +275 -0
  16. package/cjs/types/CamStreamerAPI/gameChangerSchema.js +11 -0
  17. package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +275 -0
  18. package/cjs/types/CamStreamerAPI/hlsPullSchema.js +11 -0
  19. package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +275 -0
  20. package/cjs/types/CamStreamerAPI/hlsPushSchema.js +11 -0
  21. package/cjs/types/CamStreamerAPI/{hlsSchema.d.ts → ibmSchema.d.ts} +55 -9
  22. package/cjs/types/CamStreamerAPI/{hlsSchema.js → ibmSchema.js} +3 -3
  23. package/cjs/types/CamStreamerAPI/index.d.ts +0 -1
  24. package/cjs/types/CamStreamerAPI/index.js +0 -1
  25. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +275 -0
  26. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.js +11 -0
  27. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +275 -0
  28. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.js +11 -0
  29. package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +51 -5
  30. package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +12 -12
  31. package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +51 -5
  32. package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +51 -5
  33. package/{types/types/CamStreamerAPI/hlsSchema.d.ts → cjs/types/CamStreamerAPI/srtSchema.d.ts} +55 -9
  34. package/cjs/types/CamStreamerAPI/srtSchema.js +11 -0
  35. package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +88 -9
  36. package/cjs/types/CamStreamerAPI/streamCommonTypes.js +28 -3
  37. package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +275 -0
  38. package/cjs/types/CamStreamerAPI/twitchSchema.js +11 -0
  39. package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +275 -0
  40. package/cjs/types/CamStreamerAPI/vimeoSchema.js +11 -0
  41. package/cjs/types/CamStreamerAPI/windySchema.d.ts +51 -5
  42. package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +275 -0
  43. package/cjs/types/CamStreamerAPI/wowzaSchema.js +11 -0
  44. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +96 -5
  45. package/cjs/types/CamStreamerAPI/youtubeSchema.js +15 -0
  46. package/esm/types/CamStreamerAPI/CamStreamerAPI.js +65 -5
  47. package/esm/types/CamStreamerAPI/churchSchema.js +5 -0
  48. package/esm/types/CamStreamerAPI/daCastSchema.js +5 -0
  49. package/esm/types/CamStreamerAPI/dailymotionSchema.js +5 -0
  50. package/esm/types/CamStreamerAPI/gameChangerSchema.js +5 -0
  51. package/esm/types/CamStreamerAPI/hlsPullSchema.js +5 -0
  52. package/esm/types/CamStreamerAPI/hlsPushSchema.js +5 -0
  53. package/esm/types/CamStreamerAPI/{hlsSchema.js → ibmSchema.js} +2 -2
  54. package/esm/types/CamStreamerAPI/index.js +0 -1
  55. package/esm/types/CamStreamerAPI/microsoftAzureSchema.js +5 -0
  56. package/esm/types/CamStreamerAPI/microsoftStreamSchema.js +5 -0
  57. package/esm/types/CamStreamerAPI/srtSchema.js +5 -0
  58. package/esm/types/CamStreamerAPI/streamCommonTypes.js +27 -2
  59. package/esm/types/CamStreamerAPI/twitchSchema.js +5 -0
  60. package/esm/types/CamStreamerAPI/vimeoSchema.js +5 -0
  61. package/esm/types/CamStreamerAPI/wowzaSchema.js +5 -0
  62. package/esm/types/CamStreamerAPI/youtubeSchema.js +15 -0
  63. package/package.json +1 -1
  64. package/types/CamOverlayAPI.d.ts +4 -4
  65. package/types/CamStreamerAPI.d.ts +1483 -65
  66. package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +22 -22
  67. package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +12 -12
  68. package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +2 -2
  69. package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +11825 -2376
  70. package/types/types/CamStreamerAPI/churchSchema.d.ts +275 -0
  71. package/types/types/CamStreamerAPI/daCastSchema.d.ts +275 -0
  72. package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +275 -0
  73. package/types/types/CamStreamerAPI/facebookSchema.d.ts +51 -5
  74. package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +275 -0
  75. package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +275 -0
  76. package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +275 -0
  77. package/types/types/CamStreamerAPI/ibmSchema.d.ts +275 -0
  78. package/types/types/CamStreamerAPI/index.d.ts +0 -1
  79. package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +275 -0
  80. package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +275 -0
  81. package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +51 -5
  82. package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +12 -12
  83. package/types/types/CamStreamerAPI/rtmpSchema.d.ts +51 -5
  84. package/types/types/CamStreamerAPI/sdCardSchema.d.ts +51 -5
  85. package/types/types/CamStreamerAPI/srtSchema.d.ts +275 -0
  86. package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +88 -9
  87. package/types/types/CamStreamerAPI/twitchSchema.d.ts +275 -0
  88. package/types/types/CamStreamerAPI/vimeoSchema.d.ts +275 -0
  89. package/types/types/CamStreamerAPI/windySchema.d.ts +51 -5
  90. package/types/types/CamStreamerAPI/wowzaSchema.d.ts +275 -0
  91. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +96 -5
@@ -0,0 +1,275 @@
1
+ import z from 'zod';
2
+ export declare const wowzaSchema: z.ZodObject<{
3
+ id: z.ZodNumber;
4
+ enabled: z.ZodBoolean;
5
+ active: z.ZodBoolean;
6
+ title: z.ZodString;
7
+ trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8
+ type: z.ZodLiteral<"manual">;
9
+ ioPort: z.ZodNullable<z.ZodString>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ type: "manual";
12
+ ioPort: string | null;
13
+ }, {
14
+ type: "manual";
15
+ ioPort: string | null;
16
+ }>, z.ZodObject<{
17
+ type: z.ZodLiteral<"onetime">;
18
+ startTime: z.ZodNumber;
19
+ stopTime: z.ZodNumber;
20
+ }, "strip", z.ZodTypeAny, {
21
+ type: "onetime";
22
+ startTime: number;
23
+ stopTime: number;
24
+ }, {
25
+ type: "onetime";
26
+ startTime: number;
27
+ stopTime: number;
28
+ }>, z.ZodObject<{
29
+ type: z.ZodLiteral<"recurrent">;
30
+ schedule: z.ZodArray<z.ZodObject<{
31
+ start: z.ZodObject<{
32
+ day: z.ZodNumber;
33
+ timeS: z.ZodNumber;
34
+ }, "strip", z.ZodTypeAny, {
35
+ day: number;
36
+ timeS: number;
37
+ }, {
38
+ day: number;
39
+ timeS: number;
40
+ }>;
41
+ stop: z.ZodObject<{
42
+ day: z.ZodNumber;
43
+ timeS: z.ZodNumber;
44
+ }, "strip", z.ZodTypeAny, {
45
+ day: number;
46
+ timeS: number;
47
+ }, {
48
+ day: number;
49
+ timeS: number;
50
+ }>;
51
+ isActive: z.ZodBoolean;
52
+ }, "strip", z.ZodTypeAny, {
53
+ start: {
54
+ day: number;
55
+ timeS: number;
56
+ };
57
+ stop: {
58
+ day: number;
59
+ timeS: number;
60
+ };
61
+ isActive: boolean;
62
+ }, {
63
+ start: {
64
+ day: number;
65
+ timeS: number;
66
+ };
67
+ stop: {
68
+ day: number;
69
+ timeS: number;
70
+ };
71
+ isActive: boolean;
72
+ }>, "many">;
73
+ }, "strip", z.ZodTypeAny, {
74
+ type: "recurrent";
75
+ schedule: {
76
+ start: {
77
+ day: number;
78
+ timeS: number;
79
+ };
80
+ stop: {
81
+ day: number;
82
+ timeS: number;
83
+ };
84
+ isActive: boolean;
85
+ }[];
86
+ }, {
87
+ type: "recurrent";
88
+ schedule: {
89
+ start: {
90
+ day: number;
91
+ timeS: number;
92
+ };
93
+ stop: {
94
+ day: number;
95
+ timeS: number;
96
+ };
97
+ isActive: boolean;
98
+ }[];
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
+ }>;
126
+ audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
127
+ source: z.ZodLiteral<"none">;
128
+ }, "strip", z.ZodTypeAny, {
129
+ source: "none";
130
+ }, {
131
+ source: "none";
132
+ }>, z.ZodObject<{
133
+ source: z.ZodLiteral<"microphone">;
134
+ audioChannelNbr: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ source: "microphone";
137
+ audioChannelNbr: 0 | 1;
138
+ }, {
139
+ source: "microphone";
140
+ audioChannelNbr: 0 | 1;
141
+ }>, z.ZodObject<{
142
+ source: z.ZodLiteral<"file">;
143
+ fileName: z.ZodString;
144
+ filePath: z.ZodString;
145
+ }, "strip", z.ZodTypeAny, {
146
+ source: "file";
147
+ fileName: string;
148
+ filePath: string;
149
+ }, {
150
+ source: "file";
151
+ fileName: string;
152
+ filePath: string;
153
+ }>, z.ZodObject<{
154
+ source: z.ZodLiteral<"url">;
155
+ fileName: z.ZodString;
156
+ fileUrl: z.ZodString;
157
+ avSyncMsec: z.ZodNumber;
158
+ }, "strip", z.ZodTypeAny, {
159
+ source: "url";
160
+ fileName: string;
161
+ fileUrl: string;
162
+ avSyncMsec: number;
163
+ }, {
164
+ source: "url";
165
+ fileName: string;
166
+ fileUrl: string;
167
+ avSyncMsec: number;
168
+ }>]>;
169
+ } & {
170
+ type: z.ZodLiteral<"wowza">;
171
+ }, "strip", z.ZodTypeAny, {
172
+ type: "wowza";
173
+ audio: {
174
+ source: "none";
175
+ } | {
176
+ source: "microphone";
177
+ audioChannelNbr: 0 | 1;
178
+ } | {
179
+ source: "file";
180
+ fileName: string;
181
+ filePath: string;
182
+ } | {
183
+ source: "url";
184
+ fileName: string;
185
+ fileUrl: string;
186
+ avSyncMsec: number;
187
+ };
188
+ enabled: boolean;
189
+ id: number;
190
+ active: boolean;
191
+ title: string;
192
+ trigger: {
193
+ type: "manual";
194
+ ioPort: string | null;
195
+ } | {
196
+ type: "onetime";
197
+ startTime: number;
198
+ stopTime: number;
199
+ } | {
200
+ type: "recurrent";
201
+ schedule: {
202
+ start: {
203
+ day: number;
204
+ timeS: number;
205
+ };
206
+ stop: {
207
+ day: number;
208
+ timeS: number;
209
+ };
210
+ isActive: boolean;
211
+ }[];
212
+ };
213
+ inputType: "RTSP_URL" | "CSw" | "CRS";
214
+ internalVapixParameters: {
215
+ camera: string;
216
+ resolution?: string | undefined;
217
+ compression?: number | undefined;
218
+ audio?: 0 | 1 | undefined;
219
+ fps?: number | undefined;
220
+ videobitrate?: number | undefined;
221
+ videomaxbitrate?: number | undefined;
222
+ };
223
+ }, {
224
+ type: "wowza";
225
+ audio: {
226
+ source: "none";
227
+ } | {
228
+ source: "microphone";
229
+ audioChannelNbr: 0 | 1;
230
+ } | {
231
+ source: "file";
232
+ fileName: string;
233
+ filePath: string;
234
+ } | {
235
+ source: "url";
236
+ fileName: string;
237
+ fileUrl: string;
238
+ avSyncMsec: number;
239
+ };
240
+ enabled: boolean;
241
+ id: number;
242
+ active: boolean;
243
+ title: string;
244
+ trigger: {
245
+ type: "manual";
246
+ ioPort: string | null;
247
+ } | {
248
+ type: "onetime";
249
+ startTime: number;
250
+ stopTime: number;
251
+ } | {
252
+ type: "recurrent";
253
+ schedule: {
254
+ start: {
255
+ day: number;
256
+ timeS: number;
257
+ };
258
+ stop: {
259
+ day: number;
260
+ timeS: number;
261
+ };
262
+ isActive: boolean;
263
+ }[];
264
+ };
265
+ inputType: "RTSP_URL" | "CSw" | "CRS";
266
+ internalVapixParameters: {
267
+ camera: string;
268
+ resolution?: string | undefined;
269
+ compression?: number | undefined;
270
+ audio?: 0 | 1 | undefined;
271
+ fps?: number | undefined;
272
+ videobitrate?: number | undefined;
273
+ videomaxbitrate?: number | undefined;
274
+ };
275
+ }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.wowzaSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const streamCommonTypes_1 = require("./streamCommonTypes");
9
+ exports.wowzaSchema = streamCommonTypes_1.streamCommonSchema.extend({
10
+ type: zod_1.default.literal('wowza'),
11
+ });
@@ -97,6 +97,32 @@ export declare const youtubeSchema: 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
  audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
101
127
  source: z.ZodLiteral<"none">;
102
128
  }, "strip", z.ZodTypeAny, {
@@ -105,13 +131,13 @@ export declare const youtubeSchema: z.ZodObject<{
105
131
  source: "none";
106
132
  }>, z.ZodObject<{
107
133
  source: z.ZodLiteral<"microphone">;
108
- channel: z.ZodNumber;
134
+ audioChannelNbr: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
109
135
  }, "strip", z.ZodTypeAny, {
110
- channel: number;
111
136
  source: "microphone";
137
+ audioChannelNbr: 0 | 1;
112
138
  }, {
113
- channel: number;
114
139
  source: "microphone";
140
+ audioChannelNbr: 0 | 1;
115
141
  }>, z.ZodObject<{
116
142
  source: z.ZodLiteral<"file">;
117
143
  fileName: z.ZodString;
@@ -142,13 +168,28 @@ export declare const youtubeSchema: z.ZodObject<{
142
168
  }>]>;
143
169
  } & {
144
170
  type: z.ZodLiteral<"youtube">;
171
+ description: z.ZodOptional<z.ZodString>;
172
+ playlist: z.ZodOptional<z.ZodString>;
173
+ tags: z.ZodArray<z.ZodString, "many">;
174
+ notificationEmail: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
175
+ streamPrivacy: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"unlisted">, z.ZodLiteral<"private">]>;
176
+ latency: z.ZodUnion<[z.ZodLiteral<"normal">, z.ZodLiteral<"low">, z.ZodLiteral<"ultra_low">]>;
177
+ afterEndStatus: z.ZodUnion<[z.ZodLiteral<"no_change">, z.ZodLiteral<"public">, z.ZodLiteral<"unlisted">, z.ZodLiteral<"private">]>;
178
+ cameraLedStatus: z.ZodBoolean;
179
+ dvr: z.ZodBoolean;
180
+ saveToSdCard: z.ZodBoolean;
181
+ statusCameraLed: z.ZodBoolean;
182
+ statusCameraOutput: z.ZodString;
183
+ hasWatchdogs: z.ZodBoolean;
184
+ countdown: z.ZodBoolean;
185
+ enableManualControl: z.ZodBoolean;
145
186
  }, "strip", z.ZodTypeAny, {
146
187
  type: "youtube";
147
188
  audio: {
148
189
  source: "none";
149
190
  } | {
150
- channel: number;
151
191
  source: "microphone";
192
+ audioChannelNbr: 0 | 1;
152
193
  } | {
153
194
  source: "file";
154
195
  fileName: string;
@@ -184,13 +225,38 @@ export declare const youtubeSchema: z.ZodObject<{
184
225
  isActive: boolean;
185
226
  }[];
186
227
  };
228
+ inputType: "RTSP_URL" | "CSw" | "CRS";
229
+ internalVapixParameters: {
230
+ camera: string;
231
+ resolution?: string | undefined;
232
+ compression?: number | undefined;
233
+ audio?: 0 | 1 | undefined;
234
+ fps?: number | undefined;
235
+ videobitrate?: number | undefined;
236
+ videomaxbitrate?: number | undefined;
237
+ };
238
+ statusCameraLed: boolean;
239
+ statusCameraOutput: string;
240
+ saveToSdCard: boolean;
241
+ tags: string[];
242
+ streamPrivacy: "public" | "unlisted" | "private";
243
+ latency: "normal" | "low" | "ultra_low";
244
+ afterEndStatus: "public" | "unlisted" | "private" | "no_change";
245
+ cameraLedStatus: boolean;
246
+ dvr: boolean;
247
+ hasWatchdogs: boolean;
248
+ countdown: boolean;
249
+ enableManualControl: boolean;
250
+ playlist?: string | undefined;
251
+ description?: string | undefined;
252
+ notificationEmail?: string[] | undefined;
187
253
  }, {
188
254
  type: "youtube";
189
255
  audio: {
190
256
  source: "none";
191
257
  } | {
192
- channel: number;
193
258
  source: "microphone";
259
+ audioChannelNbr: 0 | 1;
194
260
  } | {
195
261
  source: "file";
196
262
  fileName: string;
@@ -226,4 +292,29 @@ export declare const youtubeSchema: z.ZodObject<{
226
292
  isActive: boolean;
227
293
  }[];
228
294
  };
295
+ inputType: "RTSP_URL" | "CSw" | "CRS";
296
+ internalVapixParameters: {
297
+ camera: string;
298
+ resolution?: string | undefined;
299
+ compression?: number | undefined;
300
+ audio?: 0 | 1 | undefined;
301
+ fps?: number | undefined;
302
+ videobitrate?: number | undefined;
303
+ videomaxbitrate?: number | undefined;
304
+ };
305
+ statusCameraLed: boolean;
306
+ statusCameraOutput: string;
307
+ saveToSdCard: boolean;
308
+ tags: string[];
309
+ streamPrivacy: "public" | "unlisted" | "private";
310
+ latency: "normal" | "low" | "ultra_low";
311
+ afterEndStatus: "public" | "unlisted" | "private" | "no_change";
312
+ cameraLedStatus: boolean;
313
+ dvr: boolean;
314
+ hasWatchdogs: boolean;
315
+ countdown: boolean;
316
+ enableManualControl: boolean;
317
+ playlist?: string | undefined;
318
+ description?: string | undefined;
319
+ notificationEmail?: string[] | undefined;
229
320
  }>;
@@ -8,4 +8,19 @@ const zod_1 = __importDefault(require("zod"));
8
8
  const streamCommonTypes_1 = require("./streamCommonTypes");
9
9
  exports.youtubeSchema = streamCommonTypes_1.streamCommonSchema.extend({
10
10
  type: zod_1.default.literal('youtube'),
11
+ description: zod_1.default.string().optional(),
12
+ playlist: zod_1.default.string().optional(),
13
+ tags: zod_1.default.array(zod_1.default.string()),
14
+ notificationEmail: zod_1.default.array(zod_1.default.string().email()).optional(),
15
+ streamPrivacy: zod_1.default.union([zod_1.default.literal('public'), zod_1.default.literal('unlisted'), zod_1.default.literal('private')]),
16
+ latency: zod_1.default.union([zod_1.default.literal('normal'), zod_1.default.literal('low'), zod_1.default.literal('ultra_low')]),
17
+ afterEndStatus: zod_1.default.union([zod_1.default.literal('no_change'), zod_1.default.literal('public'), zod_1.default.literal('unlisted'), zod_1.default.literal('private')]),
18
+ cameraLedStatus: zod_1.default.boolean(),
19
+ dvr: zod_1.default.boolean(),
20
+ saveToSdCard: zod_1.default.boolean(),
21
+ statusCameraLed: zod_1.default.boolean(),
22
+ statusCameraOutput: zod_1.default.string(),
23
+ hasWatchdogs: zod_1.default.boolean(),
24
+ countdown: zod_1.default.boolean(),
25
+ enableManualControl: zod_1.default.boolean(),
11
26
  });
@@ -1,27 +1,48 @@
1
1
  import { z } from 'zod';
2
2
  import { facebookSchema } from './facebookSchema';
3
- import { hlsSchema } from './hlsSchema';
4
3
  import { mpegDvbSchema } from './mpegDvbSchema';
5
4
  import { rtmpSchema } from './rtmpSchema';
6
5
  import { sdCardSchema } from './sdCardSchema';
7
6
  import { windySchema } from './windySchema';
8
7
  import { youtubeSchema } from './youtubeSchema';
8
+ import { vimeoSchema } from './vimeoSchema';
9
+ import { twitchSchema } from './twitchSchema';
10
+ import { churchSchema } from './churchSchema';
11
+ import { srtSchema } from './srtSchema';
12
+ import { daCastSchema } from './daCastSchema';
13
+ import { hlsPullSchema } from './hlsPullSchema';
14
+ import { hlsPushSchema } from './hlsPushSchema';
15
+ import { wowzaSchema } from './wowzaSchema';
16
+ import { dailymotionSchema } from './dailymotionSchema';
17
+ import { ibmSchema } from './ibmSchema';
18
+ import { microsoftAzureSchema } from './microsoftAzureSchema';
19
+ import { microsoftStreamSchema } from './microsoftStreamSchema';
20
+ import { gameChangerSchema } from './gameChangerSchema';
9
21
  export const streamSchema = z.discriminatedUnion('type', [
10
22
  facebookSchema,
11
- hlsSchema,
12
23
  mpegDvbSchema,
13
24
  rtmpSchema,
14
25
  sdCardSchema,
15
26
  windySchema,
16
27
  youtubeSchema,
28
+ vimeoSchema,
29
+ twitchSchema,
30
+ churchSchema,
31
+ srtSchema,
32
+ daCastSchema,
33
+ hlsPullSchema,
34
+ hlsPushSchema,
35
+ wowzaSchema,
36
+ dailymotionSchema,
37
+ ibmSchema,
38
+ microsoftAzureSchema,
39
+ microsoftStreamSchema,
40
+ gameChangerSchema,
17
41
  ]);
18
42
  export const streamListSchema = z.object({ streamList: z.array(streamSchema) });
19
43
  export const isFacebookStream = (stream) => {
20
44
  return stream.type === 'facebook';
21
45
  };
22
- export const isHlsStream = (stream) => {
23
- return stream.type === 'hls';
24
- };
25
46
  export const isMpegDvbStream = (stream) => {
26
47
  return stream.type === 'mpeg_dvb';
27
48
  };
@@ -37,6 +58,45 @@ export const isWindyStream = (stream) => {
37
58
  export const isYouTubeStream = (stream) => {
38
59
  return stream.type === 'youtube';
39
60
  };
61
+ export const isVimeoStream = (stream) => {
62
+ return stream.type === 'vimeo';
63
+ };
64
+ export const isTwitchStream = (stream) => {
65
+ return stream.type === 'twitch';
66
+ };
67
+ export const isChurchStream = (stream) => {
68
+ return stream.type === 'church';
69
+ };
70
+ export const isSrtStream = (stream) => {
71
+ return stream.type === 'srt';
72
+ };
73
+ export const isDaCastStream = (stream) => {
74
+ return stream.type === 'da_cast';
75
+ };
76
+ export const isHlsPullStream = (stream) => {
77
+ return stream.type === 'hls_pull';
78
+ };
79
+ export const isHlsPushStream = (stream) => {
80
+ return stream.type === 'hls_push';
81
+ };
82
+ export const isWowzaStream = (stream) => {
83
+ return stream.type === 'wowza';
84
+ };
85
+ export const isDailymotionStream = (stream) => {
86
+ return stream.type === 'dailymotion';
87
+ };
88
+ export const isIbmStream = (stream) => {
89
+ return stream.type === 'ibm';
90
+ };
91
+ export const isMicrosoftAzureStream = (stream) => {
92
+ return stream.type === 'microsoft_azure';
93
+ };
94
+ export const isMicrosoftStream = (stream) => {
95
+ return stream.type === 'microsoft_stream';
96
+ };
97
+ export const isGameChangerStream = (stream) => {
98
+ return stream.type === 'game_changer';
99
+ };
40
100
  export var AudioType;
41
101
  (function (AudioType) {
42
102
  AudioType[AudioType["MP3"] = 0] = "MP3";
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const churchSchema = streamCommonSchema.extend({
4
+ type: z.literal('church'),
5
+ });
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const daCastSchema = streamCommonSchema.extend({
4
+ type: z.literal('da_cast'),
5
+ });
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const dailymotionSchema = streamCommonSchema.extend({
4
+ type: z.literal('dailymotion'),
5
+ });
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const gameChangerSchema = streamCommonSchema.extend({
4
+ type: z.literal('game_changer'),
5
+ });
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const hlsPullSchema = streamCommonSchema.extend({
4
+ type: z.literal('hls_pull'),
5
+ });
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const hlsPushSchema = streamCommonSchema.extend({
4
+ type: z.literal('hls_push'),
5
+ });
@@ -1,5 +1,5 @@
1
1
  import z from 'zod';
2
2
  import { streamCommonSchema } from './streamCommonTypes';
3
- export const hlsSchema = streamCommonSchema.extend({
4
- type: z.literal('hls'),
3
+ export const ibmSchema = streamCommonSchema.extend({
4
+ type: z.literal('ibm'),
5
5
  });
@@ -1,7 +1,6 @@
1
1
  export * from './CamStreamerAPI';
2
2
  export * from './streamCommonTypes';
3
3
  export * from './facebookSchema';
4
- export * from './hlsSchema';
5
4
  export * from './mpegDvbSchema';
6
5
  export * from './rtmpSchema';
7
6
  export * from './sdCardSchema';
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const microsoftAzureSchema = streamCommonSchema.extend({
4
+ type: z.literal('microsoft_azure'),
5
+ });
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const microsoftStreamSchema = streamCommonSchema.extend({
4
+ type: z.literal('microsoft_stream'),
5
+ });
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const srtSchema = streamCommonSchema.extend({
4
+ type: z.literal('srt'),
5
+ });