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.
@@ -104,19 +104,31 @@ export declare const windySchema: 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 windySchema: 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 windySchema: 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";
@@ -284,9 +304,13 @@ export declare const windySchema: z.ZodObject<{
284
304
  };
285
305
  video: {
286
306
  output: {
287
- type: "video" | "images";
288
- url: string | null;
307
+ type: "video";
308
+ url: string;
289
309
  parameters: string;
310
+ } | {
311
+ type: "images";
312
+ url: string;
313
+ imageIntervalS: number;
290
314
  };
291
315
  input: {
292
316
  type: "RTSP_URL";
@@ -354,9 +378,13 @@ export declare const windySchema: z.ZodObject<{
354
378
  };
355
379
  video: {
356
380
  output: {
357
- type: "video" | "images";
358
- url: string | null;
381
+ type: "video";
382
+ url: string;
359
383
  parameters: string;
384
+ } | {
385
+ type: "images";
386
+ url: string;
387
+ imageIntervalS: number;
360
388
  };
361
389
  input: {
362
390
  type: "RTSP_URL";
@@ -104,19 +104,31 @@ export declare const youtubeSchema: 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 youtubeSchema: 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 youtubeSchema: 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";
@@ -295,9 +315,13 @@ export declare const youtubeSchema: z.ZodObject<{
295
315
  };
296
316
  video: {
297
317
  output: {
298
- type: "video" | "images";
299
- url: string | null;
318
+ type: "video";
319
+ url: string;
300
320
  parameters: string;
321
+ } | {
322
+ type: "images";
323
+ url: string;
324
+ imageIntervalS: number;
301
325
  };
302
326
  input: {
303
327
  type: "RTSP_URL";
@@ -376,9 +400,13 @@ export declare const youtubeSchema: z.ZodObject<{
376
400
  };
377
401
  video: {
378
402
  output: {
379
- type: "video" | "images";
380
- url: string | null;
403
+ type: "video";
404
+ url: string;
381
405
  parameters: string;
406
+ } | {
407
+ type: "images";
408
+ url: string;
409
+ imageIntervalS: number;
382
410
  };
383
411
  input: {
384
412
  type: "RTSP_URL";
@@ -33,11 +33,18 @@ export const streamCommonSchema = z.object({
33
33
  }),
34
34
  ]),
35
35
  video: z.object({
36
- output: z.object({
37
- type: z.union([z.literal('video'), z.literal('images')]),
38
- url: z.string().nullable(),
39
- parameters: z.string(),
40
- }),
36
+ output: z.discriminatedUnion('type', [
37
+ z.object({
38
+ type: z.literal('video'),
39
+ url: z.string(),
40
+ parameters: z.string(),
41
+ }),
42
+ z.object({
43
+ type: z.literal('images'),
44
+ url: z.string(),
45
+ imageIntervalS: z.number(),
46
+ }),
47
+ ]),
41
48
  input: z.discriminatedUnion('type', [
42
49
  z.object({
43
50
  type: z.literal('RTSP_URL'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstreamerlib",
3
- "version": "4.0.0-beta.122",
3
+ "version": "4.0.0-beta.123",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engine": {