@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4players/odin-common",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
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",
package/rpc/commands.d.ts CHANGED
@@ -19,16 +19,16 @@ 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<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
22
+ user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
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
25
  position?: [number, number, number, ...unknown[]] | [number, number, ...unknown[]];
26
- user_data?: Uint8Array<ArrayBufferLike>;
26
+ user_data?: Uint8Array;
27
27
  room_id?: string;
28
28
  token?: string;
29
29
  }, {
30
30
  position?: [number, number, number, ...unknown[]] | [number, number, ...unknown[]];
31
- user_data?: Uint8Array<ArrayBufferLike>;
31
+ user_data?: Uint8Array;
32
32
  room_id?: string;
33
33
  token?: string;
34
34
  }>;
@@ -111,18 +111,18 @@ 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<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
114
+ user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
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
117
  stream?: "room";
118
118
  position?: [number, number, number, ...unknown[]] | [number, number, ...unknown[]];
119
- user_data?: Uint8Array<ArrayBufferLike>;
119
+ user_data?: Uint8Array;
120
120
  room_id?: string;
121
121
  token?: string;
122
122
  }, {
123
123
  stream?: "room";
124
124
  position?: [number, number, number, ...unknown[]] | [number, number, ...unknown[]];
125
- user_data?: Uint8Array<ArrayBufferLike>;
125
+ user_data?: Uint8Array;
126
126
  room_id?: string;
127
127
  token?: string;
128
128
  }>;
@@ -130,11 +130,11 @@ export declare const RoomCommandsRpc: {
130
130
  };
131
131
  UpdatePeer: {
132
132
  request: z.ZodObject<{
133
- user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
133
+ user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
134
134
  }, "strip", z.ZodTypeAny, {
135
- user_data?: Uint8Array<ArrayBufferLike>;
135
+ user_data?: Uint8Array;
136
136
  }, {
137
- user_data?: Uint8Array<ArrayBufferLike>;
137
+ user_data?: Uint8Array;
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<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
242
+ message: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
243
243
  }, "strip", z.ZodTypeAny, {
244
- message?: Uint8Array<ArrayBufferLike>;
244
+ message?: Uint8Array;
245
245
  target_peer_ids?: number[];
246
246
  }, {
247
- message?: Uint8Array<ArrayBufferLike>;
247
+ message?: Uint8Array;
248
248
  target_peer_ids?: number[];
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<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
154
+ user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
155
155
  peers: z.ZodArray<z.ZodObject<{
156
156
  id: z.ZodNumber;
157
157
  user_id: z.ZodString;
158
- user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
158
+ user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
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<ArrayBufferLike>;
220
+ user_data?: Uint8Array;
221
221
  medias?: {
222
222
  id?: number;
223
223
  paused?: boolean;
@@ -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<ArrayBufferLike>;
238
+ user_data?: Uint8Array;
239
239
  medias?: {
240
240
  id?: number;
241
241
  paused?: boolean;
@@ -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<ArrayBufferLike>;
256
+ user_data?: Uint8Array;
257
257
  customer?: string;
258
258
  peers?: {
259
259
  id?: number;
260
260
  user_id?: string;
261
- user_data?: Uint8Array<ArrayBufferLike>;
261
+ user_data?: Uint8Array;
262
262
  medias?: {
263
263
  id?: number;
264
264
  paused?: boolean;
@@ -276,12 +276,12 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
276
276
  }[];
277
277
  }, {
278
278
  id?: string;
279
- user_data?: Uint8Array<ArrayBufferLike>;
279
+ user_data?: Uint8Array;
280
280
  customer?: string;
281
281
  peers?: {
282
282
  id?: number;
283
283
  user_id?: string;
284
- user_data?: Uint8Array<ArrayBufferLike>;
284
+ user_data?: Uint8Array;
285
285
  medias?: {
286
286
  id?: number;
287
287
  paused?: boolean;
@@ -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<ArrayBufferLike>;
307
+ user_data?: Uint8Array;
308
308
  customer?: string;
309
309
  peers?: {
310
310
  id?: number;
311
311
  user_id?: string;
312
- user_data?: Uint8Array<ArrayBufferLike>;
312
+ user_data?: Uint8Array;
313
313
  medias?: {
314
314
  id?: number;
315
315
  paused?: boolean;
@@ -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<ArrayBufferLike>;
335
+ user_data?: Uint8Array;
336
336
  customer?: string;
337
337
  peers?: {
338
338
  id?: number;
339
339
  user_id?: string;
340
- user_data?: Uint8Array<ArrayBufferLike>;
340
+ user_data?: Uint8Array;
341
341
  medias?: {
342
342
  id?: number;
343
343
  paused?: boolean;
@@ -367,19 +367,19 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
367
367
  kind?: "Left";
368
368
  }>, z.ZodObject<{
369
369
  kind: z.ZodLiteral<"UserDataChanged">;
370
- user_data: z.ZodOptional<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>>;
370
+ user_data: z.ZodOptional<z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>>;
371
371
  }, "strip", z.ZodTypeAny, {
372
372
  kind?: "UserDataChanged";
373
- user_data?: Uint8Array<ArrayBufferLike>;
373
+ user_data?: Uint8Array;
374
374
  }, {
375
375
  kind?: "UserDataChanged";
376
- user_data?: Uint8Array<ArrayBufferLike>;
376
+ user_data?: Uint8Array;
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<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
382
+ user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
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<ArrayBufferLike>;
444
+ user_data?: Uint8Array;
445
445
  medias?: {
446
446
  id?: number;
447
447
  paused?: boolean;
@@ -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<ArrayBufferLike>;
462
+ user_data?: Uint8Array;
463
463
  medias?: {
464
464
  id?: number;
465
465
  paused?: boolean;
@@ -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<ArrayBufferLike>;
483
+ user_data?: Uint8Array;
484
484
  medias?: {
485
485
  id?: number;
486
486
  paused?: boolean;
@@ -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<ArrayBufferLike>;
504
+ user_data?: Uint8Array;
505
505
  medias?: {
506
506
  id?: number;
507
507
  paused?: boolean;
@@ -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<ArrayBufferLike>;
535
+ user_data?: Uint8Array;
536
536
  customer?: string;
537
537
  peers?: {
538
538
  id?: number;
539
539
  user_id?: string;
540
- user_data?: Uint8Array<ArrayBufferLike>;
540
+ user_data?: Uint8Array;
541
541
  medias?: {
542
542
  id?: number;
543
543
  paused?: boolean;
@@ -561,13 +561,13 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
561
561
  kind?: "Left";
562
562
  } | {
563
563
  kind?: "UserDataChanged";
564
- user_data?: Uint8Array<ArrayBufferLike>;
564
+ user_data?: Uint8Array;
565
565
  } | {
566
566
  kind?: "PeerJoined";
567
567
  peer?: {
568
568
  id?: number;
569
569
  user_id?: string;
570
- user_data?: Uint8Array<ArrayBufferLike>;
570
+ user_data?: Uint8Array;
571
571
  medias?: {
572
572
  id?: number;
573
573
  paused?: boolean;
@@ -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<ArrayBufferLike>;
595
+ user_data?: Uint8Array;
596
596
  customer?: string;
597
597
  peers?: {
598
598
  id?: number;
599
599
  user_id?: string;
600
- user_data?: Uint8Array<ArrayBufferLike>;
600
+ user_data?: Uint8Array;
601
601
  medias?: {
602
602
  id?: number;
603
603
  paused?: boolean;
@@ -621,13 +621,13 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
621
621
  kind?: "Left";
622
622
  } | {
623
623
  kind?: "UserDataChanged";
624
- user_data?: Uint8Array<ArrayBufferLike>;
624
+ user_data?: Uint8Array;
625
625
  } | {
626
626
  kind?: "PeerJoined";
627
627
  peer?: {
628
628
  id?: number;
629
629
  user_id?: string;
630
- user_data?: Uint8Array<ArrayBufferLike>;
630
+ user_data?: Uint8Array;
631
631
  medias?: {
632
632
  id?: number;
633
633
  paused?: boolean;
@@ -655,12 +655,12 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
655
655
  kind?: "Joined";
656
656
  room?: {
657
657
  id?: string;
658
- user_data?: Uint8Array<ArrayBufferLike>;
658
+ user_data?: Uint8Array;
659
659
  customer?: string;
660
660
  peers?: {
661
661
  id?: number;
662
662
  user_id?: string;
663
- user_data?: Uint8Array<ArrayBufferLike>;
663
+ user_data?: Uint8Array;
664
664
  medias?: {
665
665
  id?: number;
666
666
  paused?: boolean;
@@ -684,13 +684,13 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
684
684
  kind?: "Left";
685
685
  } | {
686
686
  kind?: "UserDataChanged";
687
- user_data?: Uint8Array<ArrayBufferLike>;
687
+ user_data?: Uint8Array;
688
688
  } | {
689
689
  kind?: "PeerJoined";
690
690
  peer?: {
691
691
  id?: number;
692
692
  user_id?: string;
693
- user_data?: Uint8Array<ArrayBufferLike>;
693
+ user_data?: Uint8Array;
694
694
  medias?: {
695
695
  id?: number;
696
696
  paused?: boolean;
@@ -718,12 +718,12 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
718
718
  kind?: "Joined";
719
719
  room?: {
720
720
  id?: string;
721
- user_data?: Uint8Array<ArrayBufferLike>;
721
+ user_data?: Uint8Array;
722
722
  customer?: string;
723
723
  peers?: {
724
724
  id?: number;
725
725
  user_id?: string;
726
- user_data?: Uint8Array<ArrayBufferLike>;
726
+ user_data?: Uint8Array;
727
727
  medias?: {
728
728
  id?: number;
729
729
  paused?: boolean;
@@ -747,13 +747,13 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
747
747
  kind?: "Left";
748
748
  } | {
749
749
  kind?: "UserDataChanged";
750
- user_data?: Uint8Array<ArrayBufferLike>;
750
+ user_data?: Uint8Array;
751
751
  } | {
752
752
  kind?: "PeerJoined";
753
753
  peer?: {
754
754
  id?: number;
755
755
  user_id?: string;
756
- user_data?: Uint8Array<ArrayBufferLike>;
756
+ user_data?: Uint8Array;
757
757
  medias?: {
758
758
  id?: number;
759
759
  paused?: boolean;
@@ -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<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
782
+ user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
783
783
  }, "strip", z.ZodTypeAny, {
784
784
  kind?: "UserDataChanged";
785
- user_data?: Uint8Array<ArrayBufferLike>;
785
+ user_data?: Uint8Array;
786
786
  peer_id?: number;
787
787
  }, {
788
788
  kind?: "UserDataChanged";
789
- user_data?: Uint8Array<ArrayBufferLike>;
789
+ user_data?: Uint8Array;
790
790
  peer_id?: number;
791
791
  }>, z.ZodObject<{
792
792
  kind: z.ZodLiteral<"MediaStarted">;
@@ -900,7 +900,7 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
900
900
  name?: "PeerUpdated";
901
901
  properties?: {
902
902
  kind?: "UserDataChanged";
903
- user_data?: Uint8Array<ArrayBufferLike>;
903
+ user_data?: Uint8Array;
904
904
  peer_id?: number;
905
905
  } | {
906
906
  media?: {
@@ -928,7 +928,7 @@ export declare const RoomNotificationSchema: z.ZodUnion<[z.ZodObject<{
928
928
  name?: "PeerUpdated";
929
929
  properties?: {
930
930
  kind?: "UserDataChanged";
931
- user_data?: Uint8Array<ArrayBufferLike>;
931
+ user_data?: Uint8Array;
932
932
  peer_id?: number;
933
933
  } | {
934
934
  media?: {
@@ -956,24 +956,24 @@ 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<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
959
+ message: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
960
960
  }, "strip", z.ZodTypeAny, {
961
- message?: Uint8Array<ArrayBufferLike>;
961
+ message?: Uint8Array;
962
962
  sender_peer_id?: number;
963
963
  }, {
964
- message?: Uint8Array<ArrayBufferLike>;
964
+ message?: Uint8Array;
965
965
  sender_peer_id?: number;
966
966
  }>;
967
967
  }, "strip", z.ZodTypeAny, {
968
968
  name?: "MessageReceived";
969
969
  properties?: {
970
- message?: Uint8Array<ArrayBufferLike>;
970
+ message?: Uint8Array;
971
971
  sender_peer_id?: number;
972
972
  };
973
973
  }, {
974
974
  name?: "MessageReceived";
975
975
  properties?: {
976
- message?: Uint8Array<ArrayBufferLike>;
976
+ message?: Uint8Array;
977
977
  sender_peer_id?: number;
978
978
  };
979
979
  }>]>;
@@ -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<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
998
+ user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
999
999
  peers: z.ZodArray<z.ZodObject<{
1000
1000
  id: z.ZodNumber;
1001
1001
  user_id: z.ZodString;
1002
- user_data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1002
+ user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
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<ArrayBufferLike>;
1064
+ user_data?: Uint8Array;
1065
1065
  medias?: {
1066
1066
  id?: number;
1067
1067
  paused?: boolean;
@@ -1079,7 +1079,7 @@ export declare const RoomNotificationsRpc: {
1079
1079
  }, {
1080
1080
  id?: number;
1081
1081
  user_id?: string;
1082
- user_data?: Uint8Array<ArrayBufferLike>;
1082
+ user_data?: Uint8Array;
1083
1083
  medias?: {
1084
1084
  id?: number;
1085
1085
  paused?: boolean;
@@ -1097,12 +1097,12 @@ export declare const RoomNotificationsRpc: {
1097
1097
  }>, "many">;
1098
1098
  }, "strip", z.ZodTypeAny, {
1099
1099
  id?: string;
1100
- user_data?: Uint8Array<ArrayBufferLike>;
1100
+ user_data?: Uint8Array;
1101
1101
  customer?: string;
1102
1102
  peers?: {
1103
1103
  id?: number;
1104
1104
  user_id?: string;
1105
- user_data?: Uint8Array<ArrayBufferLike>;
1105
+ user_data?: Uint8Array;
1106
1106
  medias?: {
1107
1107
  id?: number;
1108
1108
  paused?: boolean;
@@ -1120,12 +1120,12 @@ export declare const RoomNotificationsRpc: {
1120
1120
  }[];
1121
1121
  }, {
1122
1122
  id?: string;
1123
- user_data?: Uint8Array<ArrayBufferLike>;
1123
+ user_data?: Uint8Array;
1124
1124
  customer?: string;
1125
1125
  peers?: {
1126
1126
  id?: number;
1127
1127
  user_id?: string;
1128
- user_data?: Uint8Array<ArrayBufferLike>;
1128
+ user_data?: Uint8Array;
1129
1129
  medias?: {
1130
1130
  id?: number;
1131
1131
  paused?: boolean;
@@ -1148,12 +1148,12 @@ export declare const RoomNotificationsRpc: {
1148
1148
  kind?: "Joined";
1149
1149
  room?: {
1150
1150
  id?: string;
1151
- user_data?: Uint8Array<ArrayBufferLike>;
1151
+ user_data?: Uint8Array;
1152
1152
  customer?: string;
1153
1153
  peers?: {
1154
1154
  id?: number;
1155
1155
  user_id?: string;
1156
- user_data?: Uint8Array<ArrayBufferLike>;
1156
+ user_data?: Uint8Array;
1157
1157
  medias?: {
1158
1158
  id?: number;
1159
1159
  paused?: boolean;
@@ -1176,12 +1176,12 @@ export declare const RoomNotificationsRpc: {
1176
1176
  kind?: "Joined";
1177
1177
  room?: {
1178
1178
  id?: string;
1179
- user_data?: Uint8Array<ArrayBufferLike>;
1179
+ user_data?: Uint8Array;
1180
1180
  customer?: string;
1181
1181
  peers?: {
1182
1182
  id?: number;
1183
1183
  user_id?: string;
1184
- user_data?: Uint8Array<ArrayBufferLike>;
1184
+ user_data?: Uint8Array;
1185
1185
  medias?: {
1186
1186
  id?: number;
1187
1187
  paused?: boolean;
@@ -1211,19 +1211,19 @@ export declare const RoomNotificationsRpc: {
1211
1211
  kind?: "Left";
1212
1212
  }>, z.ZodObject<{
1213
1213
  kind: z.ZodLiteral<"UserDataChanged">;
1214
- user_data: z.ZodOptional<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>>;
1214
+ user_data: z.ZodOptional<z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>>;
1215
1215
  }, "strip", z.ZodTypeAny, {
1216
1216
  kind?: "UserDataChanged";
1217
- user_data?: Uint8Array<ArrayBufferLike>;
1217
+ user_data?: Uint8Array;
1218
1218
  }, {
1219
1219
  kind?: "UserDataChanged";
1220
- user_data?: Uint8Array<ArrayBufferLike>;
1220
+ user_data?: Uint8Array;
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<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1226
+ user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
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<ArrayBufferLike>;
1288
+ user_data?: Uint8Array;
1289
1289
  medias?: {
1290
1290
  id?: number;
1291
1291
  paused?: boolean;
@@ -1303,7 +1303,7 @@ export declare const RoomNotificationsRpc: {
1303
1303
  }, {
1304
1304
  id?: number;
1305
1305
  user_id?: string;
1306
- user_data?: Uint8Array<ArrayBufferLike>;
1306
+ user_data?: Uint8Array;
1307
1307
  medias?: {
1308
1308
  id?: number;
1309
1309
  paused?: boolean;
@@ -1324,7 +1324,7 @@ export declare const RoomNotificationsRpc: {
1324
1324
  peer?: {
1325
1325
  id?: number;
1326
1326
  user_id?: string;
1327
- user_data?: Uint8Array<ArrayBufferLike>;
1327
+ user_data?: Uint8Array;
1328
1328
  medias?: {
1329
1329
  id?: number;
1330
1330
  paused?: boolean;
@@ -1345,7 +1345,7 @@ export declare const RoomNotificationsRpc: {
1345
1345
  peer?: {
1346
1346
  id?: number;
1347
1347
  user_id?: string;
1348
- user_data?: Uint8Array<ArrayBufferLike>;
1348
+ user_data?: Uint8Array;
1349
1349
  medias?: {
1350
1350
  id?: number;
1351
1351
  paused?: boolean;
@@ -1376,12 +1376,12 @@ export declare const RoomNotificationsRpc: {
1376
1376
  kind?: "Joined";
1377
1377
  room?: {
1378
1378
  id?: string;
1379
- user_data?: Uint8Array<ArrayBufferLike>;
1379
+ user_data?: Uint8Array;
1380
1380
  customer?: string;
1381
1381
  peers?: {
1382
1382
  id?: number;
1383
1383
  user_id?: string;
1384
- user_data?: Uint8Array<ArrayBufferLike>;
1384
+ user_data?: Uint8Array;
1385
1385
  medias?: {
1386
1386
  id?: number;
1387
1387
  paused?: boolean;
@@ -1405,13 +1405,13 @@ export declare const RoomNotificationsRpc: {
1405
1405
  kind?: "Left";
1406
1406
  } | {
1407
1407
  kind?: "UserDataChanged";
1408
- user_data?: Uint8Array<ArrayBufferLike>;
1408
+ user_data?: Uint8Array;
1409
1409
  } | {
1410
1410
  kind?: "PeerJoined";
1411
1411
  peer?: {
1412
1412
  id?: number;
1413
1413
  user_id?: string;
1414
- user_data?: Uint8Array<ArrayBufferLike>;
1414
+ user_data?: Uint8Array;
1415
1415
  medias?: {
1416
1416
  id?: number;
1417
1417
  paused?: boolean;
@@ -1436,12 +1436,12 @@ export declare const RoomNotificationsRpc: {
1436
1436
  kind?: "Joined";
1437
1437
  room?: {
1438
1438
  id?: string;
1439
- user_data?: Uint8Array<ArrayBufferLike>;
1439
+ user_data?: Uint8Array;
1440
1440
  customer?: string;
1441
1441
  peers?: {
1442
1442
  id?: number;
1443
1443
  user_id?: string;
1444
- user_data?: Uint8Array<ArrayBufferLike>;
1444
+ user_data?: Uint8Array;
1445
1445
  medias?: {
1446
1446
  id?: number;
1447
1447
  paused?: boolean;
@@ -1465,13 +1465,13 @@ export declare const RoomNotificationsRpc: {
1465
1465
  kind?: "Left";
1466
1466
  } | {
1467
1467
  kind?: "UserDataChanged";
1468
- user_data?: Uint8Array<ArrayBufferLike>;
1468
+ user_data?: Uint8Array;
1469
1469
  } | {
1470
1470
  kind?: "PeerJoined";
1471
1471
  peer?: {
1472
1472
  id?: number;
1473
1473
  user_id?: string;
1474
- user_data?: Uint8Array<ArrayBufferLike>;
1474
+ user_data?: Uint8Array;
1475
1475
  medias?: {
1476
1476
  id?: number;
1477
1477
  paused?: boolean;
@@ -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<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1498
+ user_data: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
1499
1499
  }, "strip", z.ZodTypeAny, {
1500
1500
  kind?: "UserDataChanged";
1501
- user_data?: Uint8Array<ArrayBufferLike>;
1501
+ user_data?: Uint8Array;
1502
1502
  peer_id?: number;
1503
1503
  }, {
1504
1504
  kind?: "UserDataChanged";
1505
- user_data?: Uint8Array<ArrayBufferLike>;
1505
+ user_data?: Uint8Array;
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<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1617
+ message: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
1618
1618
  }, "strip", z.ZodTypeAny, {
1619
- message?: Uint8Array<ArrayBufferLike>;
1619
+ message?: Uint8Array;
1620
1620
  sender_peer_id?: number;
1621
1621
  }, {
1622
- message?: Uint8Array<ArrayBufferLike>;
1622
+ message?: Uint8Array;
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<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
4
+ message: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
5
5
  }, "strip", z.ZodTypeAny, {
6
- message?: Uint8Array<ArrayBufferLike>;
6
+ message?: Uint8Array;
7
7
  sender_peer_id?: number;
8
8
  }, {
9
- message?: Uint8Array<ArrayBufferLike>;
9
+ message?: Uint8Array;
10
10
  sender_peer_id?: number;
11
11
  }>;
12
12
  export type MessageReceived = z.infer<typeof MessageReceivedSchema>;