camstreamerlib 4.0.0-beta.95 → 4.0.0-beta.97

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 +1058 -60
  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 +7915 -1028
  7. package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +79 -7
  8. package/cjs/types/CamStreamerAPI/churchSchema.d.ts +202 -0
  9. package/cjs/types/CamStreamerAPI/churchSchema.js +11 -0
  10. package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +202 -0
  11. package/cjs/types/CamStreamerAPI/daCastSchema.js +11 -0
  12. package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +202 -0
  13. package/cjs/types/CamStreamerAPI/dailymotionSchema.js +11 -0
  14. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +46 -0
  15. package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +202 -0
  16. package/cjs/types/CamStreamerAPI/gameChangerSchema.js +11 -0
  17. package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +202 -0
  18. package/cjs/types/CamStreamerAPI/hlsPullSchema.js +11 -0
  19. package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +202 -0
  20. package/cjs/types/CamStreamerAPI/hlsPushSchema.js +11 -0
  21. package/cjs/types/CamStreamerAPI/{hlsSchema.d.ts → ibmSchema.d.ts} +50 -4
  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 +202 -0
  26. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.js +11 -0
  27. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +202 -0
  28. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.js +11 -0
  29. package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +46 -0
  30. package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +12 -12
  31. package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +46 -0
  32. package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +46 -0
  33. package/{types/types/CamStreamerAPI/hlsSchema.d.ts → cjs/types/CamStreamerAPI/srtSchema.d.ts} +50 -4
  34. package/cjs/types/CamStreamerAPI/srtSchema.js +11 -0
  35. package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +75 -1
  36. package/cjs/types/CamStreamerAPI/streamCommonTypes.js +27 -2
  37. package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +202 -0
  38. package/cjs/types/CamStreamerAPI/twitchSchema.js +11 -0
  39. package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +202 -0
  40. package/cjs/types/CamStreamerAPI/vimeoSchema.js +11 -0
  41. package/cjs/types/CamStreamerAPI/windySchema.d.ts +46 -0
  42. package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +202 -0
  43. package/cjs/types/CamStreamerAPI/wowzaSchema.js +11 -0
  44. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +46 -45
  45. package/cjs/types/CamStreamerAPI/youtubeSchema.js +0 -15
  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 +26 -1
  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 +0 -15
  63. package/package.json +1 -1
  64. package/types/CamOverlayAPI.d.ts +4 -4
  65. package/types/CamStreamerAPI.d.ts +1058 -60
  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 +7915 -1028
  70. package/types/types/CamStreamerAPI/churchSchema.d.ts +202 -0
  71. package/types/types/CamStreamerAPI/daCastSchema.d.ts +202 -0
  72. package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +202 -0
  73. package/types/types/CamStreamerAPI/facebookSchema.d.ts +46 -0
  74. package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +202 -0
  75. package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +202 -0
  76. package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +202 -0
  77. package/types/types/CamStreamerAPI/ibmSchema.d.ts +202 -0
  78. package/types/types/CamStreamerAPI/index.d.ts +0 -1
  79. package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +202 -0
  80. package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +202 -0
  81. package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +46 -0
  82. package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +12 -12
  83. package/types/types/CamStreamerAPI/rtmpSchema.d.ts +46 -0
  84. package/types/types/CamStreamerAPI/sdCardSchema.d.ts +46 -0
  85. package/types/types/CamStreamerAPI/srtSchema.d.ts +202 -0
  86. package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +75 -1
  87. package/types/types/CamStreamerAPI/twitchSchema.d.ts +202 -0
  88. package/types/types/CamStreamerAPI/vimeoSchema.d.ts +202 -0
  89. package/types/types/CamStreamerAPI/windySchema.d.ts +46 -0
  90. package/types/types/CamStreamerAPI/wowzaSchema.d.ts +202 -0
  91. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +46 -45
@@ -0,0 +1,202 @@
1
+ import z from 'zod';
2
+ export declare const microsoftStreamSchema: 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
+ } & {
127
+ type: z.ZodLiteral<"microsoft_stream">;
128
+ }, "strip", z.ZodTypeAny, {
129
+ type: "microsoft_stream";
130
+ enabled: boolean;
131
+ id: number;
132
+ active: boolean;
133
+ title: string;
134
+ trigger: {
135
+ type: "manual";
136
+ ioPort: string | null;
137
+ } | {
138
+ type: "onetime";
139
+ startTime: number;
140
+ stopTime: number;
141
+ } | {
142
+ type: "recurrent";
143
+ schedule: {
144
+ start: {
145
+ day: number;
146
+ timeS: number;
147
+ };
148
+ stop: {
149
+ day: number;
150
+ timeS: number;
151
+ };
152
+ isActive: boolean;
153
+ }[];
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
+ };
165
+ }, {
166
+ type: "microsoft_stream";
167
+ enabled: boolean;
168
+ id: number;
169
+ active: boolean;
170
+ title: string;
171
+ trigger: {
172
+ type: "manual";
173
+ ioPort: string | null;
174
+ } | {
175
+ type: "onetime";
176
+ startTime: number;
177
+ stopTime: number;
178
+ } | {
179
+ type: "recurrent";
180
+ schedule: {
181
+ start: {
182
+ day: number;
183
+ timeS: number;
184
+ };
185
+ stop: {
186
+ day: number;
187
+ timeS: number;
188
+ };
189
+ isActive: boolean;
190
+ }[];
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
+ };
202
+ }>;
@@ -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.microsoftStreamSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const streamCommonTypes_1 = require("./streamCommonTypes");
9
+ exports.microsoftStreamSchema = streamCommonTypes_1.streamCommonSchema.extend({
10
+ type: zod_1.default.literal('microsoft_stream'),
11
+ });
@@ -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,6 +97,32 @@ 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
128
  rtmpUrl: z.ZodString;
@@ -129,6 +155,16 @@ export declare const rtmpSchema: z.ZodObject<{
129
155
  isActive: boolean;
130
156
  }[];
131
157
  };
158
+ inputType: "RTSP_URL" | "CSw" | "CRS";
159
+ internalVapixParameters: {
160
+ camera: string;
161
+ resolution?: string | undefined;
162
+ compression?: number | undefined;
163
+ audio?: 0 | 1 | undefined;
164
+ fps?: number | undefined;
165
+ videobitrate?: number | undefined;
166
+ videomaxbitrate?: number | undefined;
167
+ };
132
168
  rtmpUrl: string;
133
169
  streamKey: string;
134
170
  streamIdentifier?: string | undefined;
@@ -159,6 +195,16 @@ export declare const rtmpSchema: z.ZodObject<{
159
195
  isActive: boolean;
160
196
  }[];
161
197
  };
198
+ inputType: "RTSP_URL" | "CSw" | "CRS";
199
+ internalVapixParameters: {
200
+ camera: string;
201
+ resolution?: string | undefined;
202
+ compression?: number | undefined;
203
+ audio?: 0 | 1 | undefined;
204
+ fps?: number | undefined;
205
+ videobitrate?: number | undefined;
206
+ videomaxbitrate?: number | undefined;
207
+ };
162
208
  rtmpUrl: string;
163
209
  streamKey: string;
164
210
  streamIdentifier?: string | undefined;
@@ -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 hlsSchema: z.ZodObject<{
2
+ export declare const srtSchema: z.ZodObject<{
3
3
  id: z.ZodNumber;
4
4
  enabled: z.ZodBoolean;
5
5
  active: z.ZodBoolean;
@@ -97,10 +97,36 @@ 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
- type: z.ZodLiteral<"hls">;
127
+ type: z.ZodLiteral<"srt">;
102
128
  }, "strip", z.ZodTypeAny, {
103
- type: "hls";
129
+ type: "srt";
104
130
  enabled: boolean;
105
131
  id: number;
106
132
  active: boolean;
@@ -126,8 +152,18 @@ 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
- type: "hls";
166
+ type: "srt";
131
167
  enabled: boolean;
132
168
  id: number;
133
169
  active: 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
  }>;
@@ -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.srtSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const streamCommonTypes_1 = require("./streamCommonTypes");
9
+ exports.srtSchema = streamCommonTypes_1.streamCommonSchema.extend({
10
+ type: zod_1.default.literal('srt'),
11
+ });