@tracearr/shared 2.2.3 → 2.2.4-beta.2
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 +123 -123
- 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,119 +1,123 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { CreateAutomationInput } from './definition.js';
|
|
3
|
-
export declare const TEMPLATE_GROUPS: readonly [
|
|
3
|
+
export declare const TEMPLATE_GROUPS: readonly ['notifications', 'server_health', 'policies', 'housekeeping'];
|
|
4
4
|
export declare const TEMPLATE_SCHEMA_VERSION = 1;
|
|
5
5
|
export declare const TEMPLATE_MIN_SERVER_VERSION = "2.2.0";
|
|
6
6
|
export declare const templateInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7
|
-
kind: z.ZodLiteral<"server">;
|
|
8
7
|
key: z.ZodString;
|
|
9
8
|
label: z.ZodString;
|
|
10
9
|
description: z.ZodOptional<z.ZodString>;
|
|
11
10
|
required: z.ZodBoolean;
|
|
11
|
+
kind: z.ZodLiteral<"server">;
|
|
12
12
|
}, z.core.$strict>, z.ZodObject<{
|
|
13
|
-
kind: z.ZodLiteral<"account">;
|
|
14
13
|
key: z.ZodString;
|
|
15
14
|
label: z.ZodString;
|
|
16
15
|
description: z.ZodOptional<z.ZodString>;
|
|
17
16
|
required: z.ZodBoolean;
|
|
17
|
+
kind: z.ZodLiteral<"account">;
|
|
18
18
|
}, z.core.$strict>, z.ZodObject<{
|
|
19
|
-
kind: z.ZodLiteral<"person">;
|
|
20
19
|
key: z.ZodString;
|
|
21
20
|
label: z.ZodString;
|
|
22
21
|
description: z.ZodOptional<z.ZodString>;
|
|
23
22
|
required: z.ZodBoolean;
|
|
23
|
+
kind: z.ZodLiteral<"person">;
|
|
24
24
|
}, z.core.$strict>, z.ZodObject<{
|
|
25
|
+
key: z.ZodString;
|
|
26
|
+
label: z.ZodString;
|
|
27
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25
28
|
kind: z.ZodLiteral<"destinations">;
|
|
26
29
|
required: z.ZodLiteral<true>;
|
|
30
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
27
31
|
key: z.ZodString;
|
|
28
32
|
label: z.ZodString;
|
|
29
33
|
description: z.ZodOptional<z.ZodString>;
|
|
30
|
-
|
|
34
|
+
required: z.ZodBoolean;
|
|
31
35
|
kind: z.ZodLiteral<"field_value">;
|
|
32
36
|
field: z.ZodUnion<readonly [z.ZodEnum<{
|
|
33
|
-
concurrent_streams: "concurrent_streams";
|
|
34
37
|
active_session_distance_km: "active_session_distance_km";
|
|
35
|
-
|
|
36
|
-
unique_ips_in_window: "unique_ips_in_window";
|
|
37
|
-
unique_devices_in_window: "unique_devices_in_window";
|
|
38
|
-
inactive_days: "inactive_days";
|
|
38
|
+
concurrent_streams: "concurrent_streams";
|
|
39
39
|
current_pause_minutes: "current_pause_minutes";
|
|
40
|
+
inactive_days: "inactive_days";
|
|
40
41
|
total_pause_minutes: "total_pause_minutes";
|
|
42
|
+
travel_speed_kmh: "travel_speed_kmh";
|
|
43
|
+
unique_devices_in_window: "unique_devices_in_window";
|
|
44
|
+
unique_ips_in_window: "unique_ips_in_window";
|
|
41
45
|
}>, z.ZodEnum<{
|
|
42
|
-
source_resolution: "source_resolution";
|
|
43
|
-
output_resolution: "output_resolution";
|
|
44
|
-
is_transcoding: "is_transcoding";
|
|
45
46
|
is_transcode_downgrade: "is_transcode_downgrade";
|
|
47
|
+
is_transcoding: "is_transcoding";
|
|
48
|
+
output_resolution: "output_resolution";
|
|
46
49
|
source_bitrate_mbps: "source_bitrate_mbps";
|
|
50
|
+
source_resolution: "source_resolution";
|
|
47
51
|
}>, z.ZodEnum<{
|
|
48
|
-
user_id: "user_id";
|
|
49
|
-
trust_score: "trust_score";
|
|
50
52
|
account_age_days: "account_age_days";
|
|
53
|
+
trust_score: "trust_score";
|
|
54
|
+
user_id: "user_id";
|
|
51
55
|
}>, z.ZodEnum<{
|
|
52
|
-
device_type: "device_type";
|
|
53
56
|
client_name: "client_name";
|
|
57
|
+
device_type: "device_type";
|
|
54
58
|
platform: "platform";
|
|
55
59
|
}>, z.ZodEnum<{
|
|
56
|
-
is_local_network: "is_local_network";
|
|
57
60
|
country: "country";
|
|
58
61
|
ip_in_range: "ip_in_range";
|
|
62
|
+
is_local_network: "is_local_network";
|
|
59
63
|
}>, z.ZodEnum<{
|
|
60
|
-
server_id: "server_id";
|
|
61
64
|
media_type: "media_type";
|
|
65
|
+
server_id: "server_id";
|
|
62
66
|
}>, z.ZodEnum<{
|
|
67
|
+
audio_channels_after: "audio_channels_after";
|
|
68
|
+
dynamic_range_after: "dynamic_range_after";
|
|
69
|
+
file_size_after: "file_size_after";
|
|
63
70
|
library_item_type: "library_item_type";
|
|
64
71
|
library_name: "library_name";
|
|
65
72
|
resolution_after: "resolution_after";
|
|
66
|
-
dynamic_range_after: "dynamic_range_after";
|
|
67
73
|
video_codec_after: "video_codec_after";
|
|
68
|
-
audio_channels_after: "audio_channels_after";
|
|
69
|
-
file_size_after: "file_size_after";
|
|
70
74
|
}>]>;
|
|
71
75
|
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>]>>;
|
|
76
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
72
77
|
key: z.ZodString;
|
|
73
78
|
label: z.ZodString;
|
|
74
79
|
description: z.ZodOptional<z.ZodString>;
|
|
75
80
|
required: z.ZodBoolean;
|
|
76
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
77
81
|
kind: z.ZodLiteral<"number">;
|
|
78
82
|
min: z.ZodOptional<z.ZodNumber>;
|
|
79
83
|
max: z.ZodOptional<z.ZodNumber>;
|
|
80
84
|
unit: z.ZodOptional<z.ZodString>;
|
|
81
85
|
step: z.ZodOptional<z.ZodNumber>;
|
|
82
86
|
default: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
83
88
|
key: z.ZodString;
|
|
84
89
|
label: z.ZodString;
|
|
85
90
|
description: z.ZodOptional<z.ZodString>;
|
|
86
91
|
required: z.ZodBoolean;
|
|
87
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
88
92
|
kind: z.ZodLiteral<"duration">;
|
|
89
93
|
unit: z.ZodEnum<{
|
|
90
|
-
minutes: "minutes";
|
|
91
94
|
days: "days";
|
|
92
95
|
hours: "hours";
|
|
96
|
+
minutes: "minutes";
|
|
93
97
|
}>;
|
|
94
98
|
min: z.ZodOptional<z.ZodNumber>;
|
|
95
99
|
max: z.ZodOptional<z.ZodNumber>;
|
|
96
100
|
default: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
97
102
|
key: z.ZodString;
|
|
98
103
|
label: z.ZodString;
|
|
99
104
|
description: z.ZodOptional<z.ZodString>;
|
|
100
105
|
required: z.ZodBoolean;
|
|
101
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
102
106
|
kind: z.ZodLiteral<"text">;
|
|
103
107
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
104
108
|
default: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
105
110
|
key: z.ZodString;
|
|
106
111
|
label: z.ZodString;
|
|
107
112
|
description: z.ZodOptional<z.ZodString>;
|
|
108
113
|
required: z.ZodBoolean;
|
|
109
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
110
114
|
kind: z.ZodLiteral<"boolean">;
|
|
111
115
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
112
117
|
key: z.ZodString;
|
|
113
118
|
label: z.ZodString;
|
|
114
119
|
description: z.ZodOptional<z.ZodString>;
|
|
115
120
|
required: z.ZodBoolean;
|
|
116
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
117
121
|
kind: z.ZodLiteral<"select">;
|
|
118
122
|
options: z.ZodArray<z.ZodObject<{
|
|
119
123
|
value: z.ZodString;
|
|
@@ -121,10 +125,6 @@ export declare const templateInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
121
125
|
}, z.core.$strict>>;
|
|
122
126
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
123
127
|
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
124
|
-
key: z.ZodString;
|
|
125
|
-
label: z.ZodString;
|
|
126
|
-
description: z.ZodOptional<z.ZodString>;
|
|
127
|
-
required: z.ZodBoolean;
|
|
128
128
|
}, z.core.$strict>], "kind">;
|
|
129
129
|
export type TemplateInput = z.infer<typeof templateInputSchema>;
|
|
130
130
|
/** Which input kinds each value slot accepts; condition values go by field instead. */
|
|
@@ -150,37 +150,38 @@ export declare const SLOT_KINDS: {
|
|
|
150
150
|
export type TemplateSlot = keyof typeof SLOT_KINDS;
|
|
151
151
|
export declare const templateDefinitionSchema: z.ZodObject<{
|
|
152
152
|
kind: z.ZodEnum<{
|
|
153
|
-
policy: "policy";
|
|
154
153
|
notification: "notification";
|
|
154
|
+
policy: "policy";
|
|
155
155
|
}>;
|
|
156
156
|
severity: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
157
|
+
high: "high";
|
|
157
158
|
low: "low";
|
|
158
159
|
warning: "warning";
|
|
159
|
-
high: "high";
|
|
160
160
|
}>>>;
|
|
161
161
|
triggers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
162
|
+
id: z.ZodUUID;
|
|
162
163
|
type: z.ZodEnum<{
|
|
163
|
-
"session.started": "session.started";
|
|
164
|
-
"session.stopped": "session.stopped";
|
|
165
|
-
"session.transcode_changed": "session.transcode_changed";
|
|
166
|
-
"session.paused": "session.paused";
|
|
167
164
|
"account.new_device": "account.new_device";
|
|
168
165
|
"account.trust_changed": "account.trust_changed";
|
|
169
166
|
"media.added": "media.added";
|
|
170
167
|
"media.upgraded": "media.upgraded";
|
|
168
|
+
"plugin.update_available": "plugin.update_available";
|
|
171
169
|
"server.down": "server.down";
|
|
172
170
|
"server.up": "server.up";
|
|
173
|
-
"plugin.update_available": "plugin.update_available";
|
|
174
171
|
"server.update_available": "server.update_available";
|
|
172
|
+
"session.first_seen": "session.first_seen";
|
|
173
|
+
"session.paused": "session.paused";
|
|
174
|
+
"session.started": "session.started";
|
|
175
|
+
"session.stopped": "session.stopped";
|
|
176
|
+
"session.transcode_changed": "session.transcode_changed";
|
|
175
177
|
"tracearr.update_available": "tracearr.update_available";
|
|
176
178
|
}>;
|
|
177
|
-
id: z.ZodUUID;
|
|
178
179
|
enabled: z.ZodUnion<readonly [z.ZodObject<{
|
|
179
180
|
$input: z.ZodString;
|
|
180
181
|
}, z.core.$strict>, z.ZodBoolean]>;
|
|
181
182
|
}, z.core.$strict>, z.ZodObject<{
|
|
182
|
-
type: z.ZodLiteral<"session.held_for">;
|
|
183
183
|
id: z.ZodUUID;
|
|
184
|
+
type: z.ZodLiteral<"session.held_for">;
|
|
184
185
|
enabled: z.ZodUnion<readonly [z.ZodObject<{
|
|
185
186
|
$input: z.ZodString;
|
|
186
187
|
}, z.core.$strict>, z.ZodBoolean]>;
|
|
@@ -194,8 +195,8 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
194
195
|
}, z.core.$strict>, z.ZodNumber]>;
|
|
195
196
|
}, z.core.$strict>;
|
|
196
197
|
}, z.core.$strict>, z.ZodObject<{
|
|
197
|
-
type: z.ZodLiteral<"account.inactive_for">;
|
|
198
198
|
id: z.ZodUUID;
|
|
199
|
+
type: z.ZodLiteral<"account.inactive_for">;
|
|
199
200
|
enabled: z.ZodUnion<readonly [z.ZodObject<{
|
|
200
201
|
$input: z.ZodString;
|
|
201
202
|
}, z.core.$strict>, z.ZodBoolean]>;
|
|
@@ -207,61 +208,62 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
207
208
|
}, z.core.$strict>], "type">>;
|
|
208
209
|
conditions: z.ZodObject<{
|
|
209
210
|
groups: z.ZodArray<z.ZodObject<{
|
|
211
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
210
212
|
match: z.ZodOptional<z.ZodEnum<{
|
|
211
|
-
any: "any";
|
|
212
213
|
all: "all";
|
|
214
|
+
any: "any";
|
|
213
215
|
}>>;
|
|
214
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
215
216
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
216
217
|
$input: z.ZodString;
|
|
217
218
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
218
219
|
conditions: z.ZodArray<z.ZodObject<{
|
|
220
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
219
221
|
field: z.ZodUnion<readonly [z.ZodEnum<{
|
|
220
|
-
concurrent_streams: "concurrent_streams";
|
|
221
222
|
active_session_distance_km: "active_session_distance_km";
|
|
222
|
-
|
|
223
|
-
unique_ips_in_window: "unique_ips_in_window";
|
|
224
|
-
unique_devices_in_window: "unique_devices_in_window";
|
|
225
|
-
inactive_days: "inactive_days";
|
|
223
|
+
concurrent_streams: "concurrent_streams";
|
|
226
224
|
current_pause_minutes: "current_pause_minutes";
|
|
225
|
+
inactive_days: "inactive_days";
|
|
227
226
|
total_pause_minutes: "total_pause_minutes";
|
|
227
|
+
travel_speed_kmh: "travel_speed_kmh";
|
|
228
|
+
unique_devices_in_window: "unique_devices_in_window";
|
|
229
|
+
unique_ips_in_window: "unique_ips_in_window";
|
|
228
230
|
}>, z.ZodEnum<{
|
|
229
|
-
source_resolution: "source_resolution";
|
|
230
|
-
output_resolution: "output_resolution";
|
|
231
|
-
is_transcoding: "is_transcoding";
|
|
232
231
|
is_transcode_downgrade: "is_transcode_downgrade";
|
|
232
|
+
is_transcoding: "is_transcoding";
|
|
233
|
+
output_resolution: "output_resolution";
|
|
233
234
|
source_bitrate_mbps: "source_bitrate_mbps";
|
|
235
|
+
source_resolution: "source_resolution";
|
|
234
236
|
}>, z.ZodEnum<{
|
|
235
|
-
user_id: "user_id";
|
|
236
|
-
trust_score: "trust_score";
|
|
237
237
|
account_age_days: "account_age_days";
|
|
238
|
+
trust_score: "trust_score";
|
|
239
|
+
user_id: "user_id";
|
|
238
240
|
}>, z.ZodEnum<{
|
|
239
|
-
device_type: "device_type";
|
|
240
241
|
client_name: "client_name";
|
|
242
|
+
device_type: "device_type";
|
|
241
243
|
platform: "platform";
|
|
242
244
|
}>, z.ZodEnum<{
|
|
243
|
-
is_local_network: "is_local_network";
|
|
244
245
|
country: "country";
|
|
245
246
|
ip_in_range: "ip_in_range";
|
|
247
|
+
is_local_network: "is_local_network";
|
|
246
248
|
}>, z.ZodEnum<{
|
|
247
|
-
server_id: "server_id";
|
|
248
249
|
media_type: "media_type";
|
|
250
|
+
server_id: "server_id";
|
|
249
251
|
}>, z.ZodEnum<{
|
|
252
|
+
audio_channels_after: "audio_channels_after";
|
|
253
|
+
dynamic_range_after: "dynamic_range_after";
|
|
254
|
+
file_size_after: "file_size_after";
|
|
250
255
|
library_item_type: "library_item_type";
|
|
251
256
|
library_name: "library_name";
|
|
252
257
|
resolution_after: "resolution_after";
|
|
253
|
-
dynamic_range_after: "dynamic_range_after";
|
|
254
258
|
video_codec_after: "video_codec_after";
|
|
255
|
-
audio_channels_after: "audio_channels_after";
|
|
256
|
-
file_size_after: "file_size_after";
|
|
257
259
|
}>]>;
|
|
258
260
|
operator: z.ZodUnion<readonly [z.ZodEnum<{
|
|
259
261
|
eq: "eq";
|
|
260
|
-
neq: "neq";
|
|
261
262
|
gt: "gt";
|
|
262
263
|
gte: "gte";
|
|
263
264
|
lt: "lt";
|
|
264
265
|
lte: "lte";
|
|
266
|
+
neq: "neq";
|
|
265
267
|
}>, z.ZodEnum<{
|
|
266
268
|
in: "in";
|
|
267
269
|
not_in: "not_in";
|
|
@@ -269,7 +271,6 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
269
271
|
contains: "contains";
|
|
270
272
|
not_contains: "not_contains";
|
|
271
273
|
}>]>;
|
|
272
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
273
274
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
274
275
|
$input: z.ZodString;
|
|
275
276
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -278,12 +279,12 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
278
279
|
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>]>]>;
|
|
279
280
|
params: z.ZodOptional<z.ZodObject<{
|
|
280
281
|
count_device_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
281
|
-
|
|
282
|
+
browser: "browser";
|
|
283
|
+
desktop: "desktop";
|
|
282
284
|
mobile: "mobile";
|
|
283
285
|
tablet: "tablet";
|
|
284
286
|
tv: "tv";
|
|
285
|
-
|
|
286
|
-
browser: "browser";
|
|
287
|
+
unknown: "unknown";
|
|
287
288
|
}>>>;
|
|
288
289
|
window_hours: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
289
290
|
$input: z.ZodString;
|
|
@@ -300,8 +301,8 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
300
301
|
}, z.core.$strip>;
|
|
301
302
|
actions: z.ZodObject<{
|
|
302
303
|
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
303
|
-
type: z.ZodLiteral<"send">;
|
|
304
304
|
id: z.ZodOptional<z.ZodUUID>;
|
|
305
|
+
type: z.ZodLiteral<"send">;
|
|
305
306
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
306
307
|
$input: z.ZodString;
|
|
307
308
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -318,6 +319,13 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
318
319
|
$input: z.ZodString;
|
|
319
320
|
}, z.core.$strict>, z.ZodNumber]>>;
|
|
320
321
|
}, z.core.$strip>, z.ZodObject<{
|
|
322
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
323
|
+
type: z.ZodLiteral<"trust">;
|
|
324
|
+
mode: z.ZodEnum<{
|
|
325
|
+
adjust: "adjust";
|
|
326
|
+
reset: "reset";
|
|
327
|
+
set: "set";
|
|
328
|
+
}>;
|
|
321
329
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
322
330
|
$input: z.ZodString;
|
|
323
331
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -330,23 +338,16 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
330
338
|
cooldown_minutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
331
339
|
$input: z.ZodString;
|
|
332
340
|
}, z.core.$strict>, z.ZodNumber]>>;
|
|
333
|
-
type: z.ZodLiteral<"trust">;
|
|
334
|
-
mode: z.ZodEnum<{
|
|
335
|
-
set: "set";
|
|
336
|
-
adjust: "adjust";
|
|
337
|
-
reset: "reset";
|
|
338
|
-
}>;
|
|
339
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
340
341
|
}, z.core.$strip>, z.ZodObject<{
|
|
342
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
341
343
|
type: z.ZodLiteral<"kill_stream">;
|
|
342
344
|
target: z.ZodOptional<z.ZodEnum<{
|
|
343
|
-
triggering: "triggering";
|
|
344
|
-
oldest: "oldest";
|
|
345
|
-
newest: "newest";
|
|
346
345
|
all_except_one: "all_except_one";
|
|
347
346
|
all_user: "all_user";
|
|
347
|
+
newest: "newest";
|
|
348
|
+
oldest: "oldest";
|
|
349
|
+
triggering: "triggering";
|
|
348
350
|
}>>;
|
|
349
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
350
351
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
351
352
|
$input: z.ZodString;
|
|
352
353
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -360,15 +361,15 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
360
361
|
$input: z.ZodString;
|
|
361
362
|
}, z.core.$strict>, z.ZodString]>>;
|
|
362
363
|
}, z.core.$strip>, z.ZodObject<{
|
|
364
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
363
365
|
type: z.ZodLiteral<"message_client">;
|
|
364
366
|
target: z.ZodOptional<z.ZodEnum<{
|
|
365
|
-
triggering: "triggering";
|
|
366
|
-
oldest: "oldest";
|
|
367
|
-
newest: "newest";
|
|
368
367
|
all_except_one: "all_except_one";
|
|
369
368
|
all_user: "all_user";
|
|
369
|
+
newest: "newest";
|
|
370
|
+
oldest: "oldest";
|
|
371
|
+
triggering: "triggering";
|
|
370
372
|
}>>;
|
|
371
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
372
373
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
373
374
|
$input: z.ZodString;
|
|
374
375
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -376,68 +377,69 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
376
377
|
$input: z.ZodString;
|
|
377
378
|
}, z.core.$strict>, z.ZodString]>;
|
|
378
379
|
}, z.core.$strip>, z.ZodObject<{
|
|
379
|
-
type: z.ZodLiteral<"if">;
|
|
380
380
|
id: z.ZodOptional<z.ZodUUID>;
|
|
381
|
+
type: z.ZodLiteral<"if">;
|
|
381
382
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
382
383
|
$input: z.ZodString;
|
|
383
384
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
384
385
|
conditions: z.ZodObject<{
|
|
385
386
|
groups: z.ZodArray<z.ZodObject<{
|
|
387
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
386
388
|
match: z.ZodOptional<z.ZodEnum<{
|
|
387
|
-
any: "any";
|
|
388
389
|
all: "all";
|
|
390
|
+
any: "any";
|
|
389
391
|
}>>;
|
|
390
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
391
392
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
392
393
|
$input: z.ZodString;
|
|
393
394
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
394
395
|
conditions: z.ZodArray<z.ZodObject<{
|
|
396
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
395
397
|
field: z.ZodUnion<readonly [z.ZodEnum<{
|
|
396
|
-
concurrent_streams: "concurrent_streams";
|
|
397
398
|
active_session_distance_km: "active_session_distance_km";
|
|
398
|
-
|
|
399
|
-
unique_ips_in_window: "unique_ips_in_window";
|
|
400
|
-
unique_devices_in_window: "unique_devices_in_window";
|
|
401
|
-
inactive_days: "inactive_days";
|
|
399
|
+
concurrent_streams: "concurrent_streams";
|
|
402
400
|
current_pause_minutes: "current_pause_minutes";
|
|
401
|
+
inactive_days: "inactive_days";
|
|
403
402
|
total_pause_minutes: "total_pause_minutes";
|
|
403
|
+
travel_speed_kmh: "travel_speed_kmh";
|
|
404
|
+
unique_devices_in_window: "unique_devices_in_window";
|
|
405
|
+
unique_ips_in_window: "unique_ips_in_window";
|
|
404
406
|
}>, z.ZodEnum<{
|
|
405
|
-
source_resolution: "source_resolution";
|
|
406
|
-
output_resolution: "output_resolution";
|
|
407
|
-
is_transcoding: "is_transcoding";
|
|
408
407
|
is_transcode_downgrade: "is_transcode_downgrade";
|
|
408
|
+
is_transcoding: "is_transcoding";
|
|
409
|
+
output_resolution: "output_resolution";
|
|
409
410
|
source_bitrate_mbps: "source_bitrate_mbps";
|
|
411
|
+
source_resolution: "source_resolution";
|
|
410
412
|
}>, z.ZodEnum<{
|
|
411
|
-
user_id: "user_id";
|
|
412
|
-
trust_score: "trust_score";
|
|
413
413
|
account_age_days: "account_age_days";
|
|
414
|
+
trust_score: "trust_score";
|
|
415
|
+
user_id: "user_id";
|
|
414
416
|
}>, z.ZodEnum<{
|
|
415
|
-
device_type: "device_type";
|
|
416
417
|
client_name: "client_name";
|
|
418
|
+
device_type: "device_type";
|
|
417
419
|
platform: "platform";
|
|
418
420
|
}>, z.ZodEnum<{
|
|
419
|
-
is_local_network: "is_local_network";
|
|
420
421
|
country: "country";
|
|
421
422
|
ip_in_range: "ip_in_range";
|
|
423
|
+
is_local_network: "is_local_network";
|
|
422
424
|
}>, z.ZodEnum<{
|
|
423
|
-
server_id: "server_id";
|
|
424
425
|
media_type: "media_type";
|
|
426
|
+
server_id: "server_id";
|
|
425
427
|
}>, z.ZodEnum<{
|
|
428
|
+
audio_channels_after: "audio_channels_after";
|
|
429
|
+
dynamic_range_after: "dynamic_range_after";
|
|
430
|
+
file_size_after: "file_size_after";
|
|
426
431
|
library_item_type: "library_item_type";
|
|
427
432
|
library_name: "library_name";
|
|
428
433
|
resolution_after: "resolution_after";
|
|
429
|
-
dynamic_range_after: "dynamic_range_after";
|
|
430
434
|
video_codec_after: "video_codec_after";
|
|
431
|
-
audio_channels_after: "audio_channels_after";
|
|
432
|
-
file_size_after: "file_size_after";
|
|
433
435
|
}>]>;
|
|
434
436
|
operator: z.ZodUnion<readonly [z.ZodEnum<{
|
|
435
437
|
eq: "eq";
|
|
436
|
-
neq: "neq";
|
|
437
438
|
gt: "gt";
|
|
438
439
|
gte: "gte";
|
|
439
440
|
lt: "lt";
|
|
440
441
|
lte: "lte";
|
|
442
|
+
neq: "neq";
|
|
441
443
|
}>, z.ZodEnum<{
|
|
442
444
|
in: "in";
|
|
443
445
|
not_in: "not_in";
|
|
@@ -445,7 +447,6 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
445
447
|
contains: "contains";
|
|
446
448
|
not_contains: "not_contains";
|
|
447
449
|
}>]>;
|
|
448
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
449
450
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
450
451
|
$input: z.ZodString;
|
|
451
452
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -454,12 +455,12 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
454
455
|
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>]>]>;
|
|
455
456
|
params: z.ZodOptional<z.ZodObject<{
|
|
456
457
|
count_device_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
457
|
-
|
|
458
|
+
browser: "browser";
|
|
459
|
+
desktop: "desktop";
|
|
458
460
|
mobile: "mobile";
|
|
459
461
|
tablet: "tablet";
|
|
460
462
|
tv: "tv";
|
|
461
|
-
|
|
462
|
-
browser: "browser";
|
|
463
|
+
unknown: "unknown";
|
|
463
464
|
}>>>;
|
|
464
465
|
window_hours: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
465
466
|
$input: z.ZodString;
|
|
@@ -475,8 +476,8 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
475
476
|
}, z.core.$strip>>;
|
|
476
477
|
}, z.core.$strip>;
|
|
477
478
|
then: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
478
|
-
type: z.ZodLiteral<"send">;
|
|
479
479
|
id: z.ZodOptional<z.ZodUUID>;
|
|
480
|
+
type: z.ZodLiteral<"send">;
|
|
480
481
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
481
482
|
$input: z.ZodString;
|
|
482
483
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -493,6 +494,13 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
493
494
|
$input: z.ZodString;
|
|
494
495
|
}, z.core.$strict>, z.ZodNumber]>>;
|
|
495
496
|
}, z.core.$strip>, z.ZodObject<{
|
|
497
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
498
|
+
type: z.ZodLiteral<"trust">;
|
|
499
|
+
mode: z.ZodEnum<{
|
|
500
|
+
adjust: "adjust";
|
|
501
|
+
reset: "reset";
|
|
502
|
+
set: "set";
|
|
503
|
+
}>;
|
|
496
504
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
497
505
|
$input: z.ZodString;
|
|
498
506
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -505,23 +513,16 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
505
513
|
cooldown_minutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
506
514
|
$input: z.ZodString;
|
|
507
515
|
}, z.core.$strict>, z.ZodNumber]>>;
|
|
508
|
-
type: z.ZodLiteral<"trust">;
|
|
509
|
-
mode: z.ZodEnum<{
|
|
510
|
-
set: "set";
|
|
511
|
-
adjust: "adjust";
|
|
512
|
-
reset: "reset";
|
|
513
|
-
}>;
|
|
514
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
515
516
|
}, z.core.$strip>, z.ZodObject<{
|
|
517
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
516
518
|
type: z.ZodLiteral<"kill_stream">;
|
|
517
519
|
target: z.ZodOptional<z.ZodEnum<{
|
|
518
|
-
triggering: "triggering";
|
|
519
|
-
oldest: "oldest";
|
|
520
|
-
newest: "newest";
|
|
521
520
|
all_except_one: "all_except_one";
|
|
522
521
|
all_user: "all_user";
|
|
522
|
+
newest: "newest";
|
|
523
|
+
oldest: "oldest";
|
|
524
|
+
triggering: "triggering";
|
|
523
525
|
}>>;
|
|
524
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
525
526
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
526
527
|
$input: z.ZodString;
|
|
527
528
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -535,15 +536,15 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
535
536
|
$input: z.ZodString;
|
|
536
537
|
}, z.core.$strict>, z.ZodString]>>;
|
|
537
538
|
}, z.core.$strip>, z.ZodObject<{
|
|
539
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
538
540
|
type: z.ZodLiteral<"message_client">;
|
|
539
541
|
target: z.ZodOptional<z.ZodEnum<{
|
|
540
|
-
triggering: "triggering";
|
|
541
|
-
oldest: "oldest";
|
|
542
|
-
newest: "newest";
|
|
543
542
|
all_except_one: "all_except_one";
|
|
544
543
|
all_user: "all_user";
|
|
544
|
+
newest: "newest";
|
|
545
|
+
oldest: "oldest";
|
|
546
|
+
triggering: "triggering";
|
|
545
547
|
}>>;
|
|
546
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
547
548
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
548
549
|
$input: z.ZodString;
|
|
549
550
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -552,8 +553,8 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
552
553
|
}, z.core.$strict>, z.ZodString]>;
|
|
553
554
|
}, z.core.$strip>], "type">>;
|
|
554
555
|
else: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
555
|
-
type: z.ZodLiteral<"send">;
|
|
556
556
|
id: z.ZodOptional<z.ZodUUID>;
|
|
557
|
+
type: z.ZodLiteral<"send">;
|
|
557
558
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
558
559
|
$input: z.ZodString;
|
|
559
560
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -570,6 +571,13 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
570
571
|
$input: z.ZodString;
|
|
571
572
|
}, z.core.$strict>, z.ZodNumber]>>;
|
|
572
573
|
}, z.core.$strip>, z.ZodObject<{
|
|
574
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
575
|
+
type: z.ZodLiteral<"trust">;
|
|
576
|
+
mode: z.ZodEnum<{
|
|
577
|
+
adjust: "adjust";
|
|
578
|
+
reset: "reset";
|
|
579
|
+
set: "set";
|
|
580
|
+
}>;
|
|
573
581
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
574
582
|
$input: z.ZodString;
|
|
575
583
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -582,23 +590,16 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
582
590
|
cooldown_minutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
583
591
|
$input: z.ZodString;
|
|
584
592
|
}, z.core.$strict>, z.ZodNumber]>>;
|
|
585
|
-
type: z.ZodLiteral<"trust">;
|
|
586
|
-
mode: z.ZodEnum<{
|
|
587
|
-
set: "set";
|
|
588
|
-
adjust: "adjust";
|
|
589
|
-
reset: "reset";
|
|
590
|
-
}>;
|
|
591
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
592
593
|
}, z.core.$strip>, z.ZodObject<{
|
|
594
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
593
595
|
type: z.ZodLiteral<"kill_stream">;
|
|
594
596
|
target: z.ZodOptional<z.ZodEnum<{
|
|
595
|
-
triggering: "triggering";
|
|
596
|
-
oldest: "oldest";
|
|
597
|
-
newest: "newest";
|
|
598
597
|
all_except_one: "all_except_one";
|
|
599
598
|
all_user: "all_user";
|
|
599
|
+
newest: "newest";
|
|
600
|
+
oldest: "oldest";
|
|
601
|
+
triggering: "triggering";
|
|
600
602
|
}>>;
|
|
601
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
602
603
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
603
604
|
$input: z.ZodString;
|
|
604
605
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -612,15 +613,15 @@ export declare const templateDefinitionSchema: z.ZodObject<{
|
|
|
612
613
|
$input: z.ZodString;
|
|
613
614
|
}, z.core.$strict>, z.ZodString]>>;
|
|
614
615
|
}, z.core.$strip>, z.ZodObject<{
|
|
616
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
615
617
|
type: z.ZodLiteral<"message_client">;
|
|
616
618
|
target: z.ZodOptional<z.ZodEnum<{
|
|
617
|
-
triggering: "triggering";
|
|
618
|
-
oldest: "oldest";
|
|
619
|
-
newest: "newest";
|
|
620
619
|
all_except_one: "all_except_one";
|
|
621
620
|
all_user: "all_user";
|
|
621
|
+
newest: "newest";
|
|
622
|
+
oldest: "oldest";
|
|
623
|
+
triggering: "triggering";
|
|
622
624
|
}>>;
|
|
623
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
624
625
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
625
626
|
$input: z.ZodString;
|
|
626
627
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -651,128 +652,132 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
651
652
|
name: z.ZodString;
|
|
652
653
|
description: z.ZodString;
|
|
653
654
|
group: z.ZodEnum<{
|
|
655
|
+
housekeeping: "housekeeping";
|
|
654
656
|
notifications: "notifications";
|
|
655
|
-
server_health: "server_health";
|
|
656
657
|
policies: "policies";
|
|
657
|
-
|
|
658
|
+
server_health: "server_health";
|
|
658
659
|
}>;
|
|
659
660
|
kind: z.ZodEnum<{
|
|
660
|
-
policy: "policy";
|
|
661
661
|
notification: "notification";
|
|
662
|
+
policy: "policy";
|
|
662
663
|
}>;
|
|
663
664
|
author: z.ZodOptional<z.ZodString>;
|
|
664
665
|
minServerVersion: z.ZodString;
|
|
665
666
|
inputs: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
666
|
-
kind: z.ZodLiteral<"server">;
|
|
667
667
|
key: z.ZodString;
|
|
668
668
|
label: z.ZodString;
|
|
669
669
|
description: z.ZodOptional<z.ZodString>;
|
|
670
670
|
required: z.ZodBoolean;
|
|
671
|
+
kind: z.ZodLiteral<"server">;
|
|
671
672
|
}, z.core.$strict>, z.ZodObject<{
|
|
672
|
-
kind: z.ZodLiteral<"account">;
|
|
673
673
|
key: z.ZodString;
|
|
674
674
|
label: z.ZodString;
|
|
675
675
|
description: z.ZodOptional<z.ZodString>;
|
|
676
676
|
required: z.ZodBoolean;
|
|
677
|
+
kind: z.ZodLiteral<"account">;
|
|
677
678
|
}, z.core.$strict>, z.ZodObject<{
|
|
678
|
-
kind: z.ZodLiteral<"person">;
|
|
679
679
|
key: z.ZodString;
|
|
680
680
|
label: z.ZodString;
|
|
681
681
|
description: z.ZodOptional<z.ZodString>;
|
|
682
682
|
required: z.ZodBoolean;
|
|
683
|
+
kind: z.ZodLiteral<"person">;
|
|
683
684
|
}, z.core.$strict>, z.ZodObject<{
|
|
685
|
+
key: z.ZodString;
|
|
686
|
+
label: z.ZodString;
|
|
687
|
+
description: z.ZodOptional<z.ZodString>;
|
|
684
688
|
kind: z.ZodLiteral<"destinations">;
|
|
685
689
|
required: z.ZodLiteral<true>;
|
|
690
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
686
691
|
key: z.ZodString;
|
|
687
692
|
label: z.ZodString;
|
|
688
693
|
description: z.ZodOptional<z.ZodString>;
|
|
689
|
-
|
|
694
|
+
required: z.ZodBoolean;
|
|
690
695
|
kind: z.ZodLiteral<"field_value">;
|
|
691
696
|
field: z.ZodUnion<readonly [z.ZodEnum<{
|
|
692
|
-
concurrent_streams: "concurrent_streams";
|
|
693
697
|
active_session_distance_km: "active_session_distance_km";
|
|
694
|
-
|
|
695
|
-
unique_ips_in_window: "unique_ips_in_window";
|
|
696
|
-
unique_devices_in_window: "unique_devices_in_window";
|
|
697
|
-
inactive_days: "inactive_days";
|
|
698
|
+
concurrent_streams: "concurrent_streams";
|
|
698
699
|
current_pause_minutes: "current_pause_minutes";
|
|
700
|
+
inactive_days: "inactive_days";
|
|
699
701
|
total_pause_minutes: "total_pause_minutes";
|
|
702
|
+
travel_speed_kmh: "travel_speed_kmh";
|
|
703
|
+
unique_devices_in_window: "unique_devices_in_window";
|
|
704
|
+
unique_ips_in_window: "unique_ips_in_window";
|
|
700
705
|
}>, z.ZodEnum<{
|
|
701
|
-
source_resolution: "source_resolution";
|
|
702
|
-
output_resolution: "output_resolution";
|
|
703
|
-
is_transcoding: "is_transcoding";
|
|
704
706
|
is_transcode_downgrade: "is_transcode_downgrade";
|
|
707
|
+
is_transcoding: "is_transcoding";
|
|
708
|
+
output_resolution: "output_resolution";
|
|
705
709
|
source_bitrate_mbps: "source_bitrate_mbps";
|
|
710
|
+
source_resolution: "source_resolution";
|
|
706
711
|
}>, z.ZodEnum<{
|
|
707
|
-
user_id: "user_id";
|
|
708
|
-
trust_score: "trust_score";
|
|
709
712
|
account_age_days: "account_age_days";
|
|
713
|
+
trust_score: "trust_score";
|
|
714
|
+
user_id: "user_id";
|
|
710
715
|
}>, z.ZodEnum<{
|
|
711
|
-
device_type: "device_type";
|
|
712
716
|
client_name: "client_name";
|
|
717
|
+
device_type: "device_type";
|
|
713
718
|
platform: "platform";
|
|
714
719
|
}>, z.ZodEnum<{
|
|
715
|
-
is_local_network: "is_local_network";
|
|
716
720
|
country: "country";
|
|
717
721
|
ip_in_range: "ip_in_range";
|
|
722
|
+
is_local_network: "is_local_network";
|
|
718
723
|
}>, z.ZodEnum<{
|
|
719
|
-
server_id: "server_id";
|
|
720
724
|
media_type: "media_type";
|
|
725
|
+
server_id: "server_id";
|
|
721
726
|
}>, z.ZodEnum<{
|
|
727
|
+
audio_channels_after: "audio_channels_after";
|
|
728
|
+
dynamic_range_after: "dynamic_range_after";
|
|
729
|
+
file_size_after: "file_size_after";
|
|
722
730
|
library_item_type: "library_item_type";
|
|
723
731
|
library_name: "library_name";
|
|
724
732
|
resolution_after: "resolution_after";
|
|
725
|
-
dynamic_range_after: "dynamic_range_after";
|
|
726
733
|
video_codec_after: "video_codec_after";
|
|
727
|
-
audio_channels_after: "audio_channels_after";
|
|
728
|
-
file_size_after: "file_size_after";
|
|
729
734
|
}>]>;
|
|
730
735
|
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>]>>;
|
|
736
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
731
737
|
key: z.ZodString;
|
|
732
738
|
label: z.ZodString;
|
|
733
739
|
description: z.ZodOptional<z.ZodString>;
|
|
734
740
|
required: z.ZodBoolean;
|
|
735
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
736
741
|
kind: z.ZodLiteral<"number">;
|
|
737
742
|
min: z.ZodOptional<z.ZodNumber>;
|
|
738
743
|
max: z.ZodOptional<z.ZodNumber>;
|
|
739
744
|
unit: z.ZodOptional<z.ZodString>;
|
|
740
745
|
step: z.ZodOptional<z.ZodNumber>;
|
|
741
746
|
default: z.ZodOptional<z.ZodNumber>;
|
|
747
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
742
748
|
key: z.ZodString;
|
|
743
749
|
label: z.ZodString;
|
|
744
750
|
description: z.ZodOptional<z.ZodString>;
|
|
745
751
|
required: z.ZodBoolean;
|
|
746
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
747
752
|
kind: z.ZodLiteral<"duration">;
|
|
748
753
|
unit: z.ZodEnum<{
|
|
749
|
-
minutes: "minutes";
|
|
750
754
|
days: "days";
|
|
751
755
|
hours: "hours";
|
|
756
|
+
minutes: "minutes";
|
|
752
757
|
}>;
|
|
753
758
|
min: z.ZodOptional<z.ZodNumber>;
|
|
754
759
|
max: z.ZodOptional<z.ZodNumber>;
|
|
755
760
|
default: z.ZodOptional<z.ZodNumber>;
|
|
761
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
756
762
|
key: z.ZodString;
|
|
757
763
|
label: z.ZodString;
|
|
758
764
|
description: z.ZodOptional<z.ZodString>;
|
|
759
765
|
required: z.ZodBoolean;
|
|
760
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
761
766
|
kind: z.ZodLiteral<"text">;
|
|
762
767
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
763
768
|
default: z.ZodOptional<z.ZodString>;
|
|
769
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
764
770
|
key: z.ZodString;
|
|
765
771
|
label: z.ZodString;
|
|
766
772
|
description: z.ZodOptional<z.ZodString>;
|
|
767
773
|
required: z.ZodBoolean;
|
|
768
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
769
774
|
kind: z.ZodLiteral<"boolean">;
|
|
770
775
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
776
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
771
777
|
key: z.ZodString;
|
|
772
778
|
label: z.ZodString;
|
|
773
779
|
description: z.ZodOptional<z.ZodString>;
|
|
774
780
|
required: z.ZodBoolean;
|
|
775
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
776
781
|
kind: z.ZodLiteral<"select">;
|
|
777
782
|
options: z.ZodArray<z.ZodObject<{
|
|
778
783
|
value: z.ZodString;
|
|
@@ -780,44 +785,41 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
780
785
|
}, z.core.$strict>>;
|
|
781
786
|
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
782
787
|
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
783
|
-
key: z.ZodString;
|
|
784
|
-
label: z.ZodString;
|
|
785
|
-
description: z.ZodOptional<z.ZodString>;
|
|
786
|
-
required: z.ZodBoolean;
|
|
787
788
|
}, z.core.$strict>], "kind">>;
|
|
788
789
|
definition: z.ZodObject<{
|
|
789
790
|
kind: z.ZodEnum<{
|
|
790
|
-
policy: "policy";
|
|
791
791
|
notification: "notification";
|
|
792
|
+
policy: "policy";
|
|
792
793
|
}>;
|
|
793
794
|
severity: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
795
|
+
high: "high";
|
|
794
796
|
low: "low";
|
|
795
797
|
warning: "warning";
|
|
796
|
-
high: "high";
|
|
797
798
|
}>>>;
|
|
798
799
|
triggers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
800
|
+
id: z.ZodUUID;
|
|
799
801
|
type: z.ZodEnum<{
|
|
800
|
-
"session.started": "session.started";
|
|
801
|
-
"session.stopped": "session.stopped";
|
|
802
|
-
"session.transcode_changed": "session.transcode_changed";
|
|
803
|
-
"session.paused": "session.paused";
|
|
804
802
|
"account.new_device": "account.new_device";
|
|
805
803
|
"account.trust_changed": "account.trust_changed";
|
|
806
804
|
"media.added": "media.added";
|
|
807
805
|
"media.upgraded": "media.upgraded";
|
|
806
|
+
"plugin.update_available": "plugin.update_available";
|
|
808
807
|
"server.down": "server.down";
|
|
809
808
|
"server.up": "server.up";
|
|
810
|
-
"plugin.update_available": "plugin.update_available";
|
|
811
809
|
"server.update_available": "server.update_available";
|
|
810
|
+
"session.first_seen": "session.first_seen";
|
|
811
|
+
"session.paused": "session.paused";
|
|
812
|
+
"session.started": "session.started";
|
|
813
|
+
"session.stopped": "session.stopped";
|
|
814
|
+
"session.transcode_changed": "session.transcode_changed";
|
|
812
815
|
"tracearr.update_available": "tracearr.update_available";
|
|
813
816
|
}>;
|
|
814
|
-
id: z.ZodUUID;
|
|
815
817
|
enabled: z.ZodUnion<readonly [z.ZodObject<{
|
|
816
818
|
$input: z.ZodString;
|
|
817
819
|
}, z.core.$strict>, z.ZodBoolean]>;
|
|
818
820
|
}, z.core.$strict>, z.ZodObject<{
|
|
819
|
-
type: z.ZodLiteral<"session.held_for">;
|
|
820
821
|
id: z.ZodUUID;
|
|
822
|
+
type: z.ZodLiteral<"session.held_for">;
|
|
821
823
|
enabled: z.ZodUnion<readonly [z.ZodObject<{
|
|
822
824
|
$input: z.ZodString;
|
|
823
825
|
}, z.core.$strict>, z.ZodBoolean]>;
|
|
@@ -831,8 +833,8 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
831
833
|
}, z.core.$strict>, z.ZodNumber]>;
|
|
832
834
|
}, z.core.$strict>;
|
|
833
835
|
}, z.core.$strict>, z.ZodObject<{
|
|
834
|
-
type: z.ZodLiteral<"account.inactive_for">;
|
|
835
836
|
id: z.ZodUUID;
|
|
837
|
+
type: z.ZodLiteral<"account.inactive_for">;
|
|
836
838
|
enabled: z.ZodUnion<readonly [z.ZodObject<{
|
|
837
839
|
$input: z.ZodString;
|
|
838
840
|
}, z.core.$strict>, z.ZodBoolean]>;
|
|
@@ -844,61 +846,62 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
844
846
|
}, z.core.$strict>], "type">>;
|
|
845
847
|
conditions: z.ZodObject<{
|
|
846
848
|
groups: z.ZodArray<z.ZodObject<{
|
|
849
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
847
850
|
match: z.ZodOptional<z.ZodEnum<{
|
|
848
|
-
any: "any";
|
|
849
851
|
all: "all";
|
|
852
|
+
any: "any";
|
|
850
853
|
}>>;
|
|
851
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
852
854
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
853
855
|
$input: z.ZodString;
|
|
854
856
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
855
857
|
conditions: z.ZodArray<z.ZodObject<{
|
|
858
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
856
859
|
field: z.ZodUnion<readonly [z.ZodEnum<{
|
|
857
|
-
concurrent_streams: "concurrent_streams";
|
|
858
860
|
active_session_distance_km: "active_session_distance_km";
|
|
859
|
-
|
|
860
|
-
unique_ips_in_window: "unique_ips_in_window";
|
|
861
|
-
unique_devices_in_window: "unique_devices_in_window";
|
|
862
|
-
inactive_days: "inactive_days";
|
|
861
|
+
concurrent_streams: "concurrent_streams";
|
|
863
862
|
current_pause_minutes: "current_pause_minutes";
|
|
863
|
+
inactive_days: "inactive_days";
|
|
864
864
|
total_pause_minutes: "total_pause_minutes";
|
|
865
|
+
travel_speed_kmh: "travel_speed_kmh";
|
|
866
|
+
unique_devices_in_window: "unique_devices_in_window";
|
|
867
|
+
unique_ips_in_window: "unique_ips_in_window";
|
|
865
868
|
}>, z.ZodEnum<{
|
|
866
|
-
source_resolution: "source_resolution";
|
|
867
|
-
output_resolution: "output_resolution";
|
|
868
|
-
is_transcoding: "is_transcoding";
|
|
869
869
|
is_transcode_downgrade: "is_transcode_downgrade";
|
|
870
|
+
is_transcoding: "is_transcoding";
|
|
871
|
+
output_resolution: "output_resolution";
|
|
870
872
|
source_bitrate_mbps: "source_bitrate_mbps";
|
|
873
|
+
source_resolution: "source_resolution";
|
|
871
874
|
}>, z.ZodEnum<{
|
|
872
|
-
user_id: "user_id";
|
|
873
|
-
trust_score: "trust_score";
|
|
874
875
|
account_age_days: "account_age_days";
|
|
876
|
+
trust_score: "trust_score";
|
|
877
|
+
user_id: "user_id";
|
|
875
878
|
}>, z.ZodEnum<{
|
|
876
|
-
device_type: "device_type";
|
|
877
879
|
client_name: "client_name";
|
|
880
|
+
device_type: "device_type";
|
|
878
881
|
platform: "platform";
|
|
879
882
|
}>, z.ZodEnum<{
|
|
880
|
-
is_local_network: "is_local_network";
|
|
881
883
|
country: "country";
|
|
882
884
|
ip_in_range: "ip_in_range";
|
|
885
|
+
is_local_network: "is_local_network";
|
|
883
886
|
}>, z.ZodEnum<{
|
|
884
|
-
server_id: "server_id";
|
|
885
887
|
media_type: "media_type";
|
|
888
|
+
server_id: "server_id";
|
|
886
889
|
}>, z.ZodEnum<{
|
|
890
|
+
audio_channels_after: "audio_channels_after";
|
|
891
|
+
dynamic_range_after: "dynamic_range_after";
|
|
892
|
+
file_size_after: "file_size_after";
|
|
887
893
|
library_item_type: "library_item_type";
|
|
888
894
|
library_name: "library_name";
|
|
889
895
|
resolution_after: "resolution_after";
|
|
890
|
-
dynamic_range_after: "dynamic_range_after";
|
|
891
896
|
video_codec_after: "video_codec_after";
|
|
892
|
-
audio_channels_after: "audio_channels_after";
|
|
893
|
-
file_size_after: "file_size_after";
|
|
894
897
|
}>]>;
|
|
895
898
|
operator: z.ZodUnion<readonly [z.ZodEnum<{
|
|
896
899
|
eq: "eq";
|
|
897
|
-
neq: "neq";
|
|
898
900
|
gt: "gt";
|
|
899
901
|
gte: "gte";
|
|
900
902
|
lt: "lt";
|
|
901
903
|
lte: "lte";
|
|
904
|
+
neq: "neq";
|
|
902
905
|
}>, z.ZodEnum<{
|
|
903
906
|
in: "in";
|
|
904
907
|
not_in: "not_in";
|
|
@@ -906,7 +909,6 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
906
909
|
contains: "contains";
|
|
907
910
|
not_contains: "not_contains";
|
|
908
911
|
}>]>;
|
|
909
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
910
912
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
911
913
|
$input: z.ZodString;
|
|
912
914
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -915,12 +917,12 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
915
917
|
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>]>]>;
|
|
916
918
|
params: z.ZodOptional<z.ZodObject<{
|
|
917
919
|
count_device_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
918
|
-
|
|
920
|
+
browser: "browser";
|
|
921
|
+
desktop: "desktop";
|
|
919
922
|
mobile: "mobile";
|
|
920
923
|
tablet: "tablet";
|
|
921
924
|
tv: "tv";
|
|
922
|
-
|
|
923
|
-
browser: "browser";
|
|
925
|
+
unknown: "unknown";
|
|
924
926
|
}>>>;
|
|
925
927
|
window_hours: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
926
928
|
$input: z.ZodString;
|
|
@@ -937,8 +939,8 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
937
939
|
}, z.core.$strip>;
|
|
938
940
|
actions: z.ZodObject<{
|
|
939
941
|
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
940
|
-
type: z.ZodLiteral<"send">;
|
|
941
942
|
id: z.ZodOptional<z.ZodUUID>;
|
|
943
|
+
type: z.ZodLiteral<"send">;
|
|
942
944
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
943
945
|
$input: z.ZodString;
|
|
944
946
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -955,6 +957,13 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
955
957
|
$input: z.ZodString;
|
|
956
958
|
}, z.core.$strict>, z.ZodNumber]>>;
|
|
957
959
|
}, z.core.$strip>, z.ZodObject<{
|
|
960
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
961
|
+
type: z.ZodLiteral<"trust">;
|
|
962
|
+
mode: z.ZodEnum<{
|
|
963
|
+
adjust: "adjust";
|
|
964
|
+
reset: "reset";
|
|
965
|
+
set: "set";
|
|
966
|
+
}>;
|
|
958
967
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
959
968
|
$input: z.ZodString;
|
|
960
969
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -967,23 +976,16 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
967
976
|
cooldown_minutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
968
977
|
$input: z.ZodString;
|
|
969
978
|
}, z.core.$strict>, z.ZodNumber]>>;
|
|
970
|
-
type: z.ZodLiteral<"trust">;
|
|
971
|
-
mode: z.ZodEnum<{
|
|
972
|
-
set: "set";
|
|
973
|
-
adjust: "adjust";
|
|
974
|
-
reset: "reset";
|
|
975
|
-
}>;
|
|
976
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
977
979
|
}, z.core.$strip>, z.ZodObject<{
|
|
980
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
978
981
|
type: z.ZodLiteral<"kill_stream">;
|
|
979
982
|
target: z.ZodOptional<z.ZodEnum<{
|
|
980
|
-
triggering: "triggering";
|
|
981
|
-
oldest: "oldest";
|
|
982
|
-
newest: "newest";
|
|
983
983
|
all_except_one: "all_except_one";
|
|
984
984
|
all_user: "all_user";
|
|
985
|
+
newest: "newest";
|
|
986
|
+
oldest: "oldest";
|
|
987
|
+
triggering: "triggering";
|
|
985
988
|
}>>;
|
|
986
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
987
989
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
988
990
|
$input: z.ZodString;
|
|
989
991
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -997,15 +999,15 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
997
999
|
$input: z.ZodString;
|
|
998
1000
|
}, z.core.$strict>, z.ZodString]>>;
|
|
999
1001
|
}, z.core.$strip>, z.ZodObject<{
|
|
1002
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
1000
1003
|
type: z.ZodLiteral<"message_client">;
|
|
1001
1004
|
target: z.ZodOptional<z.ZodEnum<{
|
|
1002
|
-
triggering: "triggering";
|
|
1003
|
-
oldest: "oldest";
|
|
1004
|
-
newest: "newest";
|
|
1005
1005
|
all_except_one: "all_except_one";
|
|
1006
1006
|
all_user: "all_user";
|
|
1007
|
+
newest: "newest";
|
|
1008
|
+
oldest: "oldest";
|
|
1009
|
+
triggering: "triggering";
|
|
1007
1010
|
}>>;
|
|
1008
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
1009
1011
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1010
1012
|
$input: z.ZodString;
|
|
1011
1013
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -1013,68 +1015,69 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
1013
1015
|
$input: z.ZodString;
|
|
1014
1016
|
}, z.core.$strict>, z.ZodString]>;
|
|
1015
1017
|
}, z.core.$strip>, z.ZodObject<{
|
|
1016
|
-
type: z.ZodLiteral<"if">;
|
|
1017
1018
|
id: z.ZodOptional<z.ZodUUID>;
|
|
1019
|
+
type: z.ZodLiteral<"if">;
|
|
1018
1020
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1019
1021
|
$input: z.ZodString;
|
|
1020
1022
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
1021
1023
|
conditions: z.ZodObject<{
|
|
1022
1024
|
groups: z.ZodArray<z.ZodObject<{
|
|
1025
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
1023
1026
|
match: z.ZodOptional<z.ZodEnum<{
|
|
1024
|
-
any: "any";
|
|
1025
1027
|
all: "all";
|
|
1028
|
+
any: "any";
|
|
1026
1029
|
}>>;
|
|
1027
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
1028
1030
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1029
1031
|
$input: z.ZodString;
|
|
1030
1032
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
1031
1033
|
conditions: z.ZodArray<z.ZodObject<{
|
|
1034
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
1032
1035
|
field: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1033
|
-
concurrent_streams: "concurrent_streams";
|
|
1034
1036
|
active_session_distance_km: "active_session_distance_km";
|
|
1035
|
-
|
|
1036
|
-
unique_ips_in_window: "unique_ips_in_window";
|
|
1037
|
-
unique_devices_in_window: "unique_devices_in_window";
|
|
1038
|
-
inactive_days: "inactive_days";
|
|
1037
|
+
concurrent_streams: "concurrent_streams";
|
|
1039
1038
|
current_pause_minutes: "current_pause_minutes";
|
|
1039
|
+
inactive_days: "inactive_days";
|
|
1040
1040
|
total_pause_minutes: "total_pause_minutes";
|
|
1041
|
+
travel_speed_kmh: "travel_speed_kmh";
|
|
1042
|
+
unique_devices_in_window: "unique_devices_in_window";
|
|
1043
|
+
unique_ips_in_window: "unique_ips_in_window";
|
|
1041
1044
|
}>, z.ZodEnum<{
|
|
1042
|
-
source_resolution: "source_resolution";
|
|
1043
|
-
output_resolution: "output_resolution";
|
|
1044
|
-
is_transcoding: "is_transcoding";
|
|
1045
1045
|
is_transcode_downgrade: "is_transcode_downgrade";
|
|
1046
|
+
is_transcoding: "is_transcoding";
|
|
1047
|
+
output_resolution: "output_resolution";
|
|
1046
1048
|
source_bitrate_mbps: "source_bitrate_mbps";
|
|
1049
|
+
source_resolution: "source_resolution";
|
|
1047
1050
|
}>, z.ZodEnum<{
|
|
1048
|
-
user_id: "user_id";
|
|
1049
|
-
trust_score: "trust_score";
|
|
1050
1051
|
account_age_days: "account_age_days";
|
|
1052
|
+
trust_score: "trust_score";
|
|
1053
|
+
user_id: "user_id";
|
|
1051
1054
|
}>, z.ZodEnum<{
|
|
1052
|
-
device_type: "device_type";
|
|
1053
1055
|
client_name: "client_name";
|
|
1056
|
+
device_type: "device_type";
|
|
1054
1057
|
platform: "platform";
|
|
1055
1058
|
}>, z.ZodEnum<{
|
|
1056
|
-
is_local_network: "is_local_network";
|
|
1057
1059
|
country: "country";
|
|
1058
1060
|
ip_in_range: "ip_in_range";
|
|
1061
|
+
is_local_network: "is_local_network";
|
|
1059
1062
|
}>, z.ZodEnum<{
|
|
1060
|
-
server_id: "server_id";
|
|
1061
1063
|
media_type: "media_type";
|
|
1064
|
+
server_id: "server_id";
|
|
1062
1065
|
}>, z.ZodEnum<{
|
|
1066
|
+
audio_channels_after: "audio_channels_after";
|
|
1067
|
+
dynamic_range_after: "dynamic_range_after";
|
|
1068
|
+
file_size_after: "file_size_after";
|
|
1063
1069
|
library_item_type: "library_item_type";
|
|
1064
1070
|
library_name: "library_name";
|
|
1065
1071
|
resolution_after: "resolution_after";
|
|
1066
|
-
dynamic_range_after: "dynamic_range_after";
|
|
1067
1072
|
video_codec_after: "video_codec_after";
|
|
1068
|
-
audio_channels_after: "audio_channels_after";
|
|
1069
|
-
file_size_after: "file_size_after";
|
|
1070
1073
|
}>]>;
|
|
1071
1074
|
operator: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1072
1075
|
eq: "eq";
|
|
1073
|
-
neq: "neq";
|
|
1074
1076
|
gt: "gt";
|
|
1075
1077
|
gte: "gte";
|
|
1076
1078
|
lt: "lt";
|
|
1077
1079
|
lte: "lte";
|
|
1080
|
+
neq: "neq";
|
|
1078
1081
|
}>, z.ZodEnum<{
|
|
1079
1082
|
in: "in";
|
|
1080
1083
|
not_in: "not_in";
|
|
@@ -1082,7 +1085,6 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
1082
1085
|
contains: "contains";
|
|
1083
1086
|
not_contains: "not_contains";
|
|
1084
1087
|
}>]>;
|
|
1085
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
1086
1088
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1087
1089
|
$input: z.ZodString;
|
|
1088
1090
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -1091,12 +1093,12 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
1091
1093
|
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>]>]>;
|
|
1092
1094
|
params: z.ZodOptional<z.ZodObject<{
|
|
1093
1095
|
count_device_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1094
|
-
|
|
1096
|
+
browser: "browser";
|
|
1097
|
+
desktop: "desktop";
|
|
1095
1098
|
mobile: "mobile";
|
|
1096
1099
|
tablet: "tablet";
|
|
1097
1100
|
tv: "tv";
|
|
1098
|
-
|
|
1099
|
-
browser: "browser";
|
|
1101
|
+
unknown: "unknown";
|
|
1100
1102
|
}>>>;
|
|
1101
1103
|
window_hours: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1102
1104
|
$input: z.ZodString;
|
|
@@ -1112,8 +1114,8 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
1112
1114
|
}, z.core.$strip>>;
|
|
1113
1115
|
}, z.core.$strip>;
|
|
1114
1116
|
then: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1115
|
-
type: z.ZodLiteral<"send">;
|
|
1116
1117
|
id: z.ZodOptional<z.ZodUUID>;
|
|
1118
|
+
type: z.ZodLiteral<"send">;
|
|
1117
1119
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1118
1120
|
$input: z.ZodString;
|
|
1119
1121
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -1130,6 +1132,13 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
1130
1132
|
$input: z.ZodString;
|
|
1131
1133
|
}, z.core.$strict>, z.ZodNumber]>>;
|
|
1132
1134
|
}, z.core.$strip>, z.ZodObject<{
|
|
1135
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
1136
|
+
type: z.ZodLiteral<"trust">;
|
|
1137
|
+
mode: z.ZodEnum<{
|
|
1138
|
+
adjust: "adjust";
|
|
1139
|
+
reset: "reset";
|
|
1140
|
+
set: "set";
|
|
1141
|
+
}>;
|
|
1133
1142
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1134
1143
|
$input: z.ZodString;
|
|
1135
1144
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -1142,23 +1151,16 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
1142
1151
|
cooldown_minutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1143
1152
|
$input: z.ZodString;
|
|
1144
1153
|
}, z.core.$strict>, z.ZodNumber]>>;
|
|
1145
|
-
type: z.ZodLiteral<"trust">;
|
|
1146
|
-
mode: z.ZodEnum<{
|
|
1147
|
-
set: "set";
|
|
1148
|
-
adjust: "adjust";
|
|
1149
|
-
reset: "reset";
|
|
1150
|
-
}>;
|
|
1151
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
1152
1154
|
}, z.core.$strip>, z.ZodObject<{
|
|
1155
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
1153
1156
|
type: z.ZodLiteral<"kill_stream">;
|
|
1154
1157
|
target: z.ZodOptional<z.ZodEnum<{
|
|
1155
|
-
triggering: "triggering";
|
|
1156
|
-
oldest: "oldest";
|
|
1157
|
-
newest: "newest";
|
|
1158
1158
|
all_except_one: "all_except_one";
|
|
1159
1159
|
all_user: "all_user";
|
|
1160
|
+
newest: "newest";
|
|
1161
|
+
oldest: "oldest";
|
|
1162
|
+
triggering: "triggering";
|
|
1160
1163
|
}>>;
|
|
1161
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
1162
1164
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1163
1165
|
$input: z.ZodString;
|
|
1164
1166
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -1172,15 +1174,15 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
1172
1174
|
$input: z.ZodString;
|
|
1173
1175
|
}, z.core.$strict>, z.ZodString]>>;
|
|
1174
1176
|
}, z.core.$strip>, z.ZodObject<{
|
|
1177
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
1175
1178
|
type: z.ZodLiteral<"message_client">;
|
|
1176
1179
|
target: z.ZodOptional<z.ZodEnum<{
|
|
1177
|
-
triggering: "triggering";
|
|
1178
|
-
oldest: "oldest";
|
|
1179
|
-
newest: "newest";
|
|
1180
1180
|
all_except_one: "all_except_one";
|
|
1181
1181
|
all_user: "all_user";
|
|
1182
|
+
newest: "newest";
|
|
1183
|
+
oldest: "oldest";
|
|
1184
|
+
triggering: "triggering";
|
|
1182
1185
|
}>>;
|
|
1183
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
1184
1186
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1185
1187
|
$input: z.ZodString;
|
|
1186
1188
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -1189,8 +1191,8 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
1189
1191
|
}, z.core.$strict>, z.ZodString]>;
|
|
1190
1192
|
}, z.core.$strip>], "type">>;
|
|
1191
1193
|
else: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1192
|
-
type: z.ZodLiteral<"send">;
|
|
1193
1194
|
id: z.ZodOptional<z.ZodUUID>;
|
|
1195
|
+
type: z.ZodLiteral<"send">;
|
|
1194
1196
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1195
1197
|
$input: z.ZodString;
|
|
1196
1198
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -1207,6 +1209,13 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
1207
1209
|
$input: z.ZodString;
|
|
1208
1210
|
}, z.core.$strict>, z.ZodNumber]>>;
|
|
1209
1211
|
}, z.core.$strip>, z.ZodObject<{
|
|
1212
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
1213
|
+
type: z.ZodLiteral<"trust">;
|
|
1214
|
+
mode: z.ZodEnum<{
|
|
1215
|
+
adjust: "adjust";
|
|
1216
|
+
reset: "reset";
|
|
1217
|
+
set: "set";
|
|
1218
|
+
}>;
|
|
1210
1219
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1211
1220
|
$input: z.ZodString;
|
|
1212
1221
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -1219,23 +1228,16 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
1219
1228
|
cooldown_minutes: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1220
1229
|
$input: z.ZodString;
|
|
1221
1230
|
}, z.core.$strict>, z.ZodNumber]>>;
|
|
1222
|
-
type: z.ZodLiteral<"trust">;
|
|
1223
|
-
mode: z.ZodEnum<{
|
|
1224
|
-
set: "set";
|
|
1225
|
-
adjust: "adjust";
|
|
1226
|
-
reset: "reset";
|
|
1227
|
-
}>;
|
|
1228
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
1229
1231
|
}, z.core.$strip>, z.ZodObject<{
|
|
1232
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
1230
1233
|
type: z.ZodLiteral<"kill_stream">;
|
|
1231
1234
|
target: z.ZodOptional<z.ZodEnum<{
|
|
1232
|
-
triggering: "triggering";
|
|
1233
|
-
oldest: "oldest";
|
|
1234
|
-
newest: "newest";
|
|
1235
1235
|
all_except_one: "all_except_one";
|
|
1236
1236
|
all_user: "all_user";
|
|
1237
|
+
newest: "newest";
|
|
1238
|
+
oldest: "oldest";
|
|
1239
|
+
triggering: "triggering";
|
|
1237
1240
|
}>>;
|
|
1238
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
1239
1241
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1240
1242
|
$input: z.ZodString;
|
|
1241
1243
|
}, z.core.$strict>, z.ZodBoolean]>>;
|
|
@@ -1249,15 +1251,15 @@ export declare const templateEnvelopeSchema: z.ZodObject<{
|
|
|
1249
1251
|
$input: z.ZodString;
|
|
1250
1252
|
}, z.core.$strict>, z.ZodString]>>;
|
|
1251
1253
|
}, z.core.$strip>, z.ZodObject<{
|
|
1254
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
1252
1255
|
type: z.ZodLiteral<"message_client">;
|
|
1253
1256
|
target: z.ZodOptional<z.ZodEnum<{
|
|
1254
|
-
triggering: "triggering";
|
|
1255
|
-
oldest: "oldest";
|
|
1256
|
-
newest: "newest";
|
|
1257
1257
|
all_except_one: "all_except_one";
|
|
1258
1258
|
all_user: "all_user";
|
|
1259
|
+
newest: "newest";
|
|
1260
|
+
oldest: "oldest";
|
|
1261
|
+
triggering: "triggering";
|
|
1259
1262
|
}>>;
|
|
1260
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
1261
1263
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1262
1264
|
$input: z.ZodString;
|
|
1263
1265
|
}, z.core.$strict>, z.ZodBoolean]>>;
|