mezon-js-protobuf 1.7.1 → 1.7.2
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 +246 -0
- package/dist/mezon-js-protobuf/api/api.d.ts +1470 -41
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +1710 -282
- package/dist/mezon-js-protobuf.cjs.js +17 -2
- package/dist/mezon-js-protobuf.esm.mjs +17 -2
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -638,6 +638,8 @@ export interface NotificationInfo {
|
|
|
638
638
|
clan_name: string;
|
|
639
639
|
/** clan logo */
|
|
640
640
|
clan_logo: string;
|
|
641
|
+
/** */
|
|
642
|
+
channel: ChannelDescription | undefined;
|
|
641
643
|
}
|
|
642
644
|
|
|
643
645
|
/** Emoji reaction by user */
|
|
@@ -1329,6 +1331,8 @@ export interface Notification {
|
|
|
1329
1331
|
channel_type: number;
|
|
1330
1332
|
/** */
|
|
1331
1333
|
avatar_url: string;
|
|
1334
|
+
/** */
|
|
1335
|
+
channel: ChannelDescription | undefined;
|
|
1332
1336
|
}
|
|
1333
1337
|
|
|
1334
1338
|
/** A collection of zero or more notifications. */
|
|
@@ -3869,6 +3873,19 @@ export interface DeleteSdTopicRequest {
|
|
|
3869
3873
|
clan_id: string;
|
|
3870
3874
|
}
|
|
3871
3875
|
|
|
3876
|
+
export interface GetJoinMezonMeetRequest {
|
|
3877
|
+
channel_id: string;
|
|
3878
|
+
room_name: string;
|
|
3879
|
+
}
|
|
3880
|
+
|
|
3881
|
+
export interface GetJoinMezonMeetResponse {
|
|
3882
|
+
channel_id: string;
|
|
3883
|
+
user_id: string;
|
|
3884
|
+
user_name: string;
|
|
3885
|
+
room_name: string;
|
|
3886
|
+
token: string;
|
|
3887
|
+
}
|
|
3888
|
+
|
|
3872
3889
|
function createBaseAccount(): Account {
|
|
3873
3890
|
return {
|
|
3874
3891
|
user: undefined,
|
|
@@ -7982,6 +7999,7 @@ function createBaseNotificationInfo(): NotificationInfo {
|
|
|
7982
7999
|
category_name: "",
|
|
7983
8000
|
clan_name: "",
|
|
7984
8001
|
clan_logo: "",
|
|
8002
|
+
channel: undefined,
|
|
7985
8003
|
};
|
|
7986
8004
|
}
|
|
7987
8005
|
|
|
@@ -8017,6 +8035,9 @@ export const NotificationInfo = {
|
|
|
8017
8035
|
if (message.clan_logo !== "") {
|
|
8018
8036
|
writer.uint32(82).string(message.clan_logo);
|
|
8019
8037
|
}
|
|
8038
|
+
if (message.channel !== undefined) {
|
|
8039
|
+
ChannelDescription.encode(message.channel, writer.uint32(90).fork()).ldelim();
|
|
8040
|
+
}
|
|
8020
8041
|
return writer;
|
|
8021
8042
|
},
|
|
8022
8043
|
|
|
@@ -8097,6 +8118,13 @@ export const NotificationInfo = {
|
|
|
8097
8118
|
|
|
8098
8119
|
message.clan_logo = reader.string();
|
|
8099
8120
|
continue;
|
|
8121
|
+
case 11:
|
|
8122
|
+
if (tag !== 90) {
|
|
8123
|
+
break;
|
|
8124
|
+
}
|
|
8125
|
+
|
|
8126
|
+
message.channel = ChannelDescription.decode(reader, reader.uint32());
|
|
8127
|
+
continue;
|
|
8100
8128
|
}
|
|
8101
8129
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8102
8130
|
break;
|
|
@@ -8118,6 +8146,7 @@ export const NotificationInfo = {
|
|
|
8118
8146
|
category_name: isSet(object.category_name) ? globalThis.String(object.category_name) : "",
|
|
8119
8147
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
8120
8148
|
clan_logo: isSet(object.clan_logo) ? globalThis.String(object.clan_logo) : "",
|
|
8149
|
+
channel: isSet(object.channel) ? ChannelDescription.fromJSON(object.channel) : undefined,
|
|
8121
8150
|
};
|
|
8122
8151
|
},
|
|
8123
8152
|
|
|
@@ -8153,6 +8182,9 @@ export const NotificationInfo = {
|
|
|
8153
8182
|
if (message.clan_logo !== "") {
|
|
8154
8183
|
obj.clan_logo = message.clan_logo;
|
|
8155
8184
|
}
|
|
8185
|
+
if (message.channel !== undefined) {
|
|
8186
|
+
obj.channel = ChannelDescription.toJSON(message.channel);
|
|
8187
|
+
}
|
|
8156
8188
|
return obj;
|
|
8157
8189
|
},
|
|
8158
8190
|
|
|
@@ -8171,6 +8203,9 @@ export const NotificationInfo = {
|
|
|
8171
8203
|
message.category_name = object.category_name ?? "";
|
|
8172
8204
|
message.clan_name = object.clan_name ?? "";
|
|
8173
8205
|
message.clan_logo = object.clan_logo ?? "";
|
|
8206
|
+
message.channel = (object.channel !== undefined && object.channel !== null)
|
|
8207
|
+
? ChannelDescription.fromPartial(object.channel)
|
|
8208
|
+
: undefined;
|
|
8174
8209
|
return message;
|
|
8175
8210
|
},
|
|
8176
8211
|
};
|
|
@@ -12717,6 +12752,7 @@ function createBaseNotification(): Notification {
|
|
|
12717
12752
|
channel_id: "",
|
|
12718
12753
|
channel_type: 0,
|
|
12719
12754
|
avatar_url: "",
|
|
12755
|
+
channel: undefined,
|
|
12720
12756
|
};
|
|
12721
12757
|
}
|
|
12722
12758
|
|
|
@@ -12755,6 +12791,9 @@ export const Notification = {
|
|
|
12755
12791
|
if (message.avatar_url !== "") {
|
|
12756
12792
|
writer.uint32(90).string(message.avatar_url);
|
|
12757
12793
|
}
|
|
12794
|
+
if (message.channel !== undefined) {
|
|
12795
|
+
ChannelDescription.encode(message.channel, writer.uint32(98).fork()).ldelim();
|
|
12796
|
+
}
|
|
12758
12797
|
return writer;
|
|
12759
12798
|
},
|
|
12760
12799
|
|
|
@@ -12842,6 +12881,13 @@ export const Notification = {
|
|
|
12842
12881
|
|
|
12843
12882
|
message.avatar_url = reader.string();
|
|
12844
12883
|
continue;
|
|
12884
|
+
case 12:
|
|
12885
|
+
if (tag !== 98) {
|
|
12886
|
+
break;
|
|
12887
|
+
}
|
|
12888
|
+
|
|
12889
|
+
message.channel = ChannelDescription.decode(reader, reader.uint32());
|
|
12890
|
+
continue;
|
|
12845
12891
|
}
|
|
12846
12892
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12847
12893
|
break;
|
|
@@ -12864,6 +12910,7 @@ export const Notification = {
|
|
|
12864
12910
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
12865
12911
|
channel_type: isSet(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
12866
12912
|
avatar_url: isSet(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
12913
|
+
channel: isSet(object.channel) ? ChannelDescription.fromJSON(object.channel) : undefined,
|
|
12867
12914
|
};
|
|
12868
12915
|
},
|
|
12869
12916
|
|
|
@@ -12902,6 +12949,9 @@ export const Notification = {
|
|
|
12902
12949
|
if (message.avatar_url !== "") {
|
|
12903
12950
|
obj.avatar_url = message.avatar_url;
|
|
12904
12951
|
}
|
|
12952
|
+
if (message.channel !== undefined) {
|
|
12953
|
+
obj.channel = ChannelDescription.toJSON(message.channel);
|
|
12954
|
+
}
|
|
12905
12955
|
return obj;
|
|
12906
12956
|
},
|
|
12907
12957
|
|
|
@@ -12921,6 +12971,9 @@ export const Notification = {
|
|
|
12921
12971
|
message.channel_id = object.channel_id ?? "";
|
|
12922
12972
|
message.channel_type = object.channel_type ?? 0;
|
|
12923
12973
|
message.avatar_url = object.avatar_url ?? "";
|
|
12974
|
+
message.channel = (object.channel !== undefined && object.channel !== null)
|
|
12975
|
+
? ChannelDescription.fromPartial(object.channel)
|
|
12976
|
+
: undefined;
|
|
12924
12977
|
return message;
|
|
12925
12978
|
},
|
|
12926
12979
|
};
|
|
@@ -37700,6 +37753,199 @@ export const DeleteSdTopicRequest = {
|
|
|
37700
37753
|
},
|
|
37701
37754
|
};
|
|
37702
37755
|
|
|
37756
|
+
function createBaseGetJoinMezonMeetRequest(): GetJoinMezonMeetRequest {
|
|
37757
|
+
return { channel_id: "", room_name: "" };
|
|
37758
|
+
}
|
|
37759
|
+
|
|
37760
|
+
export const GetJoinMezonMeetRequest = {
|
|
37761
|
+
encode(message: GetJoinMezonMeetRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37762
|
+
if (message.channel_id !== "") {
|
|
37763
|
+
writer.uint32(10).string(message.channel_id);
|
|
37764
|
+
}
|
|
37765
|
+
if (message.room_name !== "") {
|
|
37766
|
+
writer.uint32(18).string(message.room_name);
|
|
37767
|
+
}
|
|
37768
|
+
return writer;
|
|
37769
|
+
},
|
|
37770
|
+
|
|
37771
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetJoinMezonMeetRequest {
|
|
37772
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37773
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37774
|
+
const message = createBaseGetJoinMezonMeetRequest();
|
|
37775
|
+
while (reader.pos < end) {
|
|
37776
|
+
const tag = reader.uint32();
|
|
37777
|
+
switch (tag >>> 3) {
|
|
37778
|
+
case 1:
|
|
37779
|
+
if (tag !== 10) {
|
|
37780
|
+
break;
|
|
37781
|
+
}
|
|
37782
|
+
|
|
37783
|
+
message.channel_id = reader.string();
|
|
37784
|
+
continue;
|
|
37785
|
+
case 2:
|
|
37786
|
+
if (tag !== 18) {
|
|
37787
|
+
break;
|
|
37788
|
+
}
|
|
37789
|
+
|
|
37790
|
+
message.room_name = reader.string();
|
|
37791
|
+
continue;
|
|
37792
|
+
}
|
|
37793
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37794
|
+
break;
|
|
37795
|
+
}
|
|
37796
|
+
reader.skipType(tag & 7);
|
|
37797
|
+
}
|
|
37798
|
+
return message;
|
|
37799
|
+
},
|
|
37800
|
+
|
|
37801
|
+
fromJSON(object: any): GetJoinMezonMeetRequest {
|
|
37802
|
+
return {
|
|
37803
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
37804
|
+
room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
|
|
37805
|
+
};
|
|
37806
|
+
},
|
|
37807
|
+
|
|
37808
|
+
toJSON(message: GetJoinMezonMeetRequest): unknown {
|
|
37809
|
+
const obj: any = {};
|
|
37810
|
+
if (message.channel_id !== "") {
|
|
37811
|
+
obj.channel_id = message.channel_id;
|
|
37812
|
+
}
|
|
37813
|
+
if (message.room_name !== "") {
|
|
37814
|
+
obj.room_name = message.room_name;
|
|
37815
|
+
}
|
|
37816
|
+
return obj;
|
|
37817
|
+
},
|
|
37818
|
+
|
|
37819
|
+
create<I extends Exact<DeepPartial<GetJoinMezonMeetRequest>, I>>(base?: I): GetJoinMezonMeetRequest {
|
|
37820
|
+
return GetJoinMezonMeetRequest.fromPartial(base ?? ({} as any));
|
|
37821
|
+
},
|
|
37822
|
+
fromPartial<I extends Exact<DeepPartial<GetJoinMezonMeetRequest>, I>>(object: I): GetJoinMezonMeetRequest {
|
|
37823
|
+
const message = createBaseGetJoinMezonMeetRequest();
|
|
37824
|
+
message.channel_id = object.channel_id ?? "";
|
|
37825
|
+
message.room_name = object.room_name ?? "";
|
|
37826
|
+
return message;
|
|
37827
|
+
},
|
|
37828
|
+
};
|
|
37829
|
+
|
|
37830
|
+
function createBaseGetJoinMezonMeetResponse(): GetJoinMezonMeetResponse {
|
|
37831
|
+
return { channel_id: "", user_id: "", user_name: "", room_name: "", token: "" };
|
|
37832
|
+
}
|
|
37833
|
+
|
|
37834
|
+
export const GetJoinMezonMeetResponse = {
|
|
37835
|
+
encode(message: GetJoinMezonMeetResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37836
|
+
if (message.channel_id !== "") {
|
|
37837
|
+
writer.uint32(10).string(message.channel_id);
|
|
37838
|
+
}
|
|
37839
|
+
if (message.user_id !== "") {
|
|
37840
|
+
writer.uint32(18).string(message.user_id);
|
|
37841
|
+
}
|
|
37842
|
+
if (message.user_name !== "") {
|
|
37843
|
+
writer.uint32(26).string(message.user_name);
|
|
37844
|
+
}
|
|
37845
|
+
if (message.room_name !== "") {
|
|
37846
|
+
writer.uint32(34).string(message.room_name);
|
|
37847
|
+
}
|
|
37848
|
+
if (message.token !== "") {
|
|
37849
|
+
writer.uint32(42).string(message.token);
|
|
37850
|
+
}
|
|
37851
|
+
return writer;
|
|
37852
|
+
},
|
|
37853
|
+
|
|
37854
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetJoinMezonMeetResponse {
|
|
37855
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37856
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37857
|
+
const message = createBaseGetJoinMezonMeetResponse();
|
|
37858
|
+
while (reader.pos < end) {
|
|
37859
|
+
const tag = reader.uint32();
|
|
37860
|
+
switch (tag >>> 3) {
|
|
37861
|
+
case 1:
|
|
37862
|
+
if (tag !== 10) {
|
|
37863
|
+
break;
|
|
37864
|
+
}
|
|
37865
|
+
|
|
37866
|
+
message.channel_id = reader.string();
|
|
37867
|
+
continue;
|
|
37868
|
+
case 2:
|
|
37869
|
+
if (tag !== 18) {
|
|
37870
|
+
break;
|
|
37871
|
+
}
|
|
37872
|
+
|
|
37873
|
+
message.user_id = reader.string();
|
|
37874
|
+
continue;
|
|
37875
|
+
case 3:
|
|
37876
|
+
if (tag !== 26) {
|
|
37877
|
+
break;
|
|
37878
|
+
}
|
|
37879
|
+
|
|
37880
|
+
message.user_name = reader.string();
|
|
37881
|
+
continue;
|
|
37882
|
+
case 4:
|
|
37883
|
+
if (tag !== 34) {
|
|
37884
|
+
break;
|
|
37885
|
+
}
|
|
37886
|
+
|
|
37887
|
+
message.room_name = reader.string();
|
|
37888
|
+
continue;
|
|
37889
|
+
case 5:
|
|
37890
|
+
if (tag !== 42) {
|
|
37891
|
+
break;
|
|
37892
|
+
}
|
|
37893
|
+
|
|
37894
|
+
message.token = reader.string();
|
|
37895
|
+
continue;
|
|
37896
|
+
}
|
|
37897
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37898
|
+
break;
|
|
37899
|
+
}
|
|
37900
|
+
reader.skipType(tag & 7);
|
|
37901
|
+
}
|
|
37902
|
+
return message;
|
|
37903
|
+
},
|
|
37904
|
+
|
|
37905
|
+
fromJSON(object: any): GetJoinMezonMeetResponse {
|
|
37906
|
+
return {
|
|
37907
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
37908
|
+
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
37909
|
+
user_name: isSet(object.user_name) ? globalThis.String(object.user_name) : "",
|
|
37910
|
+
room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
|
|
37911
|
+
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
37912
|
+
};
|
|
37913
|
+
},
|
|
37914
|
+
|
|
37915
|
+
toJSON(message: GetJoinMezonMeetResponse): unknown {
|
|
37916
|
+
const obj: any = {};
|
|
37917
|
+
if (message.channel_id !== "") {
|
|
37918
|
+
obj.channel_id = message.channel_id;
|
|
37919
|
+
}
|
|
37920
|
+
if (message.user_id !== "") {
|
|
37921
|
+
obj.user_id = message.user_id;
|
|
37922
|
+
}
|
|
37923
|
+
if (message.user_name !== "") {
|
|
37924
|
+
obj.user_name = message.user_name;
|
|
37925
|
+
}
|
|
37926
|
+
if (message.room_name !== "") {
|
|
37927
|
+
obj.room_name = message.room_name;
|
|
37928
|
+
}
|
|
37929
|
+
if (message.token !== "") {
|
|
37930
|
+
obj.token = message.token;
|
|
37931
|
+
}
|
|
37932
|
+
return obj;
|
|
37933
|
+
},
|
|
37934
|
+
|
|
37935
|
+
create<I extends Exact<DeepPartial<GetJoinMezonMeetResponse>, I>>(base?: I): GetJoinMezonMeetResponse {
|
|
37936
|
+
return GetJoinMezonMeetResponse.fromPartial(base ?? ({} as any));
|
|
37937
|
+
},
|
|
37938
|
+
fromPartial<I extends Exact<DeepPartial<GetJoinMezonMeetResponse>, I>>(object: I): GetJoinMezonMeetResponse {
|
|
37939
|
+
const message = createBaseGetJoinMezonMeetResponse();
|
|
37940
|
+
message.channel_id = object.channel_id ?? "";
|
|
37941
|
+
message.user_id = object.user_id ?? "";
|
|
37942
|
+
message.user_name = object.user_name ?? "";
|
|
37943
|
+
message.room_name = object.room_name ?? "";
|
|
37944
|
+
message.token = object.token ?? "";
|
|
37945
|
+
return message;
|
|
37946
|
+
},
|
|
37947
|
+
};
|
|
37948
|
+
|
|
37703
37949
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
37704
37950
|
if ((globalThis as any).Buffer) {
|
|
37705
37951
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|