mezon-js-protobuf 1.7.8 → 1.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/api.ts +39208 -38235
- package/dist/mezon-js-protobuf/api/api.d.ts +892 -144
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +0 -12
- package/dist/mezon-js-protobuf.cjs.js +3 -17
- package/dist/mezon-js-protobuf.esm.mjs +3 -17
- package/package.json +1 -1
- package/rtapi/realtime.ts +11512 -11529
|
@@ -820,8 +820,6 @@ export interface UserChannelRemoved {
|
|
|
820
820
|
user_ids: string[];
|
|
821
821
|
/** the channel type */
|
|
822
822
|
channel_type: number;
|
|
823
|
-
/** the clan id */
|
|
824
|
-
clan_id: string;
|
|
825
823
|
}
|
|
826
824
|
/** */
|
|
827
825
|
export interface UserClanRemoved {
|
|
@@ -1558,7 +1556,6 @@ export declare const Envelope: {
|
|
|
1558
1556
|
channel_id?: string | undefined;
|
|
1559
1557
|
user_ids?: string[] | undefined;
|
|
1560
1558
|
channel_type?: number | undefined;
|
|
1561
|
-
clan_id?: string | undefined;
|
|
1562
1559
|
} | undefined;
|
|
1563
1560
|
user_clan_removed_event?: {
|
|
1564
1561
|
clan_id?: string | undefined;
|
|
@@ -3729,12 +3726,10 @@ export declare const Envelope: {
|
|
|
3729
3726
|
channel_id?: string | undefined;
|
|
3730
3727
|
user_ids?: string[] | undefined;
|
|
3731
3728
|
channel_type?: number | undefined;
|
|
3732
|
-
clan_id?: string | undefined;
|
|
3733
3729
|
} & {
|
|
3734
3730
|
channel_id?: string | undefined;
|
|
3735
3731
|
user_ids?: (string[] & string[] & { [K_102 in Exclude<keyof I["user_channel_removed_event"]["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
3736
3732
|
channel_type?: number | undefined;
|
|
3737
|
-
clan_id?: string | undefined;
|
|
3738
3733
|
} & { [K_103 in Exclude<keyof I["user_channel_removed_event"], keyof UserChannelRemoved>]: never; }) | undefined;
|
|
3739
3734
|
user_clan_removed_event?: ({
|
|
3740
3735
|
clan_id?: string | undefined;
|
|
@@ -5099,7 +5094,6 @@ export declare const Envelope: {
|
|
|
5099
5094
|
channel_id?: string | undefined;
|
|
5100
5095
|
user_ids?: string[] | undefined;
|
|
5101
5096
|
channel_type?: number | undefined;
|
|
5102
|
-
clan_id?: string | undefined;
|
|
5103
5097
|
} | undefined;
|
|
5104
5098
|
user_clan_removed_event?: {
|
|
5105
5099
|
clan_id?: string | undefined;
|
|
@@ -7270,12 +7264,10 @@ export declare const Envelope: {
|
|
|
7270
7264
|
channel_id?: string | undefined;
|
|
7271
7265
|
user_ids?: string[] | undefined;
|
|
7272
7266
|
channel_type?: number | undefined;
|
|
7273
|
-
clan_id?: string | undefined;
|
|
7274
7267
|
} & {
|
|
7275
7268
|
channel_id?: string | undefined;
|
|
7276
7269
|
user_ids?: (string[] & string[] & { [K_271 in Exclude<keyof I_1["user_channel_removed_event"]["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
7277
7270
|
channel_type?: number | undefined;
|
|
7278
|
-
clan_id?: string | undefined;
|
|
7279
7271
|
} & { [K_272 in Exclude<keyof I_1["user_channel_removed_event"], keyof UserChannelRemoved>]: never; }) | undefined;
|
|
7280
7272
|
user_clan_removed_event?: ({
|
|
7281
7273
|
clan_id?: string | undefined;
|
|
@@ -13011,23 +13003,19 @@ export declare const UserChannelRemoved: {
|
|
|
13011
13003
|
channel_id?: string | undefined;
|
|
13012
13004
|
user_ids?: string[] | undefined;
|
|
13013
13005
|
channel_type?: number | undefined;
|
|
13014
|
-
clan_id?: string | undefined;
|
|
13015
13006
|
} & {
|
|
13016
13007
|
channel_id?: string | undefined;
|
|
13017
13008
|
user_ids?: (string[] & string[] & { [K in Exclude<keyof I["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
13018
13009
|
channel_type?: number | undefined;
|
|
13019
|
-
clan_id?: string | undefined;
|
|
13020
13010
|
} & { [K_1 in Exclude<keyof I, keyof UserChannelRemoved>]: never; }>(base?: I | undefined): UserChannelRemoved;
|
|
13021
13011
|
fromPartial<I_1 extends {
|
|
13022
13012
|
channel_id?: string | undefined;
|
|
13023
13013
|
user_ids?: string[] | undefined;
|
|
13024
13014
|
channel_type?: number | undefined;
|
|
13025
|
-
clan_id?: string | undefined;
|
|
13026
13015
|
} & {
|
|
13027
13016
|
channel_id?: string | undefined;
|
|
13028
13017
|
user_ids?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
|
|
13029
13018
|
channel_type?: number | undefined;
|
|
13030
|
-
clan_id?: string | undefined;
|
|
13031
13019
|
} & { [K_3 in Exclude<keyof I_1, keyof UserChannelRemoved>]: never; }>(object: I_1): UserChannelRemoved;
|
|
13032
13020
|
};
|
|
13033
13021
|
export declare const UserClanRemoved: {
|
|
@@ -12865,7 +12865,7 @@ var UserChannelAdded = {
|
|
|
12865
12865
|
}
|
|
12866
12866
|
};
|
|
12867
12867
|
function createBaseUserChannelRemoved() {
|
|
12868
|
-
return { channel_id: "", user_ids: [], channel_type: 0
|
|
12868
|
+
return { channel_id: "", user_ids: [], channel_type: 0 };
|
|
12869
12869
|
}
|
|
12870
12870
|
var UserChannelRemoved = {
|
|
12871
12871
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -12878,9 +12878,6 @@ var UserChannelRemoved = {
|
|
|
12878
12878
|
if (message.channel_type !== 0) {
|
|
12879
12879
|
writer.uint32(24).int32(message.channel_type);
|
|
12880
12880
|
}
|
|
12881
|
-
if (message.clan_id !== "") {
|
|
12882
|
-
writer.uint32(34).string(message.clan_id);
|
|
12883
|
-
}
|
|
12884
12881
|
return writer;
|
|
12885
12882
|
},
|
|
12886
12883
|
decode(input, length) {
|
|
@@ -12908,12 +12905,6 @@ var UserChannelRemoved = {
|
|
|
12908
12905
|
}
|
|
12909
12906
|
message.channel_type = reader.int32();
|
|
12910
12907
|
continue;
|
|
12911
|
-
case 4:
|
|
12912
|
-
if (tag !== 34) {
|
|
12913
|
-
break;
|
|
12914
|
-
}
|
|
12915
|
-
message.clan_id = reader.string();
|
|
12916
|
-
continue;
|
|
12917
12908
|
}
|
|
12918
12909
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12919
12910
|
break;
|
|
@@ -12926,8 +12917,7 @@ var UserChannelRemoved = {
|
|
|
12926
12917
|
return {
|
|
12927
12918
|
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
12928
12919
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
12929
|
-
channel_type: isSet4(object.channel_type) ? globalThis.Number(object.channel_type) : 0
|
|
12930
|
-
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
|
|
12920
|
+
channel_type: isSet4(object.channel_type) ? globalThis.Number(object.channel_type) : 0
|
|
12931
12921
|
};
|
|
12932
12922
|
},
|
|
12933
12923
|
toJSON(message) {
|
|
@@ -12942,21 +12932,17 @@ var UserChannelRemoved = {
|
|
|
12942
12932
|
if (message.channel_type !== 0) {
|
|
12943
12933
|
obj.channel_type = Math.round(message.channel_type);
|
|
12944
12934
|
}
|
|
12945
|
-
if (message.clan_id !== "") {
|
|
12946
|
-
obj.clan_id = message.clan_id;
|
|
12947
|
-
}
|
|
12948
12935
|
return obj;
|
|
12949
12936
|
},
|
|
12950
12937
|
create(base) {
|
|
12951
12938
|
return UserChannelRemoved.fromPartial(base != null ? base : {});
|
|
12952
12939
|
},
|
|
12953
12940
|
fromPartial(object) {
|
|
12954
|
-
var _a, _b, _c
|
|
12941
|
+
var _a, _b, _c;
|
|
12955
12942
|
const message = createBaseUserChannelRemoved();
|
|
12956
12943
|
message.channel_id = (_a = object.channel_id) != null ? _a : "";
|
|
12957
12944
|
message.user_ids = ((_b = object.user_ids) == null ? void 0 : _b.map((e) => e)) || [];
|
|
12958
12945
|
message.channel_type = (_c = object.channel_type) != null ? _c : 0;
|
|
12959
|
-
message.clan_id = (_d = object.clan_id) != null ? _d : "";
|
|
12960
12946
|
return message;
|
|
12961
12947
|
}
|
|
12962
12948
|
};
|
|
@@ -12852,7 +12852,7 @@ var UserChannelAdded = {
|
|
|
12852
12852
|
}
|
|
12853
12853
|
};
|
|
12854
12854
|
function createBaseUserChannelRemoved() {
|
|
12855
|
-
return { channel_id: "", user_ids: [], channel_type: 0
|
|
12855
|
+
return { channel_id: "", user_ids: [], channel_type: 0 };
|
|
12856
12856
|
}
|
|
12857
12857
|
var UserChannelRemoved = {
|
|
12858
12858
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -12865,9 +12865,6 @@ var UserChannelRemoved = {
|
|
|
12865
12865
|
if (message.channel_type !== 0) {
|
|
12866
12866
|
writer.uint32(24).int32(message.channel_type);
|
|
12867
12867
|
}
|
|
12868
|
-
if (message.clan_id !== "") {
|
|
12869
|
-
writer.uint32(34).string(message.clan_id);
|
|
12870
|
-
}
|
|
12871
12868
|
return writer;
|
|
12872
12869
|
},
|
|
12873
12870
|
decode(input, length) {
|
|
@@ -12895,12 +12892,6 @@ var UserChannelRemoved = {
|
|
|
12895
12892
|
}
|
|
12896
12893
|
message.channel_type = reader.int32();
|
|
12897
12894
|
continue;
|
|
12898
|
-
case 4:
|
|
12899
|
-
if (tag !== 34) {
|
|
12900
|
-
break;
|
|
12901
|
-
}
|
|
12902
|
-
message.clan_id = reader.string();
|
|
12903
|
-
continue;
|
|
12904
12895
|
}
|
|
12905
12896
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12906
12897
|
break;
|
|
@@ -12913,8 +12904,7 @@ var UserChannelRemoved = {
|
|
|
12913
12904
|
return {
|
|
12914
12905
|
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
12915
12906
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
12916
|
-
channel_type: isSet4(object.channel_type) ? globalThis.Number(object.channel_type) : 0
|
|
12917
|
-
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
|
|
12907
|
+
channel_type: isSet4(object.channel_type) ? globalThis.Number(object.channel_type) : 0
|
|
12918
12908
|
};
|
|
12919
12909
|
},
|
|
12920
12910
|
toJSON(message) {
|
|
@@ -12929,21 +12919,17 @@ var UserChannelRemoved = {
|
|
|
12929
12919
|
if (message.channel_type !== 0) {
|
|
12930
12920
|
obj.channel_type = Math.round(message.channel_type);
|
|
12931
12921
|
}
|
|
12932
|
-
if (message.clan_id !== "") {
|
|
12933
|
-
obj.clan_id = message.clan_id;
|
|
12934
|
-
}
|
|
12935
12922
|
return obj;
|
|
12936
12923
|
},
|
|
12937
12924
|
create(base) {
|
|
12938
12925
|
return UserChannelRemoved.fromPartial(base != null ? base : {});
|
|
12939
12926
|
},
|
|
12940
12927
|
fromPartial(object) {
|
|
12941
|
-
var _a, _b, _c
|
|
12928
|
+
var _a, _b, _c;
|
|
12942
12929
|
const message = createBaseUserChannelRemoved();
|
|
12943
12930
|
message.channel_id = (_a = object.channel_id) != null ? _a : "";
|
|
12944
12931
|
message.user_ids = ((_b = object.user_ids) == null ? void 0 : _b.map((e) => e)) || [];
|
|
12945
12932
|
message.channel_type = (_c = object.channel_type) != null ? _c : 0;
|
|
12946
|
-
message.clan_id = (_d = object.clan_id) != null ? _d : "";
|
|
12947
12933
|
return message;
|
|
12948
12934
|
}
|
|
12949
12935
|
};
|
package/package.json
CHANGED