mezon-js-protobuf 1.6.50 → 1.6.52
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 +51 -4
- package/dist/mezon-js-protobuf/api/api.d.ts +22 -0
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -1044,7 +1044,11 @@ export interface ChannelAttachment {
|
|
|
1044
1044
|
/** uploader */
|
|
1045
1045
|
uploader: string;
|
|
1046
1046
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was created. */
|
|
1047
|
-
create_time:
|
|
1047
|
+
create_time:
|
|
1048
|
+
| Date
|
|
1049
|
+
| undefined;
|
|
1050
|
+
/** message id. */
|
|
1051
|
+
message_id: string;
|
|
1048
1052
|
}
|
|
1049
1053
|
|
|
1050
1054
|
/** channel attachment list */
|
|
@@ -1150,7 +1154,11 @@ export interface ListChannelMessagesRequest {
|
|
|
1150
1154
|
| number
|
|
1151
1155
|
| undefined;
|
|
1152
1156
|
/** True if listing should be older messages to newer, false if reverse. */
|
|
1153
|
-
direction:
|
|
1157
|
+
direction:
|
|
1158
|
+
| number
|
|
1159
|
+
| undefined;
|
|
1160
|
+
/** */
|
|
1161
|
+
topic_id: string;
|
|
1154
1162
|
}
|
|
1155
1163
|
|
|
1156
1164
|
/** List friends for a user. */
|
|
@@ -10613,7 +10621,16 @@ export const VoiceChannelUserList = {
|
|
|
10613
10621
|
};
|
|
10614
10622
|
|
|
10615
10623
|
function createBaseChannelAttachment(): ChannelAttachment {
|
|
10616
|
-
return {
|
|
10624
|
+
return {
|
|
10625
|
+
id: "",
|
|
10626
|
+
filename: "",
|
|
10627
|
+
filetype: "",
|
|
10628
|
+
filesize: "",
|
|
10629
|
+
url: "",
|
|
10630
|
+
uploader: "",
|
|
10631
|
+
create_time: undefined,
|
|
10632
|
+
message_id: "",
|
|
10633
|
+
};
|
|
10617
10634
|
}
|
|
10618
10635
|
|
|
10619
10636
|
export const ChannelAttachment = {
|
|
@@ -10639,6 +10656,9 @@ export const ChannelAttachment = {
|
|
|
10639
10656
|
if (message.create_time !== undefined) {
|
|
10640
10657
|
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(58).fork()).ldelim();
|
|
10641
10658
|
}
|
|
10659
|
+
if (message.message_id !== "") {
|
|
10660
|
+
writer.uint32(66).string(message.message_id);
|
|
10661
|
+
}
|
|
10642
10662
|
return writer;
|
|
10643
10663
|
},
|
|
10644
10664
|
|
|
@@ -10698,6 +10718,13 @@ export const ChannelAttachment = {
|
|
|
10698
10718
|
|
|
10699
10719
|
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
10700
10720
|
continue;
|
|
10721
|
+
case 8:
|
|
10722
|
+
if (tag !== 66) {
|
|
10723
|
+
break;
|
|
10724
|
+
}
|
|
10725
|
+
|
|
10726
|
+
message.message_id = reader.string();
|
|
10727
|
+
continue;
|
|
10701
10728
|
}
|
|
10702
10729
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10703
10730
|
break;
|
|
@@ -10716,6 +10743,7 @@ export const ChannelAttachment = {
|
|
|
10716
10743
|
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
10717
10744
|
uploader: isSet(object.uploader) ? globalThis.String(object.uploader) : "",
|
|
10718
10745
|
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
10746
|
+
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
10719
10747
|
};
|
|
10720
10748
|
},
|
|
10721
10749
|
|
|
@@ -10742,6 +10770,9 @@ export const ChannelAttachment = {
|
|
|
10742
10770
|
if (message.create_time !== undefined) {
|
|
10743
10771
|
obj.create_time = message.create_time.toISOString();
|
|
10744
10772
|
}
|
|
10773
|
+
if (message.message_id !== "") {
|
|
10774
|
+
obj.message_id = message.message_id;
|
|
10775
|
+
}
|
|
10745
10776
|
return obj;
|
|
10746
10777
|
},
|
|
10747
10778
|
|
|
@@ -10757,6 +10788,7 @@ export const ChannelAttachment = {
|
|
|
10757
10788
|
message.url = object.url ?? "";
|
|
10758
10789
|
message.uploader = object.uploader ?? "";
|
|
10759
10790
|
message.create_time = object.create_time ?? undefined;
|
|
10791
|
+
message.message_id = object.message_id ?? "";
|
|
10760
10792
|
return message;
|
|
10761
10793
|
},
|
|
10762
10794
|
};
|
|
@@ -11515,7 +11547,7 @@ export const LinkSteamRequest = {
|
|
|
11515
11547
|
};
|
|
11516
11548
|
|
|
11517
11549
|
function createBaseListChannelMessagesRequest(): ListChannelMessagesRequest {
|
|
11518
|
-
return { clan_id: "", channel_id: "", message_id: "", limit: undefined, direction: undefined };
|
|
11550
|
+
return { clan_id: "", channel_id: "", message_id: "", limit: undefined, direction: undefined, topic_id: "" };
|
|
11519
11551
|
}
|
|
11520
11552
|
|
|
11521
11553
|
export const ListChannelMessagesRequest = {
|
|
@@ -11535,6 +11567,9 @@ export const ListChannelMessagesRequest = {
|
|
|
11535
11567
|
if (message.direction !== undefined) {
|
|
11536
11568
|
Int32Value.encode({ value: message.direction! }, writer.uint32(42).fork()).ldelim();
|
|
11537
11569
|
}
|
|
11570
|
+
if (message.topic_id !== "") {
|
|
11571
|
+
writer.uint32(50).string(message.topic_id);
|
|
11572
|
+
}
|
|
11538
11573
|
return writer;
|
|
11539
11574
|
},
|
|
11540
11575
|
|
|
@@ -11580,6 +11615,13 @@ export const ListChannelMessagesRequest = {
|
|
|
11580
11615
|
|
|
11581
11616
|
message.direction = Int32Value.decode(reader, reader.uint32()).value;
|
|
11582
11617
|
continue;
|
|
11618
|
+
case 6:
|
|
11619
|
+
if (tag !== 50) {
|
|
11620
|
+
break;
|
|
11621
|
+
}
|
|
11622
|
+
|
|
11623
|
+
message.topic_id = reader.string();
|
|
11624
|
+
continue;
|
|
11583
11625
|
}
|
|
11584
11626
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11585
11627
|
break;
|
|
@@ -11596,6 +11638,7 @@ export const ListChannelMessagesRequest = {
|
|
|
11596
11638
|
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
11597
11639
|
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
11598
11640
|
direction: isSet(object.direction) ? Number(object.direction) : undefined,
|
|
11641
|
+
topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
11599
11642
|
};
|
|
11600
11643
|
},
|
|
11601
11644
|
|
|
@@ -11616,6 +11659,9 @@ export const ListChannelMessagesRequest = {
|
|
|
11616
11659
|
if (message.direction !== undefined) {
|
|
11617
11660
|
obj.direction = message.direction;
|
|
11618
11661
|
}
|
|
11662
|
+
if (message.topic_id !== "") {
|
|
11663
|
+
obj.topic_id = message.topic_id;
|
|
11664
|
+
}
|
|
11619
11665
|
return obj;
|
|
11620
11666
|
},
|
|
11621
11667
|
|
|
@@ -11629,6 +11675,7 @@ export const ListChannelMessagesRequest = {
|
|
|
11629
11675
|
message.message_id = object.message_id ?? "";
|
|
11630
11676
|
message.limit = object.limit ?? undefined;
|
|
11631
11677
|
message.direction = object.direction ?? undefined;
|
|
11678
|
+
message.topic_id = object.topic_id ?? "";
|
|
11632
11679
|
return message;
|
|
11633
11680
|
},
|
|
11634
11681
|
};
|
|
@@ -747,6 +747,8 @@ export interface ChannelAttachment {
|
|
|
747
747
|
uploader: string;
|
|
748
748
|
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was created. */
|
|
749
749
|
create_time: Date | undefined;
|
|
750
|
+
/** message id. */
|
|
751
|
+
message_id: string;
|
|
750
752
|
}
|
|
751
753
|
/** channel attachment list */
|
|
752
754
|
export interface ChannelAttachmentList {
|
|
@@ -831,6 +833,8 @@ export interface ListChannelMessagesRequest {
|
|
|
831
833
|
limit: number | undefined;
|
|
832
834
|
/** True if listing should be older messages to newer, false if reverse. */
|
|
833
835
|
direction: number | undefined;
|
|
836
|
+
/** */
|
|
837
|
+
topic_id: string;
|
|
834
838
|
}
|
|
835
839
|
/** List friends for a user. */
|
|
836
840
|
export interface ListFriendsRequest {
|
|
@@ -6989,6 +6993,7 @@ export declare const ChannelAttachment: {
|
|
|
6989
6993
|
url?: string | undefined;
|
|
6990
6994
|
uploader?: string | undefined;
|
|
6991
6995
|
create_time?: Date | undefined;
|
|
6996
|
+
message_id?: string | undefined;
|
|
6992
6997
|
} & {
|
|
6993
6998
|
id?: string | undefined;
|
|
6994
6999
|
filename?: string | undefined;
|
|
@@ -6997,6 +7002,7 @@ export declare const ChannelAttachment: {
|
|
|
6997
7002
|
url?: string | undefined;
|
|
6998
7003
|
uploader?: string | undefined;
|
|
6999
7004
|
create_time?: Date | undefined;
|
|
7005
|
+
message_id?: string | undefined;
|
|
7000
7006
|
} & { [K in Exclude<keyof I, keyof ChannelAttachment>]: never; }>(base?: I | undefined): ChannelAttachment;
|
|
7001
7007
|
fromPartial<I_1 extends {
|
|
7002
7008
|
id?: string | undefined;
|
|
@@ -7006,6 +7012,7 @@ export declare const ChannelAttachment: {
|
|
|
7006
7012
|
url?: string | undefined;
|
|
7007
7013
|
uploader?: string | undefined;
|
|
7008
7014
|
create_time?: Date | undefined;
|
|
7015
|
+
message_id?: string | undefined;
|
|
7009
7016
|
} & {
|
|
7010
7017
|
id?: string | undefined;
|
|
7011
7018
|
filename?: string | undefined;
|
|
@@ -7014,6 +7021,7 @@ export declare const ChannelAttachment: {
|
|
|
7014
7021
|
url?: string | undefined;
|
|
7015
7022
|
uploader?: string | undefined;
|
|
7016
7023
|
create_time?: Date | undefined;
|
|
7024
|
+
message_id?: string | undefined;
|
|
7017
7025
|
} & { [K_1 in Exclude<keyof I_1, keyof ChannelAttachment>]: never; }>(object: I_1): ChannelAttachment;
|
|
7018
7026
|
};
|
|
7019
7027
|
export declare const ChannelAttachmentList: {
|
|
@@ -7030,6 +7038,7 @@ export declare const ChannelAttachmentList: {
|
|
|
7030
7038
|
url?: string | undefined;
|
|
7031
7039
|
uploader?: string | undefined;
|
|
7032
7040
|
create_time?: Date | undefined;
|
|
7041
|
+
message_id?: string | undefined;
|
|
7033
7042
|
}[] | undefined;
|
|
7034
7043
|
} & {
|
|
7035
7044
|
attachments?: ({
|
|
@@ -7040,6 +7049,7 @@ export declare const ChannelAttachmentList: {
|
|
|
7040
7049
|
url?: string | undefined;
|
|
7041
7050
|
uploader?: string | undefined;
|
|
7042
7051
|
create_time?: Date | undefined;
|
|
7052
|
+
message_id?: string | undefined;
|
|
7043
7053
|
}[] & ({
|
|
7044
7054
|
id?: string | undefined;
|
|
7045
7055
|
filename?: string | undefined;
|
|
@@ -7048,6 +7058,7 @@ export declare const ChannelAttachmentList: {
|
|
|
7048
7058
|
url?: string | undefined;
|
|
7049
7059
|
uploader?: string | undefined;
|
|
7050
7060
|
create_time?: Date | undefined;
|
|
7061
|
+
message_id?: string | undefined;
|
|
7051
7062
|
} & {
|
|
7052
7063
|
id?: string | undefined;
|
|
7053
7064
|
filename?: string | undefined;
|
|
@@ -7056,6 +7067,7 @@ export declare const ChannelAttachmentList: {
|
|
|
7056
7067
|
url?: string | undefined;
|
|
7057
7068
|
uploader?: string | undefined;
|
|
7058
7069
|
create_time?: Date | undefined;
|
|
7070
|
+
message_id?: string | undefined;
|
|
7059
7071
|
} & { [K in Exclude<keyof I["attachments"][number], keyof ChannelAttachment>]: never; })[] & { [K_1 in Exclude<keyof I["attachments"], keyof {
|
|
7060
7072
|
id?: string | undefined;
|
|
7061
7073
|
filename?: string | undefined;
|
|
@@ -7064,6 +7076,7 @@ export declare const ChannelAttachmentList: {
|
|
|
7064
7076
|
url?: string | undefined;
|
|
7065
7077
|
uploader?: string | undefined;
|
|
7066
7078
|
create_time?: Date | undefined;
|
|
7079
|
+
message_id?: string | undefined;
|
|
7067
7080
|
}[]>]: never; }) | undefined;
|
|
7068
7081
|
} & { [K_2 in Exclude<keyof I, "attachments">]: never; }>(base?: I | undefined): ChannelAttachmentList;
|
|
7069
7082
|
fromPartial<I_1 extends {
|
|
@@ -7075,6 +7088,7 @@ export declare const ChannelAttachmentList: {
|
|
|
7075
7088
|
url?: string | undefined;
|
|
7076
7089
|
uploader?: string | undefined;
|
|
7077
7090
|
create_time?: Date | undefined;
|
|
7091
|
+
message_id?: string | undefined;
|
|
7078
7092
|
}[] | undefined;
|
|
7079
7093
|
} & {
|
|
7080
7094
|
attachments?: ({
|
|
@@ -7085,6 +7099,7 @@ export declare const ChannelAttachmentList: {
|
|
|
7085
7099
|
url?: string | undefined;
|
|
7086
7100
|
uploader?: string | undefined;
|
|
7087
7101
|
create_time?: Date | undefined;
|
|
7102
|
+
message_id?: string | undefined;
|
|
7088
7103
|
}[] & ({
|
|
7089
7104
|
id?: string | undefined;
|
|
7090
7105
|
filename?: string | undefined;
|
|
@@ -7093,6 +7108,7 @@ export declare const ChannelAttachmentList: {
|
|
|
7093
7108
|
url?: string | undefined;
|
|
7094
7109
|
uploader?: string | undefined;
|
|
7095
7110
|
create_time?: Date | undefined;
|
|
7111
|
+
message_id?: string | undefined;
|
|
7096
7112
|
} & {
|
|
7097
7113
|
id?: string | undefined;
|
|
7098
7114
|
filename?: string | undefined;
|
|
@@ -7101,6 +7117,7 @@ export declare const ChannelAttachmentList: {
|
|
|
7101
7117
|
url?: string | undefined;
|
|
7102
7118
|
uploader?: string | undefined;
|
|
7103
7119
|
create_time?: Date | undefined;
|
|
7120
|
+
message_id?: string | undefined;
|
|
7104
7121
|
} & { [K_3 in Exclude<keyof I_1["attachments"][number], keyof ChannelAttachment>]: never; })[] & { [K_4 in Exclude<keyof I_1["attachments"], keyof {
|
|
7105
7122
|
id?: string | undefined;
|
|
7106
7123
|
filename?: string | undefined;
|
|
@@ -7109,6 +7126,7 @@ export declare const ChannelAttachmentList: {
|
|
|
7109
7126
|
url?: string | undefined;
|
|
7110
7127
|
uploader?: string | undefined;
|
|
7111
7128
|
create_time?: Date | undefined;
|
|
7129
|
+
message_id?: string | undefined;
|
|
7112
7130
|
}[]>]: never; }) | undefined;
|
|
7113
7131
|
} & { [K_5 in Exclude<keyof I_1, "attachments">]: never; }>(object: I_1): ChannelAttachmentList;
|
|
7114
7132
|
};
|
|
@@ -7899,12 +7917,14 @@ export declare const ListChannelMessagesRequest: {
|
|
|
7899
7917
|
message_id?: string | undefined;
|
|
7900
7918
|
limit?: number | undefined;
|
|
7901
7919
|
direction?: number | undefined;
|
|
7920
|
+
topic_id?: string | undefined;
|
|
7902
7921
|
} & {
|
|
7903
7922
|
clan_id?: string | undefined;
|
|
7904
7923
|
channel_id?: string | undefined;
|
|
7905
7924
|
message_id?: string | undefined;
|
|
7906
7925
|
limit?: number | undefined;
|
|
7907
7926
|
direction?: number | undefined;
|
|
7927
|
+
topic_id?: string | undefined;
|
|
7908
7928
|
} & { [K in Exclude<keyof I, keyof ListChannelMessagesRequest>]: never; }>(base?: I | undefined): ListChannelMessagesRequest;
|
|
7909
7929
|
fromPartial<I_1 extends {
|
|
7910
7930
|
clan_id?: string | undefined;
|
|
@@ -7912,12 +7932,14 @@ export declare const ListChannelMessagesRequest: {
|
|
|
7912
7932
|
message_id?: string | undefined;
|
|
7913
7933
|
limit?: number | undefined;
|
|
7914
7934
|
direction?: number | undefined;
|
|
7935
|
+
topic_id?: string | undefined;
|
|
7915
7936
|
} & {
|
|
7916
7937
|
clan_id?: string | undefined;
|
|
7917
7938
|
channel_id?: string | undefined;
|
|
7918
7939
|
message_id?: string | undefined;
|
|
7919
7940
|
limit?: number | undefined;
|
|
7920
7941
|
direction?: number | undefined;
|
|
7942
|
+
topic_id?: string | undefined;
|
|
7921
7943
|
} & { [K_1 in Exclude<keyof I_1, keyof ListChannelMessagesRequest>]: never; }>(object: I_1): ListChannelMessagesRequest;
|
|
7922
7944
|
};
|
|
7923
7945
|
export declare const ListFriendsRequest: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.52",
|
|
4
4
|
"description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
|
|
5
5
|
"main": "dist/mezon-js-protobuf.cjs.js",
|
|
6
6
|
"module": "dist/mezon-js-protobuf.esm.mjs",
|