camstreamerlib 4.0.0-beta.83 → 4.0.0-beta.84

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.
@@ -6,10 +6,13 @@ export declare const facebookSchema: z.ZodObject<{
6
6
  title: z.ZodString;
7
7
  trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8
8
  type: z.ZodLiteral<"manual">;
9
+ ioPort: z.ZodNullable<z.ZodString>;
9
10
  }, "strip", z.ZodTypeAny, {
10
11
  type: "manual";
12
+ ioPort: string | null;
11
13
  }, {
12
14
  type: "manual";
15
+ ioPort: string | null;
13
16
  }>, z.ZodObject<{
14
17
  type: z.ZodLiteral<"onetime">;
15
18
  startTime: z.ZodNumber;
@@ -56,18 +59,6 @@ export declare const facebookSchema: z.ZodObject<{
56
59
  stopTimeS: number;
57
60
  isActive: boolean;
58
61
  }[];
59
- }>, z.ZodObject<{
60
- type: z.ZodLiteral<"io">;
61
- ioPort: z.ZodString;
62
- triggerOn: z.ZodUnion<[z.ZodLiteral<"open">, z.ZodLiteral<"closed">]>;
63
- }, "strip", z.ZodTypeAny, {
64
- type: "io";
65
- ioPort: string;
66
- triggerOn: "open" | "closed";
67
- }, {
68
- type: "io";
69
- ioPort: string;
70
- triggerOn: "open" | "closed";
71
62
  }>]>;
72
63
  } & {
73
64
  type: z.ZodLiteral<"facebook">;
@@ -79,6 +70,7 @@ export declare const facebookSchema: z.ZodObject<{
79
70
  title: string;
80
71
  trigger: {
81
72
  type: "manual";
73
+ ioPort: string | null;
82
74
  } | {
83
75
  type: "onetime";
84
76
  startTime: number;
@@ -91,10 +83,6 @@ export declare const facebookSchema: z.ZodObject<{
91
83
  stopTimeS: number;
92
84
  isActive: boolean;
93
85
  }[];
94
- } | {
95
- type: "io";
96
- ioPort: string;
97
- triggerOn: "open" | "closed";
98
86
  };
99
87
  }, {
100
88
  type: "facebook";
@@ -104,6 +92,7 @@ export declare const facebookSchema: z.ZodObject<{
104
92
  title: string;
105
93
  trigger: {
106
94
  type: "manual";
95
+ ioPort: string | null;
107
96
  } | {
108
97
  type: "onetime";
109
98
  startTime: number;
@@ -116,9 +105,5 @@ export declare const facebookSchema: z.ZodObject<{
116
105
  stopTimeS: number;
117
106
  isActive: boolean;
118
107
  }[];
119
- } | {
120
- type: "io";
121
- ioPort: string;
122
- triggerOn: "open" | "closed";
123
108
  };
124
109
  }>;
@@ -6,10 +6,13 @@ export declare const hlsSchema: z.ZodObject<{
6
6
  title: z.ZodString;
7
7
  trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8
8
  type: z.ZodLiteral<"manual">;
9
+ ioPort: z.ZodNullable<z.ZodString>;
9
10
  }, "strip", z.ZodTypeAny, {
10
11
  type: "manual";
12
+ ioPort: string | null;
11
13
  }, {
12
14
  type: "manual";
15
+ ioPort: string | null;
13
16
  }>, z.ZodObject<{
14
17
  type: z.ZodLiteral<"onetime">;
15
18
  startTime: z.ZodNumber;
@@ -56,18 +59,6 @@ export declare const hlsSchema: z.ZodObject<{
56
59
  stopTimeS: number;
57
60
  isActive: boolean;
58
61
  }[];
59
- }>, z.ZodObject<{
60
- type: z.ZodLiteral<"io">;
61
- ioPort: z.ZodString;
62
- triggerOn: z.ZodUnion<[z.ZodLiteral<"open">, z.ZodLiteral<"closed">]>;
63
- }, "strip", z.ZodTypeAny, {
64
- type: "io";
65
- ioPort: string;
66
- triggerOn: "open" | "closed";
67
- }, {
68
- type: "io";
69
- ioPort: string;
70
- triggerOn: "open" | "closed";
71
62
  }>]>;
72
63
  } & {
73
64
  type: z.ZodLiteral<"hls">;
@@ -79,6 +70,7 @@ export declare const hlsSchema: z.ZodObject<{
79
70
  title: string;
80
71
  trigger: {
81
72
  type: "manual";
73
+ ioPort: string | null;
82
74
  } | {
83
75
  type: "onetime";
84
76
  startTime: number;
@@ -91,10 +83,6 @@ export declare const hlsSchema: z.ZodObject<{
91
83
  stopTimeS: number;
92
84
  isActive: boolean;
93
85
  }[];
94
- } | {
95
- type: "io";
96
- ioPort: string;
97
- triggerOn: "open" | "closed";
98
86
  };
99
87
  }, {
100
88
  type: "hls";
@@ -104,6 +92,7 @@ export declare const hlsSchema: z.ZodObject<{
104
92
  title: string;
105
93
  trigger: {
106
94
  type: "manual";
95
+ ioPort: string | null;
107
96
  } | {
108
97
  type: "onetime";
109
98
  startTime: number;
@@ -116,9 +105,5 @@ export declare const hlsSchema: z.ZodObject<{
116
105
  stopTimeS: number;
117
106
  isActive: boolean;
118
107
  }[];
119
- } | {
120
- type: "io";
121
- ioPort: string;
122
- triggerOn: "open" | "closed";
123
108
  };
124
109
  }>;
@@ -6,10 +6,13 @@ export declare const mpegDvbSchema: z.ZodObject<{
6
6
  title: z.ZodString;
7
7
  trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8
8
  type: z.ZodLiteral<"manual">;
9
+ ioPort: z.ZodNullable<z.ZodString>;
9
10
  }, "strip", z.ZodTypeAny, {
10
11
  type: "manual";
12
+ ioPort: string | null;
11
13
  }, {
12
14
  type: "manual";
15
+ ioPort: string | null;
13
16
  }>, z.ZodObject<{
14
17
  type: z.ZodLiteral<"onetime">;
15
18
  startTime: z.ZodNumber;
@@ -56,18 +59,6 @@ export declare const mpegDvbSchema: z.ZodObject<{
56
59
  stopTimeS: number;
57
60
  isActive: boolean;
58
61
  }[];
59
- }>, z.ZodObject<{
60
- type: z.ZodLiteral<"io">;
61
- ioPort: z.ZodString;
62
- triggerOn: z.ZodUnion<[z.ZodLiteral<"open">, z.ZodLiteral<"closed">]>;
63
- }, "strip", z.ZodTypeAny, {
64
- type: "io";
65
- ioPort: string;
66
- triggerOn: "open" | "closed";
67
- }, {
68
- type: "io";
69
- ioPort: string;
70
- triggerOn: "open" | "closed";
71
62
  }>]>;
72
63
  } & {
73
64
  type: z.ZodLiteral<"mpeg_dvb">;
@@ -84,7 +75,6 @@ export declare const mpegDvbSchema: z.ZodObject<{
84
75
  pcrPeriodMs: z.ZodNumber;
85
76
  providerName: z.ZodString;
86
77
  serviceName: z.ZodString;
87
- triggerType: z.ZodEnum<["manual", "onetime", "recurrent", "io", "nonstop"]>;
88
78
  statusCameraLed: z.ZodBoolean;
89
79
  statusCameraOutput: z.ZodString;
90
80
  saveToSdCard: z.ZodBoolean;
@@ -97,6 +87,7 @@ export declare const mpegDvbSchema: z.ZodObject<{
97
87
  title: string;
98
88
  trigger: {
99
89
  type: "manual";
90
+ ioPort: string | null;
100
91
  } | {
101
92
  type: "onetime";
102
93
  startTime: number;
@@ -109,10 +100,6 @@ export declare const mpegDvbSchema: z.ZodObject<{
109
100
  stopTimeS: number;
110
101
  isActive: boolean;
111
102
  }[];
112
- } | {
113
- type: "io";
114
- ioPort: string;
115
- triggerOn: "open" | "closed";
116
103
  };
117
104
  ipAddress: string;
118
105
  standard: "DVB" | "ATSC";
@@ -126,7 +113,6 @@ export declare const mpegDvbSchema: z.ZodObject<{
126
113
  pcrPeriodMs: number;
127
114
  providerName: string;
128
115
  serviceName: string;
129
- triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
130
116
  statusCameraLed: boolean;
131
117
  statusCameraOutput: string;
132
118
  saveToSdCard: boolean;
@@ -139,6 +125,7 @@ export declare const mpegDvbSchema: z.ZodObject<{
139
125
  title: string;
140
126
  trigger: {
141
127
  type: "manual";
128
+ ioPort: string | null;
142
129
  } | {
143
130
  type: "onetime";
144
131
  startTime: number;
@@ -151,10 +138,6 @@ export declare const mpegDvbSchema: z.ZodObject<{
151
138
  stopTimeS: number;
152
139
  isActive: boolean;
153
140
  }[];
154
- } | {
155
- type: "io";
156
- ioPort: string;
157
- triggerOn: "open" | "closed";
158
141
  };
159
142
  ipAddress: string;
160
143
  standard: "DVB" | "ATSC";
@@ -168,7 +151,6 @@ export declare const mpegDvbSchema: z.ZodObject<{
168
151
  pcrPeriodMs: number;
169
152
  providerName: string;
170
153
  serviceName: string;
171
- triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
172
154
  statusCameraLed: boolean;
173
155
  statusCameraOutput: string;
174
156
  saveToSdCard: boolean;
@@ -21,7 +21,6 @@ exports.mpegDvbSchema = streamCommonTypes_1.streamCommonSchema.extend({
21
21
  pcrPeriodMs: zod_1.default.number(),
22
22
  providerName: zod_1.default.string(),
23
23
  serviceName: zod_1.default.string(),
24
- triggerType: zod_1.default.enum(['manual', 'onetime', 'recurrent', 'io', 'nonstop']),
25
24
  statusCameraLed: zod_1.default.boolean(),
26
25
  statusCameraOutput: zod_1.default.string(),
27
26
  saveToSdCard: zod_1.default.boolean(),
@@ -6,10 +6,13 @@ export declare const rtmpSchema: z.ZodObject<{
6
6
  title: z.ZodString;
7
7
  trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8
8
  type: z.ZodLiteral<"manual">;
9
+ ioPort: z.ZodNullable<z.ZodString>;
9
10
  }, "strip", z.ZodTypeAny, {
10
11
  type: "manual";
12
+ ioPort: string | null;
11
13
  }, {
12
14
  type: "manual";
15
+ ioPort: string | null;
13
16
  }>, z.ZodObject<{
14
17
  type: z.ZodLiteral<"onetime">;
15
18
  startTime: z.ZodNumber;
@@ -56,18 +59,6 @@ export declare const rtmpSchema: z.ZodObject<{
56
59
  stopTimeS: number;
57
60
  isActive: boolean;
58
61
  }[];
59
- }>, z.ZodObject<{
60
- type: z.ZodLiteral<"io">;
61
- ioPort: z.ZodString;
62
- triggerOn: z.ZodUnion<[z.ZodLiteral<"open">, z.ZodLiteral<"closed">]>;
63
- }, "strip", z.ZodTypeAny, {
64
- type: "io";
65
- ioPort: string;
66
- triggerOn: "open" | "closed";
67
- }, {
68
- type: "io";
69
- ioPort: string;
70
- triggerOn: "open" | "closed";
71
62
  }>]>;
72
63
  } & {
73
64
  type: z.ZodLiteral<"rtmp">;
@@ -79,6 +70,7 @@ export declare const rtmpSchema: z.ZodObject<{
79
70
  title: string;
80
71
  trigger: {
81
72
  type: "manual";
73
+ ioPort: string | null;
82
74
  } | {
83
75
  type: "onetime";
84
76
  startTime: number;
@@ -91,10 +83,6 @@ export declare const rtmpSchema: z.ZodObject<{
91
83
  stopTimeS: number;
92
84
  isActive: boolean;
93
85
  }[];
94
- } | {
95
- type: "io";
96
- ioPort: string;
97
- triggerOn: "open" | "closed";
98
86
  };
99
87
  }, {
100
88
  type: "rtmp";
@@ -104,6 +92,7 @@ export declare const rtmpSchema: z.ZodObject<{
104
92
  title: string;
105
93
  trigger: {
106
94
  type: "manual";
95
+ ioPort: string | null;
107
96
  } | {
108
97
  type: "onetime";
109
98
  startTime: number;
@@ -116,9 +105,5 @@ export declare const rtmpSchema: z.ZodObject<{
116
105
  stopTimeS: number;
117
106
  isActive: boolean;
118
107
  }[];
119
- } | {
120
- type: "io";
121
- ioPort: string;
122
- triggerOn: "open" | "closed";
123
108
  };
124
109
  }>;
@@ -6,10 +6,13 @@ export declare const sdCardSchema: z.ZodObject<{
6
6
  title: z.ZodString;
7
7
  trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8
8
  type: z.ZodLiteral<"manual">;
9
+ ioPort: z.ZodNullable<z.ZodString>;
9
10
  }, "strip", z.ZodTypeAny, {
10
11
  type: "manual";
12
+ ioPort: string | null;
11
13
  }, {
12
14
  type: "manual";
15
+ ioPort: string | null;
13
16
  }>, z.ZodObject<{
14
17
  type: z.ZodLiteral<"onetime">;
15
18
  startTime: z.ZodNumber;
@@ -56,18 +59,6 @@ export declare const sdCardSchema: z.ZodObject<{
56
59
  stopTimeS: number;
57
60
  isActive: boolean;
58
61
  }[];
59
- }>, z.ZodObject<{
60
- type: z.ZodLiteral<"io">;
61
- ioPort: z.ZodString;
62
- triggerOn: z.ZodUnion<[z.ZodLiteral<"open">, z.ZodLiteral<"closed">]>;
63
- }, "strip", z.ZodTypeAny, {
64
- type: "io";
65
- ioPort: string;
66
- triggerOn: "open" | "closed";
67
- }, {
68
- type: "io";
69
- ioPort: string;
70
- triggerOn: "open" | "closed";
71
62
  }>]>;
72
63
  } & {
73
64
  type: z.ZodLiteral<"sd_card">;
@@ -79,6 +70,7 @@ export declare const sdCardSchema: z.ZodObject<{
79
70
  title: string;
80
71
  trigger: {
81
72
  type: "manual";
73
+ ioPort: string | null;
82
74
  } | {
83
75
  type: "onetime";
84
76
  startTime: number;
@@ -91,10 +83,6 @@ export declare const sdCardSchema: z.ZodObject<{
91
83
  stopTimeS: number;
92
84
  isActive: boolean;
93
85
  }[];
94
- } | {
95
- type: "io";
96
- ioPort: string;
97
- triggerOn: "open" | "closed";
98
86
  };
99
87
  }, {
100
88
  type: "sd_card";
@@ -104,6 +92,7 @@ export declare const sdCardSchema: z.ZodObject<{
104
92
  title: string;
105
93
  trigger: {
106
94
  type: "manual";
95
+ ioPort: string | null;
107
96
  } | {
108
97
  type: "onetime";
109
98
  startTime: number;
@@ -116,9 +105,5 @@ export declare const sdCardSchema: z.ZodObject<{
116
105
  stopTimeS: number;
117
106
  isActive: boolean;
118
107
  }[];
119
- } | {
120
- type: "io";
121
- ioPort: string;
122
- triggerOn: "open" | "closed";
123
108
  };
124
109
  }>;
@@ -3,10 +3,13 @@ export declare const streamTypeSchema: z.ZodUnion<[z.ZodLiteral<"youtube">, z.Zo
3
3
  export type TStreamType = z.infer<typeof streamTypeSchema>;
4
4
  export declare const streamTriggerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5
5
  type: z.ZodLiteral<"manual">;
6
+ ioPort: z.ZodNullable<z.ZodString>;
6
7
  }, "strip", z.ZodTypeAny, {
7
8
  type: "manual";
9
+ ioPort: string | null;
8
10
  }, {
9
11
  type: "manual";
12
+ ioPort: string | null;
10
13
  }>, z.ZodObject<{
11
14
  type: z.ZodLiteral<"onetime">;
12
15
  startTime: z.ZodNumber;
@@ -53,18 +56,6 @@ export declare const streamTriggerSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
53
56
  stopTimeS: number;
54
57
  isActive: boolean;
55
58
  }[];
56
- }>, z.ZodObject<{
57
- type: z.ZodLiteral<"io">;
58
- ioPort: z.ZodString;
59
- triggerOn: z.ZodUnion<[z.ZodLiteral<"open">, z.ZodLiteral<"closed">]>;
60
- }, "strip", z.ZodTypeAny, {
61
- type: "io";
62
- ioPort: string;
63
- triggerOn: "open" | "closed";
64
- }, {
65
- type: "io";
66
- ioPort: string;
67
- triggerOn: "open" | "closed";
68
59
  }>]>;
69
60
  export type TStreamTrigger = z.infer<typeof streamTriggerSchema>;
70
61
  export type TStreamTriggerType = TStreamTrigger['type'];
@@ -75,10 +66,13 @@ export declare const streamCommonSchema: z.ZodObject<{
75
66
  title: z.ZodString;
76
67
  trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
77
68
  type: z.ZodLiteral<"manual">;
69
+ ioPort: z.ZodNullable<z.ZodString>;
78
70
  }, "strip", z.ZodTypeAny, {
79
71
  type: "manual";
72
+ ioPort: string | null;
80
73
  }, {
81
74
  type: "manual";
75
+ ioPort: string | null;
82
76
  }>, z.ZodObject<{
83
77
  type: z.ZodLiteral<"onetime">;
84
78
  startTime: z.ZodNumber;
@@ -125,18 +119,6 @@ export declare const streamCommonSchema: z.ZodObject<{
125
119
  stopTimeS: number;
126
120
  isActive: boolean;
127
121
  }[];
128
- }>, z.ZodObject<{
129
- type: z.ZodLiteral<"io">;
130
- ioPort: z.ZodString;
131
- triggerOn: z.ZodUnion<[z.ZodLiteral<"open">, z.ZodLiteral<"closed">]>;
132
- }, "strip", z.ZodTypeAny, {
133
- type: "io";
134
- ioPort: string;
135
- triggerOn: "open" | "closed";
136
- }, {
137
- type: "io";
138
- ioPort: string;
139
- triggerOn: "open" | "closed";
140
122
  }>]>;
141
123
  }, "strip", z.ZodTypeAny, {
142
124
  enabled: boolean;
@@ -145,6 +127,7 @@ export declare const streamCommonSchema: z.ZodObject<{
145
127
  title: string;
146
128
  trigger: {
147
129
  type: "manual";
130
+ ioPort: string | null;
148
131
  } | {
149
132
  type: "onetime";
150
133
  startTime: number;
@@ -157,10 +140,6 @@ export declare const streamCommonSchema: z.ZodObject<{
157
140
  stopTimeS: number;
158
141
  isActive: boolean;
159
142
  }[];
160
- } | {
161
- type: "io";
162
- ioPort: string;
163
- triggerOn: "open" | "closed";
164
143
  };
165
144
  }, {
166
145
  enabled: boolean;
@@ -169,6 +148,7 @@ export declare const streamCommonSchema: z.ZodObject<{
169
148
  title: string;
170
149
  trigger: {
171
150
  type: "manual";
151
+ ioPort: string | null;
172
152
  } | {
173
153
  type: "onetime";
174
154
  startTime: number;
@@ -181,10 +161,6 @@ export declare const streamCommonSchema: z.ZodObject<{
181
161
  stopTimeS: number;
182
162
  isActive: boolean;
183
163
  }[];
184
- } | {
185
- type: "io";
186
- ioPort: string;
187
- triggerOn: "open" | "closed";
188
164
  };
189
165
  }>;
190
166
  export type TCommonStream = z.infer<typeof streamCommonSchema>;
@@ -12,7 +12,10 @@ exports.streamTypeSchema = zod_1.z.union([
12
12
  zod_1.z.literal('rtmp'),
13
13
  ]);
14
14
  exports.streamTriggerSchema = zod_1.z.discriminatedUnion('type', [
15
- zod_1.z.object({ type: zod_1.z.literal('manual') }),
15
+ zod_1.z.object({
16
+ type: zod_1.z.literal('manual'),
17
+ ioPort: zod_1.z.string().nullable(),
18
+ }),
16
19
  zod_1.z.object({ type: zod_1.z.literal('onetime'), startTime: zod_1.z.number(), stopTime: zod_1.z.number() }),
17
20
  zod_1.z.object({
18
21
  type: zod_1.z.literal('recurrent'),
@@ -23,11 +26,6 @@ exports.streamTriggerSchema = zod_1.z.discriminatedUnion('type', [
23
26
  isActive: zod_1.z.boolean(),
24
27
  })),
25
28
  }),
26
- zod_1.z.object({
27
- type: zod_1.z.literal('io'),
28
- ioPort: zod_1.z.string(),
29
- triggerOn: zod_1.z.union([zod_1.z.literal('open'), zod_1.z.literal('closed')]),
30
- }),
31
29
  ]);
32
30
  exports.streamCommonSchema = zod_1.z.object({
33
31
  id: zod_1.z.number(),
@@ -6,10 +6,13 @@ export declare const windySchema: z.ZodObject<{
6
6
  title: z.ZodString;
7
7
  trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8
8
  type: z.ZodLiteral<"manual">;
9
+ ioPort: z.ZodNullable<z.ZodString>;
9
10
  }, "strip", z.ZodTypeAny, {
10
11
  type: "manual";
12
+ ioPort: string | null;
11
13
  }, {
12
14
  type: "manual";
15
+ ioPort: string | null;
13
16
  }>, z.ZodObject<{
14
17
  type: z.ZodLiteral<"onetime">;
15
18
  startTime: z.ZodNumber;
@@ -56,18 +59,6 @@ export declare const windySchema: z.ZodObject<{
56
59
  stopTimeS: number;
57
60
  isActive: boolean;
58
61
  }[];
59
- }>, z.ZodObject<{
60
- type: z.ZodLiteral<"io">;
61
- ioPort: z.ZodString;
62
- triggerOn: z.ZodUnion<[z.ZodLiteral<"open">, z.ZodLiteral<"closed">]>;
63
- }, "strip", z.ZodTypeAny, {
64
- type: "io";
65
- ioPort: string;
66
- triggerOn: "open" | "closed";
67
- }, {
68
- type: "io";
69
- ioPort: string;
70
- triggerOn: "open" | "closed";
71
62
  }>]>;
72
63
  } & {
73
64
  type: z.ZodLiteral<"windy">;
@@ -79,6 +70,7 @@ export declare const windySchema: z.ZodObject<{
79
70
  title: string;
80
71
  trigger: {
81
72
  type: "manual";
73
+ ioPort: string | null;
82
74
  } | {
83
75
  type: "onetime";
84
76
  startTime: number;
@@ -91,10 +83,6 @@ export declare const windySchema: z.ZodObject<{
91
83
  stopTimeS: number;
92
84
  isActive: boolean;
93
85
  }[];
94
- } | {
95
- type: "io";
96
- ioPort: string;
97
- triggerOn: "open" | "closed";
98
86
  };
99
87
  }, {
100
88
  type: "windy";
@@ -104,6 +92,7 @@ export declare const windySchema: z.ZodObject<{
104
92
  title: string;
105
93
  trigger: {
106
94
  type: "manual";
95
+ ioPort: string | null;
107
96
  } | {
108
97
  type: "onetime";
109
98
  startTime: number;
@@ -116,9 +105,5 @@ export declare const windySchema: z.ZodObject<{
116
105
  stopTimeS: number;
117
106
  isActive: boolean;
118
107
  }[];
119
- } | {
120
- type: "io";
121
- ioPort: string;
122
- triggerOn: "open" | "closed";
123
108
  };
124
109
  }>;
@@ -6,10 +6,13 @@ export declare const youtubeSchema: z.ZodObject<{
6
6
  title: z.ZodString;
7
7
  trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8
8
  type: z.ZodLiteral<"manual">;
9
+ ioPort: z.ZodNullable<z.ZodString>;
9
10
  }, "strip", z.ZodTypeAny, {
10
11
  type: "manual";
12
+ ioPort: string | null;
11
13
  }, {
12
14
  type: "manual";
15
+ ioPort: string | null;
13
16
  }>, z.ZodObject<{
14
17
  type: z.ZodLiteral<"onetime">;
15
18
  startTime: z.ZodNumber;
@@ -56,18 +59,6 @@ export declare const youtubeSchema: z.ZodObject<{
56
59
  stopTimeS: number;
57
60
  isActive: boolean;
58
61
  }[];
59
- }>, z.ZodObject<{
60
- type: z.ZodLiteral<"io">;
61
- ioPort: z.ZodString;
62
- triggerOn: z.ZodUnion<[z.ZodLiteral<"open">, z.ZodLiteral<"closed">]>;
63
- }, "strip", z.ZodTypeAny, {
64
- type: "io";
65
- ioPort: string;
66
- triggerOn: "open" | "closed";
67
- }, {
68
- type: "io";
69
- ioPort: string;
70
- triggerOn: "open" | "closed";
71
62
  }>]>;
72
63
  } & {
73
64
  type: z.ZodLiteral<"youtube">;
@@ -79,6 +70,7 @@ export declare const youtubeSchema: z.ZodObject<{
79
70
  title: string;
80
71
  trigger: {
81
72
  type: "manual";
73
+ ioPort: string | null;
82
74
  } | {
83
75
  type: "onetime";
84
76
  startTime: number;
@@ -91,10 +83,6 @@ export declare const youtubeSchema: z.ZodObject<{
91
83
  stopTimeS: number;
92
84
  isActive: boolean;
93
85
  }[];
94
- } | {
95
- type: "io";
96
- ioPort: string;
97
- triggerOn: "open" | "closed";
98
86
  };
99
87
  }, {
100
88
  type: "youtube";
@@ -104,6 +92,7 @@ export declare const youtubeSchema: z.ZodObject<{
104
92
  title: string;
105
93
  trigger: {
106
94
  type: "manual";
95
+ ioPort: string | null;
107
96
  } | {
108
97
  type: "onetime";
109
98
  startTime: number;
@@ -116,9 +105,5 @@ export declare const youtubeSchema: z.ZodObject<{
116
105
  stopTimeS: number;
117
106
  isActive: boolean;
118
107
  }[];
119
- } | {
120
- type: "io";
121
- ioPort: string;
122
- triggerOn: "open" | "closed";
123
108
  };
124
109
  }>;
@@ -15,7 +15,6 @@ export const mpegDvbSchema = streamCommonSchema.extend({
15
15
  pcrPeriodMs: z.number(),
16
16
  providerName: z.string(),
17
17
  serviceName: z.string(),
18
- triggerType: z.enum(['manual', 'onetime', 'recurrent', 'io', 'nonstop']),
19
18
  statusCameraLed: z.boolean(),
20
19
  statusCameraOutput: z.string(),
21
20
  saveToSdCard: z.boolean(),
@@ -9,7 +9,10 @@ export const streamTypeSchema = z.union([
9
9
  z.literal('rtmp'),
10
10
  ]);
11
11
  export const streamTriggerSchema = z.discriminatedUnion('type', [
12
- z.object({ type: z.literal('manual') }),
12
+ z.object({
13
+ type: z.literal('manual'),
14
+ ioPort: z.string().nullable(),
15
+ }),
13
16
  z.object({ type: z.literal('onetime'), startTime: z.number(), stopTime: z.number() }),
14
17
  z.object({
15
18
  type: z.literal('recurrent'),
@@ -20,11 +23,6 @@ export const streamTriggerSchema = z.discriminatedUnion('type', [
20
23
  isActive: z.boolean(),
21
24
  })),
22
25
  }),
23
- z.object({
24
- type: z.literal('io'),
25
- ioPort: z.string(),
26
- triggerOn: z.union([z.literal('open'), z.literal('closed')]),
27
- }),
28
26
  ]);
29
27
  export const streamCommonSchema = z.object({
30
28
  id: z.number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstreamerlib",
3
- "version": "4.0.0-beta.83",
3
+ "version": "4.0.0-beta.84",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engine": {