mezon-js-protobuf 1.7.1 → 1.7.3
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 +264 -1
- package/dist/mezon-js-protobuf/api/api.d.ts +1474 -39
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +1730 -260
- package/dist/mezon-js-protobuf.cjs.js +143 -4
- package/dist/mezon-js-protobuf.esm.mjs +143 -4
- package/package.json +1 -1
- package/rtapi/realtime.ts +26 -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. */
|
|
@@ -2180,6 +2184,8 @@ export interface NotificationUserChannel {
|
|
|
2180
2184
|
| undefined;
|
|
2181
2185
|
/** */
|
|
2182
2186
|
active: number;
|
|
2187
|
+
/** */
|
|
2188
|
+
channel_id: string;
|
|
2183
2189
|
}
|
|
2184
2190
|
|
|
2185
2191
|
/** Notification channel */
|
|
@@ -3869,6 +3875,19 @@ export interface DeleteSdTopicRequest {
|
|
|
3869
3875
|
clan_id: string;
|
|
3870
3876
|
}
|
|
3871
3877
|
|
|
3878
|
+
export interface GetJoinMezonMeetRequest {
|
|
3879
|
+
channel_id: string;
|
|
3880
|
+
room_name: string;
|
|
3881
|
+
}
|
|
3882
|
+
|
|
3883
|
+
export interface GetJoinMezonMeetResponse {
|
|
3884
|
+
channel_id: string;
|
|
3885
|
+
user_id: string;
|
|
3886
|
+
user_name: string;
|
|
3887
|
+
room_name: string;
|
|
3888
|
+
token: string;
|
|
3889
|
+
}
|
|
3890
|
+
|
|
3872
3891
|
function createBaseAccount(): Account {
|
|
3873
3892
|
return {
|
|
3874
3893
|
user: undefined,
|
|
@@ -7982,6 +8001,7 @@ function createBaseNotificationInfo(): NotificationInfo {
|
|
|
7982
8001
|
category_name: "",
|
|
7983
8002
|
clan_name: "",
|
|
7984
8003
|
clan_logo: "",
|
|
8004
|
+
channel: undefined,
|
|
7985
8005
|
};
|
|
7986
8006
|
}
|
|
7987
8007
|
|
|
@@ -8017,6 +8037,9 @@ export const NotificationInfo = {
|
|
|
8017
8037
|
if (message.clan_logo !== "") {
|
|
8018
8038
|
writer.uint32(82).string(message.clan_logo);
|
|
8019
8039
|
}
|
|
8040
|
+
if (message.channel !== undefined) {
|
|
8041
|
+
ChannelDescription.encode(message.channel, writer.uint32(90).fork()).ldelim();
|
|
8042
|
+
}
|
|
8020
8043
|
return writer;
|
|
8021
8044
|
},
|
|
8022
8045
|
|
|
@@ -8097,6 +8120,13 @@ export const NotificationInfo = {
|
|
|
8097
8120
|
|
|
8098
8121
|
message.clan_logo = reader.string();
|
|
8099
8122
|
continue;
|
|
8123
|
+
case 11:
|
|
8124
|
+
if (tag !== 90) {
|
|
8125
|
+
break;
|
|
8126
|
+
}
|
|
8127
|
+
|
|
8128
|
+
message.channel = ChannelDescription.decode(reader, reader.uint32());
|
|
8129
|
+
continue;
|
|
8100
8130
|
}
|
|
8101
8131
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8102
8132
|
break;
|
|
@@ -8118,6 +8148,7 @@ export const NotificationInfo = {
|
|
|
8118
8148
|
category_name: isSet(object.category_name) ? globalThis.String(object.category_name) : "",
|
|
8119
8149
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
8120
8150
|
clan_logo: isSet(object.clan_logo) ? globalThis.String(object.clan_logo) : "",
|
|
8151
|
+
channel: isSet(object.channel) ? ChannelDescription.fromJSON(object.channel) : undefined,
|
|
8121
8152
|
};
|
|
8122
8153
|
},
|
|
8123
8154
|
|
|
@@ -8153,6 +8184,9 @@ export const NotificationInfo = {
|
|
|
8153
8184
|
if (message.clan_logo !== "") {
|
|
8154
8185
|
obj.clan_logo = message.clan_logo;
|
|
8155
8186
|
}
|
|
8187
|
+
if (message.channel !== undefined) {
|
|
8188
|
+
obj.channel = ChannelDescription.toJSON(message.channel);
|
|
8189
|
+
}
|
|
8156
8190
|
return obj;
|
|
8157
8191
|
},
|
|
8158
8192
|
|
|
@@ -8171,6 +8205,9 @@ export const NotificationInfo = {
|
|
|
8171
8205
|
message.category_name = object.category_name ?? "";
|
|
8172
8206
|
message.clan_name = object.clan_name ?? "";
|
|
8173
8207
|
message.clan_logo = object.clan_logo ?? "";
|
|
8208
|
+
message.channel = (object.channel !== undefined && object.channel !== null)
|
|
8209
|
+
? ChannelDescription.fromPartial(object.channel)
|
|
8210
|
+
: undefined;
|
|
8174
8211
|
return message;
|
|
8175
8212
|
},
|
|
8176
8213
|
};
|
|
@@ -12717,6 +12754,7 @@ function createBaseNotification(): Notification {
|
|
|
12717
12754
|
channel_id: "",
|
|
12718
12755
|
channel_type: 0,
|
|
12719
12756
|
avatar_url: "",
|
|
12757
|
+
channel: undefined,
|
|
12720
12758
|
};
|
|
12721
12759
|
}
|
|
12722
12760
|
|
|
@@ -12755,6 +12793,9 @@ export const Notification = {
|
|
|
12755
12793
|
if (message.avatar_url !== "") {
|
|
12756
12794
|
writer.uint32(90).string(message.avatar_url);
|
|
12757
12795
|
}
|
|
12796
|
+
if (message.channel !== undefined) {
|
|
12797
|
+
ChannelDescription.encode(message.channel, writer.uint32(98).fork()).ldelim();
|
|
12798
|
+
}
|
|
12758
12799
|
return writer;
|
|
12759
12800
|
},
|
|
12760
12801
|
|
|
@@ -12842,6 +12883,13 @@ export const Notification = {
|
|
|
12842
12883
|
|
|
12843
12884
|
message.avatar_url = reader.string();
|
|
12844
12885
|
continue;
|
|
12886
|
+
case 12:
|
|
12887
|
+
if (tag !== 98) {
|
|
12888
|
+
break;
|
|
12889
|
+
}
|
|
12890
|
+
|
|
12891
|
+
message.channel = ChannelDescription.decode(reader, reader.uint32());
|
|
12892
|
+
continue;
|
|
12845
12893
|
}
|
|
12846
12894
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12847
12895
|
break;
|
|
@@ -12864,6 +12912,7 @@ export const Notification = {
|
|
|
12864
12912
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
12865
12913
|
channel_type: isSet(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
12866
12914
|
avatar_url: isSet(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
12915
|
+
channel: isSet(object.channel) ? ChannelDescription.fromJSON(object.channel) : undefined,
|
|
12867
12916
|
};
|
|
12868
12917
|
},
|
|
12869
12918
|
|
|
@@ -12902,6 +12951,9 @@ export const Notification = {
|
|
|
12902
12951
|
if (message.avatar_url !== "") {
|
|
12903
12952
|
obj.avatar_url = message.avatar_url;
|
|
12904
12953
|
}
|
|
12954
|
+
if (message.channel !== undefined) {
|
|
12955
|
+
obj.channel = ChannelDescription.toJSON(message.channel);
|
|
12956
|
+
}
|
|
12905
12957
|
return obj;
|
|
12906
12958
|
},
|
|
12907
12959
|
|
|
@@ -12921,6 +12973,9 @@ export const Notification = {
|
|
|
12921
12973
|
message.channel_id = object.channel_id ?? "";
|
|
12922
12974
|
message.channel_type = object.channel_type ?? 0;
|
|
12923
12975
|
message.avatar_url = object.avatar_url ?? "";
|
|
12976
|
+
message.channel = (object.channel !== undefined && object.channel !== null)
|
|
12977
|
+
? ChannelDescription.fromPartial(object.channel)
|
|
12978
|
+
: undefined;
|
|
12924
12979
|
return message;
|
|
12925
12980
|
},
|
|
12926
12981
|
};
|
|
@@ -19805,7 +19860,7 @@ export const PinMessagesList = {
|
|
|
19805
19860
|
};
|
|
19806
19861
|
|
|
19807
19862
|
function createBaseNotificationUserChannel(): NotificationUserChannel {
|
|
19808
|
-
return { id: "", notification_setting_type: 0, time_mute: undefined, active: 0 };
|
|
19863
|
+
return { id: "", notification_setting_type: 0, time_mute: undefined, active: 0, channel_id: "" };
|
|
19809
19864
|
}
|
|
19810
19865
|
|
|
19811
19866
|
export const NotificationUserChannel = {
|
|
@@ -19822,6 +19877,9 @@ export const NotificationUserChannel = {
|
|
|
19822
19877
|
if (message.active !== 0) {
|
|
19823
19878
|
writer.uint32(32).int32(message.active);
|
|
19824
19879
|
}
|
|
19880
|
+
if (message.channel_id !== "") {
|
|
19881
|
+
writer.uint32(42).string(message.channel_id);
|
|
19882
|
+
}
|
|
19825
19883
|
return writer;
|
|
19826
19884
|
},
|
|
19827
19885
|
|
|
@@ -19860,6 +19918,13 @@ export const NotificationUserChannel = {
|
|
|
19860
19918
|
|
|
19861
19919
|
message.active = reader.int32();
|
|
19862
19920
|
continue;
|
|
19921
|
+
case 5:
|
|
19922
|
+
if (tag !== 42) {
|
|
19923
|
+
break;
|
|
19924
|
+
}
|
|
19925
|
+
|
|
19926
|
+
message.channel_id = reader.string();
|
|
19927
|
+
continue;
|
|
19863
19928
|
}
|
|
19864
19929
|
if ((tag & 7) === 4 || tag === 0) {
|
|
19865
19930
|
break;
|
|
@@ -19877,6 +19942,7 @@ export const NotificationUserChannel = {
|
|
|
19877
19942
|
: 0,
|
|
19878
19943
|
time_mute: isSet(object.time_mute) ? fromJsonTimestamp(object.time_mute) : undefined,
|
|
19879
19944
|
active: isSet(object.active) ? globalThis.Number(object.active) : 0,
|
|
19945
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
19880
19946
|
};
|
|
19881
19947
|
},
|
|
19882
19948
|
|
|
@@ -19894,6 +19960,9 @@ export const NotificationUserChannel = {
|
|
|
19894
19960
|
if (message.active !== 0) {
|
|
19895
19961
|
obj.active = Math.round(message.active);
|
|
19896
19962
|
}
|
|
19963
|
+
if (message.channel_id !== "") {
|
|
19964
|
+
obj.channel_id = message.channel_id;
|
|
19965
|
+
}
|
|
19897
19966
|
return obj;
|
|
19898
19967
|
},
|
|
19899
19968
|
|
|
@@ -19906,6 +19975,7 @@ export const NotificationUserChannel = {
|
|
|
19906
19975
|
message.notification_setting_type = object.notification_setting_type ?? 0;
|
|
19907
19976
|
message.time_mute = object.time_mute ?? undefined;
|
|
19908
19977
|
message.active = object.active ?? 0;
|
|
19978
|
+
message.channel_id = object.channel_id ?? "";
|
|
19909
19979
|
return message;
|
|
19910
19980
|
},
|
|
19911
19981
|
};
|
|
@@ -37700,6 +37770,199 @@ export const DeleteSdTopicRequest = {
|
|
|
37700
37770
|
},
|
|
37701
37771
|
};
|
|
37702
37772
|
|
|
37773
|
+
function createBaseGetJoinMezonMeetRequest(): GetJoinMezonMeetRequest {
|
|
37774
|
+
return { channel_id: "", room_name: "" };
|
|
37775
|
+
}
|
|
37776
|
+
|
|
37777
|
+
export const GetJoinMezonMeetRequest = {
|
|
37778
|
+
encode(message: GetJoinMezonMeetRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37779
|
+
if (message.channel_id !== "") {
|
|
37780
|
+
writer.uint32(10).string(message.channel_id);
|
|
37781
|
+
}
|
|
37782
|
+
if (message.room_name !== "") {
|
|
37783
|
+
writer.uint32(18).string(message.room_name);
|
|
37784
|
+
}
|
|
37785
|
+
return writer;
|
|
37786
|
+
},
|
|
37787
|
+
|
|
37788
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetJoinMezonMeetRequest {
|
|
37789
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37790
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37791
|
+
const message = createBaseGetJoinMezonMeetRequest();
|
|
37792
|
+
while (reader.pos < end) {
|
|
37793
|
+
const tag = reader.uint32();
|
|
37794
|
+
switch (tag >>> 3) {
|
|
37795
|
+
case 1:
|
|
37796
|
+
if (tag !== 10) {
|
|
37797
|
+
break;
|
|
37798
|
+
}
|
|
37799
|
+
|
|
37800
|
+
message.channel_id = reader.string();
|
|
37801
|
+
continue;
|
|
37802
|
+
case 2:
|
|
37803
|
+
if (tag !== 18) {
|
|
37804
|
+
break;
|
|
37805
|
+
}
|
|
37806
|
+
|
|
37807
|
+
message.room_name = reader.string();
|
|
37808
|
+
continue;
|
|
37809
|
+
}
|
|
37810
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37811
|
+
break;
|
|
37812
|
+
}
|
|
37813
|
+
reader.skipType(tag & 7);
|
|
37814
|
+
}
|
|
37815
|
+
return message;
|
|
37816
|
+
},
|
|
37817
|
+
|
|
37818
|
+
fromJSON(object: any): GetJoinMezonMeetRequest {
|
|
37819
|
+
return {
|
|
37820
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
37821
|
+
room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
|
|
37822
|
+
};
|
|
37823
|
+
},
|
|
37824
|
+
|
|
37825
|
+
toJSON(message: GetJoinMezonMeetRequest): unknown {
|
|
37826
|
+
const obj: any = {};
|
|
37827
|
+
if (message.channel_id !== "") {
|
|
37828
|
+
obj.channel_id = message.channel_id;
|
|
37829
|
+
}
|
|
37830
|
+
if (message.room_name !== "") {
|
|
37831
|
+
obj.room_name = message.room_name;
|
|
37832
|
+
}
|
|
37833
|
+
return obj;
|
|
37834
|
+
},
|
|
37835
|
+
|
|
37836
|
+
create<I extends Exact<DeepPartial<GetJoinMezonMeetRequest>, I>>(base?: I): GetJoinMezonMeetRequest {
|
|
37837
|
+
return GetJoinMezonMeetRequest.fromPartial(base ?? ({} as any));
|
|
37838
|
+
},
|
|
37839
|
+
fromPartial<I extends Exact<DeepPartial<GetJoinMezonMeetRequest>, I>>(object: I): GetJoinMezonMeetRequest {
|
|
37840
|
+
const message = createBaseGetJoinMezonMeetRequest();
|
|
37841
|
+
message.channel_id = object.channel_id ?? "";
|
|
37842
|
+
message.room_name = object.room_name ?? "";
|
|
37843
|
+
return message;
|
|
37844
|
+
},
|
|
37845
|
+
};
|
|
37846
|
+
|
|
37847
|
+
function createBaseGetJoinMezonMeetResponse(): GetJoinMezonMeetResponse {
|
|
37848
|
+
return { channel_id: "", user_id: "", user_name: "", room_name: "", token: "" };
|
|
37849
|
+
}
|
|
37850
|
+
|
|
37851
|
+
export const GetJoinMezonMeetResponse = {
|
|
37852
|
+
encode(message: GetJoinMezonMeetResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37853
|
+
if (message.channel_id !== "") {
|
|
37854
|
+
writer.uint32(10).string(message.channel_id);
|
|
37855
|
+
}
|
|
37856
|
+
if (message.user_id !== "") {
|
|
37857
|
+
writer.uint32(18).string(message.user_id);
|
|
37858
|
+
}
|
|
37859
|
+
if (message.user_name !== "") {
|
|
37860
|
+
writer.uint32(26).string(message.user_name);
|
|
37861
|
+
}
|
|
37862
|
+
if (message.room_name !== "") {
|
|
37863
|
+
writer.uint32(34).string(message.room_name);
|
|
37864
|
+
}
|
|
37865
|
+
if (message.token !== "") {
|
|
37866
|
+
writer.uint32(42).string(message.token);
|
|
37867
|
+
}
|
|
37868
|
+
return writer;
|
|
37869
|
+
},
|
|
37870
|
+
|
|
37871
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetJoinMezonMeetResponse {
|
|
37872
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37873
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37874
|
+
const message = createBaseGetJoinMezonMeetResponse();
|
|
37875
|
+
while (reader.pos < end) {
|
|
37876
|
+
const tag = reader.uint32();
|
|
37877
|
+
switch (tag >>> 3) {
|
|
37878
|
+
case 1:
|
|
37879
|
+
if (tag !== 10) {
|
|
37880
|
+
break;
|
|
37881
|
+
}
|
|
37882
|
+
|
|
37883
|
+
message.channel_id = reader.string();
|
|
37884
|
+
continue;
|
|
37885
|
+
case 2:
|
|
37886
|
+
if (tag !== 18) {
|
|
37887
|
+
break;
|
|
37888
|
+
}
|
|
37889
|
+
|
|
37890
|
+
message.user_id = reader.string();
|
|
37891
|
+
continue;
|
|
37892
|
+
case 3:
|
|
37893
|
+
if (tag !== 26) {
|
|
37894
|
+
break;
|
|
37895
|
+
}
|
|
37896
|
+
|
|
37897
|
+
message.user_name = reader.string();
|
|
37898
|
+
continue;
|
|
37899
|
+
case 4:
|
|
37900
|
+
if (tag !== 34) {
|
|
37901
|
+
break;
|
|
37902
|
+
}
|
|
37903
|
+
|
|
37904
|
+
message.room_name = reader.string();
|
|
37905
|
+
continue;
|
|
37906
|
+
case 5:
|
|
37907
|
+
if (tag !== 42) {
|
|
37908
|
+
break;
|
|
37909
|
+
}
|
|
37910
|
+
|
|
37911
|
+
message.token = reader.string();
|
|
37912
|
+
continue;
|
|
37913
|
+
}
|
|
37914
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37915
|
+
break;
|
|
37916
|
+
}
|
|
37917
|
+
reader.skipType(tag & 7);
|
|
37918
|
+
}
|
|
37919
|
+
return message;
|
|
37920
|
+
},
|
|
37921
|
+
|
|
37922
|
+
fromJSON(object: any): GetJoinMezonMeetResponse {
|
|
37923
|
+
return {
|
|
37924
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
37925
|
+
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
37926
|
+
user_name: isSet(object.user_name) ? globalThis.String(object.user_name) : "",
|
|
37927
|
+
room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
|
|
37928
|
+
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
37929
|
+
};
|
|
37930
|
+
},
|
|
37931
|
+
|
|
37932
|
+
toJSON(message: GetJoinMezonMeetResponse): unknown {
|
|
37933
|
+
const obj: any = {};
|
|
37934
|
+
if (message.channel_id !== "") {
|
|
37935
|
+
obj.channel_id = message.channel_id;
|
|
37936
|
+
}
|
|
37937
|
+
if (message.user_id !== "") {
|
|
37938
|
+
obj.user_id = message.user_id;
|
|
37939
|
+
}
|
|
37940
|
+
if (message.user_name !== "") {
|
|
37941
|
+
obj.user_name = message.user_name;
|
|
37942
|
+
}
|
|
37943
|
+
if (message.room_name !== "") {
|
|
37944
|
+
obj.room_name = message.room_name;
|
|
37945
|
+
}
|
|
37946
|
+
if (message.token !== "") {
|
|
37947
|
+
obj.token = message.token;
|
|
37948
|
+
}
|
|
37949
|
+
return obj;
|
|
37950
|
+
},
|
|
37951
|
+
|
|
37952
|
+
create<I extends Exact<DeepPartial<GetJoinMezonMeetResponse>, I>>(base?: I): GetJoinMezonMeetResponse {
|
|
37953
|
+
return GetJoinMezonMeetResponse.fromPartial(base ?? ({} as any));
|
|
37954
|
+
},
|
|
37955
|
+
fromPartial<I extends Exact<DeepPartial<GetJoinMezonMeetResponse>, I>>(object: I): GetJoinMezonMeetResponse {
|
|
37956
|
+
const message = createBaseGetJoinMezonMeetResponse();
|
|
37957
|
+
message.channel_id = object.channel_id ?? "";
|
|
37958
|
+
message.user_id = object.user_id ?? "";
|
|
37959
|
+
message.user_name = object.user_name ?? "";
|
|
37960
|
+
message.room_name = object.room_name ?? "";
|
|
37961
|
+
message.token = object.token ?? "";
|
|
37962
|
+
return message;
|
|
37963
|
+
},
|
|
37964
|
+
};
|
|
37965
|
+
|
|
37703
37966
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
37704
37967
|
if ((globalThis as any).Buffer) {
|
|
37705
37968
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|