mezon-js-protobuf 1.4.18 → 1.4.19
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 +82 -27
- package/dist/mezon-js-protobuf/api/api.d.ts +33 -32
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -1822,13 +1822,7 @@ export interface ChannelDescription {
|
|
|
1822
1822
|
| ChannelMessageHeader
|
|
1823
1823
|
| undefined;
|
|
1824
1824
|
/** last seen message id */
|
|
1825
|
-
last_seen_message:
|
|
1826
|
-
| ChannelMessageHeader
|
|
1827
|
-
| undefined;
|
|
1828
|
-
/** meeting uri */
|
|
1829
|
-
meeting_uri: string;
|
|
1830
|
-
/** meeting code */
|
|
1831
|
-
meeting_code: string;
|
|
1825
|
+
last_seen_message: ChannelMessageHeader | undefined;
|
|
1832
1826
|
}
|
|
1833
1827
|
|
|
1834
1828
|
/** A list of channel description, usually a result of a list operation. */
|
|
@@ -2012,6 +2006,16 @@ export interface NotificationUserChannel {
|
|
|
2012
2006
|
time_mute: Date | undefined;
|
|
2013
2007
|
}
|
|
2014
2008
|
|
|
2009
|
+
/** Notification channel */
|
|
2010
|
+
export interface NotifiReactMessage {
|
|
2011
|
+
/** Notification id */
|
|
2012
|
+
id: string;
|
|
2013
|
+
/** */
|
|
2014
|
+
user_id: string;
|
|
2015
|
+
/** */
|
|
2016
|
+
channel_id: string;
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2015
2019
|
/** */
|
|
2016
2020
|
export interface DefaultNotificationClan {
|
|
2017
2021
|
/** */
|
|
@@ -12382,8 +12386,6 @@ function createBaseChannelDescription(): ChannelDescription {
|
|
|
12382
12386
|
user_id: [],
|
|
12383
12387
|
last_sent_message: undefined,
|
|
12384
12388
|
last_seen_message: undefined,
|
|
12385
|
-
meeting_uri: "",
|
|
12386
|
-
meeting_code: "",
|
|
12387
12389
|
};
|
|
12388
12390
|
}
|
|
12389
12391
|
|
|
@@ -12428,12 +12430,6 @@ export const ChannelDescription = {
|
|
|
12428
12430
|
if (message.last_seen_message !== undefined) {
|
|
12429
12431
|
ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(106).fork()).ldelim();
|
|
12430
12432
|
}
|
|
12431
|
-
if (message.meeting_uri !== "") {
|
|
12432
|
-
writer.uint32(114).string(message.meeting_uri);
|
|
12433
|
-
}
|
|
12434
|
-
if (message.meeting_code !== "") {
|
|
12435
|
-
writer.uint32(122).string(message.meeting_code);
|
|
12436
|
-
}
|
|
12437
12433
|
return writer;
|
|
12438
12434
|
},
|
|
12439
12435
|
|
|
@@ -12483,12 +12479,6 @@ export const ChannelDescription = {
|
|
|
12483
12479
|
case 13:
|
|
12484
12480
|
message.last_seen_message = ChannelMessageHeader.decode(reader, reader.uint32());
|
|
12485
12481
|
break;
|
|
12486
|
-
case 14:
|
|
12487
|
-
message.meeting_uri = reader.string();
|
|
12488
|
-
break;
|
|
12489
|
-
case 15:
|
|
12490
|
-
message.meeting_code = reader.string();
|
|
12491
|
-
break;
|
|
12492
12482
|
default:
|
|
12493
12483
|
reader.skipType(tag & 7);
|
|
12494
12484
|
break;
|
|
@@ -12516,8 +12506,6 @@ export const ChannelDescription = {
|
|
|
12516
12506
|
last_seen_message: isSet(object.last_seen_message)
|
|
12517
12507
|
? ChannelMessageHeader.fromJSON(object.last_seen_message)
|
|
12518
12508
|
: undefined,
|
|
12519
|
-
meeting_uri: isSet(object.meeting_uri) ? String(object.meeting_uri) : "",
|
|
12520
|
-
meeting_code: isSet(object.meeting_code) ? String(object.meeting_code) : "",
|
|
12521
12509
|
};
|
|
12522
12510
|
},
|
|
12523
12511
|
|
|
@@ -12548,8 +12536,6 @@ export const ChannelDescription = {
|
|
|
12548
12536
|
message.last_seen_message !== undefined && (obj.last_seen_message = message.last_seen_message
|
|
12549
12537
|
? ChannelMessageHeader.toJSON(message.last_seen_message)
|
|
12550
12538
|
: undefined);
|
|
12551
|
-
message.meeting_uri !== undefined && (obj.meeting_uri = message.meeting_uri);
|
|
12552
|
-
message.meeting_code !== undefined && (obj.meeting_code = message.meeting_code);
|
|
12553
12539
|
return obj;
|
|
12554
12540
|
},
|
|
12555
12541
|
|
|
@@ -12576,8 +12562,6 @@ export const ChannelDescription = {
|
|
|
12576
12562
|
message.last_seen_message = (object.last_seen_message !== undefined && object.last_seen_message !== null)
|
|
12577
12563
|
? ChannelMessageHeader.fromPartial(object.last_seen_message)
|
|
12578
12564
|
: undefined;
|
|
12579
|
-
message.meeting_uri = object.meeting_uri ?? "";
|
|
12580
|
-
message.meeting_code = object.meeting_code ?? "";
|
|
12581
12565
|
return message;
|
|
12582
12566
|
},
|
|
12583
12567
|
};
|
|
@@ -14022,6 +14006,77 @@ export const NotificationUserChannel = {
|
|
|
14022
14006
|
},
|
|
14023
14007
|
};
|
|
14024
14008
|
|
|
14009
|
+
function createBaseNotifiReactMessage(): NotifiReactMessage {
|
|
14010
|
+
return { id: "", user_id: "", channel_id: "" };
|
|
14011
|
+
}
|
|
14012
|
+
|
|
14013
|
+
export const NotifiReactMessage = {
|
|
14014
|
+
encode(message: NotifiReactMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
14015
|
+
if (message.id !== "") {
|
|
14016
|
+
writer.uint32(10).string(message.id);
|
|
14017
|
+
}
|
|
14018
|
+
if (message.user_id !== "") {
|
|
14019
|
+
writer.uint32(18).string(message.user_id);
|
|
14020
|
+
}
|
|
14021
|
+
if (message.channel_id !== "") {
|
|
14022
|
+
writer.uint32(26).string(message.channel_id);
|
|
14023
|
+
}
|
|
14024
|
+
return writer;
|
|
14025
|
+
},
|
|
14026
|
+
|
|
14027
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): NotifiReactMessage {
|
|
14028
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
14029
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
14030
|
+
const message = createBaseNotifiReactMessage();
|
|
14031
|
+
while (reader.pos < end) {
|
|
14032
|
+
const tag = reader.uint32();
|
|
14033
|
+
switch (tag >>> 3) {
|
|
14034
|
+
case 1:
|
|
14035
|
+
message.id = reader.string();
|
|
14036
|
+
break;
|
|
14037
|
+
case 2:
|
|
14038
|
+
message.user_id = reader.string();
|
|
14039
|
+
break;
|
|
14040
|
+
case 3:
|
|
14041
|
+
message.channel_id = reader.string();
|
|
14042
|
+
break;
|
|
14043
|
+
default:
|
|
14044
|
+
reader.skipType(tag & 7);
|
|
14045
|
+
break;
|
|
14046
|
+
}
|
|
14047
|
+
}
|
|
14048
|
+
return message;
|
|
14049
|
+
},
|
|
14050
|
+
|
|
14051
|
+
fromJSON(object: any): NotifiReactMessage {
|
|
14052
|
+
return {
|
|
14053
|
+
id: isSet(object.id) ? String(object.id) : "",
|
|
14054
|
+
user_id: isSet(object.user_id) ? String(object.user_id) : "",
|
|
14055
|
+
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
14056
|
+
};
|
|
14057
|
+
},
|
|
14058
|
+
|
|
14059
|
+
toJSON(message: NotifiReactMessage): unknown {
|
|
14060
|
+
const obj: any = {};
|
|
14061
|
+
message.id !== undefined && (obj.id = message.id);
|
|
14062
|
+
message.user_id !== undefined && (obj.user_id = message.user_id);
|
|
14063
|
+
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
14064
|
+
return obj;
|
|
14065
|
+
},
|
|
14066
|
+
|
|
14067
|
+
create<I extends Exact<DeepPartial<NotifiReactMessage>, I>>(base?: I): NotifiReactMessage {
|
|
14068
|
+
return NotifiReactMessage.fromPartial(base ?? {});
|
|
14069
|
+
},
|
|
14070
|
+
|
|
14071
|
+
fromPartial<I extends Exact<DeepPartial<NotifiReactMessage>, I>>(object: I): NotifiReactMessage {
|
|
14072
|
+
const message = createBaseNotifiReactMessage();
|
|
14073
|
+
message.id = object.id ?? "";
|
|
14074
|
+
message.user_id = object.user_id ?? "";
|
|
14075
|
+
message.channel_id = object.channel_id ?? "";
|
|
14076
|
+
return message;
|
|
14077
|
+
},
|
|
14078
|
+
};
|
|
14079
|
+
|
|
14025
14080
|
function createBaseDefaultNotificationClan(): DefaultNotificationClan {
|
|
14026
14081
|
return { clan_id: "" };
|
|
14027
14082
|
}
|
|
@@ -1346,10 +1346,6 @@ export interface ChannelDescription {
|
|
|
1346
1346
|
last_sent_message: ChannelMessageHeader | undefined;
|
|
1347
1347
|
/** last seen message id */
|
|
1348
1348
|
last_seen_message: ChannelMessageHeader | undefined;
|
|
1349
|
-
/** meeting uri */
|
|
1350
|
-
meeting_uri: string;
|
|
1351
|
-
/** meeting code */
|
|
1352
|
-
meeting_code: string;
|
|
1353
1349
|
}
|
|
1354
1350
|
/** A list of channel description, usually a result of a list operation. */
|
|
1355
1351
|
export interface ChannelDescList {
|
|
@@ -1508,6 +1504,15 @@ export interface NotificationUserChannel {
|
|
|
1508
1504
|
/** */
|
|
1509
1505
|
time_mute: Date | undefined;
|
|
1510
1506
|
}
|
|
1507
|
+
/** Notification channel */
|
|
1508
|
+
export interface NotifiReactMessage {
|
|
1509
|
+
/** Notification id */
|
|
1510
|
+
id: string;
|
|
1511
|
+
/** */
|
|
1512
|
+
user_id: string;
|
|
1513
|
+
/** */
|
|
1514
|
+
channel_id: string;
|
|
1515
|
+
}
|
|
1511
1516
|
/** */
|
|
1512
1517
|
export interface DefaultNotificationClan {
|
|
1513
1518
|
/** */
|
|
@@ -8943,8 +8948,6 @@ export declare const ChannelDescription: {
|
|
|
8943
8948
|
sender_id?: string | undefined;
|
|
8944
8949
|
content?: string | undefined;
|
|
8945
8950
|
} | undefined;
|
|
8946
|
-
meeting_uri?: string | undefined;
|
|
8947
|
-
meeting_code?: string | undefined;
|
|
8948
8951
|
} & {
|
|
8949
8952
|
clan_id?: string | undefined;
|
|
8950
8953
|
parrent_id?: string | undefined;
|
|
@@ -8979,8 +8982,6 @@ export declare const ChannelDescription: {
|
|
|
8979
8982
|
sender_id?: string | undefined;
|
|
8980
8983
|
content?: string | undefined;
|
|
8981
8984
|
} & { [K_3 in Exclude<keyof I["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
8982
|
-
meeting_uri?: string | undefined;
|
|
8983
|
-
meeting_code?: string | undefined;
|
|
8984
8985
|
} & { [K_4 in Exclude<keyof I, keyof ChannelDescription>]: never; }>(base?: I | undefined): ChannelDescription;
|
|
8985
8986
|
fromPartial<I_1 extends {
|
|
8986
8987
|
clan_id?: string | undefined;
|
|
@@ -9006,8 +9007,6 @@ export declare const ChannelDescription: {
|
|
|
9006
9007
|
sender_id?: string | undefined;
|
|
9007
9008
|
content?: string | undefined;
|
|
9008
9009
|
} | undefined;
|
|
9009
|
-
meeting_uri?: string | undefined;
|
|
9010
|
-
meeting_code?: string | undefined;
|
|
9011
9010
|
} & {
|
|
9012
9011
|
clan_id?: string | undefined;
|
|
9013
9012
|
parrent_id?: string | undefined;
|
|
@@ -9042,8 +9041,6 @@ export declare const ChannelDescription: {
|
|
|
9042
9041
|
sender_id?: string | undefined;
|
|
9043
9042
|
content?: string | undefined;
|
|
9044
9043
|
} & { [K_8 in Exclude<keyof I_1["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
9045
|
-
meeting_uri?: string | undefined;
|
|
9046
|
-
meeting_code?: string | undefined;
|
|
9047
9044
|
} & { [K_9 in Exclude<keyof I_1, keyof ChannelDescription>]: never; }>(object: I_1): ChannelDescription;
|
|
9048
9045
|
};
|
|
9049
9046
|
export declare const ChannelDescList: {
|
|
@@ -9076,8 +9073,6 @@ export declare const ChannelDescList: {
|
|
|
9076
9073
|
sender_id?: string | undefined;
|
|
9077
9074
|
content?: string | undefined;
|
|
9078
9075
|
} | undefined;
|
|
9079
|
-
meeting_uri?: string | undefined;
|
|
9080
|
-
meeting_code?: string | undefined;
|
|
9081
9076
|
}[] | undefined;
|
|
9082
9077
|
next_cursor?: string | undefined;
|
|
9083
9078
|
prev_cursor?: string | undefined;
|
|
@@ -9107,8 +9102,6 @@ export declare const ChannelDescList: {
|
|
|
9107
9102
|
sender_id?: string | undefined;
|
|
9108
9103
|
content?: string | undefined;
|
|
9109
9104
|
} | undefined;
|
|
9110
|
-
meeting_uri?: string | undefined;
|
|
9111
|
-
meeting_code?: string | undefined;
|
|
9112
9105
|
}[] & ({
|
|
9113
9106
|
clan_id?: string | undefined;
|
|
9114
9107
|
parrent_id?: string | undefined;
|
|
@@ -9133,8 +9126,6 @@ export declare const ChannelDescList: {
|
|
|
9133
9126
|
sender_id?: string | undefined;
|
|
9134
9127
|
content?: string | undefined;
|
|
9135
9128
|
} | undefined;
|
|
9136
|
-
meeting_uri?: string | undefined;
|
|
9137
|
-
meeting_code?: string | undefined;
|
|
9138
9129
|
} & {
|
|
9139
9130
|
clan_id?: string | undefined;
|
|
9140
9131
|
parrent_id?: string | undefined;
|
|
@@ -9169,8 +9160,6 @@ export declare const ChannelDescList: {
|
|
|
9169
9160
|
sender_id?: string | undefined;
|
|
9170
9161
|
content?: string | undefined;
|
|
9171
9162
|
} & { [K_3 in Exclude<keyof I["channeldesc"][number]["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
9172
|
-
meeting_uri?: string | undefined;
|
|
9173
|
-
meeting_code?: string | undefined;
|
|
9174
9163
|
} & { [K_4 in Exclude<keyof I["channeldesc"][number], keyof ChannelDescription>]: never; })[] & { [K_5 in Exclude<keyof I["channeldesc"], keyof {
|
|
9175
9164
|
clan_id?: string | undefined;
|
|
9176
9165
|
parrent_id?: string | undefined;
|
|
@@ -9195,8 +9184,6 @@ export declare const ChannelDescList: {
|
|
|
9195
9184
|
sender_id?: string | undefined;
|
|
9196
9185
|
content?: string | undefined;
|
|
9197
9186
|
} | undefined;
|
|
9198
|
-
meeting_uri?: string | undefined;
|
|
9199
|
-
meeting_code?: string | undefined;
|
|
9200
9187
|
}[]>]: never; }) | undefined;
|
|
9201
9188
|
next_cursor?: string | undefined;
|
|
9202
9189
|
prev_cursor?: string | undefined;
|
|
@@ -9227,8 +9214,6 @@ export declare const ChannelDescList: {
|
|
|
9227
9214
|
sender_id?: string | undefined;
|
|
9228
9215
|
content?: string | undefined;
|
|
9229
9216
|
} | undefined;
|
|
9230
|
-
meeting_uri?: string | undefined;
|
|
9231
|
-
meeting_code?: string | undefined;
|
|
9232
9217
|
}[] | undefined;
|
|
9233
9218
|
next_cursor?: string | undefined;
|
|
9234
9219
|
prev_cursor?: string | undefined;
|
|
@@ -9258,8 +9243,6 @@ export declare const ChannelDescList: {
|
|
|
9258
9243
|
sender_id?: string | undefined;
|
|
9259
9244
|
content?: string | undefined;
|
|
9260
9245
|
} | undefined;
|
|
9261
|
-
meeting_uri?: string | undefined;
|
|
9262
|
-
meeting_code?: string | undefined;
|
|
9263
9246
|
}[] & ({
|
|
9264
9247
|
clan_id?: string | undefined;
|
|
9265
9248
|
parrent_id?: string | undefined;
|
|
@@ -9284,8 +9267,6 @@ export declare const ChannelDescList: {
|
|
|
9284
9267
|
sender_id?: string | undefined;
|
|
9285
9268
|
content?: string | undefined;
|
|
9286
9269
|
} | undefined;
|
|
9287
|
-
meeting_uri?: string | undefined;
|
|
9288
|
-
meeting_code?: string | undefined;
|
|
9289
9270
|
} & {
|
|
9290
9271
|
clan_id?: string | undefined;
|
|
9291
9272
|
parrent_id?: string | undefined;
|
|
@@ -9320,8 +9301,6 @@ export declare const ChannelDescList: {
|
|
|
9320
9301
|
sender_id?: string | undefined;
|
|
9321
9302
|
content?: string | undefined;
|
|
9322
9303
|
} & { [K_10 in Exclude<keyof I_1["channeldesc"][number]["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
|
|
9323
|
-
meeting_uri?: string | undefined;
|
|
9324
|
-
meeting_code?: string | undefined;
|
|
9325
9304
|
} & { [K_11 in Exclude<keyof I_1["channeldesc"][number], keyof ChannelDescription>]: never; })[] & { [K_12 in Exclude<keyof I_1["channeldesc"], keyof {
|
|
9326
9305
|
clan_id?: string | undefined;
|
|
9327
9306
|
parrent_id?: string | undefined;
|
|
@@ -9346,8 +9325,6 @@ export declare const ChannelDescList: {
|
|
|
9346
9325
|
sender_id?: string | undefined;
|
|
9347
9326
|
content?: string | undefined;
|
|
9348
9327
|
} | undefined;
|
|
9349
|
-
meeting_uri?: string | undefined;
|
|
9350
|
-
meeting_code?: string | undefined;
|
|
9351
9328
|
}[]>]: never; }) | undefined;
|
|
9352
9329
|
next_cursor?: string | undefined;
|
|
9353
9330
|
prev_cursor?: string | undefined;
|
|
@@ -10050,6 +10027,30 @@ export declare const NotificationUserChannel: {
|
|
|
10050
10027
|
time_mute?: Date | undefined;
|
|
10051
10028
|
} & { [K_1 in Exclude<keyof I_1, keyof NotificationUserChannel>]: never; }>(object: I_1): NotificationUserChannel;
|
|
10052
10029
|
};
|
|
10030
|
+
export declare const NotifiReactMessage: {
|
|
10031
|
+
encode(message: NotifiReactMessage, writer?: _m0.Writer): _m0.Writer;
|
|
10032
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): NotifiReactMessage;
|
|
10033
|
+
fromJSON(object: any): NotifiReactMessage;
|
|
10034
|
+
toJSON(message: NotifiReactMessage): unknown;
|
|
10035
|
+
create<I extends {
|
|
10036
|
+
id?: string | undefined;
|
|
10037
|
+
user_id?: string | undefined;
|
|
10038
|
+
channel_id?: string | undefined;
|
|
10039
|
+
} & {
|
|
10040
|
+
id?: string | undefined;
|
|
10041
|
+
user_id?: string | undefined;
|
|
10042
|
+
channel_id?: string | undefined;
|
|
10043
|
+
} & { [K in Exclude<keyof I, keyof NotifiReactMessage>]: never; }>(base?: I | undefined): NotifiReactMessage;
|
|
10044
|
+
fromPartial<I_1 extends {
|
|
10045
|
+
id?: string | undefined;
|
|
10046
|
+
user_id?: string | undefined;
|
|
10047
|
+
channel_id?: string | undefined;
|
|
10048
|
+
} & {
|
|
10049
|
+
id?: string | undefined;
|
|
10050
|
+
user_id?: string | undefined;
|
|
10051
|
+
channel_id?: string | undefined;
|
|
10052
|
+
} & { [K_1 in Exclude<keyof I_1, keyof NotifiReactMessage>]: never; }>(object: I_1): NotifiReactMessage;
|
|
10053
|
+
};
|
|
10053
10054
|
export declare const DefaultNotificationClan: {
|
|
10054
10055
|
encode(message: DefaultNotificationClan, writer?: _m0.Writer): _m0.Writer;
|
|
10055
10056
|
decode(input: _m0.Reader | Uint8Array, length?: number): DefaultNotificationClan;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.19",
|
|
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",
|