mezon-sdk 2.7.99 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/api.d.ts +564 -99
- package/dist/cjs/api/api.js +704 -52
- package/dist/cjs/api/api.js.map +1 -1
- package/dist/cjs/api.d.ts +5 -1
- package/dist/cjs/api.js +55 -0
- package/dist/cjs/api.js.map +1 -1
- package/dist/cjs/constants/enum.d.ts +7 -3
- package/dist/cjs/constants/enum.js +4 -0
- package/dist/cjs/constants/enum.js.map +1 -1
- package/dist/cjs/interfaces/socket.d.ts +42 -0
- package/dist/cjs/mezon-client/client/MezonClient.d.ts +2 -1
- package/dist/cjs/mezon-client/client/MezonClient.js +5 -1
- package/dist/cjs/mezon-client/client/MezonClient.js.map +1 -1
- package/dist/cjs/mezon-client/manager/socket_manager.js +1 -3
- package/dist/cjs/mezon-client/manager/socket_manager.js.map +1 -1
- package/dist/cjs/mezon-client/structures/Clan.d.ts +1 -0
- package/dist/cjs/mezon-client/structures/Clan.js +3 -0
- package/dist/cjs/mezon-client/structures/Clan.js.map +1 -1
- package/dist/cjs/mezon-client/structures/Message.d.ts +1 -1
- package/dist/cjs/mezon-client/structures/Message.js +3 -1
- package/dist/cjs/mezon-client/structures/Message.js.map +1 -1
- package/dist/cjs/mezon-client/structures/TextChannel.d.ts +3 -1
- package/dist/cjs/mezon-client/structures/TextChannel.js +30 -0
- package/dist/cjs/mezon-client/structures/TextChannel.js.map +1 -1
- package/dist/cjs/rtapi/realtime.d.ts +32313 -12006
- package/dist/cjs/rtapi/realtime.js +1471 -7
- package/dist/cjs/rtapi/realtime.js.map +1 -1
- package/dist/cjs/utils/helper.d.ts +2 -1
- package/dist/cjs/utils/helper.js +22 -1
- package/dist/cjs/utils/helper.js.map +1 -1
- package/dist/esm/api/api.d.ts +564 -99
- package/dist/esm/api/api.js +685 -43
- package/dist/esm/api/api.js.map +1 -1
- package/dist/esm/api.d.ts +5 -1
- package/dist/esm/api.js +55 -0
- package/dist/esm/api.js.map +1 -1
- package/dist/esm/constants/enum.d.ts +7 -3
- package/dist/esm/constants/enum.js +4 -0
- package/dist/esm/constants/enum.js.map +1 -1
- package/dist/esm/interfaces/socket.d.ts +42 -0
- package/dist/esm/mezon-client/client/MezonClient.d.ts +2 -1
- package/dist/esm/mezon-client/client/MezonClient.js +5 -1
- package/dist/esm/mezon-client/client/MezonClient.js.map +1 -1
- package/dist/esm/mezon-client/manager/socket_manager.js +1 -3
- package/dist/esm/mezon-client/manager/socket_manager.js.map +1 -1
- package/dist/esm/mezon-client/structures/Clan.d.ts +1 -0
- package/dist/esm/mezon-client/structures/Clan.js +3 -0
- package/dist/esm/mezon-client/structures/Clan.js.map +1 -1
- package/dist/esm/mezon-client/structures/Message.d.ts +1 -1
- package/dist/esm/mezon-client/structures/Message.js +3 -1
- package/dist/esm/mezon-client/structures/Message.js.map +1 -1
- package/dist/esm/mezon-client/structures/TextChannel.d.ts +3 -1
- package/dist/esm/mezon-client/structures/TextChannel.js +30 -1
- package/dist/esm/mezon-client/structures/TextChannel.js.map +1 -1
- package/dist/esm/rtapi/realtime.d.ts +32313 -12006
- package/dist/esm/rtapi/realtime.js +1464 -2
- package/dist/esm/rtapi/realtime.js.map +1 -1
- package/dist/esm/utils/helper.d.ts +2 -1
- package/dist/esm/utils/helper.js +20 -0
- package/dist/esm/utils/helper.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/esm/api/api.js
CHANGED
|
@@ -4028,7 +4028,7 @@ export const ChannelUserList = {
|
|
|
4028
4028
|
},
|
|
4029
4029
|
};
|
|
4030
4030
|
function createBaseChannelUserList_ChannelUser() {
|
|
4031
|
-
return { user_id: "", role_id: [], id: "", thread_id: "", clan_nick: "", clan_avatar: "", clan_id: "" };
|
|
4031
|
+
return { user_id: "", role_id: [], id: "", thread_id: "", clan_nick: "", clan_avatar: "", clan_id: "", added_by: "" };
|
|
4032
4032
|
}
|
|
4033
4033
|
export const ChannelUserList_ChannelUser = {
|
|
4034
4034
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -4053,6 +4053,9 @@ export const ChannelUserList_ChannelUser = {
|
|
|
4053
4053
|
if (message.clan_id !== "") {
|
|
4054
4054
|
writer.uint32(58).string(message.clan_id);
|
|
4055
4055
|
}
|
|
4056
|
+
if (message.added_by !== "") {
|
|
4057
|
+
writer.uint32(66).string(message.added_by);
|
|
4058
|
+
}
|
|
4056
4059
|
return writer;
|
|
4057
4060
|
},
|
|
4058
4061
|
decode(input, length) {
|
|
@@ -4104,6 +4107,12 @@ export const ChannelUserList_ChannelUser = {
|
|
|
4104
4107
|
}
|
|
4105
4108
|
message.clan_id = reader.string();
|
|
4106
4109
|
continue;
|
|
4110
|
+
case 8:
|
|
4111
|
+
if (tag !== 66) {
|
|
4112
|
+
break;
|
|
4113
|
+
}
|
|
4114
|
+
message.added_by = reader.string();
|
|
4115
|
+
continue;
|
|
4107
4116
|
}
|
|
4108
4117
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4109
4118
|
break;
|
|
@@ -4121,6 +4130,7 @@ export const ChannelUserList_ChannelUser = {
|
|
|
4121
4130
|
clan_nick: isSet(object.clan_nick) ? globalThis.String(object.clan_nick) : "",
|
|
4122
4131
|
clan_avatar: isSet(object.clan_avatar) ? globalThis.String(object.clan_avatar) : "",
|
|
4123
4132
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
4133
|
+
added_by: isSet(object.added_by) ? globalThis.String(object.added_by) : "",
|
|
4124
4134
|
};
|
|
4125
4135
|
},
|
|
4126
4136
|
toJSON(message) {
|
|
@@ -4146,6 +4156,9 @@ export const ChannelUserList_ChannelUser = {
|
|
|
4146
4156
|
if (message.clan_id !== "") {
|
|
4147
4157
|
obj.clan_id = message.clan_id;
|
|
4148
4158
|
}
|
|
4159
|
+
if (message.added_by !== "") {
|
|
4160
|
+
obj.added_by = message.added_by;
|
|
4161
|
+
}
|
|
4149
4162
|
return obj;
|
|
4150
4163
|
},
|
|
4151
4164
|
create(base) {
|
|
@@ -4160,6 +4173,7 @@ export const ChannelUserList_ChannelUser = {
|
|
|
4160
4173
|
message.clan_nick = object.clan_nick ?? "";
|
|
4161
4174
|
message.clan_avatar = object.clan_avatar ?? "";
|
|
4162
4175
|
message.clan_id = object.clan_id ?? "";
|
|
4176
|
+
message.added_by = object.added_by ?? "";
|
|
4163
4177
|
return message;
|
|
4164
4178
|
},
|
|
4165
4179
|
};
|
|
@@ -7079,6 +7093,7 @@ function createBaseUser() {
|
|
|
7079
7093
|
is_mobile: false,
|
|
7080
7094
|
dob: undefined,
|
|
7081
7095
|
mezon_id: "",
|
|
7096
|
+
list_nick_names: [],
|
|
7082
7097
|
};
|
|
7083
7098
|
}
|
|
7084
7099
|
export const User = {
|
|
@@ -7149,6 +7164,9 @@ export const User = {
|
|
|
7149
7164
|
if (message.mezon_id !== "") {
|
|
7150
7165
|
writer.uint32(178).string(message.mezon_id);
|
|
7151
7166
|
}
|
|
7167
|
+
for (const v of message.list_nick_names) {
|
|
7168
|
+
writer.uint32(186).string(v);
|
|
7169
|
+
}
|
|
7152
7170
|
return writer;
|
|
7153
7171
|
},
|
|
7154
7172
|
decode(input, length) {
|
|
@@ -7290,6 +7308,12 @@ export const User = {
|
|
|
7290
7308
|
}
|
|
7291
7309
|
message.mezon_id = reader.string();
|
|
7292
7310
|
continue;
|
|
7311
|
+
case 23:
|
|
7312
|
+
if (tag !== 186) {
|
|
7313
|
+
break;
|
|
7314
|
+
}
|
|
7315
|
+
message.list_nick_names.push(reader.string());
|
|
7316
|
+
continue;
|
|
7293
7317
|
}
|
|
7294
7318
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7295
7319
|
break;
|
|
@@ -7322,6 +7346,9 @@ export const User = {
|
|
|
7322
7346
|
is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
7323
7347
|
dob: isSet(object.dob) ? fromJsonTimestamp(object.dob) : undefined,
|
|
7324
7348
|
mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
7349
|
+
list_nick_names: globalThis.Array.isArray(object?.list_nick_names)
|
|
7350
|
+
? object.list_nick_names.map((e) => globalThis.String(e))
|
|
7351
|
+
: [],
|
|
7325
7352
|
};
|
|
7326
7353
|
},
|
|
7327
7354
|
toJSON(message) {
|
|
@@ -7392,6 +7419,9 @@ export const User = {
|
|
|
7392
7419
|
if (message.mezon_id !== "") {
|
|
7393
7420
|
obj.mezon_id = message.mezon_id;
|
|
7394
7421
|
}
|
|
7422
|
+
if (message.list_nick_names?.length) {
|
|
7423
|
+
obj.list_nick_names = message.list_nick_names;
|
|
7424
|
+
}
|
|
7395
7425
|
return obj;
|
|
7396
7426
|
},
|
|
7397
7427
|
create(base) {
|
|
@@ -7421,6 +7451,7 @@ export const User = {
|
|
|
7421
7451
|
message.is_mobile = object.is_mobile ?? false;
|
|
7422
7452
|
message.dob = object.dob ?? undefined;
|
|
7423
7453
|
message.mezon_id = object.mezon_id ?? "";
|
|
7454
|
+
message.list_nick_names = object.list_nick_names?.map((e) => e) || [];
|
|
7424
7455
|
return message;
|
|
7425
7456
|
},
|
|
7426
7457
|
};
|
|
@@ -17446,7 +17477,17 @@ export const RegistrationEmailRequest_VarsEntry = {
|
|
|
17446
17477
|
},
|
|
17447
17478
|
};
|
|
17448
17479
|
function createBaseClanEmoji() {
|
|
17449
|
-
return {
|
|
17480
|
+
return {
|
|
17481
|
+
id: "",
|
|
17482
|
+
src: "",
|
|
17483
|
+
shortname: "",
|
|
17484
|
+
category: "",
|
|
17485
|
+
creator_id: "",
|
|
17486
|
+
clan_id: "",
|
|
17487
|
+
logo: "",
|
|
17488
|
+
clan_name: "",
|
|
17489
|
+
is_for_sale: false,
|
|
17490
|
+
};
|
|
17450
17491
|
}
|
|
17451
17492
|
export const ClanEmoji = {
|
|
17452
17493
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -17474,6 +17515,9 @@ export const ClanEmoji = {
|
|
|
17474
17515
|
if (message.clan_name !== "") {
|
|
17475
17516
|
writer.uint32(66).string(message.clan_name);
|
|
17476
17517
|
}
|
|
17518
|
+
if (message.is_for_sale !== false) {
|
|
17519
|
+
writer.uint32(72).bool(message.is_for_sale);
|
|
17520
|
+
}
|
|
17477
17521
|
return writer;
|
|
17478
17522
|
},
|
|
17479
17523
|
decode(input, length) {
|
|
@@ -17531,6 +17575,12 @@ export const ClanEmoji = {
|
|
|
17531
17575
|
}
|
|
17532
17576
|
message.clan_name = reader.string();
|
|
17533
17577
|
continue;
|
|
17578
|
+
case 9:
|
|
17579
|
+
if (tag !== 72) {
|
|
17580
|
+
break;
|
|
17581
|
+
}
|
|
17582
|
+
message.is_for_sale = reader.bool();
|
|
17583
|
+
continue;
|
|
17534
17584
|
}
|
|
17535
17585
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17536
17586
|
break;
|
|
@@ -17549,6 +17599,7 @@ export const ClanEmoji = {
|
|
|
17549
17599
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
17550
17600
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
17551
17601
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
17602
|
+
is_for_sale: isSet(object.is_for_sale) ? globalThis.Boolean(object.is_for_sale) : false,
|
|
17552
17603
|
};
|
|
17553
17604
|
},
|
|
17554
17605
|
toJSON(message) {
|
|
@@ -17577,6 +17628,9 @@ export const ClanEmoji = {
|
|
|
17577
17628
|
if (message.clan_name !== "") {
|
|
17578
17629
|
obj.clan_name = message.clan_name;
|
|
17579
17630
|
}
|
|
17631
|
+
if (message.is_for_sale !== false) {
|
|
17632
|
+
obj.is_for_sale = message.is_for_sale;
|
|
17633
|
+
}
|
|
17580
17634
|
return obj;
|
|
17581
17635
|
},
|
|
17582
17636
|
create(base) {
|
|
@@ -17592,6 +17646,7 @@ export const ClanEmoji = {
|
|
|
17592
17646
|
message.clan_id = object.clan_id ?? "";
|
|
17593
17647
|
message.logo = object.logo ?? "";
|
|
17594
17648
|
message.clan_name = object.clan_name ?? "";
|
|
17649
|
+
message.is_for_sale = object.is_for_sale ?? false;
|
|
17595
17650
|
return message;
|
|
17596
17651
|
},
|
|
17597
17652
|
};
|
|
@@ -17715,6 +17770,7 @@ function createBaseClanSticker() {
|
|
|
17715
17770
|
logo: "",
|
|
17716
17771
|
clan_name: "",
|
|
17717
17772
|
media_type: 0,
|
|
17773
|
+
is_for_sale: false,
|
|
17718
17774
|
};
|
|
17719
17775
|
}
|
|
17720
17776
|
export const ClanSticker = {
|
|
@@ -17749,6 +17805,9 @@ export const ClanSticker = {
|
|
|
17749
17805
|
if (message.media_type !== 0) {
|
|
17750
17806
|
writer.uint32(80).int32(message.media_type);
|
|
17751
17807
|
}
|
|
17808
|
+
if (message.is_for_sale !== false) {
|
|
17809
|
+
writer.uint32(88).bool(message.is_for_sale);
|
|
17810
|
+
}
|
|
17752
17811
|
return writer;
|
|
17753
17812
|
},
|
|
17754
17813
|
decode(input, length) {
|
|
@@ -17818,6 +17877,12 @@ export const ClanSticker = {
|
|
|
17818
17877
|
}
|
|
17819
17878
|
message.media_type = reader.int32();
|
|
17820
17879
|
continue;
|
|
17880
|
+
case 11:
|
|
17881
|
+
if (tag !== 88) {
|
|
17882
|
+
break;
|
|
17883
|
+
}
|
|
17884
|
+
message.is_for_sale = reader.bool();
|
|
17885
|
+
continue;
|
|
17821
17886
|
}
|
|
17822
17887
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17823
17888
|
break;
|
|
@@ -17838,6 +17903,7 @@ export const ClanSticker = {
|
|
|
17838
17903
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
17839
17904
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
17840
17905
|
media_type: isSet(object.media_type) ? globalThis.Number(object.media_type) : 0,
|
|
17906
|
+
is_for_sale: isSet(object.is_for_sale) ? globalThis.Boolean(object.is_for_sale) : false,
|
|
17841
17907
|
};
|
|
17842
17908
|
},
|
|
17843
17909
|
toJSON(message) {
|
|
@@ -17872,6 +17938,9 @@ export const ClanSticker = {
|
|
|
17872
17938
|
if (message.media_type !== 0) {
|
|
17873
17939
|
obj.media_type = Math.round(message.media_type);
|
|
17874
17940
|
}
|
|
17941
|
+
if (message.is_for_sale !== false) {
|
|
17942
|
+
obj.is_for_sale = message.is_for_sale;
|
|
17943
|
+
}
|
|
17875
17944
|
return obj;
|
|
17876
17945
|
},
|
|
17877
17946
|
create(base) {
|
|
@@ -17889,6 +17958,7 @@ export const ClanSticker = {
|
|
|
17889
17958
|
message.logo = object.logo ?? "";
|
|
17890
17959
|
message.clan_name = object.clan_name ?? "";
|
|
17891
17960
|
message.media_type = object.media_type ?? 0;
|
|
17961
|
+
message.is_for_sale = object.is_for_sale ?? false;
|
|
17892
17962
|
return message;
|
|
17893
17963
|
},
|
|
17894
17964
|
};
|
|
@@ -18039,7 +18109,7 @@ export const AllUsersAddChannelResponse = {
|
|
|
18039
18109
|
},
|
|
18040
18110
|
};
|
|
18041
18111
|
function createBaseClanEmojiCreateRequest() {
|
|
18042
|
-
return { clan_id: "", source: "", shortname: "", category: "", id: "" };
|
|
18112
|
+
return { clan_id: "", source: "", shortname: "", category: "", id: "", is_for_sale: false };
|
|
18043
18113
|
}
|
|
18044
18114
|
export const ClanEmojiCreateRequest = {
|
|
18045
18115
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -18058,6 +18128,9 @@ export const ClanEmojiCreateRequest = {
|
|
|
18058
18128
|
if (message.id !== "") {
|
|
18059
18129
|
writer.uint32(42).string(message.id);
|
|
18060
18130
|
}
|
|
18131
|
+
if (message.is_for_sale !== false) {
|
|
18132
|
+
writer.uint32(48).bool(message.is_for_sale);
|
|
18133
|
+
}
|
|
18061
18134
|
return writer;
|
|
18062
18135
|
},
|
|
18063
18136
|
decode(input, length) {
|
|
@@ -18097,6 +18170,12 @@ export const ClanEmojiCreateRequest = {
|
|
|
18097
18170
|
}
|
|
18098
18171
|
message.id = reader.string();
|
|
18099
18172
|
continue;
|
|
18173
|
+
case 6:
|
|
18174
|
+
if (tag !== 48) {
|
|
18175
|
+
break;
|
|
18176
|
+
}
|
|
18177
|
+
message.is_for_sale = reader.bool();
|
|
18178
|
+
continue;
|
|
18100
18179
|
}
|
|
18101
18180
|
if ((tag & 7) === 4 || tag === 0) {
|
|
18102
18181
|
break;
|
|
@@ -18112,6 +18191,7 @@ export const ClanEmojiCreateRequest = {
|
|
|
18112
18191
|
shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
|
|
18113
18192
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
18114
18193
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
18194
|
+
is_for_sale: isSet(object.is_for_sale) ? globalThis.Boolean(object.is_for_sale) : false,
|
|
18115
18195
|
};
|
|
18116
18196
|
},
|
|
18117
18197
|
toJSON(message) {
|
|
@@ -18131,6 +18211,9 @@ export const ClanEmojiCreateRequest = {
|
|
|
18131
18211
|
if (message.id !== "") {
|
|
18132
18212
|
obj.id = message.id;
|
|
18133
18213
|
}
|
|
18214
|
+
if (message.is_for_sale !== false) {
|
|
18215
|
+
obj.is_for_sale = message.is_for_sale;
|
|
18216
|
+
}
|
|
18134
18217
|
return obj;
|
|
18135
18218
|
},
|
|
18136
18219
|
create(base) {
|
|
@@ -18143,6 +18226,7 @@ export const ClanEmojiCreateRequest = {
|
|
|
18143
18226
|
message.shortname = object.shortname ?? "";
|
|
18144
18227
|
message.category = object.category ?? "";
|
|
18145
18228
|
message.id = object.id ?? "";
|
|
18229
|
+
message.is_for_sale = object.is_for_sale ?? false;
|
|
18146
18230
|
return message;
|
|
18147
18231
|
},
|
|
18148
18232
|
};
|
|
@@ -19284,7 +19368,7 @@ export const CheckDuplicateClanNameResponse = {
|
|
|
19284
19368
|
},
|
|
19285
19369
|
};
|
|
19286
19370
|
function createBaseClanStickerAddRequest() {
|
|
19287
|
-
return { source: "", shortname: "", category: "", clan_id:
|
|
19371
|
+
return { source: "", shortname: "", category: "", clan_id: "", id: "", media_type: 0, is_for_sale: false };
|
|
19288
19372
|
}
|
|
19289
19373
|
export const ClanStickerAddRequest = {
|
|
19290
19374
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -19297,8 +19381,8 @@ export const ClanStickerAddRequest = {
|
|
|
19297
19381
|
if (message.category !== "") {
|
|
19298
19382
|
writer.uint32(26).string(message.category);
|
|
19299
19383
|
}
|
|
19300
|
-
if (message.clan_id !==
|
|
19301
|
-
writer.uint32(
|
|
19384
|
+
if (message.clan_id !== "") {
|
|
19385
|
+
writer.uint32(34).string(message.clan_id);
|
|
19302
19386
|
}
|
|
19303
19387
|
if (message.id !== "") {
|
|
19304
19388
|
writer.uint32(42).string(message.id);
|
|
@@ -19306,6 +19390,9 @@ export const ClanStickerAddRequest = {
|
|
|
19306
19390
|
if (message.media_type !== 0) {
|
|
19307
19391
|
writer.uint32(48).int32(message.media_type);
|
|
19308
19392
|
}
|
|
19393
|
+
if (message.is_for_sale !== false) {
|
|
19394
|
+
writer.uint32(56).bool(message.is_for_sale);
|
|
19395
|
+
}
|
|
19309
19396
|
return writer;
|
|
19310
19397
|
},
|
|
19311
19398
|
decode(input, length) {
|
|
@@ -19334,10 +19421,10 @@ export const ClanStickerAddRequest = {
|
|
|
19334
19421
|
message.category = reader.string();
|
|
19335
19422
|
continue;
|
|
19336
19423
|
case 4:
|
|
19337
|
-
if (tag !==
|
|
19424
|
+
if (tag !== 34) {
|
|
19338
19425
|
break;
|
|
19339
19426
|
}
|
|
19340
|
-
message.clan_id =
|
|
19427
|
+
message.clan_id = reader.string();
|
|
19341
19428
|
continue;
|
|
19342
19429
|
case 5:
|
|
19343
19430
|
if (tag !== 42) {
|
|
@@ -19351,6 +19438,12 @@ export const ClanStickerAddRequest = {
|
|
|
19351
19438
|
}
|
|
19352
19439
|
message.media_type = reader.int32();
|
|
19353
19440
|
continue;
|
|
19441
|
+
case 7:
|
|
19442
|
+
if (tag !== 56) {
|
|
19443
|
+
break;
|
|
19444
|
+
}
|
|
19445
|
+
message.is_for_sale = reader.bool();
|
|
19446
|
+
continue;
|
|
19354
19447
|
}
|
|
19355
19448
|
if ((tag & 7) === 4 || tag === 0) {
|
|
19356
19449
|
break;
|
|
@@ -19364,9 +19457,10 @@ export const ClanStickerAddRequest = {
|
|
|
19364
19457
|
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
19365
19458
|
shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
|
|
19366
19459
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
19367
|
-
clan_id: isSet(object.clan_id) ? globalThis.
|
|
19460
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
19368
19461
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
19369
19462
|
media_type: isSet(object.media_type) ? globalThis.Number(object.media_type) : 0,
|
|
19463
|
+
is_for_sale: isSet(object.is_for_sale) ? globalThis.Boolean(object.is_for_sale) : false,
|
|
19370
19464
|
};
|
|
19371
19465
|
},
|
|
19372
19466
|
toJSON(message) {
|
|
@@ -19380,8 +19474,8 @@ export const ClanStickerAddRequest = {
|
|
|
19380
19474
|
if (message.category !== "") {
|
|
19381
19475
|
obj.category = message.category;
|
|
19382
19476
|
}
|
|
19383
|
-
if (message.clan_id !==
|
|
19384
|
-
obj.clan_id =
|
|
19477
|
+
if (message.clan_id !== "") {
|
|
19478
|
+
obj.clan_id = message.clan_id;
|
|
19385
19479
|
}
|
|
19386
19480
|
if (message.id !== "") {
|
|
19387
19481
|
obj.id = message.id;
|
|
@@ -19389,6 +19483,9 @@ export const ClanStickerAddRequest = {
|
|
|
19389
19483
|
if (message.media_type !== 0) {
|
|
19390
19484
|
obj.media_type = Math.round(message.media_type);
|
|
19391
19485
|
}
|
|
19486
|
+
if (message.is_for_sale !== false) {
|
|
19487
|
+
obj.is_for_sale = message.is_for_sale;
|
|
19488
|
+
}
|
|
19392
19489
|
return obj;
|
|
19393
19490
|
},
|
|
19394
19491
|
create(base) {
|
|
@@ -19399,9 +19496,10 @@ export const ClanStickerAddRequest = {
|
|
|
19399
19496
|
message.source = object.source ?? "";
|
|
19400
19497
|
message.shortname = object.shortname ?? "";
|
|
19401
19498
|
message.category = object.category ?? "";
|
|
19402
|
-
message.clan_id = object.clan_id ??
|
|
19499
|
+
message.clan_id = object.clan_id ?? "";
|
|
19403
19500
|
message.id = object.id ?? "";
|
|
19404
19501
|
message.media_type = object.media_type ?? 0;
|
|
19502
|
+
message.is_for_sale = object.is_for_sale ?? false;
|
|
19405
19503
|
return message;
|
|
19406
19504
|
},
|
|
19407
19505
|
};
|
|
@@ -20297,6 +20395,7 @@ function createBaseUpdateAppRequest() {
|
|
|
20297
20395
|
token: undefined,
|
|
20298
20396
|
about: "",
|
|
20299
20397
|
app_url: "",
|
|
20398
|
+
is_shadow: "",
|
|
20300
20399
|
};
|
|
20301
20400
|
}
|
|
20302
20401
|
export const UpdateAppRequest = {
|
|
@@ -20322,6 +20421,9 @@ export const UpdateAppRequest = {
|
|
|
20322
20421
|
if (message.app_url !== "") {
|
|
20323
20422
|
writer.uint32(58).string(message.app_url);
|
|
20324
20423
|
}
|
|
20424
|
+
if (message.is_shadow !== "") {
|
|
20425
|
+
writer.uint32(74).string(message.is_shadow);
|
|
20426
|
+
}
|
|
20325
20427
|
return writer;
|
|
20326
20428
|
},
|
|
20327
20429
|
decode(input, length) {
|
|
@@ -20373,6 +20475,12 @@ export const UpdateAppRequest = {
|
|
|
20373
20475
|
}
|
|
20374
20476
|
message.app_url = reader.string();
|
|
20375
20477
|
continue;
|
|
20478
|
+
case 9:
|
|
20479
|
+
if (tag !== 74) {
|
|
20480
|
+
break;
|
|
20481
|
+
}
|
|
20482
|
+
message.is_shadow = reader.string();
|
|
20483
|
+
continue;
|
|
20376
20484
|
}
|
|
20377
20485
|
if ((tag & 7) === 4 || tag === 0) {
|
|
20378
20486
|
break;
|
|
@@ -20390,6 +20498,7 @@ export const UpdateAppRequest = {
|
|
|
20390
20498
|
token: isSet(object.token) ? String(object.token) : undefined,
|
|
20391
20499
|
about: isSet(object.about) ? globalThis.String(object.about) : "",
|
|
20392
20500
|
app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
|
|
20501
|
+
is_shadow: isSet(object.is_shadow) ? globalThis.String(object.is_shadow) : "",
|
|
20393
20502
|
};
|
|
20394
20503
|
},
|
|
20395
20504
|
toJSON(message) {
|
|
@@ -20415,6 +20524,9 @@ export const UpdateAppRequest = {
|
|
|
20415
20524
|
if (message.app_url !== "") {
|
|
20416
20525
|
obj.app_url = message.app_url;
|
|
20417
20526
|
}
|
|
20527
|
+
if (message.is_shadow !== "") {
|
|
20528
|
+
obj.is_shadow = message.is_shadow;
|
|
20529
|
+
}
|
|
20418
20530
|
return obj;
|
|
20419
20531
|
},
|
|
20420
20532
|
create(base) {
|
|
@@ -20429,6 +20541,7 @@ export const UpdateAppRequest = {
|
|
|
20429
20541
|
message.token = object.token ?? undefined;
|
|
20430
20542
|
message.about = object.about ?? "";
|
|
20431
20543
|
message.app_url = object.app_url ?? "";
|
|
20544
|
+
message.is_shadow = object.is_shadow ?? "";
|
|
20432
20545
|
return message;
|
|
20433
20546
|
},
|
|
20434
20547
|
};
|
|
@@ -25834,28 +25947,37 @@ export const TokenSentEvent = {
|
|
|
25834
25947
|
return message;
|
|
25835
25948
|
},
|
|
25836
25949
|
};
|
|
25837
|
-
function
|
|
25838
|
-
return {
|
|
25950
|
+
function createBaseUnlockItemRequest() {
|
|
25951
|
+
return { item_id: "", item_type: 0 };
|
|
25839
25952
|
}
|
|
25840
|
-
export const
|
|
25953
|
+
export const UnlockItemRequest = {
|
|
25841
25954
|
encode(message, writer = _m0.Writer.create()) {
|
|
25842
|
-
if (message.
|
|
25843
|
-
writer.uint32(
|
|
25955
|
+
if (message.item_id !== "") {
|
|
25956
|
+
writer.uint32(10).string(message.item_id);
|
|
25957
|
+
}
|
|
25958
|
+
if (message.item_type !== 0) {
|
|
25959
|
+
writer.uint32(16).int32(message.item_type);
|
|
25844
25960
|
}
|
|
25845
25961
|
return writer;
|
|
25846
25962
|
},
|
|
25847
25963
|
decode(input, length) {
|
|
25848
25964
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
25849
25965
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25850
|
-
const message =
|
|
25966
|
+
const message = createBaseUnlockItemRequest();
|
|
25851
25967
|
while (reader.pos < end) {
|
|
25852
25968
|
const tag = reader.uint32();
|
|
25853
25969
|
switch (tag >>> 3) {
|
|
25854
25970
|
case 1:
|
|
25855
|
-
if (tag !==
|
|
25971
|
+
if (tag !== 10) {
|
|
25856
25972
|
break;
|
|
25857
25973
|
}
|
|
25858
|
-
message.
|
|
25974
|
+
message.item_id = reader.string();
|
|
25975
|
+
continue;
|
|
25976
|
+
case 2:
|
|
25977
|
+
if (tag !== 16) {
|
|
25978
|
+
break;
|
|
25979
|
+
}
|
|
25980
|
+
message.item_type = reader.int32();
|
|
25859
25981
|
continue;
|
|
25860
25982
|
}
|
|
25861
25983
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -25866,21 +25988,78 @@ export const WithdrawTokenRequest = {
|
|
|
25866
25988
|
return message;
|
|
25867
25989
|
},
|
|
25868
25990
|
fromJSON(object) {
|
|
25869
|
-
return {
|
|
25991
|
+
return {
|
|
25992
|
+
item_id: isSet(object.item_id) ? globalThis.String(object.item_id) : "",
|
|
25993
|
+
item_type: isSet(object.item_type) ? globalThis.Number(object.item_type) : 0,
|
|
25994
|
+
};
|
|
25870
25995
|
},
|
|
25871
25996
|
toJSON(message) {
|
|
25872
25997
|
const obj = {};
|
|
25873
|
-
if (message.
|
|
25874
|
-
obj.
|
|
25998
|
+
if (message.item_id !== "") {
|
|
25999
|
+
obj.item_id = message.item_id;
|
|
26000
|
+
}
|
|
26001
|
+
if (message.item_type !== 0) {
|
|
26002
|
+
obj.item_type = Math.round(message.item_type);
|
|
25875
26003
|
}
|
|
25876
26004
|
return obj;
|
|
25877
26005
|
},
|
|
25878
26006
|
create(base) {
|
|
25879
|
-
return
|
|
26007
|
+
return UnlockItemRequest.fromPartial(base ?? {});
|
|
25880
26008
|
},
|
|
25881
26009
|
fromPartial(object) {
|
|
25882
|
-
const message =
|
|
25883
|
-
message.
|
|
26010
|
+
const message = createBaseUnlockItemRequest();
|
|
26011
|
+
message.item_id = object.item_id ?? "";
|
|
26012
|
+
message.item_type = object.item_type ?? 0;
|
|
26013
|
+
return message;
|
|
26014
|
+
},
|
|
26015
|
+
};
|
|
26016
|
+
function createBaseUnlockedItemResponse() {
|
|
26017
|
+
return { source: "" };
|
|
26018
|
+
}
|
|
26019
|
+
export const UnlockedItemResponse = {
|
|
26020
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
26021
|
+
if (message.source !== "") {
|
|
26022
|
+
writer.uint32(10).string(message.source);
|
|
26023
|
+
}
|
|
26024
|
+
return writer;
|
|
26025
|
+
},
|
|
26026
|
+
decode(input, length) {
|
|
26027
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
26028
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
26029
|
+
const message = createBaseUnlockedItemResponse();
|
|
26030
|
+
while (reader.pos < end) {
|
|
26031
|
+
const tag = reader.uint32();
|
|
26032
|
+
switch (tag >>> 3) {
|
|
26033
|
+
case 1:
|
|
26034
|
+
if (tag !== 10) {
|
|
26035
|
+
break;
|
|
26036
|
+
}
|
|
26037
|
+
message.source = reader.string();
|
|
26038
|
+
continue;
|
|
26039
|
+
}
|
|
26040
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
26041
|
+
break;
|
|
26042
|
+
}
|
|
26043
|
+
reader.skipType(tag & 7);
|
|
26044
|
+
}
|
|
26045
|
+
return message;
|
|
26046
|
+
},
|
|
26047
|
+
fromJSON(object) {
|
|
26048
|
+
return { source: isSet(object.source) ? globalThis.String(object.source) : "" };
|
|
26049
|
+
},
|
|
26050
|
+
toJSON(message) {
|
|
26051
|
+
const obj = {};
|
|
26052
|
+
if (message.source !== "") {
|
|
26053
|
+
obj.source = message.source;
|
|
26054
|
+
}
|
|
26055
|
+
return obj;
|
|
26056
|
+
},
|
|
26057
|
+
create(base) {
|
|
26058
|
+
return UnlockedItemResponse.fromPartial(base ?? {});
|
|
26059
|
+
},
|
|
26060
|
+
fromPartial(object) {
|
|
26061
|
+
const message = createBaseUnlockedItemResponse();
|
|
26062
|
+
message.source = object.source ?? "";
|
|
25884
26063
|
return message;
|
|
25885
26064
|
},
|
|
25886
26065
|
};
|
|
@@ -28158,15 +28337,15 @@ export const WalletLedgerList = {
|
|
|
28158
28337
|
},
|
|
28159
28338
|
};
|
|
28160
28339
|
function createBaseWalletLedgerListReq() {
|
|
28161
|
-
return { limit: undefined,
|
|
28340
|
+
return { limit: undefined, filter: 0, transaction_id: "", page: undefined };
|
|
28162
28341
|
}
|
|
28163
28342
|
export const WalletLedgerListReq = {
|
|
28164
28343
|
encode(message, writer = _m0.Writer.create()) {
|
|
28165
28344
|
if (message.limit !== undefined) {
|
|
28166
28345
|
Int32Value.encode({ value: message.limit }, writer.uint32(10).fork()).ldelim();
|
|
28167
28346
|
}
|
|
28168
|
-
if (message.
|
|
28169
|
-
writer.uint32(
|
|
28347
|
+
if (message.filter !== 0) {
|
|
28348
|
+
writer.uint32(16).int32(message.filter);
|
|
28170
28349
|
}
|
|
28171
28350
|
if (message.transaction_id !== "") {
|
|
28172
28351
|
writer.uint32(26).string(message.transaction_id);
|
|
@@ -28190,10 +28369,10 @@ export const WalletLedgerListReq = {
|
|
|
28190
28369
|
message.limit = Int32Value.decode(reader, reader.uint32()).value;
|
|
28191
28370
|
continue;
|
|
28192
28371
|
case 2:
|
|
28193
|
-
if (tag !==
|
|
28372
|
+
if (tag !== 16) {
|
|
28194
28373
|
break;
|
|
28195
28374
|
}
|
|
28196
|
-
message.
|
|
28375
|
+
message.filter = reader.int32();
|
|
28197
28376
|
continue;
|
|
28198
28377
|
case 3:
|
|
28199
28378
|
if (tag !== 26) {
|
|
@@ -28218,7 +28397,7 @@ export const WalletLedgerListReq = {
|
|
|
28218
28397
|
fromJSON(object) {
|
|
28219
28398
|
return {
|
|
28220
28399
|
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
28221
|
-
|
|
28400
|
+
filter: isSet(object.filter) ? globalThis.Number(object.filter) : 0,
|
|
28222
28401
|
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
|
|
28223
28402
|
page: isSet(object.page) ? Number(object.page) : undefined,
|
|
28224
28403
|
};
|
|
@@ -28228,8 +28407,8 @@ export const WalletLedgerListReq = {
|
|
|
28228
28407
|
if (message.limit !== undefined) {
|
|
28229
28408
|
obj.limit = message.limit;
|
|
28230
28409
|
}
|
|
28231
|
-
if (message.
|
|
28232
|
-
obj.
|
|
28410
|
+
if (message.filter !== 0) {
|
|
28411
|
+
obj.filter = Math.round(message.filter);
|
|
28233
28412
|
}
|
|
28234
28413
|
if (message.transaction_id !== "") {
|
|
28235
28414
|
obj.transaction_id = message.transaction_id;
|
|
@@ -28245,7 +28424,7 @@ export const WalletLedgerListReq = {
|
|
|
28245
28424
|
fromPartial(object) {
|
|
28246
28425
|
const message = createBaseWalletLedgerListReq();
|
|
28247
28426
|
message.limit = object.limit ?? undefined;
|
|
28248
|
-
message.
|
|
28427
|
+
message.filter = object.filter ?? 0;
|
|
28249
28428
|
message.transaction_id = object.transaction_id ?? "";
|
|
28250
28429
|
message.page = object.page ?? undefined;
|
|
28251
28430
|
return message;
|
|
@@ -30108,11 +30287,11 @@ export const MezonOauthClient = {
|
|
|
30108
30287
|
},
|
|
30109
30288
|
};
|
|
30110
30289
|
function createBaseMezonOauthClientList() {
|
|
30111
|
-
return {
|
|
30290
|
+
return { list_mezon_oauth_client: [] };
|
|
30112
30291
|
}
|
|
30113
30292
|
export const MezonOauthClientList = {
|
|
30114
30293
|
encode(message, writer = _m0.Writer.create()) {
|
|
30115
|
-
for (const v of message.
|
|
30294
|
+
for (const v of message.list_mezon_oauth_client) {
|
|
30116
30295
|
MezonOauthClient.encode(v, writer.uint32(10).fork()).ldelim();
|
|
30117
30296
|
}
|
|
30118
30297
|
return writer;
|
|
@@ -30128,7 +30307,7 @@ export const MezonOauthClientList = {
|
|
|
30128
30307
|
if (tag !== 10) {
|
|
30129
30308
|
break;
|
|
30130
30309
|
}
|
|
30131
|
-
message.
|
|
30310
|
+
message.list_mezon_oauth_client.push(MezonOauthClient.decode(reader, reader.uint32()));
|
|
30132
30311
|
continue;
|
|
30133
30312
|
}
|
|
30134
30313
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -30140,15 +30319,15 @@ export const MezonOauthClientList = {
|
|
|
30140
30319
|
},
|
|
30141
30320
|
fromJSON(object) {
|
|
30142
30321
|
return {
|
|
30143
|
-
|
|
30144
|
-
? object.
|
|
30322
|
+
list_mezon_oauth_client: globalThis.Array.isArray(object?.list_mezon_oauth_client)
|
|
30323
|
+
? object.list_mezon_oauth_client.map((e) => MezonOauthClient.fromJSON(e))
|
|
30145
30324
|
: [],
|
|
30146
30325
|
};
|
|
30147
30326
|
},
|
|
30148
30327
|
toJSON(message) {
|
|
30149
30328
|
const obj = {};
|
|
30150
|
-
if (message.
|
|
30151
|
-
obj.
|
|
30329
|
+
if (message.list_mezon_oauth_client?.length) {
|
|
30330
|
+
obj.list_mezon_oauth_client = message.list_mezon_oauth_client.map((e) => MezonOauthClient.toJSON(e));
|
|
30152
30331
|
}
|
|
30153
30332
|
return obj;
|
|
30154
30333
|
},
|
|
@@ -30157,7 +30336,7 @@ export const MezonOauthClientList = {
|
|
|
30157
30336
|
},
|
|
30158
30337
|
fromPartial(object) {
|
|
30159
30338
|
const message = createBaseMezonOauthClientList();
|
|
30160
|
-
message.
|
|
30339
|
+
message.list_mezon_oauth_client = object.list_mezon_oauth_client?.map((e) => MezonOauthClient.fromPartial(e)) || [];
|
|
30161
30340
|
return message;
|
|
30162
30341
|
},
|
|
30163
30342
|
};
|
|
@@ -30897,6 +31076,469 @@ export const AccountMezon_VarsEntry = {
|
|
|
30897
31076
|
return message;
|
|
30898
31077
|
},
|
|
30899
31078
|
};
|
|
31079
|
+
function createBaseQuickMenuAccess() {
|
|
31080
|
+
return {
|
|
31081
|
+
id: "",
|
|
31082
|
+
bot_id: "",
|
|
31083
|
+
clan_id: "",
|
|
31084
|
+
channel_id: "",
|
|
31085
|
+
menu_name: "",
|
|
31086
|
+
background: "",
|
|
31087
|
+
action_msg: "",
|
|
31088
|
+
menu_type: 0,
|
|
31089
|
+
};
|
|
31090
|
+
}
|
|
31091
|
+
export const QuickMenuAccess = {
|
|
31092
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31093
|
+
if (message.id !== "") {
|
|
31094
|
+
writer.uint32(10).string(message.id);
|
|
31095
|
+
}
|
|
31096
|
+
if (message.bot_id !== "") {
|
|
31097
|
+
writer.uint32(18).string(message.bot_id);
|
|
31098
|
+
}
|
|
31099
|
+
if (message.clan_id !== "") {
|
|
31100
|
+
writer.uint32(26).string(message.clan_id);
|
|
31101
|
+
}
|
|
31102
|
+
if (message.channel_id !== "") {
|
|
31103
|
+
writer.uint32(34).string(message.channel_id);
|
|
31104
|
+
}
|
|
31105
|
+
if (message.menu_name !== "") {
|
|
31106
|
+
writer.uint32(42).string(message.menu_name);
|
|
31107
|
+
}
|
|
31108
|
+
if (message.background !== "") {
|
|
31109
|
+
writer.uint32(50).string(message.background);
|
|
31110
|
+
}
|
|
31111
|
+
if (message.action_msg !== "") {
|
|
31112
|
+
writer.uint32(58).string(message.action_msg);
|
|
31113
|
+
}
|
|
31114
|
+
if (message.menu_type !== 0) {
|
|
31115
|
+
writer.uint32(64).int32(message.menu_type);
|
|
31116
|
+
}
|
|
31117
|
+
return writer;
|
|
31118
|
+
},
|
|
31119
|
+
decode(input, length) {
|
|
31120
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31121
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31122
|
+
const message = createBaseQuickMenuAccess();
|
|
31123
|
+
while (reader.pos < end) {
|
|
31124
|
+
const tag = reader.uint32();
|
|
31125
|
+
switch (tag >>> 3) {
|
|
31126
|
+
case 1:
|
|
31127
|
+
if (tag !== 10) {
|
|
31128
|
+
break;
|
|
31129
|
+
}
|
|
31130
|
+
message.id = reader.string();
|
|
31131
|
+
continue;
|
|
31132
|
+
case 2:
|
|
31133
|
+
if (tag !== 18) {
|
|
31134
|
+
break;
|
|
31135
|
+
}
|
|
31136
|
+
message.bot_id = reader.string();
|
|
31137
|
+
continue;
|
|
31138
|
+
case 3:
|
|
31139
|
+
if (tag !== 26) {
|
|
31140
|
+
break;
|
|
31141
|
+
}
|
|
31142
|
+
message.clan_id = reader.string();
|
|
31143
|
+
continue;
|
|
31144
|
+
case 4:
|
|
31145
|
+
if (tag !== 34) {
|
|
31146
|
+
break;
|
|
31147
|
+
}
|
|
31148
|
+
message.channel_id = reader.string();
|
|
31149
|
+
continue;
|
|
31150
|
+
case 5:
|
|
31151
|
+
if (tag !== 42) {
|
|
31152
|
+
break;
|
|
31153
|
+
}
|
|
31154
|
+
message.menu_name = reader.string();
|
|
31155
|
+
continue;
|
|
31156
|
+
case 6:
|
|
31157
|
+
if (tag !== 50) {
|
|
31158
|
+
break;
|
|
31159
|
+
}
|
|
31160
|
+
message.background = reader.string();
|
|
31161
|
+
continue;
|
|
31162
|
+
case 7:
|
|
31163
|
+
if (tag !== 58) {
|
|
31164
|
+
break;
|
|
31165
|
+
}
|
|
31166
|
+
message.action_msg = reader.string();
|
|
31167
|
+
continue;
|
|
31168
|
+
case 8:
|
|
31169
|
+
if (tag !== 64) {
|
|
31170
|
+
break;
|
|
31171
|
+
}
|
|
31172
|
+
message.menu_type = reader.int32();
|
|
31173
|
+
continue;
|
|
31174
|
+
}
|
|
31175
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31176
|
+
break;
|
|
31177
|
+
}
|
|
31178
|
+
reader.skipType(tag & 7);
|
|
31179
|
+
}
|
|
31180
|
+
return message;
|
|
31181
|
+
},
|
|
31182
|
+
fromJSON(object) {
|
|
31183
|
+
return {
|
|
31184
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
31185
|
+
bot_id: isSet(object.bot_id) ? globalThis.String(object.bot_id) : "",
|
|
31186
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
31187
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
31188
|
+
menu_name: isSet(object.menu_name) ? globalThis.String(object.menu_name) : "",
|
|
31189
|
+
background: isSet(object.background) ? globalThis.String(object.background) : "",
|
|
31190
|
+
action_msg: isSet(object.action_msg) ? globalThis.String(object.action_msg) : "",
|
|
31191
|
+
menu_type: isSet(object.menu_type) ? globalThis.Number(object.menu_type) : 0,
|
|
31192
|
+
};
|
|
31193
|
+
},
|
|
31194
|
+
toJSON(message) {
|
|
31195
|
+
const obj = {};
|
|
31196
|
+
if (message.id !== "") {
|
|
31197
|
+
obj.id = message.id;
|
|
31198
|
+
}
|
|
31199
|
+
if (message.bot_id !== "") {
|
|
31200
|
+
obj.bot_id = message.bot_id;
|
|
31201
|
+
}
|
|
31202
|
+
if (message.clan_id !== "") {
|
|
31203
|
+
obj.clan_id = message.clan_id;
|
|
31204
|
+
}
|
|
31205
|
+
if (message.channel_id !== "") {
|
|
31206
|
+
obj.channel_id = message.channel_id;
|
|
31207
|
+
}
|
|
31208
|
+
if (message.menu_name !== "") {
|
|
31209
|
+
obj.menu_name = message.menu_name;
|
|
31210
|
+
}
|
|
31211
|
+
if (message.background !== "") {
|
|
31212
|
+
obj.background = message.background;
|
|
31213
|
+
}
|
|
31214
|
+
if (message.action_msg !== "") {
|
|
31215
|
+
obj.action_msg = message.action_msg;
|
|
31216
|
+
}
|
|
31217
|
+
if (message.menu_type !== 0) {
|
|
31218
|
+
obj.menu_type = Math.round(message.menu_type);
|
|
31219
|
+
}
|
|
31220
|
+
return obj;
|
|
31221
|
+
},
|
|
31222
|
+
create(base) {
|
|
31223
|
+
return QuickMenuAccess.fromPartial(base ?? {});
|
|
31224
|
+
},
|
|
31225
|
+
fromPartial(object) {
|
|
31226
|
+
const message = createBaseQuickMenuAccess();
|
|
31227
|
+
message.id = object.id ?? "";
|
|
31228
|
+
message.bot_id = object.bot_id ?? "";
|
|
31229
|
+
message.clan_id = object.clan_id ?? "";
|
|
31230
|
+
message.channel_id = object.channel_id ?? "";
|
|
31231
|
+
message.menu_name = object.menu_name ?? "";
|
|
31232
|
+
message.background = object.background ?? "";
|
|
31233
|
+
message.action_msg = object.action_msg ?? "";
|
|
31234
|
+
message.menu_type = object.menu_type ?? 0;
|
|
31235
|
+
return message;
|
|
31236
|
+
},
|
|
31237
|
+
};
|
|
31238
|
+
function createBaseListQuickMenuAccessRequest() {
|
|
31239
|
+
return { bot_id: "", channel_id: "", menu_type: 0 };
|
|
31240
|
+
}
|
|
31241
|
+
export const ListQuickMenuAccessRequest = {
|
|
31242
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31243
|
+
if (message.bot_id !== "") {
|
|
31244
|
+
writer.uint32(10).string(message.bot_id);
|
|
31245
|
+
}
|
|
31246
|
+
if (message.channel_id !== "") {
|
|
31247
|
+
writer.uint32(18).string(message.channel_id);
|
|
31248
|
+
}
|
|
31249
|
+
if (message.menu_type !== 0) {
|
|
31250
|
+
writer.uint32(24).int32(message.menu_type);
|
|
31251
|
+
}
|
|
31252
|
+
return writer;
|
|
31253
|
+
},
|
|
31254
|
+
decode(input, length) {
|
|
31255
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31256
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31257
|
+
const message = createBaseListQuickMenuAccessRequest();
|
|
31258
|
+
while (reader.pos < end) {
|
|
31259
|
+
const tag = reader.uint32();
|
|
31260
|
+
switch (tag >>> 3) {
|
|
31261
|
+
case 1:
|
|
31262
|
+
if (tag !== 10) {
|
|
31263
|
+
break;
|
|
31264
|
+
}
|
|
31265
|
+
message.bot_id = reader.string();
|
|
31266
|
+
continue;
|
|
31267
|
+
case 2:
|
|
31268
|
+
if (tag !== 18) {
|
|
31269
|
+
break;
|
|
31270
|
+
}
|
|
31271
|
+
message.channel_id = reader.string();
|
|
31272
|
+
continue;
|
|
31273
|
+
case 3:
|
|
31274
|
+
if (tag !== 24) {
|
|
31275
|
+
break;
|
|
31276
|
+
}
|
|
31277
|
+
message.menu_type = reader.int32();
|
|
31278
|
+
continue;
|
|
31279
|
+
}
|
|
31280
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31281
|
+
break;
|
|
31282
|
+
}
|
|
31283
|
+
reader.skipType(tag & 7);
|
|
31284
|
+
}
|
|
31285
|
+
return message;
|
|
31286
|
+
},
|
|
31287
|
+
fromJSON(object) {
|
|
31288
|
+
return {
|
|
31289
|
+
bot_id: isSet(object.bot_id) ? globalThis.String(object.bot_id) : "",
|
|
31290
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
31291
|
+
menu_type: isSet(object.menu_type) ? globalThis.Number(object.menu_type) : 0,
|
|
31292
|
+
};
|
|
31293
|
+
},
|
|
31294
|
+
toJSON(message) {
|
|
31295
|
+
const obj = {};
|
|
31296
|
+
if (message.bot_id !== "") {
|
|
31297
|
+
obj.bot_id = message.bot_id;
|
|
31298
|
+
}
|
|
31299
|
+
if (message.channel_id !== "") {
|
|
31300
|
+
obj.channel_id = message.channel_id;
|
|
31301
|
+
}
|
|
31302
|
+
if (message.menu_type !== 0) {
|
|
31303
|
+
obj.menu_type = Math.round(message.menu_type);
|
|
31304
|
+
}
|
|
31305
|
+
return obj;
|
|
31306
|
+
},
|
|
31307
|
+
create(base) {
|
|
31308
|
+
return ListQuickMenuAccessRequest.fromPartial(base ?? {});
|
|
31309
|
+
},
|
|
31310
|
+
fromPartial(object) {
|
|
31311
|
+
const message = createBaseListQuickMenuAccessRequest();
|
|
31312
|
+
message.bot_id = object.bot_id ?? "";
|
|
31313
|
+
message.channel_id = object.channel_id ?? "";
|
|
31314
|
+
message.menu_type = object.menu_type ?? 0;
|
|
31315
|
+
return message;
|
|
31316
|
+
},
|
|
31317
|
+
};
|
|
31318
|
+
function createBaseQuickMenuAccessList() {
|
|
31319
|
+
return { list_menus: [] };
|
|
31320
|
+
}
|
|
31321
|
+
export const QuickMenuAccessList = {
|
|
31322
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31323
|
+
for (const v of message.list_menus) {
|
|
31324
|
+
QuickMenuAccess.encode(v, writer.uint32(10).fork()).ldelim();
|
|
31325
|
+
}
|
|
31326
|
+
return writer;
|
|
31327
|
+
},
|
|
31328
|
+
decode(input, length) {
|
|
31329
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31330
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31331
|
+
const message = createBaseQuickMenuAccessList();
|
|
31332
|
+
while (reader.pos < end) {
|
|
31333
|
+
const tag = reader.uint32();
|
|
31334
|
+
switch (tag >>> 3) {
|
|
31335
|
+
case 1:
|
|
31336
|
+
if (tag !== 10) {
|
|
31337
|
+
break;
|
|
31338
|
+
}
|
|
31339
|
+
message.list_menus.push(QuickMenuAccess.decode(reader, reader.uint32()));
|
|
31340
|
+
continue;
|
|
31341
|
+
}
|
|
31342
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31343
|
+
break;
|
|
31344
|
+
}
|
|
31345
|
+
reader.skipType(tag & 7);
|
|
31346
|
+
}
|
|
31347
|
+
return message;
|
|
31348
|
+
},
|
|
31349
|
+
fromJSON(object) {
|
|
31350
|
+
return {
|
|
31351
|
+
list_menus: globalThis.Array.isArray(object?.list_menus)
|
|
31352
|
+
? object.list_menus.map((e) => QuickMenuAccess.fromJSON(e))
|
|
31353
|
+
: [],
|
|
31354
|
+
};
|
|
31355
|
+
},
|
|
31356
|
+
toJSON(message) {
|
|
31357
|
+
const obj = {};
|
|
31358
|
+
if (message.list_menus?.length) {
|
|
31359
|
+
obj.list_menus = message.list_menus.map((e) => QuickMenuAccess.toJSON(e));
|
|
31360
|
+
}
|
|
31361
|
+
return obj;
|
|
31362
|
+
},
|
|
31363
|
+
create(base) {
|
|
31364
|
+
return QuickMenuAccessList.fromPartial(base ?? {});
|
|
31365
|
+
},
|
|
31366
|
+
fromPartial(object) {
|
|
31367
|
+
const message = createBaseQuickMenuAccessList();
|
|
31368
|
+
message.list_menus = object.list_menus?.map((e) => QuickMenuAccess.fromPartial(e)) || [];
|
|
31369
|
+
return message;
|
|
31370
|
+
},
|
|
31371
|
+
};
|
|
31372
|
+
function createBaseListForSaleItemsRequest() {
|
|
31373
|
+
return { page: 0 };
|
|
31374
|
+
}
|
|
31375
|
+
export const ListForSaleItemsRequest = {
|
|
31376
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31377
|
+
if (message.page !== 0) {
|
|
31378
|
+
writer.uint32(8).int32(message.page);
|
|
31379
|
+
}
|
|
31380
|
+
return writer;
|
|
31381
|
+
},
|
|
31382
|
+
decode(input, length) {
|
|
31383
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31384
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31385
|
+
const message = createBaseListForSaleItemsRequest();
|
|
31386
|
+
while (reader.pos < end) {
|
|
31387
|
+
const tag = reader.uint32();
|
|
31388
|
+
switch (tag >>> 3) {
|
|
31389
|
+
case 1:
|
|
31390
|
+
if (tag !== 8) {
|
|
31391
|
+
break;
|
|
31392
|
+
}
|
|
31393
|
+
message.page = reader.int32();
|
|
31394
|
+
continue;
|
|
31395
|
+
}
|
|
31396
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31397
|
+
break;
|
|
31398
|
+
}
|
|
31399
|
+
reader.skipType(tag & 7);
|
|
31400
|
+
}
|
|
31401
|
+
return message;
|
|
31402
|
+
},
|
|
31403
|
+
fromJSON(object) {
|
|
31404
|
+
return { page: isSet(object.page) ? globalThis.Number(object.page) : 0 };
|
|
31405
|
+
},
|
|
31406
|
+
toJSON(message) {
|
|
31407
|
+
const obj = {};
|
|
31408
|
+
if (message.page !== 0) {
|
|
31409
|
+
obj.page = Math.round(message.page);
|
|
31410
|
+
}
|
|
31411
|
+
return obj;
|
|
31412
|
+
},
|
|
31413
|
+
create(base) {
|
|
31414
|
+
return ListForSaleItemsRequest.fromPartial(base ?? {});
|
|
31415
|
+
},
|
|
31416
|
+
fromPartial(object) {
|
|
31417
|
+
const message = createBaseListForSaleItemsRequest();
|
|
31418
|
+
message.page = object.page ?? 0;
|
|
31419
|
+
return message;
|
|
31420
|
+
},
|
|
31421
|
+
};
|
|
31422
|
+
function createBaseForSaleItem() {
|
|
31423
|
+
return { type: 0, preview_url: "" };
|
|
31424
|
+
}
|
|
31425
|
+
export const ForSaleItem = {
|
|
31426
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31427
|
+
if (message.type !== 0) {
|
|
31428
|
+
writer.uint32(8).int32(message.type);
|
|
31429
|
+
}
|
|
31430
|
+
if (message.preview_url !== "") {
|
|
31431
|
+
writer.uint32(18).string(message.preview_url);
|
|
31432
|
+
}
|
|
31433
|
+
return writer;
|
|
31434
|
+
},
|
|
31435
|
+
decode(input, length) {
|
|
31436
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31437
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31438
|
+
const message = createBaseForSaleItem();
|
|
31439
|
+
while (reader.pos < end) {
|
|
31440
|
+
const tag = reader.uint32();
|
|
31441
|
+
switch (tag >>> 3) {
|
|
31442
|
+
case 1:
|
|
31443
|
+
if (tag !== 8) {
|
|
31444
|
+
break;
|
|
31445
|
+
}
|
|
31446
|
+
message.type = reader.int32();
|
|
31447
|
+
continue;
|
|
31448
|
+
case 2:
|
|
31449
|
+
if (tag !== 18) {
|
|
31450
|
+
break;
|
|
31451
|
+
}
|
|
31452
|
+
message.preview_url = reader.string();
|
|
31453
|
+
continue;
|
|
31454
|
+
}
|
|
31455
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31456
|
+
break;
|
|
31457
|
+
}
|
|
31458
|
+
reader.skipType(tag & 7);
|
|
31459
|
+
}
|
|
31460
|
+
return message;
|
|
31461
|
+
},
|
|
31462
|
+
fromJSON(object) {
|
|
31463
|
+
return {
|
|
31464
|
+
type: isSet(object.type) ? globalThis.Number(object.type) : 0,
|
|
31465
|
+
preview_url: isSet(object.preview_url) ? globalThis.String(object.preview_url) : "",
|
|
31466
|
+
};
|
|
31467
|
+
},
|
|
31468
|
+
toJSON(message) {
|
|
31469
|
+
const obj = {};
|
|
31470
|
+
if (message.type !== 0) {
|
|
31471
|
+
obj.type = Math.round(message.type);
|
|
31472
|
+
}
|
|
31473
|
+
if (message.preview_url !== "") {
|
|
31474
|
+
obj.preview_url = message.preview_url;
|
|
31475
|
+
}
|
|
31476
|
+
return obj;
|
|
31477
|
+
},
|
|
31478
|
+
create(base) {
|
|
31479
|
+
return ForSaleItem.fromPartial(base ?? {});
|
|
31480
|
+
},
|
|
31481
|
+
fromPartial(object) {
|
|
31482
|
+
const message = createBaseForSaleItem();
|
|
31483
|
+
message.type = object.type ?? 0;
|
|
31484
|
+
message.preview_url = object.preview_url ?? "";
|
|
31485
|
+
return message;
|
|
31486
|
+
},
|
|
31487
|
+
};
|
|
31488
|
+
function createBaseForSaleItemList() {
|
|
31489
|
+
return { for_sale_items: [] };
|
|
31490
|
+
}
|
|
31491
|
+
export const ForSaleItemList = {
|
|
31492
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
31493
|
+
for (const v of message.for_sale_items) {
|
|
31494
|
+
ForSaleItem.encode(v, writer.uint32(10).fork()).ldelim();
|
|
31495
|
+
}
|
|
31496
|
+
return writer;
|
|
31497
|
+
},
|
|
31498
|
+
decode(input, length) {
|
|
31499
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
31500
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31501
|
+
const message = createBaseForSaleItemList();
|
|
31502
|
+
while (reader.pos < end) {
|
|
31503
|
+
const tag = reader.uint32();
|
|
31504
|
+
switch (tag >>> 3) {
|
|
31505
|
+
case 1:
|
|
31506
|
+
if (tag !== 10) {
|
|
31507
|
+
break;
|
|
31508
|
+
}
|
|
31509
|
+
message.for_sale_items.push(ForSaleItem.decode(reader, reader.uint32()));
|
|
31510
|
+
continue;
|
|
31511
|
+
}
|
|
31512
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31513
|
+
break;
|
|
31514
|
+
}
|
|
31515
|
+
reader.skipType(tag & 7);
|
|
31516
|
+
}
|
|
31517
|
+
return message;
|
|
31518
|
+
},
|
|
31519
|
+
fromJSON(object) {
|
|
31520
|
+
return {
|
|
31521
|
+
for_sale_items: globalThis.Array.isArray(object?.for_sale_items)
|
|
31522
|
+
? object.for_sale_items.map((e) => ForSaleItem.fromJSON(e))
|
|
31523
|
+
: [],
|
|
31524
|
+
};
|
|
31525
|
+
},
|
|
31526
|
+
toJSON(message) {
|
|
31527
|
+
const obj = {};
|
|
31528
|
+
if (message.for_sale_items?.length) {
|
|
31529
|
+
obj.for_sale_items = message.for_sale_items.map((e) => ForSaleItem.toJSON(e));
|
|
31530
|
+
}
|
|
31531
|
+
return obj;
|
|
31532
|
+
},
|
|
31533
|
+
create(base) {
|
|
31534
|
+
return ForSaleItemList.fromPartial(base ?? {});
|
|
31535
|
+
},
|
|
31536
|
+
fromPartial(object) {
|
|
31537
|
+
const message = createBaseForSaleItemList();
|
|
31538
|
+
message.for_sale_items = object.for_sale_items?.map((e) => ForSaleItem.fromPartial(e)) || [];
|
|
31539
|
+
return message;
|
|
31540
|
+
},
|
|
31541
|
+
};
|
|
30900
31542
|
function bytesFromBase64(b64) {
|
|
30901
31543
|
if (globalThis.Buffer) {
|
|
30902
31544
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|