mezon-js-protobuf 1.4.60 → 1.4.62
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 +36 -2
- package/dist/mezon-js-protobuf/api/api.d.ts +28 -2
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -1851,6 +1851,8 @@ export interface ChannelDescription {
|
|
|
1851
1851
|
active: number;
|
|
1852
1852
|
/** last pin message */
|
|
1853
1853
|
last_pin_message: string;
|
|
1854
|
+
/** the usernames */
|
|
1855
|
+
usernames: string;
|
|
1854
1856
|
}
|
|
1855
1857
|
|
|
1856
1858
|
/** direct channel void */
|
|
@@ -2577,6 +2579,8 @@ export interface WebhookListResponse {
|
|
|
2577
2579
|
|
|
2578
2580
|
export interface WebhookGenerateResponse {
|
|
2579
2581
|
url: string;
|
|
2582
|
+
hook_name: string;
|
|
2583
|
+
channel_id: string;
|
|
2580
2584
|
}
|
|
2581
2585
|
|
|
2582
2586
|
function createBaseAccount(): Account {
|
|
@@ -12777,6 +12781,7 @@ function createBaseChannelDescription(): ChannelDescription {
|
|
|
12777
12781
|
count_mess_unread: 0,
|
|
12778
12782
|
active: 0,
|
|
12779
12783
|
last_pin_message: "",
|
|
12784
|
+
usernames: "",
|
|
12780
12785
|
};
|
|
12781
12786
|
}
|
|
12782
12787
|
|
|
@@ -12836,6 +12841,9 @@ export const ChannelDescription = {
|
|
|
12836
12841
|
if (message.last_pin_message !== "") {
|
|
12837
12842
|
writer.uint32(146).string(message.last_pin_message);
|
|
12838
12843
|
}
|
|
12844
|
+
if (message.usernames !== "") {
|
|
12845
|
+
writer.uint32(154).string(message.usernames);
|
|
12846
|
+
}
|
|
12839
12847
|
return writer;
|
|
12840
12848
|
},
|
|
12841
12849
|
|
|
@@ -12900,6 +12908,9 @@ export const ChannelDescription = {
|
|
|
12900
12908
|
case 18:
|
|
12901
12909
|
message.last_pin_message = reader.string();
|
|
12902
12910
|
break;
|
|
12911
|
+
case 19:
|
|
12912
|
+
message.usernames = reader.string();
|
|
12913
|
+
break;
|
|
12903
12914
|
default:
|
|
12904
12915
|
reader.skipType(tag & 7);
|
|
12905
12916
|
break;
|
|
@@ -12932,6 +12943,7 @@ export const ChannelDescription = {
|
|
|
12932
12943
|
count_mess_unread: isSet(object.count_mess_unread) ? Number(object.count_mess_unread) : 0,
|
|
12933
12944
|
active: isSet(object.active) ? Number(object.active) : 0,
|
|
12934
12945
|
last_pin_message: isSet(object.last_pin_message) ? String(object.last_pin_message) : "",
|
|
12946
|
+
usernames: isSet(object.usernames) ? String(object.usernames) : "",
|
|
12935
12947
|
};
|
|
12936
12948
|
},
|
|
12937
12949
|
|
|
@@ -12967,6 +12979,7 @@ export const ChannelDescription = {
|
|
|
12967
12979
|
message.count_mess_unread !== undefined && (obj.count_mess_unread = Math.round(message.count_mess_unread));
|
|
12968
12980
|
message.active !== undefined && (obj.active = Math.round(message.active));
|
|
12969
12981
|
message.last_pin_message !== undefined && (obj.last_pin_message = message.last_pin_message);
|
|
12982
|
+
message.usernames !== undefined && (obj.usernames = message.usernames);
|
|
12970
12983
|
return obj;
|
|
12971
12984
|
},
|
|
12972
12985
|
|
|
@@ -12998,6 +13011,7 @@ export const ChannelDescription = {
|
|
|
12998
13011
|
message.count_mess_unread = object.count_mess_unread ?? 0;
|
|
12999
13012
|
message.active = object.active ?? 0;
|
|
13000
13013
|
message.last_pin_message = object.last_pin_message ?? "";
|
|
13014
|
+
message.usernames = object.usernames ?? "";
|
|
13001
13015
|
return message;
|
|
13002
13016
|
},
|
|
13003
13017
|
};
|
|
@@ -19018,7 +19032,7 @@ export const WebhookListResponse = {
|
|
|
19018
19032
|
};
|
|
19019
19033
|
|
|
19020
19034
|
function createBaseWebhookGenerateResponse(): WebhookGenerateResponse {
|
|
19021
|
-
return { url: "" };
|
|
19035
|
+
return { url: "", hook_name: "", channel_id: "" };
|
|
19022
19036
|
}
|
|
19023
19037
|
|
|
19024
19038
|
export const WebhookGenerateResponse = {
|
|
@@ -19026,6 +19040,12 @@ export const WebhookGenerateResponse = {
|
|
|
19026
19040
|
if (message.url !== "") {
|
|
19027
19041
|
writer.uint32(10).string(message.url);
|
|
19028
19042
|
}
|
|
19043
|
+
if (message.hook_name !== "") {
|
|
19044
|
+
writer.uint32(18).string(message.hook_name);
|
|
19045
|
+
}
|
|
19046
|
+
if (message.channel_id !== "") {
|
|
19047
|
+
writer.uint32(26).string(message.channel_id);
|
|
19048
|
+
}
|
|
19029
19049
|
return writer;
|
|
19030
19050
|
},
|
|
19031
19051
|
|
|
@@ -19039,6 +19059,12 @@ export const WebhookGenerateResponse = {
|
|
|
19039
19059
|
case 1:
|
|
19040
19060
|
message.url = reader.string();
|
|
19041
19061
|
break;
|
|
19062
|
+
case 2:
|
|
19063
|
+
message.hook_name = reader.string();
|
|
19064
|
+
break;
|
|
19065
|
+
case 3:
|
|
19066
|
+
message.channel_id = reader.string();
|
|
19067
|
+
break;
|
|
19042
19068
|
default:
|
|
19043
19069
|
reader.skipType(tag & 7);
|
|
19044
19070
|
break;
|
|
@@ -19048,12 +19074,18 @@ export const WebhookGenerateResponse = {
|
|
|
19048
19074
|
},
|
|
19049
19075
|
|
|
19050
19076
|
fromJSON(object: any): WebhookGenerateResponse {
|
|
19051
|
-
return {
|
|
19077
|
+
return {
|
|
19078
|
+
url: isSet(object.url) ? String(object.url) : "",
|
|
19079
|
+
hook_name: isSet(object.hook_name) ? String(object.hook_name) : "",
|
|
19080
|
+
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
19081
|
+
};
|
|
19052
19082
|
},
|
|
19053
19083
|
|
|
19054
19084
|
toJSON(message: WebhookGenerateResponse): unknown {
|
|
19055
19085
|
const obj: any = {};
|
|
19056
19086
|
message.url !== undefined && (obj.url = message.url);
|
|
19087
|
+
message.hook_name !== undefined && (obj.hook_name = message.hook_name);
|
|
19088
|
+
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
19057
19089
|
return obj;
|
|
19058
19090
|
},
|
|
19059
19091
|
|
|
@@ -19064,6 +19096,8 @@ export const WebhookGenerateResponse = {
|
|
|
19064
19096
|
fromPartial<I extends Exact<DeepPartial<WebhookGenerateResponse>, I>>(object: I): WebhookGenerateResponse {
|
|
19065
19097
|
const message = createBaseWebhookGenerateResponse();
|
|
19066
19098
|
message.url = object.url ?? "";
|
|
19099
|
+
message.hook_name = object.hook_name ?? "";
|
|
19100
|
+
message.channel_id = object.channel_id ?? "";
|
|
19067
19101
|
return message;
|
|
19068
19102
|
},
|
|
19069
19103
|
};
|
|
@@ -1372,6 +1372,8 @@ export interface ChannelDescription {
|
|
|
1372
1372
|
active: number;
|
|
1373
1373
|
/** last pin message */
|
|
1374
1374
|
last_pin_message: string;
|
|
1375
|
+
/** the usernames */
|
|
1376
|
+
usernames: string;
|
|
1375
1377
|
}
|
|
1376
1378
|
/** direct channel void */
|
|
1377
1379
|
export interface DirectChannelVoice {
|
|
@@ -1997,6 +1999,8 @@ export interface WebhookListResponse {
|
|
|
1997
1999
|
}
|
|
1998
2000
|
export interface WebhookGenerateResponse {
|
|
1999
2001
|
url: string;
|
|
2002
|
+
hook_name: string;
|
|
2003
|
+
channel_id: string;
|
|
2000
2004
|
}
|
|
2001
2005
|
export declare const Account: {
|
|
2002
2006
|
encode(message: Account, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -9408,6 +9412,7 @@ export declare const ChannelDescription: {
|
|
|
9408
9412
|
count_mess_unread?: number | undefined;
|
|
9409
9413
|
active?: number | undefined;
|
|
9410
9414
|
last_pin_message?: string | undefined;
|
|
9415
|
+
usernames?: string | undefined;
|
|
9411
9416
|
} & {
|
|
9412
9417
|
clan_id?: string | undefined;
|
|
9413
9418
|
parrent_id?: string | undefined;
|
|
@@ -9463,6 +9468,7 @@ export declare const ChannelDescription: {
|
|
|
9463
9468
|
count_mess_unread?: number | undefined;
|
|
9464
9469
|
active?: number | undefined;
|
|
9465
9470
|
last_pin_message?: string | undefined;
|
|
9471
|
+
usernames?: string | undefined;
|
|
9466
9472
|
} & { [K_4 in Exclude<keyof I, keyof ChannelDescription>]: never; }>(base?: I | undefined): ChannelDescription;
|
|
9467
9473
|
fromPartial<I_1 extends {
|
|
9468
9474
|
clan_id?: string | undefined;
|
|
@@ -9501,6 +9507,7 @@ export declare const ChannelDescription: {
|
|
|
9501
9507
|
count_mess_unread?: number | undefined;
|
|
9502
9508
|
active?: number | undefined;
|
|
9503
9509
|
last_pin_message?: string | undefined;
|
|
9510
|
+
usernames?: string | undefined;
|
|
9504
9511
|
} & {
|
|
9505
9512
|
clan_id?: string | undefined;
|
|
9506
9513
|
parrent_id?: string | undefined;
|
|
@@ -9556,6 +9563,7 @@ export declare const ChannelDescription: {
|
|
|
9556
9563
|
count_mess_unread?: number | undefined;
|
|
9557
9564
|
active?: number | undefined;
|
|
9558
9565
|
last_pin_message?: string | undefined;
|
|
9566
|
+
usernames?: string | undefined;
|
|
9559
9567
|
} & { [K_9 in Exclude<keyof I_1, keyof ChannelDescription>]: never; }>(object: I_1): ChannelDescription;
|
|
9560
9568
|
};
|
|
9561
9569
|
export declare const DirectChannelVoice: {
|
|
@@ -9729,6 +9737,7 @@ export declare const ChannelDescList: {
|
|
|
9729
9737
|
count_mess_unread?: number | undefined;
|
|
9730
9738
|
active?: number | undefined;
|
|
9731
9739
|
last_pin_message?: string | undefined;
|
|
9740
|
+
usernames?: string | undefined;
|
|
9732
9741
|
}[] | undefined;
|
|
9733
9742
|
next_cursor?: string | undefined;
|
|
9734
9743
|
prev_cursor?: string | undefined;
|
|
@@ -9771,6 +9780,7 @@ export declare const ChannelDescList: {
|
|
|
9771
9780
|
count_mess_unread?: number | undefined;
|
|
9772
9781
|
active?: number | undefined;
|
|
9773
9782
|
last_pin_message?: string | undefined;
|
|
9783
|
+
usernames?: string | undefined;
|
|
9774
9784
|
}[] & ({
|
|
9775
9785
|
clan_id?: string | undefined;
|
|
9776
9786
|
parrent_id?: string | undefined;
|
|
@@ -9808,6 +9818,7 @@ export declare const ChannelDescList: {
|
|
|
9808
9818
|
count_mess_unread?: number | undefined;
|
|
9809
9819
|
active?: number | undefined;
|
|
9810
9820
|
last_pin_message?: string | undefined;
|
|
9821
|
+
usernames?: string | undefined;
|
|
9811
9822
|
} & {
|
|
9812
9823
|
clan_id?: string | undefined;
|
|
9813
9824
|
parrent_id?: string | undefined;
|
|
@@ -9863,6 +9874,7 @@ export declare const ChannelDescList: {
|
|
|
9863
9874
|
count_mess_unread?: number | undefined;
|
|
9864
9875
|
active?: number | undefined;
|
|
9865
9876
|
last_pin_message?: string | undefined;
|
|
9877
|
+
usernames?: string | undefined;
|
|
9866
9878
|
} & { [K_4 in Exclude<keyof I["channeldesc"][number], keyof ChannelDescription>]: never; })[] & { [K_5 in Exclude<keyof I["channeldesc"], keyof {
|
|
9867
9879
|
clan_id?: string | undefined;
|
|
9868
9880
|
parrent_id?: string | undefined;
|
|
@@ -9900,6 +9912,7 @@ export declare const ChannelDescList: {
|
|
|
9900
9912
|
count_mess_unread?: number | undefined;
|
|
9901
9913
|
active?: number | undefined;
|
|
9902
9914
|
last_pin_message?: string | undefined;
|
|
9915
|
+
usernames?: string | undefined;
|
|
9903
9916
|
}[]>]: never; }) | undefined;
|
|
9904
9917
|
next_cursor?: string | undefined;
|
|
9905
9918
|
prev_cursor?: string | undefined;
|
|
@@ -9943,6 +9956,7 @@ export declare const ChannelDescList: {
|
|
|
9943
9956
|
count_mess_unread?: number | undefined;
|
|
9944
9957
|
active?: number | undefined;
|
|
9945
9958
|
last_pin_message?: string | undefined;
|
|
9959
|
+
usernames?: string | undefined;
|
|
9946
9960
|
}[] | undefined;
|
|
9947
9961
|
next_cursor?: string | undefined;
|
|
9948
9962
|
prev_cursor?: string | undefined;
|
|
@@ -9985,6 +9999,7 @@ export declare const ChannelDescList: {
|
|
|
9985
9999
|
count_mess_unread?: number | undefined;
|
|
9986
10000
|
active?: number | undefined;
|
|
9987
10001
|
last_pin_message?: string | undefined;
|
|
10002
|
+
usernames?: string | undefined;
|
|
9988
10003
|
}[] & ({
|
|
9989
10004
|
clan_id?: string | undefined;
|
|
9990
10005
|
parrent_id?: string | undefined;
|
|
@@ -10022,6 +10037,7 @@ export declare const ChannelDescList: {
|
|
|
10022
10037
|
count_mess_unread?: number | undefined;
|
|
10023
10038
|
active?: number | undefined;
|
|
10024
10039
|
last_pin_message?: string | undefined;
|
|
10040
|
+
usernames?: string | undefined;
|
|
10025
10041
|
} & {
|
|
10026
10042
|
clan_id?: string | undefined;
|
|
10027
10043
|
parrent_id?: string | undefined;
|
|
@@ -10077,6 +10093,7 @@ export declare const ChannelDescList: {
|
|
|
10077
10093
|
count_mess_unread?: number | undefined;
|
|
10078
10094
|
active?: number | undefined;
|
|
10079
10095
|
last_pin_message?: string | undefined;
|
|
10096
|
+
usernames?: string | undefined;
|
|
10080
10097
|
} & { [K_11 in Exclude<keyof I_1["channeldesc"][number], keyof ChannelDescription>]: never; })[] & { [K_12 in Exclude<keyof I_1["channeldesc"], keyof {
|
|
10081
10098
|
clan_id?: string | undefined;
|
|
10082
10099
|
parrent_id?: string | undefined;
|
|
@@ -10114,6 +10131,7 @@ export declare const ChannelDescList: {
|
|
|
10114
10131
|
count_mess_unread?: number | undefined;
|
|
10115
10132
|
active?: number | undefined;
|
|
10116
10133
|
last_pin_message?: string | undefined;
|
|
10134
|
+
usernames?: string | undefined;
|
|
10117
10135
|
}[]>]: never; }) | undefined;
|
|
10118
10136
|
next_cursor?: string | undefined;
|
|
10119
10137
|
prev_cursor?: string | undefined;
|
|
@@ -13583,14 +13601,22 @@ export declare const WebhookGenerateResponse: {
|
|
|
13583
13601
|
toJSON(message: WebhookGenerateResponse): unknown;
|
|
13584
13602
|
create<I extends {
|
|
13585
13603
|
url?: string | undefined;
|
|
13604
|
+
hook_name?: string | undefined;
|
|
13605
|
+
channel_id?: string | undefined;
|
|
13586
13606
|
} & {
|
|
13587
13607
|
url?: string | undefined;
|
|
13588
|
-
|
|
13608
|
+
hook_name?: string | undefined;
|
|
13609
|
+
channel_id?: string | undefined;
|
|
13610
|
+
} & { [K in Exclude<keyof I, keyof WebhookGenerateResponse>]: never; }>(base?: I | undefined): WebhookGenerateResponse;
|
|
13589
13611
|
fromPartial<I_1 extends {
|
|
13590
13612
|
url?: string | undefined;
|
|
13613
|
+
hook_name?: string | undefined;
|
|
13614
|
+
channel_id?: string | undefined;
|
|
13591
13615
|
} & {
|
|
13592
13616
|
url?: string | undefined;
|
|
13593
|
-
|
|
13617
|
+
hook_name?: string | undefined;
|
|
13618
|
+
channel_id?: string | undefined;
|
|
13619
|
+
} & { [K_1 in Exclude<keyof I_1, keyof WebhookGenerateResponse>]: never; }>(object: I_1): WebhookGenerateResponse;
|
|
13594
13620
|
};
|
|
13595
13621
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
13596
13622
|
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.62",
|
|
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",
|