@ankorcs/protocol 0.0.0-stage → 0.6.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.
@@ -0,0 +1,1946 @@
1
+ /**
2
+ * The messages of the agent's local plugin socket: sequenced events and status from the plugin, and
3
+ * commands and acknowledgements from the agent.
4
+ */
5
+ import { z } from 'zod';
6
+ /**
7
+ * One sequenced event, which the plugin sends and the agent spools without its `type`, then uploads
8
+ * as an {@link EventBatchFrame} of an {@link EventBatch | event_batch}. `seq` runs from 0 without gaps.
9
+ * The frame names no server, because the connection's key already proves which one it is.
10
+ *
11
+ * A frame carries at most {@link MAX_FRAME_BYTES}, which is no more than
12
+ * {@link EVENT_BATCH_MAX_BYTES}, so every event the agent accepts fits an upload batch once stored.
13
+ * The plugin drops a larger event before sending it, and the agent ends a socket that sends one.
14
+ *
15
+ * After a gap past the events it stored, or with more than {@link RELAY_QUEUE_MAX_FRAMES} events or
16
+ * {@link RELAY_QUEUE_MAX_BYTES} of them waiting to be stored, the agent accepts no more history and
17
+ * ends the socket with code `1000` once the rest is stored. The plugin reconnects and resends from its last
18
+ * {@link EventAck | ack}.
19
+ */
20
+ export declare const PluginEventFrame: z.ZodObject<{
21
+ seq: z.ZodNumber;
22
+ event: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
23
+ plugin_version: z.ZodString;
24
+ framework_version: z.ZodString;
25
+ server_version: z.ZodString;
26
+ map_name: z.ZodString;
27
+ timestamp: z.ZodNumber;
28
+ tick: z.ZodNumber;
29
+ type: z.ZodLiteral<"map_start">;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ player: z.ZodObject<{
32
+ steam_id: z.ZodString;
33
+ name: z.ZodString;
34
+ side: z.ZodEnum<{
35
+ t: "t";
36
+ ct: "ct";
37
+ spec: "spec";
38
+ }>;
39
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
40
+ }, z.core.$strip>;
41
+ rejected: z.ZodBoolean;
42
+ timestamp: z.ZodNumber;
43
+ tick: z.ZodNumber;
44
+ type: z.ZodLiteral<"player_connect">;
45
+ }, z.core.$strip>, z.ZodObject<{
46
+ player: z.ZodObject<{
47
+ steam_id: z.ZodString;
48
+ name: z.ZodString;
49
+ side: z.ZodEnum<{
50
+ t: "t";
51
+ ct: "ct";
52
+ spec: "spec";
53
+ }>;
54
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
55
+ }, z.core.$strip>;
56
+ reason: z.ZodString;
57
+ timestamp: z.ZodNumber;
58
+ tick: z.ZodNumber;
59
+ type: z.ZodLiteral<"player_disconnect">;
60
+ }, z.core.$strip>, z.ZodObject<{
61
+ timestamp: z.ZodNumber;
62
+ tick: z.ZodNumber;
63
+ type: z.ZodLiteral<"knife_start">;
64
+ }, z.core.$strip>, z.ZodObject<{
65
+ winner_team: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
66
+ winner_side: z.ZodEnum<{
67
+ t: "t";
68
+ ct: "ct";
69
+ }>;
70
+ team1_alive: z.ZodNumber;
71
+ team2_alive: z.ZodNumber;
72
+ team1_health: z.ZodNumber;
73
+ team2_health: z.ZodNumber;
74
+ timestamp: z.ZodNumber;
75
+ tick: z.ZodNumber;
76
+ type: z.ZodLiteral<"knife_end">;
77
+ }, z.core.$strip>, z.ZodObject<{
78
+ team: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
79
+ choice: z.ZodEnum<{
80
+ stay: "stay";
81
+ swap: "swap";
82
+ }>;
83
+ team1_side: z.ZodEnum<{
84
+ t: "t";
85
+ ct: "ct";
86
+ }>;
87
+ timestamp: z.ZodNumber;
88
+ tick: z.ZodNumber;
89
+ type: z.ZodLiteral<"side_choice">;
90
+ }, z.core.$strip>, z.ZodObject<{
91
+ max_rounds: z.ZodNumber;
92
+ overtime: z.ZodBoolean;
93
+ overtime_max_rounds: z.ZodNumber;
94
+ friendly_fire: z.ZodBoolean;
95
+ team1_side: z.ZodEnum<{
96
+ t: "t";
97
+ ct: "ct";
98
+ }>;
99
+ timestamp: z.ZodNumber;
100
+ tick: z.ZodNumber;
101
+ type: z.ZodLiteral<"going_live">;
102
+ }, z.core.$strip>, z.ZodObject<{
103
+ roster: z.ZodObject<{
104
+ team1: z.ZodObject<{
105
+ name: z.ZodString;
106
+ players: z.ZodArray<z.ZodString>;
107
+ }, z.core.$strip>;
108
+ team2: z.ZodObject<{
109
+ name: z.ZodString;
110
+ players: z.ZodArray<z.ZodString>;
111
+ }, z.core.$strip>;
112
+ spectators: z.ZodArray<z.ZodString>;
113
+ }, z.core.$strip>;
114
+ team1_side: z.ZodEnum<{
115
+ t: "t";
116
+ ct: "ct";
117
+ }>;
118
+ rules: z.ZodObject<{
119
+ max_rounds: z.ZodNumber;
120
+ overtime: z.ZodBoolean;
121
+ overtime_max_rounds: z.ZodNumber;
122
+ friendly_fire: z.ZodBoolean;
123
+ }, z.core.$strip>;
124
+ file: z.ZodString;
125
+ round: z.ZodNumber;
126
+ team1_score: z.ZodNumber;
127
+ team2_score: z.ZodNumber;
128
+ timestamp: z.ZodNumber;
129
+ tick: z.ZodNumber;
130
+ type: z.ZodLiteral<"round_backup">;
131
+ }, z.core.$strip>, z.ZodObject<{
132
+ round: z.ZodNumber;
133
+ team1_side: z.ZodEnum<{
134
+ t: "t";
135
+ ct: "ct";
136
+ }>;
137
+ team1_score: z.ZodNumber;
138
+ team2_score: z.ZodNumber;
139
+ timestamp: z.ZodNumber;
140
+ tick: z.ZodNumber;
141
+ type: z.ZodLiteral<"match_restored">;
142
+ }, z.core.$strip>, z.ZodObject<{
143
+ team1_side: z.ZodEnum<{
144
+ t: "t";
145
+ ct: "ct";
146
+ }>;
147
+ players: z.ZodArray<z.ZodObject<{
148
+ player: z.ZodObject<{
149
+ steam_id: z.ZodString;
150
+ name: z.ZodString;
151
+ side: z.ZodEnum<{
152
+ t: "t";
153
+ ct: "ct";
154
+ spec: "spec";
155
+ }>;
156
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
157
+ }, z.core.$strip>;
158
+ alive: z.ZodBoolean;
159
+ equipment_value: z.ZodNumber;
160
+ cash: z.ZodNumber;
161
+ start_cash: z.ZodNumber;
162
+ cash_spent: z.ZodNumber;
163
+ }, z.core.$strip>>;
164
+ carryover: z.ZodNullable<z.ZodObject<{
165
+ from_round: z.ZodNumber;
166
+ sampled_tick: z.ZodNumber;
167
+ players: z.ZodArray<z.ZodObject<{
168
+ player: z.ZodObject<{
169
+ steam_id: z.ZodString;
170
+ name: z.ZodString;
171
+ side: z.ZodEnum<{
172
+ t: "t";
173
+ ct: "ct";
174
+ spec: "spec";
175
+ }>;
176
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
177
+ }, z.core.$strip>;
178
+ alive: z.ZodBoolean;
179
+ equipment_value: z.ZodNumber;
180
+ cash: z.ZodNumber;
181
+ start_cash: z.ZodNumber;
182
+ cash_spent: z.ZodNumber;
183
+ inventory: z.ZodNullable<z.ZodObject<{
184
+ items: z.ZodArray<z.ZodObject<{
185
+ weapon: z.ZodNumber;
186
+ quantity: z.ZodNumber;
187
+ unit_value: z.ZodNumber;
188
+ }, z.core.$strip>>;
189
+ armor: z.ZodNumber;
190
+ helmet: z.ZodBoolean;
191
+ defuse_kit: z.ZodBoolean;
192
+ }, z.core.$strip>>;
193
+ }, z.core.$strip>>;
194
+ }, z.core.$strip>>;
195
+ round: z.ZodNumber;
196
+ round_time: z.ZodNumber;
197
+ timestamp: z.ZodNumber;
198
+ tick: z.ZodNumber;
199
+ type: z.ZodLiteral<"round_start">;
200
+ }, z.core.$strip>, z.ZodObject<{
201
+ team1_side: z.ZodEnum<{
202
+ t: "t";
203
+ ct: "ct";
204
+ }>;
205
+ players: z.ZodArray<z.ZodObject<{
206
+ player: z.ZodObject<{
207
+ steam_id: z.ZodString;
208
+ name: z.ZodString;
209
+ side: z.ZodEnum<{
210
+ t: "t";
211
+ ct: "ct";
212
+ spec: "spec";
213
+ }>;
214
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
215
+ }, z.core.$strip>;
216
+ alive: z.ZodBoolean;
217
+ equipment_value: z.ZodNumber;
218
+ cash: z.ZodNumber;
219
+ start_cash: z.ZodNumber;
220
+ cash_spent: z.ZodNumber;
221
+ }, z.core.$strip>>;
222
+ round: z.ZodNumber;
223
+ round_time: z.ZodNumber;
224
+ timestamp: z.ZodNumber;
225
+ tick: z.ZodNumber;
226
+ type: z.ZodLiteral<"round_freeze_end">;
227
+ }, z.core.$strip>, z.ZodObject<{
228
+ players: z.ZodArray<z.ZodObject<{
229
+ player: z.ZodObject<{
230
+ steam_id: z.ZodString;
231
+ name: z.ZodString;
232
+ side: z.ZodEnum<{
233
+ t: "t";
234
+ ct: "ct";
235
+ spec: "spec";
236
+ }>;
237
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
238
+ }, z.core.$strip>;
239
+ equipment_value: z.ZodNumber;
240
+ cash: z.ZodNumber;
241
+ start_cash: z.ZodNumber;
242
+ cash_spent: z.ZodNumber;
243
+ sampled_tick: z.ZodNumber;
244
+ }, z.core.$strip>>;
245
+ team1_equipment_value: z.ZodNumber;
246
+ team2_equipment_value: z.ZodNumber;
247
+ round: z.ZodNumber;
248
+ round_time: z.ZodNumber;
249
+ timestamp: z.ZodNumber;
250
+ tick: z.ZodNumber;
251
+ type: z.ZodLiteral<"round_buy_end">;
252
+ }, z.core.$strip>, z.ZodObject<{
253
+ winner_side: z.ZodEnum<{
254
+ t: "t";
255
+ ct: "ct";
256
+ }>;
257
+ winner_team: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
258
+ reason: z.ZodEnum<{
259
+ readonly unknown: "unknown";
260
+ readonly target_bombed: "target_bombed";
261
+ readonly terrorists_escaped: "terrorists_escaped";
262
+ readonly cts_prevent_escape: "cts_prevent_escape";
263
+ readonly escaping_terrorists_neutralized: "escaping_terrorists_neutralized";
264
+ readonly bomb_defused: "bomb_defused";
265
+ readonly cts_win: "cts_win";
266
+ readonly terrorists_win: "terrorists_win";
267
+ readonly round_draw: "round_draw";
268
+ readonly all_hostages_rescued: "all_hostages_rescued";
269
+ readonly target_saved: "target_saved";
270
+ readonly hostages_not_rescued: "hostages_not_rescued";
271
+ readonly terrorists_not_escaped: "terrorists_not_escaped";
272
+ readonly game_commencing: "game_commencing";
273
+ readonly terrorists_surrender: "terrorists_surrender";
274
+ readonly cts_surrender: "cts_surrender";
275
+ readonly terrorists_planted: "terrorists_planted";
276
+ readonly cts_reached_hostage: "cts_reached_hostage";
277
+ readonly survival_win: "survival_win";
278
+ readonly survival_draw: "survival_draw";
279
+ }>;
280
+ team1_score: z.ZodNumber;
281
+ team2_score: z.ZodNumber;
282
+ round_length: z.ZodNumber;
283
+ round: z.ZodNumber;
284
+ round_time: z.ZodNumber;
285
+ timestamp: z.ZodNumber;
286
+ tick: z.ZodNumber;
287
+ type: z.ZodLiteral<"round_end">;
288
+ }, z.core.$strip>, z.ZodObject<{
289
+ round: z.ZodNumber;
290
+ round_time: z.ZodNumber;
291
+ timestamp: z.ZodNumber;
292
+ tick: z.ZodNumber;
293
+ type: z.ZodLiteral<"round_complete">;
294
+ }, z.core.$strip>, z.ZodObject<{
295
+ victim: z.ZodObject<{
296
+ steam_id: z.ZodString;
297
+ name: z.ZodString;
298
+ side: z.ZodEnum<{
299
+ t: "t";
300
+ ct: "ct";
301
+ spec: "spec";
302
+ }>;
303
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
304
+ position: z.ZodObject<{
305
+ x: z.ZodNumber;
306
+ y: z.ZodNumber;
307
+ z: z.ZodNumber;
308
+ pitch: z.ZodNumber;
309
+ yaw: z.ZodNumber;
310
+ }, z.core.$strip>;
311
+ }, z.core.$strip>;
312
+ attacker: z.ZodNullable<z.ZodObject<{
313
+ steam_id: z.ZodString;
314
+ name: z.ZodString;
315
+ side: z.ZodEnum<{
316
+ t: "t";
317
+ ct: "ct";
318
+ spec: "spec";
319
+ }>;
320
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
321
+ position: z.ZodNullable<z.ZodObject<{
322
+ x: z.ZodNumber;
323
+ y: z.ZodNumber;
324
+ z: z.ZodNumber;
325
+ pitch: z.ZodNumber;
326
+ yaw: z.ZodNumber;
327
+ }, z.core.$strip>>;
328
+ }, z.core.$strip>>;
329
+ assister: z.ZodNullable<z.ZodObject<{
330
+ steam_id: z.ZodString;
331
+ name: z.ZodString;
332
+ side: z.ZodEnum<{
333
+ t: "t";
334
+ ct: "ct";
335
+ spec: "spec";
336
+ }>;
337
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
338
+ }, z.core.$strip>>;
339
+ weapon: z.ZodObject<{
340
+ id: z.ZodNullable<z.ZodNumber>;
341
+ fallback: z.ZodNullable<z.ZodString>;
342
+ }, z.core.$strip>;
343
+ cause: z.ZodEnum<{
344
+ player: "player";
345
+ bomb: "bomb";
346
+ fall: "fall";
347
+ self: "self";
348
+ disconnect: "disconnect";
349
+ other: "other";
350
+ }>;
351
+ headshot: z.ZodBoolean;
352
+ penetrated: z.ZodNumber;
353
+ thru_smoke: z.ZodBoolean;
354
+ no_scope: z.ZodBoolean;
355
+ attacker_blind: z.ZodBoolean;
356
+ attacker_in_air: z.ZodBoolean;
357
+ flash_assist: z.ZodBoolean;
358
+ friendly_fire: z.ZodBoolean;
359
+ victim_blind_by: z.ZodNullable<z.ZodObject<{
360
+ steam_id: z.ZodString;
361
+ name: z.ZodString;
362
+ side: z.ZodEnum<{
363
+ t: "t";
364
+ ct: "ct";
365
+ spec: "spec";
366
+ }>;
367
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
368
+ }, z.core.$strip>>;
369
+ victim_blind_remaining: z.ZodNumber;
370
+ victim_equipment_value: z.ZodNumber;
371
+ victim_grenades_held: z.ZodNullable<z.ZodArray<z.ZodObject<{
372
+ weapon: z.ZodNumber;
373
+ quantity: z.ZodNumber;
374
+ unit_value: z.ZodNumber;
375
+ }, z.core.$strip>>>;
376
+ round: z.ZodNumber;
377
+ round_time: z.ZodNumber;
378
+ timestamp: z.ZodNumber;
379
+ tick: z.ZodNumber;
380
+ type: z.ZodLiteral<"player_death">;
381
+ }, z.core.$strip>, z.ZodObject<{
382
+ victim: z.ZodObject<{
383
+ steam_id: z.ZodString;
384
+ name: z.ZodString;
385
+ side: z.ZodEnum<{
386
+ t: "t";
387
+ ct: "ct";
388
+ spec: "spec";
389
+ }>;
390
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
391
+ position: z.ZodObject<{
392
+ x: z.ZodNumber;
393
+ y: z.ZodNumber;
394
+ z: z.ZodNumber;
395
+ pitch: z.ZodNumber;
396
+ yaw: z.ZodNumber;
397
+ }, z.core.$strip>;
398
+ }, z.core.$strip>;
399
+ attacker: z.ZodNullable<z.ZodObject<{
400
+ steam_id: z.ZodString;
401
+ name: z.ZodString;
402
+ side: z.ZodEnum<{
403
+ t: "t";
404
+ ct: "ct";
405
+ spec: "spec";
406
+ }>;
407
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
408
+ position: z.ZodNullable<z.ZodObject<{
409
+ x: z.ZodNumber;
410
+ y: z.ZodNumber;
411
+ z: z.ZodNumber;
412
+ pitch: z.ZodNumber;
413
+ yaw: z.ZodNumber;
414
+ }, z.core.$strip>>;
415
+ }, z.core.$strip>>;
416
+ weapon: z.ZodObject<{
417
+ id: z.ZodNullable<z.ZodNumber>;
418
+ fallback: z.ZodNullable<z.ZodString>;
419
+ }, z.core.$strip>;
420
+ cause: z.ZodEnum<{
421
+ player: "player";
422
+ bomb: "bomb";
423
+ fall: "fall";
424
+ self: "self";
425
+ disconnect: "disconnect";
426
+ other: "other";
427
+ }>;
428
+ dmg_health: z.ZodNumber;
429
+ health_before: z.ZodNullable<z.ZodNumber>;
430
+ health_after: z.ZodNumber;
431
+ dmg_armor: z.ZodNumber;
432
+ hitgroup: z.ZodNumber;
433
+ friendly_fire: z.ZodBoolean;
434
+ projectile_impact: z.ZodBoolean;
435
+ grenade_id: z.ZodNullable<z.ZodNumber>;
436
+ round: z.ZodNumber;
437
+ round_time: z.ZodNumber;
438
+ timestamp: z.ZodNumber;
439
+ tick: z.ZodNumber;
440
+ type: z.ZodLiteral<"player_hurt">;
441
+ }, z.core.$strip>, z.ZodObject<{
442
+ victim: z.ZodObject<{
443
+ steam_id: z.ZodString;
444
+ name: z.ZodString;
445
+ side: z.ZodEnum<{
446
+ t: "t";
447
+ ct: "ct";
448
+ spec: "spec";
449
+ }>;
450
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
451
+ position: z.ZodObject<{
452
+ x: z.ZodNumber;
453
+ y: z.ZodNumber;
454
+ z: z.ZodNumber;
455
+ pitch: z.ZodNumber;
456
+ yaw: z.ZodNumber;
457
+ }, z.core.$strip>;
458
+ }, z.core.$strip>;
459
+ attacker: z.ZodObject<{
460
+ steam_id: z.ZodString;
461
+ name: z.ZodString;
462
+ side: z.ZodEnum<{
463
+ t: "t";
464
+ ct: "ct";
465
+ spec: "spec";
466
+ }>;
467
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
468
+ position: z.ZodNullable<z.ZodObject<{
469
+ x: z.ZodNumber;
470
+ y: z.ZodNumber;
471
+ z: z.ZodNumber;
472
+ pitch: z.ZodNumber;
473
+ yaw: z.ZodNumber;
474
+ }, z.core.$strip>>;
475
+ }, z.core.$strip>;
476
+ duration: z.ZodNumber;
477
+ friendly_fire: z.ZodBoolean;
478
+ grenade_id: z.ZodNullable<z.ZodNumber>;
479
+ round: z.ZodNumber;
480
+ round_time: z.ZodNumber;
481
+ timestamp: z.ZodNumber;
482
+ tick: z.ZodNumber;
483
+ type: z.ZodLiteral<"player_blind">;
484
+ }, z.core.$strip>, z.ZodObject<{
485
+ grenade_id: z.ZodNumber;
486
+ player: z.ZodObject<{
487
+ steam_id: z.ZodString;
488
+ name: z.ZodString;
489
+ side: z.ZodEnum<{
490
+ t: "t";
491
+ ct: "ct";
492
+ spec: "spec";
493
+ }>;
494
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
495
+ position: z.ZodObject<{
496
+ x: z.ZodNumber;
497
+ y: z.ZodNumber;
498
+ z: z.ZodNumber;
499
+ pitch: z.ZodNumber;
500
+ yaw: z.ZodNumber;
501
+ }, z.core.$strip>;
502
+ }, z.core.$strip>;
503
+ grenade: z.ZodEnum<{
504
+ flashbang: "flashbang";
505
+ hegrenade: "hegrenade";
506
+ smokegrenade: "smokegrenade";
507
+ molotov: "molotov";
508
+ incgrenade: "incgrenade";
509
+ decoy: "decoy";
510
+ }>;
511
+ round: z.ZodNumber;
512
+ round_time: z.ZodNumber;
513
+ timestamp: z.ZodNumber;
514
+ tick: z.ZodNumber;
515
+ type: z.ZodLiteral<"grenade_throw">;
516
+ }, z.core.$strip>, z.ZodObject<{
517
+ grenade_id: z.ZodNumber;
518
+ player: z.ZodObject<{
519
+ steam_id: z.ZodString;
520
+ name: z.ZodString;
521
+ side: z.ZodEnum<{
522
+ t: "t";
523
+ ct: "ct";
524
+ spec: "spec";
525
+ }>;
526
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
527
+ }, z.core.$strip>;
528
+ detonate_pos: z.ZodNullable<z.ZodObject<{
529
+ x: z.ZodNumber;
530
+ y: z.ZodNumber;
531
+ z: z.ZodNumber;
532
+ }, z.core.$strip>>;
533
+ round: z.ZodNumber;
534
+ round_time: z.ZodNumber;
535
+ timestamp: z.ZodNumber;
536
+ tick: z.ZodNumber;
537
+ type: z.ZodLiteral<"grenade_detonate">;
538
+ }, z.core.$strip>, z.ZodObject<{
539
+ round: z.ZodNumber;
540
+ grenade_id: z.ZodNumber;
541
+ player: z.ZodObject<{
542
+ steam_id: z.ZodString;
543
+ name: z.ZodString;
544
+ side: z.ZodEnum<{
545
+ t: "t";
546
+ ct: "ct";
547
+ spec: "spec";
548
+ }>;
549
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
550
+ }, z.core.$strip>;
551
+ end_round_time: z.ZodNumber;
552
+ fire_end: z.ZodNullable<z.ZodEnum<{
553
+ expired: "expired";
554
+ extinguished: "extinguished";
555
+ smothered: "smothered";
556
+ }>>;
557
+ extinguished_by: z.ZodNullable<z.ZodNumber>;
558
+ timestamp: z.ZodNumber;
559
+ tick: z.ZodNumber;
560
+ type: z.ZodLiteral<"grenade_end">;
561
+ }, z.core.$strip>, z.ZodObject<{
562
+ round: z.ZodNumber;
563
+ players: z.ZodArray<z.ZodObject<{
564
+ player: z.ZodObject<{
565
+ steam_id: z.ZodString;
566
+ name: z.ZodString;
567
+ side: z.ZodEnum<{
568
+ t: "t";
569
+ ct: "ct";
570
+ spec: "spec";
571
+ }>;
572
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
573
+ }, z.core.$strip>;
574
+ weapons: z.ZodArray<z.ZodObject<{
575
+ weapon: z.ZodObject<{
576
+ id: z.ZodNullable<z.ZodNumber>;
577
+ fallback: z.ZodNullable<z.ZodString>;
578
+ }, z.core.$strip>;
579
+ shots: z.ZodNumber;
580
+ ticks: z.ZodArray<z.ZodNumber>;
581
+ }, z.core.$strip>>;
582
+ }, z.core.$strip>>;
583
+ timestamp: z.ZodNumber;
584
+ tick: z.ZodNumber;
585
+ type: z.ZodLiteral<"round_shots">;
586
+ }, z.core.$strip>, z.ZodObject<{
587
+ player: z.ZodObject<{
588
+ steam_id: z.ZodString;
589
+ name: z.ZodString;
590
+ side: z.ZodEnum<{
591
+ t: "t";
592
+ ct: "ct";
593
+ spec: "spec";
594
+ }>;
595
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
596
+ position: z.ZodObject<{
597
+ x: z.ZodNumber;
598
+ y: z.ZodNumber;
599
+ z: z.ZodNumber;
600
+ pitch: z.ZodNumber;
601
+ yaw: z.ZodNumber;
602
+ }, z.core.$strip>;
603
+ }, z.core.$strip>;
604
+ site: z.ZodNullable<z.ZodEnum<{
605
+ a: "a";
606
+ b: "b";
607
+ }>>;
608
+ round: z.ZodNumber;
609
+ round_time: z.ZodNumber;
610
+ timestamp: z.ZodNumber;
611
+ tick: z.ZodNumber;
612
+ type: z.ZodLiteral<"bomb_begin_plant">;
613
+ }, z.core.$strip>, z.ZodObject<{
614
+ player: z.ZodObject<{
615
+ steam_id: z.ZodString;
616
+ name: z.ZodString;
617
+ side: z.ZodEnum<{
618
+ t: "t";
619
+ ct: "ct";
620
+ spec: "spec";
621
+ }>;
622
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
623
+ position: z.ZodObject<{
624
+ x: z.ZodNumber;
625
+ y: z.ZodNumber;
626
+ z: z.ZodNumber;
627
+ pitch: z.ZodNumber;
628
+ yaw: z.ZodNumber;
629
+ }, z.core.$strip>;
630
+ }, z.core.$strip>;
631
+ site: z.ZodNullable<z.ZodEnum<{
632
+ a: "a";
633
+ b: "b";
634
+ }>>;
635
+ round: z.ZodNumber;
636
+ round_time: z.ZodNumber;
637
+ timestamp: z.ZodNumber;
638
+ tick: z.ZodNumber;
639
+ type: z.ZodLiteral<"bomb_abort_plant">;
640
+ }, z.core.$strip>, z.ZodObject<{
641
+ player: z.ZodObject<{
642
+ steam_id: z.ZodString;
643
+ name: z.ZodString;
644
+ side: z.ZodEnum<{
645
+ t: "t";
646
+ ct: "ct";
647
+ spec: "spec";
648
+ }>;
649
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
650
+ position: z.ZodObject<{
651
+ x: z.ZodNumber;
652
+ y: z.ZodNumber;
653
+ z: z.ZodNumber;
654
+ pitch: z.ZodNumber;
655
+ yaw: z.ZodNumber;
656
+ }, z.core.$strip>;
657
+ }, z.core.$strip>;
658
+ site: z.ZodNullable<z.ZodEnum<{
659
+ a: "a";
660
+ b: "b";
661
+ }>>;
662
+ round: z.ZodNumber;
663
+ round_time: z.ZodNumber;
664
+ timestamp: z.ZodNumber;
665
+ tick: z.ZodNumber;
666
+ type: z.ZodLiteral<"bomb_planted">;
667
+ }, z.core.$strip>, z.ZodObject<{
668
+ player: z.ZodObject<{
669
+ steam_id: z.ZodString;
670
+ name: z.ZodString;
671
+ side: z.ZodEnum<{
672
+ t: "t";
673
+ ct: "ct";
674
+ spec: "spec";
675
+ }>;
676
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
677
+ position: z.ZodObject<{
678
+ x: z.ZodNumber;
679
+ y: z.ZodNumber;
680
+ z: z.ZodNumber;
681
+ pitch: z.ZodNumber;
682
+ yaw: z.ZodNumber;
683
+ }, z.core.$strip>;
684
+ }, z.core.$strip>;
685
+ has_kit: z.ZodBoolean;
686
+ round: z.ZodNumber;
687
+ round_time: z.ZodNumber;
688
+ timestamp: z.ZodNumber;
689
+ tick: z.ZodNumber;
690
+ type: z.ZodLiteral<"bomb_begin_defuse">;
691
+ }, z.core.$strip>, z.ZodObject<{
692
+ player: z.ZodObject<{
693
+ steam_id: z.ZodString;
694
+ name: z.ZodString;
695
+ side: z.ZodEnum<{
696
+ t: "t";
697
+ ct: "ct";
698
+ spec: "spec";
699
+ }>;
700
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
701
+ position: z.ZodObject<{
702
+ x: z.ZodNumber;
703
+ y: z.ZodNumber;
704
+ z: z.ZodNumber;
705
+ pitch: z.ZodNumber;
706
+ yaw: z.ZodNumber;
707
+ }, z.core.$strip>;
708
+ }, z.core.$strip>;
709
+ round: z.ZodNumber;
710
+ round_time: z.ZodNumber;
711
+ timestamp: z.ZodNumber;
712
+ tick: z.ZodNumber;
713
+ type: z.ZodLiteral<"bomb_abort_defuse">;
714
+ }, z.core.$strip>, z.ZodObject<{
715
+ player: z.ZodObject<{
716
+ steam_id: z.ZodString;
717
+ name: z.ZodString;
718
+ side: z.ZodEnum<{
719
+ t: "t";
720
+ ct: "ct";
721
+ spec: "spec";
722
+ }>;
723
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
724
+ position: z.ZodObject<{
725
+ x: z.ZodNumber;
726
+ y: z.ZodNumber;
727
+ z: z.ZodNumber;
728
+ pitch: z.ZodNumber;
729
+ yaw: z.ZodNumber;
730
+ }, z.core.$strip>;
731
+ }, z.core.$strip>;
732
+ time_remaining: z.ZodNumber;
733
+ has_kit: z.ZodBoolean;
734
+ round: z.ZodNumber;
735
+ round_time: z.ZodNumber;
736
+ timestamp: z.ZodNumber;
737
+ tick: z.ZodNumber;
738
+ type: z.ZodLiteral<"bomb_defused">;
739
+ }, z.core.$strip>, z.ZodObject<{
740
+ round: z.ZodNumber;
741
+ round_time: z.ZodNumber;
742
+ timestamp: z.ZodNumber;
743
+ tick: z.ZodNumber;
744
+ type: z.ZodLiteral<"bomb_exploded">;
745
+ }, z.core.$strip>, z.ZodObject<{
746
+ player: z.ZodObject<{
747
+ steam_id: z.ZodString;
748
+ name: z.ZodString;
749
+ side: z.ZodEnum<{
750
+ t: "t";
751
+ ct: "ct";
752
+ spec: "spec";
753
+ }>;
754
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
755
+ }, z.core.$strip>;
756
+ reason: z.ZodNumber;
757
+ round: z.ZodNumber;
758
+ round_time: z.ZodNumber;
759
+ timestamp: z.ZodNumber;
760
+ tick: z.ZodNumber;
761
+ type: z.ZodLiteral<"round_mvp">;
762
+ }, z.core.$strip>, z.ZodObject<{
763
+ reason: z.ZodEnum<{
764
+ played: "played";
765
+ ready_timeout: "ready_timeout";
766
+ abandoned: "abandoned";
767
+ }>;
768
+ winner_team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
769
+ team1_score: z.ZodNumber;
770
+ team2_score: z.ZodNumber;
771
+ teams: z.ZodNullable<z.ZodObject<{
772
+ team1: z.ZodObject<{
773
+ connected: z.ZodNumber;
774
+ ready: z.ZodBoolean;
775
+ }, z.core.$strip>;
776
+ team2: z.ZodObject<{
777
+ connected: z.ZodNumber;
778
+ ready: z.ZodBoolean;
779
+ }, z.core.$strip>;
780
+ spectators: z.ZodNullable<z.ZodObject<{
781
+ connected: z.ZodNumber;
782
+ ready: z.ZodBoolean;
783
+ }, z.core.$strip>>;
784
+ }, z.core.$strip>>;
785
+ timestamp: z.ZodNumber;
786
+ tick: z.ZodNumber;
787
+ type: z.ZodLiteral<"map_end">;
788
+ }, z.core.$strip>, z.ZodObject<{
789
+ level: z.ZodEnum<{
790
+ error: "error";
791
+ debug: "debug";
792
+ info: "info";
793
+ warn: "warn";
794
+ }>;
795
+ message: z.ZodString;
796
+ timestamp: z.ZodNumber;
797
+ tick: z.ZodNumber;
798
+ type: z.ZodLiteral<"log">;
799
+ }, z.core.$strip>], "type">, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
800
+ type: z.ZodLiteral<"event">;
801
+ }, z.core.$strip>;
802
+ export type PluginEventFrame = z.infer<typeof PluginEventFrame>;
803
+ /**
804
+ * Acknowledges that every frame with `seq <= to_seq` is stored on the node, so the plugin may
805
+ * discard them.
806
+ *
807
+ * The agent sends it as frames are stored, and on every connect once the server has events on the
808
+ * node, so a reconnecting plugin resends only what follows. An `ack` past the last frame the plugin
809
+ * sent breaks the stream, and the plugin drops the connection.
810
+ */
811
+ export declare const EventAck: z.ZodObject<{
812
+ type: z.ZodLiteral<"ack">;
813
+ to_seq: z.ZodNumber;
814
+ }, z.core.$strip>;
815
+ /**
816
+ * A game server's state, which the plugin sends in answer to every
817
+ * {@link PluginGetServerStatus | get_server_status}. The plugin also sends it unasked once when it
818
+ * connects and once when it turns `ready`.
819
+ */
820
+ export declare const ServerStatus: z.ZodObject<{
821
+ map_name: z.ZodString;
822
+ match: z.ZodNullable<z.ZodObject<{
823
+ match_id: z.ZodNullable<z.ZodUUID>;
824
+ phase: z.ZodEnum<{
825
+ side_choice: "side_choice";
826
+ knife: "knife";
827
+ loading: "loading";
828
+ warmup: "warmup";
829
+ pending_restore: "pending_restore";
830
+ live: "live";
831
+ post_live: "post_live";
832
+ }>;
833
+ team1_side: z.ZodEnum<{
834
+ t: "t";
835
+ ct: "ct";
836
+ }>;
837
+ team2_side: z.ZodEnum<{
838
+ t: "t";
839
+ ct: "ct";
840
+ }>;
841
+ team1_score: z.ZodNumber;
842
+ team2_score: z.ZodNumber;
843
+ }, z.core.$strip>>;
844
+ players: z.ZodArray<z.ZodObject<{
845
+ steam_id: z.ZodString;
846
+ name: z.ZodString;
847
+ side: z.ZodEnum<{
848
+ t: "t";
849
+ ct: "ct";
850
+ spec: "spec";
851
+ }>;
852
+ }, z.core.$strip>>;
853
+ config_error: z.ZodNullable<z.ZodString>;
854
+ ready: z.ZodBoolean;
855
+ server_steam_id: z.ZodNullable<z.ZodString>;
856
+ type: z.ZodLiteral<"server_status">;
857
+ request_id: z.ZodNullable<z.ZodString>;
858
+ }, z.core.$strip>;
859
+ export type ServerStatus = z.infer<typeof ServerStatus>;
860
+ /**
861
+ * Tells the agent that the plugin is about to run `quit` after its match, with every event
862
+ * acknowledged and the demo finished. The agent stops a server that is still running
863
+ * {@link QUIT_TIMEOUT_SECONDS} later. Like {@link ServerStatus | server_status}, it is not resent,
864
+ * so one sent without a connection is lost.
865
+ */
866
+ export declare const Quitting: z.ZodObject<{
867
+ type: z.ZodLiteral<"quitting">;
868
+ }, z.core.$strip>;
869
+ export type Quitting = z.infer<typeof Quitting>;
870
+ /**
871
+ * The match moved to another phase, which the plugin sends whether or not the match sends
872
+ * statistics, and the agent forwards as {@link AgentPhaseChange | phase_change}. Like
873
+ * {@link ServerStatus | server_status}, it is sent once and lost without a connection.
874
+ */
875
+ export declare const PluginPhaseChange: z.ZodObject<{
876
+ type: z.ZodLiteral<"phase_change">;
877
+ phase: z.ZodEnum<{
878
+ side_choice: "side_choice";
879
+ knife: "knife";
880
+ loading: "loading";
881
+ warmup: "warmup";
882
+ pending_restore: "pending_restore";
883
+ live: "live";
884
+ post_live: "post_live";
885
+ }>;
886
+ }, z.core.$strip>;
887
+ export type PluginPhaseChange = z.infer<typeof PluginPhaseChange>;
888
+ /**
889
+ * The match's score changed, which the plugin sends like {@link PluginPhaseChange | phase_change},
890
+ * and the agent forwards as {@link AgentScore | score}.
891
+ */
892
+ export declare const PluginScore: z.ZodObject<{
893
+ type: z.ZodLiteral<"score">;
894
+ team1_score: z.ZodNumber;
895
+ team2_score: z.ZodNumber;
896
+ }, z.core.$strip>;
897
+ export type PluginScore = z.infer<typeof PluginScore>;
898
+ /**
899
+ * The `round_backup` of a match that sends no statistics, which the plugin
900
+ * sends like {@link PluginPhaseChange | phase_change}, and the agent forwards as
901
+ * {@link AgentBackup | backup}. `backup` holds the complete event, unchanged, as the
902
+ * event stream would carry it.
903
+ */
904
+ export declare const PluginBackup: z.ZodObject<{
905
+ type: z.ZodLiteral<"backup">;
906
+ backup: z.ZodObject<{
907
+ roster: z.ZodObject<{
908
+ team1: z.ZodObject<{
909
+ name: z.ZodString;
910
+ players: z.ZodArray<z.ZodString>;
911
+ }, z.core.$strip>;
912
+ team2: z.ZodObject<{
913
+ name: z.ZodString;
914
+ players: z.ZodArray<z.ZodString>;
915
+ }, z.core.$strip>;
916
+ spectators: z.ZodArray<z.ZodString>;
917
+ }, z.core.$strip>;
918
+ team1_side: z.ZodEnum<{
919
+ t: "t";
920
+ ct: "ct";
921
+ }>;
922
+ rules: z.ZodObject<{
923
+ max_rounds: z.ZodNumber;
924
+ overtime: z.ZodBoolean;
925
+ overtime_max_rounds: z.ZodNumber;
926
+ friendly_fire: z.ZodBoolean;
927
+ }, z.core.$strip>;
928
+ file: z.ZodString;
929
+ round: z.ZodNumber;
930
+ team1_score: z.ZodNumber;
931
+ team2_score: z.ZodNumber;
932
+ timestamp: z.ZodNumber;
933
+ tick: z.ZodNumber;
934
+ type: z.ZodLiteral<"round_backup">;
935
+ }, z.core.$strip>;
936
+ }, z.core.$strip>;
937
+ export type PluginBackup = z.infer<typeof PluginBackup>;
938
+ /** Why a plugin did not carry out a command, as an {@link AgentErrorCode}. */
939
+ export declare const CommandRefusal: z.ZodEnum<{
940
+ no_match: "no_match";
941
+ not_in_warmup: "not_in_warmup";
942
+ team_empty: "team_empty";
943
+ not_live: "not_live";
944
+ at_halftime: "at_halftime";
945
+ no_backup: "no_backup";
946
+ unsupported_request: "unsupported_request";
947
+ }>;
948
+ /** The plugin's answer to a command that carries a `request_id`. */
949
+ export declare const CommandResult: z.ZodObject<{
950
+ type: z.ZodLiteral<"command_result">;
951
+ request_id: z.ZodString;
952
+ error: z.ZodNullable<z.ZodEnum<{
953
+ no_match: "no_match";
954
+ not_in_warmup: "not_in_warmup";
955
+ team_empty: "team_empty";
956
+ not_live: "not_live";
957
+ at_halftime: "at_halftime";
958
+ no_backup: "no_backup";
959
+ unsupported_request: "unsupported_request";
960
+ }>>;
961
+ }, z.core.$strip>;
962
+ export type CommandResult = z.infer<typeof CommandResult>;
963
+ /**
964
+ * What a plugin sends its agent: sequenced {@link PluginEventFrame | event} frames, its
965
+ * {@link ServerStatus | server_status}, {@link PluginPhaseChange | phase_change},
966
+ * {@link PluginScore | score}, {@link PluginBackup | backup},
967
+ * {@link CommandResult | command_result} and {@link Quitting | quitting}.
968
+ */
969
+ export declare const PluginToAgentMessage: z.ZodDiscriminatedUnion<[z.ZodObject<{
970
+ seq: z.ZodNumber;
971
+ event: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
972
+ plugin_version: z.ZodString;
973
+ framework_version: z.ZodString;
974
+ server_version: z.ZodString;
975
+ map_name: z.ZodString;
976
+ timestamp: z.ZodNumber;
977
+ tick: z.ZodNumber;
978
+ type: z.ZodLiteral<"map_start">;
979
+ }, z.core.$strip>, z.ZodObject<{
980
+ player: z.ZodObject<{
981
+ steam_id: z.ZodString;
982
+ name: z.ZodString;
983
+ side: z.ZodEnum<{
984
+ t: "t";
985
+ ct: "ct";
986
+ spec: "spec";
987
+ }>;
988
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
989
+ }, z.core.$strip>;
990
+ rejected: z.ZodBoolean;
991
+ timestamp: z.ZodNumber;
992
+ tick: z.ZodNumber;
993
+ type: z.ZodLiteral<"player_connect">;
994
+ }, z.core.$strip>, z.ZodObject<{
995
+ player: z.ZodObject<{
996
+ steam_id: z.ZodString;
997
+ name: z.ZodString;
998
+ side: z.ZodEnum<{
999
+ t: "t";
1000
+ ct: "ct";
1001
+ spec: "spec";
1002
+ }>;
1003
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1004
+ }, z.core.$strip>;
1005
+ reason: z.ZodString;
1006
+ timestamp: z.ZodNumber;
1007
+ tick: z.ZodNumber;
1008
+ type: z.ZodLiteral<"player_disconnect">;
1009
+ }, z.core.$strip>, z.ZodObject<{
1010
+ timestamp: z.ZodNumber;
1011
+ tick: z.ZodNumber;
1012
+ type: z.ZodLiteral<"knife_start">;
1013
+ }, z.core.$strip>, z.ZodObject<{
1014
+ winner_team: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
1015
+ winner_side: z.ZodEnum<{
1016
+ t: "t";
1017
+ ct: "ct";
1018
+ }>;
1019
+ team1_alive: z.ZodNumber;
1020
+ team2_alive: z.ZodNumber;
1021
+ team1_health: z.ZodNumber;
1022
+ team2_health: z.ZodNumber;
1023
+ timestamp: z.ZodNumber;
1024
+ tick: z.ZodNumber;
1025
+ type: z.ZodLiteral<"knife_end">;
1026
+ }, z.core.$strip>, z.ZodObject<{
1027
+ team: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
1028
+ choice: z.ZodEnum<{
1029
+ stay: "stay";
1030
+ swap: "swap";
1031
+ }>;
1032
+ team1_side: z.ZodEnum<{
1033
+ t: "t";
1034
+ ct: "ct";
1035
+ }>;
1036
+ timestamp: z.ZodNumber;
1037
+ tick: z.ZodNumber;
1038
+ type: z.ZodLiteral<"side_choice">;
1039
+ }, z.core.$strip>, z.ZodObject<{
1040
+ max_rounds: z.ZodNumber;
1041
+ overtime: z.ZodBoolean;
1042
+ overtime_max_rounds: z.ZodNumber;
1043
+ friendly_fire: z.ZodBoolean;
1044
+ team1_side: z.ZodEnum<{
1045
+ t: "t";
1046
+ ct: "ct";
1047
+ }>;
1048
+ timestamp: z.ZodNumber;
1049
+ tick: z.ZodNumber;
1050
+ type: z.ZodLiteral<"going_live">;
1051
+ }, z.core.$strip>, z.ZodObject<{
1052
+ roster: z.ZodObject<{
1053
+ team1: z.ZodObject<{
1054
+ name: z.ZodString;
1055
+ players: z.ZodArray<z.ZodString>;
1056
+ }, z.core.$strip>;
1057
+ team2: z.ZodObject<{
1058
+ name: z.ZodString;
1059
+ players: z.ZodArray<z.ZodString>;
1060
+ }, z.core.$strip>;
1061
+ spectators: z.ZodArray<z.ZodString>;
1062
+ }, z.core.$strip>;
1063
+ team1_side: z.ZodEnum<{
1064
+ t: "t";
1065
+ ct: "ct";
1066
+ }>;
1067
+ rules: z.ZodObject<{
1068
+ max_rounds: z.ZodNumber;
1069
+ overtime: z.ZodBoolean;
1070
+ overtime_max_rounds: z.ZodNumber;
1071
+ friendly_fire: z.ZodBoolean;
1072
+ }, z.core.$strip>;
1073
+ file: z.ZodString;
1074
+ round: z.ZodNumber;
1075
+ team1_score: z.ZodNumber;
1076
+ team2_score: z.ZodNumber;
1077
+ timestamp: z.ZodNumber;
1078
+ tick: z.ZodNumber;
1079
+ type: z.ZodLiteral<"round_backup">;
1080
+ }, z.core.$strip>, z.ZodObject<{
1081
+ round: z.ZodNumber;
1082
+ team1_side: z.ZodEnum<{
1083
+ t: "t";
1084
+ ct: "ct";
1085
+ }>;
1086
+ team1_score: z.ZodNumber;
1087
+ team2_score: z.ZodNumber;
1088
+ timestamp: z.ZodNumber;
1089
+ tick: z.ZodNumber;
1090
+ type: z.ZodLiteral<"match_restored">;
1091
+ }, z.core.$strip>, z.ZodObject<{
1092
+ team1_side: z.ZodEnum<{
1093
+ t: "t";
1094
+ ct: "ct";
1095
+ }>;
1096
+ players: z.ZodArray<z.ZodObject<{
1097
+ player: z.ZodObject<{
1098
+ steam_id: z.ZodString;
1099
+ name: z.ZodString;
1100
+ side: z.ZodEnum<{
1101
+ t: "t";
1102
+ ct: "ct";
1103
+ spec: "spec";
1104
+ }>;
1105
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1106
+ }, z.core.$strip>;
1107
+ alive: z.ZodBoolean;
1108
+ equipment_value: z.ZodNumber;
1109
+ cash: z.ZodNumber;
1110
+ start_cash: z.ZodNumber;
1111
+ cash_spent: z.ZodNumber;
1112
+ }, z.core.$strip>>;
1113
+ carryover: z.ZodNullable<z.ZodObject<{
1114
+ from_round: z.ZodNumber;
1115
+ sampled_tick: z.ZodNumber;
1116
+ players: z.ZodArray<z.ZodObject<{
1117
+ player: z.ZodObject<{
1118
+ steam_id: z.ZodString;
1119
+ name: z.ZodString;
1120
+ side: z.ZodEnum<{
1121
+ t: "t";
1122
+ ct: "ct";
1123
+ spec: "spec";
1124
+ }>;
1125
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1126
+ }, z.core.$strip>;
1127
+ alive: z.ZodBoolean;
1128
+ equipment_value: z.ZodNumber;
1129
+ cash: z.ZodNumber;
1130
+ start_cash: z.ZodNumber;
1131
+ cash_spent: z.ZodNumber;
1132
+ inventory: z.ZodNullable<z.ZodObject<{
1133
+ items: z.ZodArray<z.ZodObject<{
1134
+ weapon: z.ZodNumber;
1135
+ quantity: z.ZodNumber;
1136
+ unit_value: z.ZodNumber;
1137
+ }, z.core.$strip>>;
1138
+ armor: z.ZodNumber;
1139
+ helmet: z.ZodBoolean;
1140
+ defuse_kit: z.ZodBoolean;
1141
+ }, z.core.$strip>>;
1142
+ }, z.core.$strip>>;
1143
+ }, z.core.$strip>>;
1144
+ round: z.ZodNumber;
1145
+ round_time: z.ZodNumber;
1146
+ timestamp: z.ZodNumber;
1147
+ tick: z.ZodNumber;
1148
+ type: z.ZodLiteral<"round_start">;
1149
+ }, z.core.$strip>, z.ZodObject<{
1150
+ team1_side: z.ZodEnum<{
1151
+ t: "t";
1152
+ ct: "ct";
1153
+ }>;
1154
+ players: z.ZodArray<z.ZodObject<{
1155
+ player: z.ZodObject<{
1156
+ steam_id: z.ZodString;
1157
+ name: z.ZodString;
1158
+ side: z.ZodEnum<{
1159
+ t: "t";
1160
+ ct: "ct";
1161
+ spec: "spec";
1162
+ }>;
1163
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1164
+ }, z.core.$strip>;
1165
+ alive: z.ZodBoolean;
1166
+ equipment_value: z.ZodNumber;
1167
+ cash: z.ZodNumber;
1168
+ start_cash: z.ZodNumber;
1169
+ cash_spent: z.ZodNumber;
1170
+ }, z.core.$strip>>;
1171
+ round: z.ZodNumber;
1172
+ round_time: z.ZodNumber;
1173
+ timestamp: z.ZodNumber;
1174
+ tick: z.ZodNumber;
1175
+ type: z.ZodLiteral<"round_freeze_end">;
1176
+ }, z.core.$strip>, z.ZodObject<{
1177
+ players: z.ZodArray<z.ZodObject<{
1178
+ player: z.ZodObject<{
1179
+ steam_id: z.ZodString;
1180
+ name: z.ZodString;
1181
+ side: z.ZodEnum<{
1182
+ t: "t";
1183
+ ct: "ct";
1184
+ spec: "spec";
1185
+ }>;
1186
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1187
+ }, z.core.$strip>;
1188
+ equipment_value: z.ZodNumber;
1189
+ cash: z.ZodNumber;
1190
+ start_cash: z.ZodNumber;
1191
+ cash_spent: z.ZodNumber;
1192
+ sampled_tick: z.ZodNumber;
1193
+ }, z.core.$strip>>;
1194
+ team1_equipment_value: z.ZodNumber;
1195
+ team2_equipment_value: z.ZodNumber;
1196
+ round: z.ZodNumber;
1197
+ round_time: z.ZodNumber;
1198
+ timestamp: z.ZodNumber;
1199
+ tick: z.ZodNumber;
1200
+ type: z.ZodLiteral<"round_buy_end">;
1201
+ }, z.core.$strip>, z.ZodObject<{
1202
+ winner_side: z.ZodEnum<{
1203
+ t: "t";
1204
+ ct: "ct";
1205
+ }>;
1206
+ winner_team: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
1207
+ reason: z.ZodEnum<{
1208
+ readonly unknown: "unknown";
1209
+ readonly target_bombed: "target_bombed";
1210
+ readonly terrorists_escaped: "terrorists_escaped";
1211
+ readonly cts_prevent_escape: "cts_prevent_escape";
1212
+ readonly escaping_terrorists_neutralized: "escaping_terrorists_neutralized";
1213
+ readonly bomb_defused: "bomb_defused";
1214
+ readonly cts_win: "cts_win";
1215
+ readonly terrorists_win: "terrorists_win";
1216
+ readonly round_draw: "round_draw";
1217
+ readonly all_hostages_rescued: "all_hostages_rescued";
1218
+ readonly target_saved: "target_saved";
1219
+ readonly hostages_not_rescued: "hostages_not_rescued";
1220
+ readonly terrorists_not_escaped: "terrorists_not_escaped";
1221
+ readonly game_commencing: "game_commencing";
1222
+ readonly terrorists_surrender: "terrorists_surrender";
1223
+ readonly cts_surrender: "cts_surrender";
1224
+ readonly terrorists_planted: "terrorists_planted";
1225
+ readonly cts_reached_hostage: "cts_reached_hostage";
1226
+ readonly survival_win: "survival_win";
1227
+ readonly survival_draw: "survival_draw";
1228
+ }>;
1229
+ team1_score: z.ZodNumber;
1230
+ team2_score: z.ZodNumber;
1231
+ round_length: z.ZodNumber;
1232
+ round: z.ZodNumber;
1233
+ round_time: z.ZodNumber;
1234
+ timestamp: z.ZodNumber;
1235
+ tick: z.ZodNumber;
1236
+ type: z.ZodLiteral<"round_end">;
1237
+ }, z.core.$strip>, z.ZodObject<{
1238
+ round: z.ZodNumber;
1239
+ round_time: z.ZodNumber;
1240
+ timestamp: z.ZodNumber;
1241
+ tick: z.ZodNumber;
1242
+ type: z.ZodLiteral<"round_complete">;
1243
+ }, z.core.$strip>, z.ZodObject<{
1244
+ victim: z.ZodObject<{
1245
+ steam_id: z.ZodString;
1246
+ name: z.ZodString;
1247
+ side: z.ZodEnum<{
1248
+ t: "t";
1249
+ ct: "ct";
1250
+ spec: "spec";
1251
+ }>;
1252
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1253
+ position: z.ZodObject<{
1254
+ x: z.ZodNumber;
1255
+ y: z.ZodNumber;
1256
+ z: z.ZodNumber;
1257
+ pitch: z.ZodNumber;
1258
+ yaw: z.ZodNumber;
1259
+ }, z.core.$strip>;
1260
+ }, z.core.$strip>;
1261
+ attacker: z.ZodNullable<z.ZodObject<{
1262
+ steam_id: z.ZodString;
1263
+ name: z.ZodString;
1264
+ side: z.ZodEnum<{
1265
+ t: "t";
1266
+ ct: "ct";
1267
+ spec: "spec";
1268
+ }>;
1269
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1270
+ position: z.ZodNullable<z.ZodObject<{
1271
+ x: z.ZodNumber;
1272
+ y: z.ZodNumber;
1273
+ z: z.ZodNumber;
1274
+ pitch: z.ZodNumber;
1275
+ yaw: z.ZodNumber;
1276
+ }, z.core.$strip>>;
1277
+ }, z.core.$strip>>;
1278
+ assister: z.ZodNullable<z.ZodObject<{
1279
+ steam_id: z.ZodString;
1280
+ name: z.ZodString;
1281
+ side: z.ZodEnum<{
1282
+ t: "t";
1283
+ ct: "ct";
1284
+ spec: "spec";
1285
+ }>;
1286
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1287
+ }, z.core.$strip>>;
1288
+ weapon: z.ZodObject<{
1289
+ id: z.ZodNullable<z.ZodNumber>;
1290
+ fallback: z.ZodNullable<z.ZodString>;
1291
+ }, z.core.$strip>;
1292
+ cause: z.ZodEnum<{
1293
+ player: "player";
1294
+ bomb: "bomb";
1295
+ fall: "fall";
1296
+ self: "self";
1297
+ disconnect: "disconnect";
1298
+ other: "other";
1299
+ }>;
1300
+ headshot: z.ZodBoolean;
1301
+ penetrated: z.ZodNumber;
1302
+ thru_smoke: z.ZodBoolean;
1303
+ no_scope: z.ZodBoolean;
1304
+ attacker_blind: z.ZodBoolean;
1305
+ attacker_in_air: z.ZodBoolean;
1306
+ flash_assist: z.ZodBoolean;
1307
+ friendly_fire: z.ZodBoolean;
1308
+ victim_blind_by: z.ZodNullable<z.ZodObject<{
1309
+ steam_id: z.ZodString;
1310
+ name: z.ZodString;
1311
+ side: z.ZodEnum<{
1312
+ t: "t";
1313
+ ct: "ct";
1314
+ spec: "spec";
1315
+ }>;
1316
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1317
+ }, z.core.$strip>>;
1318
+ victim_blind_remaining: z.ZodNumber;
1319
+ victim_equipment_value: z.ZodNumber;
1320
+ victim_grenades_held: z.ZodNullable<z.ZodArray<z.ZodObject<{
1321
+ weapon: z.ZodNumber;
1322
+ quantity: z.ZodNumber;
1323
+ unit_value: z.ZodNumber;
1324
+ }, z.core.$strip>>>;
1325
+ round: z.ZodNumber;
1326
+ round_time: z.ZodNumber;
1327
+ timestamp: z.ZodNumber;
1328
+ tick: z.ZodNumber;
1329
+ type: z.ZodLiteral<"player_death">;
1330
+ }, z.core.$strip>, z.ZodObject<{
1331
+ victim: z.ZodObject<{
1332
+ steam_id: z.ZodString;
1333
+ name: z.ZodString;
1334
+ side: z.ZodEnum<{
1335
+ t: "t";
1336
+ ct: "ct";
1337
+ spec: "spec";
1338
+ }>;
1339
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1340
+ position: z.ZodObject<{
1341
+ x: z.ZodNumber;
1342
+ y: z.ZodNumber;
1343
+ z: z.ZodNumber;
1344
+ pitch: z.ZodNumber;
1345
+ yaw: z.ZodNumber;
1346
+ }, z.core.$strip>;
1347
+ }, z.core.$strip>;
1348
+ attacker: z.ZodNullable<z.ZodObject<{
1349
+ steam_id: z.ZodString;
1350
+ name: z.ZodString;
1351
+ side: z.ZodEnum<{
1352
+ t: "t";
1353
+ ct: "ct";
1354
+ spec: "spec";
1355
+ }>;
1356
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1357
+ position: z.ZodNullable<z.ZodObject<{
1358
+ x: z.ZodNumber;
1359
+ y: z.ZodNumber;
1360
+ z: z.ZodNumber;
1361
+ pitch: z.ZodNumber;
1362
+ yaw: z.ZodNumber;
1363
+ }, z.core.$strip>>;
1364
+ }, z.core.$strip>>;
1365
+ weapon: z.ZodObject<{
1366
+ id: z.ZodNullable<z.ZodNumber>;
1367
+ fallback: z.ZodNullable<z.ZodString>;
1368
+ }, z.core.$strip>;
1369
+ cause: z.ZodEnum<{
1370
+ player: "player";
1371
+ bomb: "bomb";
1372
+ fall: "fall";
1373
+ self: "self";
1374
+ disconnect: "disconnect";
1375
+ other: "other";
1376
+ }>;
1377
+ dmg_health: z.ZodNumber;
1378
+ health_before: z.ZodNullable<z.ZodNumber>;
1379
+ health_after: z.ZodNumber;
1380
+ dmg_armor: z.ZodNumber;
1381
+ hitgroup: z.ZodNumber;
1382
+ friendly_fire: z.ZodBoolean;
1383
+ projectile_impact: z.ZodBoolean;
1384
+ grenade_id: z.ZodNullable<z.ZodNumber>;
1385
+ round: z.ZodNumber;
1386
+ round_time: z.ZodNumber;
1387
+ timestamp: z.ZodNumber;
1388
+ tick: z.ZodNumber;
1389
+ type: z.ZodLiteral<"player_hurt">;
1390
+ }, z.core.$strip>, z.ZodObject<{
1391
+ victim: z.ZodObject<{
1392
+ steam_id: z.ZodString;
1393
+ name: z.ZodString;
1394
+ side: z.ZodEnum<{
1395
+ t: "t";
1396
+ ct: "ct";
1397
+ spec: "spec";
1398
+ }>;
1399
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1400
+ position: z.ZodObject<{
1401
+ x: z.ZodNumber;
1402
+ y: z.ZodNumber;
1403
+ z: z.ZodNumber;
1404
+ pitch: z.ZodNumber;
1405
+ yaw: z.ZodNumber;
1406
+ }, z.core.$strip>;
1407
+ }, z.core.$strip>;
1408
+ attacker: z.ZodObject<{
1409
+ steam_id: z.ZodString;
1410
+ name: z.ZodString;
1411
+ side: z.ZodEnum<{
1412
+ t: "t";
1413
+ ct: "ct";
1414
+ spec: "spec";
1415
+ }>;
1416
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1417
+ position: z.ZodNullable<z.ZodObject<{
1418
+ x: z.ZodNumber;
1419
+ y: z.ZodNumber;
1420
+ z: z.ZodNumber;
1421
+ pitch: z.ZodNumber;
1422
+ yaw: z.ZodNumber;
1423
+ }, z.core.$strip>>;
1424
+ }, z.core.$strip>;
1425
+ duration: z.ZodNumber;
1426
+ friendly_fire: z.ZodBoolean;
1427
+ grenade_id: z.ZodNullable<z.ZodNumber>;
1428
+ round: z.ZodNumber;
1429
+ round_time: z.ZodNumber;
1430
+ timestamp: z.ZodNumber;
1431
+ tick: z.ZodNumber;
1432
+ type: z.ZodLiteral<"player_blind">;
1433
+ }, z.core.$strip>, z.ZodObject<{
1434
+ grenade_id: z.ZodNumber;
1435
+ player: z.ZodObject<{
1436
+ steam_id: z.ZodString;
1437
+ name: z.ZodString;
1438
+ side: z.ZodEnum<{
1439
+ t: "t";
1440
+ ct: "ct";
1441
+ spec: "spec";
1442
+ }>;
1443
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1444
+ position: z.ZodObject<{
1445
+ x: z.ZodNumber;
1446
+ y: z.ZodNumber;
1447
+ z: z.ZodNumber;
1448
+ pitch: z.ZodNumber;
1449
+ yaw: z.ZodNumber;
1450
+ }, z.core.$strip>;
1451
+ }, z.core.$strip>;
1452
+ grenade: z.ZodEnum<{
1453
+ flashbang: "flashbang";
1454
+ hegrenade: "hegrenade";
1455
+ smokegrenade: "smokegrenade";
1456
+ molotov: "molotov";
1457
+ incgrenade: "incgrenade";
1458
+ decoy: "decoy";
1459
+ }>;
1460
+ round: z.ZodNumber;
1461
+ round_time: z.ZodNumber;
1462
+ timestamp: z.ZodNumber;
1463
+ tick: z.ZodNumber;
1464
+ type: z.ZodLiteral<"grenade_throw">;
1465
+ }, z.core.$strip>, z.ZodObject<{
1466
+ grenade_id: z.ZodNumber;
1467
+ player: z.ZodObject<{
1468
+ steam_id: z.ZodString;
1469
+ name: z.ZodString;
1470
+ side: z.ZodEnum<{
1471
+ t: "t";
1472
+ ct: "ct";
1473
+ spec: "spec";
1474
+ }>;
1475
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1476
+ }, z.core.$strip>;
1477
+ detonate_pos: z.ZodNullable<z.ZodObject<{
1478
+ x: z.ZodNumber;
1479
+ y: z.ZodNumber;
1480
+ z: z.ZodNumber;
1481
+ }, z.core.$strip>>;
1482
+ round: z.ZodNumber;
1483
+ round_time: z.ZodNumber;
1484
+ timestamp: z.ZodNumber;
1485
+ tick: z.ZodNumber;
1486
+ type: z.ZodLiteral<"grenade_detonate">;
1487
+ }, z.core.$strip>, z.ZodObject<{
1488
+ round: z.ZodNumber;
1489
+ grenade_id: z.ZodNumber;
1490
+ player: z.ZodObject<{
1491
+ steam_id: z.ZodString;
1492
+ name: z.ZodString;
1493
+ side: z.ZodEnum<{
1494
+ t: "t";
1495
+ ct: "ct";
1496
+ spec: "spec";
1497
+ }>;
1498
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1499
+ }, z.core.$strip>;
1500
+ end_round_time: z.ZodNumber;
1501
+ fire_end: z.ZodNullable<z.ZodEnum<{
1502
+ expired: "expired";
1503
+ extinguished: "extinguished";
1504
+ smothered: "smothered";
1505
+ }>>;
1506
+ extinguished_by: z.ZodNullable<z.ZodNumber>;
1507
+ timestamp: z.ZodNumber;
1508
+ tick: z.ZodNumber;
1509
+ type: z.ZodLiteral<"grenade_end">;
1510
+ }, z.core.$strip>, z.ZodObject<{
1511
+ round: z.ZodNumber;
1512
+ players: z.ZodArray<z.ZodObject<{
1513
+ player: z.ZodObject<{
1514
+ steam_id: z.ZodString;
1515
+ name: z.ZodString;
1516
+ side: z.ZodEnum<{
1517
+ t: "t";
1518
+ ct: "ct";
1519
+ spec: "spec";
1520
+ }>;
1521
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1522
+ }, z.core.$strip>;
1523
+ weapons: z.ZodArray<z.ZodObject<{
1524
+ weapon: z.ZodObject<{
1525
+ id: z.ZodNullable<z.ZodNumber>;
1526
+ fallback: z.ZodNullable<z.ZodString>;
1527
+ }, z.core.$strip>;
1528
+ shots: z.ZodNumber;
1529
+ ticks: z.ZodArray<z.ZodNumber>;
1530
+ }, z.core.$strip>>;
1531
+ }, z.core.$strip>>;
1532
+ timestamp: z.ZodNumber;
1533
+ tick: z.ZodNumber;
1534
+ type: z.ZodLiteral<"round_shots">;
1535
+ }, z.core.$strip>, z.ZodObject<{
1536
+ player: z.ZodObject<{
1537
+ steam_id: z.ZodString;
1538
+ name: z.ZodString;
1539
+ side: z.ZodEnum<{
1540
+ t: "t";
1541
+ ct: "ct";
1542
+ spec: "spec";
1543
+ }>;
1544
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1545
+ position: z.ZodObject<{
1546
+ x: z.ZodNumber;
1547
+ y: z.ZodNumber;
1548
+ z: z.ZodNumber;
1549
+ pitch: z.ZodNumber;
1550
+ yaw: z.ZodNumber;
1551
+ }, z.core.$strip>;
1552
+ }, z.core.$strip>;
1553
+ site: z.ZodNullable<z.ZodEnum<{
1554
+ a: "a";
1555
+ b: "b";
1556
+ }>>;
1557
+ round: z.ZodNumber;
1558
+ round_time: z.ZodNumber;
1559
+ timestamp: z.ZodNumber;
1560
+ tick: z.ZodNumber;
1561
+ type: z.ZodLiteral<"bomb_begin_plant">;
1562
+ }, z.core.$strip>, z.ZodObject<{
1563
+ player: z.ZodObject<{
1564
+ steam_id: z.ZodString;
1565
+ name: z.ZodString;
1566
+ side: z.ZodEnum<{
1567
+ t: "t";
1568
+ ct: "ct";
1569
+ spec: "spec";
1570
+ }>;
1571
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1572
+ position: z.ZodObject<{
1573
+ x: z.ZodNumber;
1574
+ y: z.ZodNumber;
1575
+ z: z.ZodNumber;
1576
+ pitch: z.ZodNumber;
1577
+ yaw: z.ZodNumber;
1578
+ }, z.core.$strip>;
1579
+ }, z.core.$strip>;
1580
+ site: z.ZodNullable<z.ZodEnum<{
1581
+ a: "a";
1582
+ b: "b";
1583
+ }>>;
1584
+ round: z.ZodNumber;
1585
+ round_time: z.ZodNumber;
1586
+ timestamp: z.ZodNumber;
1587
+ tick: z.ZodNumber;
1588
+ type: z.ZodLiteral<"bomb_abort_plant">;
1589
+ }, z.core.$strip>, z.ZodObject<{
1590
+ player: z.ZodObject<{
1591
+ steam_id: z.ZodString;
1592
+ name: z.ZodString;
1593
+ side: z.ZodEnum<{
1594
+ t: "t";
1595
+ ct: "ct";
1596
+ spec: "spec";
1597
+ }>;
1598
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1599
+ position: z.ZodObject<{
1600
+ x: z.ZodNumber;
1601
+ y: z.ZodNumber;
1602
+ z: z.ZodNumber;
1603
+ pitch: z.ZodNumber;
1604
+ yaw: z.ZodNumber;
1605
+ }, z.core.$strip>;
1606
+ }, z.core.$strip>;
1607
+ site: z.ZodNullable<z.ZodEnum<{
1608
+ a: "a";
1609
+ b: "b";
1610
+ }>>;
1611
+ round: z.ZodNumber;
1612
+ round_time: z.ZodNumber;
1613
+ timestamp: z.ZodNumber;
1614
+ tick: z.ZodNumber;
1615
+ type: z.ZodLiteral<"bomb_planted">;
1616
+ }, z.core.$strip>, z.ZodObject<{
1617
+ player: z.ZodObject<{
1618
+ steam_id: z.ZodString;
1619
+ name: z.ZodString;
1620
+ side: z.ZodEnum<{
1621
+ t: "t";
1622
+ ct: "ct";
1623
+ spec: "spec";
1624
+ }>;
1625
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1626
+ position: z.ZodObject<{
1627
+ x: z.ZodNumber;
1628
+ y: z.ZodNumber;
1629
+ z: z.ZodNumber;
1630
+ pitch: z.ZodNumber;
1631
+ yaw: z.ZodNumber;
1632
+ }, z.core.$strip>;
1633
+ }, z.core.$strip>;
1634
+ has_kit: z.ZodBoolean;
1635
+ round: z.ZodNumber;
1636
+ round_time: z.ZodNumber;
1637
+ timestamp: z.ZodNumber;
1638
+ tick: z.ZodNumber;
1639
+ type: z.ZodLiteral<"bomb_begin_defuse">;
1640
+ }, z.core.$strip>, z.ZodObject<{
1641
+ player: z.ZodObject<{
1642
+ steam_id: z.ZodString;
1643
+ name: z.ZodString;
1644
+ side: z.ZodEnum<{
1645
+ t: "t";
1646
+ ct: "ct";
1647
+ spec: "spec";
1648
+ }>;
1649
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1650
+ position: z.ZodObject<{
1651
+ x: z.ZodNumber;
1652
+ y: z.ZodNumber;
1653
+ z: z.ZodNumber;
1654
+ pitch: z.ZodNumber;
1655
+ yaw: z.ZodNumber;
1656
+ }, z.core.$strip>;
1657
+ }, z.core.$strip>;
1658
+ round: z.ZodNumber;
1659
+ round_time: z.ZodNumber;
1660
+ timestamp: z.ZodNumber;
1661
+ tick: z.ZodNumber;
1662
+ type: z.ZodLiteral<"bomb_abort_defuse">;
1663
+ }, z.core.$strip>, z.ZodObject<{
1664
+ player: z.ZodObject<{
1665
+ steam_id: z.ZodString;
1666
+ name: z.ZodString;
1667
+ side: z.ZodEnum<{
1668
+ t: "t";
1669
+ ct: "ct";
1670
+ spec: "spec";
1671
+ }>;
1672
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1673
+ position: z.ZodObject<{
1674
+ x: z.ZodNumber;
1675
+ y: z.ZodNumber;
1676
+ z: z.ZodNumber;
1677
+ pitch: z.ZodNumber;
1678
+ yaw: z.ZodNumber;
1679
+ }, z.core.$strip>;
1680
+ }, z.core.$strip>;
1681
+ time_remaining: z.ZodNumber;
1682
+ has_kit: z.ZodBoolean;
1683
+ round: z.ZodNumber;
1684
+ round_time: z.ZodNumber;
1685
+ timestamp: z.ZodNumber;
1686
+ tick: z.ZodNumber;
1687
+ type: z.ZodLiteral<"bomb_defused">;
1688
+ }, z.core.$strip>, z.ZodObject<{
1689
+ round: z.ZodNumber;
1690
+ round_time: z.ZodNumber;
1691
+ timestamp: z.ZodNumber;
1692
+ tick: z.ZodNumber;
1693
+ type: z.ZodLiteral<"bomb_exploded">;
1694
+ }, z.core.$strip>, z.ZodObject<{
1695
+ player: z.ZodObject<{
1696
+ steam_id: z.ZodString;
1697
+ name: z.ZodString;
1698
+ side: z.ZodEnum<{
1699
+ t: "t";
1700
+ ct: "ct";
1701
+ spec: "spec";
1702
+ }>;
1703
+ team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1704
+ }, z.core.$strip>;
1705
+ reason: z.ZodNumber;
1706
+ round: z.ZodNumber;
1707
+ round_time: z.ZodNumber;
1708
+ timestamp: z.ZodNumber;
1709
+ tick: z.ZodNumber;
1710
+ type: z.ZodLiteral<"round_mvp">;
1711
+ }, z.core.$strip>, z.ZodObject<{
1712
+ reason: z.ZodEnum<{
1713
+ played: "played";
1714
+ ready_timeout: "ready_timeout";
1715
+ abandoned: "abandoned";
1716
+ }>;
1717
+ winner_team: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1718
+ team1_score: z.ZodNumber;
1719
+ team2_score: z.ZodNumber;
1720
+ teams: z.ZodNullable<z.ZodObject<{
1721
+ team1: z.ZodObject<{
1722
+ connected: z.ZodNumber;
1723
+ ready: z.ZodBoolean;
1724
+ }, z.core.$strip>;
1725
+ team2: z.ZodObject<{
1726
+ connected: z.ZodNumber;
1727
+ ready: z.ZodBoolean;
1728
+ }, z.core.$strip>;
1729
+ spectators: z.ZodNullable<z.ZodObject<{
1730
+ connected: z.ZodNumber;
1731
+ ready: z.ZodBoolean;
1732
+ }, z.core.$strip>>;
1733
+ }, z.core.$strip>>;
1734
+ timestamp: z.ZodNumber;
1735
+ tick: z.ZodNumber;
1736
+ type: z.ZodLiteral<"map_end">;
1737
+ }, z.core.$strip>, z.ZodObject<{
1738
+ level: z.ZodEnum<{
1739
+ error: "error";
1740
+ debug: "debug";
1741
+ info: "info";
1742
+ warn: "warn";
1743
+ }>;
1744
+ message: z.ZodString;
1745
+ timestamp: z.ZodNumber;
1746
+ tick: z.ZodNumber;
1747
+ type: z.ZodLiteral<"log">;
1748
+ }, z.core.$strip>], "type">, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1749
+ type: z.ZodLiteral<"event">;
1750
+ }, z.core.$strip>, z.ZodObject<{
1751
+ map_name: z.ZodString;
1752
+ match: z.ZodNullable<z.ZodObject<{
1753
+ match_id: z.ZodNullable<z.ZodUUID>;
1754
+ phase: z.ZodEnum<{
1755
+ side_choice: "side_choice";
1756
+ knife: "knife";
1757
+ loading: "loading";
1758
+ warmup: "warmup";
1759
+ pending_restore: "pending_restore";
1760
+ live: "live";
1761
+ post_live: "post_live";
1762
+ }>;
1763
+ team1_side: z.ZodEnum<{
1764
+ t: "t";
1765
+ ct: "ct";
1766
+ }>;
1767
+ team2_side: z.ZodEnum<{
1768
+ t: "t";
1769
+ ct: "ct";
1770
+ }>;
1771
+ team1_score: z.ZodNumber;
1772
+ team2_score: z.ZodNumber;
1773
+ }, z.core.$strip>>;
1774
+ players: z.ZodArray<z.ZodObject<{
1775
+ steam_id: z.ZodString;
1776
+ name: z.ZodString;
1777
+ side: z.ZodEnum<{
1778
+ t: "t";
1779
+ ct: "ct";
1780
+ spec: "spec";
1781
+ }>;
1782
+ }, z.core.$strip>>;
1783
+ config_error: z.ZodNullable<z.ZodString>;
1784
+ ready: z.ZodBoolean;
1785
+ server_steam_id: z.ZodNullable<z.ZodString>;
1786
+ type: z.ZodLiteral<"server_status">;
1787
+ request_id: z.ZodNullable<z.ZodString>;
1788
+ }, z.core.$strip>, z.ZodObject<{
1789
+ type: z.ZodLiteral<"phase_change">;
1790
+ phase: z.ZodEnum<{
1791
+ side_choice: "side_choice";
1792
+ knife: "knife";
1793
+ loading: "loading";
1794
+ warmup: "warmup";
1795
+ pending_restore: "pending_restore";
1796
+ live: "live";
1797
+ post_live: "post_live";
1798
+ }>;
1799
+ }, z.core.$strip>, z.ZodObject<{
1800
+ type: z.ZodLiteral<"score">;
1801
+ team1_score: z.ZodNumber;
1802
+ team2_score: z.ZodNumber;
1803
+ }, z.core.$strip>, z.ZodObject<{
1804
+ type: z.ZodLiteral<"backup">;
1805
+ backup: z.ZodObject<{
1806
+ roster: z.ZodObject<{
1807
+ team1: z.ZodObject<{
1808
+ name: z.ZodString;
1809
+ players: z.ZodArray<z.ZodString>;
1810
+ }, z.core.$strip>;
1811
+ team2: z.ZodObject<{
1812
+ name: z.ZodString;
1813
+ players: z.ZodArray<z.ZodString>;
1814
+ }, z.core.$strip>;
1815
+ spectators: z.ZodArray<z.ZodString>;
1816
+ }, z.core.$strip>;
1817
+ team1_side: z.ZodEnum<{
1818
+ t: "t";
1819
+ ct: "ct";
1820
+ }>;
1821
+ rules: z.ZodObject<{
1822
+ max_rounds: z.ZodNumber;
1823
+ overtime: z.ZodBoolean;
1824
+ overtime_max_rounds: z.ZodNumber;
1825
+ friendly_fire: z.ZodBoolean;
1826
+ }, z.core.$strip>;
1827
+ file: z.ZodString;
1828
+ round: z.ZodNumber;
1829
+ team1_score: z.ZodNumber;
1830
+ team2_score: z.ZodNumber;
1831
+ timestamp: z.ZodNumber;
1832
+ tick: z.ZodNumber;
1833
+ type: z.ZodLiteral<"round_backup">;
1834
+ }, z.core.$strip>;
1835
+ }, z.core.$strip>, z.ZodObject<{
1836
+ type: z.ZodLiteral<"command_result">;
1837
+ request_id: z.ZodString;
1838
+ error: z.ZodNullable<z.ZodEnum<{
1839
+ no_match: "no_match";
1840
+ not_in_warmup: "not_in_warmup";
1841
+ team_empty: "team_empty";
1842
+ not_live: "not_live";
1843
+ at_halftime: "at_halftime";
1844
+ no_backup: "no_backup";
1845
+ unsupported_request: "unsupported_request";
1846
+ }>>;
1847
+ }, z.core.$strip>, z.ZodObject<{
1848
+ type: z.ZodLiteral<"quitting">;
1849
+ }, z.core.$strip>], "type">;
1850
+ export type PluginToAgentMessage = z.infer<typeof PluginToAgentMessage>;
1851
+ /**
1852
+ * Asks the plugin for its server's state, which the plugin answers with a
1853
+ * {@link ServerStatus | server_status}.
1854
+ */
1855
+ export declare const PluginGetServerStatus: z.ZodObject<{
1856
+ type: z.ZodLiteral<"get_server_status">;
1857
+ request_id: z.ZodNullable<z.ZodString>;
1858
+ }, z.core.$strip>;
1859
+ /**
1860
+ * Runs a server console command. The plugin answers with a {@link CommandResult | command_result}
1861
+ * once it has handed the command to the engine.
1862
+ */
1863
+ export declare const ExecCommand: z.ZodObject<{
1864
+ type: z.ZodLiteral<"exec">;
1865
+ command: z.ZodString;
1866
+ request_id: z.ZodString;
1867
+ }, z.core.$strip>;
1868
+ /**
1869
+ * Loads the server's backup of a round, as {@link ControllerRestoreRound | restore_round} from the controller
1870
+ * asks. The plugin runs `mp_backup_restore_load_file` on the file the engine wrote for it
1871
+ * and answers with a {@link CommandResult | command_result}.
1872
+ */
1873
+ export declare const PluginRestoreRound: z.ZodObject<{
1874
+ type: z.ZodLiteral<"restore_round">;
1875
+ round: z.ZodNumber;
1876
+ request_id: z.ZodString;
1877
+ }, z.core.$strip>;
1878
+ /**
1879
+ * Starts a match in warmup whatever its `ready_mode`, as {@link ControllerStartMatch | start_match} from
1880
+ * the controller asks. The plugin answers with a {@link CommandResult | command_result}.
1881
+ */
1882
+ export declare const PluginStartMatch: z.ZodObject<{
1883
+ type: z.ZodLiteral<"start_match">;
1884
+ request_id: z.ZodString;
1885
+ }, z.core.$strip>;
1886
+ /**
1887
+ * What the agent asks of a game server.
1888
+ *
1889
+ * - `exec`: relays {@link ControllerConsoleCommand | console_command} from the controller.
1890
+ * - `restore_round`: relays {@link ControllerRestoreRound | restore_round} from the controller.
1891
+ * - `start_match`: relays {@link ControllerStartMatch | start_match} from the controller.
1892
+ * - `get_server_status`: the agent's own request.
1893
+ */
1894
+ export declare const PluginCommand: z.ZodDiscriminatedUnion<[z.ZodObject<{
1895
+ type: z.ZodLiteral<"exec">;
1896
+ command: z.ZodString;
1897
+ request_id: z.ZodString;
1898
+ }, z.core.$strip>, z.ZodObject<{
1899
+ type: z.ZodLiteral<"restore_round">;
1900
+ round: z.ZodNumber;
1901
+ request_id: z.ZodString;
1902
+ }, z.core.$strip>, z.ZodObject<{
1903
+ type: z.ZodLiteral<"start_match">;
1904
+ request_id: z.ZodString;
1905
+ }, z.core.$strip>, z.ZodObject<{
1906
+ type: z.ZodLiteral<"get_server_status">;
1907
+ request_id: z.ZodNullable<z.ZodString>;
1908
+ }, z.core.$strip>], "type">;
1909
+ export type PluginCommand = z.infer<typeof PluginCommand>;
1910
+ type WithoutRequestId<T> = T extends unknown ? Omit<T, 'request_id'> : never;
1911
+ /**
1912
+ * A command the plugin answers with a {@link CommandResult | command_result}, before the agent
1913
+ * gives it a `request_id`.
1914
+ */
1915
+ export type AnsweredCommand = WithoutRequestId<Extract<PluginCommand, {
1916
+ type: 'exec' | 'start_match' | 'restore_round';
1917
+ }>>;
1918
+ /**
1919
+ * What the agent sends a plugin: commands, and an {@link EventAck | ack} once events are stored on
1920
+ * the node.
1921
+ *
1922
+ * When the agent ends a plugin's socket, it sends a close frame whose reason says why: `1001` when
1923
+ * the agent shuts down, and `1000` when the plugin must replay its history, when a newer connection
1924
+ * of the same server takes its place, or when the server's launch has ended. The plugin reconnects
1925
+ * after each and resends from its last {@link EventAck | ack}.
1926
+ */
1927
+ export declare const AgentToPluginMessage: z.ZodDiscriminatedUnion<[z.ZodObject<{
1928
+ type: z.ZodLiteral<"exec">;
1929
+ command: z.ZodString;
1930
+ request_id: z.ZodString;
1931
+ }, z.core.$strip>, z.ZodObject<{
1932
+ type: z.ZodLiteral<"restore_round">;
1933
+ round: z.ZodNumber;
1934
+ request_id: z.ZodString;
1935
+ }, z.core.$strip>, z.ZodObject<{
1936
+ type: z.ZodLiteral<"start_match">;
1937
+ request_id: z.ZodString;
1938
+ }, z.core.$strip>, z.ZodObject<{
1939
+ type: z.ZodLiteral<"get_server_status">;
1940
+ request_id: z.ZodNullable<z.ZodString>;
1941
+ }, z.core.$strip>, z.ZodObject<{
1942
+ type: z.ZodLiteral<"ack">;
1943
+ to_seq: z.ZodNumber;
1944
+ }, z.core.$strip>], "type">;
1945
+ export type AgentToPluginMessage = z.infer<typeof AgentToPluginMessage>;
1946
+ export {};