camstreamerlib 4.0.0-beta.122 → 4.0.0-beta.123

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.
@@ -127,19 +127,31 @@ export declare const facebookSchema: z.ZodObject<{
127
127
  prepareAheadS?: number | undefined;
128
128
  }>]>;
129
129
  video: z.ZodObject<{
130
- output: z.ZodObject<{
131
- type: z.ZodUnion<[z.ZodLiteral<"video">, z.ZodLiteral<"images">]>;
132
- url: z.ZodNullable<z.ZodString>;
130
+ output: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
131
+ type: z.ZodLiteral<"video">;
132
+ url: z.ZodString;
133
133
  parameters: z.ZodString;
134
134
  }, "strip", z.ZodTypeAny, {
135
- type: "video" | "images";
136
- url: string | null;
135
+ type: "video";
136
+ url: string;
137
137
  parameters: string;
138
138
  }, {
139
- type: "video" | "images";
140
- url: string | null;
139
+ type: "video";
140
+ url: string;
141
141
  parameters: string;
142
- }>;
142
+ }>, z.ZodObject<{
143
+ type: z.ZodLiteral<"images">;
144
+ url: z.ZodString;
145
+ imageIntervalS: z.ZodNumber;
146
+ }, "strip", z.ZodTypeAny, {
147
+ type: "images";
148
+ url: string;
149
+ imageIntervalS: number;
150
+ }, {
151
+ type: "images";
152
+ url: string;
153
+ imageIntervalS: number;
154
+ }>]>;
143
155
  input: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
144
156
  type: z.ZodLiteral<"RTSP_URL">;
145
157
  url: z.ZodString;
@@ -174,9 +186,13 @@ export declare const facebookSchema: z.ZodObject<{
174
186
  delayS: z.ZodOptional<z.ZodNumber>;
175
187
  }, "strip", z.ZodTypeAny, {
176
188
  output: {
177
- type: "video" | "images";
178
- url: string | null;
189
+ type: "video";
190
+ url: string;
179
191
  parameters: string;
192
+ } | {
193
+ type: "images";
194
+ url: string;
195
+ imageIntervalS: number;
180
196
  };
181
197
  input: {
182
198
  type: "RTSP_URL";
@@ -192,9 +208,13 @@ export declare const facebookSchema: z.ZodObject<{
192
208
  delayS?: number | undefined;
193
209
  }, {
194
210
  output: {
195
- type: "video" | "images";
196
- url: string | null;
211
+ type: "video";
212
+ url: string;
197
213
  parameters: string;
214
+ } | {
215
+ type: "images";
216
+ url: string;
217
+ imageIntervalS: number;
198
218
  };
199
219
  input: {
200
220
  type: "RTSP_URL";
@@ -336,9 +356,13 @@ export declare const facebookSchema: z.ZodObject<{
336
356
  };
337
357
  video: {
338
358
  output: {
339
- type: "video" | "images";
340
- url: string | null;
359
+ type: "video";
360
+ url: string;
341
361
  parameters: string;
362
+ } | {
363
+ type: "images";
364
+ url: string;
365
+ imageIntervalS: number;
342
366
  };
343
367
  input: {
344
368
  type: "RTSP_URL";
@@ -416,9 +440,13 @@ export declare const facebookSchema: z.ZodObject<{
416
440
  };
417
441
  video: {
418
442
  output: {
419
- type: "video" | "images";
420
- url: string | null;
443
+ type: "video";
444
+ url: string;
421
445
  parameters: string;
446
+ } | {
447
+ type: "images";
448
+ url: string;
449
+ imageIntervalS: number;
422
450
  };
423
451
  input: {
424
452
  type: "RTSP_URL";
@@ -104,19 +104,31 @@ export declare const streamCommonSchema: z.ZodObject<{
104
104
  prepareAheadS?: number | undefined;
105
105
  }>]>;
106
106
  video: z.ZodObject<{
107
- output: z.ZodObject<{
108
- type: z.ZodUnion<[z.ZodLiteral<"video">, z.ZodLiteral<"images">]>;
109
- url: z.ZodNullable<z.ZodString>;
107
+ output: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
108
+ type: z.ZodLiteral<"video">;
109
+ url: z.ZodString;
110
110
  parameters: z.ZodString;
111
111
  }, "strip", z.ZodTypeAny, {
112
- type: "video" | "images";
113
- url: string | null;
112
+ type: "video";
113
+ url: string;
114
114
  parameters: string;
115
115
  }, {
116
- type: "video" | "images";
117
- url: string | null;
116
+ type: "video";
117
+ url: string;
118
118
  parameters: string;
119
- }>;
119
+ }>, z.ZodObject<{
120
+ type: z.ZodLiteral<"images">;
121
+ url: z.ZodString;
122
+ imageIntervalS: z.ZodNumber;
123
+ }, "strip", z.ZodTypeAny, {
124
+ type: "images";
125
+ url: string;
126
+ imageIntervalS: number;
127
+ }, {
128
+ type: "images";
129
+ url: string;
130
+ imageIntervalS: number;
131
+ }>]>;
120
132
  input: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
121
133
  type: z.ZodLiteral<"RTSP_URL">;
122
134
  url: z.ZodString;
@@ -151,9 +163,13 @@ export declare const streamCommonSchema: z.ZodObject<{
151
163
  delayS: z.ZodOptional<z.ZodNumber>;
152
164
  }, "strip", z.ZodTypeAny, {
153
165
  output: {
154
- type: "video" | "images";
155
- url: string | null;
166
+ type: "video";
167
+ url: string;
156
168
  parameters: string;
169
+ } | {
170
+ type: "images";
171
+ url: string;
172
+ imageIntervalS: number;
157
173
  };
158
174
  input: {
159
175
  type: "RTSP_URL";
@@ -169,9 +185,13 @@ export declare const streamCommonSchema: z.ZodObject<{
169
185
  delayS?: number | undefined;
170
186
  }, {
171
187
  output: {
172
- type: "video" | "images";
173
- url: string | null;
188
+ type: "video";
189
+ url: string;
174
190
  parameters: string;
191
+ } | {
192
+ type: "images";
193
+ url: string;
194
+ imageIntervalS: number;
175
195
  };
176
196
  input: {
177
197
  type: "RTSP_URL";
@@ -282,9 +302,13 @@ export declare const streamCommonSchema: z.ZodObject<{
282
302
  };
283
303
  video: {
284
304
  output: {
285
- type: "video" | "images";
286
- url: string | null;
305
+ type: "video";
306
+ url: string;
287
307
  parameters: string;
308
+ } | {
309
+ type: "images";
310
+ url: string;
311
+ imageIntervalS: number;
288
312
  };
289
313
  input: {
290
314
  type: "RTSP_URL";
@@ -351,9 +375,13 @@ export declare const streamCommonSchema: z.ZodObject<{
351
375
  };
352
376
  video: {
353
377
  output: {
354
- type: "video" | "images";
355
- url: string | null;
378
+ type: "video";
379
+ url: string;
356
380
  parameters: string;
381
+ } | {
382
+ type: "images";
383
+ url: string;
384
+ imageIntervalS: number;
357
385
  };
358
386
  input: {
359
387
  type: "RTSP_URL";
@@ -36,11 +36,18 @@ exports.streamCommonSchema = zod_1.z.object({
36
36
  }),
37
37
  ]),
38
38
  video: zod_1.z.object({
39
- output: zod_1.z.object({
40
- type: zod_1.z.union([zod_1.z.literal('video'), zod_1.z.literal('images')]),
41
- url: zod_1.z.string().nullable(),
42
- parameters: zod_1.z.string(),
43
- }),
39
+ output: zod_1.z.discriminatedUnion('type', [
40
+ zod_1.z.object({
41
+ type: zod_1.z.literal('video'),
42
+ url: zod_1.z.string(),
43
+ parameters: zod_1.z.string(),
44
+ }),
45
+ zod_1.z.object({
46
+ type: zod_1.z.literal('images'),
47
+ url: zod_1.z.string(),
48
+ imageIntervalS: zod_1.z.number(),
49
+ }),
50
+ ]),
44
51
  input: zod_1.z.discriminatedUnion('type', [
45
52
  zod_1.z.object({
46
53
  type: zod_1.z.literal('RTSP_URL'),