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
|
@@ -2269,57 +2269,6 @@ var import_minimal = __toESM(require_minimal2());
|
|
|
2269
2269
|
// google/protobuf/wrappers.ts
|
|
2270
2270
|
var import_long = __toESM(require_long());
|
|
2271
2271
|
var import_minimal2 = __toESM(require_minimal2());
|
|
2272
|
-
function createBaseInt32Value() {
|
|
2273
|
-
return { value: 0 };
|
|
2274
|
-
}
|
|
2275
|
-
var Int32Value = {
|
|
2276
|
-
encode(message, writer = import_minimal2.default.Writer.create()) {
|
|
2277
|
-
if (message.value !== 0) {
|
|
2278
|
-
writer.uint32(8).int32(message.value);
|
|
2279
|
-
}
|
|
2280
|
-
return writer;
|
|
2281
|
-
},
|
|
2282
|
-
decode(input, length) {
|
|
2283
|
-
const reader = input instanceof import_minimal2.default.Reader ? input : import_minimal2.default.Reader.create(input);
|
|
2284
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2285
|
-
const message = createBaseInt32Value();
|
|
2286
|
-
while (reader.pos < end) {
|
|
2287
|
-
const tag = reader.uint32();
|
|
2288
|
-
switch (tag >>> 3) {
|
|
2289
|
-
case 1:
|
|
2290
|
-
if (tag !== 8) {
|
|
2291
|
-
break;
|
|
2292
|
-
}
|
|
2293
|
-
message.value = reader.int32();
|
|
2294
|
-
continue;
|
|
2295
|
-
}
|
|
2296
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2297
|
-
break;
|
|
2298
|
-
}
|
|
2299
|
-
reader.skipType(tag & 7);
|
|
2300
|
-
}
|
|
2301
|
-
return message;
|
|
2302
|
-
},
|
|
2303
|
-
fromJSON(object) {
|
|
2304
|
-
return { value: isSet(object.value) ? globalThis.Number(object.value) : 0 };
|
|
2305
|
-
},
|
|
2306
|
-
toJSON(message) {
|
|
2307
|
-
const obj = {};
|
|
2308
|
-
if (message.value !== 0) {
|
|
2309
|
-
obj.value = Math.round(message.value);
|
|
2310
|
-
}
|
|
2311
|
-
return obj;
|
|
2312
|
-
},
|
|
2313
|
-
create(base) {
|
|
2314
|
-
return Int32Value.fromPartial(base != null ? base : {});
|
|
2315
|
-
},
|
|
2316
|
-
fromPartial(object) {
|
|
2317
|
-
var _a;
|
|
2318
|
-
const message = createBaseInt32Value();
|
|
2319
|
-
message.value = (_a = object.value) != null ? _a : 0;
|
|
2320
|
-
return message;
|
|
2321
|
-
}
|
|
2322
|
-
};
|
|
2323
2272
|
function createBaseBoolValue() {
|
|
2324
2273
|
return { value: false };
|
|
2325
2274
|
}
|
|
@@ -4740,7 +4689,7 @@ var ClanUserList_ClanUser = {
|
|
|
4740
4689
|
}
|
|
4741
4690
|
};
|
|
4742
4691
|
function createBaseListChannelMessagesRequest() {
|
|
4743
|
-
return { clan_id: "0", channel_id: "0", message_id: "0", limit:
|
|
4692
|
+
return { clan_id: "0", channel_id: "0", message_id: "0", limit: 0, direction: 0, topic_id: "0" };
|
|
4744
4693
|
}
|
|
4745
4694
|
var ListChannelMessagesRequest = {
|
|
4746
4695
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -4753,11 +4702,11 @@ var ListChannelMessagesRequest = {
|
|
|
4753
4702
|
if (message.message_id !== "0") {
|
|
4754
4703
|
writer.uint32(24).int64(message.message_id);
|
|
4755
4704
|
}
|
|
4756
|
-
if (message.limit !==
|
|
4757
|
-
|
|
4705
|
+
if (message.limit !== 0) {
|
|
4706
|
+
writer.uint32(32).int32(message.limit);
|
|
4758
4707
|
}
|
|
4759
|
-
if (message.direction !==
|
|
4760
|
-
|
|
4708
|
+
if (message.direction !== 0) {
|
|
4709
|
+
writer.uint32(40).int32(message.direction);
|
|
4761
4710
|
}
|
|
4762
4711
|
if (message.topic_id !== "0") {
|
|
4763
4712
|
writer.uint32(48).int64(message.topic_id);
|
|
@@ -4790,16 +4739,16 @@ var ListChannelMessagesRequest = {
|
|
|
4790
4739
|
message.message_id = longToString(reader.int64());
|
|
4791
4740
|
continue;
|
|
4792
4741
|
case 4:
|
|
4793
|
-
if (tag !==
|
|
4742
|
+
if (tag !== 32) {
|
|
4794
4743
|
break;
|
|
4795
4744
|
}
|
|
4796
|
-
message.limit =
|
|
4745
|
+
message.limit = reader.int32();
|
|
4797
4746
|
continue;
|
|
4798
4747
|
case 5:
|
|
4799
|
-
if (tag !==
|
|
4748
|
+
if (tag !== 40) {
|
|
4800
4749
|
break;
|
|
4801
4750
|
}
|
|
4802
|
-
message.direction =
|
|
4751
|
+
message.direction = reader.int32();
|
|
4803
4752
|
continue;
|
|
4804
4753
|
case 6:
|
|
4805
4754
|
if (tag !== 48) {
|
|
@@ -4820,8 +4769,8 @@ var ListChannelMessagesRequest = {
|
|
|
4820
4769
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
4821
4770
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
4822
4771
|
message_id: isSet2(object.message_id) ? globalThis.String(object.message_id) : "0",
|
|
4823
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
4824
|
-
direction: isSet2(object.direction) ? Number(object.direction) :
|
|
4772
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
4773
|
+
direction: isSet2(object.direction) ? globalThis.Number(object.direction) : 0,
|
|
4825
4774
|
topic_id: isSet2(object.topic_id) ? globalThis.String(object.topic_id) : "0"
|
|
4826
4775
|
};
|
|
4827
4776
|
},
|
|
@@ -4836,11 +4785,11 @@ var ListChannelMessagesRequest = {
|
|
|
4836
4785
|
if (message.message_id !== "0") {
|
|
4837
4786
|
obj.message_id = message.message_id;
|
|
4838
4787
|
}
|
|
4839
|
-
if (message.limit !==
|
|
4840
|
-
obj.limit = message.limit;
|
|
4788
|
+
if (message.limit !== 0) {
|
|
4789
|
+
obj.limit = Math.round(message.limit);
|
|
4841
4790
|
}
|
|
4842
|
-
if (message.direction !==
|
|
4843
|
-
obj.direction = message.direction;
|
|
4791
|
+
if (message.direction !== 0) {
|
|
4792
|
+
obj.direction = Math.round(message.direction);
|
|
4844
4793
|
}
|
|
4845
4794
|
if (message.topic_id !== "0") {
|
|
4846
4795
|
obj.topic_id = message.topic_id;
|
|
@@ -4856,22 +4805,22 @@ var ListChannelMessagesRequest = {
|
|
|
4856
4805
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
4857
4806
|
message.channel_id = (_b = object.channel_id) != null ? _b : "0";
|
|
4858
4807
|
message.message_id = (_c = object.message_id) != null ? _c : "0";
|
|
4859
|
-
message.limit = (_d = object.limit) != null ? _d :
|
|
4860
|
-
message.direction = (_e = object.direction) != null ? _e :
|
|
4808
|
+
message.limit = (_d = object.limit) != null ? _d : 0;
|
|
4809
|
+
message.direction = (_e = object.direction) != null ? _e : 0;
|
|
4861
4810
|
message.topic_id = (_f = object.topic_id) != null ? _f : "0";
|
|
4862
4811
|
return message;
|
|
4863
4812
|
}
|
|
4864
4813
|
};
|
|
4865
4814
|
function createBaseListFriendsRequest() {
|
|
4866
|
-
return { limit:
|
|
4815
|
+
return { limit: 0, state: 0, cursor: "" };
|
|
4867
4816
|
}
|
|
4868
4817
|
var ListFriendsRequest = {
|
|
4869
4818
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
4870
|
-
if (message.limit !==
|
|
4871
|
-
|
|
4819
|
+
if (message.limit !== 0) {
|
|
4820
|
+
writer.uint32(8).int32(message.limit);
|
|
4872
4821
|
}
|
|
4873
|
-
if (message.state !==
|
|
4874
|
-
|
|
4822
|
+
if (message.state !== 0) {
|
|
4823
|
+
writer.uint32(16).int32(message.state);
|
|
4875
4824
|
}
|
|
4876
4825
|
if (message.cursor !== "") {
|
|
4877
4826
|
writer.uint32(26).string(message.cursor);
|
|
@@ -4886,16 +4835,16 @@ var ListFriendsRequest = {
|
|
|
4886
4835
|
const tag = reader.uint32();
|
|
4887
4836
|
switch (tag >>> 3) {
|
|
4888
4837
|
case 1:
|
|
4889
|
-
if (tag !==
|
|
4838
|
+
if (tag !== 8) {
|
|
4890
4839
|
break;
|
|
4891
4840
|
}
|
|
4892
|
-
message.limit =
|
|
4841
|
+
message.limit = reader.int32();
|
|
4893
4842
|
continue;
|
|
4894
4843
|
case 2:
|
|
4895
|
-
if (tag !==
|
|
4844
|
+
if (tag !== 16) {
|
|
4896
4845
|
break;
|
|
4897
4846
|
}
|
|
4898
|
-
message.state =
|
|
4847
|
+
message.state = reader.int32();
|
|
4899
4848
|
continue;
|
|
4900
4849
|
case 3:
|
|
4901
4850
|
if (tag !== 26) {
|
|
@@ -4913,18 +4862,18 @@ var ListFriendsRequest = {
|
|
|
4913
4862
|
},
|
|
4914
4863
|
fromJSON(object) {
|
|
4915
4864
|
return {
|
|
4916
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
4917
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
4865
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
4866
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
4918
4867
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
4919
4868
|
};
|
|
4920
4869
|
},
|
|
4921
4870
|
toJSON(message) {
|
|
4922
4871
|
const obj = {};
|
|
4923
|
-
if (message.limit !==
|
|
4924
|
-
obj.limit = message.limit;
|
|
4872
|
+
if (message.limit !== 0) {
|
|
4873
|
+
obj.limit = Math.round(message.limit);
|
|
4925
4874
|
}
|
|
4926
|
-
if (message.state !==
|
|
4927
|
-
obj.state = message.state;
|
|
4875
|
+
if (message.state !== 0) {
|
|
4876
|
+
obj.state = Math.round(message.state);
|
|
4928
4877
|
}
|
|
4929
4878
|
if (message.cursor !== "") {
|
|
4930
4879
|
obj.cursor = message.cursor;
|
|
@@ -4937,14 +4886,14 @@ var ListFriendsRequest = {
|
|
|
4937
4886
|
fromPartial(object) {
|
|
4938
4887
|
var _a, _b, _c;
|
|
4939
4888
|
const message = createBaseListFriendsRequest();
|
|
4940
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
4941
|
-
message.state = (_b = object.state) != null ? _b :
|
|
4889
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
4890
|
+
message.state = (_b = object.state) != null ? _b : 0;
|
|
4942
4891
|
message.cursor = (_c = object.cursor) != null ? _c : "";
|
|
4943
4892
|
return message;
|
|
4944
4893
|
}
|
|
4945
4894
|
};
|
|
4946
4895
|
function createBaseListChannelUsersRequest() {
|
|
4947
|
-
return { clan_id: "0", channel_id: "0", channel_type: 0, limit:
|
|
4896
|
+
return { clan_id: "0", channel_id: "0", channel_type: 0, limit: 0, state: 0, cursor: "" };
|
|
4948
4897
|
}
|
|
4949
4898
|
var ListChannelUsersRequest = {
|
|
4950
4899
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -4957,11 +4906,11 @@ var ListChannelUsersRequest = {
|
|
|
4957
4906
|
if (message.channel_type !== 0) {
|
|
4958
4907
|
writer.uint32(24).int32(message.channel_type);
|
|
4959
4908
|
}
|
|
4960
|
-
if (message.limit !==
|
|
4961
|
-
|
|
4909
|
+
if (message.limit !== 0) {
|
|
4910
|
+
writer.uint32(32).int32(message.limit);
|
|
4962
4911
|
}
|
|
4963
|
-
if (message.state !==
|
|
4964
|
-
|
|
4912
|
+
if (message.state !== 0) {
|
|
4913
|
+
writer.uint32(40).int32(message.state);
|
|
4965
4914
|
}
|
|
4966
4915
|
if (message.cursor !== "") {
|
|
4967
4916
|
writer.uint32(50).string(message.cursor);
|
|
@@ -4994,16 +4943,16 @@ var ListChannelUsersRequest = {
|
|
|
4994
4943
|
message.channel_type = reader.int32();
|
|
4995
4944
|
continue;
|
|
4996
4945
|
case 4:
|
|
4997
|
-
if (tag !==
|
|
4946
|
+
if (tag !== 32) {
|
|
4998
4947
|
break;
|
|
4999
4948
|
}
|
|
5000
|
-
message.limit =
|
|
4949
|
+
message.limit = reader.int32();
|
|
5001
4950
|
continue;
|
|
5002
4951
|
case 5:
|
|
5003
|
-
if (tag !==
|
|
4952
|
+
if (tag !== 40) {
|
|
5004
4953
|
break;
|
|
5005
4954
|
}
|
|
5006
|
-
message.state =
|
|
4955
|
+
message.state = reader.int32();
|
|
5007
4956
|
continue;
|
|
5008
4957
|
case 6:
|
|
5009
4958
|
if (tag !== 50) {
|
|
@@ -5024,8 +4973,8 @@ var ListChannelUsersRequest = {
|
|
|
5024
4973
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
5025
4974
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
5026
4975
|
channel_type: isSet2(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
5027
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
5028
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
4976
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
4977
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
5029
4978
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
5030
4979
|
};
|
|
5031
4980
|
},
|
|
@@ -5040,11 +4989,11 @@ var ListChannelUsersRequest = {
|
|
|
5040
4989
|
if (message.channel_type !== 0) {
|
|
5041
4990
|
obj.channel_type = Math.round(message.channel_type);
|
|
5042
4991
|
}
|
|
5043
|
-
if (message.limit !==
|
|
5044
|
-
obj.limit = message.limit;
|
|
4992
|
+
if (message.limit !== 0) {
|
|
4993
|
+
obj.limit = Math.round(message.limit);
|
|
5045
4994
|
}
|
|
5046
|
-
if (message.state !==
|
|
5047
|
-
obj.state = message.state;
|
|
4995
|
+
if (message.state !== 0) {
|
|
4996
|
+
obj.state = Math.round(message.state);
|
|
5048
4997
|
}
|
|
5049
4998
|
if (message.cursor !== "") {
|
|
5050
4999
|
obj.cursor = message.cursor;
|
|
@@ -5060,8 +5009,8 @@ var ListChannelUsersRequest = {
|
|
|
5060
5009
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
5061
5010
|
message.channel_id = (_b = object.channel_id) != null ? _b : "0";
|
|
5062
5011
|
message.channel_type = (_c = object.channel_type) != null ? _c : 0;
|
|
5063
|
-
message.limit = (_d = object.limit) != null ? _d :
|
|
5064
|
-
message.state = (_e = object.state) != null ? _e :
|
|
5012
|
+
message.limit = (_d = object.limit) != null ? _d : 0;
|
|
5013
|
+
message.state = (_e = object.state) != null ? _e : 0;
|
|
5065
5014
|
message.cursor = (_f = object.cursor) != null ? _f : "";
|
|
5066
5015
|
return message;
|
|
5067
5016
|
}
|
|
@@ -5269,12 +5218,12 @@ var ListClanUsersRequest = {
|
|
|
5269
5218
|
}
|
|
5270
5219
|
};
|
|
5271
5220
|
function createBaseListNotificationsRequest() {
|
|
5272
|
-
return { limit:
|
|
5221
|
+
return { limit: 0, clan_id: "0", notification_id: "0", category: 0, direction: 0 };
|
|
5273
5222
|
}
|
|
5274
5223
|
var ListNotificationsRequest = {
|
|
5275
5224
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
5276
|
-
if (message.limit !==
|
|
5277
|
-
|
|
5225
|
+
if (message.limit !== 0) {
|
|
5226
|
+
writer.uint32(8).int32(message.limit);
|
|
5278
5227
|
}
|
|
5279
5228
|
if (message.clan_id !== "0") {
|
|
5280
5229
|
writer.uint32(16).int64(message.clan_id);
|
|
@@ -5285,8 +5234,8 @@ var ListNotificationsRequest = {
|
|
|
5285
5234
|
if (message.category !== 0) {
|
|
5286
5235
|
writer.uint32(32).int32(message.category);
|
|
5287
5236
|
}
|
|
5288
|
-
if (message.direction !==
|
|
5289
|
-
|
|
5237
|
+
if (message.direction !== 0) {
|
|
5238
|
+
writer.uint32(40).int32(message.direction);
|
|
5290
5239
|
}
|
|
5291
5240
|
return writer;
|
|
5292
5241
|
},
|
|
@@ -5298,10 +5247,10 @@ var ListNotificationsRequest = {
|
|
|
5298
5247
|
const tag = reader.uint32();
|
|
5299
5248
|
switch (tag >>> 3) {
|
|
5300
5249
|
case 1:
|
|
5301
|
-
if (tag !==
|
|
5250
|
+
if (tag !== 8) {
|
|
5302
5251
|
break;
|
|
5303
5252
|
}
|
|
5304
|
-
message.limit =
|
|
5253
|
+
message.limit = reader.int32();
|
|
5305
5254
|
continue;
|
|
5306
5255
|
case 2:
|
|
5307
5256
|
if (tag !== 16) {
|
|
@@ -5322,10 +5271,10 @@ var ListNotificationsRequest = {
|
|
|
5322
5271
|
message.category = reader.int32();
|
|
5323
5272
|
continue;
|
|
5324
5273
|
case 5:
|
|
5325
|
-
if (tag !==
|
|
5274
|
+
if (tag !== 40) {
|
|
5326
5275
|
break;
|
|
5327
5276
|
}
|
|
5328
|
-
message.direction =
|
|
5277
|
+
message.direction = reader.int32();
|
|
5329
5278
|
continue;
|
|
5330
5279
|
}
|
|
5331
5280
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -5337,17 +5286,17 @@ var ListNotificationsRequest = {
|
|
|
5337
5286
|
},
|
|
5338
5287
|
fromJSON(object) {
|
|
5339
5288
|
return {
|
|
5340
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
5289
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
5341
5290
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
5342
5291
|
notification_id: isSet2(object.notification_id) ? globalThis.String(object.notification_id) : "0",
|
|
5343
5292
|
category: isSet2(object.category) ? globalThis.Number(object.category) : 0,
|
|
5344
|
-
direction: isSet2(object.direction) ? Number(object.direction) :
|
|
5293
|
+
direction: isSet2(object.direction) ? globalThis.Number(object.direction) : 0
|
|
5345
5294
|
};
|
|
5346
5295
|
},
|
|
5347
5296
|
toJSON(message) {
|
|
5348
5297
|
const obj = {};
|
|
5349
|
-
if (message.limit !==
|
|
5350
|
-
obj.limit = message.limit;
|
|
5298
|
+
if (message.limit !== 0) {
|
|
5299
|
+
obj.limit = Math.round(message.limit);
|
|
5351
5300
|
}
|
|
5352
5301
|
if (message.clan_id !== "0") {
|
|
5353
5302
|
obj.clan_id = message.clan_id;
|
|
@@ -5358,8 +5307,8 @@ var ListNotificationsRequest = {
|
|
|
5358
5307
|
if (message.category !== 0) {
|
|
5359
5308
|
obj.category = Math.round(message.category);
|
|
5360
5309
|
}
|
|
5361
|
-
if (message.direction !==
|
|
5362
|
-
obj.direction = message.direction;
|
|
5310
|
+
if (message.direction !== 0) {
|
|
5311
|
+
obj.direction = Math.round(message.direction);
|
|
5363
5312
|
}
|
|
5364
5313
|
return obj;
|
|
5365
5314
|
},
|
|
@@ -5369,11 +5318,11 @@ var ListNotificationsRequest = {
|
|
|
5369
5318
|
fromPartial(object) {
|
|
5370
5319
|
var _a, _b, _c, _d, _e;
|
|
5371
5320
|
const message = createBaseListNotificationsRequest();
|
|
5372
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
5321
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
5373
5322
|
message.clan_id = (_b = object.clan_id) != null ? _b : "0";
|
|
5374
5323
|
message.notification_id = (_c = object.notification_id) != null ? _c : "0";
|
|
5375
5324
|
message.category = (_d = object.category) != null ? _d : 0;
|
|
5376
|
-
message.direction = (_e = object.direction) != null ? _e :
|
|
5325
|
+
message.direction = (_e = object.direction) != null ? _e : 0;
|
|
5377
5326
|
return message;
|
|
5378
5327
|
}
|
|
5379
5328
|
};
|
|
@@ -6563,15 +6512,15 @@ var ClanDesc = {
|
|
|
6563
6512
|
}
|
|
6564
6513
|
};
|
|
6565
6514
|
function createBaseListClanDescRequest() {
|
|
6566
|
-
return { limit:
|
|
6515
|
+
return { limit: 0, state: 0, cursor: "" };
|
|
6567
6516
|
}
|
|
6568
6517
|
var ListClanDescRequest = {
|
|
6569
6518
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
6570
|
-
if (message.limit !==
|
|
6571
|
-
|
|
6519
|
+
if (message.limit !== 0) {
|
|
6520
|
+
writer.uint32(8).int32(message.limit);
|
|
6572
6521
|
}
|
|
6573
|
-
if (message.state !==
|
|
6574
|
-
|
|
6522
|
+
if (message.state !== 0) {
|
|
6523
|
+
writer.uint32(16).int32(message.state);
|
|
6575
6524
|
}
|
|
6576
6525
|
if (message.cursor !== "") {
|
|
6577
6526
|
writer.uint32(26).string(message.cursor);
|
|
@@ -6586,16 +6535,16 @@ var ListClanDescRequest = {
|
|
|
6586
6535
|
const tag = reader.uint32();
|
|
6587
6536
|
switch (tag >>> 3) {
|
|
6588
6537
|
case 1:
|
|
6589
|
-
if (tag !==
|
|
6538
|
+
if (tag !== 8) {
|
|
6590
6539
|
break;
|
|
6591
6540
|
}
|
|
6592
|
-
message.limit =
|
|
6541
|
+
message.limit = reader.int32();
|
|
6593
6542
|
continue;
|
|
6594
6543
|
case 2:
|
|
6595
|
-
if (tag !==
|
|
6544
|
+
if (tag !== 16) {
|
|
6596
6545
|
break;
|
|
6597
6546
|
}
|
|
6598
|
-
message.state =
|
|
6547
|
+
message.state = reader.int32();
|
|
6599
6548
|
continue;
|
|
6600
6549
|
case 3:
|
|
6601
6550
|
if (tag !== 26) {
|
|
@@ -6613,18 +6562,18 @@ var ListClanDescRequest = {
|
|
|
6613
6562
|
},
|
|
6614
6563
|
fromJSON(object) {
|
|
6615
6564
|
return {
|
|
6616
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
6617
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
6565
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
6566
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
6618
6567
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
6619
6568
|
};
|
|
6620
6569
|
},
|
|
6621
6570
|
toJSON(message) {
|
|
6622
6571
|
const obj = {};
|
|
6623
|
-
if (message.limit !==
|
|
6624
|
-
obj.limit = message.limit;
|
|
6572
|
+
if (message.limit !== 0) {
|
|
6573
|
+
obj.limit = Math.round(message.limit);
|
|
6625
6574
|
}
|
|
6626
|
-
if (message.state !==
|
|
6627
|
-
obj.state = message.state;
|
|
6575
|
+
if (message.state !== 0) {
|
|
6576
|
+
obj.state = Math.round(message.state);
|
|
6628
6577
|
}
|
|
6629
6578
|
if (message.cursor !== "") {
|
|
6630
6579
|
obj.cursor = message.cursor;
|
|
@@ -6637,8 +6586,8 @@ var ListClanDescRequest = {
|
|
|
6637
6586
|
fromPartial(object) {
|
|
6638
6587
|
var _a, _b, _c;
|
|
6639
6588
|
const message = createBaseListClanDescRequest();
|
|
6640
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
6641
|
-
message.state = (_b = object.state) != null ? _b :
|
|
6589
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
6590
|
+
message.state = (_b = object.state) != null ? _b : 0;
|
|
6642
6591
|
message.cursor = (_c = object.cursor) != null ? _c : "";
|
|
6643
6592
|
return message;
|
|
6644
6593
|
}
|
|
@@ -7638,15 +7587,15 @@ var ChannelDescList = {
|
|
|
7638
7587
|
}
|
|
7639
7588
|
};
|
|
7640
7589
|
function createBaseListThreadRequest() {
|
|
7641
|
-
return { limit:
|
|
7590
|
+
return { limit: 0, state: 0, clan_id: "0", channel_id: "0", thread_id: "0", page: 0 };
|
|
7642
7591
|
}
|
|
7643
7592
|
var ListThreadRequest = {
|
|
7644
7593
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
7645
|
-
if (message.limit !==
|
|
7646
|
-
|
|
7594
|
+
if (message.limit !== 0) {
|
|
7595
|
+
writer.uint32(8).int32(message.limit);
|
|
7647
7596
|
}
|
|
7648
|
-
if (message.state !==
|
|
7649
|
-
|
|
7597
|
+
if (message.state !== 0) {
|
|
7598
|
+
writer.uint32(16).int32(message.state);
|
|
7650
7599
|
}
|
|
7651
7600
|
if (message.clan_id !== "0") {
|
|
7652
7601
|
writer.uint32(24).int64(message.clan_id);
|
|
@@ -7657,8 +7606,8 @@ var ListThreadRequest = {
|
|
|
7657
7606
|
if (message.thread_id !== "0") {
|
|
7658
7607
|
writer.uint32(40).int64(message.thread_id);
|
|
7659
7608
|
}
|
|
7660
|
-
if (message.page !==
|
|
7661
|
-
|
|
7609
|
+
if (message.page !== 0) {
|
|
7610
|
+
writer.uint32(48).int32(message.page);
|
|
7662
7611
|
}
|
|
7663
7612
|
return writer;
|
|
7664
7613
|
},
|
|
@@ -7670,16 +7619,16 @@ var ListThreadRequest = {
|
|
|
7670
7619
|
const tag = reader.uint32();
|
|
7671
7620
|
switch (tag >>> 3) {
|
|
7672
7621
|
case 1:
|
|
7673
|
-
if (tag !==
|
|
7622
|
+
if (tag !== 8) {
|
|
7674
7623
|
break;
|
|
7675
7624
|
}
|
|
7676
|
-
message.limit =
|
|
7625
|
+
message.limit = reader.int32();
|
|
7677
7626
|
continue;
|
|
7678
7627
|
case 2:
|
|
7679
|
-
if (tag !==
|
|
7628
|
+
if (tag !== 16) {
|
|
7680
7629
|
break;
|
|
7681
7630
|
}
|
|
7682
|
-
message.state =
|
|
7631
|
+
message.state = reader.int32();
|
|
7683
7632
|
continue;
|
|
7684
7633
|
case 3:
|
|
7685
7634
|
if (tag !== 24) {
|
|
@@ -7700,10 +7649,10 @@ var ListThreadRequest = {
|
|
|
7700
7649
|
message.thread_id = longToString(reader.int64());
|
|
7701
7650
|
continue;
|
|
7702
7651
|
case 6:
|
|
7703
|
-
if (tag !==
|
|
7652
|
+
if (tag !== 48) {
|
|
7704
7653
|
break;
|
|
7705
7654
|
}
|
|
7706
|
-
message.page =
|
|
7655
|
+
message.page = reader.int32();
|
|
7707
7656
|
continue;
|
|
7708
7657
|
}
|
|
7709
7658
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -7715,21 +7664,21 @@ var ListThreadRequest = {
|
|
|
7715
7664
|
},
|
|
7716
7665
|
fromJSON(object) {
|
|
7717
7666
|
return {
|
|
7718
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
7719
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
7667
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
7668
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
7720
7669
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
7721
7670
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
7722
7671
|
thread_id: isSet2(object.thread_id) ? globalThis.String(object.thread_id) : "0",
|
|
7723
|
-
page: isSet2(object.page) ? Number(object.page) :
|
|
7672
|
+
page: isSet2(object.page) ? globalThis.Number(object.page) : 0
|
|
7724
7673
|
};
|
|
7725
7674
|
},
|
|
7726
7675
|
toJSON(message) {
|
|
7727
7676
|
const obj = {};
|
|
7728
|
-
if (message.limit !==
|
|
7729
|
-
obj.limit = message.limit;
|
|
7677
|
+
if (message.limit !== 0) {
|
|
7678
|
+
obj.limit = Math.round(message.limit);
|
|
7730
7679
|
}
|
|
7731
|
-
if (message.state !==
|
|
7732
|
-
obj.state = message.state;
|
|
7680
|
+
if (message.state !== 0) {
|
|
7681
|
+
obj.state = Math.round(message.state);
|
|
7733
7682
|
}
|
|
7734
7683
|
if (message.clan_id !== "0") {
|
|
7735
7684
|
obj.clan_id = message.clan_id;
|
|
@@ -7740,8 +7689,8 @@ var ListThreadRequest = {
|
|
|
7740
7689
|
if (message.thread_id !== "0") {
|
|
7741
7690
|
obj.thread_id = message.thread_id;
|
|
7742
7691
|
}
|
|
7743
|
-
if (message.page !==
|
|
7744
|
-
obj.page = message.page;
|
|
7692
|
+
if (message.page !== 0) {
|
|
7693
|
+
obj.page = Math.round(message.page);
|
|
7745
7694
|
}
|
|
7746
7695
|
return obj;
|
|
7747
7696
|
},
|
|
@@ -7751,25 +7700,25 @@ var ListThreadRequest = {
|
|
|
7751
7700
|
fromPartial(object) {
|
|
7752
7701
|
var _a, _b, _c, _d, _e, _f;
|
|
7753
7702
|
const message = createBaseListThreadRequest();
|
|
7754
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
7755
|
-
message.state = (_b = object.state) != null ? _b :
|
|
7703
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
7704
|
+
message.state = (_b = object.state) != null ? _b : 0;
|
|
7756
7705
|
message.clan_id = (_c = object.clan_id) != null ? _c : "0";
|
|
7757
7706
|
message.channel_id = (_d = object.channel_id) != null ? _d : "0";
|
|
7758
7707
|
message.thread_id = (_e = object.thread_id) != null ? _e : "0";
|
|
7759
|
-
message.page = (_f = object.page) != null ? _f :
|
|
7708
|
+
message.page = (_f = object.page) != null ? _f : 0;
|
|
7760
7709
|
return message;
|
|
7761
7710
|
}
|
|
7762
7711
|
};
|
|
7763
7712
|
function createBaseListChannelDescsRequest() {
|
|
7764
|
-
return { limit:
|
|
7713
|
+
return { limit: 0, state: 0, cursor: "", clan_id: "0", channel_type: 0, is_mobile: false };
|
|
7765
7714
|
}
|
|
7766
7715
|
var ListChannelDescsRequest = {
|
|
7767
7716
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
7768
|
-
if (message.limit !==
|
|
7769
|
-
|
|
7717
|
+
if (message.limit !== 0) {
|
|
7718
|
+
writer.uint32(8).int32(message.limit);
|
|
7770
7719
|
}
|
|
7771
|
-
if (message.state !==
|
|
7772
|
-
|
|
7720
|
+
if (message.state !== 0) {
|
|
7721
|
+
writer.uint32(16).int32(message.state);
|
|
7773
7722
|
}
|
|
7774
7723
|
if (message.cursor !== "") {
|
|
7775
7724
|
writer.uint32(26).string(message.cursor);
|
|
@@ -7793,16 +7742,16 @@ var ListChannelDescsRequest = {
|
|
|
7793
7742
|
const tag = reader.uint32();
|
|
7794
7743
|
switch (tag >>> 3) {
|
|
7795
7744
|
case 1:
|
|
7796
|
-
if (tag !==
|
|
7745
|
+
if (tag !== 8) {
|
|
7797
7746
|
break;
|
|
7798
7747
|
}
|
|
7799
|
-
message.limit =
|
|
7748
|
+
message.limit = reader.int32();
|
|
7800
7749
|
continue;
|
|
7801
7750
|
case 2:
|
|
7802
|
-
if (tag !==
|
|
7751
|
+
if (tag !== 16) {
|
|
7803
7752
|
break;
|
|
7804
7753
|
}
|
|
7805
|
-
message.state =
|
|
7754
|
+
message.state = reader.int32();
|
|
7806
7755
|
continue;
|
|
7807
7756
|
case 3:
|
|
7808
7757
|
if (tag !== 26) {
|
|
@@ -7838,8 +7787,8 @@ var ListChannelDescsRequest = {
|
|
|
7838
7787
|
},
|
|
7839
7788
|
fromJSON(object) {
|
|
7840
7789
|
return {
|
|
7841
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
7842
|
-
state: isSet2(object.state) ? Number(object.state) :
|
|
7790
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
7791
|
+
state: isSet2(object.state) ? globalThis.Number(object.state) : 0,
|
|
7843
7792
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : "",
|
|
7844
7793
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
7845
7794
|
channel_type: isSet2(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
@@ -7848,11 +7797,11 @@ var ListChannelDescsRequest = {
|
|
|
7848
7797
|
},
|
|
7849
7798
|
toJSON(message) {
|
|
7850
7799
|
const obj = {};
|
|
7851
|
-
if (message.limit !==
|
|
7852
|
-
obj.limit = message.limit;
|
|
7800
|
+
if (message.limit !== 0) {
|
|
7801
|
+
obj.limit = Math.round(message.limit);
|
|
7853
7802
|
}
|
|
7854
|
-
if (message.state !==
|
|
7855
|
-
obj.state = message.state;
|
|
7803
|
+
if (message.state !== 0) {
|
|
7804
|
+
obj.state = Math.round(message.state);
|
|
7856
7805
|
}
|
|
7857
7806
|
if (message.cursor !== "") {
|
|
7858
7807
|
obj.cursor = message.cursor;
|
|
@@ -7874,8 +7823,8 @@ var ListChannelDescsRequest = {
|
|
|
7874
7823
|
fromPartial(object) {
|
|
7875
7824
|
var _a, _b, _c, _d, _e, _f;
|
|
7876
7825
|
const message = createBaseListChannelDescsRequest();
|
|
7877
|
-
message.limit = (_a = object.limit) != null ? _a :
|
|
7878
|
-
message.state = (_b = object.state) != null ? _b :
|
|
7826
|
+
message.limit = (_a = object.limit) != null ? _a : 0;
|
|
7827
|
+
message.state = (_b = object.state) != null ? _b : 0;
|
|
7879
7828
|
message.cursor = (_c = object.cursor) != null ? _c : "";
|
|
7880
7829
|
message.clan_id = (_d = object.clan_id) != null ? _d : "0";
|
|
7881
7830
|
message.channel_type = (_e = object.channel_type) != null ? _e : 0;
|
|
@@ -9136,297 +9085,6 @@ var NotificationClan = {
|
|
|
9136
9085
|
return message;
|
|
9137
9086
|
}
|
|
9138
9087
|
};
|
|
9139
|
-
function createBaseHashtagDmListRequest() {
|
|
9140
|
-
return { user_id: [], limit: void 0 };
|
|
9141
|
-
}
|
|
9142
|
-
var HashtagDmListRequest = {
|
|
9143
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
9144
|
-
writer.uint32(10).fork();
|
|
9145
|
-
for (const v of message.user_id) {
|
|
9146
|
-
writer.int64(v);
|
|
9147
|
-
}
|
|
9148
|
-
writer.ldelim();
|
|
9149
|
-
if (message.limit !== void 0) {
|
|
9150
|
-
Int32Value.encode({ value: message.limit }, writer.uint32(18).fork()).ldelim();
|
|
9151
|
-
}
|
|
9152
|
-
return writer;
|
|
9153
|
-
},
|
|
9154
|
-
decode(input, length) {
|
|
9155
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
9156
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
9157
|
-
const message = createBaseHashtagDmListRequest();
|
|
9158
|
-
while (reader.pos < end) {
|
|
9159
|
-
const tag = reader.uint32();
|
|
9160
|
-
switch (tag >>> 3) {
|
|
9161
|
-
case 1:
|
|
9162
|
-
if (tag === 8) {
|
|
9163
|
-
message.user_id.push(longToString(reader.int64()));
|
|
9164
|
-
continue;
|
|
9165
|
-
}
|
|
9166
|
-
if (tag === 10) {
|
|
9167
|
-
const end2 = reader.uint32() + reader.pos;
|
|
9168
|
-
while (reader.pos < end2) {
|
|
9169
|
-
message.user_id.push(longToString(reader.int64()));
|
|
9170
|
-
}
|
|
9171
|
-
continue;
|
|
9172
|
-
}
|
|
9173
|
-
break;
|
|
9174
|
-
case 2:
|
|
9175
|
-
if (tag !== 18) {
|
|
9176
|
-
break;
|
|
9177
|
-
}
|
|
9178
|
-
message.limit = Int32Value.decode(reader, reader.uint32()).value;
|
|
9179
|
-
continue;
|
|
9180
|
-
}
|
|
9181
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
9182
|
-
break;
|
|
9183
|
-
}
|
|
9184
|
-
reader.skipType(tag & 7);
|
|
9185
|
-
}
|
|
9186
|
-
return message;
|
|
9187
|
-
},
|
|
9188
|
-
fromJSON(object) {
|
|
9189
|
-
return {
|
|
9190
|
-
user_id: globalThis.Array.isArray(object == null ? void 0 : object.user_id) ? object.user_id.map((e) => globalThis.String(e)) : [],
|
|
9191
|
-
limit: isSet2(object.limit) ? Number(object.limit) : void 0
|
|
9192
|
-
};
|
|
9193
|
-
},
|
|
9194
|
-
toJSON(message) {
|
|
9195
|
-
var _a;
|
|
9196
|
-
const obj = {};
|
|
9197
|
-
if ((_a = message.user_id) == null ? void 0 : _a.length) {
|
|
9198
|
-
obj.user_id = message.user_id;
|
|
9199
|
-
}
|
|
9200
|
-
if (message.limit !== void 0) {
|
|
9201
|
-
obj.limit = message.limit;
|
|
9202
|
-
}
|
|
9203
|
-
return obj;
|
|
9204
|
-
},
|
|
9205
|
-
create(base) {
|
|
9206
|
-
return HashtagDmListRequest.fromPartial(base != null ? base : {});
|
|
9207
|
-
},
|
|
9208
|
-
fromPartial(object) {
|
|
9209
|
-
var _a, _b;
|
|
9210
|
-
const message = createBaseHashtagDmListRequest();
|
|
9211
|
-
message.user_id = ((_a = object.user_id) == null ? void 0 : _a.map((e) => e)) || [];
|
|
9212
|
-
message.limit = (_b = object.limit) != null ? _b : void 0;
|
|
9213
|
-
return message;
|
|
9214
|
-
}
|
|
9215
|
-
};
|
|
9216
|
-
function createBaseHashtagDmList() {
|
|
9217
|
-
return { hashtag_dm: [] };
|
|
9218
|
-
}
|
|
9219
|
-
var HashtagDmList = {
|
|
9220
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
9221
|
-
for (const v of message.hashtag_dm) {
|
|
9222
|
-
HashtagDm.encode(v, writer.uint32(10).fork()).ldelim();
|
|
9223
|
-
}
|
|
9224
|
-
return writer;
|
|
9225
|
-
},
|
|
9226
|
-
decode(input, length) {
|
|
9227
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
9228
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
9229
|
-
const message = createBaseHashtagDmList();
|
|
9230
|
-
while (reader.pos < end) {
|
|
9231
|
-
const tag = reader.uint32();
|
|
9232
|
-
switch (tag >>> 3) {
|
|
9233
|
-
case 1:
|
|
9234
|
-
if (tag !== 10) {
|
|
9235
|
-
break;
|
|
9236
|
-
}
|
|
9237
|
-
message.hashtag_dm.push(HashtagDm.decode(reader, reader.uint32()));
|
|
9238
|
-
continue;
|
|
9239
|
-
}
|
|
9240
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
9241
|
-
break;
|
|
9242
|
-
}
|
|
9243
|
-
reader.skipType(tag & 7);
|
|
9244
|
-
}
|
|
9245
|
-
return message;
|
|
9246
|
-
},
|
|
9247
|
-
fromJSON(object) {
|
|
9248
|
-
return {
|
|
9249
|
-
hashtag_dm: globalThis.Array.isArray(object == null ? void 0 : object.hashtag_dm) ? object.hashtag_dm.map((e) => HashtagDm.fromJSON(e)) : []
|
|
9250
|
-
};
|
|
9251
|
-
},
|
|
9252
|
-
toJSON(message) {
|
|
9253
|
-
var _a;
|
|
9254
|
-
const obj = {};
|
|
9255
|
-
if ((_a = message.hashtag_dm) == null ? void 0 : _a.length) {
|
|
9256
|
-
obj.hashtag_dm = message.hashtag_dm.map((e) => HashtagDm.toJSON(e));
|
|
9257
|
-
}
|
|
9258
|
-
return obj;
|
|
9259
|
-
},
|
|
9260
|
-
create(base) {
|
|
9261
|
-
return HashtagDmList.fromPartial(base != null ? base : {});
|
|
9262
|
-
},
|
|
9263
|
-
fromPartial(object) {
|
|
9264
|
-
var _a;
|
|
9265
|
-
const message = createBaseHashtagDmList();
|
|
9266
|
-
message.hashtag_dm = ((_a = object.hashtag_dm) == null ? void 0 : _a.map((e) => HashtagDm.fromPartial(e))) || [];
|
|
9267
|
-
return message;
|
|
9268
|
-
}
|
|
9269
|
-
};
|
|
9270
|
-
function createBaseHashtagDm() {
|
|
9271
|
-
return {
|
|
9272
|
-
channel_id: "0",
|
|
9273
|
-
channel_label: "",
|
|
9274
|
-
clan_id: "0",
|
|
9275
|
-
clan_name: "",
|
|
9276
|
-
meeting_code: "",
|
|
9277
|
-
type: 0,
|
|
9278
|
-
channel_private: 0,
|
|
9279
|
-
parent_id: "0"
|
|
9280
|
-
};
|
|
9281
|
-
}
|
|
9282
|
-
var HashtagDm = {
|
|
9283
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
9284
|
-
if (message.channel_id !== "0") {
|
|
9285
|
-
writer.uint32(8).int64(message.channel_id);
|
|
9286
|
-
}
|
|
9287
|
-
if (message.channel_label !== "") {
|
|
9288
|
-
writer.uint32(18).string(message.channel_label);
|
|
9289
|
-
}
|
|
9290
|
-
if (message.clan_id !== "0") {
|
|
9291
|
-
writer.uint32(24).int64(message.clan_id);
|
|
9292
|
-
}
|
|
9293
|
-
if (message.clan_name !== "") {
|
|
9294
|
-
writer.uint32(34).string(message.clan_name);
|
|
9295
|
-
}
|
|
9296
|
-
if (message.meeting_code !== "") {
|
|
9297
|
-
writer.uint32(42).string(message.meeting_code);
|
|
9298
|
-
}
|
|
9299
|
-
if (message.type !== 0) {
|
|
9300
|
-
writer.uint32(48).int32(message.type);
|
|
9301
|
-
}
|
|
9302
|
-
if (message.channel_private !== 0) {
|
|
9303
|
-
writer.uint32(56).int32(message.channel_private);
|
|
9304
|
-
}
|
|
9305
|
-
if (message.parent_id !== "0") {
|
|
9306
|
-
writer.uint32(64).int64(message.parent_id);
|
|
9307
|
-
}
|
|
9308
|
-
return writer;
|
|
9309
|
-
},
|
|
9310
|
-
decode(input, length) {
|
|
9311
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
9312
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
9313
|
-
const message = createBaseHashtagDm();
|
|
9314
|
-
while (reader.pos < end) {
|
|
9315
|
-
const tag = reader.uint32();
|
|
9316
|
-
switch (tag >>> 3) {
|
|
9317
|
-
case 1:
|
|
9318
|
-
if (tag !== 8) {
|
|
9319
|
-
break;
|
|
9320
|
-
}
|
|
9321
|
-
message.channel_id = longToString(reader.int64());
|
|
9322
|
-
continue;
|
|
9323
|
-
case 2:
|
|
9324
|
-
if (tag !== 18) {
|
|
9325
|
-
break;
|
|
9326
|
-
}
|
|
9327
|
-
message.channel_label = reader.string();
|
|
9328
|
-
continue;
|
|
9329
|
-
case 3:
|
|
9330
|
-
if (tag !== 24) {
|
|
9331
|
-
break;
|
|
9332
|
-
}
|
|
9333
|
-
message.clan_id = longToString(reader.int64());
|
|
9334
|
-
continue;
|
|
9335
|
-
case 4:
|
|
9336
|
-
if (tag !== 34) {
|
|
9337
|
-
break;
|
|
9338
|
-
}
|
|
9339
|
-
message.clan_name = reader.string();
|
|
9340
|
-
continue;
|
|
9341
|
-
case 5:
|
|
9342
|
-
if (tag !== 42) {
|
|
9343
|
-
break;
|
|
9344
|
-
}
|
|
9345
|
-
message.meeting_code = reader.string();
|
|
9346
|
-
continue;
|
|
9347
|
-
case 6:
|
|
9348
|
-
if (tag !== 48) {
|
|
9349
|
-
break;
|
|
9350
|
-
}
|
|
9351
|
-
message.type = reader.int32();
|
|
9352
|
-
continue;
|
|
9353
|
-
case 7:
|
|
9354
|
-
if (tag !== 56) {
|
|
9355
|
-
break;
|
|
9356
|
-
}
|
|
9357
|
-
message.channel_private = reader.int32();
|
|
9358
|
-
continue;
|
|
9359
|
-
case 8:
|
|
9360
|
-
if (tag !== 64) {
|
|
9361
|
-
break;
|
|
9362
|
-
}
|
|
9363
|
-
message.parent_id = longToString(reader.int64());
|
|
9364
|
-
continue;
|
|
9365
|
-
}
|
|
9366
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
9367
|
-
break;
|
|
9368
|
-
}
|
|
9369
|
-
reader.skipType(tag & 7);
|
|
9370
|
-
}
|
|
9371
|
-
return message;
|
|
9372
|
-
},
|
|
9373
|
-
fromJSON(object) {
|
|
9374
|
-
return {
|
|
9375
|
-
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
9376
|
-
channel_label: isSet2(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
9377
|
-
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
9378
|
-
clan_name: isSet2(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
9379
|
-
meeting_code: isSet2(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
|
|
9380
|
-
type: isSet2(object.type) ? globalThis.Number(object.type) : 0,
|
|
9381
|
-
channel_private: isSet2(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
9382
|
-
parent_id: isSet2(object.parent_id) ? globalThis.String(object.parent_id) : "0"
|
|
9383
|
-
};
|
|
9384
|
-
},
|
|
9385
|
-
toJSON(message) {
|
|
9386
|
-
const obj = {};
|
|
9387
|
-
if (message.channel_id !== "0") {
|
|
9388
|
-
obj.channel_id = message.channel_id;
|
|
9389
|
-
}
|
|
9390
|
-
if (message.channel_label !== "") {
|
|
9391
|
-
obj.channel_label = message.channel_label;
|
|
9392
|
-
}
|
|
9393
|
-
if (message.clan_id !== "0") {
|
|
9394
|
-
obj.clan_id = message.clan_id;
|
|
9395
|
-
}
|
|
9396
|
-
if (message.clan_name !== "") {
|
|
9397
|
-
obj.clan_name = message.clan_name;
|
|
9398
|
-
}
|
|
9399
|
-
if (message.meeting_code !== "") {
|
|
9400
|
-
obj.meeting_code = message.meeting_code;
|
|
9401
|
-
}
|
|
9402
|
-
if (message.type !== 0) {
|
|
9403
|
-
obj.type = Math.round(message.type);
|
|
9404
|
-
}
|
|
9405
|
-
if (message.channel_private !== 0) {
|
|
9406
|
-
obj.channel_private = Math.round(message.channel_private);
|
|
9407
|
-
}
|
|
9408
|
-
if (message.parent_id !== "0") {
|
|
9409
|
-
obj.parent_id = message.parent_id;
|
|
9410
|
-
}
|
|
9411
|
-
return obj;
|
|
9412
|
-
},
|
|
9413
|
-
create(base) {
|
|
9414
|
-
return HashtagDm.fromPartial(base != null ? base : {});
|
|
9415
|
-
},
|
|
9416
|
-
fromPartial(object) {
|
|
9417
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
9418
|
-
const message = createBaseHashtagDm();
|
|
9419
|
-
message.channel_id = (_a = object.channel_id) != null ? _a : "0";
|
|
9420
|
-
message.channel_label = (_b = object.channel_label) != null ? _b : "";
|
|
9421
|
-
message.clan_id = (_c = object.clan_id) != null ? _c : "0";
|
|
9422
|
-
message.clan_name = (_d = object.clan_name) != null ? _d : "";
|
|
9423
|
-
message.meeting_code = (_e = object.meeting_code) != null ? _e : "";
|
|
9424
|
-
message.type = (_f = object.type) != null ? _f : 0;
|
|
9425
|
-
message.channel_private = (_g = object.channel_private) != null ? _g : 0;
|
|
9426
|
-
message.parent_id = (_h = object.parent_id) != null ? _h : "0";
|
|
9427
|
-
return message;
|
|
9428
|
-
}
|
|
9429
|
-
};
|
|
9430
9088
|
function createBaseNotificationChannelCategorySettingList() {
|
|
9431
9089
|
return { notification_channel_category_settings_list: [] };
|
|
9432
9090
|
}
|
|
@@ -9840,15 +9498,15 @@ var ListPermissionsRequest = {
|
|
|
9840
9498
|
}
|
|
9841
9499
|
};
|
|
9842
9500
|
function createBaseListRoleUsersRequest() {
|
|
9843
|
-
return { role_id: "0", limit:
|
|
9501
|
+
return { role_id: "0", limit: 0, cursor: "" };
|
|
9844
9502
|
}
|
|
9845
9503
|
var ListRoleUsersRequest = {
|
|
9846
9504
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
9847
9505
|
if (message.role_id !== "0") {
|
|
9848
9506
|
writer.uint32(8).int64(message.role_id);
|
|
9849
9507
|
}
|
|
9850
|
-
if (message.limit !==
|
|
9851
|
-
|
|
9508
|
+
if (message.limit !== 0) {
|
|
9509
|
+
writer.uint32(16).int32(message.limit);
|
|
9852
9510
|
}
|
|
9853
9511
|
if (message.cursor !== "") {
|
|
9854
9512
|
writer.uint32(26).string(message.cursor);
|
|
@@ -9869,10 +9527,10 @@ var ListRoleUsersRequest = {
|
|
|
9869
9527
|
message.role_id = longToString(reader.int64());
|
|
9870
9528
|
continue;
|
|
9871
9529
|
case 2:
|
|
9872
|
-
if (tag !==
|
|
9530
|
+
if (tag !== 16) {
|
|
9873
9531
|
break;
|
|
9874
9532
|
}
|
|
9875
|
-
message.limit =
|
|
9533
|
+
message.limit = reader.int32();
|
|
9876
9534
|
continue;
|
|
9877
9535
|
case 3:
|
|
9878
9536
|
if (tag !== 26) {
|
|
@@ -9891,7 +9549,7 @@ var ListRoleUsersRequest = {
|
|
|
9891
9549
|
fromJSON(object) {
|
|
9892
9550
|
return {
|
|
9893
9551
|
role_id: isSet2(object.role_id) ? globalThis.String(object.role_id) : "0",
|
|
9894
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
9552
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
9895
9553
|
cursor: isSet2(object.cursor) ? globalThis.String(object.cursor) : ""
|
|
9896
9554
|
};
|
|
9897
9555
|
},
|
|
@@ -9900,8 +9558,8 @@ var ListRoleUsersRequest = {
|
|
|
9900
9558
|
if (message.role_id !== "0") {
|
|
9901
9559
|
obj.role_id = message.role_id;
|
|
9902
9560
|
}
|
|
9903
|
-
if (message.limit !==
|
|
9904
|
-
obj.limit = message.limit;
|
|
9561
|
+
if (message.limit !== 0) {
|
|
9562
|
+
obj.limit = Math.round(message.limit);
|
|
9905
9563
|
}
|
|
9906
9564
|
if (message.cursor !== "") {
|
|
9907
9565
|
obj.cursor = message.cursor;
|
|
@@ -9915,7 +9573,7 @@ var ListRoleUsersRequest = {
|
|
|
9915
9573
|
var _a, _b, _c;
|
|
9916
9574
|
const message = createBaseListRoleUsersRequest();
|
|
9917
9575
|
message.role_id = (_a = object.role_id) != null ? _a : "0";
|
|
9918
|
-
message.limit = (_b = object.limit) != null ? _b :
|
|
9576
|
+
message.limit = (_b = object.limit) != null ? _b : 0;
|
|
9919
9577
|
message.cursor = (_c = object.cursor) != null ? _c : "";
|
|
9920
9578
|
return message;
|
|
9921
9579
|
}
|
|
@@ -10260,7 +9918,7 @@ function createBaseCreateEventRequest() {
|
|
|
10260
9918
|
repeat_type: 0,
|
|
10261
9919
|
creator_id: "0",
|
|
10262
9920
|
user_id: "0",
|
|
10263
|
-
is_private:
|
|
9921
|
+
is_private: false,
|
|
10264
9922
|
meet_room: void 0
|
|
10265
9923
|
};
|
|
10266
9924
|
}
|
|
@@ -10311,8 +9969,8 @@ var CreateEventRequest = {
|
|
|
10311
9969
|
if (message.user_id !== "0") {
|
|
10312
9970
|
writer.uint32(120).int64(message.user_id);
|
|
10313
9971
|
}
|
|
10314
|
-
if (message.is_private !==
|
|
10315
|
-
|
|
9972
|
+
if (message.is_private !== false) {
|
|
9973
|
+
writer.uint32(128).bool(message.is_private);
|
|
10316
9974
|
}
|
|
10317
9975
|
if (message.meet_room !== void 0) {
|
|
10318
9976
|
GenerateMezonMeetResponse.encode(message.meet_room, writer.uint32(138).fork()).ldelim();
|
|
@@ -10417,10 +10075,10 @@ var CreateEventRequest = {
|
|
|
10417
10075
|
message.user_id = longToString(reader.int64());
|
|
10418
10076
|
continue;
|
|
10419
10077
|
case 16:
|
|
10420
|
-
if (tag !==
|
|
10078
|
+
if (tag !== 128) {
|
|
10421
10079
|
break;
|
|
10422
10080
|
}
|
|
10423
|
-
message.is_private =
|
|
10081
|
+
message.is_private = reader.bool();
|
|
10424
10082
|
continue;
|
|
10425
10083
|
case 17:
|
|
10426
10084
|
if (tag !== 138) {
|
|
@@ -10453,7 +10111,7 @@ var CreateEventRequest = {
|
|
|
10453
10111
|
repeat_type: isSet2(object.repeat_type) ? globalThis.Number(object.repeat_type) : 0,
|
|
10454
10112
|
creator_id: isSet2(object.creator_id) ? globalThis.String(object.creator_id) : "0",
|
|
10455
10113
|
user_id: isSet2(object.user_id) ? globalThis.String(object.user_id) : "0",
|
|
10456
|
-
is_private: isSet2(object.is_private) ? Boolean(object.is_private) :
|
|
10114
|
+
is_private: isSet2(object.is_private) ? globalThis.Boolean(object.is_private) : false,
|
|
10457
10115
|
meet_room: isSet2(object.meet_room) ? GenerateMezonMeetResponse.fromJSON(object.meet_room) : void 0
|
|
10458
10116
|
};
|
|
10459
10117
|
},
|
|
@@ -10504,7 +10162,7 @@ var CreateEventRequest = {
|
|
|
10504
10162
|
if (message.user_id !== "0") {
|
|
10505
10163
|
obj.user_id = message.user_id;
|
|
10506
10164
|
}
|
|
10507
|
-
if (message.is_private !==
|
|
10165
|
+
if (message.is_private !== false) {
|
|
10508
10166
|
obj.is_private = message.is_private;
|
|
10509
10167
|
}
|
|
10510
10168
|
if (message.meet_room !== void 0) {
|
|
@@ -10533,7 +10191,7 @@ var CreateEventRequest = {
|
|
|
10533
10191
|
message.repeat_type = (_m = object.repeat_type) != null ? _m : 0;
|
|
10534
10192
|
message.creator_id = (_n = object.creator_id) != null ? _n : "0";
|
|
10535
10193
|
message.user_id = (_o = object.user_id) != null ? _o : "0";
|
|
10536
|
-
message.is_private = (_p = object.is_private) != null ? _p :
|
|
10194
|
+
message.is_private = (_p = object.is_private) != null ? _p : false;
|
|
10537
10195
|
message.meet_room = object.meet_room !== void 0 && object.meet_room !== null ? GenerateMezonMeetResponse.fromPartial(object.meet_room) : void 0;
|
|
10538
10196
|
return message;
|
|
10539
10197
|
}
|
|
@@ -11108,15 +10766,15 @@ var ClanSticker = {
|
|
|
11108
10766
|
}
|
|
11109
10767
|
};
|
|
11110
10768
|
function createBaseAllUsersAddChannelRequest() {
|
|
11111
|
-
return { channel_id: "0", limit:
|
|
10769
|
+
return { channel_id: "0", limit: 0 };
|
|
11112
10770
|
}
|
|
11113
10771
|
var AllUsersAddChannelRequest = {
|
|
11114
10772
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
11115
10773
|
if (message.channel_id !== "0") {
|
|
11116
10774
|
writer.uint32(8).int64(message.channel_id);
|
|
11117
10775
|
}
|
|
11118
|
-
if (message.limit !==
|
|
11119
|
-
|
|
10776
|
+
if (message.limit !== 0) {
|
|
10777
|
+
writer.uint32(16).int32(message.limit);
|
|
11120
10778
|
}
|
|
11121
10779
|
return writer;
|
|
11122
10780
|
},
|
|
@@ -11134,10 +10792,10 @@ var AllUsersAddChannelRequest = {
|
|
|
11134
10792
|
message.channel_id = longToString(reader.int64());
|
|
11135
10793
|
continue;
|
|
11136
10794
|
case 2:
|
|
11137
|
-
if (tag !==
|
|
10795
|
+
if (tag !== 16) {
|
|
11138
10796
|
break;
|
|
11139
10797
|
}
|
|
11140
|
-
message.limit =
|
|
10798
|
+
message.limit = reader.int32();
|
|
11141
10799
|
continue;
|
|
11142
10800
|
}
|
|
11143
10801
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -11150,7 +10808,7 @@ var AllUsersAddChannelRequest = {
|
|
|
11150
10808
|
fromJSON(object) {
|
|
11151
10809
|
return {
|
|
11152
10810
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
11153
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
10811
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0
|
|
11154
10812
|
};
|
|
11155
10813
|
},
|
|
11156
10814
|
toJSON(message) {
|
|
@@ -11158,8 +10816,8 @@ var AllUsersAddChannelRequest = {
|
|
|
11158
10816
|
if (message.channel_id !== "0") {
|
|
11159
10817
|
obj.channel_id = message.channel_id;
|
|
11160
10818
|
}
|
|
11161
|
-
if (message.limit !==
|
|
11162
|
-
obj.limit = message.limit;
|
|
10819
|
+
if (message.limit !== 0) {
|
|
10820
|
+
obj.limit = Math.round(message.limit);
|
|
11163
10821
|
}
|
|
11164
10822
|
return obj;
|
|
11165
10823
|
},
|
|
@@ -11170,20 +10828,12 @@ var AllUsersAddChannelRequest = {
|
|
|
11170
10828
|
var _a, _b;
|
|
11171
10829
|
const message = createBaseAllUsersAddChannelRequest();
|
|
11172
10830
|
message.channel_id = (_a = object.channel_id) != null ? _a : "0";
|
|
11173
|
-
message.limit = (_b = object.limit) != null ? _b :
|
|
10831
|
+
message.limit = (_b = object.limit) != null ? _b : 0;
|
|
11174
10832
|
return message;
|
|
11175
10833
|
}
|
|
11176
10834
|
};
|
|
11177
10835
|
function createBaseAllUsersAddChannelResponse() {
|
|
11178
|
-
return {
|
|
11179
|
-
channel_id: "0",
|
|
11180
|
-
user_ids: [],
|
|
11181
|
-
limit: void 0,
|
|
11182
|
-
usernames: [],
|
|
11183
|
-
display_names: [],
|
|
11184
|
-
avatars: [],
|
|
11185
|
-
onlines: []
|
|
11186
|
-
};
|
|
10836
|
+
return { channel_id: "0", user_ids: [], limit: 0, usernames: [], display_names: [], avatars: [], onlines: [] };
|
|
11187
10837
|
}
|
|
11188
10838
|
var AllUsersAddChannelResponse = {
|
|
11189
10839
|
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
@@ -11195,8 +10845,8 @@ var AllUsersAddChannelResponse = {
|
|
|
11195
10845
|
writer.int64(v);
|
|
11196
10846
|
}
|
|
11197
10847
|
writer.ldelim();
|
|
11198
|
-
if (message.limit !==
|
|
11199
|
-
|
|
10848
|
+
if (message.limit !== 0) {
|
|
10849
|
+
writer.uint32(24).int32(message.limit);
|
|
11200
10850
|
}
|
|
11201
10851
|
for (const v of message.usernames) {
|
|
11202
10852
|
writer.uint32(34).string(v);
|
|
@@ -11241,10 +10891,10 @@ var AllUsersAddChannelResponse = {
|
|
|
11241
10891
|
}
|
|
11242
10892
|
break;
|
|
11243
10893
|
case 3:
|
|
11244
|
-
if (tag !==
|
|
10894
|
+
if (tag !== 24) {
|
|
11245
10895
|
break;
|
|
11246
10896
|
}
|
|
11247
|
-
message.limit =
|
|
10897
|
+
message.limit = reader.int32();
|
|
11248
10898
|
continue;
|
|
11249
10899
|
case 4:
|
|
11250
10900
|
if (tag !== 34) {
|
|
@@ -11289,7 +10939,7 @@ var AllUsersAddChannelResponse = {
|
|
|
11289
10939
|
return {
|
|
11290
10940
|
channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
11291
10941
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
11292
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
10942
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
11293
10943
|
usernames: globalThis.Array.isArray(object == null ? void 0 : object.usernames) ? object.usernames.map((e) => globalThis.String(e)) : [],
|
|
11294
10944
|
display_names: globalThis.Array.isArray(object == null ? void 0 : object.display_names) ? object.display_names.map((e) => globalThis.String(e)) : [],
|
|
11295
10945
|
avatars: globalThis.Array.isArray(object == null ? void 0 : object.avatars) ? object.avatars.map((e) => globalThis.String(e)) : [],
|
|
@@ -11305,8 +10955,8 @@ var AllUsersAddChannelResponse = {
|
|
|
11305
10955
|
if ((_a = message.user_ids) == null ? void 0 : _a.length) {
|
|
11306
10956
|
obj.user_ids = message.user_ids;
|
|
11307
10957
|
}
|
|
11308
|
-
if (message.limit !==
|
|
11309
|
-
obj.limit = message.limit;
|
|
10958
|
+
if (message.limit !== 0) {
|
|
10959
|
+
obj.limit = Math.round(message.limit);
|
|
11310
10960
|
}
|
|
11311
10961
|
if ((_b = message.usernames) == null ? void 0 : _b.length) {
|
|
11312
10962
|
obj.usernames = message.usernames;
|
|
@@ -11330,7 +10980,7 @@ var AllUsersAddChannelResponse = {
|
|
|
11330
10980
|
const message = createBaseAllUsersAddChannelResponse();
|
|
11331
10981
|
message.channel_id = (_a = object.channel_id) != null ? _a : "0";
|
|
11332
10982
|
message.user_ids = ((_b = object.user_ids) == null ? void 0 : _b.map((e) => e)) || [];
|
|
11333
|
-
message.limit = (_c = object.limit) != null ? _c :
|
|
10983
|
+
message.limit = (_c = object.limit) != null ? _c : 0;
|
|
11334
10984
|
message.usernames = ((_d = object.usernames) == null ? void 0 : _d.map((e) => e)) || [];
|
|
11335
10985
|
message.display_names = ((_e = object.display_names) == null ? void 0 : _e.map((e) => e)) || [];
|
|
11336
10986
|
message.avatars = ((_f = object.avatars) == null ? void 0 : _f.map((e) => e)) || [];
|
|
@@ -12779,12 +12429,12 @@ function createBaseChannelSettingListRequest() {
|
|
|
12779
12429
|
clan_id: "0",
|
|
12780
12430
|
parent_id: "0",
|
|
12781
12431
|
category_id: "0",
|
|
12782
|
-
private_channel:
|
|
12783
|
-
active:
|
|
12784
|
-
status:
|
|
12785
|
-
type:
|
|
12786
|
-
limit:
|
|
12787
|
-
page:
|
|
12432
|
+
private_channel: 0,
|
|
12433
|
+
active: 0,
|
|
12434
|
+
status: 0,
|
|
12435
|
+
type: 0,
|
|
12436
|
+
limit: 0,
|
|
12437
|
+
page: 0,
|
|
12788
12438
|
channel_label: ""
|
|
12789
12439
|
};
|
|
12790
12440
|
}
|
|
@@ -12799,23 +12449,23 @@ var ChannelSettingListRequest = {
|
|
|
12799
12449
|
if (message.category_id !== "0") {
|
|
12800
12450
|
writer.uint32(24).int64(message.category_id);
|
|
12801
12451
|
}
|
|
12802
|
-
if (message.private_channel !==
|
|
12803
|
-
|
|
12452
|
+
if (message.private_channel !== 0) {
|
|
12453
|
+
writer.uint32(32).int32(message.private_channel);
|
|
12804
12454
|
}
|
|
12805
|
-
if (message.active !==
|
|
12806
|
-
|
|
12455
|
+
if (message.active !== 0) {
|
|
12456
|
+
writer.uint32(40).int32(message.active);
|
|
12807
12457
|
}
|
|
12808
|
-
if (message.status !==
|
|
12809
|
-
|
|
12458
|
+
if (message.status !== 0) {
|
|
12459
|
+
writer.uint32(48).int32(message.status);
|
|
12810
12460
|
}
|
|
12811
|
-
if (message.type !==
|
|
12812
|
-
|
|
12461
|
+
if (message.type !== 0) {
|
|
12462
|
+
writer.uint32(56).int32(message.type);
|
|
12813
12463
|
}
|
|
12814
|
-
if (message.limit !==
|
|
12815
|
-
|
|
12464
|
+
if (message.limit !== 0) {
|
|
12465
|
+
writer.uint32(64).int32(message.limit);
|
|
12816
12466
|
}
|
|
12817
|
-
if (message.page !==
|
|
12818
|
-
|
|
12467
|
+
if (message.page !== 0) {
|
|
12468
|
+
writer.uint32(72).int32(message.page);
|
|
12819
12469
|
}
|
|
12820
12470
|
if (message.channel_label !== "") {
|
|
12821
12471
|
writer.uint32(82).string(message.channel_label);
|
|
@@ -12848,40 +12498,40 @@ var ChannelSettingListRequest = {
|
|
|
12848
12498
|
message.category_id = longToString(reader.int64());
|
|
12849
12499
|
continue;
|
|
12850
12500
|
case 4:
|
|
12851
|
-
if (tag !==
|
|
12501
|
+
if (tag !== 32) {
|
|
12852
12502
|
break;
|
|
12853
12503
|
}
|
|
12854
|
-
message.private_channel =
|
|
12504
|
+
message.private_channel = reader.int32();
|
|
12855
12505
|
continue;
|
|
12856
12506
|
case 5:
|
|
12857
|
-
if (tag !==
|
|
12507
|
+
if (tag !== 40) {
|
|
12858
12508
|
break;
|
|
12859
12509
|
}
|
|
12860
|
-
message.active =
|
|
12510
|
+
message.active = reader.int32();
|
|
12861
12511
|
continue;
|
|
12862
12512
|
case 6:
|
|
12863
|
-
if (tag !==
|
|
12513
|
+
if (tag !== 48) {
|
|
12864
12514
|
break;
|
|
12865
12515
|
}
|
|
12866
|
-
message.status =
|
|
12516
|
+
message.status = reader.int32();
|
|
12867
12517
|
continue;
|
|
12868
12518
|
case 7:
|
|
12869
|
-
if (tag !==
|
|
12519
|
+
if (tag !== 56) {
|
|
12870
12520
|
break;
|
|
12871
12521
|
}
|
|
12872
|
-
message.type =
|
|
12522
|
+
message.type = reader.int32();
|
|
12873
12523
|
continue;
|
|
12874
12524
|
case 8:
|
|
12875
|
-
if (tag !==
|
|
12525
|
+
if (tag !== 64) {
|
|
12876
12526
|
break;
|
|
12877
12527
|
}
|
|
12878
|
-
message.limit =
|
|
12528
|
+
message.limit = reader.int32();
|
|
12879
12529
|
continue;
|
|
12880
12530
|
case 9:
|
|
12881
|
-
if (tag !==
|
|
12531
|
+
if (tag !== 72) {
|
|
12882
12532
|
break;
|
|
12883
12533
|
}
|
|
12884
|
-
message.page =
|
|
12534
|
+
message.page = reader.int32();
|
|
12885
12535
|
continue;
|
|
12886
12536
|
case 10:
|
|
12887
12537
|
if (tag !== 82) {
|
|
@@ -12902,12 +12552,12 @@ var ChannelSettingListRequest = {
|
|
|
12902
12552
|
clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
12903
12553
|
parent_id: isSet2(object.parent_id) ? globalThis.String(object.parent_id) : "0",
|
|
12904
12554
|
category_id: isSet2(object.category_id) ? globalThis.String(object.category_id) : "0",
|
|
12905
|
-
private_channel: isSet2(object.private_channel) ? Number(object.private_channel) :
|
|
12906
|
-
active: isSet2(object.active) ? Number(object.active) :
|
|
12907
|
-
status: isSet2(object.status) ? Number(object.status) :
|
|
12908
|
-
type: isSet2(object.type) ? Number(object.type) :
|
|
12909
|
-
limit: isSet2(object.limit) ? Number(object.limit) :
|
|
12910
|
-
page: isSet2(object.page) ? Number(object.page) :
|
|
12555
|
+
private_channel: isSet2(object.private_channel) ? globalThis.Number(object.private_channel) : 0,
|
|
12556
|
+
active: isSet2(object.active) ? globalThis.Number(object.active) : 0,
|
|
12557
|
+
status: isSet2(object.status) ? globalThis.Number(object.status) : 0,
|
|
12558
|
+
type: isSet2(object.type) ? globalThis.Number(object.type) : 0,
|
|
12559
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
12560
|
+
page: isSet2(object.page) ? globalThis.Number(object.page) : 0,
|
|
12911
12561
|
channel_label: isSet2(object.channel_label) ? globalThis.String(object.channel_label) : ""
|
|
12912
12562
|
};
|
|
12913
12563
|
},
|
|
@@ -12922,23 +12572,23 @@ var ChannelSettingListRequest = {
|
|
|
12922
12572
|
if (message.category_id !== "0") {
|
|
12923
12573
|
obj.category_id = message.category_id;
|
|
12924
12574
|
}
|
|
12925
|
-
if (message.private_channel !==
|
|
12926
|
-
obj.private_channel = message.private_channel;
|
|
12575
|
+
if (message.private_channel !== 0) {
|
|
12576
|
+
obj.private_channel = Math.round(message.private_channel);
|
|
12927
12577
|
}
|
|
12928
|
-
if (message.active !==
|
|
12929
|
-
obj.active = message.active;
|
|
12578
|
+
if (message.active !== 0) {
|
|
12579
|
+
obj.active = Math.round(message.active);
|
|
12930
12580
|
}
|
|
12931
|
-
if (message.status !==
|
|
12932
|
-
obj.status = message.status;
|
|
12581
|
+
if (message.status !== 0) {
|
|
12582
|
+
obj.status = Math.round(message.status);
|
|
12933
12583
|
}
|
|
12934
|
-
if (message.type !==
|
|
12935
|
-
obj.type = message.type;
|
|
12584
|
+
if (message.type !== 0) {
|
|
12585
|
+
obj.type = Math.round(message.type);
|
|
12936
12586
|
}
|
|
12937
|
-
if (message.limit !==
|
|
12938
|
-
obj.limit = message.limit;
|
|
12587
|
+
if (message.limit !== 0) {
|
|
12588
|
+
obj.limit = Math.round(message.limit);
|
|
12939
12589
|
}
|
|
12940
|
-
if (message.page !==
|
|
12941
|
-
obj.page = message.page;
|
|
12590
|
+
if (message.page !== 0) {
|
|
12591
|
+
obj.page = Math.round(message.page);
|
|
12942
12592
|
}
|
|
12943
12593
|
if (message.channel_label !== "") {
|
|
12944
12594
|
obj.channel_label = message.channel_label;
|
|
@@ -12954,12 +12604,12 @@ var ChannelSettingListRequest = {
|
|
|
12954
12604
|
message.clan_id = (_a = object.clan_id) != null ? _a : "0";
|
|
12955
12605
|
message.parent_id = (_b = object.parent_id) != null ? _b : "0";
|
|
12956
12606
|
message.category_id = (_c = object.category_id) != null ? _c : "0";
|
|
12957
|
-
message.private_channel = (_d = object.private_channel) != null ? _d :
|
|
12958
|
-
message.active = (_e = object.active) != null ? _e :
|
|
12959
|
-
message.status = (_f = object.status) != null ? _f :
|
|
12960
|
-
message.type = (_g = object.type) != null ? _g :
|
|
12961
|
-
message.limit = (_h = object.limit) != null ? _h :
|
|
12962
|
-
message.page = (_i = object.page) != null ? _i :
|
|
12607
|
+
message.private_channel = (_d = object.private_channel) != null ? _d : 0;
|
|
12608
|
+
message.active = (_e = object.active) != null ? _e : 0;
|
|
12609
|
+
message.status = (_f = object.status) != null ? _f : 0;
|
|
12610
|
+
message.type = (_g = object.type) != null ? _g : 0;
|
|
12611
|
+
message.limit = (_h = object.limit) != null ? _h : 0;
|
|
12612
|
+
message.page = (_i = object.page) != null ? _i : 0;
|
|
12963
12613
|
message.channel_label = (_j = object.channel_label) != null ? _j : "";
|
|
12964
12614
|
return message;
|
|
12965
12615
|
}
|
|
@@ -24066,7 +23716,7 @@ var PermissionChangedEvent = {
|
|
|
24066
23716
|
}
|
|
24067
23717
|
};
|
|
24068
23718
|
function createBaseMessageButtonClicked() {
|
|
24069
|
-
return { message_id: "0", channel_id: "0", button_id: "
|
|
23719
|
+
return { message_id: "0", channel_id: "0", button_id: "", sender_id: "0", user_id: "0", extra_data: "" };
|
|
24070
23720
|
}
|
|
24071
23721
|
var MessageButtonClicked = {
|
|
24072
23722
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
@@ -24076,8 +23726,8 @@ var MessageButtonClicked = {
|
|
|
24076
23726
|
if (message.channel_id !== "0") {
|
|
24077
23727
|
writer.uint32(16).int64(message.channel_id);
|
|
24078
23728
|
}
|
|
24079
|
-
if (message.button_id !== "
|
|
24080
|
-
writer.uint32(
|
|
23729
|
+
if (message.button_id !== "") {
|
|
23730
|
+
writer.uint32(26).string(message.button_id);
|
|
24081
23731
|
}
|
|
24082
23732
|
if (message.sender_id !== "0") {
|
|
24083
23733
|
writer.uint32(32).int64(message.sender_id);
|
|
@@ -24110,10 +23760,10 @@ var MessageButtonClicked = {
|
|
|
24110
23760
|
message.channel_id = longToString2(reader.int64());
|
|
24111
23761
|
continue;
|
|
24112
23762
|
case 3:
|
|
24113
|
-
if (tag !==
|
|
23763
|
+
if (tag !== 26) {
|
|
24114
23764
|
break;
|
|
24115
23765
|
}
|
|
24116
|
-
message.button_id =
|
|
23766
|
+
message.button_id = reader.string();
|
|
24117
23767
|
continue;
|
|
24118
23768
|
case 4:
|
|
24119
23769
|
if (tag !== 32) {
|
|
@@ -24145,7 +23795,7 @@ var MessageButtonClicked = {
|
|
|
24145
23795
|
return {
|
|
24146
23796
|
message_id: isSet3(object.message_id) ? globalThis.String(object.message_id) : "0",
|
|
24147
23797
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
24148
|
-
button_id: isSet3(object.button_id) ? globalThis.String(object.button_id) : "
|
|
23798
|
+
button_id: isSet3(object.button_id) ? globalThis.String(object.button_id) : "",
|
|
24149
23799
|
sender_id: isSet3(object.sender_id) ? globalThis.String(object.sender_id) : "0",
|
|
24150
23800
|
user_id: isSet3(object.user_id) ? globalThis.String(object.user_id) : "0",
|
|
24151
23801
|
extra_data: isSet3(object.extra_data) ? globalThis.String(object.extra_data) : ""
|
|
@@ -24159,7 +23809,7 @@ var MessageButtonClicked = {
|
|
|
24159
23809
|
if (message.channel_id !== "0") {
|
|
24160
23810
|
obj.channel_id = message.channel_id;
|
|
24161
23811
|
}
|
|
24162
|
-
if (message.button_id !== "
|
|
23812
|
+
if (message.button_id !== "") {
|
|
24163
23813
|
obj.button_id = message.button_id;
|
|
24164
23814
|
}
|
|
24165
23815
|
if (message.sender_id !== "0") {
|
|
@@ -24181,7 +23831,7 @@ var MessageButtonClicked = {
|
|
|
24181
23831
|
const message = createBaseMessageButtonClicked();
|
|
24182
23832
|
message.message_id = (_a = object.message_id) != null ? _a : "0";
|
|
24183
23833
|
message.channel_id = (_b = object.channel_id) != null ? _b : "0";
|
|
24184
|
-
message.button_id = (_c = object.button_id) != null ? _c : "
|
|
23834
|
+
message.button_id = (_c = object.button_id) != null ? _c : "";
|
|
24185
23835
|
message.sender_id = (_d = object.sender_id) != null ? _d : "0";
|
|
24186
23836
|
message.user_id = (_e = object.user_id) != null ? _e : "0";
|
|
24187
23837
|
message.extra_data = (_f = object.extra_data) != null ? _f : "";
|
|
@@ -24324,7 +23974,7 @@ var ListActivity = {
|
|
|
24324
23974
|
}
|
|
24325
23975
|
};
|
|
24326
23976
|
function createBaseDropdownBoxSelected() {
|
|
24327
|
-
return { message_id: "0", channel_id: "0", selectbox_id: "
|
|
23977
|
+
return { message_id: "0", channel_id: "0", selectbox_id: "", sender_id: "0", user_id: "0", values: [] };
|
|
24328
23978
|
}
|
|
24329
23979
|
var DropdownBoxSelected = {
|
|
24330
23980
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
@@ -24334,8 +23984,8 @@ var DropdownBoxSelected = {
|
|
|
24334
23984
|
if (message.channel_id !== "0") {
|
|
24335
23985
|
writer.uint32(16).int64(message.channel_id);
|
|
24336
23986
|
}
|
|
24337
|
-
if (message.selectbox_id !== "
|
|
24338
|
-
writer.uint32(
|
|
23987
|
+
if (message.selectbox_id !== "") {
|
|
23988
|
+
writer.uint32(26).string(message.selectbox_id);
|
|
24339
23989
|
}
|
|
24340
23990
|
if (message.sender_id !== "0") {
|
|
24341
23991
|
writer.uint32(32).int64(message.sender_id);
|
|
@@ -24368,10 +24018,10 @@ var DropdownBoxSelected = {
|
|
|
24368
24018
|
message.channel_id = longToString2(reader.int64());
|
|
24369
24019
|
continue;
|
|
24370
24020
|
case 3:
|
|
24371
|
-
if (tag !==
|
|
24021
|
+
if (tag !== 26) {
|
|
24372
24022
|
break;
|
|
24373
24023
|
}
|
|
24374
|
-
message.selectbox_id =
|
|
24024
|
+
message.selectbox_id = reader.string();
|
|
24375
24025
|
continue;
|
|
24376
24026
|
case 4:
|
|
24377
24027
|
if (tag !== 32) {
|
|
@@ -24403,7 +24053,7 @@ var DropdownBoxSelected = {
|
|
|
24403
24053
|
return {
|
|
24404
24054
|
message_id: isSet3(object.message_id) ? globalThis.String(object.message_id) : "0",
|
|
24405
24055
|
channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
24406
|
-
selectbox_id: isSet3(object.selectbox_id) ? globalThis.String(object.selectbox_id) : "
|
|
24056
|
+
selectbox_id: isSet3(object.selectbox_id) ? globalThis.String(object.selectbox_id) : "",
|
|
24407
24057
|
sender_id: isSet3(object.sender_id) ? globalThis.String(object.sender_id) : "0",
|
|
24408
24058
|
user_id: isSet3(object.user_id) ? globalThis.String(object.user_id) : "0",
|
|
24409
24059
|
values: globalThis.Array.isArray(object == null ? void 0 : object.values) ? object.values.map((e) => globalThis.String(e)) : []
|
|
@@ -24418,7 +24068,7 @@ var DropdownBoxSelected = {
|
|
|
24418
24068
|
if (message.channel_id !== "0") {
|
|
24419
24069
|
obj.channel_id = message.channel_id;
|
|
24420
24070
|
}
|
|
24421
|
-
if (message.selectbox_id !== "
|
|
24071
|
+
if (message.selectbox_id !== "") {
|
|
24422
24072
|
obj.selectbox_id = message.selectbox_id;
|
|
24423
24073
|
}
|
|
24424
24074
|
if (message.sender_id !== "0") {
|
|
@@ -24440,7 +24090,7 @@ var DropdownBoxSelected = {
|
|
|
24440
24090
|
const message = createBaseDropdownBoxSelected();
|
|
24441
24091
|
message.message_id = (_a = object.message_id) != null ? _a : "0";
|
|
24442
24092
|
message.channel_id = (_b = object.channel_id) != null ? _b : "0";
|
|
24443
|
-
message.selectbox_id = (_c = object.selectbox_id) != null ? _c : "
|
|
24093
|
+
message.selectbox_id = (_c = object.selectbox_id) != null ? _c : "";
|
|
24444
24094
|
message.sender_id = (_d = object.sender_id) != null ? _d : "0";
|
|
24445
24095
|
message.user_id = (_e = object.user_id) != null ? _e : "0";
|
|
24446
24096
|
message.values = ((_f = object.values) == null ? void 0 : _f.map((e) => e)) || [];
|
|
@@ -25123,8 +24773,6 @@ function createBaseListDataSocket() {
|
|
|
25123
24773
|
channel_user_list: void 0,
|
|
25124
24774
|
list_channel_attachment_req: void 0,
|
|
25125
24775
|
channel_attachment_list: void 0,
|
|
25126
|
-
hashtag_dm_req: void 0,
|
|
25127
|
-
hashtag_dm_list: void 0,
|
|
25128
24776
|
channel_setting_req: void 0,
|
|
25129
24777
|
channel_setting_list: void 0,
|
|
25130
24778
|
favorite_channel_req: void 0,
|
|
@@ -25229,12 +24877,6 @@ var ListDataSocket = {
|
|
|
25229
24877
|
if (message.channel_attachment_list !== void 0) {
|
|
25230
24878
|
ChannelAttachmentList.encode(message.channel_attachment_list, writer.uint32(138).fork()).ldelim();
|
|
25231
24879
|
}
|
|
25232
|
-
if (message.hashtag_dm_req !== void 0) {
|
|
25233
|
-
HashtagDmListRequest.encode(message.hashtag_dm_req, writer.uint32(146).fork()).ldelim();
|
|
25234
|
-
}
|
|
25235
|
-
if (message.hashtag_dm_list !== void 0) {
|
|
25236
|
-
HashtagDmList.encode(message.hashtag_dm_list, writer.uint32(154).fork()).ldelim();
|
|
25237
|
-
}
|
|
25238
24880
|
if (message.channel_setting_req !== void 0) {
|
|
25239
24881
|
ChannelSettingListRequest.encode(message.channel_setting_req, writer.uint32(162).fork()).ldelim();
|
|
25240
24882
|
}
|
|
@@ -25493,18 +25135,6 @@ var ListDataSocket = {
|
|
|
25493
25135
|
}
|
|
25494
25136
|
message.channel_attachment_list = ChannelAttachmentList.decode(reader, reader.uint32());
|
|
25495
25137
|
continue;
|
|
25496
|
-
case 18:
|
|
25497
|
-
if (tag !== 146) {
|
|
25498
|
-
break;
|
|
25499
|
-
}
|
|
25500
|
-
message.hashtag_dm_req = HashtagDmListRequest.decode(reader, reader.uint32());
|
|
25501
|
-
continue;
|
|
25502
|
-
case 19:
|
|
25503
|
-
if (tag !== 154) {
|
|
25504
|
-
break;
|
|
25505
|
-
}
|
|
25506
|
-
message.hashtag_dm_list = HashtagDmList.decode(reader, reader.uint32());
|
|
25507
|
-
continue;
|
|
25508
25138
|
case 20:
|
|
25509
25139
|
if (tag !== 162) {
|
|
25510
25140
|
break;
|
|
@@ -25829,8 +25459,6 @@ var ListDataSocket = {
|
|
|
25829
25459
|
channel_user_list: isSet3(object.channel_user_list) ? ChannelUserList.fromJSON(object.channel_user_list) : void 0,
|
|
25830
25460
|
list_channel_attachment_req: isSet3(object.list_channel_attachment_req) ? ListChannelAttachmentRequest.fromJSON(object.list_channel_attachment_req) : void 0,
|
|
25831
25461
|
channel_attachment_list: isSet3(object.channel_attachment_list) ? ChannelAttachmentList.fromJSON(object.channel_attachment_list) : void 0,
|
|
25832
|
-
hashtag_dm_req: isSet3(object.hashtag_dm_req) ? HashtagDmListRequest.fromJSON(object.hashtag_dm_req) : void 0,
|
|
25833
|
-
hashtag_dm_list: isSet3(object.hashtag_dm_list) ? HashtagDmList.fromJSON(object.hashtag_dm_list) : void 0,
|
|
25834
25462
|
channel_setting_req: isSet3(object.channel_setting_req) ? ChannelSettingListRequest.fromJSON(object.channel_setting_req) : void 0,
|
|
25835
25463
|
channel_setting_list: isSet3(object.channel_setting_list) ? ChannelSettingListResponse.fromJSON(object.channel_setting_list) : void 0,
|
|
25836
25464
|
favorite_channel_req: isSet3(object.favorite_channel_req) ? ListFavoriteChannelRequest.fromJSON(object.favorite_channel_req) : void 0,
|
|
@@ -25935,12 +25563,6 @@ var ListDataSocket = {
|
|
|
25935
25563
|
if (message.channel_attachment_list !== void 0) {
|
|
25936
25564
|
obj.channel_attachment_list = ChannelAttachmentList.toJSON(message.channel_attachment_list);
|
|
25937
25565
|
}
|
|
25938
|
-
if (message.hashtag_dm_req !== void 0) {
|
|
25939
|
-
obj.hashtag_dm_req = HashtagDmListRequest.toJSON(message.hashtag_dm_req);
|
|
25940
|
-
}
|
|
25941
|
-
if (message.hashtag_dm_list !== void 0) {
|
|
25942
|
-
obj.hashtag_dm_list = HashtagDmList.toJSON(message.hashtag_dm_list);
|
|
25943
|
-
}
|
|
25944
25566
|
if (message.channel_setting_req !== void 0) {
|
|
25945
25567
|
obj.channel_setting_req = ChannelSettingListRequest.toJSON(message.channel_setting_req);
|
|
25946
25568
|
}
|
|
@@ -26117,8 +25739,6 @@ var ListDataSocket = {
|
|
|
26117
25739
|
message.channel_user_list = object.channel_user_list !== void 0 && object.channel_user_list !== null ? ChannelUserList.fromPartial(object.channel_user_list) : void 0;
|
|
26118
25740
|
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;
|
|
26119
25741
|
message.channel_attachment_list = object.channel_attachment_list !== void 0 && object.channel_attachment_list !== null ? ChannelAttachmentList.fromPartial(object.channel_attachment_list) : void 0;
|
|
26120
|
-
message.hashtag_dm_req = object.hashtag_dm_req !== void 0 && object.hashtag_dm_req !== null ? HashtagDmListRequest.fromPartial(object.hashtag_dm_req) : void 0;
|
|
26121
|
-
message.hashtag_dm_list = object.hashtag_dm_list !== void 0 && object.hashtag_dm_list !== null ? HashtagDmList.fromPartial(object.hashtag_dm_list) : void 0;
|
|
26122
25742
|
message.channel_setting_req = object.channel_setting_req !== void 0 && object.channel_setting_req !== null ? ChannelSettingListRequest.fromPartial(object.channel_setting_req) : void 0;
|
|
26123
25743
|
message.channel_setting_list = object.channel_setting_list !== void 0 && object.channel_setting_list !== null ? ChannelSettingListResponse.fromPartial(object.channel_setting_list) : void 0;
|
|
26124
25744
|
message.favorite_channel_req = object.favorite_channel_req !== void 0 && object.favorite_channel_req !== null ? ListFavoriteChannelRequest.fromPartial(object.favorite_channel_req) : void 0;
|