mezon-js-protobuf 1.7.9 → 1.7.13
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 +39348 -39208
- package/dist/mezon-js-protobuf/api/api.d.ts +51 -0
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +277 -159
- package/dist/mezon-js-protobuf.cjs.js +180 -14
- package/dist/mezon-js-protobuf.esm.mjs +180 -14
- package/google/protobuf/struct.ts +554 -554
- package/google/protobuf/timestamp.ts +223 -223
- package/google/protobuf/wrappers.ts +670 -670
- package/package.json +1 -1
- package/rtapi/realtime.ts +11714 -11512
|
@@ -6555,7 +6555,8 @@ function createBaseEnvelope() {
|
|
|
6555
6555
|
user_status_event: void 0,
|
|
6556
6556
|
remove_friend: void 0,
|
|
6557
6557
|
webhook_event: void 0,
|
|
6558
|
-
noti_user_channel: void 0
|
|
6558
|
+
noti_user_channel: void 0,
|
|
6559
|
+
join_channel_app_data: void 0
|
|
6559
6560
|
};
|
|
6560
6561
|
}
|
|
6561
6562
|
var Envelope = {
|
|
@@ -6776,6 +6777,9 @@ var Envelope = {
|
|
|
6776
6777
|
if (message.noti_user_channel !== void 0) {
|
|
6777
6778
|
NotificationUserChannel.encode(message.noti_user_channel, writer.uint32(578).fork()).ldelim();
|
|
6778
6779
|
}
|
|
6780
|
+
if (message.join_channel_app_data !== void 0) {
|
|
6781
|
+
JoinChannelAppData.encode(message.join_channel_app_data, writer.uint32(586).fork()).ldelim();
|
|
6782
|
+
}
|
|
6779
6783
|
return writer;
|
|
6780
6784
|
},
|
|
6781
6785
|
decode(input, length) {
|
|
@@ -7217,6 +7221,12 @@ var Envelope = {
|
|
|
7217
7221
|
}
|
|
7218
7222
|
message.noti_user_channel = NotificationUserChannel.decode(reader, reader.uint32());
|
|
7219
7223
|
continue;
|
|
7224
|
+
case 73:
|
|
7225
|
+
if (tag !== 586) {
|
|
7226
|
+
break;
|
|
7227
|
+
}
|
|
7228
|
+
message.join_channel_app_data = JoinChannelAppData.decode(reader, reader.uint32());
|
|
7229
|
+
continue;
|
|
7220
7230
|
}
|
|
7221
7231
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7222
7232
|
break;
|
|
@@ -7298,7 +7308,8 @@ var Envelope = {
|
|
|
7298
7308
|
user_status_event: isSet4(object.user_status_event) ? UserStatusEvent.fromJSON(object.user_status_event) : void 0,
|
|
7299
7309
|
remove_friend: isSet4(object.remove_friend) ? RemoveFriend.fromJSON(object.remove_friend) : void 0,
|
|
7300
7310
|
webhook_event: isSet4(object.webhook_event) ? Webhook.fromJSON(object.webhook_event) : void 0,
|
|
7301
|
-
noti_user_channel: isSet4(object.noti_user_channel) ? NotificationUserChannel.fromJSON(object.noti_user_channel) : void 0
|
|
7311
|
+
noti_user_channel: isSet4(object.noti_user_channel) ? NotificationUserChannel.fromJSON(object.noti_user_channel) : void 0,
|
|
7312
|
+
join_channel_app_data: isSet4(object.join_channel_app_data) ? JoinChannelAppData.fromJSON(object.join_channel_app_data) : void 0
|
|
7302
7313
|
};
|
|
7303
7314
|
},
|
|
7304
7315
|
toJSON(message) {
|
|
@@ -7519,6 +7530,9 @@ var Envelope = {
|
|
|
7519
7530
|
if (message.noti_user_channel !== void 0) {
|
|
7520
7531
|
obj.noti_user_channel = NotificationUserChannel.toJSON(message.noti_user_channel);
|
|
7521
7532
|
}
|
|
7533
|
+
if (message.join_channel_app_data !== void 0) {
|
|
7534
|
+
obj.join_channel_app_data = JoinChannelAppData.toJSON(message.join_channel_app_data);
|
|
7535
|
+
}
|
|
7522
7536
|
return obj;
|
|
7523
7537
|
},
|
|
7524
7538
|
create(base) {
|
|
@@ -7599,6 +7613,7 @@ var Envelope = {
|
|
|
7599
7613
|
message.remove_friend = object.remove_friend !== void 0 && object.remove_friend !== null ? RemoveFriend.fromPartial(object.remove_friend) : void 0;
|
|
7600
7614
|
message.webhook_event = object.webhook_event !== void 0 && object.webhook_event !== null ? Webhook.fromPartial(object.webhook_event) : void 0;
|
|
7601
7615
|
message.noti_user_channel = object.noti_user_channel !== void 0 && object.noti_user_channel !== null ? NotificationUserChannel.fromPartial(object.noti_user_channel) : void 0;
|
|
7616
|
+
message.join_channel_app_data = object.join_channel_app_data !== void 0 && object.join_channel_app_data !== null ? JoinChannelAppData.fromPartial(object.join_channel_app_data) : void 0;
|
|
7602
7617
|
return message;
|
|
7603
7618
|
}
|
|
7604
7619
|
};
|
|
@@ -12865,7 +12880,7 @@ var UserChannelAdded = {
|
|
|
12865
12880
|
}
|
|
12866
12881
|
};
|
|
12867
12882
|
function createBaseUserChannelRemoved() {
|
|
12868
|
-
return { channel_id: "", user_ids: [], channel_type: 0 };
|
|
12883
|
+
return { channel_id: "", user_ids: [], channel_type: 0, clan_id: "" };
|
|
12869
12884
|
}
|
|
12870
12885
|
var UserChannelRemoved = {
|
|
12871
12886
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -12878,6 +12893,9 @@ var UserChannelRemoved = {
|
|
|
12878
12893
|
if (message.channel_type !== 0) {
|
|
12879
12894
|
writer.uint32(24).int32(message.channel_type);
|
|
12880
12895
|
}
|
|
12896
|
+
if (message.clan_id !== "") {
|
|
12897
|
+
writer.uint32(34).string(message.clan_id);
|
|
12898
|
+
}
|
|
12881
12899
|
return writer;
|
|
12882
12900
|
},
|
|
12883
12901
|
decode(input, length) {
|
|
@@ -12905,6 +12923,12 @@ var UserChannelRemoved = {
|
|
|
12905
12923
|
}
|
|
12906
12924
|
message.channel_type = reader.int32();
|
|
12907
12925
|
continue;
|
|
12926
|
+
case 4:
|
|
12927
|
+
if (tag !== 34) {
|
|
12928
|
+
break;
|
|
12929
|
+
}
|
|
12930
|
+
message.clan_id = reader.string();
|
|
12931
|
+
continue;
|
|
12908
12932
|
}
|
|
12909
12933
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12910
12934
|
break;
|
|
@@ -12917,7 +12941,8 @@ var UserChannelRemoved = {
|
|
|
12917
12941
|
return {
|
|
12918
12942
|
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
12919
12943
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
12920
|
-
channel_type: isSet4(object.channel_type) ? globalThis.Number(object.channel_type) : 0
|
|
12944
|
+
channel_type: isSet4(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
12945
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
|
|
12921
12946
|
};
|
|
12922
12947
|
},
|
|
12923
12948
|
toJSON(message) {
|
|
@@ -12932,17 +12957,21 @@ var UserChannelRemoved = {
|
|
|
12932
12957
|
if (message.channel_type !== 0) {
|
|
12933
12958
|
obj.channel_type = Math.round(message.channel_type);
|
|
12934
12959
|
}
|
|
12960
|
+
if (message.clan_id !== "") {
|
|
12961
|
+
obj.clan_id = message.clan_id;
|
|
12962
|
+
}
|
|
12935
12963
|
return obj;
|
|
12936
12964
|
},
|
|
12937
12965
|
create(base) {
|
|
12938
12966
|
return UserChannelRemoved.fromPartial(base != null ? base : {});
|
|
12939
12967
|
},
|
|
12940
12968
|
fromPartial(object) {
|
|
12941
|
-
var _a, _b, _c;
|
|
12969
|
+
var _a, _b, _c, _d;
|
|
12942
12970
|
const message = createBaseUserChannelRemoved();
|
|
12943
12971
|
message.channel_id = (_a = object.channel_id) != null ? _a : "";
|
|
12944
12972
|
message.user_ids = ((_b = object.user_ids) == null ? void 0 : _b.map((e) => e)) || [];
|
|
12945
12973
|
message.channel_type = (_c = object.channel_type) != null ? _c : 0;
|
|
12974
|
+
message.clan_id = (_d = object.clan_id) != null ? _d : "";
|
|
12946
12975
|
return message;
|
|
12947
12976
|
}
|
|
12948
12977
|
};
|
|
@@ -13015,7 +13044,7 @@ var UserClanRemoved = {
|
|
|
13015
13044
|
}
|
|
13016
13045
|
};
|
|
13017
13046
|
function createBaseClanUpdatedEvent() {
|
|
13018
|
-
return { clan_id: "", clan_name: "",
|
|
13047
|
+
return { clan_id: "", clan_name: "", logo: "", banner: "", status: 0, is_onboarding: false, welcome_channel_id: "" };
|
|
13019
13048
|
}
|
|
13020
13049
|
var ClanUpdatedEvent = {
|
|
13021
13050
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -13025,8 +13054,20 @@ var ClanUpdatedEvent = {
|
|
|
13025
13054
|
if (message.clan_name !== "") {
|
|
13026
13055
|
writer.uint32(18).string(message.clan_name);
|
|
13027
13056
|
}
|
|
13028
|
-
if (message.
|
|
13029
|
-
writer.uint32(26).string(message.
|
|
13057
|
+
if (message.logo !== "") {
|
|
13058
|
+
writer.uint32(26).string(message.logo);
|
|
13059
|
+
}
|
|
13060
|
+
if (message.banner !== "") {
|
|
13061
|
+
writer.uint32(34).string(message.banner);
|
|
13062
|
+
}
|
|
13063
|
+
if (message.status !== 0) {
|
|
13064
|
+
writer.uint32(40).int32(message.status);
|
|
13065
|
+
}
|
|
13066
|
+
if (message.is_onboarding !== false) {
|
|
13067
|
+
writer.uint32(48).bool(message.is_onboarding);
|
|
13068
|
+
}
|
|
13069
|
+
if (message.welcome_channel_id !== "") {
|
|
13070
|
+
writer.uint32(58).string(message.welcome_channel_id);
|
|
13030
13071
|
}
|
|
13031
13072
|
return writer;
|
|
13032
13073
|
},
|
|
@@ -13053,7 +13094,31 @@ var ClanUpdatedEvent = {
|
|
|
13053
13094
|
if (tag !== 26) {
|
|
13054
13095
|
break;
|
|
13055
13096
|
}
|
|
13056
|
-
message.
|
|
13097
|
+
message.logo = reader.string();
|
|
13098
|
+
continue;
|
|
13099
|
+
case 4:
|
|
13100
|
+
if (tag !== 34) {
|
|
13101
|
+
break;
|
|
13102
|
+
}
|
|
13103
|
+
message.banner = reader.string();
|
|
13104
|
+
continue;
|
|
13105
|
+
case 5:
|
|
13106
|
+
if (tag !== 40) {
|
|
13107
|
+
break;
|
|
13108
|
+
}
|
|
13109
|
+
message.status = reader.int32();
|
|
13110
|
+
continue;
|
|
13111
|
+
case 6:
|
|
13112
|
+
if (tag !== 48) {
|
|
13113
|
+
break;
|
|
13114
|
+
}
|
|
13115
|
+
message.is_onboarding = reader.bool();
|
|
13116
|
+
continue;
|
|
13117
|
+
case 7:
|
|
13118
|
+
if (tag !== 58) {
|
|
13119
|
+
break;
|
|
13120
|
+
}
|
|
13121
|
+
message.welcome_channel_id = reader.string();
|
|
13057
13122
|
continue;
|
|
13058
13123
|
}
|
|
13059
13124
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -13067,7 +13132,11 @@ var ClanUpdatedEvent = {
|
|
|
13067
13132
|
return {
|
|
13068
13133
|
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
13069
13134
|
clan_name: isSet4(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
13070
|
-
|
|
13135
|
+
logo: isSet4(object.logo) ? globalThis.String(object.logo) : "",
|
|
13136
|
+
banner: isSet4(object.banner) ? globalThis.String(object.banner) : "",
|
|
13137
|
+
status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
|
|
13138
|
+
is_onboarding: isSet4(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
|
|
13139
|
+
welcome_channel_id: isSet4(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : ""
|
|
13071
13140
|
};
|
|
13072
13141
|
},
|
|
13073
13142
|
toJSON(message) {
|
|
@@ -13078,8 +13147,20 @@ var ClanUpdatedEvent = {
|
|
|
13078
13147
|
if (message.clan_name !== "") {
|
|
13079
13148
|
obj.clan_name = message.clan_name;
|
|
13080
13149
|
}
|
|
13081
|
-
if (message.
|
|
13082
|
-
obj.
|
|
13150
|
+
if (message.logo !== "") {
|
|
13151
|
+
obj.logo = message.logo;
|
|
13152
|
+
}
|
|
13153
|
+
if (message.banner !== "") {
|
|
13154
|
+
obj.banner = message.banner;
|
|
13155
|
+
}
|
|
13156
|
+
if (message.status !== 0) {
|
|
13157
|
+
obj.status = Math.round(message.status);
|
|
13158
|
+
}
|
|
13159
|
+
if (message.is_onboarding !== false) {
|
|
13160
|
+
obj.is_onboarding = message.is_onboarding;
|
|
13161
|
+
}
|
|
13162
|
+
if (message.welcome_channel_id !== "") {
|
|
13163
|
+
obj.welcome_channel_id = message.welcome_channel_id;
|
|
13083
13164
|
}
|
|
13084
13165
|
return obj;
|
|
13085
13166
|
},
|
|
@@ -13087,11 +13168,15 @@ var ClanUpdatedEvent = {
|
|
|
13087
13168
|
return ClanUpdatedEvent.fromPartial(base != null ? base : {});
|
|
13088
13169
|
},
|
|
13089
13170
|
fromPartial(object) {
|
|
13090
|
-
var _a, _b, _c;
|
|
13171
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
13091
13172
|
const message = createBaseClanUpdatedEvent();
|
|
13092
13173
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
13093
13174
|
message.clan_name = (_b = object.clan_name) != null ? _b : "";
|
|
13094
|
-
message.
|
|
13175
|
+
message.logo = (_c = object.logo) != null ? _c : "";
|
|
13176
|
+
message.banner = (_d = object.banner) != null ? _d : "";
|
|
13177
|
+
message.status = (_e = object.status) != null ? _e : 0;
|
|
13178
|
+
message.is_onboarding = (_f = object.is_onboarding) != null ? _f : false;
|
|
13179
|
+
message.welcome_channel_id = (_g = object.welcome_channel_id) != null ? _g : "";
|
|
13095
13180
|
return message;
|
|
13096
13181
|
}
|
|
13097
13182
|
};
|
|
@@ -14765,6 +14850,87 @@ var UserStatusEvent = {
|
|
|
14765
14850
|
return message;
|
|
14766
14851
|
}
|
|
14767
14852
|
};
|
|
14853
|
+
function createBaseJoinChannelAppData() {
|
|
14854
|
+
return { user_id: "", username: "", hash: "" };
|
|
14855
|
+
}
|
|
14856
|
+
var JoinChannelAppData = {
|
|
14857
|
+
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
14858
|
+
if (message.user_id !== "") {
|
|
14859
|
+
writer.uint32(10).string(message.user_id);
|
|
14860
|
+
}
|
|
14861
|
+
if (message.username !== "") {
|
|
14862
|
+
writer.uint32(18).string(message.username);
|
|
14863
|
+
}
|
|
14864
|
+
if (message.hash !== "") {
|
|
14865
|
+
writer.uint32(26).string(message.hash);
|
|
14866
|
+
}
|
|
14867
|
+
return writer;
|
|
14868
|
+
},
|
|
14869
|
+
decode(input, length) {
|
|
14870
|
+
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
14871
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
14872
|
+
const message = createBaseJoinChannelAppData();
|
|
14873
|
+
while (reader.pos < end) {
|
|
14874
|
+
const tag = reader.uint32();
|
|
14875
|
+
switch (tag >>> 3) {
|
|
14876
|
+
case 1:
|
|
14877
|
+
if (tag !== 10) {
|
|
14878
|
+
break;
|
|
14879
|
+
}
|
|
14880
|
+
message.user_id = reader.string();
|
|
14881
|
+
continue;
|
|
14882
|
+
case 2:
|
|
14883
|
+
if (tag !== 18) {
|
|
14884
|
+
break;
|
|
14885
|
+
}
|
|
14886
|
+
message.username = reader.string();
|
|
14887
|
+
continue;
|
|
14888
|
+
case 3:
|
|
14889
|
+
if (tag !== 26) {
|
|
14890
|
+
break;
|
|
14891
|
+
}
|
|
14892
|
+
message.hash = reader.string();
|
|
14893
|
+
continue;
|
|
14894
|
+
}
|
|
14895
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14896
|
+
break;
|
|
14897
|
+
}
|
|
14898
|
+
reader.skipType(tag & 7);
|
|
14899
|
+
}
|
|
14900
|
+
return message;
|
|
14901
|
+
},
|
|
14902
|
+
fromJSON(object) {
|
|
14903
|
+
return {
|
|
14904
|
+
user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
14905
|
+
username: isSet4(object.username) ? globalThis.String(object.username) : "",
|
|
14906
|
+
hash: isSet4(object.hash) ? globalThis.String(object.hash) : ""
|
|
14907
|
+
};
|
|
14908
|
+
},
|
|
14909
|
+
toJSON(message) {
|
|
14910
|
+
const obj = {};
|
|
14911
|
+
if (message.user_id !== "") {
|
|
14912
|
+
obj.user_id = message.user_id;
|
|
14913
|
+
}
|
|
14914
|
+
if (message.username !== "") {
|
|
14915
|
+
obj.username = message.username;
|
|
14916
|
+
}
|
|
14917
|
+
if (message.hash !== "") {
|
|
14918
|
+
obj.hash = message.hash;
|
|
14919
|
+
}
|
|
14920
|
+
return obj;
|
|
14921
|
+
},
|
|
14922
|
+
create(base) {
|
|
14923
|
+
return JoinChannelAppData.fromPartial(base != null ? base : {});
|
|
14924
|
+
},
|
|
14925
|
+
fromPartial(object) {
|
|
14926
|
+
var _a, _b, _c;
|
|
14927
|
+
const message = createBaseJoinChannelAppData();
|
|
14928
|
+
message.user_id = (_a = object.user_id) != null ? _a : "";
|
|
14929
|
+
message.username = (_b = object.username) != null ? _b : "";
|
|
14930
|
+
message.hash = (_c = object.hash) != null ? _c : "";
|
|
14931
|
+
return message;
|
|
14932
|
+
}
|
|
14933
|
+
};
|
|
14768
14934
|
function toTimestamp2(date) {
|
|
14769
14935
|
const seconds = Math.trunc(date.getTime() / 1e3);
|
|
14770
14936
|
const nanos = date.getTime() % 1e3 * 1e6;
|
|
@@ -6542,7 +6542,8 @@ function createBaseEnvelope() {
|
|
|
6542
6542
|
user_status_event: void 0,
|
|
6543
6543
|
remove_friend: void 0,
|
|
6544
6544
|
webhook_event: void 0,
|
|
6545
|
-
noti_user_channel: void 0
|
|
6545
|
+
noti_user_channel: void 0,
|
|
6546
|
+
join_channel_app_data: void 0
|
|
6546
6547
|
};
|
|
6547
6548
|
}
|
|
6548
6549
|
var Envelope = {
|
|
@@ -6763,6 +6764,9 @@ var Envelope = {
|
|
|
6763
6764
|
if (message.noti_user_channel !== void 0) {
|
|
6764
6765
|
NotificationUserChannel.encode(message.noti_user_channel, writer.uint32(578).fork()).ldelim();
|
|
6765
6766
|
}
|
|
6767
|
+
if (message.join_channel_app_data !== void 0) {
|
|
6768
|
+
JoinChannelAppData.encode(message.join_channel_app_data, writer.uint32(586).fork()).ldelim();
|
|
6769
|
+
}
|
|
6766
6770
|
return writer;
|
|
6767
6771
|
},
|
|
6768
6772
|
decode(input, length) {
|
|
@@ -7204,6 +7208,12 @@ var Envelope = {
|
|
|
7204
7208
|
}
|
|
7205
7209
|
message.noti_user_channel = NotificationUserChannel.decode(reader, reader.uint32());
|
|
7206
7210
|
continue;
|
|
7211
|
+
case 73:
|
|
7212
|
+
if (tag !== 586) {
|
|
7213
|
+
break;
|
|
7214
|
+
}
|
|
7215
|
+
message.join_channel_app_data = JoinChannelAppData.decode(reader, reader.uint32());
|
|
7216
|
+
continue;
|
|
7207
7217
|
}
|
|
7208
7218
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7209
7219
|
break;
|
|
@@ -7285,7 +7295,8 @@ var Envelope = {
|
|
|
7285
7295
|
user_status_event: isSet4(object.user_status_event) ? UserStatusEvent.fromJSON(object.user_status_event) : void 0,
|
|
7286
7296
|
remove_friend: isSet4(object.remove_friend) ? RemoveFriend.fromJSON(object.remove_friend) : void 0,
|
|
7287
7297
|
webhook_event: isSet4(object.webhook_event) ? Webhook.fromJSON(object.webhook_event) : void 0,
|
|
7288
|
-
noti_user_channel: isSet4(object.noti_user_channel) ? NotificationUserChannel.fromJSON(object.noti_user_channel) : void 0
|
|
7298
|
+
noti_user_channel: isSet4(object.noti_user_channel) ? NotificationUserChannel.fromJSON(object.noti_user_channel) : void 0,
|
|
7299
|
+
join_channel_app_data: isSet4(object.join_channel_app_data) ? JoinChannelAppData.fromJSON(object.join_channel_app_data) : void 0
|
|
7289
7300
|
};
|
|
7290
7301
|
},
|
|
7291
7302
|
toJSON(message) {
|
|
@@ -7506,6 +7517,9 @@ var Envelope = {
|
|
|
7506
7517
|
if (message.noti_user_channel !== void 0) {
|
|
7507
7518
|
obj.noti_user_channel = NotificationUserChannel.toJSON(message.noti_user_channel);
|
|
7508
7519
|
}
|
|
7520
|
+
if (message.join_channel_app_data !== void 0) {
|
|
7521
|
+
obj.join_channel_app_data = JoinChannelAppData.toJSON(message.join_channel_app_data);
|
|
7522
|
+
}
|
|
7509
7523
|
return obj;
|
|
7510
7524
|
},
|
|
7511
7525
|
create(base) {
|
|
@@ -7586,6 +7600,7 @@ var Envelope = {
|
|
|
7586
7600
|
message.remove_friend = object.remove_friend !== void 0 && object.remove_friend !== null ? RemoveFriend.fromPartial(object.remove_friend) : void 0;
|
|
7587
7601
|
message.webhook_event = object.webhook_event !== void 0 && object.webhook_event !== null ? Webhook.fromPartial(object.webhook_event) : void 0;
|
|
7588
7602
|
message.noti_user_channel = object.noti_user_channel !== void 0 && object.noti_user_channel !== null ? NotificationUserChannel.fromPartial(object.noti_user_channel) : void 0;
|
|
7603
|
+
message.join_channel_app_data = object.join_channel_app_data !== void 0 && object.join_channel_app_data !== null ? JoinChannelAppData.fromPartial(object.join_channel_app_data) : void 0;
|
|
7589
7604
|
return message;
|
|
7590
7605
|
}
|
|
7591
7606
|
};
|
|
@@ -12852,7 +12867,7 @@ var UserChannelAdded = {
|
|
|
12852
12867
|
}
|
|
12853
12868
|
};
|
|
12854
12869
|
function createBaseUserChannelRemoved() {
|
|
12855
|
-
return { channel_id: "", user_ids: [], channel_type: 0 };
|
|
12870
|
+
return { channel_id: "", user_ids: [], channel_type: 0, clan_id: "" };
|
|
12856
12871
|
}
|
|
12857
12872
|
var UserChannelRemoved = {
|
|
12858
12873
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -12865,6 +12880,9 @@ var UserChannelRemoved = {
|
|
|
12865
12880
|
if (message.channel_type !== 0) {
|
|
12866
12881
|
writer.uint32(24).int32(message.channel_type);
|
|
12867
12882
|
}
|
|
12883
|
+
if (message.clan_id !== "") {
|
|
12884
|
+
writer.uint32(34).string(message.clan_id);
|
|
12885
|
+
}
|
|
12868
12886
|
return writer;
|
|
12869
12887
|
},
|
|
12870
12888
|
decode(input, length) {
|
|
@@ -12892,6 +12910,12 @@ var UserChannelRemoved = {
|
|
|
12892
12910
|
}
|
|
12893
12911
|
message.channel_type = reader.int32();
|
|
12894
12912
|
continue;
|
|
12913
|
+
case 4:
|
|
12914
|
+
if (tag !== 34) {
|
|
12915
|
+
break;
|
|
12916
|
+
}
|
|
12917
|
+
message.clan_id = reader.string();
|
|
12918
|
+
continue;
|
|
12895
12919
|
}
|
|
12896
12920
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12897
12921
|
break;
|
|
@@ -12904,7 +12928,8 @@ var UserChannelRemoved = {
|
|
|
12904
12928
|
return {
|
|
12905
12929
|
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
12906
12930
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
12907
|
-
channel_type: isSet4(object.channel_type) ? globalThis.Number(object.channel_type) : 0
|
|
12931
|
+
channel_type: isSet4(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
12932
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
|
|
12908
12933
|
};
|
|
12909
12934
|
},
|
|
12910
12935
|
toJSON(message) {
|
|
@@ -12919,17 +12944,21 @@ var UserChannelRemoved = {
|
|
|
12919
12944
|
if (message.channel_type !== 0) {
|
|
12920
12945
|
obj.channel_type = Math.round(message.channel_type);
|
|
12921
12946
|
}
|
|
12947
|
+
if (message.clan_id !== "") {
|
|
12948
|
+
obj.clan_id = message.clan_id;
|
|
12949
|
+
}
|
|
12922
12950
|
return obj;
|
|
12923
12951
|
},
|
|
12924
12952
|
create(base) {
|
|
12925
12953
|
return UserChannelRemoved.fromPartial(base != null ? base : {});
|
|
12926
12954
|
},
|
|
12927
12955
|
fromPartial(object) {
|
|
12928
|
-
var _a, _b, _c;
|
|
12956
|
+
var _a, _b, _c, _d;
|
|
12929
12957
|
const message = createBaseUserChannelRemoved();
|
|
12930
12958
|
message.channel_id = (_a = object.channel_id) != null ? _a : "";
|
|
12931
12959
|
message.user_ids = ((_b = object.user_ids) == null ? void 0 : _b.map((e) => e)) || [];
|
|
12932
12960
|
message.channel_type = (_c = object.channel_type) != null ? _c : 0;
|
|
12961
|
+
message.clan_id = (_d = object.clan_id) != null ? _d : "";
|
|
12933
12962
|
return message;
|
|
12934
12963
|
}
|
|
12935
12964
|
};
|
|
@@ -13002,7 +13031,7 @@ var UserClanRemoved = {
|
|
|
13002
13031
|
}
|
|
13003
13032
|
};
|
|
13004
13033
|
function createBaseClanUpdatedEvent() {
|
|
13005
|
-
return { clan_id: "", clan_name: "",
|
|
13034
|
+
return { clan_id: "", clan_name: "", logo: "", banner: "", status: 0, is_onboarding: false, welcome_channel_id: "" };
|
|
13006
13035
|
}
|
|
13007
13036
|
var ClanUpdatedEvent = {
|
|
13008
13037
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -13012,8 +13041,20 @@ var ClanUpdatedEvent = {
|
|
|
13012
13041
|
if (message.clan_name !== "") {
|
|
13013
13042
|
writer.uint32(18).string(message.clan_name);
|
|
13014
13043
|
}
|
|
13015
|
-
if (message.
|
|
13016
|
-
writer.uint32(26).string(message.
|
|
13044
|
+
if (message.logo !== "") {
|
|
13045
|
+
writer.uint32(26).string(message.logo);
|
|
13046
|
+
}
|
|
13047
|
+
if (message.banner !== "") {
|
|
13048
|
+
writer.uint32(34).string(message.banner);
|
|
13049
|
+
}
|
|
13050
|
+
if (message.status !== 0) {
|
|
13051
|
+
writer.uint32(40).int32(message.status);
|
|
13052
|
+
}
|
|
13053
|
+
if (message.is_onboarding !== false) {
|
|
13054
|
+
writer.uint32(48).bool(message.is_onboarding);
|
|
13055
|
+
}
|
|
13056
|
+
if (message.welcome_channel_id !== "") {
|
|
13057
|
+
writer.uint32(58).string(message.welcome_channel_id);
|
|
13017
13058
|
}
|
|
13018
13059
|
return writer;
|
|
13019
13060
|
},
|
|
@@ -13040,7 +13081,31 @@ var ClanUpdatedEvent = {
|
|
|
13040
13081
|
if (tag !== 26) {
|
|
13041
13082
|
break;
|
|
13042
13083
|
}
|
|
13043
|
-
message.
|
|
13084
|
+
message.logo = reader.string();
|
|
13085
|
+
continue;
|
|
13086
|
+
case 4:
|
|
13087
|
+
if (tag !== 34) {
|
|
13088
|
+
break;
|
|
13089
|
+
}
|
|
13090
|
+
message.banner = reader.string();
|
|
13091
|
+
continue;
|
|
13092
|
+
case 5:
|
|
13093
|
+
if (tag !== 40) {
|
|
13094
|
+
break;
|
|
13095
|
+
}
|
|
13096
|
+
message.status = reader.int32();
|
|
13097
|
+
continue;
|
|
13098
|
+
case 6:
|
|
13099
|
+
if (tag !== 48) {
|
|
13100
|
+
break;
|
|
13101
|
+
}
|
|
13102
|
+
message.is_onboarding = reader.bool();
|
|
13103
|
+
continue;
|
|
13104
|
+
case 7:
|
|
13105
|
+
if (tag !== 58) {
|
|
13106
|
+
break;
|
|
13107
|
+
}
|
|
13108
|
+
message.welcome_channel_id = reader.string();
|
|
13044
13109
|
continue;
|
|
13045
13110
|
}
|
|
13046
13111
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -13054,7 +13119,11 @@ var ClanUpdatedEvent = {
|
|
|
13054
13119
|
return {
|
|
13055
13120
|
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
13056
13121
|
clan_name: isSet4(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
13057
|
-
|
|
13122
|
+
logo: isSet4(object.logo) ? globalThis.String(object.logo) : "",
|
|
13123
|
+
banner: isSet4(object.banner) ? globalThis.String(object.banner) : "",
|
|
13124
|
+
status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
|
|
13125
|
+
is_onboarding: isSet4(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
|
|
13126
|
+
welcome_channel_id: isSet4(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : ""
|
|
13058
13127
|
};
|
|
13059
13128
|
},
|
|
13060
13129
|
toJSON(message) {
|
|
@@ -13065,8 +13134,20 @@ var ClanUpdatedEvent = {
|
|
|
13065
13134
|
if (message.clan_name !== "") {
|
|
13066
13135
|
obj.clan_name = message.clan_name;
|
|
13067
13136
|
}
|
|
13068
|
-
if (message.
|
|
13069
|
-
obj.
|
|
13137
|
+
if (message.logo !== "") {
|
|
13138
|
+
obj.logo = message.logo;
|
|
13139
|
+
}
|
|
13140
|
+
if (message.banner !== "") {
|
|
13141
|
+
obj.banner = message.banner;
|
|
13142
|
+
}
|
|
13143
|
+
if (message.status !== 0) {
|
|
13144
|
+
obj.status = Math.round(message.status);
|
|
13145
|
+
}
|
|
13146
|
+
if (message.is_onboarding !== false) {
|
|
13147
|
+
obj.is_onboarding = message.is_onboarding;
|
|
13148
|
+
}
|
|
13149
|
+
if (message.welcome_channel_id !== "") {
|
|
13150
|
+
obj.welcome_channel_id = message.welcome_channel_id;
|
|
13070
13151
|
}
|
|
13071
13152
|
return obj;
|
|
13072
13153
|
},
|
|
@@ -13074,11 +13155,15 @@ var ClanUpdatedEvent = {
|
|
|
13074
13155
|
return ClanUpdatedEvent.fromPartial(base != null ? base : {});
|
|
13075
13156
|
},
|
|
13076
13157
|
fromPartial(object) {
|
|
13077
|
-
var _a, _b, _c;
|
|
13158
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
13078
13159
|
const message = createBaseClanUpdatedEvent();
|
|
13079
13160
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
13080
13161
|
message.clan_name = (_b = object.clan_name) != null ? _b : "";
|
|
13081
|
-
message.
|
|
13162
|
+
message.logo = (_c = object.logo) != null ? _c : "";
|
|
13163
|
+
message.banner = (_d = object.banner) != null ? _d : "";
|
|
13164
|
+
message.status = (_e = object.status) != null ? _e : 0;
|
|
13165
|
+
message.is_onboarding = (_f = object.is_onboarding) != null ? _f : false;
|
|
13166
|
+
message.welcome_channel_id = (_g = object.welcome_channel_id) != null ? _g : "";
|
|
13082
13167
|
return message;
|
|
13083
13168
|
}
|
|
13084
13169
|
};
|
|
@@ -14752,6 +14837,87 @@ var UserStatusEvent = {
|
|
|
14752
14837
|
return message;
|
|
14753
14838
|
}
|
|
14754
14839
|
};
|
|
14840
|
+
function createBaseJoinChannelAppData() {
|
|
14841
|
+
return { user_id: "", username: "", hash: "" };
|
|
14842
|
+
}
|
|
14843
|
+
var JoinChannelAppData = {
|
|
14844
|
+
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
14845
|
+
if (message.user_id !== "") {
|
|
14846
|
+
writer.uint32(10).string(message.user_id);
|
|
14847
|
+
}
|
|
14848
|
+
if (message.username !== "") {
|
|
14849
|
+
writer.uint32(18).string(message.username);
|
|
14850
|
+
}
|
|
14851
|
+
if (message.hash !== "") {
|
|
14852
|
+
writer.uint32(26).string(message.hash);
|
|
14853
|
+
}
|
|
14854
|
+
return writer;
|
|
14855
|
+
},
|
|
14856
|
+
decode(input, length) {
|
|
14857
|
+
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
14858
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
14859
|
+
const message = createBaseJoinChannelAppData();
|
|
14860
|
+
while (reader.pos < end) {
|
|
14861
|
+
const tag = reader.uint32();
|
|
14862
|
+
switch (tag >>> 3) {
|
|
14863
|
+
case 1:
|
|
14864
|
+
if (tag !== 10) {
|
|
14865
|
+
break;
|
|
14866
|
+
}
|
|
14867
|
+
message.user_id = reader.string();
|
|
14868
|
+
continue;
|
|
14869
|
+
case 2:
|
|
14870
|
+
if (tag !== 18) {
|
|
14871
|
+
break;
|
|
14872
|
+
}
|
|
14873
|
+
message.username = reader.string();
|
|
14874
|
+
continue;
|
|
14875
|
+
case 3:
|
|
14876
|
+
if (tag !== 26) {
|
|
14877
|
+
break;
|
|
14878
|
+
}
|
|
14879
|
+
message.hash = reader.string();
|
|
14880
|
+
continue;
|
|
14881
|
+
}
|
|
14882
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14883
|
+
break;
|
|
14884
|
+
}
|
|
14885
|
+
reader.skipType(tag & 7);
|
|
14886
|
+
}
|
|
14887
|
+
return message;
|
|
14888
|
+
},
|
|
14889
|
+
fromJSON(object) {
|
|
14890
|
+
return {
|
|
14891
|
+
user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
14892
|
+
username: isSet4(object.username) ? globalThis.String(object.username) : "",
|
|
14893
|
+
hash: isSet4(object.hash) ? globalThis.String(object.hash) : ""
|
|
14894
|
+
};
|
|
14895
|
+
},
|
|
14896
|
+
toJSON(message) {
|
|
14897
|
+
const obj = {};
|
|
14898
|
+
if (message.user_id !== "") {
|
|
14899
|
+
obj.user_id = message.user_id;
|
|
14900
|
+
}
|
|
14901
|
+
if (message.username !== "") {
|
|
14902
|
+
obj.username = message.username;
|
|
14903
|
+
}
|
|
14904
|
+
if (message.hash !== "") {
|
|
14905
|
+
obj.hash = message.hash;
|
|
14906
|
+
}
|
|
14907
|
+
return obj;
|
|
14908
|
+
},
|
|
14909
|
+
create(base) {
|
|
14910
|
+
return JoinChannelAppData.fromPartial(base != null ? base : {});
|
|
14911
|
+
},
|
|
14912
|
+
fromPartial(object) {
|
|
14913
|
+
var _a, _b, _c;
|
|
14914
|
+
const message = createBaseJoinChannelAppData();
|
|
14915
|
+
message.user_id = (_a = object.user_id) != null ? _a : "";
|
|
14916
|
+
message.username = (_b = object.username) != null ? _b : "";
|
|
14917
|
+
message.hash = (_c = object.hash) != null ? _c : "";
|
|
14918
|
+
return message;
|
|
14919
|
+
}
|
|
14920
|
+
};
|
|
14755
14921
|
function toTimestamp2(date) {
|
|
14756
14922
|
const seconds = Math.trunc(date.getTime() / 1e3);
|
|
14757
14923
|
const nanos = date.getTime() % 1e3 * 1e6;
|