@groovenet/contracts 1.1.0 → 1.3.0

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,867 @@
1
+ import { z } from "zod";
2
+ export declare const playerIdSchema: z.ZodString;
3
+ export declare const availabilityPolicySchema: z.ZodEnum<{
4
+ allow_unknown: "allow_unknown";
5
+ always: "always";
6
+ ask: "ask";
7
+ }>;
8
+ export declare const playerTrackRefSchema: z.ZodObject<{
9
+ track_id: z.ZodString;
10
+ friend_id: z.ZodNumber;
11
+ }, z.core.$strict>;
12
+ export declare const serverQueueEntrySchema: z.ZodObject<{
13
+ track_id: z.ZodString;
14
+ friend_id: z.ZodNumber;
15
+ id: z.ZodUUID;
16
+ title: z.ZodString;
17
+ artist: z.ZodString;
18
+ }, z.core.$strict>;
19
+ export declare const serverPlayerStateSchema: z.ZodObject<{
20
+ queue: z.ZodArray<z.ZodObject<{
21
+ track_id: z.ZodString;
22
+ friend_id: z.ZodNumber;
23
+ id: z.ZodUUID;
24
+ title: z.ZodString;
25
+ artist: z.ZodString;
26
+ }, z.core.$strict>>;
27
+ current_entry_id: z.ZodNullable<z.ZodUUID>;
28
+ status: z.ZodEnum<{
29
+ ended: "ended";
30
+ error: "error";
31
+ loading: "loading";
32
+ paused: "paused";
33
+ playing: "playing";
34
+ stopped: "stopped";
35
+ }>;
36
+ position: z.ZodNumber;
37
+ duration: z.ZodNullable<z.ZodNumber>;
38
+ volume: z.ZodNumber;
39
+ desired_output: z.ZodNullable<z.ZodString>;
40
+ checkpoint: z.ZodBoolean;
41
+ error: z.ZodNullable<z.ZodObject<{
42
+ code: z.ZodString;
43
+ message: z.ZodString;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strict>;
46
+ export declare const serverPlayerSchema: z.ZodObject<{
47
+ id: z.ZodString;
48
+ name: z.ZodString;
49
+ engine_id: z.ZodString;
50
+ availability_policy: z.ZodEnum<{
51
+ allow_unknown: "allow_unknown";
52
+ always: "always";
53
+ ask: "ask";
54
+ }>;
55
+ revision: z.ZodNumber;
56
+ assigned_output: z.ZodNullable<z.ZodString>;
57
+ state: z.ZodObject<{
58
+ queue: z.ZodArray<z.ZodObject<{
59
+ track_id: z.ZodString;
60
+ friend_id: z.ZodNumber;
61
+ id: z.ZodUUID;
62
+ title: z.ZodString;
63
+ artist: z.ZodString;
64
+ }, z.core.$strict>>;
65
+ current_entry_id: z.ZodNullable<z.ZodUUID>;
66
+ status: z.ZodEnum<{
67
+ ended: "ended";
68
+ error: "error";
69
+ loading: "loading";
70
+ paused: "paused";
71
+ playing: "playing";
72
+ stopped: "stopped";
73
+ }>;
74
+ position: z.ZodNumber;
75
+ duration: z.ZodNullable<z.ZodNumber>;
76
+ volume: z.ZodNumber;
77
+ desired_output: z.ZodNullable<z.ZodString>;
78
+ checkpoint: z.ZodBoolean;
79
+ error: z.ZodNullable<z.ZodObject<{
80
+ code: z.ZodString;
81
+ message: z.ZodString;
82
+ }, z.core.$strip>>;
83
+ }, z.core.$strict>;
84
+ }, z.core.$strict>;
85
+ export declare const createServerPlayerSchema: z.ZodObject<{
86
+ id: z.ZodString;
87
+ name: z.ZodString;
88
+ engine_id: z.ZodString;
89
+ }, z.core.$strict>;
90
+ export declare const serverPlayerCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
91
+ expected_revision: z.ZodOptional<z.ZodNumber>;
92
+ type: z.ZodLiteral<"rename">;
93
+ name: z.ZodString;
94
+ }, z.core.$strict>, z.ZodObject<{
95
+ expected_revision: z.ZodOptional<z.ZodNumber>;
96
+ type: z.ZodLiteral<"availability.set">;
97
+ availability_policy: z.ZodEnum<{
98
+ allow_unknown: "allow_unknown";
99
+ always: "always";
100
+ ask: "ask";
101
+ }>;
102
+ }, z.core.$strict>, z.ZodObject<{
103
+ expected_revision: z.ZodOptional<z.ZodNumber>;
104
+ type: z.ZodLiteral<"queue.add">;
105
+ tracks: z.ZodArray<z.ZodObject<{
106
+ track_id: z.ZodString;
107
+ friend_id: z.ZodNumber;
108
+ }, z.core.$strict>>;
109
+ at: z.ZodOptional<z.ZodNumber>;
110
+ }, z.core.$strict>, z.ZodObject<{
111
+ expected_revision: z.ZodOptional<z.ZodNumber>;
112
+ type: z.ZodLiteral<"queue.remove">;
113
+ entry_id: z.ZodUUID;
114
+ }, z.core.$strict>, z.ZodObject<{
115
+ expected_revision: z.ZodOptional<z.ZodNumber>;
116
+ type: z.ZodLiteral<"queue.move">;
117
+ entry_id: z.ZodUUID;
118
+ to: z.ZodNumber;
119
+ }, z.core.$strict>, z.ZodObject<{
120
+ expected_revision: z.ZodOptional<z.ZodNumber>;
121
+ type: z.ZodLiteral<"queue.clear">;
122
+ }, z.core.$strict>, z.ZodObject<{
123
+ expected_revision: z.ZodOptional<z.ZodNumber>;
124
+ allow_unknown: z.ZodDefault<z.ZodBoolean>;
125
+ takeover: z.ZodDefault<z.ZodBoolean>;
126
+ type: z.ZodLiteral<"queue.replace">;
127
+ entries: z.ZodArray<z.ZodObject<{
128
+ track_id: z.ZodString;
129
+ friend_id: z.ZodNumber;
130
+ id: z.ZodOptional<z.ZodUUID>;
131
+ }, z.core.$strict>>;
132
+ current_entry_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
133
+ position: z.ZodOptional<z.ZodNumber>;
134
+ play: z.ZodDefault<z.ZodBoolean>;
135
+ }, z.core.$strict>, z.ZodObject<{
136
+ expected_revision: z.ZodOptional<z.ZodNumber>;
137
+ allow_unknown: z.ZodDefault<z.ZodBoolean>;
138
+ takeover: z.ZodDefault<z.ZodBoolean>;
139
+ type: z.ZodLiteral<"play">;
140
+ entry_id: z.ZodOptional<z.ZodUUID>;
141
+ }, z.core.$strict>, z.ZodObject<{
142
+ expected_revision: z.ZodOptional<z.ZodNumber>;
143
+ type: z.ZodLiteral<"pause">;
144
+ }, z.core.$strict>, z.ZodObject<{
145
+ expected_revision: z.ZodOptional<z.ZodNumber>;
146
+ allow_unknown: z.ZodDefault<z.ZodBoolean>;
147
+ takeover: z.ZodDefault<z.ZodBoolean>;
148
+ type: z.ZodLiteral<"resume">;
149
+ }, z.core.$strict>, z.ZodObject<{
150
+ expected_revision: z.ZodOptional<z.ZodNumber>;
151
+ type: z.ZodLiteral<"stop">;
152
+ }, z.core.$strict>, z.ZodObject<{
153
+ expected_revision: z.ZodOptional<z.ZodNumber>;
154
+ allow_unknown: z.ZodDefault<z.ZodBoolean>;
155
+ takeover: z.ZodDefault<z.ZodBoolean>;
156
+ type: z.ZodLiteral<"next">;
157
+ }, z.core.$strict>, z.ZodObject<{
158
+ expected_revision: z.ZodOptional<z.ZodNumber>;
159
+ allow_unknown: z.ZodDefault<z.ZodBoolean>;
160
+ takeover: z.ZodDefault<z.ZodBoolean>;
161
+ type: z.ZodLiteral<"previous">;
162
+ }, z.core.$strict>, z.ZodObject<{
163
+ expected_revision: z.ZodOptional<z.ZodNumber>;
164
+ type: z.ZodLiteral<"seek">;
165
+ seconds: z.ZodNumber;
166
+ }, z.core.$strict>, z.ZodObject<{
167
+ expected_revision: z.ZodOptional<z.ZodNumber>;
168
+ type: z.ZodLiteral<"volume">;
169
+ volume: z.ZodNumber;
170
+ }, z.core.$strict>, z.ZodObject<{
171
+ expected_revision: z.ZodOptional<z.ZodNumber>;
172
+ allow_unknown: z.ZodDefault<z.ZodBoolean>;
173
+ takeover: z.ZodDefault<z.ZodBoolean>;
174
+ type: z.ZodLiteral<"output.select">;
175
+ output_id: z.ZodString;
176
+ }, z.core.$strict>, z.ZodObject<{
177
+ expected_revision: z.ZodOptional<z.ZodNumber>;
178
+ allow_unknown: z.ZodDefault<z.ZodBoolean>;
179
+ takeover: z.ZodDefault<z.ZodBoolean>;
180
+ type: z.ZodLiteral<"output.transfer">;
181
+ from_player_id: z.ZodString;
182
+ from_revision: z.ZodNumber;
183
+ output_id: z.ZodString;
184
+ play: z.ZodDefault<z.ZodBoolean>;
185
+ }, z.core.$strict>], "type">;
186
+ export declare const speakerObservationSchema: z.ZodObject<{
187
+ availability: z.ZodEnum<{
188
+ idle: "idle";
189
+ occupied: "occupied";
190
+ unknown: "unknown";
191
+ }>;
192
+ observed_at: z.ZodNullable<z.ZodString>;
193
+ source: z.ZodEnum<{
194
+ home_assistant: "home_assistant";
195
+ unconfigured: "unconfigured";
196
+ }>;
197
+ sender_identity: z.ZodEnum<{
198
+ foreign: "foreign";
199
+ groovenet: "groovenet";
200
+ unknown: "unknown";
201
+ }>;
202
+ sender_engine_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
203
+ entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
+ }, z.core.$strip>;
205
+ export declare const serverPlayerDeviceSchema: z.ZodObject<{
206
+ id: z.ZodString;
207
+ name: z.ZodString;
208
+ description: z.ZodOptional<z.ZodString>;
209
+ assigned_player_id: z.ZodNullable<z.ZodString>;
210
+ desired_by: z.ZodArray<z.ZodString>;
211
+ observed: z.ZodObject<{
212
+ availability: z.ZodEnum<{
213
+ idle: "idle";
214
+ occupied: "occupied";
215
+ unknown: "unknown";
216
+ }>;
217
+ observed_at: z.ZodNullable<z.ZodString>;
218
+ source: z.ZodEnum<{
219
+ home_assistant: "home_assistant";
220
+ unconfigured: "unconfigured";
221
+ }>;
222
+ sender_identity: z.ZodEnum<{
223
+ foreign: "foreign";
224
+ groovenet: "groovenet";
225
+ unknown: "unknown";
226
+ }>;
227
+ sender_engine_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
228
+ entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
229
+ }, z.core.$strip>;
230
+ }, z.core.$strip>;
231
+ export declare const serverPlayerCommandResultSchema: z.ZodObject<{
232
+ player: z.ZodObject<{
233
+ id: z.ZodString;
234
+ name: z.ZodString;
235
+ engine_id: z.ZodString;
236
+ availability_policy: z.ZodEnum<{
237
+ allow_unknown: "allow_unknown";
238
+ always: "always";
239
+ ask: "ask";
240
+ }>;
241
+ revision: z.ZodNumber;
242
+ assigned_output: z.ZodNullable<z.ZodString>;
243
+ state: z.ZodObject<{
244
+ queue: z.ZodArray<z.ZodObject<{
245
+ track_id: z.ZodString;
246
+ friend_id: z.ZodNumber;
247
+ id: z.ZodUUID;
248
+ title: z.ZodString;
249
+ artist: z.ZodString;
250
+ }, z.core.$strict>>;
251
+ current_entry_id: z.ZodNullable<z.ZodUUID>;
252
+ status: z.ZodEnum<{
253
+ ended: "ended";
254
+ error: "error";
255
+ loading: "loading";
256
+ paused: "paused";
257
+ playing: "playing";
258
+ stopped: "stopped";
259
+ }>;
260
+ position: z.ZodNumber;
261
+ duration: z.ZodNullable<z.ZodNumber>;
262
+ volume: z.ZodNumber;
263
+ desired_output: z.ZodNullable<z.ZodString>;
264
+ checkpoint: z.ZodBoolean;
265
+ error: z.ZodNullable<z.ZodObject<{
266
+ code: z.ZodString;
267
+ message: z.ZodString;
268
+ }, z.core.$strip>>;
269
+ }, z.core.$strict>;
270
+ }, z.core.$strict>;
271
+ transfer: z.ZodOptional<z.ZodObject<{
272
+ from_player: z.ZodObject<{
273
+ id: z.ZodString;
274
+ name: z.ZodString;
275
+ engine_id: z.ZodString;
276
+ availability_policy: z.ZodEnum<{
277
+ allow_unknown: "allow_unknown";
278
+ always: "always";
279
+ ask: "ask";
280
+ }>;
281
+ revision: z.ZodNumber;
282
+ assigned_output: z.ZodNullable<z.ZodString>;
283
+ state: z.ZodObject<{
284
+ queue: z.ZodArray<z.ZodObject<{
285
+ track_id: z.ZodString;
286
+ friend_id: z.ZodNumber;
287
+ id: z.ZodUUID;
288
+ title: z.ZodString;
289
+ artist: z.ZodString;
290
+ }, z.core.$strict>>;
291
+ current_entry_id: z.ZodNullable<z.ZodUUID>;
292
+ status: z.ZodEnum<{
293
+ ended: "ended";
294
+ error: "error";
295
+ loading: "loading";
296
+ paused: "paused";
297
+ playing: "playing";
298
+ stopped: "stopped";
299
+ }>;
300
+ position: z.ZodNumber;
301
+ duration: z.ZodNullable<z.ZodNumber>;
302
+ volume: z.ZodNumber;
303
+ desired_output: z.ZodNullable<z.ZodString>;
304
+ checkpoint: z.ZodBoolean;
305
+ error: z.ZodNullable<z.ZodObject<{
306
+ code: z.ZodString;
307
+ message: z.ZodString;
308
+ }, z.core.$strip>>;
309
+ }, z.core.$strict>;
310
+ }, z.core.$strict>;
311
+ detached: z.ZodBoolean;
312
+ attached: z.ZodBoolean;
313
+ error: z.ZodNullable<z.ZodObject<{
314
+ code: z.ZodString;
315
+ message: z.ZodString;
316
+ }, z.core.$strip>>;
317
+ }, z.core.$strip>>;
318
+ }, z.core.$strip>;
319
+ export type ServerPlayer = z.infer<typeof serverPlayerSchema>;
320
+ export type ServerPlayerState = z.infer<typeof serverPlayerStateSchema>;
321
+ export type ServerQueueEntry = z.infer<typeof serverQueueEntrySchema>;
322
+ export type CreateServerPlayer = z.infer<typeof createServerPlayerSchema>;
323
+ export type ServerPlayerCommand = z.infer<typeof serverPlayerCommandSchema>;
324
+ export type ServerPlayerCommandInput = z.input<typeof serverPlayerCommandSchema>;
325
+ export type ServerPlayerCommandResult = z.infer<typeof serverPlayerCommandResultSchema>;
326
+ export type SpeakerObservation = z.infer<typeof speakerObservationSchema>;
327
+ export type ServerPlayerDevice = z.infer<typeof serverPlayerDeviceSchema>;
328
+ export type PlayerTrackRef = z.infer<typeof playerTrackRefSchema>;
329
+ export declare const serverPlayerListSchema: z.ZodObject<{
330
+ players: z.ZodArray<z.ZodObject<{
331
+ id: z.ZodString;
332
+ name: z.ZodString;
333
+ engine_id: z.ZodString;
334
+ availability_policy: z.ZodEnum<{
335
+ allow_unknown: "allow_unknown";
336
+ always: "always";
337
+ ask: "ask";
338
+ }>;
339
+ revision: z.ZodNumber;
340
+ assigned_output: z.ZodNullable<z.ZodString>;
341
+ state: z.ZodObject<{
342
+ queue: z.ZodArray<z.ZodObject<{
343
+ track_id: z.ZodString;
344
+ friend_id: z.ZodNumber;
345
+ id: z.ZodUUID;
346
+ title: z.ZodString;
347
+ artist: z.ZodString;
348
+ }, z.core.$strict>>;
349
+ current_entry_id: z.ZodNullable<z.ZodUUID>;
350
+ status: z.ZodEnum<{
351
+ ended: "ended";
352
+ error: "error";
353
+ loading: "loading";
354
+ paused: "paused";
355
+ playing: "playing";
356
+ stopped: "stopped";
357
+ }>;
358
+ position: z.ZodNumber;
359
+ duration: z.ZodNullable<z.ZodNumber>;
360
+ volume: z.ZodNumber;
361
+ desired_output: z.ZodNullable<z.ZodString>;
362
+ checkpoint: z.ZodBoolean;
363
+ error: z.ZodNullable<z.ZodObject<{
364
+ code: z.ZodString;
365
+ message: z.ZodString;
366
+ }, z.core.$strip>>;
367
+ }, z.core.$strict>;
368
+ }, z.core.$strict>>;
369
+ }, z.core.$strip>;
370
+ export declare const serverPlayerDeviceListSchema: z.ZodObject<{
371
+ devices: z.ZodArray<z.ZodObject<{
372
+ id: z.ZodString;
373
+ name: z.ZodString;
374
+ description: z.ZodOptional<z.ZodString>;
375
+ assigned_player_id: z.ZodNullable<z.ZodString>;
376
+ desired_by: z.ZodArray<z.ZodString>;
377
+ observed: z.ZodObject<{
378
+ availability: z.ZodEnum<{
379
+ idle: "idle";
380
+ occupied: "occupied";
381
+ unknown: "unknown";
382
+ }>;
383
+ observed_at: z.ZodNullable<z.ZodString>;
384
+ source: z.ZodEnum<{
385
+ home_assistant: "home_assistant";
386
+ unconfigured: "unconfigured";
387
+ }>;
388
+ sender_identity: z.ZodEnum<{
389
+ foreign: "foreign";
390
+ groovenet: "groovenet";
391
+ unknown: "unknown";
392
+ }>;
393
+ sender_engine_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
394
+ entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
395
+ }, z.core.$strip>;
396
+ }, z.core.$strip>>;
397
+ }, z.core.$strip>;
398
+ export declare const playerEngineListSchema: z.ZodObject<{
399
+ engines: z.ZodArray<z.ZodString>;
400
+ }, z.core.$strip>;
401
+ export declare const serverPlayerEventSchema: z.ZodObject<{
402
+ type: z.ZodLiteral<"snapshot">;
403
+ player: z.ZodObject<{
404
+ id: z.ZodString;
405
+ name: z.ZodString;
406
+ engine_id: z.ZodString;
407
+ availability_policy: z.ZodEnum<{
408
+ allow_unknown: "allow_unknown";
409
+ always: "always";
410
+ ask: "ask";
411
+ }>;
412
+ revision: z.ZodNumber;
413
+ assigned_output: z.ZodNullable<z.ZodString>;
414
+ state: z.ZodObject<{
415
+ queue: z.ZodArray<z.ZodObject<{
416
+ track_id: z.ZodString;
417
+ friend_id: z.ZodNumber;
418
+ id: z.ZodUUID;
419
+ title: z.ZodString;
420
+ artist: z.ZodString;
421
+ }, z.core.$strict>>;
422
+ current_entry_id: z.ZodNullable<z.ZodUUID>;
423
+ status: z.ZodEnum<{
424
+ ended: "ended";
425
+ error: "error";
426
+ loading: "loading";
427
+ paused: "paused";
428
+ playing: "playing";
429
+ stopped: "stopped";
430
+ }>;
431
+ position: z.ZodNumber;
432
+ duration: z.ZodNullable<z.ZodNumber>;
433
+ volume: z.ZodNumber;
434
+ desired_output: z.ZodNullable<z.ZodString>;
435
+ checkpoint: z.ZodBoolean;
436
+ error: z.ZodNullable<z.ZodObject<{
437
+ code: z.ZodString;
438
+ message: z.ZodString;
439
+ }, z.core.$strip>>;
440
+ }, z.core.$strict>;
441
+ }, z.core.$strict>;
442
+ worker_instance: z.ZodUUID;
443
+ sequence: z.ZodNumber;
444
+ }, z.core.$strip>;
445
+ export declare const serverPlayerPositionSchema: z.ZodObject<{
446
+ type: z.ZodLiteral<"position">;
447
+ player_id: z.ZodString;
448
+ revision: z.ZodNumber;
449
+ current_entry_id: z.ZodNullable<z.ZodUUID>;
450
+ position: z.ZodNumber;
451
+ duration: z.ZodNullable<z.ZodNumber>;
452
+ observed_at: z.ZodString;
453
+ worker_instance: z.ZodUUID;
454
+ sequence: z.ZodNumber;
455
+ }, z.core.$strip>;
456
+ export declare const serverPlayerStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
457
+ type: z.ZodLiteral<"snapshot">;
458
+ player: z.ZodObject<{
459
+ id: z.ZodString;
460
+ name: z.ZodString;
461
+ engine_id: z.ZodString;
462
+ availability_policy: z.ZodEnum<{
463
+ allow_unknown: "allow_unknown";
464
+ always: "always";
465
+ ask: "ask";
466
+ }>;
467
+ revision: z.ZodNumber;
468
+ assigned_output: z.ZodNullable<z.ZodString>;
469
+ state: z.ZodObject<{
470
+ queue: z.ZodArray<z.ZodObject<{
471
+ track_id: z.ZodString;
472
+ friend_id: z.ZodNumber;
473
+ id: z.ZodUUID;
474
+ title: z.ZodString;
475
+ artist: z.ZodString;
476
+ }, z.core.$strict>>;
477
+ current_entry_id: z.ZodNullable<z.ZodUUID>;
478
+ status: z.ZodEnum<{
479
+ ended: "ended";
480
+ error: "error";
481
+ loading: "loading";
482
+ paused: "paused";
483
+ playing: "playing";
484
+ stopped: "stopped";
485
+ }>;
486
+ position: z.ZodNumber;
487
+ duration: z.ZodNullable<z.ZodNumber>;
488
+ volume: z.ZodNumber;
489
+ desired_output: z.ZodNullable<z.ZodString>;
490
+ checkpoint: z.ZodBoolean;
491
+ error: z.ZodNullable<z.ZodObject<{
492
+ code: z.ZodString;
493
+ message: z.ZodString;
494
+ }, z.core.$strip>>;
495
+ }, z.core.$strict>;
496
+ }, z.core.$strict>;
497
+ worker_instance: z.ZodUUID;
498
+ sequence: z.ZodNumber;
499
+ }, z.core.$strip>, z.ZodObject<{
500
+ type: z.ZodLiteral<"position">;
501
+ player_id: z.ZodString;
502
+ revision: z.ZodNumber;
503
+ current_entry_id: z.ZodNullable<z.ZodUUID>;
504
+ position: z.ZodNumber;
505
+ duration: z.ZodNullable<z.ZodNumber>;
506
+ observed_at: z.ZodString;
507
+ worker_instance: z.ZodUUID;
508
+ sequence: z.ZodNumber;
509
+ }, z.core.$strip>], "type">;
510
+ export declare const playerJsonSchemas: {
511
+ ServerPlayer: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
512
+ id: z.ZodString;
513
+ name: z.ZodString;
514
+ engine_id: z.ZodString;
515
+ availability_policy: z.ZodEnum<{
516
+ allow_unknown: "allow_unknown";
517
+ always: "always";
518
+ ask: "ask";
519
+ }>;
520
+ revision: z.ZodNumber;
521
+ assigned_output: z.ZodNullable<z.ZodString>;
522
+ state: z.ZodObject<{
523
+ queue: z.ZodArray<z.ZodObject<{
524
+ track_id: z.ZodString;
525
+ friend_id: z.ZodNumber;
526
+ id: z.ZodUUID;
527
+ title: z.ZodString;
528
+ artist: z.ZodString;
529
+ }, z.core.$strict>>;
530
+ current_entry_id: z.ZodNullable<z.ZodUUID>;
531
+ status: z.ZodEnum<{
532
+ ended: "ended";
533
+ error: "error";
534
+ loading: "loading";
535
+ paused: "paused";
536
+ playing: "playing";
537
+ stopped: "stopped";
538
+ }>;
539
+ position: z.ZodNumber;
540
+ duration: z.ZodNullable<z.ZodNumber>;
541
+ volume: z.ZodNumber;
542
+ desired_output: z.ZodNullable<z.ZodString>;
543
+ checkpoint: z.ZodBoolean;
544
+ error: z.ZodNullable<z.ZodObject<{
545
+ code: z.ZodString;
546
+ message: z.ZodString;
547
+ }, z.core.$strip>>;
548
+ }, z.core.$strict>;
549
+ }, z.core.$strict>>;
550
+ CreateServerPlayer: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
551
+ id: z.ZodString;
552
+ name: z.ZodString;
553
+ engine_id: z.ZodString;
554
+ }, z.core.$strict>>;
555
+ ServerPlayerCommand: z.core.ZodStandardJSONSchemaPayload<z.ZodDiscriminatedUnion<[z.ZodObject<{
556
+ expected_revision: z.ZodOptional<z.ZodNumber>;
557
+ type: z.ZodLiteral<"rename">;
558
+ name: z.ZodString;
559
+ }, z.core.$strict>, z.ZodObject<{
560
+ expected_revision: z.ZodOptional<z.ZodNumber>;
561
+ type: z.ZodLiteral<"availability.set">;
562
+ availability_policy: z.ZodEnum<{
563
+ allow_unknown: "allow_unknown";
564
+ always: "always";
565
+ ask: "ask";
566
+ }>;
567
+ }, z.core.$strict>, z.ZodObject<{
568
+ expected_revision: z.ZodOptional<z.ZodNumber>;
569
+ type: z.ZodLiteral<"queue.add">;
570
+ tracks: z.ZodArray<z.ZodObject<{
571
+ track_id: z.ZodString;
572
+ friend_id: z.ZodNumber;
573
+ }, z.core.$strict>>;
574
+ at: z.ZodOptional<z.ZodNumber>;
575
+ }, z.core.$strict>, z.ZodObject<{
576
+ expected_revision: z.ZodOptional<z.ZodNumber>;
577
+ type: z.ZodLiteral<"queue.remove">;
578
+ entry_id: z.ZodUUID;
579
+ }, z.core.$strict>, z.ZodObject<{
580
+ expected_revision: z.ZodOptional<z.ZodNumber>;
581
+ type: z.ZodLiteral<"queue.move">;
582
+ entry_id: z.ZodUUID;
583
+ to: z.ZodNumber;
584
+ }, z.core.$strict>, z.ZodObject<{
585
+ expected_revision: z.ZodOptional<z.ZodNumber>;
586
+ type: z.ZodLiteral<"queue.clear">;
587
+ }, z.core.$strict>, z.ZodObject<{
588
+ expected_revision: z.ZodOptional<z.ZodNumber>;
589
+ allow_unknown: z.ZodDefault<z.ZodBoolean>;
590
+ takeover: z.ZodDefault<z.ZodBoolean>;
591
+ type: z.ZodLiteral<"queue.replace">;
592
+ entries: z.ZodArray<z.ZodObject<{
593
+ track_id: z.ZodString;
594
+ friend_id: z.ZodNumber;
595
+ id: z.ZodOptional<z.ZodUUID>;
596
+ }, z.core.$strict>>;
597
+ current_entry_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
598
+ position: z.ZodOptional<z.ZodNumber>;
599
+ play: z.ZodDefault<z.ZodBoolean>;
600
+ }, z.core.$strict>, z.ZodObject<{
601
+ expected_revision: z.ZodOptional<z.ZodNumber>;
602
+ allow_unknown: z.ZodDefault<z.ZodBoolean>;
603
+ takeover: z.ZodDefault<z.ZodBoolean>;
604
+ type: z.ZodLiteral<"play">;
605
+ entry_id: z.ZodOptional<z.ZodUUID>;
606
+ }, z.core.$strict>, z.ZodObject<{
607
+ expected_revision: z.ZodOptional<z.ZodNumber>;
608
+ type: z.ZodLiteral<"pause">;
609
+ }, z.core.$strict>, z.ZodObject<{
610
+ expected_revision: z.ZodOptional<z.ZodNumber>;
611
+ allow_unknown: z.ZodDefault<z.ZodBoolean>;
612
+ takeover: z.ZodDefault<z.ZodBoolean>;
613
+ type: z.ZodLiteral<"resume">;
614
+ }, z.core.$strict>, z.ZodObject<{
615
+ expected_revision: z.ZodOptional<z.ZodNumber>;
616
+ type: z.ZodLiteral<"stop">;
617
+ }, z.core.$strict>, z.ZodObject<{
618
+ expected_revision: z.ZodOptional<z.ZodNumber>;
619
+ allow_unknown: z.ZodDefault<z.ZodBoolean>;
620
+ takeover: z.ZodDefault<z.ZodBoolean>;
621
+ type: z.ZodLiteral<"next">;
622
+ }, z.core.$strict>, z.ZodObject<{
623
+ expected_revision: z.ZodOptional<z.ZodNumber>;
624
+ allow_unknown: z.ZodDefault<z.ZodBoolean>;
625
+ takeover: z.ZodDefault<z.ZodBoolean>;
626
+ type: z.ZodLiteral<"previous">;
627
+ }, z.core.$strict>, z.ZodObject<{
628
+ expected_revision: z.ZodOptional<z.ZodNumber>;
629
+ type: z.ZodLiteral<"seek">;
630
+ seconds: z.ZodNumber;
631
+ }, z.core.$strict>, z.ZodObject<{
632
+ expected_revision: z.ZodOptional<z.ZodNumber>;
633
+ type: z.ZodLiteral<"volume">;
634
+ volume: z.ZodNumber;
635
+ }, z.core.$strict>, z.ZodObject<{
636
+ expected_revision: z.ZodOptional<z.ZodNumber>;
637
+ allow_unknown: z.ZodDefault<z.ZodBoolean>;
638
+ takeover: z.ZodDefault<z.ZodBoolean>;
639
+ type: z.ZodLiteral<"output.select">;
640
+ output_id: z.ZodString;
641
+ }, z.core.$strict>, z.ZodObject<{
642
+ expected_revision: z.ZodOptional<z.ZodNumber>;
643
+ allow_unknown: z.ZodDefault<z.ZodBoolean>;
644
+ takeover: z.ZodDefault<z.ZodBoolean>;
645
+ type: z.ZodLiteral<"output.transfer">;
646
+ from_player_id: z.ZodString;
647
+ from_revision: z.ZodNumber;
648
+ output_id: z.ZodString;
649
+ play: z.ZodDefault<z.ZodBoolean>;
650
+ }, z.core.$strict>], "type">>;
651
+ ServerPlayerCommandResult: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
652
+ player: z.ZodObject<{
653
+ id: z.ZodString;
654
+ name: z.ZodString;
655
+ engine_id: z.ZodString;
656
+ availability_policy: z.ZodEnum<{
657
+ allow_unknown: "allow_unknown";
658
+ always: "always";
659
+ ask: "ask";
660
+ }>;
661
+ revision: z.ZodNumber;
662
+ assigned_output: z.ZodNullable<z.ZodString>;
663
+ state: z.ZodObject<{
664
+ queue: z.ZodArray<z.ZodObject<{
665
+ track_id: z.ZodString;
666
+ friend_id: z.ZodNumber;
667
+ id: z.ZodUUID;
668
+ title: z.ZodString;
669
+ artist: z.ZodString;
670
+ }, z.core.$strict>>;
671
+ current_entry_id: z.ZodNullable<z.ZodUUID>;
672
+ status: z.ZodEnum<{
673
+ ended: "ended";
674
+ error: "error";
675
+ loading: "loading";
676
+ paused: "paused";
677
+ playing: "playing";
678
+ stopped: "stopped";
679
+ }>;
680
+ position: z.ZodNumber;
681
+ duration: z.ZodNullable<z.ZodNumber>;
682
+ volume: z.ZodNumber;
683
+ desired_output: z.ZodNullable<z.ZodString>;
684
+ checkpoint: z.ZodBoolean;
685
+ error: z.ZodNullable<z.ZodObject<{
686
+ code: z.ZodString;
687
+ message: z.ZodString;
688
+ }, z.core.$strip>>;
689
+ }, z.core.$strict>;
690
+ }, z.core.$strict>;
691
+ transfer: z.ZodOptional<z.ZodObject<{
692
+ from_player: z.ZodObject<{
693
+ id: z.ZodString;
694
+ name: z.ZodString;
695
+ engine_id: z.ZodString;
696
+ availability_policy: z.ZodEnum<{
697
+ allow_unknown: "allow_unknown";
698
+ always: "always";
699
+ ask: "ask";
700
+ }>;
701
+ revision: z.ZodNumber;
702
+ assigned_output: z.ZodNullable<z.ZodString>;
703
+ state: z.ZodObject<{
704
+ queue: z.ZodArray<z.ZodObject<{
705
+ track_id: z.ZodString;
706
+ friend_id: z.ZodNumber;
707
+ id: z.ZodUUID;
708
+ title: z.ZodString;
709
+ artist: z.ZodString;
710
+ }, z.core.$strict>>;
711
+ current_entry_id: z.ZodNullable<z.ZodUUID>;
712
+ status: z.ZodEnum<{
713
+ ended: "ended";
714
+ error: "error";
715
+ loading: "loading";
716
+ paused: "paused";
717
+ playing: "playing";
718
+ stopped: "stopped";
719
+ }>;
720
+ position: z.ZodNumber;
721
+ duration: z.ZodNullable<z.ZodNumber>;
722
+ volume: z.ZodNumber;
723
+ desired_output: z.ZodNullable<z.ZodString>;
724
+ checkpoint: z.ZodBoolean;
725
+ error: z.ZodNullable<z.ZodObject<{
726
+ code: z.ZodString;
727
+ message: z.ZodString;
728
+ }, z.core.$strip>>;
729
+ }, z.core.$strict>;
730
+ }, z.core.$strict>;
731
+ detached: z.ZodBoolean;
732
+ attached: z.ZodBoolean;
733
+ error: z.ZodNullable<z.ZodObject<{
734
+ code: z.ZodString;
735
+ message: z.ZodString;
736
+ }, z.core.$strip>>;
737
+ }, z.core.$strip>>;
738
+ }, z.core.$strip>>;
739
+ ServerPlayerList: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
740
+ players: z.ZodArray<z.ZodObject<{
741
+ id: z.ZodString;
742
+ name: z.ZodString;
743
+ engine_id: z.ZodString;
744
+ availability_policy: z.ZodEnum<{
745
+ allow_unknown: "allow_unknown";
746
+ always: "always";
747
+ ask: "ask";
748
+ }>;
749
+ revision: z.ZodNumber;
750
+ assigned_output: z.ZodNullable<z.ZodString>;
751
+ state: z.ZodObject<{
752
+ queue: z.ZodArray<z.ZodObject<{
753
+ track_id: z.ZodString;
754
+ friend_id: z.ZodNumber;
755
+ id: z.ZodUUID;
756
+ title: z.ZodString;
757
+ artist: z.ZodString;
758
+ }, z.core.$strict>>;
759
+ current_entry_id: z.ZodNullable<z.ZodUUID>;
760
+ status: z.ZodEnum<{
761
+ ended: "ended";
762
+ error: "error";
763
+ loading: "loading";
764
+ paused: "paused";
765
+ playing: "playing";
766
+ stopped: "stopped";
767
+ }>;
768
+ position: z.ZodNumber;
769
+ duration: z.ZodNullable<z.ZodNumber>;
770
+ volume: z.ZodNumber;
771
+ desired_output: z.ZodNullable<z.ZodString>;
772
+ checkpoint: z.ZodBoolean;
773
+ error: z.ZodNullable<z.ZodObject<{
774
+ code: z.ZodString;
775
+ message: z.ZodString;
776
+ }, z.core.$strip>>;
777
+ }, z.core.$strict>;
778
+ }, z.core.$strict>>;
779
+ }, z.core.$strip>>;
780
+ ServerPlayerDeviceList: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
781
+ devices: z.ZodArray<z.ZodObject<{
782
+ id: z.ZodString;
783
+ name: z.ZodString;
784
+ description: z.ZodOptional<z.ZodString>;
785
+ assigned_player_id: z.ZodNullable<z.ZodString>;
786
+ desired_by: z.ZodArray<z.ZodString>;
787
+ observed: z.ZodObject<{
788
+ availability: z.ZodEnum<{
789
+ idle: "idle";
790
+ occupied: "occupied";
791
+ unknown: "unknown";
792
+ }>;
793
+ observed_at: z.ZodNullable<z.ZodString>;
794
+ source: z.ZodEnum<{
795
+ home_assistant: "home_assistant";
796
+ unconfigured: "unconfigured";
797
+ }>;
798
+ sender_identity: z.ZodEnum<{
799
+ foreign: "foreign";
800
+ groovenet: "groovenet";
801
+ unknown: "unknown";
802
+ }>;
803
+ sender_engine_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
804
+ entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
805
+ }, z.core.$strip>;
806
+ }, z.core.$strip>>;
807
+ }, z.core.$strip>>;
808
+ PlayerEngineList: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
809
+ engines: z.ZodArray<z.ZodString>;
810
+ }, z.core.$strip>>;
811
+ ServerPlayerEvent: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
812
+ type: z.ZodLiteral<"snapshot">;
813
+ player: z.ZodObject<{
814
+ id: z.ZodString;
815
+ name: z.ZodString;
816
+ engine_id: z.ZodString;
817
+ availability_policy: z.ZodEnum<{
818
+ allow_unknown: "allow_unknown";
819
+ always: "always";
820
+ ask: "ask";
821
+ }>;
822
+ revision: z.ZodNumber;
823
+ assigned_output: z.ZodNullable<z.ZodString>;
824
+ state: z.ZodObject<{
825
+ queue: z.ZodArray<z.ZodObject<{
826
+ track_id: z.ZodString;
827
+ friend_id: z.ZodNumber;
828
+ id: z.ZodUUID;
829
+ title: z.ZodString;
830
+ artist: z.ZodString;
831
+ }, z.core.$strict>>;
832
+ current_entry_id: z.ZodNullable<z.ZodUUID>;
833
+ status: z.ZodEnum<{
834
+ ended: "ended";
835
+ error: "error";
836
+ loading: "loading";
837
+ paused: "paused";
838
+ playing: "playing";
839
+ stopped: "stopped";
840
+ }>;
841
+ position: z.ZodNumber;
842
+ duration: z.ZodNullable<z.ZodNumber>;
843
+ volume: z.ZodNumber;
844
+ desired_output: z.ZodNullable<z.ZodString>;
845
+ checkpoint: z.ZodBoolean;
846
+ error: z.ZodNullable<z.ZodObject<{
847
+ code: z.ZodString;
848
+ message: z.ZodString;
849
+ }, z.core.$strip>>;
850
+ }, z.core.$strict>;
851
+ }, z.core.$strict>;
852
+ worker_instance: z.ZodUUID;
853
+ sequence: z.ZodNumber;
854
+ }, z.core.$strip>>;
855
+ ServerPlayerPosition: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
856
+ type: z.ZodLiteral<"position">;
857
+ player_id: z.ZodString;
858
+ revision: z.ZodNumber;
859
+ current_entry_id: z.ZodNullable<z.ZodUUID>;
860
+ position: z.ZodNumber;
861
+ duration: z.ZodNullable<z.ZodNumber>;
862
+ observed_at: z.ZodString;
863
+ worker_instance: z.ZodUUID;
864
+ sequence: z.ZodNumber;
865
+ }, z.core.$strip>>;
866
+ };
867
+ //# sourceMappingURL=players.d.ts.map