@tracearr/shared 2.2.3-beta.1 → 2.2.4-beta.1
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.
- package/dist/automations/__tests__/definition.test.js +2 -2
- package/dist/automations/__tests__/templates.test.js.map +1 -1
- package/dist/automations/actions.d.ts +219 -219
- package/dist/automations/actions.d.ts.map +1 -1
- package/dist/automations/conditions.d.ts +129 -129
- package/dist/automations/conditions.d.ts.map +1 -1
- package/dist/automations/definition.d.ts +330 -327
- package/dist/automations/definition.d.ts.map +1 -1
- package/dist/automations/dryRun.d.ts +99 -98
- package/dist/automations/dryRun.d.ts.map +1 -1
- package/dist/automations/share.d.ts.map +1 -1
- package/dist/automations/share.js.map +1 -1
- package/dist/automations/templates.d.ts +276 -274
- package/dist/automations/templates.d.ts.map +1 -1
- package/dist/automations/templates.js.map +1 -1
- package/dist/automations/triggers.d.ts +46 -40
- package/dist/automations/triggers.d.ts.map +1 -1
- package/dist/automations/triggers.js +1 -0
- package/dist/automations/triggers.js.map +1 -1
- package/dist/constants.d.ts +69 -69
- package/dist/constants.d.ts.map +1 -1
- package/dist/destinations.d.ts +37 -37
- package/dist/destinations.d.ts.map +1 -1
- package/dist/dynamicRange.d.ts +1 -1
- package/dist/dynamicRange.d.ts.map +1 -1
- package/dist/listQuery.d.ts +1 -1
- package/dist/media.js.map +1 -1
- package/dist/mediaServerLinks.js.map +1 -1
- package/dist/resolution.d.ts.map +1 -1
- package/dist/schemas.d.ts +120 -120
- package/dist/schemas.d.ts.map +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/violations.js.map +1 -1
- package/package.json +2 -4
|
@@ -1,165 +1,171 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const sendActionSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
4
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3
5
|
type: z.ZodLiteral<"send">;
|
|
4
6
|
to: z.ZodArray<z.ZodUUID>;
|
|
5
7
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
6
8
|
title: z.ZodOptional<z.ZodString>;
|
|
7
9
|
body: z.ZodOptional<z.ZodString>;
|
|
8
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
9
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
export declare const trustActionSchema: z.ZodObject<{
|
|
12
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
13
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
12
14
|
type: z.ZodLiteral<"trust">;
|
|
13
15
|
mode: z.ZodEnum<{
|
|
14
|
-
set: "set";
|
|
15
16
|
adjust: "adjust";
|
|
16
17
|
reset: "reset";
|
|
18
|
+
set: "set";
|
|
17
19
|
}>;
|
|
18
20
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
19
21
|
value: z.ZodOptional<z.ZodNumber>;
|
|
20
22
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
21
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
22
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
export declare const sessionTargetSchema: z.ZodEnum<{
|
|
25
|
-
triggering: "triggering";
|
|
26
|
-
oldest: "oldest";
|
|
27
|
-
newest: "newest";
|
|
28
25
|
all_except_one: "all_except_one";
|
|
29
26
|
all_user: "all_user";
|
|
27
|
+
newest: "newest";
|
|
28
|
+
oldest: "oldest";
|
|
29
|
+
triggering: "triggering";
|
|
30
30
|
}>;
|
|
31
31
|
export type SessionTarget = z.infer<typeof sessionTargetSchema>;
|
|
32
32
|
export declare const killStreamActionSchema: z.ZodObject<{
|
|
33
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
34
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
33
35
|
type: z.ZodLiteral<"kill_stream">;
|
|
34
36
|
delay_seconds: z.ZodOptional<z.ZodNumber>;
|
|
35
37
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
36
38
|
message: z.ZodOptional<z.ZodString>;
|
|
37
39
|
target: z.ZodOptional<z.ZodEnum<{
|
|
38
|
-
triggering: "triggering";
|
|
39
|
-
oldest: "oldest";
|
|
40
|
-
newest: "newest";
|
|
41
40
|
all_except_one: "all_except_one";
|
|
42
41
|
all_user: "all_user";
|
|
42
|
+
newest: "newest";
|
|
43
|
+
oldest: "oldest";
|
|
44
|
+
triggering: "triggering";
|
|
43
45
|
}>>;
|
|
44
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
45
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
46
46
|
}, z.core.$strip>;
|
|
47
47
|
export declare const messageClientActionSchema: z.ZodObject<{
|
|
48
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
49
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
48
50
|
type: z.ZodLiteral<"message_client">;
|
|
49
51
|
message: z.ZodString;
|
|
50
52
|
target: z.ZodOptional<z.ZodEnum<{
|
|
51
|
-
triggering: "triggering";
|
|
52
|
-
oldest: "oldest";
|
|
53
|
-
newest: "newest";
|
|
54
53
|
all_except_one: "all_except_one";
|
|
55
54
|
all_user: "all_user";
|
|
55
|
+
newest: "newest";
|
|
56
|
+
oldest: "oldest";
|
|
57
|
+
triggering: "triggering";
|
|
56
58
|
}>>;
|
|
57
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
58
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
59
59
|
}, z.core.$strip>;
|
|
60
60
|
/** Everything an `if` branch may hold: the effects, with no further branching. */
|
|
61
61
|
export declare const leafActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
62
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
63
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
62
64
|
type: z.ZodLiteral<"send">;
|
|
63
65
|
to: z.ZodArray<z.ZodUUID>;
|
|
64
66
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
65
67
|
title: z.ZodOptional<z.ZodString>;
|
|
66
68
|
body: z.ZodOptional<z.ZodString>;
|
|
69
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
67
70
|
id: z.ZodOptional<z.ZodUUID>;
|
|
68
71
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
70
72
|
type: z.ZodLiteral<"trust">;
|
|
71
73
|
mode: z.ZodEnum<{
|
|
72
|
-
set: "set";
|
|
73
74
|
adjust: "adjust";
|
|
74
75
|
reset: "reset";
|
|
76
|
+
set: "set";
|
|
75
77
|
}>;
|
|
76
78
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
77
79
|
value: z.ZodOptional<z.ZodNumber>;
|
|
78
80
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
79
82
|
id: z.ZodOptional<z.ZodUUID>;
|
|
80
83
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
82
84
|
type: z.ZodLiteral<"kill_stream">;
|
|
83
85
|
delay_seconds: z.ZodOptional<z.ZodNumber>;
|
|
84
86
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
85
87
|
message: z.ZodOptional<z.ZodString>;
|
|
86
88
|
target: z.ZodOptional<z.ZodEnum<{
|
|
87
|
-
triggering: "triggering";
|
|
88
|
-
oldest: "oldest";
|
|
89
|
-
newest: "newest";
|
|
90
89
|
all_except_one: "all_except_one";
|
|
91
90
|
all_user: "all_user";
|
|
91
|
+
newest: "newest";
|
|
92
|
+
oldest: "oldest";
|
|
93
|
+
triggering: "triggering";
|
|
92
94
|
}>>;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
93
96
|
id: z.ZodOptional<z.ZodUUID>;
|
|
94
97
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
96
98
|
type: z.ZodLiteral<"message_client">;
|
|
97
99
|
message: z.ZodString;
|
|
98
100
|
target: z.ZodOptional<z.ZodEnum<{
|
|
99
|
-
triggering: "triggering";
|
|
100
|
-
oldest: "oldest";
|
|
101
|
-
newest: "newest";
|
|
102
101
|
all_except_one: "all_except_one";
|
|
103
102
|
all_user: "all_user";
|
|
103
|
+
newest: "newest";
|
|
104
|
+
oldest: "oldest";
|
|
105
|
+
triggering: "triggering";
|
|
104
106
|
}>>;
|
|
105
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
106
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
107
107
|
}, z.core.$strip>], "type">;
|
|
108
108
|
export declare const ifActionSchema: z.ZodObject<{
|
|
109
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
110
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
109
111
|
type: z.ZodLiteral<"if">;
|
|
110
112
|
conditions: z.ZodObject<{
|
|
111
113
|
groups: z.ZodArray<z.ZodObject<{
|
|
114
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
115
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
112
116
|
match: z.ZodOptional<z.ZodEnum<{
|
|
113
|
-
any: "any";
|
|
114
117
|
all: "all";
|
|
118
|
+
any: "any";
|
|
115
119
|
}>>;
|
|
116
120
|
conditions: z.ZodArray<z.ZodObject<{
|
|
121
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
122
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
117
123
|
field: z.ZodUnion<readonly [z.ZodEnum<{
|
|
118
|
-
concurrent_streams: "concurrent_streams";
|
|
119
124
|
active_session_distance_km: "active_session_distance_km";
|
|
120
|
-
|
|
121
|
-
unique_ips_in_window: "unique_ips_in_window";
|
|
122
|
-
unique_devices_in_window: "unique_devices_in_window";
|
|
123
|
-
inactive_days: "inactive_days";
|
|
125
|
+
concurrent_streams: "concurrent_streams";
|
|
124
126
|
current_pause_minutes: "current_pause_minutes";
|
|
127
|
+
inactive_days: "inactive_days";
|
|
125
128
|
total_pause_minutes: "total_pause_minutes";
|
|
129
|
+
travel_speed_kmh: "travel_speed_kmh";
|
|
130
|
+
unique_devices_in_window: "unique_devices_in_window";
|
|
131
|
+
unique_ips_in_window: "unique_ips_in_window";
|
|
126
132
|
}>, z.ZodEnum<{
|
|
127
|
-
source_resolution: "source_resolution";
|
|
128
|
-
output_resolution: "output_resolution";
|
|
129
|
-
is_transcoding: "is_transcoding";
|
|
130
133
|
is_transcode_downgrade: "is_transcode_downgrade";
|
|
134
|
+
is_transcoding: "is_transcoding";
|
|
135
|
+
output_resolution: "output_resolution";
|
|
131
136
|
source_bitrate_mbps: "source_bitrate_mbps";
|
|
137
|
+
source_resolution: "source_resolution";
|
|
132
138
|
}>, z.ZodEnum<{
|
|
133
|
-
user_id: "user_id";
|
|
134
|
-
trust_score: "trust_score";
|
|
135
139
|
account_age_days: "account_age_days";
|
|
140
|
+
trust_score: "trust_score";
|
|
141
|
+
user_id: "user_id";
|
|
136
142
|
}>, z.ZodEnum<{
|
|
137
|
-
device_type: "device_type";
|
|
138
143
|
client_name: "client_name";
|
|
144
|
+
device_type: "device_type";
|
|
139
145
|
platform: "platform";
|
|
140
146
|
}>, z.ZodEnum<{
|
|
141
|
-
is_local_network: "is_local_network";
|
|
142
147
|
country: "country";
|
|
143
148
|
ip_in_range: "ip_in_range";
|
|
149
|
+
is_local_network: "is_local_network";
|
|
144
150
|
}>, z.ZodEnum<{
|
|
145
|
-
server_id: "server_id";
|
|
146
151
|
media_type: "media_type";
|
|
152
|
+
server_id: "server_id";
|
|
147
153
|
}>, z.ZodEnum<{
|
|
154
|
+
audio_channels_after: "audio_channels_after";
|
|
155
|
+
dynamic_range_after: "dynamic_range_after";
|
|
156
|
+
file_size_after: "file_size_after";
|
|
148
157
|
library_item_type: "library_item_type";
|
|
149
158
|
library_name: "library_name";
|
|
150
159
|
resolution_after: "resolution_after";
|
|
151
|
-
dynamic_range_after: "dynamic_range_after";
|
|
152
160
|
video_codec_after: "video_codec_after";
|
|
153
|
-
audio_channels_after: "audio_channels_after";
|
|
154
|
-
file_size_after: "file_size_after";
|
|
155
161
|
}>]>;
|
|
156
162
|
operator: z.ZodUnion<readonly [z.ZodEnum<{
|
|
157
163
|
eq: "eq";
|
|
158
|
-
neq: "neq";
|
|
159
164
|
gt: "gt";
|
|
160
165
|
gte: "gte";
|
|
161
166
|
lt: "lt";
|
|
162
167
|
lte: "lte";
|
|
168
|
+
neq: "neq";
|
|
163
169
|
}>, z.ZodEnum<{
|
|
164
170
|
in: "in";
|
|
165
171
|
not_in: "not_in";
|
|
@@ -173,219 +179,219 @@ export declare const ifActionSchema: z.ZodObject<{
|
|
|
173
179
|
exclude_same_device: z.ZodOptional<z.ZodBoolean>;
|
|
174
180
|
exclude_same_ip: z.ZodOptional<z.ZodBoolean>;
|
|
175
181
|
count_device_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
176
|
-
|
|
182
|
+
browser: "browser";
|
|
183
|
+
desktop: "desktop";
|
|
177
184
|
mobile: "mobile";
|
|
178
185
|
tablet: "tablet";
|
|
179
186
|
tv: "tv";
|
|
180
|
-
|
|
181
|
-
browser: "browser";
|
|
187
|
+
unknown: "unknown";
|
|
182
188
|
}>>>;
|
|
183
189
|
}, z.core.$strip>>;
|
|
184
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
185
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
186
190
|
}, z.core.$strip>>;
|
|
187
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
188
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
189
191
|
}, z.core.$strip>>;
|
|
190
192
|
}, z.core.$strip>;
|
|
191
193
|
then: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
194
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
195
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
192
196
|
type: z.ZodLiteral<"send">;
|
|
193
197
|
to: z.ZodArray<z.ZodUUID>;
|
|
194
198
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
195
199
|
title: z.ZodOptional<z.ZodString>;
|
|
196
200
|
body: z.ZodOptional<z.ZodString>;
|
|
201
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
197
202
|
id: z.ZodOptional<z.ZodUUID>;
|
|
198
203
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
200
204
|
type: z.ZodLiteral<"trust">;
|
|
201
205
|
mode: z.ZodEnum<{
|
|
202
|
-
set: "set";
|
|
203
206
|
adjust: "adjust";
|
|
204
207
|
reset: "reset";
|
|
208
|
+
set: "set";
|
|
205
209
|
}>;
|
|
206
210
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
207
211
|
value: z.ZodOptional<z.ZodNumber>;
|
|
208
212
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
209
214
|
id: z.ZodOptional<z.ZodUUID>;
|
|
210
215
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
211
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
212
216
|
type: z.ZodLiteral<"kill_stream">;
|
|
213
217
|
delay_seconds: z.ZodOptional<z.ZodNumber>;
|
|
214
218
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
215
219
|
message: z.ZodOptional<z.ZodString>;
|
|
216
220
|
target: z.ZodOptional<z.ZodEnum<{
|
|
217
|
-
triggering: "triggering";
|
|
218
|
-
oldest: "oldest";
|
|
219
|
-
newest: "newest";
|
|
220
221
|
all_except_one: "all_except_one";
|
|
221
222
|
all_user: "all_user";
|
|
223
|
+
newest: "newest";
|
|
224
|
+
oldest: "oldest";
|
|
225
|
+
triggering: "triggering";
|
|
222
226
|
}>>;
|
|
227
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
223
228
|
id: z.ZodOptional<z.ZodUUID>;
|
|
224
229
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
225
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
226
230
|
type: z.ZodLiteral<"message_client">;
|
|
227
231
|
message: z.ZodString;
|
|
228
232
|
target: z.ZodOptional<z.ZodEnum<{
|
|
229
|
-
triggering: "triggering";
|
|
230
|
-
oldest: "oldest";
|
|
231
|
-
newest: "newest";
|
|
232
233
|
all_except_one: "all_except_one";
|
|
233
234
|
all_user: "all_user";
|
|
235
|
+
newest: "newest";
|
|
236
|
+
oldest: "oldest";
|
|
237
|
+
triggering: "triggering";
|
|
234
238
|
}>>;
|
|
235
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
236
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
237
239
|
}, z.core.$strip>], "type">>;
|
|
238
240
|
else: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
241
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
242
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
239
243
|
type: z.ZodLiteral<"send">;
|
|
240
244
|
to: z.ZodArray<z.ZodUUID>;
|
|
241
245
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
242
246
|
title: z.ZodOptional<z.ZodString>;
|
|
243
247
|
body: z.ZodOptional<z.ZodString>;
|
|
248
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
244
249
|
id: z.ZodOptional<z.ZodUUID>;
|
|
245
250
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
246
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
247
251
|
type: z.ZodLiteral<"trust">;
|
|
248
252
|
mode: z.ZodEnum<{
|
|
249
|
-
set: "set";
|
|
250
253
|
adjust: "adjust";
|
|
251
254
|
reset: "reset";
|
|
255
|
+
set: "set";
|
|
252
256
|
}>;
|
|
253
257
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
254
258
|
value: z.ZodOptional<z.ZodNumber>;
|
|
255
259
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
260
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
256
261
|
id: z.ZodOptional<z.ZodUUID>;
|
|
257
262
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
258
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
259
263
|
type: z.ZodLiteral<"kill_stream">;
|
|
260
264
|
delay_seconds: z.ZodOptional<z.ZodNumber>;
|
|
261
265
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
262
266
|
message: z.ZodOptional<z.ZodString>;
|
|
263
267
|
target: z.ZodOptional<z.ZodEnum<{
|
|
264
|
-
triggering: "triggering";
|
|
265
|
-
oldest: "oldest";
|
|
266
|
-
newest: "newest";
|
|
267
268
|
all_except_one: "all_except_one";
|
|
268
269
|
all_user: "all_user";
|
|
270
|
+
newest: "newest";
|
|
271
|
+
oldest: "oldest";
|
|
272
|
+
triggering: "triggering";
|
|
269
273
|
}>>;
|
|
274
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
270
275
|
id: z.ZodOptional<z.ZodUUID>;
|
|
271
276
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
272
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
273
277
|
type: z.ZodLiteral<"message_client">;
|
|
274
278
|
message: z.ZodString;
|
|
275
279
|
target: z.ZodOptional<z.ZodEnum<{
|
|
276
|
-
triggering: "triggering";
|
|
277
|
-
oldest: "oldest";
|
|
278
|
-
newest: "newest";
|
|
279
280
|
all_except_one: "all_except_one";
|
|
280
281
|
all_user: "all_user";
|
|
282
|
+
newest: "newest";
|
|
283
|
+
oldest: "oldest";
|
|
284
|
+
triggering: "triggering";
|
|
281
285
|
}>>;
|
|
282
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
283
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
284
286
|
}, z.core.$strip>], "type">>;
|
|
285
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
286
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
287
287
|
}, z.core.$strict>;
|
|
288
288
|
export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
289
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
290
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
289
291
|
type: z.ZodLiteral<"send">;
|
|
290
292
|
to: z.ZodArray<z.ZodUUID>;
|
|
291
293
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
292
294
|
title: z.ZodOptional<z.ZodString>;
|
|
293
295
|
body: z.ZodOptional<z.ZodString>;
|
|
296
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
294
297
|
id: z.ZodOptional<z.ZodUUID>;
|
|
295
298
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
296
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
297
299
|
type: z.ZodLiteral<"trust">;
|
|
298
300
|
mode: z.ZodEnum<{
|
|
299
|
-
set: "set";
|
|
300
301
|
adjust: "adjust";
|
|
301
302
|
reset: "reset";
|
|
303
|
+
set: "set";
|
|
302
304
|
}>;
|
|
303
305
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
304
306
|
value: z.ZodOptional<z.ZodNumber>;
|
|
305
307
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
308
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
306
309
|
id: z.ZodOptional<z.ZodUUID>;
|
|
307
310
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
308
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
309
311
|
type: z.ZodLiteral<"kill_stream">;
|
|
310
312
|
delay_seconds: z.ZodOptional<z.ZodNumber>;
|
|
311
313
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
312
314
|
message: z.ZodOptional<z.ZodString>;
|
|
313
315
|
target: z.ZodOptional<z.ZodEnum<{
|
|
314
|
-
triggering: "triggering";
|
|
315
|
-
oldest: "oldest";
|
|
316
|
-
newest: "newest";
|
|
317
316
|
all_except_one: "all_except_one";
|
|
318
317
|
all_user: "all_user";
|
|
318
|
+
newest: "newest";
|
|
319
|
+
oldest: "oldest";
|
|
320
|
+
triggering: "triggering";
|
|
319
321
|
}>>;
|
|
322
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
320
323
|
id: z.ZodOptional<z.ZodUUID>;
|
|
321
324
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
322
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
323
325
|
type: z.ZodLiteral<"message_client">;
|
|
324
326
|
message: z.ZodString;
|
|
325
327
|
target: z.ZodOptional<z.ZodEnum<{
|
|
326
|
-
triggering: "triggering";
|
|
327
|
-
oldest: "oldest";
|
|
328
|
-
newest: "newest";
|
|
329
328
|
all_except_one: "all_except_one";
|
|
330
329
|
all_user: "all_user";
|
|
330
|
+
newest: "newest";
|
|
331
|
+
oldest: "oldest";
|
|
332
|
+
triggering: "triggering";
|
|
331
333
|
}>>;
|
|
334
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
332
335
|
id: z.ZodOptional<z.ZodUUID>;
|
|
333
336
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
334
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
335
337
|
type: z.ZodLiteral<"if">;
|
|
336
338
|
conditions: z.ZodObject<{
|
|
337
339
|
groups: z.ZodArray<z.ZodObject<{
|
|
340
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
341
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
338
342
|
match: z.ZodOptional<z.ZodEnum<{
|
|
339
|
-
any: "any";
|
|
340
343
|
all: "all";
|
|
344
|
+
any: "any";
|
|
341
345
|
}>>;
|
|
342
346
|
conditions: z.ZodArray<z.ZodObject<{
|
|
347
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
348
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
343
349
|
field: z.ZodUnion<readonly [z.ZodEnum<{
|
|
344
|
-
concurrent_streams: "concurrent_streams";
|
|
345
350
|
active_session_distance_km: "active_session_distance_km";
|
|
346
|
-
|
|
347
|
-
unique_ips_in_window: "unique_ips_in_window";
|
|
348
|
-
unique_devices_in_window: "unique_devices_in_window";
|
|
349
|
-
inactive_days: "inactive_days";
|
|
351
|
+
concurrent_streams: "concurrent_streams";
|
|
350
352
|
current_pause_minutes: "current_pause_minutes";
|
|
353
|
+
inactive_days: "inactive_days";
|
|
351
354
|
total_pause_minutes: "total_pause_minutes";
|
|
355
|
+
travel_speed_kmh: "travel_speed_kmh";
|
|
356
|
+
unique_devices_in_window: "unique_devices_in_window";
|
|
357
|
+
unique_ips_in_window: "unique_ips_in_window";
|
|
352
358
|
}>, z.ZodEnum<{
|
|
353
|
-
source_resolution: "source_resolution";
|
|
354
|
-
output_resolution: "output_resolution";
|
|
355
|
-
is_transcoding: "is_transcoding";
|
|
356
359
|
is_transcode_downgrade: "is_transcode_downgrade";
|
|
360
|
+
is_transcoding: "is_transcoding";
|
|
361
|
+
output_resolution: "output_resolution";
|
|
357
362
|
source_bitrate_mbps: "source_bitrate_mbps";
|
|
363
|
+
source_resolution: "source_resolution";
|
|
358
364
|
}>, z.ZodEnum<{
|
|
359
|
-
user_id: "user_id";
|
|
360
|
-
trust_score: "trust_score";
|
|
361
365
|
account_age_days: "account_age_days";
|
|
366
|
+
trust_score: "trust_score";
|
|
367
|
+
user_id: "user_id";
|
|
362
368
|
}>, z.ZodEnum<{
|
|
363
|
-
device_type: "device_type";
|
|
364
369
|
client_name: "client_name";
|
|
370
|
+
device_type: "device_type";
|
|
365
371
|
platform: "platform";
|
|
366
372
|
}>, z.ZodEnum<{
|
|
367
|
-
is_local_network: "is_local_network";
|
|
368
373
|
country: "country";
|
|
369
374
|
ip_in_range: "ip_in_range";
|
|
375
|
+
is_local_network: "is_local_network";
|
|
370
376
|
}>, z.ZodEnum<{
|
|
371
|
-
server_id: "server_id";
|
|
372
377
|
media_type: "media_type";
|
|
378
|
+
server_id: "server_id";
|
|
373
379
|
}>, z.ZodEnum<{
|
|
380
|
+
audio_channels_after: "audio_channels_after";
|
|
381
|
+
dynamic_range_after: "dynamic_range_after";
|
|
382
|
+
file_size_after: "file_size_after";
|
|
374
383
|
library_item_type: "library_item_type";
|
|
375
384
|
library_name: "library_name";
|
|
376
385
|
resolution_after: "resolution_after";
|
|
377
|
-
dynamic_range_after: "dynamic_range_after";
|
|
378
386
|
video_codec_after: "video_codec_after";
|
|
379
|
-
audio_channels_after: "audio_channels_after";
|
|
380
|
-
file_size_after: "file_size_after";
|
|
381
387
|
}>]>;
|
|
382
388
|
operator: z.ZodUnion<readonly [z.ZodEnum<{
|
|
383
389
|
eq: "eq";
|
|
384
|
-
neq: "neq";
|
|
385
390
|
gt: "gt";
|
|
386
391
|
gte: "gte";
|
|
387
392
|
lt: "lt";
|
|
388
393
|
lte: "lte";
|
|
394
|
+
neq: "neq";
|
|
389
395
|
}>, z.ZodEnum<{
|
|
390
396
|
in: "in";
|
|
391
397
|
not_in: "not_in";
|
|
@@ -399,220 +405,220 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
399
405
|
exclude_same_device: z.ZodOptional<z.ZodBoolean>;
|
|
400
406
|
exclude_same_ip: z.ZodOptional<z.ZodBoolean>;
|
|
401
407
|
count_device_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
402
|
-
|
|
408
|
+
browser: "browser";
|
|
409
|
+
desktop: "desktop";
|
|
403
410
|
mobile: "mobile";
|
|
404
411
|
tablet: "tablet";
|
|
405
412
|
tv: "tv";
|
|
406
|
-
|
|
407
|
-
browser: "browser";
|
|
413
|
+
unknown: "unknown";
|
|
408
414
|
}>>>;
|
|
409
415
|
}, z.core.$strip>>;
|
|
410
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
411
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
412
416
|
}, z.core.$strip>>;
|
|
413
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
414
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
415
417
|
}, z.core.$strip>>;
|
|
416
418
|
}, z.core.$strip>;
|
|
417
419
|
then: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
420
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
421
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
418
422
|
type: z.ZodLiteral<"send">;
|
|
419
423
|
to: z.ZodArray<z.ZodUUID>;
|
|
420
424
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
421
425
|
title: z.ZodOptional<z.ZodString>;
|
|
422
426
|
body: z.ZodOptional<z.ZodString>;
|
|
427
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
423
428
|
id: z.ZodOptional<z.ZodUUID>;
|
|
424
429
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
425
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
426
430
|
type: z.ZodLiteral<"trust">;
|
|
427
431
|
mode: z.ZodEnum<{
|
|
428
|
-
set: "set";
|
|
429
432
|
adjust: "adjust";
|
|
430
433
|
reset: "reset";
|
|
434
|
+
set: "set";
|
|
431
435
|
}>;
|
|
432
436
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
433
437
|
value: z.ZodOptional<z.ZodNumber>;
|
|
434
438
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
439
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
435
440
|
id: z.ZodOptional<z.ZodUUID>;
|
|
436
441
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
437
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
438
442
|
type: z.ZodLiteral<"kill_stream">;
|
|
439
443
|
delay_seconds: z.ZodOptional<z.ZodNumber>;
|
|
440
444
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
441
445
|
message: z.ZodOptional<z.ZodString>;
|
|
442
446
|
target: z.ZodOptional<z.ZodEnum<{
|
|
443
|
-
triggering: "triggering";
|
|
444
|
-
oldest: "oldest";
|
|
445
|
-
newest: "newest";
|
|
446
447
|
all_except_one: "all_except_one";
|
|
447
448
|
all_user: "all_user";
|
|
449
|
+
newest: "newest";
|
|
450
|
+
oldest: "oldest";
|
|
451
|
+
triggering: "triggering";
|
|
448
452
|
}>>;
|
|
453
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
449
454
|
id: z.ZodOptional<z.ZodUUID>;
|
|
450
455
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
451
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
452
456
|
type: z.ZodLiteral<"message_client">;
|
|
453
457
|
message: z.ZodString;
|
|
454
458
|
target: z.ZodOptional<z.ZodEnum<{
|
|
455
|
-
triggering: "triggering";
|
|
456
|
-
oldest: "oldest";
|
|
457
|
-
newest: "newest";
|
|
458
459
|
all_except_one: "all_except_one";
|
|
459
460
|
all_user: "all_user";
|
|
461
|
+
newest: "newest";
|
|
462
|
+
oldest: "oldest";
|
|
463
|
+
triggering: "triggering";
|
|
460
464
|
}>>;
|
|
461
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
462
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
463
465
|
}, z.core.$strip>], "type">>;
|
|
464
466
|
else: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
467
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
468
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
465
469
|
type: z.ZodLiteral<"send">;
|
|
466
470
|
to: z.ZodArray<z.ZodUUID>;
|
|
467
471
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
468
472
|
title: z.ZodOptional<z.ZodString>;
|
|
469
473
|
body: z.ZodOptional<z.ZodString>;
|
|
474
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
470
475
|
id: z.ZodOptional<z.ZodUUID>;
|
|
471
476
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
472
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
473
477
|
type: z.ZodLiteral<"trust">;
|
|
474
478
|
mode: z.ZodEnum<{
|
|
475
|
-
set: "set";
|
|
476
479
|
adjust: "adjust";
|
|
477
480
|
reset: "reset";
|
|
481
|
+
set: "set";
|
|
478
482
|
}>;
|
|
479
483
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
480
484
|
value: z.ZodOptional<z.ZodNumber>;
|
|
481
485
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
486
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
482
487
|
id: z.ZodOptional<z.ZodUUID>;
|
|
483
488
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
484
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
485
489
|
type: z.ZodLiteral<"kill_stream">;
|
|
486
490
|
delay_seconds: z.ZodOptional<z.ZodNumber>;
|
|
487
491
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
488
492
|
message: z.ZodOptional<z.ZodString>;
|
|
489
493
|
target: z.ZodOptional<z.ZodEnum<{
|
|
490
|
-
triggering: "triggering";
|
|
491
|
-
oldest: "oldest";
|
|
492
|
-
newest: "newest";
|
|
493
494
|
all_except_one: "all_except_one";
|
|
494
495
|
all_user: "all_user";
|
|
496
|
+
newest: "newest";
|
|
497
|
+
oldest: "oldest";
|
|
498
|
+
triggering: "triggering";
|
|
495
499
|
}>>;
|
|
500
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
496
501
|
id: z.ZodOptional<z.ZodUUID>;
|
|
497
502
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
498
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
499
503
|
type: z.ZodLiteral<"message_client">;
|
|
500
504
|
message: z.ZodString;
|
|
501
505
|
target: z.ZodOptional<z.ZodEnum<{
|
|
502
|
-
triggering: "triggering";
|
|
503
|
-
oldest: "oldest";
|
|
504
|
-
newest: "newest";
|
|
505
506
|
all_except_one: "all_except_one";
|
|
506
507
|
all_user: "all_user";
|
|
508
|
+
newest: "newest";
|
|
509
|
+
oldest: "oldest";
|
|
510
|
+
triggering: "triggering";
|
|
507
511
|
}>>;
|
|
508
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
509
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
510
512
|
}, z.core.$strip>], "type">>;
|
|
511
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
512
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
513
513
|
}, z.core.$strict>], "type">;
|
|
514
514
|
export declare const automationActionsSchema: z.ZodObject<{
|
|
515
515
|
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
516
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
517
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
516
518
|
type: z.ZodLiteral<"send">;
|
|
517
519
|
to: z.ZodArray<z.ZodUUID>;
|
|
518
520
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
519
521
|
title: z.ZodOptional<z.ZodString>;
|
|
520
522
|
body: z.ZodOptional<z.ZodString>;
|
|
523
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
521
524
|
id: z.ZodOptional<z.ZodUUID>;
|
|
522
525
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
523
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
524
526
|
type: z.ZodLiteral<"trust">;
|
|
525
527
|
mode: z.ZodEnum<{
|
|
526
|
-
set: "set";
|
|
527
528
|
adjust: "adjust";
|
|
528
529
|
reset: "reset";
|
|
530
|
+
set: "set";
|
|
529
531
|
}>;
|
|
530
532
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
531
533
|
value: z.ZodOptional<z.ZodNumber>;
|
|
532
534
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
535
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
533
536
|
id: z.ZodOptional<z.ZodUUID>;
|
|
534
537
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
535
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
536
538
|
type: z.ZodLiteral<"kill_stream">;
|
|
537
539
|
delay_seconds: z.ZodOptional<z.ZodNumber>;
|
|
538
540
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
539
541
|
message: z.ZodOptional<z.ZodString>;
|
|
540
542
|
target: z.ZodOptional<z.ZodEnum<{
|
|
541
|
-
triggering: "triggering";
|
|
542
|
-
oldest: "oldest";
|
|
543
|
-
newest: "newest";
|
|
544
543
|
all_except_one: "all_except_one";
|
|
545
544
|
all_user: "all_user";
|
|
545
|
+
newest: "newest";
|
|
546
|
+
oldest: "oldest";
|
|
547
|
+
triggering: "triggering";
|
|
546
548
|
}>>;
|
|
549
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
547
550
|
id: z.ZodOptional<z.ZodUUID>;
|
|
548
551
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
549
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
550
552
|
type: z.ZodLiteral<"message_client">;
|
|
551
553
|
message: z.ZodString;
|
|
552
554
|
target: z.ZodOptional<z.ZodEnum<{
|
|
553
|
-
triggering: "triggering";
|
|
554
|
-
oldest: "oldest";
|
|
555
|
-
newest: "newest";
|
|
556
555
|
all_except_one: "all_except_one";
|
|
557
556
|
all_user: "all_user";
|
|
557
|
+
newest: "newest";
|
|
558
|
+
oldest: "oldest";
|
|
559
|
+
triggering: "triggering";
|
|
558
560
|
}>>;
|
|
561
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
559
562
|
id: z.ZodOptional<z.ZodUUID>;
|
|
560
563
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
561
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
562
564
|
type: z.ZodLiteral<"if">;
|
|
563
565
|
conditions: z.ZodObject<{
|
|
564
566
|
groups: z.ZodArray<z.ZodObject<{
|
|
567
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
568
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
565
569
|
match: z.ZodOptional<z.ZodEnum<{
|
|
566
|
-
any: "any";
|
|
567
570
|
all: "all";
|
|
571
|
+
any: "any";
|
|
568
572
|
}>>;
|
|
569
573
|
conditions: z.ZodArray<z.ZodObject<{
|
|
574
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
575
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
570
576
|
field: z.ZodUnion<readonly [z.ZodEnum<{
|
|
571
|
-
concurrent_streams: "concurrent_streams";
|
|
572
577
|
active_session_distance_km: "active_session_distance_km";
|
|
573
|
-
|
|
574
|
-
unique_ips_in_window: "unique_ips_in_window";
|
|
575
|
-
unique_devices_in_window: "unique_devices_in_window";
|
|
576
|
-
inactive_days: "inactive_days";
|
|
578
|
+
concurrent_streams: "concurrent_streams";
|
|
577
579
|
current_pause_minutes: "current_pause_minutes";
|
|
580
|
+
inactive_days: "inactive_days";
|
|
578
581
|
total_pause_minutes: "total_pause_minutes";
|
|
582
|
+
travel_speed_kmh: "travel_speed_kmh";
|
|
583
|
+
unique_devices_in_window: "unique_devices_in_window";
|
|
584
|
+
unique_ips_in_window: "unique_ips_in_window";
|
|
579
585
|
}>, z.ZodEnum<{
|
|
580
|
-
source_resolution: "source_resolution";
|
|
581
|
-
output_resolution: "output_resolution";
|
|
582
|
-
is_transcoding: "is_transcoding";
|
|
583
586
|
is_transcode_downgrade: "is_transcode_downgrade";
|
|
587
|
+
is_transcoding: "is_transcoding";
|
|
588
|
+
output_resolution: "output_resolution";
|
|
584
589
|
source_bitrate_mbps: "source_bitrate_mbps";
|
|
590
|
+
source_resolution: "source_resolution";
|
|
585
591
|
}>, z.ZodEnum<{
|
|
586
|
-
user_id: "user_id";
|
|
587
|
-
trust_score: "trust_score";
|
|
588
592
|
account_age_days: "account_age_days";
|
|
593
|
+
trust_score: "trust_score";
|
|
594
|
+
user_id: "user_id";
|
|
589
595
|
}>, z.ZodEnum<{
|
|
590
|
-
device_type: "device_type";
|
|
591
596
|
client_name: "client_name";
|
|
597
|
+
device_type: "device_type";
|
|
592
598
|
platform: "platform";
|
|
593
599
|
}>, z.ZodEnum<{
|
|
594
|
-
is_local_network: "is_local_network";
|
|
595
600
|
country: "country";
|
|
596
601
|
ip_in_range: "ip_in_range";
|
|
602
|
+
is_local_network: "is_local_network";
|
|
597
603
|
}>, z.ZodEnum<{
|
|
598
|
-
server_id: "server_id";
|
|
599
604
|
media_type: "media_type";
|
|
605
|
+
server_id: "server_id";
|
|
600
606
|
}>, z.ZodEnum<{
|
|
607
|
+
audio_channels_after: "audio_channels_after";
|
|
608
|
+
dynamic_range_after: "dynamic_range_after";
|
|
609
|
+
file_size_after: "file_size_after";
|
|
601
610
|
library_item_type: "library_item_type";
|
|
602
611
|
library_name: "library_name";
|
|
603
612
|
resolution_after: "resolution_after";
|
|
604
|
-
dynamic_range_after: "dynamic_range_after";
|
|
605
613
|
video_codec_after: "video_codec_after";
|
|
606
|
-
audio_channels_after: "audio_channels_after";
|
|
607
|
-
file_size_after: "file_size_after";
|
|
608
614
|
}>]>;
|
|
609
615
|
operator: z.ZodUnion<readonly [z.ZodEnum<{
|
|
610
616
|
eq: "eq";
|
|
611
|
-
neq: "neq";
|
|
612
617
|
gt: "gt";
|
|
613
618
|
gte: "gte";
|
|
614
619
|
lt: "lt";
|
|
615
620
|
lte: "lte";
|
|
621
|
+
neq: "neq";
|
|
616
622
|
}>, z.ZodEnum<{
|
|
617
623
|
in: "in";
|
|
618
624
|
not_in: "not_in";
|
|
@@ -626,148 +632,142 @@ export declare const automationActionsSchema: z.ZodObject<{
|
|
|
626
632
|
exclude_same_device: z.ZodOptional<z.ZodBoolean>;
|
|
627
633
|
exclude_same_ip: z.ZodOptional<z.ZodBoolean>;
|
|
628
634
|
count_device_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
629
|
-
|
|
635
|
+
browser: "browser";
|
|
636
|
+
desktop: "desktop";
|
|
630
637
|
mobile: "mobile";
|
|
631
638
|
tablet: "tablet";
|
|
632
639
|
tv: "tv";
|
|
633
|
-
|
|
634
|
-
browser: "browser";
|
|
640
|
+
unknown: "unknown";
|
|
635
641
|
}>>>;
|
|
636
642
|
}, z.core.$strip>>;
|
|
637
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
638
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
639
643
|
}, z.core.$strip>>;
|
|
640
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
641
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
642
644
|
}, z.core.$strip>>;
|
|
643
645
|
}, z.core.$strip>;
|
|
644
646
|
then: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
647
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
648
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
645
649
|
type: z.ZodLiteral<"send">;
|
|
646
650
|
to: z.ZodArray<z.ZodUUID>;
|
|
647
651
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
648
652
|
title: z.ZodOptional<z.ZodString>;
|
|
649
653
|
body: z.ZodOptional<z.ZodString>;
|
|
654
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
650
655
|
id: z.ZodOptional<z.ZodUUID>;
|
|
651
656
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
652
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
653
657
|
type: z.ZodLiteral<"trust">;
|
|
654
658
|
mode: z.ZodEnum<{
|
|
655
|
-
set: "set";
|
|
656
659
|
adjust: "adjust";
|
|
657
660
|
reset: "reset";
|
|
661
|
+
set: "set";
|
|
658
662
|
}>;
|
|
659
663
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
660
664
|
value: z.ZodOptional<z.ZodNumber>;
|
|
661
665
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
666
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
662
667
|
id: z.ZodOptional<z.ZodUUID>;
|
|
663
668
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
664
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
665
669
|
type: z.ZodLiteral<"kill_stream">;
|
|
666
670
|
delay_seconds: z.ZodOptional<z.ZodNumber>;
|
|
667
671
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
668
672
|
message: z.ZodOptional<z.ZodString>;
|
|
669
673
|
target: z.ZodOptional<z.ZodEnum<{
|
|
670
|
-
triggering: "triggering";
|
|
671
|
-
oldest: "oldest";
|
|
672
|
-
newest: "newest";
|
|
673
674
|
all_except_one: "all_except_one";
|
|
674
675
|
all_user: "all_user";
|
|
676
|
+
newest: "newest";
|
|
677
|
+
oldest: "oldest";
|
|
678
|
+
triggering: "triggering";
|
|
675
679
|
}>>;
|
|
680
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
676
681
|
id: z.ZodOptional<z.ZodUUID>;
|
|
677
682
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
678
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
679
683
|
type: z.ZodLiteral<"message_client">;
|
|
680
684
|
message: z.ZodString;
|
|
681
685
|
target: z.ZodOptional<z.ZodEnum<{
|
|
682
|
-
triggering: "triggering";
|
|
683
|
-
oldest: "oldest";
|
|
684
|
-
newest: "newest";
|
|
685
686
|
all_except_one: "all_except_one";
|
|
686
687
|
all_user: "all_user";
|
|
688
|
+
newest: "newest";
|
|
689
|
+
oldest: "oldest";
|
|
690
|
+
triggering: "triggering";
|
|
687
691
|
}>>;
|
|
688
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
689
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
690
692
|
}, z.core.$strip>], "type">>;
|
|
691
693
|
else: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
694
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
695
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
692
696
|
type: z.ZodLiteral<"send">;
|
|
693
697
|
to: z.ZodArray<z.ZodUUID>;
|
|
694
698
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
695
699
|
title: z.ZodOptional<z.ZodString>;
|
|
696
700
|
body: z.ZodOptional<z.ZodString>;
|
|
701
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
697
702
|
id: z.ZodOptional<z.ZodUUID>;
|
|
698
703
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
699
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
700
704
|
type: z.ZodLiteral<"trust">;
|
|
701
705
|
mode: z.ZodEnum<{
|
|
702
|
-
set: "set";
|
|
703
706
|
adjust: "adjust";
|
|
704
707
|
reset: "reset";
|
|
708
|
+
set: "set";
|
|
705
709
|
}>;
|
|
706
710
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
707
711
|
value: z.ZodOptional<z.ZodNumber>;
|
|
708
712
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
713
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
709
714
|
id: z.ZodOptional<z.ZodUUID>;
|
|
710
715
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
711
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
712
716
|
type: z.ZodLiteral<"kill_stream">;
|
|
713
717
|
delay_seconds: z.ZodOptional<z.ZodNumber>;
|
|
714
718
|
cooldown_minutes: z.ZodOptional<z.ZodNumber>;
|
|
715
719
|
message: z.ZodOptional<z.ZodString>;
|
|
716
720
|
target: z.ZodOptional<z.ZodEnum<{
|
|
717
|
-
triggering: "triggering";
|
|
718
|
-
oldest: "oldest";
|
|
719
|
-
newest: "newest";
|
|
720
721
|
all_except_one: "all_except_one";
|
|
721
722
|
all_user: "all_user";
|
|
723
|
+
newest: "newest";
|
|
724
|
+
oldest: "oldest";
|
|
725
|
+
triggering: "triggering";
|
|
722
726
|
}>>;
|
|
727
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
723
728
|
id: z.ZodOptional<z.ZodUUID>;
|
|
724
729
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
725
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
726
730
|
type: z.ZodLiteral<"message_client">;
|
|
727
731
|
message: z.ZodString;
|
|
728
732
|
target: z.ZodOptional<z.ZodEnum<{
|
|
729
|
-
triggering: "triggering";
|
|
730
|
-
oldest: "oldest";
|
|
731
|
-
newest: "newest";
|
|
732
733
|
all_except_one: "all_except_one";
|
|
733
734
|
all_user: "all_user";
|
|
735
|
+
newest: "newest";
|
|
736
|
+
oldest: "oldest";
|
|
737
|
+
triggering: "triggering";
|
|
734
738
|
}>>;
|
|
735
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
736
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
737
739
|
}, z.core.$strip>], "type">>;
|
|
738
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
739
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
740
740
|
}, z.core.$strict>], "type">>;
|
|
741
741
|
}, z.core.$strip>;
|
|
742
|
-
export declare const LEAF_ACTION_TYPES: readonly [
|
|
742
|
+
export declare const LEAF_ACTION_TYPES: readonly ['send', 'trust', 'kill_stream', 'message_client'];
|
|
743
743
|
export declare const ACTION_TYPES: readonly ["send", "trust", "kill_stream", "message_client", "if"];
|
|
744
744
|
export declare const actionTypeSchema: z.ZodEnum<{
|
|
745
|
-
|
|
746
|
-
trust: "trust";
|
|
745
|
+
if: "if";
|
|
747
746
|
kill_stream: "kill_stream";
|
|
748
747
|
message_client: "message_client";
|
|
749
|
-
|
|
748
|
+
send: "send";
|
|
749
|
+
trust: "trust";
|
|
750
750
|
}>;
|
|
751
751
|
export declare const ACTIONS: {
|
|
752
752
|
readonly send: {
|
|
753
|
-
readonly group:
|
|
754
|
-
readonly requires:
|
|
753
|
+
readonly group: 'notify';
|
|
754
|
+
readonly requires: 'install';
|
|
755
755
|
};
|
|
756
756
|
readonly trust: {
|
|
757
|
-
readonly group:
|
|
758
|
-
readonly requires:
|
|
757
|
+
readonly group: 'policy';
|
|
758
|
+
readonly requires: 'account';
|
|
759
759
|
};
|
|
760
760
|
readonly kill_stream: {
|
|
761
|
-
readonly group:
|
|
762
|
-
readonly requires:
|
|
761
|
+
readonly group: 'policy';
|
|
762
|
+
readonly requires: 'session';
|
|
763
763
|
};
|
|
764
764
|
readonly message_client: {
|
|
765
|
-
readonly group:
|
|
766
|
-
readonly requires:
|
|
765
|
+
readonly group: 'policy';
|
|
766
|
+
readonly requires: 'session';
|
|
767
767
|
};
|
|
768
768
|
readonly if: {
|
|
769
|
-
readonly group:
|
|
770
|
-
readonly requires:
|
|
769
|
+
readonly group: 'control';
|
|
770
|
+
readonly requires: 'install';
|
|
771
771
|
};
|
|
772
772
|
};
|
|
773
773
|
export type LeafActionType = (typeof LEAF_ACTION_TYPES)[number];
|