mezon-js-protobuf 1.8.91 → 1.8.92
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/api/api.ts +515 -961
- package/dist/mezon-js/api/api.d.ts +54 -252
- package/dist/mezon-js-protobuf/api/api.d.ts +54 -252
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +690 -1012
- package/dist/mezon-js-protobuf.cjs.js +232 -612
- package/dist/mezon-js-protobuf.esm.mjs +232 -612
- package/package.json +1 -1
- package/rtapi/realtime.ts +23 -57
|
@@ -2282,57 +2282,6 @@ var import_minimal = __toESM(require_minimal2());
|
|
|
2282
2282
|
// google/protobuf/wrappers.ts
|
|
2283
2283
|
var import_long = __toESM(require_long());
|
|
2284
2284
|
var import_minimal2 = __toESM(require_minimal2());
|
|
2285
|
-
function createBaseInt32Value() {
|
|
2286
|
-
return { value: 0 };
|
|
2287
|
-
}
|
|
2288
|
-
var Int32Value = {
|
|
2289
|
-
encode(message, writer = import_minimal2.default.Writer.create()) {
|
|
2290
|
-
if (message.value !== 0) {
|
|
2291
|
-
writer.uint32(8).int32(message.value);
|
|
2292
|
-
}
|
|
2293
|
-
return writer;
|
|
2294
|
-
},
|
|
2295
|
-
decode(input, length) {
|
|
2296
|
-
const reader = input instanceof import_minimal2.default.Reader ? input : import_minimal2.default.Reader.create(input);
|
|
2297
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2298
|
-
const message = createBaseInt32Value();
|
|
2299
|
-
while (reader.pos < end) {
|
|
2300
|
-
const tag = reader.uint32();
|
|
2301
|
-
switch (tag >>> 3) {
|
|
2302
|
-
case 1:
|
|
2303
|
-
if (tag !== 8) {
|
|
2304
|
-
break;
|
|
2305
|
-
}
|
|
2306
|
-
message.value = reader.int32();
|
|
2307
|
-
continue;
|
|
2308
|
-
}
|
|
2309
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2310
|
-
break;
|
|
2311
|
-
}
|
|
2312
|
-
reader.skipType(tag & 7);
|
|
2313
|
-
}
|
|
2314
|
-
return message;
|
|
2315
|
-
},
|
|
2316
|
-
fromJSON(object) {
|
|
2317
|
-
return { value: isSet(object.value) ? globalThis.Number(object.value) : 0 };
|
|
2318
|
-
},
|
|
2319
|
-
toJSON(message) {
|
|
2320
|
-
const obj = {};
|
|
2321
|
-
if (message.value !== 0) {
|
|
2322
|
-
obj.value = Math.round(message.value);
|
|
2323
|
-
}
|
|
2324
|
-
return obj;
|
|
2325
|
-
},
|
|
2326
|
-
create(base) {
|
|
2327
|
-
return Int32Value.fromPartial(base != null ? base : {});
|
|
2328
|
-
},
|
|
2329
|
-
fromPartial(object) {
|
|
2330
|
-
var _a;
|
|
2331
|
-
const message = createBaseInt32Value();
|
|
2332
|
-
message.value = (_a = object.value) != null ? _a : 0;
|
|
2333
|
-
return message;
|
|
2334
|
-
}
|
|
2335
|
-
};
|
|
2336
2285
|
function createBaseBoolValue() {
|
|
2337
2286
|
return { value: false };
|
|
2338
2287
|
}
|
|
@@ -4753,7 +4702,7 @@ var ClanUserList_ClanUser = {
|
|
|
4753
4702
|
}
|
|
4754
4703
|
};
|
|
4755
4704
|
function createBaseListChannelMessagesRequest() {
|
|
4756
|
-
return { clan_id: "0", channel_id: "0", message_id: "0", limit:
|
|
4705
|
+
return { clan_id: "0", channel_id: "0", message_id: "0", limit: 0, direction: 0, topic_id: "0" };
|
|
4757
4706
|
}
|
|
4758
4707
|
var ListChannelMessagesRequest = {
|
|
4759
4708
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -4766,11 +4715,11 @@ var ListChannelMessagesRequest = {
|
|
|
4766
4715
|
if (message.message_id !== "0") {
|
|
4767
4716
|
writer.uint32(24).int64(message.message_id);
|
|
4768
4717
|
}
|
|
4769
|
-
if (message.limit !==
|
|
4770
|
-
|
|
4718
|
+
if (message.limit !== 0) {
|
|
4719
|
+
writer.uint32(32).int32(message.limit);
|
|
4771
4720
|
}
|
|
4772
|
-
if (message.direction !==
|
|
4773
|
-
|
|
4721
|
+
if (message.direction !== 0) {
|
|
4722
|
+
writer.uint32(40).int32(message.direction);
|
|
4774
4723
|
}
|
|
4775
4724
|
if (message.topic_id !== "0") {
|
|
4776
4725
|
writer.uint32(48).int64(message.topic_id);
|
|
@@ -4803,16 +4752,16 @@ var ListChannelMessagesRequest = {
|
|
|
4803
4752
|
message.message_id = longToString(reader.int64());
|
|
4804
4753
|
continue;
|
|
4805
4754
|
case 4:
|
|
4806
|
-
if (tag !==
|
|
4755
|
+
if (tag !== 32) {
|
|
4807
4756
|
break;
|
|
4808
4757
|
}
|
|
4809
|
-
message.limit =
|
|
4758
|
+
message.limit = reader.int32();
|
|
4810
4759
|
continue;
|
|
4811
4760
|
case 5:
|
|
4812
|
-
if (tag !==
|
|
4761
|
+
if (tag !== 40) {
|
|
4813
4762
|
break;
|
|
4814
4763
|
}
|
|
4815
|
-
message.direction =
|
|
4764
|
+
message.direction = reader.int32();
|
|
4816
4765
|
continue;
|
|
4817
4766
|
case 6:
|
|
4818
4767
|
if (tag !== 48) {
|
|
@@ -4833,8 +4782,8 @@ var ListChannelMessagesRequest = {
|
|
|
4833
4782
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
4834
4783
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
4835
4784
|
message_id: isSet2(object.message_id) ? globalThis.String(object.message_id) : "0",
|
|
4836
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
4837
|
-
direction: isSet2(object.direction) ? Number(object.direction) :
|
|
4785
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
4786
|
+
direction: isSet2(object.direction) ? globalThis.Number(object.direction) : 0,
|
|
4838
4787
|
topic_id: isSet2(object.topic_id) ? globalThis.String(object.topic_id) : "0"
|
|
4839
4788
|
};
|
|
4840
4789
|
},
|
|
@@ -4849,11 +4798,11 @@ var ListChannelMessagesRequest = {
|
|
|
4849
4798
|
if (message.message_id !== "0") {
|
|
4850
4799
|
obj.message_id = message.message_id;
|
|
4851
4800
|
}
|
|
4852
|
-
if (message.limit !==
|
|
4853
|
-
obj.limit = message.limit;
|
|
4801
|
+
if (message.limit !== 0) {
|
|
4802
|
+
obj.limit = Math.round(message.limit);
|
|
4854
4803
|
}
|
|
4855
|
-
if (message.direction !==
|
|
4856
|
-
obj.direction = message.direction;
|
|
4804
|
+
if (message.direction !== 0) {
|
|
4805
|
+
obj.direction = Math.round(message.direction);
|
|
4857
4806
|
}
|
|
4858
4807
|
if (message.topic_id !== "0") {
|
|
4859
4808
|
obj.topic_id = message.topic_id;
|
|
@@ -4869,22 +4818,22 @@ var ListChannelMessagesRequest = {
|
|
|
4869
4818
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
4870
4819
|
message.channel_id = (_b = object.channel_id) != null ? _b : "0";
|
|
4871
4820
|
message.message_id = (_c = object.message_id) != null ? _c : "0";
|
|
4872
|
-
message.limit = (_d = object.limit) != null ? _d :
|
|
4873
|
-
message.direction = (_e = object.direction) != null ? _e :
|
|
4821
|
+
message.limit = (_d = object.limit) != null ? _d : 0;
|
|
4822
|
+
message.direction = (_e = object.direction) != null ? _e : 0;
|
|
4874
4823
|
message.topic_id = (_f = object.topic_id) != null ? _f : "0";
|
|
4875
4824
|
return message;
|
|
4876
4825
|
}
|
|
4877
4826
|
};
|
|
4878
4827
|
function createBaseListFriendsRequest() {
|
|
4879
|
-
return { limit:
|
|
4828
|
+
return { limit: 0, state: 0, cursor: "" };
|
|
4880
4829
|
}
|
|
4881
4830
|
var ListFriendsRequest = {
|
|
4882
4831
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
4883
|
-
if (message.limit !==
|
|
4884
|
-
|
|
4832
|
+
if (message.limit !== 0) {
|
|
4833
|
+
writer.uint32(8).int32(message.limit);
|
|
4885
4834
|
}
|
|
4886
|
-
if (message.state !==
|
|
4887
|
-
|
|
4835
|
+
if (message.state !== 0) {
|
|
4836
|
+
writer.uint32(16).int32(message.state);
|
|
4888
4837
|
}
|
|
4889
4838
|
if (message.cursor !== "") {
|
|
4890
4839
|
writer.uint32(26).string(message.cursor);
|
|
@@ -4899,16 +4848,16 @@ var ListFriendsRequest = {
|
|
|
4899
4848
|
const tag = reader.uint32();
|
|
4900
4849
|
switch (tag >>> 3) {
|
|
4901
4850
|
case 1:
|
|
4902
|
-
if (tag !==
|
|
4851
|
+
if (tag !== 8) {
|
|
4903
4852
|
break;
|
|
4904
4853
|
}
|
|
4905
|
-
message.limit =
|
|
4854
|
+
message.limit = reader.int32();
|
|
4906
4855
|
continue;
|
|
4907
4856
|
case 2:
|
|
4908
|
-
if (tag !==
|
|
4857
|
+
if (tag !== 16) {
|
|
4909
4858
|
break;
|
|
4910
4859
|
}
|
|
4911
|
-
message.state =
|
|
4860
|
+
message.state = reader.int32();
|
|
4912
4861
|
continue;
|
|
4913
4862
|
case 3:
|
|
4914
4863
|
if (tag !== 26) {
|
|
@@ -4926,18 +4875,18 @@ var ListFriendsRequest = {
|
|
|
4926
4875
|
},
|
|
4927
4876
|
fromJSON(object) {
|
|
4928
4877
|
return {
|
|
4929
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
4930
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
4878
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
4879
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
4931
4880
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
4932
4881
|
};
|
|
4933
4882
|
},
|
|
4934
4883
|
toJSON(message) {
|
|
4935
4884
|
const obj = {};
|
|
4936
|
-
if (message.limit !==
|
|
4937
|
-
obj.limit = message.limit;
|
|
4885
|
+
if (message.limit !== 0) {
|
|
4886
|
+
obj.limit = Math.round(message.limit);
|
|
4938
4887
|
}
|
|
4939
|
-
if (message.state !==
|
|
4940
|
-
obj.state = message.state;
|
|
4888
|
+
if (message.state !== 0) {
|
|
4889
|
+
obj.state = Math.round(message.state);
|
|
4941
4890
|
}
|
|
4942
4891
|
if (message.cursor !== "") {
|
|
4943
4892
|
obj.cursor = message.cursor;
|
|
@@ -4950,14 +4899,14 @@ var ListFriendsRequest = {
|
|
|
4950
4899
|
fromPartial(object) {
|
|
4951
4900
|
var _a, _b, _c;
|
|
4952
4901
|
const message = createBaseListFriendsRequest();
|
|
4953
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
4954
|
-
message.state = (_b = object.state) != null ? _b :
|
|
4902
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
4903
|
+
message.state = (_b = object.state) != null ? _b : 0;
|
|
4955
4904
|
message.cursor = (_c = object.cursor) != null ? _c : "";
|
|
4956
4905
|
return message;
|
|
4957
4906
|
}
|
|
4958
4907
|
};
|
|
4959
4908
|
function createBaseListChannelUsersRequest() {
|
|
4960
|
-
return { clan_id: "0", channel_id: "0", channel_type: 0, limit:
|
|
4909
|
+
return { clan_id: "0", channel_id: "0", channel_type: 0, limit: 0, state: 0, cursor: "" };
|
|
4961
4910
|
}
|
|
4962
4911
|
var ListChannelUsersRequest = {
|
|
4963
4912
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -4970,11 +4919,11 @@ var ListChannelUsersRequest = {
|
|
|
4970
4919
|
if (message.channel_type !== 0) {
|
|
4971
4920
|
writer.uint32(24).int32(message.channel_type);
|
|
4972
4921
|
}
|
|
4973
|
-
if (message.limit !==
|
|
4974
|
-
|
|
4922
|
+
if (message.limit !== 0) {
|
|
4923
|
+
writer.uint32(32).int32(message.limit);
|
|
4975
4924
|
}
|
|
4976
|
-
if (message.state !==
|
|
4977
|
-
|
|
4925
|
+
if (message.state !== 0) {
|
|
4926
|
+
writer.uint32(40).int32(message.state);
|
|
4978
4927
|
}
|
|
4979
4928
|
if (message.cursor !== "") {
|
|
4980
4929
|
writer.uint32(50).string(message.cursor);
|
|
@@ -5007,16 +4956,16 @@ var ListChannelUsersRequest = {
|
|
|
5007
4956
|
message.channel_type = reader.int32();
|
|
5008
4957
|
continue;
|
|
5009
4958
|
case 4:
|
|
5010
|
-
if (tag !==
|
|
4959
|
+
if (tag !== 32) {
|
|
5011
4960
|
break;
|
|
5012
4961
|
}
|
|
5013
|
-
message.limit =
|
|
4962
|
+
message.limit = reader.int32();
|
|
5014
4963
|
continue;
|
|
5015
4964
|
case 5:
|
|
5016
|
-
if (tag !==
|
|
4965
|
+
if (tag !== 40) {
|
|
5017
4966
|
break;
|
|
5018
4967
|
}
|
|
5019
|
-
message.state =
|
|
4968
|
+
message.state = reader.int32();
|
|
5020
4969
|
continue;
|
|
5021
4970
|
case 6:
|
|
5022
4971
|
if (tag !== 50) {
|
|
@@ -5037,8 +4986,8 @@ var ListChannelUsersRequest = {
|
|
|
5037
4986
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
5038
4987
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
5039
4988
|
channel_type: isSet2(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
5040
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
5041
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
4989
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
4990
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
5042
4991
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
5043
4992
|
};
|
|
5044
4993
|
},
|
|
@@ -5053,11 +5002,11 @@ var ListChannelUsersRequest = {
|
|
|
5053
5002
|
if (message.channel_type !== 0) {
|
|
5054
5003
|
obj.channel_type = Math.round(message.channel_type);
|
|
5055
5004
|
}
|
|
5056
|
-
if (message.limit !==
|
|
5057
|
-
obj.limit = message.limit;
|
|
5005
|
+
if (message.limit !== 0) {
|
|
5006
|
+
obj.limit = Math.round(message.limit);
|
|
5058
5007
|
}
|
|
5059
|
-
if (message.state !==
|
|
5060
|
-
obj.state = message.state;
|
|
5008
|
+
if (message.state !== 0) {
|
|
5009
|
+
obj.state = Math.round(message.state);
|
|
5061
5010
|
}
|
|
5062
5011
|
if (message.cursor !== "") {
|
|
5063
5012
|
obj.cursor = message.cursor;
|
|
@@ -5073,8 +5022,8 @@ var ListChannelUsersRequest = {
|
|
|
5073
5022
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
5074
5023
|
message.channel_id = (_b = object.channel_id) != null ? _b : "0";
|
|
5075
5024
|
message.channel_type = (_c = object.channel_type) != null ? _c : 0;
|
|
5076
|
-
message.limit = (_d = object.limit) != null ? _d :
|
|
5077
|
-
message.state = (_e = object.state) != null ? _e :
|
|
5025
|
+
message.limit = (_d = object.limit) != null ? _d : 0;
|
|
5026
|
+
message.state = (_e = object.state) != null ? _e : 0;
|
|
5078
5027
|
message.cursor = (_f = object.cursor) != null ? _f : "";
|
|
5079
5028
|
return message;
|
|
5080
5029
|
}
|
|
@@ -5282,12 +5231,12 @@ var ListClanUsersRequest = {
|
|
|
5282
5231
|
}
|
|
5283
5232
|
};
|
|
5284
5233
|
function createBaseListNotificationsRequest() {
|
|
5285
|
-
return { limit:
|
|
5234
|
+
return { limit: 0, clan_id: "0", notification_id: "0", category: 0, direction: 0 };
|
|
5286
5235
|
}
|
|
5287
5236
|
var ListNotificationsRequest = {
|
|
5288
5237
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
5289
|
-
if (message.limit !==
|
|
5290
|
-
|
|
5238
|
+
if (message.limit !== 0) {
|
|
5239
|
+
writer.uint32(8).int32(message.limit);
|
|
5291
5240
|
}
|
|
5292
5241
|
if (message.clan_id !== "0") {
|
|
5293
5242
|
writer.uint32(16).int64(message.clan_id);
|
|
@@ -5298,8 +5247,8 @@ var ListNotificationsRequest = {
|
|
|
5298
5247
|
if (message.category !== 0) {
|
|
5299
5248
|
writer.uint32(32).int32(message.category);
|
|
5300
5249
|
}
|
|
5301
|
-
if (message.direction !==
|
|
5302
|
-
|
|
5250
|
+
if (message.direction !== 0) {
|
|
5251
|
+
writer.uint32(40).int32(message.direction);
|
|
5303
5252
|
}
|
|
5304
5253
|
return writer;
|
|
5305
5254
|
},
|
|
@@ -5311,10 +5260,10 @@ var ListNotificationsRequest = {
|
|
|
5311
5260
|
const tag = reader.uint32();
|
|
5312
5261
|
switch (tag >>> 3) {
|
|
5313
5262
|
case 1:
|
|
5314
|
-
if (tag !==
|
|
5263
|
+
if (tag !== 8) {
|
|
5315
5264
|
break;
|
|
5316
5265
|
}
|
|
5317
|
-
message.limit =
|
|
5266
|
+
message.limit = reader.int32();
|
|
5318
5267
|
continue;
|
|
5319
5268
|
case 2:
|
|
5320
5269
|
if (tag !== 16) {
|
|
@@ -5335,10 +5284,10 @@ var ListNotificationsRequest = {
|
|
|
5335
5284
|
message.category = reader.int32();
|
|
5336
5285
|
continue;
|
|
5337
5286
|
case 5:
|
|
5338
|
-
if (tag !==
|
|
5287
|
+
if (tag !== 40) {
|
|
5339
5288
|
break;
|
|
5340
5289
|
}
|
|
5341
|
-
message.direction =
|
|
5290
|
+
message.direction = reader.int32();
|
|
5342
5291
|
continue;
|
|
5343
5292
|
}
|
|
5344
5293
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -5350,17 +5299,17 @@ var ListNotificationsRequest = {
|
|
|
5350
5299
|
},
|
|
5351
5300
|
fromJSON(object) {
|
|
5352
5301
|
return {
|
|
5353
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
5302
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
5354
5303
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
5355
5304
|
notification_id: isSet2(object.notification_id) ? globalThis.String(object.notification_id) : "0",
|
|
5356
5305
|
category: isSet2(object.category) ? globalThis.Number(object.category) : 0,
|
|
5357
|
-
direction: isSet2(object.direction) ? Number(object.direction) :
|
|
5306
|
+
direction: isSet2(object.direction) ? globalThis.Number(object.direction) : 0
|
|
5358
5307
|
};
|
|
5359
5308
|
},
|
|
5360
5309
|
toJSON(message) {
|
|
5361
5310
|
const obj = {};
|
|
5362
|
-
if (message.limit !==
|
|
5363
|
-
obj.limit = message.limit;
|
|
5311
|
+
if (message.limit !== 0) {
|
|
5312
|
+
obj.limit = Math.round(message.limit);
|
|
5364
5313
|
}
|
|
5365
5314
|
if (message.clan_id !== "0") {
|
|
5366
5315
|
obj.clan_id = message.clan_id;
|
|
@@ -5371,8 +5320,8 @@ var ListNotificationsRequest = {
|
|
|
5371
5320
|
if (message.category !== 0) {
|
|
5372
5321
|
obj.category = Math.round(message.category);
|
|
5373
5322
|
}
|
|
5374
|
-
if (message.direction !==
|
|
5375
|
-
obj.direction = message.direction;
|
|
5323
|
+
if (message.direction !== 0) {
|
|
5324
|
+
obj.direction = Math.round(message.direction);
|
|
5376
5325
|
}
|
|
5377
5326
|
return obj;
|
|
5378
5327
|
},
|
|
@@ -5382,11 +5331,11 @@ var ListNotificationsRequest = {
|
|
|
5382
5331
|
fromPartial(object) {
|
|
5383
5332
|
var _a, _b, _c, _d, _e;
|
|
5384
5333
|
const message = createBaseListNotificationsRequest();
|
|
5385
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
5334
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
5386
5335
|
message.clan_id = (_b = object.clan_id) != null ? _b : "0";
|
|
5387
5336
|
message.notification_id = (_c = object.notification_id) != null ? _c : "0";
|
|
5388
5337
|
message.category = (_d = object.category) != null ? _d : 0;
|
|
5389
|
-
message.direction = (_e = object.direction) != null ? _e :
|
|
5338
|
+
message.direction = (_e = object.direction) != null ? _e : 0;
|
|
5390
5339
|
return message;
|
|
5391
5340
|
}
|
|
5392
5341
|
};
|
|
@@ -6576,15 +6525,15 @@ var ClanDesc = {
|
|
|
6576
6525
|
}
|
|
6577
6526
|
};
|
|
6578
6527
|
function createBaseListClanDescRequest() {
|
|
6579
|
-
return { limit:
|
|
6528
|
+
return { limit: 0, state: 0, cursor: "" };
|
|
6580
6529
|
}
|
|
6581
6530
|
var ListClanDescRequest = {
|
|
6582
6531
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
6583
|
-
if (message.limit !==
|
|
6584
|
-
|
|
6532
|
+
if (message.limit !== 0) {
|
|
6533
|
+
writer.uint32(8).int32(message.limit);
|
|
6585
6534
|
}
|
|
6586
|
-
if (message.state !==
|
|
6587
|
-
|
|
6535
|
+
if (message.state !== 0) {
|
|
6536
|
+
writer.uint32(16).int32(message.state);
|
|
6588
6537
|
}
|
|
6589
6538
|
if (message.cursor !== "") {
|
|
6590
6539
|
writer.uint32(26).string(message.cursor);
|
|
@@ -6599,16 +6548,16 @@ var ListClanDescRequest = {
|
|
|
6599
6548
|
const tag = reader.uint32();
|
|
6600
6549
|
switch (tag >>> 3) {
|
|
6601
6550
|
case 1:
|
|
6602
|
-
if (tag !==
|
|
6551
|
+
if (tag !== 8) {
|
|
6603
6552
|
break;
|
|
6604
6553
|
}
|
|
6605
|
-
message.limit =
|
|
6554
|
+
message.limit = reader.int32();
|
|
6606
6555
|
continue;
|
|
6607
6556
|
case 2:
|
|
6608
|
-
if (tag !==
|
|
6557
|
+
if (tag !== 16) {
|
|
6609
6558
|
break;
|
|
6610
6559
|
}
|
|
6611
|
-
message.state =
|
|
6560
|
+
message.state = reader.int32();
|
|
6612
6561
|
continue;
|
|
6613
6562
|
case 3:
|
|
6614
6563
|
if (tag !== 26) {
|
|
@@ -6626,18 +6575,18 @@ var ListClanDescRequest = {
|
|
|
6626
6575
|
},
|
|
6627
6576
|
fromJSON(object) {
|
|
6628
6577
|
return {
|
|
6629
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
6630
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
6578
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
6579
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
6631
6580
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
6632
6581
|
};
|
|
6633
6582
|
},
|
|
6634
6583
|
toJSON(message) {
|
|
6635
6584
|
const obj = {};
|
|
6636
|
-
if (message.limit !==
|
|
6637
|
-
obj.limit = message.limit;
|
|
6585
|
+
if (message.limit !== 0) {
|
|
6586
|
+
obj.limit = Math.round(message.limit);
|
|
6638
6587
|
}
|
|
6639
|
-
if (message.state !==
|
|
6640
|
-
obj.state = message.state;
|
|
6588
|
+
if (message.state !== 0) {
|
|
6589
|
+
obj.state = Math.round(message.state);
|
|
6641
6590
|
}
|
|
6642
6591
|
if (message.cursor !== "") {
|
|
6643
6592
|
obj.cursor = message.cursor;
|
|
@@ -6650,8 +6599,8 @@ var ListClanDescRequest = {
|
|
|
6650
6599
|
fromPartial(object) {
|
|
6651
6600
|
var _a, _b, _c;
|
|
6652
6601
|
const message = createBaseListClanDescRequest();
|
|
6653
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
6654
|
-
message.state = (_b = object.state) != null ? _b :
|
|
6602
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
6603
|
+
message.state = (_b = object.state) != null ? _b : 0;
|
|
6655
6604
|
message.cursor = (_c = object.cursor) != null ? _c : "";
|
|
6656
6605
|
return message;
|
|
6657
6606
|
}
|
|
@@ -7651,15 +7600,15 @@ var ChannelDescList = {
|
|
|
7651
7600
|
}
|
|
7652
7601
|
};
|
|
7653
7602
|
function createBaseListThreadRequest() {
|
|
7654
|
-
return { limit:
|
|
7603
|
+
return { limit: 0, state: 0, clan_id: "0", channel_id: "0", thread_id: "0", page: 0 };
|
|
7655
7604
|
}
|
|
7656
7605
|
var ListThreadRequest = {
|
|
7657
7606
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
7658
|
-
if (message.limit !==
|
|
7659
|
-
|
|
7607
|
+
if (message.limit !== 0) {
|
|
7608
|
+
writer.uint32(8).int32(message.limit);
|
|
7660
7609
|
}
|
|
7661
|
-
if (message.state !==
|
|
7662
|
-
|
|
7610
|
+
if (message.state !== 0) {
|
|
7611
|
+
writer.uint32(16).int32(message.state);
|
|
7663
7612
|
}
|
|
7664
7613
|
if (message.clan_id !== "0") {
|
|
7665
7614
|
writer.uint32(24).int64(message.clan_id);
|
|
@@ -7670,8 +7619,8 @@ var ListThreadRequest = {
|
|
|
7670
7619
|
if (message.thread_id !== "0") {
|
|
7671
7620
|
writer.uint32(40).int64(message.thread_id);
|
|
7672
7621
|
}
|
|
7673
|
-
if (message.page !==
|
|
7674
|
-
|
|
7622
|
+
if (message.page !== 0) {
|
|
7623
|
+
writer.uint32(48).int32(message.page);
|
|
7675
7624
|
}
|
|
7676
7625
|
return writer;
|
|
7677
7626
|
},
|
|
@@ -7683,16 +7632,16 @@ var ListThreadRequest = {
|
|
|
7683
7632
|
const tag = reader.uint32();
|
|
7684
7633
|
switch (tag >>> 3) {
|
|
7685
7634
|
case 1:
|
|
7686
|
-
if (tag !==
|
|
7635
|
+
if (tag !== 8) {
|
|
7687
7636
|
break;
|
|
7688
7637
|
}
|
|
7689
|
-
message.limit =
|
|
7638
|
+
message.limit = reader.int32();
|
|
7690
7639
|
continue;
|
|
7691
7640
|
case 2:
|
|
7692
|
-
if (tag !==
|
|
7641
|
+
if (tag !== 16) {
|
|
7693
7642
|
break;
|
|
7694
7643
|
}
|
|
7695
|
-
message.state =
|
|
7644
|
+
message.state = reader.int32();
|
|
7696
7645
|
continue;
|
|
7697
7646
|
case 3:
|
|
7698
7647
|
if (tag !== 24) {
|
|
@@ -7713,10 +7662,10 @@ var ListThreadRequest = {
|
|
|
7713
7662
|
message.thread_id = longToString(reader.int64());
|
|
7714
7663
|
continue;
|
|
7715
7664
|
case 6:
|
|
7716
|
-
if (tag !==
|
|
7665
|
+
if (tag !== 48) {
|
|
7717
7666
|
break;
|
|
7718
7667
|
}
|
|
7719
|
-
message.page =
|
|
7668
|
+
message.page = reader.int32();
|
|
7720
7669
|
continue;
|
|
7721
7670
|
}
|
|
7722
7671
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -7728,21 +7677,21 @@ var ListThreadRequest = {
|
|
|
7728
7677
|
},
|
|
7729
7678
|
fromJSON(object) {
|
|
7730
7679
|
return {
|
|
7731
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
7732
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
7680
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
7681
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
7733
7682
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
7734
7683
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
7735
7684
|
thread_id: isSet2(object.thread_id) ? globalThis.String(object.thread_id) : "0",
|
|
7736
|
-
page: isSet2(object.page) ? Number(object.page) :
|
|
7685
|
+
page: isSet2(object.page) ? globalThis.Number(object.page) : 0
|
|
7737
7686
|
};
|
|
7738
7687
|
},
|
|
7739
7688
|
toJSON(message) {
|
|
7740
7689
|
const obj = {};
|
|
7741
|
-
if (message.limit !==
|
|
7742
|
-
obj.limit = message.limit;
|
|
7690
|
+
if (message.limit !== 0) {
|
|
7691
|
+
obj.limit = Math.round(message.limit);
|
|
7743
7692
|
}
|
|
7744
|
-
if (message.state !==
|
|
7745
|
-
obj.state = message.state;
|
|
7693
|
+
if (message.state !== 0) {
|
|
7694
|
+
obj.state = Math.round(message.state);
|
|
7746
7695
|
}
|
|
7747
7696
|
if (message.clan_id !== "0") {
|
|
7748
7697
|
obj.clan_id = message.clan_id;
|
|
@@ -7753,8 +7702,8 @@ var ListThreadRequest = {
|
|
|
7753
7702
|
if (message.thread_id !== "0") {
|
|
7754
7703
|
obj.thread_id = message.thread_id;
|
|
7755
7704
|
}
|
|
7756
|
-
if (message.page !==
|
|
7757
|
-
obj.page = message.page;
|
|
7705
|
+
if (message.page !== 0) {
|
|
7706
|
+
obj.page = Math.round(message.page);
|
|
7758
7707
|
}
|
|
7759
7708
|
return obj;
|
|
7760
7709
|
},
|
|
@@ -7764,25 +7713,25 @@ var ListThreadRequest = {
|
|
|
7764
7713
|
fromPartial(object) {
|
|
7765
7714
|
var _a, _b, _c, _d, _e, _f;
|
|
7766
7715
|
const message = createBaseListThreadRequest();
|
|
7767
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
7768
|
-
message.state = (_b = object.state) != null ? _b :
|
|
7716
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
7717
|
+
message.state = (_b = object.state) != null ? _b : 0;
|
|
7769
7718
|
message.clan_id = (_c = object.clan_id) != null ? _c : "0";
|
|
7770
7719
|
message.channel_id = (_d = object.channel_id) != null ? _d : "0";
|
|
7771
7720
|
message.thread_id = (_e = object.thread_id) != null ? _e : "0";
|
|
7772
|
-
message.page = (_f = object.page) != null ? _f :
|
|
7721
|
+
message.page = (_f = object.page) != null ? _f : 0;
|
|
7773
7722
|
return message;
|
|
7774
7723
|
}
|
|
7775
7724
|
};
|
|
7776
7725
|
function createBaseListChannelDescsRequest() {
|
|
7777
|
-
return { limit:
|
|
7726
|
+
return { limit: 0, state: 0, cursor: "", clan_id: "0", channel_type: 0, is_mobile: false };
|
|
7778
7727
|
}
|
|
7779
7728
|
var ListChannelDescsRequest = {
|
|
7780
7729
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
7781
|
-
if (message.limit !==
|
|
7782
|
-
|
|
7730
|
+
if (message.limit !== 0) {
|
|
7731
|
+
writer.uint32(8).int32(message.limit);
|
|
7783
7732
|
}
|
|
7784
|
-
if (message.state !==
|
|
7785
|
-
|
|
7733
|
+
if (message.state !== 0) {
|
|
7734
|
+
writer.uint32(16).int32(message.state);
|
|
7786
7735
|
}
|
|
7787
7736
|
if (message.cursor !== "") {
|
|
7788
7737
|
writer.uint32(26).string(message.cursor);
|
|
@@ -7806,16 +7755,16 @@ var ListChannelDescsRequest = {
|
|
|
7806
7755
|
const tag = reader.uint32();
|
|
7807
7756
|
switch (tag >>> 3) {
|
|
7808
7757
|
case 1:
|
|
7809
|
-
if (tag !==
|
|
7758
|
+
if (tag !== 8) {
|
|
7810
7759
|
break;
|
|
7811
7760
|
}
|
|
7812
|
-
message.limit =
|
|
7761
|
+
message.limit = reader.int32();
|
|
7813
7762
|
continue;
|
|
7814
7763
|
case 2:
|
|
7815
|
-
if (tag !==
|
|
7764
|
+
if (tag !== 16) {
|
|
7816
7765
|
break;
|
|
7817
7766
|
}
|
|
7818
|
-
message.state =
|
|
7767
|
+
message.state = reader.int32();
|
|
7819
7768
|
continue;
|
|
7820
7769
|
case 3:
|
|
7821
7770
|
if (tag !== 26) {
|
|
@@ -7851,8 +7800,8 @@ var ListChannelDescsRequest = {
|
|
|
7851
7800
|
},
|
|
7852
7801
|
fromJSON(object) {
|
|
7853
7802
|
return {
|
|
7854
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
7855
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
7803
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
7804
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
7856
7805
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
7857
7806
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
7858
7807
|
channel_type: isSet2(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
@@ -7861,11 +7810,11 @@ var ListChannelDescsRequest = {
|
|
|
7861
7810
|
},
|
|
7862
7811
|
toJSON(message) {
|
|
7863
7812
|
const obj = {};
|
|
7864
|
-
if (message.limit !==
|
|
7865
|
-
obj.limit = message.limit;
|
|
7813
|
+
if (message.limit !== 0) {
|
|
7814
|
+
obj.limit = Math.round(message.limit);
|
|
7866
7815
|
}
|
|
7867
|
-
if (message.state !==
|
|
7868
|
-
obj.state = message.state;
|
|
7816
|
+
if (message.state !== 0) {
|
|
7817
|
+
obj.state = Math.round(message.state);
|
|
7869
7818
|
}
|
|
7870
7819
|
if (message.cursor !== "") {
|
|
7871
7820
|
obj.cursor = message.cursor;
|
|
@@ -7887,8 +7836,8 @@ var ListChannelDescsRequest = {
|
|
|
7887
7836
|
fromPartial(object) {
|
|
7888
7837
|
var _a, _b, _c, _d, _e, _f;
|
|
7889
7838
|
const message = createBaseListChannelDescsRequest();
|
|
7890
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
7891
|
-
message.state = (_b = object.state) != null ? _b :
|
|
7839
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
7840
|
+
message.state = (_b = object.state) != null ? _b : 0;
|
|
7892
7841
|
message.cursor = (_c = object.cursor) != null ? _c : "";
|
|
7893
7842
|
message.clan_id = (_d = object.clan_id) != null ? _d : "0";
|
|
7894
7843
|
message.channel_type = (_e = object.channel_type) != null ? _e : 0;
|
|
@@ -9149,297 +9098,6 @@ var NotificationClan = {
|
|
|
9149
9098
|
return message;
|
|
9150
9099
|
}
|
|
9151
9100
|
};
|
|
9152
|
-
function createBaseHashtagDmListRequest() {
|
|
9153
|
-
return { user_id: [], limit: void 0 };
|
|
9154
|
-
}
|
|
9155
|
-
var HashtagDmListRequest = {
|
|
9156
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
9157
|
-
writer.uint32(10).fork();
|
|
9158
|
-
for (const v of message.user_id) {
|
|
9159
|
-
writer.int64(v);
|
|
9160
|
-
}
|
|
9161
|
-
writer.ldelim();
|
|
9162
|
-
if (message.limit !== void 0) {
|
|
9163
|
-
Int32Value.encode({ value: message.limit }, writer.uint32(18).fork()).ldelim();
|
|
9164
|
-
}
|
|
9165
|
-
return writer;
|
|
9166
|
-
},
|
|
9167
|
-
decode(input, length) {
|
|
9168
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
9169
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
9170
|
-
const message = createBaseHashtagDmListRequest();
|
|
9171
|
-
while (reader.pos < end) {
|
|
9172
|
-
const tag = reader.uint32();
|
|
9173
|
-
switch (tag >>> 3) {
|
|
9174
|
-
case 1:
|
|
9175
|
-
if (tag === 8) {
|
|
9176
|
-
message.user_id.push(longToString(reader.int64()));
|
|
9177
|
-
continue;
|
|
9178
|
-
}
|
|
9179
|
-
if (tag === 10) {
|
|
9180
|
-
const end2 = reader.uint32() + reader.pos;
|
|
9181
|
-
while (reader.pos < end2) {
|
|
9182
|
-
message.user_id.push(longToString(reader.int64()));
|
|
9183
|
-
}
|
|
9184
|
-
continue;
|
|
9185
|
-
}
|
|
9186
|
-
break;
|
|
9187
|
-
case 2:
|
|
9188
|
-
if (tag !== 18) {
|
|
9189
|
-
break;
|
|
9190
|
-
}
|
|
9191
|
-
message.limit = Int32Value.decode(reader, reader.uint32()).value;
|
|
9192
|
-
continue;
|
|
9193
|
-
}
|
|
9194
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
9195
|
-
break;
|
|
9196
|
-
}
|
|
9197
|
-
reader.skipType(tag & 7);
|
|
9198
|
-
}
|
|
9199
|
-
return message;
|
|
9200
|
-
},
|
|
9201
|
-
fromJSON(object) {
|
|
9202
|
-
return {
|
|
9203
|
-
user_id: globalThis.Array.isArray(object == null ? void 0 : object.user_id) ? object.user_id.map((e) => globalThis.String(e)) : [],
|
|
9204
|
-
limit: isSet2(object.limit) ? Number(object.limit) : void 0
|
|
9205
|
-
};
|
|
9206
|
-
},
|
|
9207
|
-
toJSON(message) {
|
|
9208
|
-
var _a;
|
|
9209
|
-
const obj = {};
|
|
9210
|
-
if ((_a = message.user_id) == null ? void 0 : _a.length) {
|
|
9211
|
-
obj.user_id = message.user_id;
|
|
9212
|
-
}
|
|
9213
|
-
if (message.limit !== void 0) {
|
|
9214
|
-
obj.limit = message.limit;
|
|
9215
|
-
}
|
|
9216
|
-
return obj;
|
|
9217
|
-
},
|
|
9218
|
-
create(base) {
|
|
9219
|
-
return HashtagDmListRequest.fromPartial(base != null ? base : {});
|
|
9220
|
-
},
|
|
9221
|
-
fromPartial(object) {
|
|
9222
|
-
var _a, _b;
|
|
9223
|
-
const message = createBaseHashtagDmListRequest();
|
|
9224
|
-
message.user_id = ((_a = object.user_id) == null ? void 0 : _a.map((e) => e)) || [];
|
|
9225
|
-
message.limit = (_b = object.limit) != null ? _b : void 0;
|
|
9226
|
-
return message;
|
|
9227
|
-
}
|
|
9228
|
-
};
|
|
9229
|
-
function createBaseHashtagDmList() {
|
|
9230
|
-
return { hashtag_dm: [] };
|
|
9231
|
-
}
|
|
9232
|
-
var HashtagDmList = {
|
|
9233
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
9234
|
-
for (const v of message.hashtag_dm) {
|
|
9235
|
-
HashtagDm.encode(v, writer.uint32(10).fork()).ldelim();
|
|
9236
|
-
}
|
|
9237
|
-
return writer;
|
|
9238
|
-
},
|
|
9239
|
-
decode(input, length) {
|
|
9240
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
9241
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
9242
|
-
const message = createBaseHashtagDmList();
|
|
9243
|
-
while (reader.pos < end) {
|
|
9244
|
-
const tag = reader.uint32();
|
|
9245
|
-
switch (tag >>> 3) {
|
|
9246
|
-
case 1:
|
|
9247
|
-
if (tag !== 10) {
|
|
9248
|
-
break;
|
|
9249
|
-
}
|
|
9250
|
-
message.hashtag_dm.push(HashtagDm.decode(reader, reader.uint32()));
|
|
9251
|
-
continue;
|
|
9252
|
-
}
|
|
9253
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
9254
|
-
break;
|
|
9255
|
-
}
|
|
9256
|
-
reader.skipType(tag & 7);
|
|
9257
|
-
}
|
|
9258
|
-
return message;
|
|
9259
|
-
},
|
|
9260
|
-
fromJSON(object) {
|
|
9261
|
-
return {
|
|
9262
|
-
hashtag_dm: globalThis.Array.isArray(object == null ? void 0 : object.hashtag_dm) ? object.hashtag_dm.map((e) => HashtagDm.fromJSON(e)) : []
|
|
9263
|
-
};
|
|
9264
|
-
},
|
|
9265
|
-
toJSON(message) {
|
|
9266
|
-
var _a;
|
|
9267
|
-
const obj = {};
|
|
9268
|
-
if ((_a = message.hashtag_dm) == null ? void 0 : _a.length) {
|
|
9269
|
-
obj.hashtag_dm = message.hashtag_dm.map((e) => HashtagDm.toJSON(e));
|
|
9270
|
-
}
|
|
9271
|
-
return obj;
|
|
9272
|
-
},
|
|
9273
|
-
create(base) {
|
|
9274
|
-
return HashtagDmList.fromPartial(base != null ? base : {});
|
|
9275
|
-
},
|
|
9276
|
-
fromPartial(object) {
|
|
9277
|
-
var _a;
|
|
9278
|
-
const message = createBaseHashtagDmList();
|
|
9279
|
-
message.hashtag_dm = ((_a = object.hashtag_dm) == null ? void 0 : _a.map((e) => HashtagDm.fromPartial(e))) || [];
|
|
9280
|
-
return message;
|
|
9281
|
-
}
|
|
9282
|
-
};
|
|
9283
|
-
function createBaseHashtagDm() {
|
|
9284
|
-
return {
|
|
9285
|
-
channel_id: "0",
|
|
9286
|
-
channel_label: "",
|
|
9287
|
-
clan_id: "0",
|
|
9288
|
-
clan_name: "",
|
|
9289
|
-
meeting_code: "",
|
|
9290
|
-
type: 0,
|
|
9291
|
-
channel_private: 0,
|
|
9292
|
-
parent_id: "0"
|
|
9293
|
-
};
|
|
9294
|
-
}
|
|
9295
|
-
var HashtagDm = {
|
|
9296
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
9297
|
-
if (message.channel_id !== "0") {
|
|
9298
|
-
writer.uint32(8).int64(message.channel_id);
|
|
9299
|
-
}
|
|
9300
|
-
if (message.channel_label !== "") {
|
|
9301
|
-
writer.uint32(18).string(message.channel_label);
|
|
9302
|
-
}
|
|
9303
|
-
if (message.clan_id !== "0") {
|
|
9304
|
-
writer.uint32(24).int64(message.clan_id);
|
|
9305
|
-
}
|
|
9306
|
-
if (message.clan_name !== "") {
|
|
9307
|
-
writer.uint32(34).string(message.clan_name);
|
|
9308
|
-
}
|
|
9309
|
-
if (message.meeting_code !== "") {
|
|
9310
|
-
writer.uint32(42).string(message.meeting_code);
|
|
9311
|
-
}
|
|
9312
|
-
if (message.type !== 0) {
|
|
9313
|
-
writer.uint32(48).int32(message.type);
|
|
9314
|
-
}
|
|
9315
|
-
if (message.channel_private !== 0) {
|
|
9316
|
-
writer.uint32(56).int32(message.channel_private);
|
|
9317
|
-
}
|
|
9318
|
-
if (message.parent_id !== "0") {
|
|
9319
|
-
writer.uint32(64).int64(message.parent_id);
|
|
9320
|
-
}
|
|
9321
|
-
return writer;
|
|
9322
|
-
},
|
|
9323
|
-
decode(input, length) {
|
|
9324
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
9325
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
9326
|
-
const message = createBaseHashtagDm();
|
|
9327
|
-
while (reader.pos < end) {
|
|
9328
|
-
const tag = reader.uint32();
|
|
9329
|
-
switch (tag >>> 3) {
|
|
9330
|
-
case 1:
|
|
9331
|
-
if (tag !== 8) {
|
|
9332
|
-
break;
|
|
9333
|
-
}
|
|
9334
|
-
message.channel_id = longToString(reader.int64());
|
|
9335
|
-
continue;
|
|
9336
|
-
case 2:
|
|
9337
|
-
if (tag !== 18) {
|
|
9338
|
-
break;
|
|
9339
|
-
}
|
|
9340
|
-
message.channel_label = reader.string();
|
|
9341
|
-
continue;
|
|
9342
|
-
case 3:
|
|
9343
|
-
if (tag !== 24) {
|
|
9344
|
-
break;
|
|
9345
|
-
}
|
|
9346
|
-
message.clan_id = longToString(reader.int64());
|
|
9347
|
-
continue;
|
|
9348
|
-
case 4:
|
|
9349
|
-
if (tag !== 34) {
|
|
9350
|
-
break;
|
|
9351
|
-
}
|
|
9352
|
-
message.clan_name = reader.string();
|
|
9353
|
-
continue;
|
|
9354
|
-
case 5:
|
|
9355
|
-
if (tag !== 42) {
|
|
9356
|
-
break;
|
|
9357
|
-
}
|
|
9358
|
-
message.meeting_code = reader.string();
|
|
9359
|
-
continue;
|
|
9360
|
-
case 6:
|
|
9361
|
-
if (tag !== 48) {
|
|
9362
|
-
break;
|
|
9363
|
-
}
|
|
9364
|
-
message.type = reader.int32();
|
|
9365
|
-
continue;
|
|
9366
|
-
case 7:
|
|
9367
|
-
if (tag !== 56) {
|
|
9368
|
-
break;
|
|
9369
|
-
}
|
|
9370
|
-
message.channel_private = reader.int32();
|
|
9371
|
-
continue;
|
|
9372
|
-
case 8:
|
|
9373
|
-
if (tag !== 64) {
|
|
9374
|
-
break;
|
|
9375
|
-
}
|
|
9376
|
-
message.parent_id = longToString(reader.int64());
|
|
9377
|
-
continue;
|
|
9378
|
-
}
|
|
9379
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
9380
|
-
break;
|
|
9381
|
-
}
|
|
9382
|
-
reader.skipType(tag & 7);
|
|
9383
|
-
}
|
|
9384
|
-
return message;
|
|
9385
|
-
},
|
|
9386
|
-
fromJSON(object) {
|
|
9387
|
-
return {
|
|
9388
|
-
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
9389
|
-
channel_label: isSet2(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
9390
|
-
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
9391
|
-
clan_name: isSet2(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
9392
|
-
meeting_code: isSet2(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
|
|
9393
|
-
type: isSet2(object.type) ? globalThis.Number(object.type) : 0,
|
|
9394
|
-
channel_private: isSet2(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
9395
|
-
parent_id: isSet2(object.parent_id) ? globalThis.String(object.parent_id) : "0"
|
|
9396
|
-
};
|
|
9397
|
-
},
|
|
9398
|
-
toJSON(message) {
|
|
9399
|
-
const obj = {};
|
|
9400
|
-
if (message.channel_id !== "0") {
|
|
9401
|
-
obj.channel_id = message.channel_id;
|
|
9402
|
-
}
|
|
9403
|
-
if (message.channel_label !== "") {
|
|
9404
|
-
obj.channel_label = message.channel_label;
|
|
9405
|
-
}
|
|
9406
|
-
if (message.clan_id !== "0") {
|
|
9407
|
-
obj.clan_id = message.clan_id;
|
|
9408
|
-
}
|
|
9409
|
-
if (message.clan_name !== "") {
|
|
9410
|
-
obj.clan_name = message.clan_name;
|
|
9411
|
-
}
|
|
9412
|
-
if (message.meeting_code !== "") {
|
|
9413
|
-
obj.meeting_code = message.meeting_code;
|
|
9414
|
-
}
|
|
9415
|
-
if (message.type !== 0) {
|
|
9416
|
-
obj.type = Math.round(message.type);
|
|
9417
|
-
}
|
|
9418
|
-
if (message.channel_private !== 0) {
|
|
9419
|
-
obj.channel_private = Math.round(message.channel_private);
|
|
9420
|
-
}
|
|
9421
|
-
if (message.parent_id !== "0") {
|
|
9422
|
-
obj.parent_id = message.parent_id;
|
|
9423
|
-
}
|
|
9424
|
-
return obj;
|
|
9425
|
-
},
|
|
9426
|
-
create(base) {
|
|
9427
|
-
return HashtagDm.fromPartial(base != null ? base : {});
|
|
9428
|
-
},
|
|
9429
|
-
fromPartial(object) {
|
|
9430
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
9431
|
-
const message = createBaseHashtagDm();
|
|
9432
|
-
message.channel_id = (_a = object.channel_id) != null ? _a : "0";
|
|
9433
|
-
message.channel_label = (_b = object.channel_label) != null ? _b : "";
|
|
9434
|
-
message.clan_id = (_c = object.clan_id) != null ? _c : "0";
|
|
9435
|
-
message.clan_name = (_d = object.clan_name) != null ? _d : "";
|
|
9436
|
-
message.meeting_code = (_e = object.meeting_code) != null ? _e : "";
|
|
9437
|
-
message.type = (_f = object.type) != null ? _f : 0;
|
|
9438
|
-
message.channel_private = (_g = object.channel_private) != null ? _g : 0;
|
|
9439
|
-
message.parent_id = (_h = object.parent_id) != null ? _h : "0";
|
|
9440
|
-
return message;
|
|
9441
|
-
}
|
|
9442
|
-
};
|
|
9443
9101
|
function createBaseNotificationChannelCategorySettingList() {
|
|
9444
9102
|
return { notification_channel_category_settings_list: [] };
|
|
9445
9103
|
}
|
|
@@ -9853,15 +9511,15 @@ var ListPermissionsRequest = {
|
|
|
9853
9511
|
}
|
|
9854
9512
|
};
|
|
9855
9513
|
function createBaseListRoleUsersRequest() {
|
|
9856
|
-
return { role_id: "0", limit:
|
|
9514
|
+
return { role_id: "0", limit: 0, cursor: "" };
|
|
9857
9515
|
}
|
|
9858
9516
|
var ListRoleUsersRequest = {
|
|
9859
9517
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
9860
9518
|
if (message.role_id !== "0") {
|
|
9861
9519
|
writer.uint32(8).int64(message.role_id);
|
|
9862
9520
|
}
|
|
9863
|
-
if (message.limit !==
|
|
9864
|
-
|
|
9521
|
+
if (message.limit !== 0) {
|
|
9522
|
+
writer.uint32(16).int32(message.limit);
|
|
9865
9523
|
}
|
|
9866
9524
|
if (message.cursor !== "") {
|
|
9867
9525
|
writer.uint32(26).string(message.cursor);
|
|
@@ -9882,10 +9540,10 @@ var ListRoleUsersRequest = {
|
|
|
9882
9540
|
message.role_id = longToString(reader.int64());
|
|
9883
9541
|
continue;
|
|
9884
9542
|
case 2:
|
|
9885
|
-
if (tag !==
|
|
9543
|
+
if (tag !== 16) {
|
|
9886
9544
|
break;
|
|
9887
9545
|
}
|
|
9888
|
-
message.limit =
|
|
9546
|
+
message.limit = reader.int32();
|
|
9889
9547
|
continue;
|
|
9890
9548
|
case 3:
|
|
9891
9549
|
if (tag !== 26) {
|
|
@@ -9904,7 +9562,7 @@ var ListRoleUsersRequest = {
|
|
|
9904
9562
|
fromJSON(object) {
|
|
9905
9563
|
return {
|
|
9906
9564
|
role_id: isSet2(object.role_id) ? globalThis.String(object.role_id) : "0",
|
|
9907
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
9565
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
9908
9566
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
9909
9567
|
};
|
|
9910
9568
|
},
|
|
@@ -9913,8 +9571,8 @@ var ListRoleUsersRequest = {
|
|
|
9913
9571
|
if (message.role_id !== "0") {
|
|
9914
9572
|
obj.role_id = message.role_id;
|
|
9915
9573
|
}
|
|
9916
|
-
if (message.limit !==
|
|
9917
|
-
obj.limit = message.limit;
|
|
9574
|
+
if (message.limit !== 0) {
|
|
9575
|
+
obj.limit = Math.round(message.limit);
|
|
9918
9576
|
}
|
|
9919
9577
|
if (message.cursor !== "") {
|
|
9920
9578
|
obj.cursor = message.cursor;
|
|
@@ -9928,7 +9586,7 @@ var ListRoleUsersRequest = {
|
|
|
9928
9586
|
var _a, _b, _c;
|
|
9929
9587
|
const message = createBaseListRoleUsersRequest();
|
|
9930
9588
|
message.role_id = (_a = object.role_id) != null ? _a : "0";
|
|
9931
|
-
message.limit = (_b = object.limit) != null ? _b :
|
|
9589
|
+
message.limit = (_b = object.limit) != null ? _b : 0;
|
|
9932
9590
|
message.cursor = (_c = object.cursor) != null ? _c : "";
|
|
9933
9591
|
return message;
|
|
9934
9592
|
}
|
|
@@ -10273,7 +9931,7 @@ function createBaseCreateEventRequest() {
|
|
|
10273
9931
|
repeat_type: 0,
|
|
10274
9932
|
creator_id: "0",
|
|
10275
9933
|
user_id: "0",
|
|
10276
|
-
is_private:
|
|
9934
|
+
is_private: false,
|
|
10277
9935
|
meet_room: void 0
|
|
10278
9936
|
};
|
|
10279
9937
|
}
|
|
@@ -10324,8 +9982,8 @@ var CreateEventRequest = {
|
|
|
10324
9982
|
if (message.user_id !== "0") {
|
|
10325
9983
|
writer.uint32(120).int64(message.user_id);
|
|
10326
9984
|
}
|
|
10327
|
-
if (message.is_private !==
|
|
10328
|
-
|
|
9985
|
+
if (message.is_private !== false) {
|
|
9986
|
+
writer.uint32(128).bool(message.is_private);
|
|
10329
9987
|
}
|
|
10330
9988
|
if (message.meet_room !== void 0) {
|
|
10331
9989
|
GenerateMezonMeetResponse.encode(message.meet_room, writer.uint32(138).fork()).ldelim();
|
|
@@ -10430,10 +10088,10 @@ var CreateEventRequest = {
|
|
|
10430
10088
|
message.user_id = longToString(reader.int64());
|
|
10431
10089
|
continue;
|
|
10432
10090
|
case 16:
|
|
10433
|
-
if (tag !==
|
|
10091
|
+
if (tag !== 128) {
|
|
10434
10092
|
break;
|
|
10435
10093
|
}
|
|
10436
|
-
message.is_private =
|
|
10094
|
+
message.is_private = reader.bool();
|
|
10437
10095
|
continue;
|
|
10438
10096
|
case 17:
|
|
10439
10097
|
if (tag !== 138) {
|
|
@@ -10466,7 +10124,7 @@ var CreateEventRequest = {
|
|
|
10466
10124
|
repeat_type: isSet2(object.repeat_type) ? globalThis.Number(object.repeat_type) : 0,
|
|
10467
10125
|
creator_id: isSet2(object.creator_id) ? globalThis.String(object.creator_id) : "0",
|
|
10468
10126
|
user_id: isSet2(object.user_id) ? globalThis.String(object.user_id) : "0",
|
|
10469
|
-
is_private: isSet2(object.is_private) ? Boolean(object.is_private) :
|
|
10127
|
+
is_private: isSet2(object.is_private) ? globalThis.Boolean(object.is_private) : false,
|
|
10470
10128
|
meet_room: isSet2(object.meet_room) ? GenerateMezonMeetResponse.fromJSON(object.meet_room) : void 0
|
|
10471
10129
|
};
|
|
10472
10130
|
},
|
|
@@ -10517,7 +10175,7 @@ var CreateEventRequest = {
|
|
|
10517
10175
|
if (message.user_id !== "0") {
|
|
10518
10176
|
obj.user_id = message.user_id;
|
|
10519
10177
|
}
|
|
10520
|
-
if (message.is_private !==
|
|
10178
|
+
if (message.is_private !== false) {
|
|
10521
10179
|
obj.is_private = message.is_private;
|
|
10522
10180
|
}
|
|
10523
10181
|
if (message.meet_room !== void 0) {
|
|
@@ -10546,7 +10204,7 @@ var CreateEventRequest = {
|
|
|
10546
10204
|
message.repeat_type = (_m = object.repeat_type) != null ? _m : 0;
|
|
10547
10205
|
message.creator_id = (_n = object.creator_id) != null ? _n : "0";
|
|
10548
10206
|
message.user_id = (_o = object.user_id) != null ? _o : "0";
|
|
10549
|
-
message.is_private = (_p = object.is_private) != null ? _p :
|
|
10207
|
+
message.is_private = (_p = object.is_private) != null ? _p : false;
|
|
10550
10208
|
message.meet_room = object.meet_room !== void 0 && object.meet_room !== null ? GenerateMezonMeetResponse.fromPartial(object.meet_room) : void 0;
|
|
10551
10209
|
return message;
|
|
10552
10210
|
}
|
|
@@ -11121,15 +10779,15 @@ var ClanSticker = {
|
|
|
11121
10779
|
}
|
|
11122
10780
|
};
|
|
11123
10781
|
function createBaseAllUsersAddChannelRequest() {
|
|
11124
|
-
return { channel_id: "0", limit:
|
|
10782
|
+
return { channel_id: "0", limit: 0 };
|
|
11125
10783
|
}
|
|
11126
10784
|
var AllUsersAddChannelRequest = {
|
|
11127
10785
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
11128
10786
|
if (message.channel_id !== "0") {
|
|
11129
10787
|
writer.uint32(8).int64(message.channel_id);
|
|
11130
10788
|
}
|
|
11131
|
-
if (message.limit !==
|
|
11132
|
-
|
|
10789
|
+
if (message.limit !== 0) {
|
|
10790
|
+
writer.uint32(16).int32(message.limit);
|
|
11133
10791
|
}
|
|
11134
10792
|
return writer;
|
|
11135
10793
|
},
|
|
@@ -11147,10 +10805,10 @@ var AllUsersAddChannelRequest = {
|
|
|
11147
10805
|
message.channel_id = longToString(reader.int64());
|
|
11148
10806
|
continue;
|
|
11149
10807
|
case 2:
|
|
11150
|
-
if (tag !==
|
|
10808
|
+
if (tag !== 16) {
|
|
11151
10809
|
break;
|
|
11152
10810
|
}
|
|
11153
|
-
message.limit =
|
|
10811
|
+
message.limit = reader.int32();
|
|
11154
10812
|
continue;
|
|
11155
10813
|
}
|
|
11156
10814
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -11163,7 +10821,7 @@ var AllUsersAddChannelRequest = {
|
|
|
11163
10821
|
fromJSON(object) {
|
|
11164
10822
|
return {
|
|
11165
10823
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
11166
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
10824
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0
|
|
11167
10825
|
};
|
|
11168
10826
|
},
|
|
11169
10827
|
toJSON(message) {
|
|
@@ -11171,8 +10829,8 @@ var AllUsersAddChannelRequest = {
|
|
|
11171
10829
|
if (message.channel_id !== "0") {
|
|
11172
10830
|
obj.channel_id = message.channel_id;
|
|
11173
10831
|
}
|
|
11174
|
-
if (message.limit !==
|
|
11175
|
-
obj.limit = message.limit;
|
|
10832
|
+
if (message.limit !== 0) {
|
|
10833
|
+
obj.limit = Math.round(message.limit);
|
|
11176
10834
|
}
|
|
11177
10835
|
return obj;
|
|
11178
10836
|
},
|
|
@@ -11183,20 +10841,12 @@ var AllUsersAddChannelRequest = {
|
|
|
11183
10841
|
var _a, _b;
|
|
11184
10842
|
const message = createBaseAllUsersAddChannelRequest();
|
|
11185
10843
|
message.channel_id = (_a = object.channel_id) != null ? _a : "0";
|
|
11186
|
-
message.limit = (_b = object.limit) != null ? _b :
|
|
10844
|
+
message.limit = (_b = object.limit) != null ? _b : 0;
|
|
11187
10845
|
return message;
|
|
11188
10846
|
}
|
|
11189
10847
|
};
|
|
11190
10848
|
function createBaseAllUsersAddChannelResponse() {
|
|
11191
|
-
return {
|
|
11192
|
-
channel_id: "0",
|
|
11193
|
-
user_ids: [],
|
|
11194
|
-
limit: void 0,
|
|
11195
|
-
usernames: [],
|
|
11196
|
-
display_names: [],
|
|
11197
|
-
avatars: [],
|
|
11198
|
-
onlines: []
|
|
11199
|
-
};
|
|
10849
|
+
return { channel_id: "0", user_ids: [], limit: 0, usernames: [], display_names: [], avatars: [], onlines: [] };
|
|
11200
10850
|
}
|
|
11201
10851
|
var AllUsersAddChannelResponse = {
|
|
11202
10852
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -11208,8 +10858,8 @@ var AllUsersAddChannelResponse = {
|
|
|
11208
10858
|
writer.int64(v);
|
|
11209
10859
|
}
|
|
11210
10860
|
writer.ldelim();
|
|
11211
|
-
if (message.limit !==
|
|
11212
|
-
|
|
10861
|
+
if (message.limit !== 0) {
|
|
10862
|
+
writer.uint32(24).int32(message.limit);
|
|
11213
10863
|
}
|
|
11214
10864
|
for (const v of message.usernames) {
|
|
11215
10865
|
writer.uint32(34).string(v);
|
|
@@ -11254,10 +10904,10 @@ var AllUsersAddChannelResponse = {
|
|
|
11254
10904
|
}
|
|
11255
10905
|
break;
|
|
11256
10906
|
case 3:
|
|
11257
|
-
if (tag !==
|
|
10907
|
+
if (tag !== 24) {
|
|
11258
10908
|
break;
|
|
11259
10909
|
}
|
|
11260
|
-
message.limit =
|
|
10910
|
+
message.limit = reader.int32();
|
|
11261
10911
|
continue;
|
|
11262
10912
|
case 4:
|
|
11263
10913
|
if (tag !== 34) {
|
|
@@ -11302,7 +10952,7 @@ var AllUsersAddChannelResponse = {
|
|
|
11302
10952
|
return {
|
|
11303
10953
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
11304
10954
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
11305
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
10955
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
11306
10956
|
usernames: globalThis.Array.isArray(object == null ? void 0 : object.usernames) ? object.usernames.map((e) => globalThis.String(e)) : [],
|
|
11307
10957
|
display_names: globalThis.Array.isArray(object == null ? void 0 : object.display_names) ? object.display_names.map((e) => globalThis.String(e)) : [],
|
|
11308
10958
|
avatars: globalThis.Array.isArray(object == null ? void 0 : object.avatars) ? object.avatars.map((e) => globalThis.String(e)) : [],
|
|
@@ -11318,8 +10968,8 @@ var AllUsersAddChannelResponse = {
|
|
|
11318
10968
|
if ((_a = message.user_ids) == null ? void 0 : _a.length) {
|
|
11319
10969
|
obj.user_ids = message.user_ids;
|
|
11320
10970
|
}
|
|
11321
|
-
if (message.limit !==
|
|
11322
|
-
obj.limit = message.limit;
|
|
10971
|
+
if (message.limit !== 0) {
|
|
10972
|
+
obj.limit = Math.round(message.limit);
|
|
11323
10973
|
}
|
|
11324
10974
|
if ((_b = message.usernames) == null ? void 0 : _b.length) {
|
|
11325
10975
|
obj.usernames = message.usernames;
|
|
@@ -11343,7 +10993,7 @@ var AllUsersAddChannelResponse = {
|
|
|
11343
10993
|
const message = createBaseAllUsersAddChannelResponse();
|
|
11344
10994
|
message.channel_id = (_a = object.channel_id) != null ? _a : "0";
|
|
11345
10995
|
message.user_ids = ((_b = object.user_ids) == null ? void 0 : _b.map((e) => e)) || [];
|
|
11346
|
-
message.limit = (_c = object.limit) != null ? _c :
|
|
10996
|
+
message.limit = (_c = object.limit) != null ? _c : 0;
|
|
11347
10997
|
message.usernames = ((_d = object.usernames) == null ? void 0 : _d.map((e) => e)) || [];
|
|
11348
10998
|
message.display_names = ((_e = object.display_names) == null ? void 0 : _e.map((e) => e)) || [];
|
|
11349
10999
|
message.avatars = ((_f = object.avatars) == null ? void 0 : _f.map((e) => e)) || [];
|
|
@@ -12792,12 +12442,12 @@ function createBaseChannelSettingListRequest() {
|
|
|
12792
12442
|
clan_id: "0",
|
|
12793
12443
|
parent_id: "0",
|
|
12794
12444
|
category_id: "0",
|
|
12795
|
-
private_channel:
|
|
12796
|
-
active:
|
|
12797
|
-
status:
|
|
12798
|
-
type:
|
|
12799
|
-
limit:
|
|
12800
|
-
page:
|
|
12445
|
+
private_channel: 0,
|
|
12446
|
+
active: 0,
|
|
12447
|
+
status: 0,
|
|
12448
|
+
type: 0,
|
|
12449
|
+
limit: 0,
|
|
12450
|
+
page: 0,
|
|
12801
12451
|
channel_label: ""
|
|
12802
12452
|
};
|
|
12803
12453
|
}
|
|
@@ -12812,23 +12462,23 @@ var ChannelSettingListRequest = {
|
|
|
12812
12462
|
if (message.category_id !== "0") {
|
|
12813
12463
|
writer.uint32(24).int64(message.category_id);
|
|
12814
12464
|
}
|
|
12815
|
-
if (message.private_channel !==
|
|
12816
|
-
|
|
12465
|
+
if (message.private_channel !== 0) {
|
|
12466
|
+
writer.uint32(32).int32(message.private_channel);
|
|
12817
12467
|
}
|
|
12818
|
-
if (message.active !==
|
|
12819
|
-
|
|
12468
|
+
if (message.active !== 0) {
|
|
12469
|
+
writer.uint32(40).int32(message.active);
|
|
12820
12470
|
}
|
|
12821
|
-
if (message.status !==
|
|
12822
|
-
|
|
12471
|
+
if (message.status !== 0) {
|
|
12472
|
+
writer.uint32(48).int32(message.status);
|
|
12823
12473
|
}
|
|
12824
|
-
if (message.type !==
|
|
12825
|
-
|
|
12474
|
+
if (message.type !== 0) {
|
|
12475
|
+
writer.uint32(56).int32(message.type);
|
|
12826
12476
|
}
|
|
12827
|
-
if (message.limit !==
|
|
12828
|
-
|
|
12477
|
+
if (message.limit !== 0) {
|
|
12478
|
+
writer.uint32(64).int32(message.limit);
|
|
12829
12479
|
}
|
|
12830
|
-
if (message.page !==
|
|
12831
|
-
|
|
12480
|
+
if (message.page !== 0) {
|
|
12481
|
+
writer.uint32(72).int32(message.page);
|
|
12832
12482
|
}
|
|
12833
12483
|
if (message.channel_label !== "") {
|
|
12834
12484
|
writer.uint32(82).string(message.channel_label);
|
|
@@ -12861,40 +12511,40 @@ var ChannelSettingListRequest = {
|
|
|
12861
12511
|
message.category_id = longToString(reader.int64());
|
|
12862
12512
|
continue;
|
|
12863
12513
|
case 4:
|
|
12864
|
-
if (tag !==
|
|
12514
|
+
if (tag !== 32) {
|
|
12865
12515
|
break;
|
|
12866
12516
|
}
|
|
12867
|
-
message.private_channel =
|
|
12517
|
+
message.private_channel = reader.int32();
|
|
12868
12518
|
continue;
|
|
12869
12519
|
case 5:
|
|
12870
|
-
if (tag !==
|
|
12520
|
+
if (tag !== 40) {
|
|
12871
12521
|
break;
|
|
12872
12522
|
}
|
|
12873
|
-
message.active =
|
|
12523
|
+
message.active = reader.int32();
|
|
12874
12524
|
continue;
|
|
12875
12525
|
case 6:
|
|
12876
|
-
if (tag !==
|
|
12526
|
+
if (tag !== 48) {
|
|
12877
12527
|
break;
|
|
12878
12528
|
}
|
|
12879
|
-
message.status =
|
|
12529
|
+
message.status = reader.int32();
|
|
12880
12530
|
continue;
|
|
12881
12531
|
case 7:
|
|
12882
|
-
if (tag !==
|
|
12532
|
+
if (tag !== 56) {
|
|
12883
12533
|
break;
|
|
12884
12534
|
}
|
|
12885
|
-
message.type =
|
|
12535
|
+
message.type = reader.int32();
|
|
12886
12536
|
continue;
|
|
12887
12537
|
case 8:
|
|
12888
|
-
if (tag !==
|
|
12538
|
+
if (tag !== 64) {
|
|
12889
12539
|
break;
|
|
12890
12540
|
}
|
|
12891
|
-
message.limit =
|
|
12541
|
+
message.limit = reader.int32();
|
|
12892
12542
|
continue;
|
|
12893
12543
|
case 9:
|
|
12894
|
-
if (tag !==
|
|
12544
|
+
if (tag !== 72) {
|
|
12895
12545
|
break;
|
|
12896
12546
|
}
|
|
12897
|
-
message.page =
|
|
12547
|
+
message.page = reader.int32();
|
|
12898
12548
|
continue;
|
|
12899
12549
|
case 10:
|
|
12900
12550
|
if (tag !== 82) {
|
|
@@ -12915,12 +12565,12 @@ var ChannelSettingListRequest = {
|
|
|
12915
12565
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
12916
12566
|
parent_id: isSet2(object.parent_id) ? globalThis.String(object.parent_id) : "0",
|
|
12917
12567
|
category_id: isSet2(object.category_id) ? globalThis.String(object.category_id) : "0",
|
|
12918
|
-
private_channel: isSet2(object.private_channel) ? Number(object.private_channel) :
|
|
12919
|
-
active: isSet2(object.active) ? Number(object.active) :
|
|
12920
|
-
status: isSet2(object.status) ? Number(object.status) :
|
|
12921
|
-
type: isSet2(object.type) ? Number(object.type) :
|
|
12922
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
12923
|
-
page: isSet2(object.page) ? Number(object.page) :
|
|
12568
|
+
private_channel: isSet2(object.private_channel) ? globalThis.Number(object.private_channel) : 0,
|
|
12569
|
+
active: isSet2(object.active) ? globalThis.Number(object.active) : 0,
|
|
12570
|
+
status: isSet2(object.status) ? globalThis.Number(object.status) : 0,
|
|
12571
|
+
type: isSet2(object.type) ? globalThis.Number(object.type) : 0,
|
|
12572
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
12573
|
+
page: isSet2(object.page) ? globalThis.Number(object.page) : 0,
|
|
12924
12574
|
channel_label: isSet2(object.channel_label) ? globalThis.String(object.channel_label) : ""
|
|
12925
12575
|
};
|
|
12926
12576
|
},
|
|
@@ -12935,23 +12585,23 @@ var ChannelSettingListRequest = {
|
|
|
12935
12585
|
if (message.category_id !== "0") {
|
|
12936
12586
|
obj.category_id = message.category_id;
|
|
12937
12587
|
}
|
|
12938
|
-
if (message.private_channel !==
|
|
12939
|
-
obj.private_channel = message.private_channel;
|
|
12588
|
+
if (message.private_channel !== 0) {
|
|
12589
|
+
obj.private_channel = Math.round(message.private_channel);
|
|
12940
12590
|
}
|
|
12941
|
-
if (message.active !==
|
|
12942
|
-
obj.active = message.active;
|
|
12591
|
+
if (message.active !== 0) {
|
|
12592
|
+
obj.active = Math.round(message.active);
|
|
12943
12593
|
}
|
|
12944
|
-
if (message.status !==
|
|
12945
|
-
obj.status = message.status;
|
|
12594
|
+
if (message.status !== 0) {
|
|
12595
|
+
obj.status = Math.round(message.status);
|
|
12946
12596
|
}
|
|
12947
|
-
if (message.type !==
|
|
12948
|
-
obj.type = message.type;
|
|
12597
|
+
if (message.type !== 0) {
|
|
12598
|
+
obj.type = Math.round(message.type);
|
|
12949
12599
|
}
|
|
12950
|
-
if (message.limit !==
|
|
12951
|
-
obj.limit = message.limit;
|
|
12600
|
+
if (message.limit !== 0) {
|
|
12601
|
+
obj.limit = Math.round(message.limit);
|
|
12952
12602
|
}
|
|
12953
|
-
if (message.page !==
|
|
12954
|
-
obj.page = message.page;
|
|
12603
|
+
if (message.page !== 0) {
|
|
12604
|
+
obj.page = Math.round(message.page);
|
|
12955
12605
|
}
|
|
12956
12606
|
if (message.channel_label !== "") {
|
|
12957
12607
|
obj.channel_label = message.channel_label;
|
|
@@ -12967,12 +12617,12 @@ var ChannelSettingListRequest = {
|
|
|
12967
12617
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
12968
12618
|
message.parent_id = (_b = object.parent_id) != null ? _b : "0";
|
|
12969
12619
|
message.category_id = (_c = object.category_id) != null ? _c : "0";
|
|
12970
|
-
message.private_channel = (_d = object.private_channel) != null ? _d :
|
|
12971
|
-
message.active = (_e = object.active) != null ? _e :
|
|
12972
|
-
message.status = (_f = object.status) != null ? _f :
|
|
12973
|
-
message.type = (_g = object.type) != null ? _g :
|
|
12974
|
-
message.limit = (_h = object.limit) != null ? _h :
|
|
12975
|
-
message.page = (_i = object.page) != null ? _i :
|
|
12620
|
+
message.private_channel = (_d = object.private_channel) != null ? _d : 0;
|
|
12621
|
+
message.active = (_e = object.active) != null ? _e : 0;
|
|
12622
|
+
message.status = (_f = object.status) != null ? _f : 0;
|
|
12623
|
+
message.type = (_g = object.type) != null ? _g : 0;
|
|
12624
|
+
message.limit = (_h = object.limit) != null ? _h : 0;
|
|
12625
|
+
message.page = (_i = object.page) != null ? _i : 0;
|
|
12976
12626
|
message.channel_label = (_j = object.channel_label) != null ? _j : "";
|
|
12977
12627
|
return message;
|
|
12978
12628
|
}
|
|
@@ -24079,7 +23729,7 @@ var PermissionChangedEvent = {
|
|
|
24079
23729
|
}
|
|
24080
23730
|
};
|
|
24081
23731
|
function createBaseMessageButtonClicked() {
|
|
24082
|
-
return { message_id: "0", channel_id: "0", button_id: "
|
|
23732
|
+
return { message_id: "0", channel_id: "0", button_id: "", sender_id: "0", user_id: "0", extra_data: "" };
|
|
24083
23733
|
}
|
|
24084
23734
|
var MessageButtonClicked = {
|
|
24085
23735
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
@@ -24089,8 +23739,8 @@ var MessageButtonClicked = {
|
|
|
24089
23739
|
if (message.channel_id !== "0") {
|
|
24090
23740
|
writer.uint32(16).int64(message.channel_id);
|
|
24091
23741
|
}
|
|
24092
|
-
if (message.button_id !== "
|
|
24093
|
-
writer.uint32(
|
|
23742
|
+
if (message.button_id !== "") {
|
|
23743
|
+
writer.uint32(26).string(message.button_id);
|
|
24094
23744
|
}
|
|
24095
23745
|
if (message.sender_id !== "0") {
|
|
24096
23746
|
writer.uint32(32).int64(message.sender_id);
|
|
@@ -24123,10 +23773,10 @@ var MessageButtonClicked = {
|
|
|
24123
23773
|
message.channel_id = longToString2(reader.int64());
|
|
24124
23774
|
continue;
|
|
24125
23775
|
case 3:
|
|
24126
|
-
if (tag !==
|
|
23776
|
+
if (tag !== 26) {
|
|
24127
23777
|
break;
|
|
24128
23778
|
}
|
|
24129
|
-
message.button_id =
|
|
23779
|
+
message.button_id = reader.string();
|
|
24130
23780
|
continue;
|
|
24131
23781
|
case 4:
|
|
24132
23782
|
if (tag !== 32) {
|
|
@@ -24158,7 +23808,7 @@ var MessageButtonClicked = {
|
|
|
24158
23808
|
return {
|
|
24159
23809
|
message_id: isSet3(object.message_id) ? globalThis.String(object.message_id) : "0",
|
|
24160
23810
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
24161
|
-
button_id: isSet3(object.button_id) ? globalThis.String(object.button_id) : "
|
|
23811
|
+
button_id: isSet3(object.button_id) ? globalThis.String(object.button_id) : "",
|
|
24162
23812
|
sender_id: isSet3(object.sender_id) ? globalThis.String(object.sender_id) : "0",
|
|
24163
23813
|
user_id: isSet3(object.user_id) ? globalThis.String(object.user_id) : "0",
|
|
24164
23814
|
extra_data: isSet3(object.extra_data) ? globalThis.String(object.extra_data) : ""
|
|
@@ -24172,7 +23822,7 @@ var MessageButtonClicked = {
|
|
|
24172
23822
|
if (message.channel_id !== "0") {
|
|
24173
23823
|
obj.channel_id = message.channel_id;
|
|
24174
23824
|
}
|
|
24175
|
-
if (message.button_id !== "
|
|
23825
|
+
if (message.button_id !== "") {
|
|
24176
23826
|
obj.button_id = message.button_id;
|
|
24177
23827
|
}
|
|
24178
23828
|
if (message.sender_id !== "0") {
|
|
@@ -24194,7 +23844,7 @@ var MessageButtonClicked = {
|
|
|
24194
23844
|
const message = createBaseMessageButtonClicked();
|
|
24195
23845
|
message.message_id = (_a = object.message_id) != null ? _a : "0";
|
|
24196
23846
|
message.channel_id = (_b = object.channel_id) != null ? _b : "0";
|
|
24197
|
-
message.button_id = (_c = object.button_id) != null ? _c : "
|
|
23847
|
+
message.button_id = (_c = object.button_id) != null ? _c : "";
|
|
24198
23848
|
message.sender_id = (_d = object.sender_id) != null ? _d : "0";
|
|
24199
23849
|
message.user_id = (_e = object.user_id) != null ? _e : "0";
|
|
24200
23850
|
message.extra_data = (_f = object.extra_data) != null ? _f : "";
|
|
@@ -24337,7 +23987,7 @@ var ListActivity = {
|
|
|
24337
23987
|
}
|
|
24338
23988
|
};
|
|
24339
23989
|
function createBaseDropdownBoxSelected() {
|
|
24340
|
-
return { message_id: "0", channel_id: "0", selectbox_id: "
|
|
23990
|
+
return { message_id: "0", channel_id: "0", selectbox_id: "", sender_id: "0", user_id: "0", values: [] };
|
|
24341
23991
|
}
|
|
24342
23992
|
var DropdownBoxSelected = {
|
|
24343
23993
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
@@ -24347,8 +23997,8 @@ var DropdownBoxSelected = {
|
|
|
24347
23997
|
if (message.channel_id !== "0") {
|
|
24348
23998
|
writer.uint32(16).int64(message.channel_id);
|
|
24349
23999
|
}
|
|
24350
|
-
if (message.selectbox_id !== "
|
|
24351
|
-
writer.uint32(
|
|
24000
|
+
if (message.selectbox_id !== "") {
|
|
24001
|
+
writer.uint32(26).string(message.selectbox_id);
|
|
24352
24002
|
}
|
|
24353
24003
|
if (message.sender_id !== "0") {
|
|
24354
24004
|
writer.uint32(32).int64(message.sender_id);
|
|
@@ -24381,10 +24031,10 @@ var DropdownBoxSelected = {
|
|
|
24381
24031
|
message.channel_id = longToString2(reader.int64());
|
|
24382
24032
|
continue;
|
|
24383
24033
|
case 3:
|
|
24384
|
-
if (tag !==
|
|
24034
|
+
if (tag !== 26) {
|
|
24385
24035
|
break;
|
|
24386
24036
|
}
|
|
24387
|
-
message.selectbox_id =
|
|
24037
|
+
message.selectbox_id = reader.string();
|
|
24388
24038
|
continue;
|
|
24389
24039
|
case 4:
|
|
24390
24040
|
if (tag !== 32) {
|
|
@@ -24416,7 +24066,7 @@ var DropdownBoxSelected = {
|
|
|
24416
24066
|
return {
|
|
24417
24067
|
message_id: isSet3(object.message_id) ? globalThis.String(object.message_id) : "0",
|
|
24418
24068
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
24419
|
-
selectbox_id: isSet3(object.selectbox_id) ? globalThis.String(object.selectbox_id) : "
|
|
24069
|
+
selectbox_id: isSet3(object.selectbox_id) ? globalThis.String(object.selectbox_id) : "",
|
|
24420
24070
|
sender_id: isSet3(object.sender_id) ? globalThis.String(object.sender_id) : "0",
|
|
24421
24071
|
user_id: isSet3(object.user_id) ? globalThis.String(object.user_id) : "0",
|
|
24422
24072
|
values: globalThis.Array.isArray(object == null ? void 0 : object.values) ? object.values.map((e) => globalThis.String(e)) : []
|
|
@@ -24431,7 +24081,7 @@ var DropdownBoxSelected = {
|
|
|
24431
24081
|
if (message.channel_id !== "0") {
|
|
24432
24082
|
obj.channel_id = message.channel_id;
|
|
24433
24083
|
}
|
|
24434
|
-
if (message.selectbox_id !== "
|
|
24084
|
+
if (message.selectbox_id !== "") {
|
|
24435
24085
|
obj.selectbox_id = message.selectbox_id;
|
|
24436
24086
|
}
|
|
24437
24087
|
if (message.sender_id !== "0") {
|
|
@@ -24453,7 +24103,7 @@ var DropdownBoxSelected = {
|
|
|
24453
24103
|
const message = createBaseDropdownBoxSelected();
|
|
24454
24104
|
message.message_id = (_a = object.message_id) != null ? _a : "0";
|
|
24455
24105
|
message.channel_id = (_b = object.channel_id) != null ? _b : "0";
|
|
24456
|
-
message.selectbox_id = (_c = object.selectbox_id) != null ? _c : "
|
|
24106
|
+
message.selectbox_id = (_c = object.selectbox_id) != null ? _c : "";
|
|
24457
24107
|
message.sender_id = (_d = object.sender_id) != null ? _d : "0";
|
|
24458
24108
|
message.user_id = (_e = object.user_id) != null ? _e : "0";
|
|
24459
24109
|
message.values = ((_f = object.values) == null ? void 0 : _f.map((e) => e)) || [];
|
|
@@ -25136,8 +24786,6 @@ function createBaseListDataSocket() {
|
|
|
25136
24786
|
channel_user_list: void 0,
|
|
25137
24787
|
list_channel_attachment_req: void 0,
|
|
25138
24788
|
channel_attachment_list: void 0,
|
|
25139
|
-
hashtag_dm_req: void 0,
|
|
25140
|
-
hashtag_dm_list: void 0,
|
|
25141
24789
|
channel_setting_req: void 0,
|
|
25142
24790
|
channel_setting_list: void 0,
|
|
25143
24791
|
favorite_channel_req: void 0,
|
|
@@ -25242,12 +24890,6 @@ var ListDataSocket = {
|
|
|
25242
24890
|
if (message.channel_attachment_list !== void 0) {
|
|
25243
24891
|
ChannelAttachmentList.encode(message.channel_attachment_list, writer.uint32(138).fork()).ldelim();
|
|
25244
24892
|
}
|
|
25245
|
-
if (message.hashtag_dm_req !== void 0) {
|
|
25246
|
-
HashtagDmListRequest.encode(message.hashtag_dm_req, writer.uint32(146).fork()).ldelim();
|
|
25247
|
-
}
|
|
25248
|
-
if (message.hashtag_dm_list !== void 0) {
|
|
25249
|
-
HashtagDmList.encode(message.hashtag_dm_list, writer.uint32(154).fork()).ldelim();
|
|
25250
|
-
}
|
|
25251
24893
|
if (message.channel_setting_req !== void 0) {
|
|
25252
24894
|
ChannelSettingListRequest.encode(message.channel_setting_req, writer.uint32(162).fork()).ldelim();
|
|
25253
24895
|
}
|
|
@@ -25506,18 +25148,6 @@ var ListDataSocket = {
|
|
|
25506
25148
|
}
|
|
25507
25149
|
message.channel_attachment_list = ChannelAttachmentList.decode(reader, reader.uint32());
|
|
25508
25150
|
continue;
|
|
25509
|
-
case 18:
|
|
25510
|
-
if (tag !== 146) {
|
|
25511
|
-
break;
|
|
25512
|
-
}
|
|
25513
|
-
message.hashtag_dm_req = HashtagDmListRequest.decode(reader, reader.uint32());
|
|
25514
|
-
continue;
|
|
25515
|
-
case 19:
|
|
25516
|
-
if (tag !== 154) {
|
|
25517
|
-
break;
|
|
25518
|
-
}
|
|
25519
|
-
message.hashtag_dm_list = HashtagDmList.decode(reader, reader.uint32());
|
|
25520
|
-
continue;
|
|
25521
25151
|
case 20:
|
|
25522
25152
|
if (tag !== 162) {
|
|
25523
25153
|
break;
|
|
@@ -25842,8 +25472,6 @@ var ListDataSocket = {
|
|
|
25842
25472
|
channel_user_list: isSet3(object.channel_user_list) ? ChannelUserList.fromJSON(object.channel_user_list) : void 0,
|
|
25843
25473
|
list_channel_attachment_req: isSet3(object.list_channel_attachment_req) ? ListChannelAttachmentRequest.fromJSON(object.list_channel_attachment_req) : void 0,
|
|
25844
25474
|
channel_attachment_list: isSet3(object.channel_attachment_list) ? ChannelAttachmentList.fromJSON(object.channel_attachment_list) : void 0,
|
|
25845
|
-
hashtag_dm_req: isSet3(object.hashtag_dm_req) ? HashtagDmListRequest.fromJSON(object.hashtag_dm_req) : void 0,
|
|
25846
|
-
hashtag_dm_list: isSet3(object.hashtag_dm_list) ? HashtagDmList.fromJSON(object.hashtag_dm_list) : void 0,
|
|
25847
25475
|
channel_setting_req: isSet3(object.channel_setting_req) ? ChannelSettingListRequest.fromJSON(object.channel_setting_req) : void 0,
|
|
25848
25476
|
channel_setting_list: isSet3(object.channel_setting_list) ? ChannelSettingListResponse.fromJSON(object.channel_setting_list) : void 0,
|
|
25849
25477
|
favorite_channel_req: isSet3(object.favorite_channel_req) ? ListFavoriteChannelRequest.fromJSON(object.favorite_channel_req) : void 0,
|
|
@@ -25948,12 +25576,6 @@ var ListDataSocket = {
|
|
|
25948
25576
|
if (message.channel_attachment_list !== void 0) {
|
|
25949
25577
|
obj.channel_attachment_list = ChannelAttachmentList.toJSON(message.channel_attachment_list);
|
|
25950
25578
|
}
|
|
25951
|
-
if (message.hashtag_dm_req !== void 0) {
|
|
25952
|
-
obj.hashtag_dm_req = HashtagDmListRequest.toJSON(message.hashtag_dm_req);
|
|
25953
|
-
}
|
|
25954
|
-
if (message.hashtag_dm_list !== void 0) {
|
|
25955
|
-
obj.hashtag_dm_list = HashtagDmList.toJSON(message.hashtag_dm_list);
|
|
25956
|
-
}
|
|
25957
25579
|
if (message.channel_setting_req !== void 0) {
|
|
25958
25580
|
obj.channel_setting_req = ChannelSettingListRequest.toJSON(message.channel_setting_req);
|
|
25959
25581
|
}
|
|
@@ -26130,8 +25752,6 @@ var ListDataSocket = {
|
|
|
26130
25752
|
message.channel_user_list = object.channel_user_list !== void 0 && object.channel_user_list !== null ? ChannelUserList.fromPartial(object.channel_user_list) : void 0;
|
|
26131
25753
|
message.list_channel_attachment_req = object.list_channel_attachment_req !== void 0 && object.list_channel_attachment_req !== null ? ListChannelAttachmentRequest.fromPartial(object.list_channel_attachment_req) : void 0;
|
|
26132
25754
|
message.channel_attachment_list = object.channel_attachment_list !== void 0 && object.channel_attachment_list !== null ? ChannelAttachmentList.fromPartial(object.channel_attachment_list) : void 0;
|
|
26133
|
-
message.hashtag_dm_req = object.hashtag_dm_req !== void 0 && object.hashtag_dm_req !== null ? HashtagDmListRequest.fromPartial(object.hashtag_dm_req) : void 0;
|
|
26134
|
-
message.hashtag_dm_list = object.hashtag_dm_list !== void 0 && object.hashtag_dm_list !== null ? HashtagDmList.fromPartial(object.hashtag_dm_list) : void 0;
|
|
26135
25755
|
message.channel_setting_req = object.channel_setting_req !== void 0 && object.channel_setting_req !== null ? ChannelSettingListRequest.fromPartial(object.channel_setting_req) : void 0;
|
|
26136
25756
|
message.channel_setting_list = object.channel_setting_list !== void 0 && object.channel_setting_list !== null ? ChannelSettingListResponse.fromPartial(object.channel_setting_list) : void 0;
|
|
26137
25757
|
message.favorite_channel_req = object.favorite_channel_req !== void 0 && object.favorite_channel_req !== null ? ListFavoriteChannelRequest.fromPartial(object.favorite_channel_req) : void 0;
|