camstreamerlib 4.0.0-beta.122 → 4.0.0-beta.124

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,37 @@ 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
+ }>, z.ZodObject<{
132
+ type: z.ZodLiteral<"none">;
133
+ }, "strip", z.ZodTypeAny, {
134
+ type: "none";
135
+ }, {
136
+ type: "none";
137
+ }>]>;
120
138
  input: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
121
139
  type: z.ZodLiteral<"RTSP_URL">;
122
140
  url: z.ZodString;
@@ -151,9 +169,15 @@ export declare const windySchema: z.ZodObject<{
151
169
  delayS: z.ZodOptional<z.ZodNumber>;
152
170
  }, "strip", z.ZodTypeAny, {
153
171
  output: {
154
- type: "video" | "images";
155
- url: string | null;
172
+ type: "video";
173
+ url: string;
156
174
  parameters: string;
175
+ } | {
176
+ type: "images";
177
+ url: string;
178
+ imageIntervalS: number;
179
+ } | {
180
+ type: "none";
157
181
  };
158
182
  input: {
159
183
  type: "RTSP_URL";
@@ -169,9 +193,15 @@ export declare const windySchema: z.ZodObject<{
169
193
  delayS?: number | undefined;
170
194
  }, {
171
195
  output: {
172
- type: "video" | "images";
173
- url: string | null;
196
+ type: "video";
197
+ url: string;
174
198
  parameters: string;
199
+ } | {
200
+ type: "images";
201
+ url: string;
202
+ imageIntervalS: number;
203
+ } | {
204
+ type: "none";
175
205
  };
176
206
  input: {
177
207
  type: "RTSP_URL";
@@ -284,9 +314,15 @@ export declare const windySchema: z.ZodObject<{
284
314
  };
285
315
  video: {
286
316
  output: {
287
- type: "video" | "images";
288
- url: string | null;
317
+ type: "video";
318
+ url: string;
289
319
  parameters: string;
320
+ } | {
321
+ type: "images";
322
+ url: string;
323
+ imageIntervalS: number;
324
+ } | {
325
+ type: "none";
290
326
  };
291
327
  input: {
292
328
  type: "RTSP_URL";
@@ -354,9 +390,15 @@ export declare const windySchema: z.ZodObject<{
354
390
  };
355
391
  video: {
356
392
  output: {
357
- type: "video" | "images";
358
- url: string | null;
393
+ type: "video";
394
+ url: string;
359
395
  parameters: string;
396
+ } | {
397
+ type: "images";
398
+ url: string;
399
+ imageIntervalS: number;
400
+ } | {
401
+ type: "none";
360
402
  };
361
403
  input: {
362
404
  type: "RTSP_URL";
@@ -104,19 +104,37 @@ 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
+ }>, z.ZodObject<{
132
+ type: z.ZodLiteral<"none">;
133
+ }, "strip", z.ZodTypeAny, {
134
+ type: "none";
135
+ }, {
136
+ type: "none";
137
+ }>]>;
120
138
  input: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
121
139
  type: z.ZodLiteral<"RTSP_URL">;
122
140
  url: z.ZodString;
@@ -151,9 +169,15 @@ export declare const youtubeSchema: z.ZodObject<{
151
169
  delayS: z.ZodOptional<z.ZodNumber>;
152
170
  }, "strip", z.ZodTypeAny, {
153
171
  output: {
154
- type: "video" | "images";
155
- url: string | null;
172
+ type: "video";
173
+ url: string;
156
174
  parameters: string;
175
+ } | {
176
+ type: "images";
177
+ url: string;
178
+ imageIntervalS: number;
179
+ } | {
180
+ type: "none";
157
181
  };
158
182
  input: {
159
183
  type: "RTSP_URL";
@@ -169,9 +193,15 @@ export declare const youtubeSchema: z.ZodObject<{
169
193
  delayS?: number | undefined;
170
194
  }, {
171
195
  output: {
172
- type: "video" | "images";
173
- url: string | null;
196
+ type: "video";
197
+ url: string;
174
198
  parameters: string;
199
+ } | {
200
+ type: "images";
201
+ url: string;
202
+ imageIntervalS: number;
203
+ } | {
204
+ type: "none";
175
205
  };
176
206
  input: {
177
207
  type: "RTSP_URL";
@@ -295,9 +325,15 @@ export declare const youtubeSchema: z.ZodObject<{
295
325
  };
296
326
  video: {
297
327
  output: {
298
- type: "video" | "images";
299
- url: string | null;
328
+ type: "video";
329
+ url: string;
300
330
  parameters: string;
331
+ } | {
332
+ type: "images";
333
+ url: string;
334
+ imageIntervalS: number;
335
+ } | {
336
+ type: "none";
301
337
  };
302
338
  input: {
303
339
  type: "RTSP_URL";
@@ -376,9 +412,15 @@ export declare const youtubeSchema: z.ZodObject<{
376
412
  };
377
413
  video: {
378
414
  output: {
379
- type: "video" | "images";
380
- url: string | null;
415
+ type: "video";
416
+ url: string;
381
417
  parameters: string;
418
+ } | {
419
+ type: "images";
420
+ url: string;
421
+ imageIntervalS: number;
422
+ } | {
423
+ type: "none";
382
424
  };
383
425
  input: {
384
426
  type: "RTSP_URL";
@@ -33,11 +33,21 @@ 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
+ z.object({
48
+ type: z.literal('none'),
49
+ }),
50
+ ]),
41
51
  input: z.discriminatedUnion('type', [
42
52
  z.object({
43
53
  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.124",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engine": {