@4players/odin-common 4.0.1 → 4.0.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/package.json +1 -1
- package/rpc/commands.d.ts +12 -12
- package/rpc/notifications.d.ts +80 -80
- package/schema/message.d.ts +3 -3
- package/schema/peer.d.ts +6 -6
- package/schema/room.d.ts +186 -186
- package/schema/serialization.d.ts +5 -5
- package/utility/bytearray.d.ts +3 -3
- package/utility/json.d.ts +2 -2
package/schema/room.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ export declare namespace RoomV1 {
|
|
|
5
5
|
const RoomSchema: z.ZodObject<{
|
|
6
6
|
id: z.ZodString;
|
|
7
7
|
customer: z.ZodString;
|
|
8
|
-
user_data: z.ZodType<Uint8Array
|
|
8
|
+
user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
9
9
|
peers: z.ZodArray<z.ZodObject<{
|
|
10
10
|
id: z.ZodNumber;
|
|
11
11
|
user_id: z.ZodString;
|
|
12
|
-
user_data: z.ZodType<Uint8Array
|
|
12
|
+
user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
13
13
|
medias: z.ZodArray<z.ZodObject<{
|
|
14
14
|
id: z.ZodNumber;
|
|
15
15
|
properties: z.ZodUnion<[z.ZodObject<{
|
|
@@ -71,7 +71,7 @@ export declare namespace RoomV1 {
|
|
|
71
71
|
}, "strip", z.ZodTypeAny, {
|
|
72
72
|
id?: number;
|
|
73
73
|
user_id?: string;
|
|
74
|
-
user_data?: Uint8Array
|
|
74
|
+
user_data?: Uint8Array;
|
|
75
75
|
medias?: {
|
|
76
76
|
id?: number;
|
|
77
77
|
paused?: boolean;
|
|
@@ -89,7 +89,7 @@ export declare namespace RoomV1 {
|
|
|
89
89
|
}, {
|
|
90
90
|
id?: number;
|
|
91
91
|
user_id?: string;
|
|
92
|
-
user_data?: Uint8Array
|
|
92
|
+
user_data?: Uint8Array;
|
|
93
93
|
medias?: {
|
|
94
94
|
id?: number;
|
|
95
95
|
paused?: boolean;
|
|
@@ -107,12 +107,12 @@ export declare namespace RoomV1 {
|
|
|
107
107
|
}>, "many">;
|
|
108
108
|
}, "strip", z.ZodTypeAny, {
|
|
109
109
|
id?: string;
|
|
110
|
-
user_data?: Uint8Array
|
|
110
|
+
user_data?: Uint8Array;
|
|
111
111
|
customer?: string;
|
|
112
112
|
peers?: {
|
|
113
113
|
id?: number;
|
|
114
114
|
user_id?: string;
|
|
115
|
-
user_data?: Uint8Array
|
|
115
|
+
user_data?: Uint8Array;
|
|
116
116
|
medias?: {
|
|
117
117
|
id?: number;
|
|
118
118
|
paused?: boolean;
|
|
@@ -130,12 +130,12 @@ export declare namespace RoomV1 {
|
|
|
130
130
|
}[];
|
|
131
131
|
}, {
|
|
132
132
|
id?: string;
|
|
133
|
-
user_data?: Uint8Array
|
|
133
|
+
user_data?: Uint8Array;
|
|
134
134
|
customer?: string;
|
|
135
135
|
peers?: {
|
|
136
136
|
id?: number;
|
|
137
137
|
user_id?: string;
|
|
138
|
-
user_data?: Uint8Array
|
|
138
|
+
user_data?: Uint8Array;
|
|
139
139
|
medias?: {
|
|
140
140
|
id?: number;
|
|
141
141
|
paused?: boolean;
|
|
@@ -158,11 +158,11 @@ export declare namespace RoomV1 {
|
|
|
158
158
|
room: z.ZodObject<{
|
|
159
159
|
id: z.ZodString;
|
|
160
160
|
customer: z.ZodString;
|
|
161
|
-
user_data: z.ZodType<Uint8Array
|
|
161
|
+
user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
162
162
|
peers: z.ZodArray<z.ZodObject<{
|
|
163
163
|
id: z.ZodNumber;
|
|
164
164
|
user_id: z.ZodString;
|
|
165
|
-
user_data: z.ZodType<Uint8Array
|
|
165
|
+
user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
166
166
|
medias: z.ZodArray<z.ZodObject<{
|
|
167
167
|
id: z.ZodNumber;
|
|
168
168
|
properties: z.ZodUnion<[z.ZodObject<{
|
|
@@ -224,7 +224,7 @@ export declare namespace RoomV1 {
|
|
|
224
224
|
}, "strip", z.ZodTypeAny, {
|
|
225
225
|
id?: number;
|
|
226
226
|
user_id?: string;
|
|
227
|
-
user_data?: Uint8Array
|
|
227
|
+
user_data?: Uint8Array;
|
|
228
228
|
medias?: {
|
|
229
229
|
id?: number;
|
|
230
230
|
paused?: boolean;
|
|
@@ -242,7 +242,7 @@ export declare namespace RoomV1 {
|
|
|
242
242
|
}, {
|
|
243
243
|
id?: number;
|
|
244
244
|
user_id?: string;
|
|
245
|
-
user_data?: Uint8Array
|
|
245
|
+
user_data?: Uint8Array;
|
|
246
246
|
medias?: {
|
|
247
247
|
id?: number;
|
|
248
248
|
paused?: boolean;
|
|
@@ -260,12 +260,12 @@ export declare namespace RoomV1 {
|
|
|
260
260
|
}>, "many">;
|
|
261
261
|
}, "strip", z.ZodTypeAny, {
|
|
262
262
|
id?: string;
|
|
263
|
-
user_data?: Uint8Array
|
|
263
|
+
user_data?: Uint8Array;
|
|
264
264
|
customer?: string;
|
|
265
265
|
peers?: {
|
|
266
266
|
id?: number;
|
|
267
267
|
user_id?: string;
|
|
268
|
-
user_data?: Uint8Array
|
|
268
|
+
user_data?: Uint8Array;
|
|
269
269
|
medias?: {
|
|
270
270
|
id?: number;
|
|
271
271
|
paused?: boolean;
|
|
@@ -283,12 +283,12 @@ export declare namespace RoomV1 {
|
|
|
283
283
|
}[];
|
|
284
284
|
}, {
|
|
285
285
|
id?: string;
|
|
286
|
-
user_data?: Uint8Array
|
|
286
|
+
user_data?: Uint8Array;
|
|
287
287
|
customer?: string;
|
|
288
288
|
peers?: {
|
|
289
289
|
id?: number;
|
|
290
290
|
user_id?: string;
|
|
291
|
-
user_data?: Uint8Array
|
|
291
|
+
user_data?: Uint8Array;
|
|
292
292
|
medias?: {
|
|
293
293
|
id?: number;
|
|
294
294
|
paused?: boolean;
|
|
@@ -311,12 +311,12 @@ export declare namespace RoomV1 {
|
|
|
311
311
|
kind?: "Joined";
|
|
312
312
|
room?: {
|
|
313
313
|
id?: string;
|
|
314
|
-
user_data?: Uint8Array
|
|
314
|
+
user_data?: Uint8Array;
|
|
315
315
|
customer?: string;
|
|
316
316
|
peers?: {
|
|
317
317
|
id?: number;
|
|
318
318
|
user_id?: string;
|
|
319
|
-
user_data?: Uint8Array
|
|
319
|
+
user_data?: Uint8Array;
|
|
320
320
|
medias?: {
|
|
321
321
|
id?: number;
|
|
322
322
|
paused?: boolean;
|
|
@@ -339,12 +339,12 @@ export declare namespace RoomV1 {
|
|
|
339
339
|
kind?: "Joined";
|
|
340
340
|
room?: {
|
|
341
341
|
id?: string;
|
|
342
|
-
user_data?: Uint8Array
|
|
342
|
+
user_data?: Uint8Array;
|
|
343
343
|
customer?: string;
|
|
344
344
|
peers?: {
|
|
345
345
|
id?: number;
|
|
346
346
|
user_id?: string;
|
|
347
|
-
user_data?: Uint8Array
|
|
347
|
+
user_data?: Uint8Array;
|
|
348
348
|
medias?: {
|
|
349
349
|
id?: number;
|
|
350
350
|
paused?: boolean;
|
|
@@ -374,19 +374,19 @@ export declare namespace RoomV1 {
|
|
|
374
374
|
kind?: "Left";
|
|
375
375
|
}>, z.ZodObject<{
|
|
376
376
|
kind: z.ZodLiteral<"UserDataChanged">;
|
|
377
|
-
user_data: z.ZodOptional<z.ZodType<Uint8Array
|
|
377
|
+
user_data: z.ZodOptional<z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>>;
|
|
378
378
|
}, "strip", z.ZodTypeAny, {
|
|
379
379
|
kind?: "UserDataChanged";
|
|
380
|
-
user_data?: Uint8Array
|
|
380
|
+
user_data?: Uint8Array;
|
|
381
381
|
}, {
|
|
382
382
|
kind?: "UserDataChanged";
|
|
383
|
-
user_data?: Uint8Array
|
|
383
|
+
user_data?: Uint8Array;
|
|
384
384
|
}>, z.ZodObject<{
|
|
385
385
|
kind: z.ZodLiteral<"PeerJoined">;
|
|
386
386
|
peer: z.ZodObject<{
|
|
387
387
|
id: z.ZodNumber;
|
|
388
388
|
user_id: z.ZodString;
|
|
389
|
-
user_data: z.ZodType<Uint8Array
|
|
389
|
+
user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
390
390
|
medias: z.ZodArray<z.ZodObject<{
|
|
391
391
|
id: z.ZodNumber;
|
|
392
392
|
properties: z.ZodUnion<[z.ZodObject<{
|
|
@@ -448,7 +448,7 @@ export declare namespace RoomV1 {
|
|
|
448
448
|
}, "strip", z.ZodTypeAny, {
|
|
449
449
|
id?: number;
|
|
450
450
|
user_id?: string;
|
|
451
|
-
user_data?: Uint8Array
|
|
451
|
+
user_data?: Uint8Array;
|
|
452
452
|
medias?: {
|
|
453
453
|
id?: number;
|
|
454
454
|
paused?: boolean;
|
|
@@ -466,7 +466,7 @@ export declare namespace RoomV1 {
|
|
|
466
466
|
}, {
|
|
467
467
|
id?: number;
|
|
468
468
|
user_id?: string;
|
|
469
|
-
user_data?: Uint8Array
|
|
469
|
+
user_data?: Uint8Array;
|
|
470
470
|
medias?: {
|
|
471
471
|
id?: number;
|
|
472
472
|
paused?: boolean;
|
|
@@ -487,7 +487,7 @@ export declare namespace RoomV1 {
|
|
|
487
487
|
peer?: {
|
|
488
488
|
id?: number;
|
|
489
489
|
user_id?: string;
|
|
490
|
-
user_data?: Uint8Array
|
|
490
|
+
user_data?: Uint8Array;
|
|
491
491
|
medias?: {
|
|
492
492
|
id?: number;
|
|
493
493
|
paused?: boolean;
|
|
@@ -508,7 +508,7 @@ export declare namespace RoomV1 {
|
|
|
508
508
|
peer?: {
|
|
509
509
|
id?: number;
|
|
510
510
|
user_id?: string;
|
|
511
|
-
user_data?: Uint8Array
|
|
511
|
+
user_data?: Uint8Array;
|
|
512
512
|
medias?: {
|
|
513
513
|
id?: number;
|
|
514
514
|
paused?: boolean;
|
|
@@ -541,11 +541,11 @@ export declare namespace RoomV1 {
|
|
|
541
541
|
room: z.ZodObject<{
|
|
542
542
|
id: z.ZodString;
|
|
543
543
|
customer: z.ZodString;
|
|
544
|
-
user_data: z.ZodType<Uint8Array
|
|
544
|
+
user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
545
545
|
peers: z.ZodArray<z.ZodObject<{
|
|
546
546
|
id: z.ZodNumber;
|
|
547
547
|
user_id: z.ZodString;
|
|
548
|
-
user_data: z.ZodType<Uint8Array
|
|
548
|
+
user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
549
549
|
medias: z.ZodArray<z.ZodObject<{
|
|
550
550
|
id: z.ZodNumber;
|
|
551
551
|
properties: z.ZodUnion<[z.ZodObject<{
|
|
@@ -607,7 +607,7 @@ export declare namespace RoomV1 {
|
|
|
607
607
|
}, "strip", z.ZodTypeAny, {
|
|
608
608
|
id?: number;
|
|
609
609
|
user_id?: string;
|
|
610
|
-
user_data?: Uint8Array
|
|
610
|
+
user_data?: Uint8Array;
|
|
611
611
|
medias?: {
|
|
612
612
|
id?: number;
|
|
613
613
|
paused?: boolean;
|
|
@@ -625,7 +625,7 @@ export declare namespace RoomV1 {
|
|
|
625
625
|
}, {
|
|
626
626
|
id?: number;
|
|
627
627
|
user_id?: string;
|
|
628
|
-
user_data?: Uint8Array
|
|
628
|
+
user_data?: Uint8Array;
|
|
629
629
|
medias?: {
|
|
630
630
|
id?: number;
|
|
631
631
|
paused?: boolean;
|
|
@@ -643,12 +643,12 @@ export declare namespace RoomV1 {
|
|
|
643
643
|
}>, "many">;
|
|
644
644
|
}, "strip", z.ZodTypeAny, {
|
|
645
645
|
id?: string;
|
|
646
|
-
user_data?: Uint8Array
|
|
646
|
+
user_data?: Uint8Array;
|
|
647
647
|
customer?: string;
|
|
648
648
|
peers?: {
|
|
649
649
|
id?: number;
|
|
650
650
|
user_id?: string;
|
|
651
|
-
user_data?: Uint8Array
|
|
651
|
+
user_data?: Uint8Array;
|
|
652
652
|
medias?: {
|
|
653
653
|
id?: number;
|
|
654
654
|
paused?: boolean;
|
|
@@ -666,12 +666,12 @@ export declare namespace RoomV1 {
|
|
|
666
666
|
}[];
|
|
667
667
|
}, {
|
|
668
668
|
id?: string;
|
|
669
|
-
user_data?: Uint8Array
|
|
669
|
+
user_data?: Uint8Array;
|
|
670
670
|
customer?: string;
|
|
671
671
|
peers?: {
|
|
672
672
|
id?: number;
|
|
673
673
|
user_id?: string;
|
|
674
|
-
user_data?: Uint8Array
|
|
674
|
+
user_data?: Uint8Array;
|
|
675
675
|
medias?: {
|
|
676
676
|
id?: number;
|
|
677
677
|
paused?: boolean;
|
|
@@ -694,12 +694,12 @@ export declare namespace RoomV1 {
|
|
|
694
694
|
kind?: "Joined";
|
|
695
695
|
room?: {
|
|
696
696
|
id?: string;
|
|
697
|
-
user_data?: Uint8Array
|
|
697
|
+
user_data?: Uint8Array;
|
|
698
698
|
customer?: string;
|
|
699
699
|
peers?: {
|
|
700
700
|
id?: number;
|
|
701
701
|
user_id?: string;
|
|
702
|
-
user_data?: Uint8Array
|
|
702
|
+
user_data?: Uint8Array;
|
|
703
703
|
medias?: {
|
|
704
704
|
id?: number;
|
|
705
705
|
paused?: boolean;
|
|
@@ -722,12 +722,12 @@ export declare namespace RoomV1 {
|
|
|
722
722
|
kind?: "Joined";
|
|
723
723
|
room?: {
|
|
724
724
|
id?: string;
|
|
725
|
-
user_data?: Uint8Array
|
|
725
|
+
user_data?: Uint8Array;
|
|
726
726
|
customer?: string;
|
|
727
727
|
peers?: {
|
|
728
728
|
id?: number;
|
|
729
729
|
user_id?: string;
|
|
730
|
-
user_data?: Uint8Array
|
|
730
|
+
user_data?: Uint8Array;
|
|
731
731
|
medias?: {
|
|
732
732
|
id?: number;
|
|
733
733
|
paused?: boolean;
|
|
@@ -757,19 +757,19 @@ export declare namespace RoomV1 {
|
|
|
757
757
|
kind?: "Left";
|
|
758
758
|
}>, z.ZodObject<{
|
|
759
759
|
kind: z.ZodLiteral<"UserDataChanged">;
|
|
760
|
-
user_data: z.ZodOptional<z.ZodType<Uint8Array
|
|
760
|
+
user_data: z.ZodOptional<z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>>;
|
|
761
761
|
}, "strip", z.ZodTypeAny, {
|
|
762
762
|
kind?: "UserDataChanged";
|
|
763
|
-
user_data?: Uint8Array
|
|
763
|
+
user_data?: Uint8Array;
|
|
764
764
|
}, {
|
|
765
765
|
kind?: "UserDataChanged";
|
|
766
|
-
user_data?: Uint8Array
|
|
766
|
+
user_data?: Uint8Array;
|
|
767
767
|
}>, z.ZodObject<{
|
|
768
768
|
kind: z.ZodLiteral<"PeerJoined">;
|
|
769
769
|
peer: z.ZodObject<{
|
|
770
770
|
id: z.ZodNumber;
|
|
771
771
|
user_id: z.ZodString;
|
|
772
|
-
user_data: z.ZodType<Uint8Array
|
|
772
|
+
user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
773
773
|
medias: z.ZodArray<z.ZodObject<{
|
|
774
774
|
id: z.ZodNumber;
|
|
775
775
|
properties: z.ZodUnion<[z.ZodObject<{
|
|
@@ -831,7 +831,7 @@ export declare namespace RoomV1 {
|
|
|
831
831
|
}, "strip", z.ZodTypeAny, {
|
|
832
832
|
id?: number;
|
|
833
833
|
user_id?: string;
|
|
834
|
-
user_data?: Uint8Array
|
|
834
|
+
user_data?: Uint8Array;
|
|
835
835
|
medias?: {
|
|
836
836
|
id?: number;
|
|
837
837
|
paused?: boolean;
|
|
@@ -849,7 +849,7 @@ export declare namespace RoomV1 {
|
|
|
849
849
|
}, {
|
|
850
850
|
id?: number;
|
|
851
851
|
user_id?: string;
|
|
852
|
-
user_data?: Uint8Array
|
|
852
|
+
user_data?: Uint8Array;
|
|
853
853
|
medias?: {
|
|
854
854
|
id?: number;
|
|
855
855
|
paused?: boolean;
|
|
@@ -870,7 +870,7 @@ export declare namespace RoomV1 {
|
|
|
870
870
|
peer?: {
|
|
871
871
|
id?: number;
|
|
872
872
|
user_id?: string;
|
|
873
|
-
user_data?: Uint8Array
|
|
873
|
+
user_data?: Uint8Array;
|
|
874
874
|
medias?: {
|
|
875
875
|
id?: number;
|
|
876
876
|
paused?: boolean;
|
|
@@ -891,7 +891,7 @@ export declare namespace RoomV1 {
|
|
|
891
891
|
peer?: {
|
|
892
892
|
id?: number;
|
|
893
893
|
user_id?: string;
|
|
894
|
-
user_data?: Uint8Array
|
|
894
|
+
user_data?: Uint8Array;
|
|
895
895
|
medias?: {
|
|
896
896
|
id?: number;
|
|
897
897
|
paused?: boolean;
|
|
@@ -922,12 +922,12 @@ export declare namespace RoomV1 {
|
|
|
922
922
|
kind?: "Joined";
|
|
923
923
|
room?: {
|
|
924
924
|
id?: string;
|
|
925
|
-
user_data?: Uint8Array
|
|
925
|
+
user_data?: Uint8Array;
|
|
926
926
|
customer?: string;
|
|
927
927
|
peers?: {
|
|
928
928
|
id?: number;
|
|
929
929
|
user_id?: string;
|
|
930
|
-
user_data?: Uint8Array
|
|
930
|
+
user_data?: Uint8Array;
|
|
931
931
|
medias?: {
|
|
932
932
|
id?: number;
|
|
933
933
|
paused?: boolean;
|
|
@@ -951,13 +951,13 @@ export declare namespace RoomV1 {
|
|
|
951
951
|
kind?: "Left";
|
|
952
952
|
} | {
|
|
953
953
|
kind?: "UserDataChanged";
|
|
954
|
-
user_data?: Uint8Array
|
|
954
|
+
user_data?: Uint8Array;
|
|
955
955
|
} | {
|
|
956
956
|
kind?: "PeerJoined";
|
|
957
957
|
peer?: {
|
|
958
958
|
id?: number;
|
|
959
959
|
user_id?: string;
|
|
960
|
-
user_data?: Uint8Array
|
|
960
|
+
user_data?: Uint8Array;
|
|
961
961
|
medias?: {
|
|
962
962
|
id?: number;
|
|
963
963
|
paused?: boolean;
|
|
@@ -982,12 +982,12 @@ export declare namespace RoomV1 {
|
|
|
982
982
|
kind?: "Joined";
|
|
983
983
|
room?: {
|
|
984
984
|
id?: string;
|
|
985
|
-
user_data?: Uint8Array
|
|
985
|
+
user_data?: Uint8Array;
|
|
986
986
|
customer?: string;
|
|
987
987
|
peers?: {
|
|
988
988
|
id?: number;
|
|
989
989
|
user_id?: string;
|
|
990
|
-
user_data?: Uint8Array
|
|
990
|
+
user_data?: Uint8Array;
|
|
991
991
|
medias?: {
|
|
992
992
|
id?: number;
|
|
993
993
|
paused?: boolean;
|
|
@@ -1011,13 +1011,13 @@ export declare namespace RoomV1 {
|
|
|
1011
1011
|
kind?: "Left";
|
|
1012
1012
|
} | {
|
|
1013
1013
|
kind?: "UserDataChanged";
|
|
1014
|
-
user_data?: Uint8Array
|
|
1014
|
+
user_data?: Uint8Array;
|
|
1015
1015
|
} | {
|
|
1016
1016
|
kind?: "PeerJoined";
|
|
1017
1017
|
peer?: {
|
|
1018
1018
|
id?: number;
|
|
1019
1019
|
user_id?: string;
|
|
1020
|
-
user_data?: Uint8Array
|
|
1020
|
+
user_data?: Uint8Array;
|
|
1021
1021
|
medias?: {
|
|
1022
1022
|
id?: number;
|
|
1023
1023
|
paused?: boolean;
|
|
@@ -1054,22 +1054,22 @@ export declare namespace RoomV1 {
|
|
|
1054
1054
|
type RoomStatusChanged = z.infer<typeof RoomStatusChangedSchema>;
|
|
1055
1055
|
}
|
|
1056
1056
|
export declare namespace RoomV2 {
|
|
1057
|
-
const ParametersSchema: z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").
|
|
1057
|
+
const ParametersSchema: z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").JsonValue, z.ZodTypeDef, import("./serialization.ts").JsonValue>>;
|
|
1058
1058
|
const PeerProperties: z.ZodObject<{
|
|
1059
|
-
user_data: z.ZodOptional<z.ZodType<Uint8Array
|
|
1059
|
+
user_data: z.ZodOptional<z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>>;
|
|
1060
1060
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1061
|
-
audio_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").
|
|
1062
|
-
video_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").
|
|
1061
|
+
audio_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").JsonValue, z.ZodTypeDef, import("./serialization.ts").JsonValue>>>;
|
|
1062
|
+
video_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").JsonValue, z.ZodTypeDef, import("./serialization.ts").JsonValue>>>;
|
|
1063
1063
|
}, "strip", z.ZodTypeAny, {
|
|
1064
|
-
user_data?: Uint8Array
|
|
1064
|
+
user_data?: Uint8Array;
|
|
1065
1065
|
tags?: string[];
|
|
1066
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1067
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1066
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1067
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1068
1068
|
}, {
|
|
1069
|
-
user_data?: Uint8Array
|
|
1069
|
+
user_data?: Uint8Array;
|
|
1070
1070
|
tags?: string[];
|
|
1071
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1072
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1071
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1072
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1073
1073
|
}>;
|
|
1074
1074
|
const PingSchema: z.ZodObject<{
|
|
1075
1075
|
Ping: z.ZodObject<{
|
|
@@ -1090,30 +1090,30 @@ export declare namespace RoomV2 {
|
|
|
1090
1090
|
}>;
|
|
1091
1091
|
const ChangeSelfSchema: z.ZodObject<{
|
|
1092
1092
|
ChangeSelf: z.ZodObject<Omit<{
|
|
1093
|
-
user_data: z.ZodOptional<z.ZodType<Uint8Array
|
|
1093
|
+
user_data: z.ZodOptional<z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>>;
|
|
1094
1094
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1095
|
-
audio_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").
|
|
1096
|
-
video_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").
|
|
1095
|
+
audio_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").JsonValue, z.ZodTypeDef, import("./serialization.ts").JsonValue>>>;
|
|
1096
|
+
video_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").JsonValue, z.ZodTypeDef, import("./serialization.ts").JsonValue>>>;
|
|
1097
1097
|
}, "tags">, "strip", z.ZodTypeAny, {
|
|
1098
|
-
user_data?: Uint8Array
|
|
1099
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1100
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1098
|
+
user_data?: Uint8Array;
|
|
1099
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1100
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1101
1101
|
}, {
|
|
1102
|
-
user_data?: Uint8Array
|
|
1103
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1104
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1102
|
+
user_data?: Uint8Array;
|
|
1103
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1104
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1105
1105
|
}>;
|
|
1106
1106
|
}, "strip", z.ZodTypeAny, {
|
|
1107
1107
|
ChangeSelf?: {
|
|
1108
|
-
user_data?: Uint8Array
|
|
1109
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1110
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1108
|
+
user_data?: Uint8Array;
|
|
1109
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1110
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1111
1111
|
};
|
|
1112
1112
|
}, {
|
|
1113
1113
|
ChangeSelf?: {
|
|
1114
|
-
user_data?: Uint8Array
|
|
1115
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1116
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1114
|
+
user_data?: Uint8Array;
|
|
1115
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1116
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1117
1117
|
};
|
|
1118
1118
|
}>;
|
|
1119
1119
|
const SetAudioMaskSchema: z.ZodObject<{
|
|
@@ -1141,22 +1141,22 @@ export declare namespace RoomV2 {
|
|
|
1141
1141
|
const SendMessageSchema: z.ZodObject<{
|
|
1142
1142
|
SendMessage: z.ZodObject<{
|
|
1143
1143
|
peer_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
1144
|
-
message: z.ZodType<Uint8Array
|
|
1144
|
+
message: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
1145
1145
|
}, "strip", z.ZodTypeAny, {
|
|
1146
|
-
message?: Uint8Array
|
|
1146
|
+
message?: Uint8Array;
|
|
1147
1147
|
peer_ids?: number[];
|
|
1148
1148
|
}, {
|
|
1149
|
-
message?: Uint8Array
|
|
1149
|
+
message?: Uint8Array;
|
|
1150
1150
|
peer_ids?: number[];
|
|
1151
1151
|
}>;
|
|
1152
1152
|
}, "strip", z.ZodTypeAny, {
|
|
1153
1153
|
SendMessage?: {
|
|
1154
|
-
message?: Uint8Array
|
|
1154
|
+
message?: Uint8Array;
|
|
1155
1155
|
peer_ids?: number[];
|
|
1156
1156
|
};
|
|
1157
1157
|
}, {
|
|
1158
1158
|
SendMessage?: {
|
|
1159
|
-
message?: Uint8Array
|
|
1159
|
+
message?: Uint8Array;
|
|
1160
1160
|
peer_ids?: number[];
|
|
1161
1161
|
};
|
|
1162
1162
|
}>;
|
|
@@ -1178,30 +1178,30 @@ export declare namespace RoomV2 {
|
|
|
1178
1178
|
};
|
|
1179
1179
|
}>, z.ZodObject<{
|
|
1180
1180
|
ChangeSelf: z.ZodObject<Omit<{
|
|
1181
|
-
user_data: z.ZodOptional<z.ZodType<Uint8Array
|
|
1181
|
+
user_data: z.ZodOptional<z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>>;
|
|
1182
1182
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1183
|
-
audio_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").
|
|
1184
|
-
video_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").
|
|
1183
|
+
audio_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").JsonValue, z.ZodTypeDef, import("./serialization.ts").JsonValue>>>;
|
|
1184
|
+
video_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").JsonValue, z.ZodTypeDef, import("./serialization.ts").JsonValue>>>;
|
|
1185
1185
|
}, "tags">, "strip", z.ZodTypeAny, {
|
|
1186
|
-
user_data?: Uint8Array
|
|
1187
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1188
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1186
|
+
user_data?: Uint8Array;
|
|
1187
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1188
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1189
1189
|
}, {
|
|
1190
|
-
user_data?: Uint8Array
|
|
1191
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1192
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1190
|
+
user_data?: Uint8Array;
|
|
1191
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1192
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1193
1193
|
}>;
|
|
1194
1194
|
}, "strip", z.ZodTypeAny, {
|
|
1195
1195
|
ChangeSelf?: {
|
|
1196
|
-
user_data?: Uint8Array
|
|
1197
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1198
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1196
|
+
user_data?: Uint8Array;
|
|
1197
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1198
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1199
1199
|
};
|
|
1200
1200
|
}, {
|
|
1201
1201
|
ChangeSelf?: {
|
|
1202
|
-
user_data?: Uint8Array
|
|
1203
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1204
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1202
|
+
user_data?: Uint8Array;
|
|
1203
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1204
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1205
1205
|
};
|
|
1206
1206
|
}>]>, z.ZodObject<{
|
|
1207
1207
|
SetAudioMask: z.ZodObject<{
|
|
@@ -1227,22 +1227,22 @@ export declare namespace RoomV2 {
|
|
|
1227
1227
|
}>]>, z.ZodObject<{
|
|
1228
1228
|
SendMessage: z.ZodObject<{
|
|
1229
1229
|
peer_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
1230
|
-
message: z.ZodType<Uint8Array
|
|
1230
|
+
message: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
1231
1231
|
}, "strip", z.ZodTypeAny, {
|
|
1232
|
-
message?: Uint8Array
|
|
1232
|
+
message?: Uint8Array;
|
|
1233
1233
|
peer_ids?: number[];
|
|
1234
1234
|
}, {
|
|
1235
|
-
message?: Uint8Array
|
|
1235
|
+
message?: Uint8Array;
|
|
1236
1236
|
peer_ids?: number[];
|
|
1237
1237
|
}>;
|
|
1238
1238
|
}, "strip", z.ZodTypeAny, {
|
|
1239
1239
|
SendMessage?: {
|
|
1240
|
-
message?: Uint8Array
|
|
1240
|
+
message?: Uint8Array;
|
|
1241
1241
|
peer_ids?: number[];
|
|
1242
1242
|
};
|
|
1243
1243
|
}, {
|
|
1244
1244
|
SendMessage?: {
|
|
1245
|
-
message?: Uint8Array
|
|
1245
|
+
message?: Uint8Array;
|
|
1246
1246
|
peer_ids?: number[];
|
|
1247
1247
|
};
|
|
1248
1248
|
}>]>;
|
|
@@ -1310,45 +1310,45 @@ export declare namespace RoomV2 {
|
|
|
1310
1310
|
}>;
|
|
1311
1311
|
const PeerJoinedSchema: z.ZodObject<{
|
|
1312
1312
|
PeerJoined: z.ZodObject<{
|
|
1313
|
-
user_data: z.ZodOptional<z.ZodType<Uint8Array
|
|
1313
|
+
user_data: z.ZodOptional<z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>>;
|
|
1314
1314
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1315
|
-
audio_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").
|
|
1316
|
-
video_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").
|
|
1315
|
+
audio_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").JsonValue, z.ZodTypeDef, import("./serialization.ts").JsonValue>>>;
|
|
1316
|
+
video_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").JsonValue, z.ZodTypeDef, import("./serialization.ts").JsonValue>>>;
|
|
1317
1317
|
} & {
|
|
1318
1318
|
peer_id: z.ZodNumber;
|
|
1319
1319
|
user_id: z.ZodString;
|
|
1320
1320
|
}, "strip", z.ZodTypeAny, {
|
|
1321
1321
|
user_id?: string;
|
|
1322
|
-
user_data?: Uint8Array
|
|
1322
|
+
user_data?: Uint8Array;
|
|
1323
1323
|
peer_id?: number;
|
|
1324
1324
|
tags?: string[];
|
|
1325
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1326
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1325
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1326
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1327
1327
|
}, {
|
|
1328
1328
|
user_id?: string;
|
|
1329
|
-
user_data?: Uint8Array
|
|
1329
|
+
user_data?: Uint8Array;
|
|
1330
1330
|
peer_id?: number;
|
|
1331
1331
|
tags?: string[];
|
|
1332
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1333
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1332
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1333
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1334
1334
|
}>;
|
|
1335
1335
|
}, "strip", z.ZodTypeAny, {
|
|
1336
1336
|
PeerJoined?: {
|
|
1337
1337
|
user_id?: string;
|
|
1338
|
-
user_data?: Uint8Array
|
|
1338
|
+
user_data?: Uint8Array;
|
|
1339
1339
|
peer_id?: number;
|
|
1340
1340
|
tags?: string[];
|
|
1341
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1342
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1341
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1342
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1343
1343
|
};
|
|
1344
1344
|
}, {
|
|
1345
1345
|
PeerJoined?: {
|
|
1346
1346
|
user_id?: string;
|
|
1347
|
-
user_data?: Uint8Array
|
|
1347
|
+
user_data?: Uint8Array;
|
|
1348
1348
|
peer_id?: number;
|
|
1349
1349
|
tags?: string[];
|
|
1350
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1351
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1350
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1351
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1352
1352
|
};
|
|
1353
1353
|
}>;
|
|
1354
1354
|
const PeerLeftSchema: z.ZodObject<{
|
|
@@ -1370,40 +1370,40 @@ export declare namespace RoomV2 {
|
|
|
1370
1370
|
}>;
|
|
1371
1371
|
const PeerChangedSchema: z.ZodObject<{
|
|
1372
1372
|
PeerChanged: z.ZodObject<{
|
|
1373
|
-
user_data: z.ZodOptional<z.ZodType<Uint8Array
|
|
1373
|
+
user_data: z.ZodOptional<z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>>;
|
|
1374
1374
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1375
|
-
audio_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").
|
|
1376
|
-
video_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").
|
|
1375
|
+
audio_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").JsonValue, z.ZodTypeDef, import("./serialization.ts").JsonValue>>>;
|
|
1376
|
+
video_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").JsonValue, z.ZodTypeDef, import("./serialization.ts").JsonValue>>>;
|
|
1377
1377
|
} & {
|
|
1378
1378
|
peer_id: z.ZodNumber;
|
|
1379
1379
|
}, "strip", z.ZodTypeAny, {
|
|
1380
|
-
user_data?: Uint8Array
|
|
1380
|
+
user_data?: Uint8Array;
|
|
1381
1381
|
peer_id?: number;
|
|
1382
1382
|
tags?: string[];
|
|
1383
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1384
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1383
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1384
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1385
1385
|
}, {
|
|
1386
|
-
user_data?: Uint8Array
|
|
1386
|
+
user_data?: Uint8Array;
|
|
1387
1387
|
peer_id?: number;
|
|
1388
1388
|
tags?: string[];
|
|
1389
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1390
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1389
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1390
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1391
1391
|
}>;
|
|
1392
1392
|
}, "strip", z.ZodTypeAny, {
|
|
1393
1393
|
PeerChanged?: {
|
|
1394
|
-
user_data?: Uint8Array
|
|
1394
|
+
user_data?: Uint8Array;
|
|
1395
1395
|
peer_id?: number;
|
|
1396
1396
|
tags?: string[];
|
|
1397
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1398
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1397
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1398
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1399
1399
|
};
|
|
1400
1400
|
}, {
|
|
1401
1401
|
PeerChanged?: {
|
|
1402
|
-
user_data?: Uint8Array
|
|
1402
|
+
user_data?: Uint8Array;
|
|
1403
1403
|
peer_id?: number;
|
|
1404
1404
|
tags?: string[];
|
|
1405
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1406
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1405
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1406
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1407
1407
|
};
|
|
1408
1408
|
}>;
|
|
1409
1409
|
const NewReconnectTokenSchema: z.ZodObject<{
|
|
@@ -1426,40 +1426,40 @@ export declare namespace RoomV2 {
|
|
|
1426
1426
|
const MessageReceivedSchema: z.ZodObject<{
|
|
1427
1427
|
MessageReceived: z.ZodObject<{
|
|
1428
1428
|
sender_peer_id: z.ZodNumber;
|
|
1429
|
-
message: z.ZodType<Uint8Array
|
|
1429
|
+
message: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
1430
1430
|
}, "strip", z.ZodTypeAny, {
|
|
1431
|
-
message?: Uint8Array
|
|
1431
|
+
message?: Uint8Array;
|
|
1432
1432
|
sender_peer_id?: number;
|
|
1433
1433
|
}, {
|
|
1434
|
-
message?: Uint8Array
|
|
1434
|
+
message?: Uint8Array;
|
|
1435
1435
|
sender_peer_id?: number;
|
|
1436
1436
|
}>;
|
|
1437
1437
|
}, "strip", z.ZodTypeAny, {
|
|
1438
1438
|
MessageReceived?: {
|
|
1439
|
-
message?: Uint8Array
|
|
1439
|
+
message?: Uint8Array;
|
|
1440
1440
|
sender_peer_id?: number;
|
|
1441
1441
|
};
|
|
1442
1442
|
}, {
|
|
1443
1443
|
MessageReceived?: {
|
|
1444
|
-
message?: Uint8Array
|
|
1444
|
+
message?: Uint8Array;
|
|
1445
1445
|
sender_peer_id?: number;
|
|
1446
1446
|
};
|
|
1447
1447
|
}>;
|
|
1448
1448
|
const ErrorSchema: z.ZodObject<{
|
|
1449
1449
|
Error: z.ZodObject<{
|
|
1450
|
-
message: z.ZodType<Uint8Array
|
|
1450
|
+
message: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
1451
1451
|
}, "strip", z.ZodTypeAny, {
|
|
1452
|
-
message?: Uint8Array
|
|
1452
|
+
message?: Uint8Array;
|
|
1453
1453
|
}, {
|
|
1454
|
-
message?: Uint8Array
|
|
1454
|
+
message?: Uint8Array;
|
|
1455
1455
|
}>;
|
|
1456
1456
|
}, "strip", z.ZodTypeAny, {
|
|
1457
1457
|
Error?: {
|
|
1458
|
-
message?: Uint8Array
|
|
1458
|
+
message?: Uint8Array;
|
|
1459
1459
|
};
|
|
1460
1460
|
}, {
|
|
1461
1461
|
Error?: {
|
|
1462
|
-
message?: Uint8Array
|
|
1462
|
+
message?: Uint8Array;
|
|
1463
1463
|
};
|
|
1464
1464
|
}>;
|
|
1465
1465
|
const EventSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
@@ -1522,45 +1522,45 @@ export declare namespace RoomV2 {
|
|
|
1522
1522
|
};
|
|
1523
1523
|
}>]>, z.ZodObject<{
|
|
1524
1524
|
PeerJoined: z.ZodObject<{
|
|
1525
|
-
user_data: z.ZodOptional<z.ZodType<Uint8Array
|
|
1525
|
+
user_data: z.ZodOptional<z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>>;
|
|
1526
1526
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1527
|
-
audio_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").
|
|
1528
|
-
video_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").
|
|
1527
|
+
audio_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").JsonValue, z.ZodTypeDef, import("./serialization.ts").JsonValue>>>;
|
|
1528
|
+
video_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").JsonValue, z.ZodTypeDef, import("./serialization.ts").JsonValue>>>;
|
|
1529
1529
|
} & {
|
|
1530
1530
|
peer_id: z.ZodNumber;
|
|
1531
1531
|
user_id: z.ZodString;
|
|
1532
1532
|
}, "strip", z.ZodTypeAny, {
|
|
1533
1533
|
user_id?: string;
|
|
1534
|
-
user_data?: Uint8Array
|
|
1534
|
+
user_data?: Uint8Array;
|
|
1535
1535
|
peer_id?: number;
|
|
1536
1536
|
tags?: string[];
|
|
1537
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1538
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1537
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1538
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1539
1539
|
}, {
|
|
1540
1540
|
user_id?: string;
|
|
1541
|
-
user_data?: Uint8Array
|
|
1541
|
+
user_data?: Uint8Array;
|
|
1542
1542
|
peer_id?: number;
|
|
1543
1543
|
tags?: string[];
|
|
1544
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1545
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1544
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1545
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1546
1546
|
}>;
|
|
1547
1547
|
}, "strip", z.ZodTypeAny, {
|
|
1548
1548
|
PeerJoined?: {
|
|
1549
1549
|
user_id?: string;
|
|
1550
|
-
user_data?: Uint8Array
|
|
1550
|
+
user_data?: Uint8Array;
|
|
1551
1551
|
peer_id?: number;
|
|
1552
1552
|
tags?: string[];
|
|
1553
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1554
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1553
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1554
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1555
1555
|
};
|
|
1556
1556
|
}, {
|
|
1557
1557
|
PeerJoined?: {
|
|
1558
1558
|
user_id?: string;
|
|
1559
|
-
user_data?: Uint8Array
|
|
1559
|
+
user_data?: Uint8Array;
|
|
1560
1560
|
peer_id?: number;
|
|
1561
1561
|
tags?: string[];
|
|
1562
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1563
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1562
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1563
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1564
1564
|
};
|
|
1565
1565
|
}>]>, z.ZodObject<{
|
|
1566
1566
|
PeerLeft: z.ZodObject<{
|
|
@@ -1580,40 +1580,40 @@ export declare namespace RoomV2 {
|
|
|
1580
1580
|
};
|
|
1581
1581
|
}>]>, z.ZodObject<{
|
|
1582
1582
|
PeerChanged: z.ZodObject<{
|
|
1583
|
-
user_data: z.ZodOptional<z.ZodType<Uint8Array
|
|
1583
|
+
user_data: z.ZodOptional<z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>>;
|
|
1584
1584
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1585
|
-
audio_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").
|
|
1586
|
-
video_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").
|
|
1585
|
+
audio_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").JsonValue, z.ZodTypeDef, import("./serialization.ts").JsonValue>>>;
|
|
1586
|
+
video_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./serialization.ts").JsonValue, z.ZodTypeDef, import("./serialization.ts").JsonValue>>>;
|
|
1587
1587
|
} & {
|
|
1588
1588
|
peer_id: z.ZodNumber;
|
|
1589
1589
|
}, "strip", z.ZodTypeAny, {
|
|
1590
|
-
user_data?: Uint8Array
|
|
1590
|
+
user_data?: Uint8Array;
|
|
1591
1591
|
peer_id?: number;
|
|
1592
1592
|
tags?: string[];
|
|
1593
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1594
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1593
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1594
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1595
1595
|
}, {
|
|
1596
|
-
user_data?: Uint8Array
|
|
1596
|
+
user_data?: Uint8Array;
|
|
1597
1597
|
peer_id?: number;
|
|
1598
1598
|
tags?: string[];
|
|
1599
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1600
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1599
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1600
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1601
1601
|
}>;
|
|
1602
1602
|
}, "strip", z.ZodTypeAny, {
|
|
1603
1603
|
PeerChanged?: {
|
|
1604
|
-
user_data?: Uint8Array
|
|
1604
|
+
user_data?: Uint8Array;
|
|
1605
1605
|
peer_id?: number;
|
|
1606
1606
|
tags?: string[];
|
|
1607
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1608
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1607
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1608
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1609
1609
|
};
|
|
1610
1610
|
}, {
|
|
1611
1611
|
PeerChanged?: {
|
|
1612
|
-
user_data?: Uint8Array
|
|
1612
|
+
user_data?: Uint8Array;
|
|
1613
1613
|
peer_id?: number;
|
|
1614
1614
|
tags?: string[];
|
|
1615
|
-
audio_parameters?: Record<string, import("./serialization.ts").
|
|
1616
|
-
video_parameters?: Record<string, import("./serialization.ts").
|
|
1615
|
+
audio_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1616
|
+
video_parameters?: Record<string, import("./serialization.ts").JsonValue>;
|
|
1617
1617
|
};
|
|
1618
1618
|
}>]>, z.ZodObject<{
|
|
1619
1619
|
NewReconnectToken: z.ZodObject<{
|
|
@@ -1634,39 +1634,39 @@ export declare namespace RoomV2 {
|
|
|
1634
1634
|
}>]>, z.ZodObject<{
|
|
1635
1635
|
MessageReceived: z.ZodObject<{
|
|
1636
1636
|
sender_peer_id: z.ZodNumber;
|
|
1637
|
-
message: z.ZodType<Uint8Array
|
|
1637
|
+
message: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
1638
1638
|
}, "strip", z.ZodTypeAny, {
|
|
1639
|
-
message?: Uint8Array
|
|
1639
|
+
message?: Uint8Array;
|
|
1640
1640
|
sender_peer_id?: number;
|
|
1641
1641
|
}, {
|
|
1642
|
-
message?: Uint8Array
|
|
1642
|
+
message?: Uint8Array;
|
|
1643
1643
|
sender_peer_id?: number;
|
|
1644
1644
|
}>;
|
|
1645
1645
|
}, "strip", z.ZodTypeAny, {
|
|
1646
1646
|
MessageReceived?: {
|
|
1647
|
-
message?: Uint8Array
|
|
1647
|
+
message?: Uint8Array;
|
|
1648
1648
|
sender_peer_id?: number;
|
|
1649
1649
|
};
|
|
1650
1650
|
}, {
|
|
1651
1651
|
MessageReceived?: {
|
|
1652
|
-
message?: Uint8Array
|
|
1652
|
+
message?: Uint8Array;
|
|
1653
1653
|
sender_peer_id?: number;
|
|
1654
1654
|
};
|
|
1655
1655
|
}>]>, z.ZodObject<{
|
|
1656
1656
|
Error: z.ZodObject<{
|
|
1657
|
-
message: z.ZodType<Uint8Array
|
|
1657
|
+
message: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
|
|
1658
1658
|
}, "strip", z.ZodTypeAny, {
|
|
1659
|
-
message?: Uint8Array
|
|
1659
|
+
message?: Uint8Array;
|
|
1660
1660
|
}, {
|
|
1661
|
-
message?: Uint8Array
|
|
1661
|
+
message?: Uint8Array;
|
|
1662
1662
|
}>;
|
|
1663
1663
|
}, "strip", z.ZodTypeAny, {
|
|
1664
1664
|
Error?: {
|
|
1665
|
-
message?: Uint8Array
|
|
1665
|
+
message?: Uint8Array;
|
|
1666
1666
|
};
|
|
1667
1667
|
}, {
|
|
1668
1668
|
Error?: {
|
|
1669
|
-
message?: Uint8Array
|
|
1669
|
+
message?: Uint8Array;
|
|
1670
1670
|
};
|
|
1671
1671
|
}>]>;
|
|
1672
1672
|
type Event = z.infer<typeof EventSchema>;
|