@4players/odin-common 2.15.0 → 2.16.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 @@
1
+ {"root":["../../src/index.ts","../../src/plugin/api.ts","../../src/rpc/commands.ts","../../src/rpc/notifications.ts","../../src/schema/media.ts","../../src/schema/message.ts","../../src/schema/peer.ts","../../src/schema/room.ts","../../src/schema/serialization.ts","../../src/schema/token.ts","../../src/schema/webrtc.ts","../../src/utility/base64.spec.ts","../../src/utility/base64.ts","../../src/utility/bytearray.spec.ts","../../src/utility/bytearray.ts","../../src/utility/environment.spec.ts","../../src/utility/environment.ts","../../src/utility/iterable.spec.ts","../../src/utility/iterable.ts","../../src/utility/json.spec.ts","../../src/utility/json.ts","../../src/utility/log.spec.ts","../../src/utility/log.ts","../../src/utility/msgpack.spec.ts","../../src/utility/msgpack.ts","../../src/utility/result.spec.ts","../../src/utility/result.ts","../../src/utility/selector.spec.ts","../../src/utility/selector.ts","../../src/utility/sleep.spec.ts","../../src/utility/sleep.ts","../../src/utility/strand.spec.ts","../../src/utility/strand.ts","../../src/utility/url.spec.ts","../../src/utility/url.ts","../../src/utility/uuid.spec.ts","../../src/utility/uuid.ts","../../src/utility/validation.spec.ts","../../src/utility/validation.ts"],"version":"5.7.2"}
@@ -0,0 +1 @@
1
+ {"root":["../../src/index.ts","../../src/plugin/api.ts","../../src/rpc/commands.ts","../../src/rpc/notifications.ts","../../src/schema/media.ts","../../src/schema/message.ts","../../src/schema/peer.ts","../../src/schema/room.ts","../../src/schema/serialization.ts","../../src/schema/token.ts","../../src/schema/webrtc.ts","../../src/utility/base64.spec.ts","../../src/utility/base64.ts","../../src/utility/bytearray.spec.ts","../../src/utility/bytearray.ts","../../src/utility/environment.spec.ts","../../src/utility/environment.ts","../../src/utility/iterable.spec.ts","../../src/utility/iterable.ts","../../src/utility/json.spec.ts","../../src/utility/json.ts","../../src/utility/log.spec.ts","../../src/utility/log.ts","../../src/utility/msgpack.spec.ts","../../src/utility/msgpack.ts","../../src/utility/result.spec.ts","../../src/utility/result.ts","../../src/utility/selector.spec.ts","../../src/utility/selector.ts","../../src/utility/sleep.spec.ts","../../src/utility/sleep.ts","../../src/utility/strand.spec.ts","../../src/utility/strand.ts","../../src/utility/url.spec.ts","../../src/utility/url.ts","../../src/utility/uuid.spec.ts","../../src/utility/uuid.ts","../../src/utility/validation.spec.ts","../../src/utility/validation.ts"],"version":"5.7.2"}
@@ -36,27 +36,21 @@ export declare namespace Backend {
36
36
  rmsDBFS: number;
37
37
  }
38
38
  interface JitterStats {
39
- avgDecodingTime: number;
40
39
  packetsSeen: number;
41
- packetsInvalid: number;
42
- packetsTooLate: number;
40
+ packetsProcessed: number;
43
41
  packetsTooEarly: number;
42
+ packetsTooLate: number;
43
+ packetsDropped: number;
44
+ packetsInvalid: number;
44
45
  packetsRepeated: number;
45
- packetsProcessed: number;
46
46
  packetsLost: number;
47
- rewinds: number;
48
- cacheLength: number;
49
47
  }
50
48
  interface ConnectionStats {
51
- bytesSend: number;
49
+ bytesSent: number;
52
50
  bytesReceived: number;
53
- packetsSend: number;
51
+ packetsSent: number;
54
52
  packetsReceived: number;
55
- packetsLost: number;
56
- packetsDropped: number;
57
- roundTripTime: number;
58
- congestionEvents: number;
59
- congestionWindow: number;
53
+ rtt: number;
60
54
  }
61
55
  interface JoinRoomParameters {
62
56
  readonly gateway: string | undefined;
@@ -19,15 +19,15 @@ export declare const MainCommandsRpc: {
19
19
  request: z.ZodObject<{
20
20
  token: z.ZodString;
21
21
  room_id: z.ZodString;
22
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
22
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
23
23
  position: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
24
24
  }, "strip", z.ZodTypeAny, {
25
- user_data: Uint8Array;
25
+ user_data: Uint8Array<ArrayBufferLike>;
26
26
  token: string;
27
27
  room_id: string;
28
28
  position: [number, number, number] | [number, number];
29
29
  }, {
30
- user_data: Uint8Array;
30
+ user_data: Uint8Array<ArrayBufferLike>;
31
31
  token: string;
32
32
  room_id: string;
33
33
  position: [number, number, number] | [number, number];
@@ -111,16 +111,16 @@ export declare const RoomCommandsRpc: {
111
111
  stream: z.ZodLiteral<"room">;
112
112
  token: z.ZodString;
113
113
  room_id: z.ZodString;
114
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
114
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
115
115
  position: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
116
116
  }, "strip", z.ZodTypeAny, {
117
- user_data: Uint8Array;
117
+ user_data: Uint8Array<ArrayBufferLike>;
118
118
  stream: "room";
119
119
  token: string;
120
120
  room_id: string;
121
121
  position: [number, number, number] | [number, number];
122
122
  }, {
123
- user_data: Uint8Array;
123
+ user_data: Uint8Array<ArrayBufferLike>;
124
124
  stream: "room";
125
125
  token: string;
126
126
  room_id: string;
@@ -130,11 +130,11 @@ export declare const RoomCommandsRpc: {
130
130
  };
131
131
  UpdatePeer: {
132
132
  request: z.ZodObject<{
133
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
133
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
134
134
  }, "strip", z.ZodTypeAny, {
135
- user_data: Uint8Array;
135
+ user_data: Uint8Array<ArrayBufferLike>;
136
136
  }, {
137
- user_data: Uint8Array;
137
+ user_data: Uint8Array<ArrayBufferLike>;
138
138
  }>;
139
139
  response: z.ZodNull;
140
140
  };
@@ -239,12 +239,12 @@ export declare const RoomCommandsRpc: {
239
239
  SendMessage: {
240
240
  request: z.ZodObject<{
241
241
  target_peer_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
242
- message: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
242
+ message: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
243
243
  }, "strip", z.ZodTypeAny, {
244
- message: Uint8Array;
244
+ message: Uint8Array<ArrayBufferLike>;
245
245
  target_peer_ids?: number[] | undefined;
246
246
  }, {
247
- message: Uint8Array;
247
+ message: Uint8Array<ArrayBufferLike>;
248
248
  target_peer_ids?: number[] | undefined;
249
249
  }>;
250
250
  response: z.ZodNull;
@@ -151,11 +151,11 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
151
151
  room: z.ZodObject<{
152
152
  id: z.ZodString;
153
153
  customer: z.ZodString;
154
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
154
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
155
155
  peers: z.ZodArray<z.ZodObject<{
156
156
  id: z.ZodNumber;
157
157
  user_id: z.ZodString;
158
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
158
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
159
159
  medias: z.ZodArray<z.ZodObject<{
160
160
  id: z.ZodNumber;
161
161
  properties: z.ZodUnion<[z.ZodObject<{
@@ -217,7 +217,7 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
217
217
  }, "strip", z.ZodTypeAny, {
218
218
  id: number;
219
219
  user_id: string;
220
- user_data: Uint8Array;
220
+ user_data: Uint8Array<ArrayBufferLike>;
221
221
  medias: {
222
222
  id: number;
223
223
  properties: {
@@ -235,7 +235,7 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
235
235
  }, {
236
236
  id: number;
237
237
  user_id: string;
238
- user_data: Uint8Array;
238
+ user_data: Uint8Array<ArrayBufferLike>;
239
239
  medias: {
240
240
  id: number;
241
241
  properties: {
@@ -253,12 +253,12 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
253
253
  }>, "many">;
254
254
  }, "strip", z.ZodTypeAny, {
255
255
  id: string;
256
- user_data: Uint8Array;
256
+ user_data: Uint8Array<ArrayBufferLike>;
257
257
  customer: string;
258
258
  peers: {
259
259
  id: number;
260
260
  user_id: string;
261
- user_data: Uint8Array;
261
+ user_data: Uint8Array<ArrayBufferLike>;
262
262
  medias: {
263
263
  id: number;
264
264
  properties: {
@@ -276,12 +276,12 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
276
276
  }[];
277
277
  }, {
278
278
  id: string;
279
- user_data: Uint8Array;
279
+ user_data: Uint8Array<ArrayBufferLike>;
280
280
  customer: string;
281
281
  peers: {
282
282
  id: number;
283
283
  user_id: string;
284
- user_data: Uint8Array;
284
+ user_data: Uint8Array<ArrayBufferLike>;
285
285
  medias: {
286
286
  id: number;
287
287
  properties: {
@@ -304,12 +304,12 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
304
304
  kind: "Joined";
305
305
  room: {
306
306
  id: string;
307
- user_data: Uint8Array;
307
+ user_data: Uint8Array<ArrayBufferLike>;
308
308
  customer: string;
309
309
  peers: {
310
310
  id: number;
311
311
  user_id: string;
312
- user_data: Uint8Array;
312
+ user_data: Uint8Array<ArrayBufferLike>;
313
313
  medias: {
314
314
  id: number;
315
315
  properties: {
@@ -332,12 +332,12 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
332
332
  kind: "Joined";
333
333
  room: {
334
334
  id: string;
335
- user_data: Uint8Array;
335
+ user_data: Uint8Array<ArrayBufferLike>;
336
336
  customer: string;
337
337
  peers: {
338
338
  id: number;
339
339
  user_id: string;
340
- user_data: Uint8Array;
340
+ user_data: Uint8Array<ArrayBufferLike>;
341
341
  medias: {
342
342
  id: number;
343
343
  properties: {
@@ -367,19 +367,19 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
367
367
  reason: "RoomClosing" | "ServerClosing" | "PeerKicked";
368
368
  }>, z.ZodObject<{
369
369
  kind: z.ZodLiteral<"UserDataChanged">;
370
- user_data: z.ZodOptional<z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>>;
370
+ user_data: z.ZodOptional<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>>;
371
371
  }, "strip", z.ZodTypeAny, {
372
372
  kind: "UserDataChanged";
373
- user_data?: Uint8Array | undefined;
373
+ user_data?: Uint8Array<ArrayBufferLike> | undefined;
374
374
  }, {
375
375
  kind: "UserDataChanged";
376
- user_data?: Uint8Array | undefined;
376
+ user_data?: Uint8Array<ArrayBufferLike> | undefined;
377
377
  }>, z.ZodObject<{
378
378
  kind: z.ZodLiteral<"PeerJoined">;
379
379
  peer: z.ZodObject<{
380
380
  id: z.ZodNumber;
381
381
  user_id: z.ZodString;
382
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
382
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
383
383
  medias: z.ZodArray<z.ZodObject<{
384
384
  id: z.ZodNumber;
385
385
  properties: z.ZodUnion<[z.ZodObject<{
@@ -441,7 +441,7 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
441
441
  }, "strip", z.ZodTypeAny, {
442
442
  id: number;
443
443
  user_id: string;
444
- user_data: Uint8Array;
444
+ user_data: Uint8Array<ArrayBufferLike>;
445
445
  medias: {
446
446
  id: number;
447
447
  properties: {
@@ -459,7 +459,7 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
459
459
  }, {
460
460
  id: number;
461
461
  user_id: string;
462
- user_data: Uint8Array;
462
+ user_data: Uint8Array<ArrayBufferLike>;
463
463
  medias: {
464
464
  id: number;
465
465
  properties: {
@@ -480,7 +480,7 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
480
480
  peer: {
481
481
  id: number;
482
482
  user_id: string;
483
- user_data: Uint8Array;
483
+ user_data: Uint8Array<ArrayBufferLike>;
484
484
  medias: {
485
485
  id: number;
486
486
  properties: {
@@ -501,7 +501,7 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
501
501
  peer: {
502
502
  id: number;
503
503
  user_id: string;
504
- user_data: Uint8Array;
504
+ user_data: Uint8Array<ArrayBufferLike>;
505
505
  medias: {
506
506
  id: number;
507
507
  properties: {
@@ -532,12 +532,12 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
532
532
  kind: "Joined";
533
533
  room: {
534
534
  id: string;
535
- user_data: Uint8Array;
535
+ user_data: Uint8Array<ArrayBufferLike>;
536
536
  customer: string;
537
537
  peers: {
538
538
  id: number;
539
539
  user_id: string;
540
- user_data: Uint8Array;
540
+ user_data: Uint8Array<ArrayBufferLike>;
541
541
  medias: {
542
542
  id: number;
543
543
  properties: {
@@ -561,13 +561,13 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
561
561
  reason: "RoomClosing" | "ServerClosing" | "PeerKicked";
562
562
  } | {
563
563
  kind: "UserDataChanged";
564
- user_data?: Uint8Array | undefined;
564
+ user_data?: Uint8Array<ArrayBufferLike> | undefined;
565
565
  } | {
566
566
  kind: "PeerJoined";
567
567
  peer: {
568
568
  id: number;
569
569
  user_id: string;
570
- user_data: Uint8Array;
570
+ user_data: Uint8Array<ArrayBufferLike>;
571
571
  medias: {
572
572
  id: number;
573
573
  properties: {
@@ -592,12 +592,12 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
592
592
  kind: "Joined";
593
593
  room: {
594
594
  id: string;
595
- user_data: Uint8Array;
595
+ user_data: Uint8Array<ArrayBufferLike>;
596
596
  customer: string;
597
597
  peers: {
598
598
  id: number;
599
599
  user_id: string;
600
- user_data: Uint8Array;
600
+ user_data: Uint8Array<ArrayBufferLike>;
601
601
  medias: {
602
602
  id: number;
603
603
  properties: {
@@ -621,13 +621,13 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
621
621
  reason: "RoomClosing" | "ServerClosing" | "PeerKicked";
622
622
  } | {
623
623
  kind: "UserDataChanged";
624
- user_data?: Uint8Array | undefined;
624
+ user_data?: Uint8Array<ArrayBufferLike> | undefined;
625
625
  } | {
626
626
  kind: "PeerJoined";
627
627
  peer: {
628
628
  id: number;
629
629
  user_id: string;
630
- user_data: Uint8Array;
630
+ user_data: Uint8Array<ArrayBufferLike>;
631
631
  medias: {
632
632
  id: number;
633
633
  properties: {
@@ -654,12 +654,12 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
654
654
  kind: "Joined";
655
655
  room: {
656
656
  id: string;
657
- user_data: Uint8Array;
657
+ user_data: Uint8Array<ArrayBufferLike>;
658
658
  customer: string;
659
659
  peers: {
660
660
  id: number;
661
661
  user_id: string;
662
- user_data: Uint8Array;
662
+ user_data: Uint8Array<ArrayBufferLike>;
663
663
  medias: {
664
664
  id: number;
665
665
  properties: {
@@ -683,13 +683,13 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
683
683
  reason: "RoomClosing" | "ServerClosing" | "PeerKicked";
684
684
  } | {
685
685
  kind: "UserDataChanged";
686
- user_data?: Uint8Array | undefined;
686
+ user_data?: Uint8Array<ArrayBufferLike> | undefined;
687
687
  } | {
688
688
  kind: "PeerJoined";
689
689
  peer: {
690
690
  id: number;
691
691
  user_id: string;
692
- user_data: Uint8Array;
692
+ user_data: Uint8Array<ArrayBufferLike>;
693
693
  medias: {
694
694
  id: number;
695
695
  properties: {
@@ -717,12 +717,12 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
717
717
  kind: "Joined";
718
718
  room: {
719
719
  id: string;
720
- user_data: Uint8Array;
720
+ user_data: Uint8Array<ArrayBufferLike>;
721
721
  customer: string;
722
722
  peers: {
723
723
  id: number;
724
724
  user_id: string;
725
- user_data: Uint8Array;
725
+ user_data: Uint8Array<ArrayBufferLike>;
726
726
  medias: {
727
727
  id: number;
728
728
  properties: {
@@ -746,13 +746,13 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
746
746
  reason: "RoomClosing" | "ServerClosing" | "PeerKicked";
747
747
  } | {
748
748
  kind: "UserDataChanged";
749
- user_data?: Uint8Array | undefined;
749
+ user_data?: Uint8Array<ArrayBufferLike> | undefined;
750
750
  } | {
751
751
  kind: "PeerJoined";
752
752
  peer: {
753
753
  id: number;
754
754
  user_id: string;
755
- user_data: Uint8Array;
755
+ user_data: Uint8Array<ArrayBufferLike>;
756
756
  medias: {
757
757
  id: number;
758
758
  properties: {
@@ -779,14 +779,14 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
779
779
  properties: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
780
780
  kind: z.ZodLiteral<"UserDataChanged">;
781
781
  peer_id: z.ZodNumber;
782
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
782
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
783
783
  }, "strip", z.ZodTypeAny, {
784
784
  kind: "UserDataChanged";
785
- user_data: Uint8Array;
785
+ user_data: Uint8Array<ArrayBufferLike>;
786
786
  peer_id: number;
787
787
  }, {
788
788
  kind: "UserDataChanged";
789
- user_data: Uint8Array;
789
+ user_data: Uint8Array<ArrayBufferLike>;
790
790
  peer_id: number;
791
791
  }>, z.ZodObject<{
792
792
  kind: z.ZodLiteral<"MediaStarted">;
@@ -899,7 +899,7 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
899
899
  }, "strip", z.ZodTypeAny, {
900
900
  properties: {
901
901
  kind: "UserDataChanged";
902
- user_data: Uint8Array;
902
+ user_data: Uint8Array<ArrayBufferLike>;
903
903
  peer_id: number;
904
904
  } | {
905
905
  kind: "MediaStarted";
@@ -927,7 +927,7 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
927
927
  }, {
928
928
  properties: {
929
929
  kind: "UserDataChanged";
930
- user_data: Uint8Array;
930
+ user_data: Uint8Array<ArrayBufferLike>;
931
931
  peer_id: number;
932
932
  } | {
933
933
  kind: "MediaStarted";
@@ -956,23 +956,23 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
956
956
  name: z.ZodLiteral<"MessageReceived">;
957
957
  properties: z.ZodObject<{
958
958
  sender_peer_id: z.ZodNumber;
959
- message: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
959
+ message: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
960
960
  }, "strip", z.ZodTypeAny, {
961
- message: Uint8Array;
961
+ message: Uint8Array<ArrayBufferLike>;
962
962
  sender_peer_id: number;
963
963
  }, {
964
- message: Uint8Array;
964
+ message: Uint8Array<ArrayBufferLike>;
965
965
  sender_peer_id: number;
966
966
  }>;
967
967
  }, "strip", z.ZodTypeAny, {
968
968
  properties: {
969
- message: Uint8Array;
969
+ message: Uint8Array<ArrayBufferLike>;
970
970
  sender_peer_id: number;
971
971
  };
972
972
  name: "MessageReceived";
973
973
  }, {
974
974
  properties: {
975
- message: Uint8Array;
975
+ message: Uint8Array<ArrayBufferLike>;
976
976
  sender_peer_id: number;
977
977
  };
978
978
  name: "MessageReceived";
@@ -995,11 +995,11 @@ export declare const RoomNotificationsRpc: {
995
995
  room: z.ZodObject<{
996
996
  id: z.ZodString;
997
997
  customer: z.ZodString;
998
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
998
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
999
999
  peers: z.ZodArray<z.ZodObject<{
1000
1000
  id: z.ZodNumber;
1001
1001
  user_id: z.ZodString;
1002
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
1002
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1003
1003
  medias: z.ZodArray<z.ZodObject<{
1004
1004
  id: z.ZodNumber;
1005
1005
  properties: z.ZodUnion<[z.ZodObject<{
@@ -1061,7 +1061,7 @@ export declare const RoomNotificationsRpc: {
1061
1061
  }, "strip", z.ZodTypeAny, {
1062
1062
  id: number;
1063
1063
  user_id: string;
1064
- user_data: Uint8Array;
1064
+ user_data: Uint8Array<ArrayBufferLike>;
1065
1065
  medias: {
1066
1066
  id: number;
1067
1067
  properties: {
@@ -1079,7 +1079,7 @@ export declare const RoomNotificationsRpc: {
1079
1079
  }, {
1080
1080
  id: number;
1081
1081
  user_id: string;
1082
- user_data: Uint8Array;
1082
+ user_data: Uint8Array<ArrayBufferLike>;
1083
1083
  medias: {
1084
1084
  id: number;
1085
1085
  properties: {
@@ -1097,12 +1097,12 @@ export declare const RoomNotificationsRpc: {
1097
1097
  }>, "many">;
1098
1098
  }, "strip", z.ZodTypeAny, {
1099
1099
  id: string;
1100
- user_data: Uint8Array;
1100
+ user_data: Uint8Array<ArrayBufferLike>;
1101
1101
  customer: string;
1102
1102
  peers: {
1103
1103
  id: number;
1104
1104
  user_id: string;
1105
- user_data: Uint8Array;
1105
+ user_data: Uint8Array<ArrayBufferLike>;
1106
1106
  medias: {
1107
1107
  id: number;
1108
1108
  properties: {
@@ -1120,12 +1120,12 @@ export declare const RoomNotificationsRpc: {
1120
1120
  }[];
1121
1121
  }, {
1122
1122
  id: string;
1123
- user_data: Uint8Array;
1123
+ user_data: Uint8Array<ArrayBufferLike>;
1124
1124
  customer: string;
1125
1125
  peers: {
1126
1126
  id: number;
1127
1127
  user_id: string;
1128
- user_data: Uint8Array;
1128
+ user_data: Uint8Array<ArrayBufferLike>;
1129
1129
  medias: {
1130
1130
  id: number;
1131
1131
  properties: {
@@ -1148,12 +1148,12 @@ export declare const RoomNotificationsRpc: {
1148
1148
  kind: "Joined";
1149
1149
  room: {
1150
1150
  id: string;
1151
- user_data: Uint8Array;
1151
+ user_data: Uint8Array<ArrayBufferLike>;
1152
1152
  customer: string;
1153
1153
  peers: {
1154
1154
  id: number;
1155
1155
  user_id: string;
1156
- user_data: Uint8Array;
1156
+ user_data: Uint8Array<ArrayBufferLike>;
1157
1157
  medias: {
1158
1158
  id: number;
1159
1159
  properties: {
@@ -1176,12 +1176,12 @@ export declare const RoomNotificationsRpc: {
1176
1176
  kind: "Joined";
1177
1177
  room: {
1178
1178
  id: string;
1179
- user_data: Uint8Array;
1179
+ user_data: Uint8Array<ArrayBufferLike>;
1180
1180
  customer: string;
1181
1181
  peers: {
1182
1182
  id: number;
1183
1183
  user_id: string;
1184
- user_data: Uint8Array;
1184
+ user_data: Uint8Array<ArrayBufferLike>;
1185
1185
  medias: {
1186
1186
  id: number;
1187
1187
  properties: {
@@ -1211,19 +1211,19 @@ export declare const RoomNotificationsRpc: {
1211
1211
  reason: "RoomClosing" | "ServerClosing" | "PeerKicked";
1212
1212
  }>, z.ZodObject<{
1213
1213
  kind: z.ZodLiteral<"UserDataChanged">;
1214
- user_data: z.ZodOptional<z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>>;
1214
+ user_data: z.ZodOptional<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>>;
1215
1215
  }, "strip", z.ZodTypeAny, {
1216
1216
  kind: "UserDataChanged";
1217
- user_data?: Uint8Array | undefined;
1217
+ user_data?: Uint8Array<ArrayBufferLike> | undefined;
1218
1218
  }, {
1219
1219
  kind: "UserDataChanged";
1220
- user_data?: Uint8Array | undefined;
1220
+ user_data?: Uint8Array<ArrayBufferLike> | undefined;
1221
1221
  }>, z.ZodObject<{
1222
1222
  kind: z.ZodLiteral<"PeerJoined">;
1223
1223
  peer: z.ZodObject<{
1224
1224
  id: z.ZodNumber;
1225
1225
  user_id: z.ZodString;
1226
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
1226
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1227
1227
  medias: z.ZodArray<z.ZodObject<{
1228
1228
  id: z.ZodNumber;
1229
1229
  properties: z.ZodUnion<[z.ZodObject<{
@@ -1285,7 +1285,7 @@ export declare const RoomNotificationsRpc: {
1285
1285
  }, "strip", z.ZodTypeAny, {
1286
1286
  id: number;
1287
1287
  user_id: string;
1288
- user_data: Uint8Array;
1288
+ user_data: Uint8Array<ArrayBufferLike>;
1289
1289
  medias: {
1290
1290
  id: number;
1291
1291
  properties: {
@@ -1303,7 +1303,7 @@ export declare const RoomNotificationsRpc: {
1303
1303
  }, {
1304
1304
  id: number;
1305
1305
  user_id: string;
1306
- user_data: Uint8Array;
1306
+ user_data: Uint8Array<ArrayBufferLike>;
1307
1307
  medias: {
1308
1308
  id: number;
1309
1309
  properties: {
@@ -1324,7 +1324,7 @@ export declare const RoomNotificationsRpc: {
1324
1324
  peer: {
1325
1325
  id: number;
1326
1326
  user_id: string;
1327
- user_data: Uint8Array;
1327
+ user_data: Uint8Array<ArrayBufferLike>;
1328
1328
  medias: {
1329
1329
  id: number;
1330
1330
  properties: {
@@ -1345,7 +1345,7 @@ export declare const RoomNotificationsRpc: {
1345
1345
  peer: {
1346
1346
  id: number;
1347
1347
  user_id: string;
1348
- user_data: Uint8Array;
1348
+ user_data: Uint8Array<ArrayBufferLike>;
1349
1349
  medias: {
1350
1350
  id: number;
1351
1351
  properties: {
@@ -1376,12 +1376,12 @@ export declare const RoomNotificationsRpc: {
1376
1376
  kind: "Joined";
1377
1377
  room: {
1378
1378
  id: string;
1379
- user_data: Uint8Array;
1379
+ user_data: Uint8Array<ArrayBufferLike>;
1380
1380
  customer: string;
1381
1381
  peers: {
1382
1382
  id: number;
1383
1383
  user_id: string;
1384
- user_data: Uint8Array;
1384
+ user_data: Uint8Array<ArrayBufferLike>;
1385
1385
  medias: {
1386
1386
  id: number;
1387
1387
  properties: {
@@ -1405,13 +1405,13 @@ export declare const RoomNotificationsRpc: {
1405
1405
  reason: "RoomClosing" | "ServerClosing" | "PeerKicked";
1406
1406
  } | {
1407
1407
  kind: "UserDataChanged";
1408
- user_data?: Uint8Array | undefined;
1408
+ user_data?: Uint8Array<ArrayBufferLike> | undefined;
1409
1409
  } | {
1410
1410
  kind: "PeerJoined";
1411
1411
  peer: {
1412
1412
  id: number;
1413
1413
  user_id: string;
1414
- user_data: Uint8Array;
1414
+ user_data: Uint8Array<ArrayBufferLike>;
1415
1415
  medias: {
1416
1416
  id: number;
1417
1417
  properties: {
@@ -1436,12 +1436,12 @@ export declare const RoomNotificationsRpc: {
1436
1436
  kind: "Joined";
1437
1437
  room: {
1438
1438
  id: string;
1439
- user_data: Uint8Array;
1439
+ user_data: Uint8Array<ArrayBufferLike>;
1440
1440
  customer: string;
1441
1441
  peers: {
1442
1442
  id: number;
1443
1443
  user_id: string;
1444
- user_data: Uint8Array;
1444
+ user_data: Uint8Array<ArrayBufferLike>;
1445
1445
  medias: {
1446
1446
  id: number;
1447
1447
  properties: {
@@ -1465,13 +1465,13 @@ export declare const RoomNotificationsRpc: {
1465
1465
  reason: "RoomClosing" | "ServerClosing" | "PeerKicked";
1466
1466
  } | {
1467
1467
  kind: "UserDataChanged";
1468
- user_data?: Uint8Array | undefined;
1468
+ user_data?: Uint8Array<ArrayBufferLike> | undefined;
1469
1469
  } | {
1470
1470
  kind: "PeerJoined";
1471
1471
  peer: {
1472
1472
  id: number;
1473
1473
  user_id: string;
1474
- user_data: Uint8Array;
1474
+ user_data: Uint8Array<ArrayBufferLike>;
1475
1475
  medias: {
1476
1476
  id: number;
1477
1477
  properties: {
@@ -1495,14 +1495,14 @@ export declare const RoomNotificationsRpc: {
1495
1495
  PeerUpdated: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1496
1496
  kind: z.ZodLiteral<"UserDataChanged">;
1497
1497
  peer_id: z.ZodNumber;
1498
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
1498
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1499
1499
  }, "strip", z.ZodTypeAny, {
1500
1500
  kind: "UserDataChanged";
1501
- user_data: Uint8Array;
1501
+ user_data: Uint8Array<ArrayBufferLike>;
1502
1502
  peer_id: number;
1503
1503
  }, {
1504
1504
  kind: "UserDataChanged";
1505
- user_data: Uint8Array;
1505
+ user_data: Uint8Array<ArrayBufferLike>;
1506
1506
  peer_id: number;
1507
1507
  }>, z.ZodObject<{
1508
1508
  kind: z.ZodLiteral<"MediaStarted">;
@@ -1614,12 +1614,12 @@ export declare const RoomNotificationsRpc: {
1614
1614
  }>]>;
1615
1615
  MessageReceived: z.ZodObject<{
1616
1616
  sender_peer_id: z.ZodNumber;
1617
- message: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
1617
+ message: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1618
1618
  }, "strip", z.ZodTypeAny, {
1619
- message: Uint8Array;
1619
+ message: Uint8Array<ArrayBufferLike>;
1620
1620
  sender_peer_id: number;
1621
1621
  }, {
1622
- message: Uint8Array;
1622
+ message: Uint8Array<ArrayBufferLike>;
1623
1623
  sender_peer_id: number;
1624
1624
  }>;
1625
1625
  };
@@ -1,12 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  export declare const MessageReceivedSchema: z.ZodObject<{
3
3
  sender_peer_id: z.ZodNumber;
4
- message: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
4
+ message: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
5
5
  }, "strip", z.ZodTypeAny, {
6
- message: Uint8Array;
6
+ message: Uint8Array<ArrayBufferLike>;
7
7
  sender_peer_id: number;
8
8
  }, {
9
- message: Uint8Array;
9
+ message: Uint8Array<ArrayBufferLike>;
10
10
  sender_peer_id: number;
11
11
  }>;
12
12
  export type MessageReceived = z.infer<typeof MessageReceivedSchema>;
@@ -6,7 +6,7 @@ export type PeerPosition = z.infer<typeof PeerPositionSchema>;
6
6
  export declare const PeerSchema: z.ZodObject<{
7
7
  id: z.ZodNumber;
8
8
  user_id: z.ZodString;
9
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
9
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
10
10
  medias: z.ZodArray<z.ZodObject<{
11
11
  id: z.ZodNumber;
12
12
  properties: z.ZodUnion<[z.ZodObject<{
@@ -68,7 +68,7 @@ export declare const PeerSchema: z.ZodObject<{
68
68
  }, "strip", z.ZodTypeAny, {
69
69
  id: number;
70
70
  user_id: string;
71
- user_data: Uint8Array;
71
+ user_data: Uint8Array<ArrayBufferLike>;
72
72
  medias: {
73
73
  id: number;
74
74
  properties: {
@@ -86,7 +86,7 @@ export declare const PeerSchema: z.ZodObject<{
86
86
  }, {
87
87
  id: number;
88
88
  user_id: string;
89
- user_data: Uint8Array;
89
+ user_data: Uint8Array<ArrayBufferLike>;
90
90
  medias: {
91
91
  id: number;
92
92
  properties: {
@@ -106,14 +106,14 @@ export type Peer = z.infer<typeof PeerSchema>;
106
106
  export declare const PeerUpdateSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
107
107
  kind: z.ZodLiteral<"UserDataChanged">;
108
108
  peer_id: z.ZodNumber;
109
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
109
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
110
110
  }, "strip", z.ZodTypeAny, {
111
111
  kind: "UserDataChanged";
112
- user_data: Uint8Array;
112
+ user_data: Uint8Array<ArrayBufferLike>;
113
113
  peer_id: number;
114
114
  }, {
115
115
  kind: "UserDataChanged";
116
- user_data: Uint8Array;
116
+ user_data: Uint8Array<ArrayBufferLike>;
117
117
  peer_id: number;
118
118
  }>, z.ZodObject<{
119
119
  kind: z.ZodLiteral<"MediaStarted">;
@@ -4,11 +4,11 @@ export type RoomId = z.infer<typeof RoomIdSchema>;
4
4
  export declare const RoomSchema: z.ZodObject<{
5
5
  id: z.ZodString;
6
6
  customer: z.ZodString;
7
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
7
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
8
8
  peers: z.ZodArray<z.ZodObject<{
9
9
  id: z.ZodNumber;
10
10
  user_id: z.ZodString;
11
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
11
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
12
12
  medias: z.ZodArray<z.ZodObject<{
13
13
  id: z.ZodNumber;
14
14
  properties: z.ZodUnion<[z.ZodObject<{
@@ -70,7 +70,7 @@ export declare const RoomSchema: z.ZodObject<{
70
70
  }, "strip", z.ZodTypeAny, {
71
71
  id: number;
72
72
  user_id: string;
73
- user_data: Uint8Array;
73
+ user_data: Uint8Array<ArrayBufferLike>;
74
74
  medias: {
75
75
  id: number;
76
76
  properties: {
@@ -88,7 +88,7 @@ export declare const RoomSchema: z.ZodObject<{
88
88
  }, {
89
89
  id: number;
90
90
  user_id: string;
91
- user_data: Uint8Array;
91
+ user_data: Uint8Array<ArrayBufferLike>;
92
92
  medias: {
93
93
  id: number;
94
94
  properties: {
@@ -106,12 +106,12 @@ export declare const RoomSchema: z.ZodObject<{
106
106
  }>, "many">;
107
107
  }, "strip", z.ZodTypeAny, {
108
108
  id: string;
109
- user_data: Uint8Array;
109
+ user_data: Uint8Array<ArrayBufferLike>;
110
110
  customer: string;
111
111
  peers: {
112
112
  id: number;
113
113
  user_id: string;
114
- user_data: Uint8Array;
114
+ user_data: Uint8Array<ArrayBufferLike>;
115
115
  medias: {
116
116
  id: number;
117
117
  properties: {
@@ -129,12 +129,12 @@ export declare const RoomSchema: z.ZodObject<{
129
129
  }[];
130
130
  }, {
131
131
  id: string;
132
- user_data: Uint8Array;
132
+ user_data: Uint8Array<ArrayBufferLike>;
133
133
  customer: string;
134
134
  peers: {
135
135
  id: number;
136
136
  user_id: string;
137
- user_data: Uint8Array;
137
+ user_data: Uint8Array<ArrayBufferLike>;
138
138
  medias: {
139
139
  id: number;
140
140
  properties: {
@@ -157,11 +157,11 @@ export declare const RoomUpdateSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
157
157
  room: z.ZodObject<{
158
158
  id: z.ZodString;
159
159
  customer: z.ZodString;
160
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
160
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
161
161
  peers: z.ZodArray<z.ZodObject<{
162
162
  id: z.ZodNumber;
163
163
  user_id: z.ZodString;
164
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
164
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
165
165
  medias: z.ZodArray<z.ZodObject<{
166
166
  id: z.ZodNumber;
167
167
  properties: z.ZodUnion<[z.ZodObject<{
@@ -223,7 +223,7 @@ export declare const RoomUpdateSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
223
223
  }, "strip", z.ZodTypeAny, {
224
224
  id: number;
225
225
  user_id: string;
226
- user_data: Uint8Array;
226
+ user_data: Uint8Array<ArrayBufferLike>;
227
227
  medias: {
228
228
  id: number;
229
229
  properties: {
@@ -241,7 +241,7 @@ export declare const RoomUpdateSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
241
241
  }, {
242
242
  id: number;
243
243
  user_id: string;
244
- user_data: Uint8Array;
244
+ user_data: Uint8Array<ArrayBufferLike>;
245
245
  medias: {
246
246
  id: number;
247
247
  properties: {
@@ -259,12 +259,12 @@ export declare const RoomUpdateSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
259
259
  }>, "many">;
260
260
  }, "strip", z.ZodTypeAny, {
261
261
  id: string;
262
- user_data: Uint8Array;
262
+ user_data: Uint8Array<ArrayBufferLike>;
263
263
  customer: string;
264
264
  peers: {
265
265
  id: number;
266
266
  user_id: string;
267
- user_data: Uint8Array;
267
+ user_data: Uint8Array<ArrayBufferLike>;
268
268
  medias: {
269
269
  id: number;
270
270
  properties: {
@@ -282,12 +282,12 @@ export declare const RoomUpdateSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
282
282
  }[];
283
283
  }, {
284
284
  id: string;
285
- user_data: Uint8Array;
285
+ user_data: Uint8Array<ArrayBufferLike>;
286
286
  customer: string;
287
287
  peers: {
288
288
  id: number;
289
289
  user_id: string;
290
- user_data: Uint8Array;
290
+ user_data: Uint8Array<ArrayBufferLike>;
291
291
  medias: {
292
292
  id: number;
293
293
  properties: {
@@ -310,12 +310,12 @@ export declare const RoomUpdateSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
310
310
  kind: "Joined";
311
311
  room: {
312
312
  id: string;
313
- user_data: Uint8Array;
313
+ user_data: Uint8Array<ArrayBufferLike>;
314
314
  customer: string;
315
315
  peers: {
316
316
  id: number;
317
317
  user_id: string;
318
- user_data: Uint8Array;
318
+ user_data: Uint8Array<ArrayBufferLike>;
319
319
  medias: {
320
320
  id: number;
321
321
  properties: {
@@ -338,12 +338,12 @@ export declare const RoomUpdateSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
338
338
  kind: "Joined";
339
339
  room: {
340
340
  id: string;
341
- user_data: Uint8Array;
341
+ user_data: Uint8Array<ArrayBufferLike>;
342
342
  customer: string;
343
343
  peers: {
344
344
  id: number;
345
345
  user_id: string;
346
- user_data: Uint8Array;
346
+ user_data: Uint8Array<ArrayBufferLike>;
347
347
  medias: {
348
348
  id: number;
349
349
  properties: {
@@ -373,19 +373,19 @@ export declare const RoomUpdateSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
373
373
  reason: "RoomClosing" | "ServerClosing" | "PeerKicked";
374
374
  }>, z.ZodObject<{
375
375
  kind: z.ZodLiteral<"UserDataChanged">;
376
- user_data: z.ZodOptional<z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>>;
376
+ user_data: z.ZodOptional<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>>;
377
377
  }, "strip", z.ZodTypeAny, {
378
378
  kind: "UserDataChanged";
379
- user_data?: Uint8Array | undefined;
379
+ user_data?: Uint8Array<ArrayBufferLike> | undefined;
380
380
  }, {
381
381
  kind: "UserDataChanged";
382
- user_data?: Uint8Array | undefined;
382
+ user_data?: Uint8Array<ArrayBufferLike> | undefined;
383
383
  }>, z.ZodObject<{
384
384
  kind: z.ZodLiteral<"PeerJoined">;
385
385
  peer: z.ZodObject<{
386
386
  id: z.ZodNumber;
387
387
  user_id: z.ZodString;
388
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
388
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
389
389
  medias: z.ZodArray<z.ZodObject<{
390
390
  id: z.ZodNumber;
391
391
  properties: z.ZodUnion<[z.ZodObject<{
@@ -447,7 +447,7 @@ export declare const RoomUpdateSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
447
447
  }, "strip", z.ZodTypeAny, {
448
448
  id: number;
449
449
  user_id: string;
450
- user_data: Uint8Array;
450
+ user_data: Uint8Array<ArrayBufferLike>;
451
451
  medias: {
452
452
  id: number;
453
453
  properties: {
@@ -465,7 +465,7 @@ export declare const RoomUpdateSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
465
465
  }, {
466
466
  id: number;
467
467
  user_id: string;
468
- user_data: Uint8Array;
468
+ user_data: Uint8Array<ArrayBufferLike>;
469
469
  medias: {
470
470
  id: number;
471
471
  properties: {
@@ -486,7 +486,7 @@ export declare const RoomUpdateSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
486
486
  peer: {
487
487
  id: number;
488
488
  user_id: string;
489
- user_data: Uint8Array;
489
+ user_data: Uint8Array<ArrayBufferLike>;
490
490
  medias: {
491
491
  id: number;
492
492
  properties: {
@@ -507,7 +507,7 @@ export declare const RoomUpdateSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
507
507
  peer: {
508
508
  id: number;
509
509
  user_id: string;
510
- user_data: Uint8Array;
510
+ user_data: Uint8Array<ArrayBufferLike>;
511
511
  medias: {
512
512
  id: number;
513
513
  properties: {
@@ -540,11 +540,11 @@ export declare const RoomUpdatesSchema: z.ZodObject<{
540
540
  room: z.ZodObject<{
541
541
  id: z.ZodString;
542
542
  customer: z.ZodString;
543
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
543
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
544
544
  peers: z.ZodArray<z.ZodObject<{
545
545
  id: z.ZodNumber;
546
546
  user_id: z.ZodString;
547
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
547
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
548
548
  medias: z.ZodArray<z.ZodObject<{
549
549
  id: z.ZodNumber;
550
550
  properties: z.ZodUnion<[z.ZodObject<{
@@ -606,7 +606,7 @@ export declare const RoomUpdatesSchema: z.ZodObject<{
606
606
  }, "strip", z.ZodTypeAny, {
607
607
  id: number;
608
608
  user_id: string;
609
- user_data: Uint8Array;
609
+ user_data: Uint8Array<ArrayBufferLike>;
610
610
  medias: {
611
611
  id: number;
612
612
  properties: {
@@ -624,7 +624,7 @@ export declare const RoomUpdatesSchema: z.ZodObject<{
624
624
  }, {
625
625
  id: number;
626
626
  user_id: string;
627
- user_data: Uint8Array;
627
+ user_data: Uint8Array<ArrayBufferLike>;
628
628
  medias: {
629
629
  id: number;
630
630
  properties: {
@@ -642,12 +642,12 @@ export declare const RoomUpdatesSchema: z.ZodObject<{
642
642
  }>, "many">;
643
643
  }, "strip", z.ZodTypeAny, {
644
644
  id: string;
645
- user_data: Uint8Array;
645
+ user_data: Uint8Array<ArrayBufferLike>;
646
646
  customer: string;
647
647
  peers: {
648
648
  id: number;
649
649
  user_id: string;
650
- user_data: Uint8Array;
650
+ user_data: Uint8Array<ArrayBufferLike>;
651
651
  medias: {
652
652
  id: number;
653
653
  properties: {
@@ -665,12 +665,12 @@ export declare const RoomUpdatesSchema: z.ZodObject<{
665
665
  }[];
666
666
  }, {
667
667
  id: string;
668
- user_data: Uint8Array;
668
+ user_data: Uint8Array<ArrayBufferLike>;
669
669
  customer: string;
670
670
  peers: {
671
671
  id: number;
672
672
  user_id: string;
673
- user_data: Uint8Array;
673
+ user_data: Uint8Array<ArrayBufferLike>;
674
674
  medias: {
675
675
  id: number;
676
676
  properties: {
@@ -693,12 +693,12 @@ export declare const RoomUpdatesSchema: z.ZodObject<{
693
693
  kind: "Joined";
694
694
  room: {
695
695
  id: string;
696
- user_data: Uint8Array;
696
+ user_data: Uint8Array<ArrayBufferLike>;
697
697
  customer: string;
698
698
  peers: {
699
699
  id: number;
700
700
  user_id: string;
701
- user_data: Uint8Array;
701
+ user_data: Uint8Array<ArrayBufferLike>;
702
702
  medias: {
703
703
  id: number;
704
704
  properties: {
@@ -721,12 +721,12 @@ export declare const RoomUpdatesSchema: z.ZodObject<{
721
721
  kind: "Joined";
722
722
  room: {
723
723
  id: string;
724
- user_data: Uint8Array;
724
+ user_data: Uint8Array<ArrayBufferLike>;
725
725
  customer: string;
726
726
  peers: {
727
727
  id: number;
728
728
  user_id: string;
729
- user_data: Uint8Array;
729
+ user_data: Uint8Array<ArrayBufferLike>;
730
730
  medias: {
731
731
  id: number;
732
732
  properties: {
@@ -756,19 +756,19 @@ export declare const RoomUpdatesSchema: z.ZodObject<{
756
756
  reason: "RoomClosing" | "ServerClosing" | "PeerKicked";
757
757
  }>, z.ZodObject<{
758
758
  kind: z.ZodLiteral<"UserDataChanged">;
759
- user_data: z.ZodOptional<z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>>;
759
+ user_data: z.ZodOptional<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>>;
760
760
  }, "strip", z.ZodTypeAny, {
761
761
  kind: "UserDataChanged";
762
- user_data?: Uint8Array | undefined;
762
+ user_data?: Uint8Array<ArrayBufferLike> | undefined;
763
763
  }, {
764
764
  kind: "UserDataChanged";
765
- user_data?: Uint8Array | undefined;
765
+ user_data?: Uint8Array<ArrayBufferLike> | undefined;
766
766
  }>, z.ZodObject<{
767
767
  kind: z.ZodLiteral<"PeerJoined">;
768
768
  peer: z.ZodObject<{
769
769
  id: z.ZodNumber;
770
770
  user_id: z.ZodString;
771
- user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
771
+ user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
772
772
  medias: z.ZodArray<z.ZodObject<{
773
773
  id: z.ZodNumber;
774
774
  properties: z.ZodUnion<[z.ZodObject<{
@@ -830,7 +830,7 @@ export declare const RoomUpdatesSchema: z.ZodObject<{
830
830
  }, "strip", z.ZodTypeAny, {
831
831
  id: number;
832
832
  user_id: string;
833
- user_data: Uint8Array;
833
+ user_data: Uint8Array<ArrayBufferLike>;
834
834
  medias: {
835
835
  id: number;
836
836
  properties: {
@@ -848,7 +848,7 @@ export declare const RoomUpdatesSchema: z.ZodObject<{
848
848
  }, {
849
849
  id: number;
850
850
  user_id: string;
851
- user_data: Uint8Array;
851
+ user_data: Uint8Array<ArrayBufferLike>;
852
852
  medias: {
853
853
  id: number;
854
854
  properties: {
@@ -869,7 +869,7 @@ export declare const RoomUpdatesSchema: z.ZodObject<{
869
869
  peer: {
870
870
  id: number;
871
871
  user_id: string;
872
- user_data: Uint8Array;
872
+ user_data: Uint8Array<ArrayBufferLike>;
873
873
  medias: {
874
874
  id: number;
875
875
  properties: {
@@ -890,7 +890,7 @@ export declare const RoomUpdatesSchema: z.ZodObject<{
890
890
  peer: {
891
891
  id: number;
892
892
  user_id: string;
893
- user_data: Uint8Array;
893
+ user_data: Uint8Array<ArrayBufferLike>;
894
894
  medias: {
895
895
  id: number;
896
896
  properties: {
@@ -921,12 +921,12 @@ export declare const RoomUpdatesSchema: z.ZodObject<{
921
921
  kind: "Joined";
922
922
  room: {
923
923
  id: string;
924
- user_data: Uint8Array;
924
+ user_data: Uint8Array<ArrayBufferLike>;
925
925
  customer: string;
926
926
  peers: {
927
927
  id: number;
928
928
  user_id: string;
929
- user_data: Uint8Array;
929
+ user_data: Uint8Array<ArrayBufferLike>;
930
930
  medias: {
931
931
  id: number;
932
932
  properties: {
@@ -950,13 +950,13 @@ export declare const RoomUpdatesSchema: z.ZodObject<{
950
950
  reason: "RoomClosing" | "ServerClosing" | "PeerKicked";
951
951
  } | {
952
952
  kind: "UserDataChanged";
953
- user_data?: Uint8Array | undefined;
953
+ user_data?: Uint8Array<ArrayBufferLike> | undefined;
954
954
  } | {
955
955
  kind: "PeerJoined";
956
956
  peer: {
957
957
  id: number;
958
958
  user_id: string;
959
- user_data: Uint8Array;
959
+ user_data: Uint8Array<ArrayBufferLike>;
960
960
  medias: {
961
961
  id: number;
962
962
  properties: {
@@ -981,12 +981,12 @@ export declare const RoomUpdatesSchema: z.ZodObject<{
981
981
  kind: "Joined";
982
982
  room: {
983
983
  id: string;
984
- user_data: Uint8Array;
984
+ user_data: Uint8Array<ArrayBufferLike>;
985
985
  customer: string;
986
986
  peers: {
987
987
  id: number;
988
988
  user_id: string;
989
- user_data: Uint8Array;
989
+ user_data: Uint8Array<ArrayBufferLike>;
990
990
  medias: {
991
991
  id: number;
992
992
  properties: {
@@ -1010,13 +1010,13 @@ export declare const RoomUpdatesSchema: z.ZodObject<{
1010
1010
  reason: "RoomClosing" | "ServerClosing" | "PeerKicked";
1011
1011
  } | {
1012
1012
  kind: "UserDataChanged";
1013
- user_data?: Uint8Array | undefined;
1013
+ user_data?: Uint8Array<ArrayBufferLike> | undefined;
1014
1014
  } | {
1015
1015
  kind: "PeerJoined";
1016
1016
  peer: {
1017
1017
  id: number;
1018
1018
  user_id: string;
1019
- user_data: Uint8Array;
1019
+ user_data: Uint8Array<ArrayBufferLike>;
1020
1020
  medias: {
1021
1021
  id: number;
1022
1022
  properties: {
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const ByteArraySchema: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
2
+ export declare const ByteArraySchema: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
3
3
  export type ByteArray = z.infer<typeof ByteArraySchema>;
4
4
  declare const LiteralSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
5
5
  type Literal = z.infer<typeof LiteralSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4players/odin-common",
3
- "version": "2.15.0",
3
+ "version": "2.16.0",
4
4
  "description": "A collection of commonly used type definitions and utility functions across ODIN web projects",
5
5
  "author": "Josho Bleicker <josho.bleicker@4players.io> (https://www.4players.io)",
6
6
  "homepage": "https://www.4players.io",
@@ -30,18 +30,18 @@
30
30
  "zod": "~3.23.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@types/node": "~20.16.0",
33
+ "@types/node": "~22.10.0",
34
34
  "@types/uuid": "~10.0.0",
35
- "@typescript-eslint/eslint-plugin": "~7.18.0",
36
- "@typescript-eslint/parser": "~7.18.0",
35
+ "@typescript-eslint/eslint-plugin": "~8.17.0",
36
+ "@typescript-eslint/parser": "~8.17.0",
37
37
  "eslint": "~8.57.0",
38
38
  "eslint-config-semistandard": "~17.0.0",
39
- "eslint-plugin-import": "~2.30.0",
39
+ "eslint-plugin-import": "~2.31.0",
40
40
  "eslint-plugin-node": "~11.1.0",
41
41
  "eslint-plugin-promise": "~6.6.0",
42
- "prettier": "~3.3.0",
42
+ "prettier": "~3.4.0",
43
43
  "rimraf": "~6.0.0",
44
44
  "testyts": "~1.5.0",
45
- "typescript": "~5.5.0"
45
+ "typescript": "~5.7.0"
46
46
  }
47
- }
47
+ }