@cloudflare/realtimekit 1.2.4-staging.7 → 1.2.4-staging.9
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/dist/ClientMock.cjs.js +2 -2
- package/dist/ClientMock.es.js +202 -177
- package/dist/EncryptionManager.d.ts +47 -11
- package/dist/browser.js +12 -12
- package/dist/dependencies.txt +2 -2
- package/dist/index.cjs.js +11 -11
- package/dist/index.d.ts +47 -11
- package/dist/index.es.js +3017 -2955
- package/dist/index.es5.js +4992 -4960
- package/dist/index.rn.js +10 -10
- package/dist/ts3.4/dist/EncryptionManager.d.ts +47 -11
- package/dist/ts3.4/dist/index.d.ts +47 -11
- package/package.json +2 -2
package/dist/ClientMock.es.js
CHANGED
|
@@ -14,7 +14,7 @@ var y = (e, s, a) => (qe(e, typeof s != "symbol" ? s + "" : s, a), a), cn = (e,
|
|
|
14
14
|
if (!s.has(e))
|
|
15
15
|
throw TypeError("Cannot " + a);
|
|
16
16
|
};
|
|
17
|
-
var
|
|
17
|
+
var W = (e, s, a) => (cn(e, s, "read from private field"), a ? a.call(e) : s.get(e)), ne = (e, s, a) => {
|
|
18
18
|
if (s.has(e))
|
|
19
19
|
throw TypeError("Cannot add the same private member more than once");
|
|
20
20
|
s instanceof WeakSet ? s.add(e) : s.set(e, a);
|
|
@@ -456,20 +456,20 @@ function At(e) {
|
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
var U = [], Z = !1,
|
|
459
|
+
var U = [], Z = !1, F, me = -1;
|
|
460
460
|
function It() {
|
|
461
|
-
!Z || !
|
|
461
|
+
!Z || !F || (Z = !1, F.length ? U = F.concat(U) : me = -1, U.length && On());
|
|
462
462
|
}
|
|
463
463
|
function On() {
|
|
464
464
|
if (!Z) {
|
|
465
465
|
var e = xn(It);
|
|
466
466
|
Z = !0;
|
|
467
467
|
for (var s = U.length; s; ) {
|
|
468
|
-
for (
|
|
469
|
-
|
|
468
|
+
for (F = U, U = []; ++me < s; )
|
|
469
|
+
F && F[me].run();
|
|
470
470
|
me = -1, s = U.length;
|
|
471
471
|
}
|
|
472
|
-
|
|
472
|
+
F = null, Z = !1, At(e);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
C.nextTick = function(e) {
|
|
@@ -4890,8 +4890,31 @@ class _a extends o {
|
|
|
4890
4890
|
]);
|
|
4891
4891
|
}
|
|
4892
4892
|
}
|
|
4893
|
-
const
|
|
4893
|
+
const j = new _a();
|
|
4894
4894
|
class wa extends o {
|
|
4895
|
+
constructor() {
|
|
4896
|
+
super("socket.chat.GetPaginatedChatMessageFilters", [
|
|
4897
|
+
{
|
|
4898
|
+
no: 1,
|
|
4899
|
+
name: "pinned",
|
|
4900
|
+
kind: "scalar",
|
|
4901
|
+
oneof: "filters",
|
|
4902
|
+
T: 8
|
|
4903
|
+
/*ScalarType.BOOL*/
|
|
4904
|
+
},
|
|
4905
|
+
{
|
|
4906
|
+
no: 2,
|
|
4907
|
+
name: "user_id",
|
|
4908
|
+
kind: "scalar",
|
|
4909
|
+
oneof: "filters",
|
|
4910
|
+
T: 9
|
|
4911
|
+
/*ScalarType.STRING*/
|
|
4912
|
+
}
|
|
4913
|
+
]);
|
|
4914
|
+
}
|
|
4915
|
+
}
|
|
4916
|
+
const Pa = new wa();
|
|
4917
|
+
class Ca extends o {
|
|
4895
4918
|
constructor() {
|
|
4896
4919
|
super("socket.chat.GetPaginatedChatMessageRoomRequest", [
|
|
4897
4920
|
{
|
|
@@ -4930,15 +4953,16 @@ class wa extends o {
|
|
|
4930
4953
|
opt: !0,
|
|
4931
4954
|
T: 9
|
|
4932
4955
|
/*ScalarType.STRING*/
|
|
4933
|
-
}
|
|
4956
|
+
},
|
|
4957
|
+
{ no: 6, name: "filters", kind: "message", T: () => Pa }
|
|
4934
4958
|
]);
|
|
4935
4959
|
}
|
|
4936
4960
|
}
|
|
4937
|
-
new
|
|
4938
|
-
class
|
|
4961
|
+
new Ca();
|
|
4962
|
+
class Ea extends o {
|
|
4939
4963
|
constructor() {
|
|
4940
4964
|
super("socket.chat.GetPaginatedChatMessageRoomResponse", [
|
|
4941
|
-
{ no: 1, name: "messages", kind: "message", repeat: 1, T: () =>
|
|
4965
|
+
{ no: 1, name: "messages", kind: "message", repeat: 1, T: () => j },
|
|
4942
4966
|
{
|
|
4943
4967
|
no: 2,
|
|
4944
4968
|
name: "next",
|
|
@@ -4949,16 +4973,16 @@ class Pa extends o {
|
|
|
4949
4973
|
]);
|
|
4950
4974
|
}
|
|
4951
4975
|
}
|
|
4952
|
-
new
|
|
4953
|
-
class
|
|
4976
|
+
new Ea();
|
|
4977
|
+
class Sa extends o {
|
|
4954
4978
|
constructor() {
|
|
4955
4979
|
super("socket.chat.GetChatMessagesResponse", [
|
|
4956
|
-
{ no: 1, name: "messages", kind: "message", repeat: 1, T: () =>
|
|
4980
|
+
{ no: 1, name: "messages", kind: "message", repeat: 1, T: () => j }
|
|
4957
4981
|
]);
|
|
4958
4982
|
}
|
|
4959
4983
|
}
|
|
4960
|
-
new
|
|
4961
|
-
class
|
|
4984
|
+
new Sa();
|
|
4985
|
+
class ba extends o {
|
|
4962
4986
|
constructor() {
|
|
4963
4987
|
super("socket.chat.SendChatMessageToRoomRequest", [
|
|
4964
4988
|
{
|
|
@@ -4978,16 +5002,16 @@ class Ea extends o {
|
|
|
4978
5002
|
]);
|
|
4979
5003
|
}
|
|
4980
5004
|
}
|
|
4981
|
-
new
|
|
4982
|
-
class
|
|
5005
|
+
new ba();
|
|
5006
|
+
class La extends o {
|
|
4983
5007
|
constructor() {
|
|
4984
5008
|
super("socket.chat.SendChatMessageToRoomResponse", [
|
|
4985
|
-
{ no: 1, name: "message", kind: "message", T: () =>
|
|
5009
|
+
{ no: 1, name: "message", kind: "message", T: () => j }
|
|
4986
5010
|
]);
|
|
4987
5011
|
}
|
|
4988
5012
|
}
|
|
4989
|
-
new
|
|
4990
|
-
class
|
|
5013
|
+
new La();
|
|
5014
|
+
class xa extends o {
|
|
4991
5015
|
constructor() {
|
|
4992
5016
|
super("socket.chat.SendChatMessageToPeersRequest", [
|
|
4993
5017
|
{
|
|
@@ -5015,16 +5039,16 @@ class ba extends o {
|
|
|
5015
5039
|
]);
|
|
5016
5040
|
}
|
|
5017
5041
|
}
|
|
5018
|
-
new
|
|
5019
|
-
class
|
|
5042
|
+
new xa();
|
|
5043
|
+
class Oa extends o {
|
|
5020
5044
|
constructor() {
|
|
5021
5045
|
super("socket.chat.SendChatMessageToPeersResponse", [
|
|
5022
|
-
{ no: 1, name: "message", kind: "message", T: () =>
|
|
5046
|
+
{ no: 1, name: "message", kind: "message", T: () => j }
|
|
5023
5047
|
]);
|
|
5024
5048
|
}
|
|
5025
5049
|
}
|
|
5026
|
-
new
|
|
5027
|
-
class
|
|
5050
|
+
new Oa();
|
|
5051
|
+
class Ma extends o {
|
|
5028
5052
|
constructor() {
|
|
5029
5053
|
super("socket.chat.SendChatMessageToChannelRequest", [
|
|
5030
5054
|
{
|
|
@@ -5051,16 +5075,16 @@ class xa extends o {
|
|
|
5051
5075
|
]);
|
|
5052
5076
|
}
|
|
5053
5077
|
}
|
|
5054
|
-
new
|
|
5055
|
-
class
|
|
5078
|
+
new Ma();
|
|
5079
|
+
class qa extends o {
|
|
5056
5080
|
constructor() {
|
|
5057
5081
|
super("socket.chat.SendChatMessageToChannelResponse", [
|
|
5058
|
-
{ no: 1, name: "message", kind: "message", T: () =>
|
|
5082
|
+
{ no: 1, name: "message", kind: "message", T: () => j }
|
|
5059
5083
|
]);
|
|
5060
5084
|
}
|
|
5061
5085
|
}
|
|
5062
|
-
new
|
|
5063
|
-
class
|
|
5086
|
+
new qa();
|
|
5087
|
+
class $a extends o {
|
|
5064
5088
|
constructor() {
|
|
5065
5089
|
super("socket.chat.EditChatMessageRequest", [
|
|
5066
5090
|
{
|
|
@@ -5105,8 +5129,8 @@ class Ma extends o {
|
|
|
5105
5129
|
]);
|
|
5106
5130
|
}
|
|
5107
5131
|
}
|
|
5108
|
-
new
|
|
5109
|
-
class
|
|
5132
|
+
new $a();
|
|
5133
|
+
class Na extends o {
|
|
5110
5134
|
constructor() {
|
|
5111
5135
|
super("socket.chat.PinChatMessageRequest", [
|
|
5112
5136
|
{
|
|
@@ -5134,8 +5158,8 @@ class qa extends o {
|
|
|
5134
5158
|
]);
|
|
5135
5159
|
}
|
|
5136
5160
|
}
|
|
5137
|
-
new
|
|
5138
|
-
class
|
|
5161
|
+
new Na();
|
|
5162
|
+
class Aa extends o {
|
|
5139
5163
|
constructor() {
|
|
5140
5164
|
super("socket.chat.PinChatMessageResponse", [
|
|
5141
5165
|
{
|
|
@@ -5159,20 +5183,21 @@ class $a extends o {
|
|
|
5159
5183
|
opt: !0,
|
|
5160
5184
|
T: 9
|
|
5161
5185
|
/*ScalarType.STRING*/
|
|
5162
|
-
}
|
|
5186
|
+
},
|
|
5187
|
+
{ no: 4, name: "message", kind: "message", T: () => j }
|
|
5163
5188
|
]);
|
|
5164
5189
|
}
|
|
5165
5190
|
}
|
|
5166
|
-
new
|
|
5167
|
-
class
|
|
5191
|
+
new Aa();
|
|
5192
|
+
class Ia extends o {
|
|
5168
5193
|
constructor() {
|
|
5169
5194
|
super("socket.chat.EditChatMessageResponse", [
|
|
5170
|
-
{ no: 1, name: "message", kind: "message", T: () =>
|
|
5195
|
+
{ no: 1, name: "message", kind: "message", T: () => j }
|
|
5171
5196
|
]);
|
|
5172
5197
|
}
|
|
5173
5198
|
}
|
|
5174
|
-
new
|
|
5175
|
-
class
|
|
5199
|
+
new Ia();
|
|
5200
|
+
class Da extends o {
|
|
5176
5201
|
constructor() {
|
|
5177
5202
|
super("socket.chat.DeleteChatMessageRequest", [
|
|
5178
5203
|
{
|
|
@@ -5193,8 +5218,8 @@ class Aa extends o {
|
|
|
5193
5218
|
]);
|
|
5194
5219
|
}
|
|
5195
5220
|
}
|
|
5196
|
-
new
|
|
5197
|
-
class
|
|
5221
|
+
new Da();
|
|
5222
|
+
class Ua extends o {
|
|
5198
5223
|
constructor() {
|
|
5199
5224
|
super("socket.chat.DeleteChatMessageResponse", [
|
|
5200
5225
|
{
|
|
@@ -5215,8 +5240,8 @@ class Ia extends o {
|
|
|
5215
5240
|
]);
|
|
5216
5241
|
}
|
|
5217
5242
|
}
|
|
5218
|
-
new
|
|
5219
|
-
class
|
|
5243
|
+
new Ua();
|
|
5244
|
+
class Ba extends o {
|
|
5220
5245
|
constructor() {
|
|
5221
5246
|
super("socket.chat.SearchChatMessagesRequest", [
|
|
5222
5247
|
{
|
|
@@ -5266,8 +5291,8 @@ class Da extends o {
|
|
|
5266
5291
|
]);
|
|
5267
5292
|
}
|
|
5268
5293
|
}
|
|
5269
|
-
new
|
|
5270
|
-
class
|
|
5294
|
+
new Ba();
|
|
5295
|
+
class Ga extends o {
|
|
5271
5296
|
constructor() {
|
|
5272
5297
|
super("socket.chat.MarkChannelIndexAsReadRequest", [
|
|
5273
5298
|
{
|
|
@@ -5294,8 +5319,8 @@ class Ua extends o {
|
|
|
5294
5319
|
]);
|
|
5295
5320
|
}
|
|
5296
5321
|
}
|
|
5297
|
-
new
|
|
5298
|
-
class
|
|
5322
|
+
new Ga();
|
|
5323
|
+
class ja extends o {
|
|
5299
5324
|
constructor() {
|
|
5300
5325
|
super("socket.chat.MarkChannelIndexAsReadResponse", [
|
|
5301
5326
|
{
|
|
@@ -5308,8 +5333,8 @@ class Ba extends o {
|
|
|
5308
5333
|
]);
|
|
5309
5334
|
}
|
|
5310
5335
|
}
|
|
5311
|
-
new
|
|
5312
|
-
class
|
|
5336
|
+
new ja();
|
|
5337
|
+
class Wa extends o {
|
|
5313
5338
|
constructor() {
|
|
5314
5339
|
super("socket.chat.CreateChatChannelRequest", [
|
|
5315
5340
|
{
|
|
@@ -5352,8 +5377,8 @@ class Ga extends o {
|
|
|
5352
5377
|
]);
|
|
5353
5378
|
}
|
|
5354
5379
|
}
|
|
5355
|
-
new
|
|
5356
|
-
class
|
|
5380
|
+
new Wa();
|
|
5381
|
+
class Fa extends o {
|
|
5357
5382
|
constructor() {
|
|
5358
5383
|
super("socket.chat.UpdateChatChannelRequest", [
|
|
5359
5384
|
{
|
|
@@ -5406,8 +5431,8 @@ class ja extends o {
|
|
|
5406
5431
|
]);
|
|
5407
5432
|
}
|
|
5408
5433
|
}
|
|
5409
|
-
new
|
|
5410
|
-
class
|
|
5434
|
+
new Fa();
|
|
5435
|
+
class Ka extends o {
|
|
5411
5436
|
constructor() {
|
|
5412
5437
|
super("socket.chat.CreateChatChannelResponse", [
|
|
5413
5438
|
{
|
|
@@ -5420,8 +5445,8 @@ class Wa extends o {
|
|
|
5420
5445
|
]);
|
|
5421
5446
|
}
|
|
5422
5447
|
}
|
|
5423
|
-
new
|
|
5424
|
-
class
|
|
5448
|
+
new Ka();
|
|
5449
|
+
class Va extends o {
|
|
5425
5450
|
constructor() {
|
|
5426
5451
|
super("socket.chat.GetChatChannelRequest", [
|
|
5427
5452
|
{
|
|
@@ -5434,11 +5459,11 @@ class Fa extends o {
|
|
|
5434
5459
|
]);
|
|
5435
5460
|
}
|
|
5436
5461
|
}
|
|
5437
|
-
new
|
|
5438
|
-
class
|
|
5462
|
+
new Va();
|
|
5463
|
+
class Ha extends o {
|
|
5439
5464
|
constructor() {
|
|
5440
5465
|
super("socket.chat.LatestMessageAndUnreadCount", [
|
|
5441
|
-
{ no: 1, name: "message", kind: "message", T: () =>
|
|
5466
|
+
{ no: 1, name: "message", kind: "message", T: () => j },
|
|
5442
5467
|
{
|
|
5443
5468
|
no: 2,
|
|
5444
5469
|
name: "unread_count",
|
|
@@ -5450,8 +5475,8 @@ class Ka extends o {
|
|
|
5450
5475
|
]);
|
|
5451
5476
|
}
|
|
5452
5477
|
}
|
|
5453
|
-
const
|
|
5454
|
-
class
|
|
5478
|
+
const Ja = new Ha();
|
|
5479
|
+
class Za extends o {
|
|
5455
5480
|
constructor() {
|
|
5456
5481
|
super("socket.chat.ChatChannel", [
|
|
5457
5482
|
{
|
|
@@ -5490,7 +5515,7 @@ class Ha extends o {
|
|
|
5490
5515
|
T: 8
|
|
5491
5516
|
/*ScalarType.BOOL*/
|
|
5492
5517
|
},
|
|
5493
|
-
{ no: 6, name: "latest_message_and_unread_count", kind: "message", T: () =>
|
|
5518
|
+
{ no: 6, name: "latest_message_and_unread_count", kind: "message", T: () => Ja },
|
|
5494
5519
|
{
|
|
5495
5520
|
no: 7,
|
|
5496
5521
|
name: "target_user_ids",
|
|
@@ -5502,16 +5527,16 @@ class Ha extends o {
|
|
|
5502
5527
|
]);
|
|
5503
5528
|
}
|
|
5504
5529
|
}
|
|
5505
|
-
const
|
|
5506
|
-
class
|
|
5530
|
+
const za = new Za();
|
|
5531
|
+
class Ya extends o {
|
|
5507
5532
|
constructor() {
|
|
5508
5533
|
super("socket.chat.GetChatChannelResponse", [
|
|
5509
|
-
{ no: 1, name: "chat_channels", kind: "message", repeat: 1, T: () =>
|
|
5534
|
+
{ no: 1, name: "chat_channels", kind: "message", repeat: 1, T: () => za }
|
|
5510
5535
|
]);
|
|
5511
5536
|
}
|
|
5512
5537
|
}
|
|
5513
|
-
new
|
|
5514
|
-
class
|
|
5538
|
+
new Ya();
|
|
5539
|
+
class Qa extends o {
|
|
5515
5540
|
constructor() {
|
|
5516
5541
|
super("socket.chat.ChannelMember", [
|
|
5517
5542
|
{
|
|
@@ -5547,16 +5572,16 @@ class za extends o {
|
|
|
5547
5572
|
]);
|
|
5548
5573
|
}
|
|
5549
5574
|
}
|
|
5550
|
-
const
|
|
5551
|
-
class
|
|
5575
|
+
const Xa = new Qa();
|
|
5576
|
+
class ei extends o {
|
|
5552
5577
|
constructor() {
|
|
5553
5578
|
super("socket.chat.GetChatChannelMembersResponse", [
|
|
5554
|
-
{ no: 1, name: "channel_members", kind: "message", repeat: 1, T: () =>
|
|
5579
|
+
{ no: 1, name: "channel_members", kind: "message", repeat: 1, T: () => Xa }
|
|
5555
5580
|
]);
|
|
5556
5581
|
}
|
|
5557
5582
|
}
|
|
5558
|
-
new
|
|
5559
|
-
class
|
|
5583
|
+
new ei();
|
|
5584
|
+
class ni extends o {
|
|
5560
5585
|
constructor() {
|
|
5561
5586
|
super("socket.plugin.AddPluginRequest", [
|
|
5562
5587
|
{
|
|
@@ -5576,8 +5601,8 @@ class Xa extends o {
|
|
|
5576
5601
|
]);
|
|
5577
5602
|
}
|
|
5578
5603
|
}
|
|
5579
|
-
new
|
|
5580
|
-
class
|
|
5604
|
+
new ni();
|
|
5605
|
+
class ti extends o {
|
|
5581
5606
|
constructor() {
|
|
5582
5607
|
super("socket.plugin.RemovePluginRequest", [
|
|
5583
5608
|
{
|
|
@@ -5597,8 +5622,8 @@ class ei extends o {
|
|
|
5597
5622
|
]);
|
|
5598
5623
|
}
|
|
5599
5624
|
}
|
|
5600
|
-
new
|
|
5601
|
-
class
|
|
5625
|
+
new ti();
|
|
5626
|
+
class si extends o {
|
|
5602
5627
|
constructor() {
|
|
5603
5628
|
super("socket.plugin.EnablePluginForRoomRequest", [
|
|
5604
5629
|
{
|
|
@@ -5611,8 +5636,8 @@ class ni extends o {
|
|
|
5611
5636
|
]);
|
|
5612
5637
|
}
|
|
5613
5638
|
}
|
|
5614
|
-
new
|
|
5615
|
-
class
|
|
5639
|
+
new si();
|
|
5640
|
+
class ri extends o {
|
|
5616
5641
|
constructor() {
|
|
5617
5642
|
super("socket.plugin.DisablePluginForRoomRequest", [
|
|
5618
5643
|
{
|
|
@@ -5625,8 +5650,8 @@ class ti extends o {
|
|
|
5625
5650
|
]);
|
|
5626
5651
|
}
|
|
5627
5652
|
}
|
|
5628
|
-
new
|
|
5629
|
-
class
|
|
5653
|
+
new ri();
|
|
5654
|
+
class oi extends o {
|
|
5630
5655
|
constructor() {
|
|
5631
5656
|
super("socket.plugin.EnablePluginForPeersRequest", [
|
|
5632
5657
|
{
|
|
@@ -5647,8 +5672,8 @@ class si extends o {
|
|
|
5647
5672
|
]);
|
|
5648
5673
|
}
|
|
5649
5674
|
}
|
|
5650
|
-
new
|
|
5651
|
-
class
|
|
5675
|
+
new oi();
|
|
5676
|
+
class ai extends o {
|
|
5652
5677
|
constructor() {
|
|
5653
5678
|
super("socket.plugin.DisablePluginForPeersRequest", [
|
|
5654
5679
|
{
|
|
@@ -5669,8 +5694,8 @@ class ri extends o {
|
|
|
5669
5694
|
]);
|
|
5670
5695
|
}
|
|
5671
5696
|
}
|
|
5672
|
-
new
|
|
5673
|
-
class
|
|
5697
|
+
new ai();
|
|
5698
|
+
class ii extends o {
|
|
5674
5699
|
constructor() {
|
|
5675
5700
|
super("socket.plugin.PluginEventToRoomRequest", [
|
|
5676
5701
|
{
|
|
@@ -5690,8 +5715,8 @@ class oi extends o {
|
|
|
5690
5715
|
]);
|
|
5691
5716
|
}
|
|
5692
5717
|
}
|
|
5693
|
-
new
|
|
5694
|
-
class
|
|
5718
|
+
new ii();
|
|
5719
|
+
class ci extends o {
|
|
5695
5720
|
constructor() {
|
|
5696
5721
|
super("socket.plugin.PluginEventToPeersRequest", [
|
|
5697
5722
|
{
|
|
@@ -5719,8 +5744,8 @@ class ai extends o {
|
|
|
5719
5744
|
]);
|
|
5720
5745
|
}
|
|
5721
5746
|
}
|
|
5722
|
-
new
|
|
5723
|
-
class
|
|
5747
|
+
new ci();
|
|
5748
|
+
class di extends o {
|
|
5724
5749
|
constructor() {
|
|
5725
5750
|
super("socket.plugin.StoreKeys", [
|
|
5726
5751
|
{
|
|
@@ -5741,8 +5766,8 @@ class ii extends o {
|
|
|
5741
5766
|
]);
|
|
5742
5767
|
}
|
|
5743
5768
|
}
|
|
5744
|
-
const ze = new
|
|
5745
|
-
class
|
|
5769
|
+
const ze = new di();
|
|
5770
|
+
class ui extends o {
|
|
5746
5771
|
constructor() {
|
|
5747
5772
|
super("socket.plugin.PluginStoreInsertKeysRequest", [
|
|
5748
5773
|
{
|
|
@@ -5763,8 +5788,8 @@ class ci extends o {
|
|
|
5763
5788
|
]);
|
|
5764
5789
|
}
|
|
5765
5790
|
}
|
|
5766
|
-
new
|
|
5767
|
-
class
|
|
5791
|
+
new ui();
|
|
5792
|
+
class pi extends o {
|
|
5768
5793
|
constructor() {
|
|
5769
5794
|
super("socket.plugin.PluginStoreGetKeysRequest", [
|
|
5770
5795
|
{
|
|
@@ -5785,8 +5810,8 @@ class di extends o {
|
|
|
5785
5810
|
]);
|
|
5786
5811
|
}
|
|
5787
5812
|
}
|
|
5788
|
-
new
|
|
5789
|
-
class
|
|
5813
|
+
new pi();
|
|
5814
|
+
class li extends o {
|
|
5790
5815
|
constructor() {
|
|
5791
5816
|
super("socket.plugin.PluginStoreDeleteKeysRequest", [
|
|
5792
5817
|
{
|
|
@@ -5807,8 +5832,8 @@ class ui extends o {
|
|
|
5807
5832
|
]);
|
|
5808
5833
|
}
|
|
5809
5834
|
}
|
|
5810
|
-
new
|
|
5811
|
-
class
|
|
5835
|
+
new li();
|
|
5836
|
+
class mi extends o {
|
|
5812
5837
|
constructor() {
|
|
5813
5838
|
super("socket.plugin.PluginStoreDeleteRequest", [
|
|
5814
5839
|
{
|
|
@@ -5828,8 +5853,8 @@ class pi extends o {
|
|
|
5828
5853
|
]);
|
|
5829
5854
|
}
|
|
5830
5855
|
}
|
|
5831
|
-
new
|
|
5832
|
-
class
|
|
5856
|
+
new mi();
|
|
5857
|
+
class Ti extends o {
|
|
5833
5858
|
constructor() {
|
|
5834
5859
|
super("socket.plugin.EnablePluginResponse", [
|
|
5835
5860
|
{
|
|
@@ -5849,16 +5874,16 @@ class li extends o {
|
|
|
5849
5874
|
]);
|
|
5850
5875
|
}
|
|
5851
5876
|
}
|
|
5852
|
-
const
|
|
5853
|
-
class
|
|
5877
|
+
const fi = new Ti();
|
|
5878
|
+
class hi extends o {
|
|
5854
5879
|
constructor() {
|
|
5855
5880
|
super("socket.plugin.EnablePluginsResponse", [
|
|
5856
|
-
{ no: 1, name: "plugins", kind: "message", repeat: 1, T: () =>
|
|
5881
|
+
{ no: 1, name: "plugins", kind: "message", repeat: 1, T: () => fi }
|
|
5857
5882
|
]);
|
|
5858
5883
|
}
|
|
5859
5884
|
}
|
|
5860
|
-
new
|
|
5861
|
-
class
|
|
5885
|
+
new hi();
|
|
5886
|
+
class ki extends o {
|
|
5862
5887
|
constructor() {
|
|
5863
5888
|
super("socket.plugin.DisablePluginResponse", [
|
|
5864
5889
|
{
|
|
@@ -5878,8 +5903,8 @@ class fi extends o {
|
|
|
5878
5903
|
]);
|
|
5879
5904
|
}
|
|
5880
5905
|
}
|
|
5881
|
-
new
|
|
5882
|
-
class
|
|
5906
|
+
new ki();
|
|
5907
|
+
class gi extends o {
|
|
5883
5908
|
constructor() {
|
|
5884
5909
|
super("socket.plugin.PluginStoreItem", [
|
|
5885
5910
|
{
|
|
@@ -5913,8 +5938,8 @@ class hi extends o {
|
|
|
5913
5938
|
]);
|
|
5914
5939
|
}
|
|
5915
5940
|
}
|
|
5916
|
-
const
|
|
5917
|
-
class
|
|
5941
|
+
const yi = new gi();
|
|
5942
|
+
class vi extends o {
|
|
5918
5943
|
constructor() {
|
|
5919
5944
|
super("socket.plugin.PluginStoreResponse", [
|
|
5920
5945
|
{
|
|
@@ -5931,12 +5956,12 @@ class gi extends o {
|
|
|
5931
5956
|
T: 9
|
|
5932
5957
|
/*ScalarType.STRING*/
|
|
5933
5958
|
},
|
|
5934
|
-
{ no: 3, name: "store_items", kind: "message", repeat: 1, T: () =>
|
|
5959
|
+
{ no: 3, name: "store_items", kind: "message", repeat: 1, T: () => yi }
|
|
5935
5960
|
]);
|
|
5936
5961
|
}
|
|
5937
5962
|
}
|
|
5938
|
-
new
|
|
5939
|
-
class
|
|
5963
|
+
new vi();
|
|
5964
|
+
class Ri extends o {
|
|
5940
5965
|
constructor() {
|
|
5941
5966
|
super("socket.plugin.PluginEventResponse", [
|
|
5942
5967
|
{
|
|
@@ -5956,8 +5981,8 @@ class yi extends o {
|
|
|
5956
5981
|
]);
|
|
5957
5982
|
}
|
|
5958
5983
|
}
|
|
5959
|
-
new
|
|
5960
|
-
class
|
|
5984
|
+
new Ri();
|
|
5985
|
+
class _i extends o {
|
|
5961
5986
|
constructor() {
|
|
5962
5987
|
super("socket.livestreaming.LiveStreamingEvent", [
|
|
5963
5988
|
{
|
|
@@ -6034,8 +6059,8 @@ class vi extends o {
|
|
|
6034
6059
|
]);
|
|
6035
6060
|
}
|
|
6036
6061
|
}
|
|
6037
|
-
new
|
|
6038
|
-
class
|
|
6062
|
+
new _i();
|
|
6063
|
+
class wi extends o {
|
|
6039
6064
|
constructor() {
|
|
6040
6065
|
super("socket.livestreaming.GetStagePeersResponse", [
|
|
6041
6066
|
{
|
|
@@ -6049,8 +6074,8 @@ class Ri extends o {
|
|
|
6049
6074
|
]);
|
|
6050
6075
|
}
|
|
6051
6076
|
}
|
|
6052
|
-
new
|
|
6053
|
-
class
|
|
6077
|
+
new wi();
|
|
6078
|
+
class Pi extends o {
|
|
6054
6079
|
constructor() {
|
|
6055
6080
|
super("socket.livestreaming.StageRequest", [
|
|
6056
6081
|
{
|
|
@@ -6077,16 +6102,16 @@ class _i extends o {
|
|
|
6077
6102
|
]);
|
|
6078
6103
|
}
|
|
6079
6104
|
}
|
|
6080
|
-
const
|
|
6081
|
-
class
|
|
6105
|
+
const Ci = new Pi();
|
|
6106
|
+
class Ei extends o {
|
|
6082
6107
|
constructor() {
|
|
6083
6108
|
super("socket.livestreaming.GetStageRequestsResponse", [
|
|
6084
|
-
{ no: 1, name: "stage_requests", kind: "message", repeat: 1, T: () =>
|
|
6109
|
+
{ no: 1, name: "stage_requests", kind: "message", repeat: 1, T: () => Ci }
|
|
6085
6110
|
]);
|
|
6086
6111
|
}
|
|
6087
6112
|
}
|
|
6088
|
-
new
|
|
6089
|
-
class
|
|
6113
|
+
new Ei();
|
|
6114
|
+
class Si extends o {
|
|
6090
6115
|
constructor() {
|
|
6091
6116
|
super("socket.livestreaming.GrantStageAccessRequest", [
|
|
6092
6117
|
{
|
|
@@ -6100,8 +6125,8 @@ class Ci extends o {
|
|
|
6100
6125
|
]);
|
|
6101
6126
|
}
|
|
6102
6127
|
}
|
|
6103
|
-
new
|
|
6104
|
-
class
|
|
6128
|
+
new Si();
|
|
6129
|
+
class bi extends o {
|
|
6105
6130
|
constructor() {
|
|
6106
6131
|
super("socket.livestreaming.DenyStageAccessRequest", [
|
|
6107
6132
|
{
|
|
@@ -6115,8 +6140,8 @@ class Ei extends o {
|
|
|
6115
6140
|
]);
|
|
6116
6141
|
}
|
|
6117
6142
|
}
|
|
6118
|
-
new
|
|
6119
|
-
class
|
|
6143
|
+
new bi();
|
|
6144
|
+
class Li extends o {
|
|
6120
6145
|
constructor() {
|
|
6121
6146
|
super("socket.livestreaming.LeaveStageRequest", [
|
|
6122
6147
|
{
|
|
@@ -6130,8 +6155,8 @@ class Si extends o {
|
|
|
6130
6155
|
]);
|
|
6131
6156
|
}
|
|
6132
6157
|
}
|
|
6133
|
-
new
|
|
6134
|
-
class
|
|
6158
|
+
new Li();
|
|
6159
|
+
class xi extends o {
|
|
6135
6160
|
constructor() {
|
|
6136
6161
|
super("socket.polls.Poll", [
|
|
6137
6162
|
{
|
|
@@ -6162,7 +6187,7 @@ class bi extends o {
|
|
|
6162
6187
|
T: 9
|
|
6163
6188
|
/*ScalarType.STRING*/
|
|
6164
6189
|
},
|
|
6165
|
-
{ no: 5, name: "options", kind: "message", repeat: 1, T: () =>
|
|
6190
|
+
{ no: 5, name: "options", kind: "message", repeat: 1, T: () => Mi },
|
|
6166
6191
|
{
|
|
6167
6192
|
no: 6,
|
|
6168
6193
|
name: "hide_votes",
|
|
@@ -6188,8 +6213,8 @@ class bi extends o {
|
|
|
6188
6213
|
]);
|
|
6189
6214
|
}
|
|
6190
6215
|
}
|
|
6191
|
-
const Zn = new
|
|
6192
|
-
class
|
|
6216
|
+
const Zn = new xi();
|
|
6217
|
+
class Oi extends o {
|
|
6193
6218
|
constructor() {
|
|
6194
6219
|
super("socket.polls.PollOption", [
|
|
6195
6220
|
{
|
|
@@ -6208,12 +6233,12 @@ class Li extends o {
|
|
|
6208
6233
|
L: 2
|
|
6209
6234
|
/*LongType.NUMBER*/
|
|
6210
6235
|
},
|
|
6211
|
-
{ no: 3, name: "votes", kind: "message", repeat: 1, T: () =>
|
|
6236
|
+
{ no: 3, name: "votes", kind: "message", repeat: 1, T: () => $i }
|
|
6212
6237
|
]);
|
|
6213
6238
|
}
|
|
6214
6239
|
}
|
|
6215
|
-
const
|
|
6216
|
-
class
|
|
6240
|
+
const Mi = new Oi();
|
|
6241
|
+
class qi extends o {
|
|
6217
6242
|
constructor() {
|
|
6218
6243
|
super("socket.polls.PollVote", [
|
|
6219
6244
|
{
|
|
@@ -6233,8 +6258,8 @@ class Oi extends o {
|
|
|
6233
6258
|
]);
|
|
6234
6259
|
}
|
|
6235
6260
|
}
|
|
6236
|
-
const
|
|
6237
|
-
class
|
|
6261
|
+
const $i = new qi();
|
|
6262
|
+
class Ni extends o {
|
|
6238
6263
|
constructor() {
|
|
6239
6264
|
super("socket.polls.NewPollRequest", [
|
|
6240
6265
|
{
|
|
@@ -6285,8 +6310,8 @@ class qi extends o {
|
|
|
6285
6310
|
]);
|
|
6286
6311
|
}
|
|
6287
6312
|
}
|
|
6288
|
-
new
|
|
6289
|
-
class
|
|
6313
|
+
new Ni();
|
|
6314
|
+
class Ai extends o {
|
|
6290
6315
|
constructor() {
|
|
6291
6316
|
super("socket.polls.VotePollRequest", [
|
|
6292
6317
|
{
|
|
@@ -6307,24 +6332,24 @@ class $i extends o {
|
|
|
6307
6332
|
]);
|
|
6308
6333
|
}
|
|
6309
6334
|
}
|
|
6310
|
-
new
|
|
6311
|
-
class
|
|
6335
|
+
new Ai();
|
|
6336
|
+
class Ii extends o {
|
|
6312
6337
|
constructor() {
|
|
6313
6338
|
super("socket.polls.UpdatePollResponse", [
|
|
6314
6339
|
{ no: 1, name: "poll", kind: "message", T: () => Zn }
|
|
6315
6340
|
]);
|
|
6316
6341
|
}
|
|
6317
6342
|
}
|
|
6318
|
-
new
|
|
6319
|
-
class
|
|
6343
|
+
new Ii();
|
|
6344
|
+
class Di extends o {
|
|
6320
6345
|
constructor() {
|
|
6321
6346
|
super("socket.polls.GetPollsResponse", [
|
|
6322
6347
|
{ no: 1, name: "polls", kind: "message", repeat: 1, T: () => Zn }
|
|
6323
6348
|
]);
|
|
6324
6349
|
}
|
|
6325
6350
|
}
|
|
6326
|
-
new
|
|
6327
|
-
class
|
|
6351
|
+
new Di();
|
|
6352
|
+
class Ui extends o {
|
|
6328
6353
|
constructor() {
|
|
6329
6354
|
super("socket.recording.RecordingEvent", [
|
|
6330
6355
|
{
|
|
@@ -6345,8 +6370,8 @@ class Ii extends o {
|
|
|
6345
6370
|
]);
|
|
6346
6371
|
}
|
|
6347
6372
|
}
|
|
6348
|
-
new
|
|
6349
|
-
class
|
|
6373
|
+
new Ui();
|
|
6374
|
+
class Bi extends o {
|
|
6350
6375
|
constructor() {
|
|
6351
6376
|
super("google.protobuf.Timestamp", [
|
|
6352
6377
|
{
|
|
@@ -6421,8 +6446,8 @@ class Di extends o {
|
|
|
6421
6446
|
return d || (d = this.create()), d.seconds = te.from(m / 1e3).toBigInt(), d.nanos = 0, p[7] && (d.nanos = parseInt("1" + p[7] + "0".repeat(9 - p[7].length)) - 1e9), d;
|
|
6422
6447
|
}
|
|
6423
6448
|
}
|
|
6424
|
-
new
|
|
6425
|
-
class
|
|
6449
|
+
new Bi();
|
|
6450
|
+
class Gi extends o {
|
|
6426
6451
|
constructor() {
|
|
6427
6452
|
super("common.BaseHubMessage", [
|
|
6428
6453
|
{
|
|
@@ -6510,16 +6535,16 @@ class Ui extends o {
|
|
|
6510
6535
|
]);
|
|
6511
6536
|
}
|
|
6512
6537
|
}
|
|
6513
|
-
const He = new
|
|
6514
|
-
class
|
|
6538
|
+
const He = new Gi();
|
|
6539
|
+
class ji extends o {
|
|
6515
6540
|
constructor() {
|
|
6516
6541
|
super("common.BulkedHubMessage", [
|
|
6517
6542
|
{ no: 1, name: "messages", kind: "message", repeat: 1, T: () => He }
|
|
6518
6543
|
]);
|
|
6519
6544
|
}
|
|
6520
6545
|
}
|
|
6521
|
-
new
|
|
6522
|
-
class
|
|
6546
|
+
new ji();
|
|
6547
|
+
class Wi extends o {
|
|
6523
6548
|
constructor() {
|
|
6524
6549
|
super("common.CFWorkersResponse", [
|
|
6525
6550
|
{ no: 1, name: "responses", kind: "message", repeat: 1, T: () => He },
|
|
@@ -6527,8 +6552,8 @@ class Gi extends o {
|
|
|
6527
6552
|
]);
|
|
6528
6553
|
}
|
|
6529
6554
|
}
|
|
6530
|
-
new
|
|
6531
|
-
const
|
|
6555
|
+
new Wi();
|
|
6556
|
+
const Fi = 0, Ki = 1, Vi = 2, Hi = 3, Ji = 5, Zi = {
|
|
6532
6557
|
getPeerInfo: 0,
|
|
6533
6558
|
updatePeerInfo: 1,
|
|
6534
6559
|
getRoomPeersInfo: 2,
|
|
@@ -6586,7 +6611,7 @@ const ji = 0, Wi = 1, Fi = 2, Ki = 3, Vi = 5, Hi = {
|
|
|
6586
6611
|
recordingPaused: 42,
|
|
6587
6612
|
getRoomStageState: 43,
|
|
6588
6613
|
livestreamingInvoked: 44
|
|
6589
|
-
},
|
|
6614
|
+
}, zi = {
|
|
6590
6615
|
getMessages: 0,
|
|
6591
6616
|
sendMessageToRoom: 1,
|
|
6592
6617
|
sendMessageToPeers: 2,
|
|
@@ -6595,7 +6620,7 @@ const ji = 0, Wi = 1, Fi = 2, Ki = 3, Vi = 5, Hi = {
|
|
|
6595
6620
|
getPaginatedMessages: 5,
|
|
6596
6621
|
searchChannelMessages: 7,
|
|
6597
6622
|
pinMessage: 10
|
|
6598
|
-
},
|
|
6623
|
+
}, Yi = {
|
|
6599
6624
|
getPlugins: 0,
|
|
6600
6625
|
addPlugin: 1,
|
|
6601
6626
|
enablePluginForRoom: 2,
|
|
@@ -6609,7 +6634,7 @@ const ji = 0, Wi = 1, Fi = 2, Ki = 3, Vi = 5, Hi = {
|
|
|
6609
6634
|
storeGetKeys: 10,
|
|
6610
6635
|
storeDeleteKeys: 11,
|
|
6611
6636
|
storeDelete: 12
|
|
6612
|
-
},
|
|
6637
|
+
}, Qi = {
|
|
6613
6638
|
createPoll: 0,
|
|
6614
6639
|
getPolls: 1,
|
|
6615
6640
|
votePoll: 2,
|
|
@@ -6651,7 +6676,7 @@ const ji = 0, Wi = 1, Fi = 2, Ki = 3, Vi = 5, Hi = {
|
|
|
6651
6676
|
hostControlAllPeers: 94,
|
|
6652
6677
|
// only for CF
|
|
6653
6678
|
audioActivity: 100
|
|
6654
|
-
},
|
|
6679
|
+
}, Xi = {
|
|
6655
6680
|
getUserPresets: 0,
|
|
6656
6681
|
updateUserPreset: 1
|
|
6657
6682
|
};
|
|
@@ -6661,27 +6686,27 @@ function ie(e, s) {
|
|
|
6661
6686
|
function Yn(e, s) {
|
|
6662
6687
|
return Object.keys(e).reduce((a, d) => (a[d] = s | e[d], a), {});
|
|
6663
6688
|
}
|
|
6664
|
-
const pe = ie(
|
|
6665
|
-
ie(
|
|
6689
|
+
const pe = ie(Fi, Zi);
|
|
6690
|
+
ie(Ki, zi);
|
|
6666
6691
|
ie(
|
|
6667
|
-
|
|
6668
|
-
|
|
6692
|
+
Vi,
|
|
6693
|
+
Yi
|
|
6669
6694
|
);
|
|
6670
|
-
ie(
|
|
6695
|
+
ie(Hi, Qi);
|
|
6671
6696
|
const De = Yn(zn, 16777216);
|
|
6672
6697
|
Yn(zn, 50331648);
|
|
6673
6698
|
ie(
|
|
6674
|
-
|
|
6675
|
-
|
|
6699
|
+
Ji,
|
|
6700
|
+
Xi
|
|
6676
6701
|
);
|
|
6677
6702
|
const Qn = "ws://localhost:8080/ws";
|
|
6678
|
-
class
|
|
6703
|
+
class ec extends re.WebSocket {
|
|
6679
6704
|
constructor(s, a) {
|
|
6680
6705
|
super(Qn, a);
|
|
6681
6706
|
}
|
|
6682
6707
|
}
|
|
6683
6708
|
var Y, ye, Q, ve;
|
|
6684
|
-
class
|
|
6709
|
+
class nc {
|
|
6685
6710
|
constructor() {
|
|
6686
6711
|
ne(this, Y, void 0);
|
|
6687
6712
|
ne(this, ye, []);
|
|
@@ -6693,7 +6718,7 @@ class Xi {
|
|
|
6693
6718
|
y(this, "cleanBuffer", (s) => s.buffer.slice(s.byteOffset, s.byteOffset + s.byteLength));
|
|
6694
6719
|
}
|
|
6695
6720
|
init({ peerId: s, mockParticipants: a }) {
|
|
6696
|
-
Ne(this, Q, s), window.WebSocket =
|
|
6721
|
+
Ne(this, Q, s), window.WebSocket = ec, Ne(this, Y, a);
|
|
6697
6722
|
const { RTK_MOCK_SERVER: d } = window;
|
|
6698
6723
|
if (d)
|
|
6699
6724
|
try {
|
|
@@ -6702,7 +6727,7 @@ class Xi {
|
|
|
6702
6727
|
}
|
|
6703
6728
|
const p = new re.Server(Qn, { mock: !1 });
|
|
6704
6729
|
window.RTK_MOCK_SERVER = p, p.on("connection", (m) => {
|
|
6705
|
-
|
|
6730
|
+
W(this, ye).push(m), this.addConnectionListeners(m);
|
|
6706
6731
|
});
|
|
6707
6732
|
}
|
|
6708
6733
|
addConnectionListeners(s) {
|
|
@@ -6715,7 +6740,7 @@ class Xi {
|
|
|
6715
6740
|
case pe.joinRoom: {
|
|
6716
6741
|
p = yn.toBinary(yn.fromJson({
|
|
6717
6742
|
peer: {
|
|
6718
|
-
peerId:
|
|
6743
|
+
peerId: W(this, Q),
|
|
6719
6744
|
userId: "self-userId",
|
|
6720
6745
|
displayName: "name",
|
|
6721
6746
|
waitlisted: !1,
|
|
@@ -6726,7 +6751,7 @@ class Xi {
|
|
|
6726
6751
|
}
|
|
6727
6752
|
case pe.getRoomPeersInfo: {
|
|
6728
6753
|
p = zr.toBinary({
|
|
6729
|
-
peers:
|
|
6754
|
+
peers: W(this, Y).map((w) => an($e({}, w), {
|
|
6730
6755
|
userId: w.peerId,
|
|
6731
6756
|
waitlisted: !1,
|
|
6732
6757
|
stageType: 1
|
|
@@ -6759,7 +6784,7 @@ class Xi {
|
|
|
6759
6784
|
break;
|
|
6760
6785
|
}
|
|
6761
6786
|
case De.selfJoinComplete: {
|
|
6762
|
-
const w =
|
|
6787
|
+
const w = W(this, Y).map((L) => $e({
|
|
6763
6788
|
// @ts-ignore
|
|
6764
6789
|
producerStates: []
|
|
6765
6790
|
}, L));
|
|
@@ -6775,7 +6800,7 @@ class Xi {
|
|
|
6775
6800
|
lockedMode: !1,
|
|
6776
6801
|
roomUuid: this.roomUuid,
|
|
6777
6802
|
roomName: this.roomUuid,
|
|
6778
|
-
currentPeerId:
|
|
6803
|
+
currentPeerId: W(this, Q),
|
|
6779
6804
|
pinnedPeerIds: []
|
|
6780
6805
|
}
|
|
6781
6806
|
});
|
|
@@ -6806,12 +6831,12 @@ class Xi {
|
|
|
6806
6831
|
s.send(g);
|
|
6807
6832
|
}), setInterval(() => {
|
|
6808
6833
|
s.send("2");
|
|
6809
|
-
},
|
|
6834
|
+
}, W(this, ve));
|
|
6810
6835
|
}
|
|
6811
6836
|
}
|
|
6812
6837
|
Y = new WeakMap(), ye = new WeakMap(), Q = new WeakMap(), ve = new WeakMap();
|
|
6813
|
-
function
|
|
6814
|
-
new
|
|
6838
|
+
function rc(e) {
|
|
6839
|
+
new nc().init(e), window.RTCPeerConnection = $t, window.fetch = () => dn(this, null, function* () {
|
|
6815
6840
|
const a = new window.Response(JSON.stringify({}), {
|
|
6816
6841
|
status: 200,
|
|
6817
6842
|
headers: {
|
|
@@ -6822,5 +6847,5 @@ function tc(e) {
|
|
|
6822
6847
|
});
|
|
6823
6848
|
}
|
|
6824
6849
|
export {
|
|
6825
|
-
|
|
6850
|
+
rc as setupStubs
|
|
6826
6851
|
};
|