mezon-js-protobuf 1.5.92 → 1.5.94
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 +27 -10
- package/dist/mezon-js-protobuf/api/api.d.ts +11 -5
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -1869,7 +1869,9 @@ export interface ListThreadRequest {
|
|
|
1869
1869
|
/** The clan of this channel */
|
|
1870
1870
|
clan_id: string;
|
|
1871
1871
|
/** channel id */
|
|
1872
|
-
channel_id:
|
|
1872
|
+
channel_id: string;
|
|
1873
|
+
/** thread id */
|
|
1874
|
+
thread_id: string;
|
|
1873
1875
|
}
|
|
1874
1876
|
|
|
1875
1877
|
/** List (and optionally filter) channels. */
|
|
@@ -16283,7 +16285,7 @@ export const ChannelDescList = {
|
|
|
16283
16285
|
};
|
|
16284
16286
|
|
|
16285
16287
|
function createBaseListThreadRequest(): ListThreadRequest {
|
|
16286
|
-
return { limit: undefined, state: undefined, clan_id: "", channel_id:
|
|
16288
|
+
return { limit: undefined, state: undefined, clan_id: "", channel_id: "", thread_id: "" };
|
|
16287
16289
|
}
|
|
16288
16290
|
|
|
16289
16291
|
export const ListThreadRequest = {
|
|
@@ -16297,8 +16299,11 @@ export const ListThreadRequest = {
|
|
|
16297
16299
|
if (message.clan_id !== "") {
|
|
16298
16300
|
writer.uint32(26).string(message.clan_id);
|
|
16299
16301
|
}
|
|
16300
|
-
if (message.channel_id !==
|
|
16301
|
-
writer.uint32(
|
|
16302
|
+
if (message.channel_id !== "") {
|
|
16303
|
+
writer.uint32(34).string(message.channel_id);
|
|
16304
|
+
}
|
|
16305
|
+
if (message.thread_id !== "") {
|
|
16306
|
+
writer.uint32(42).string(message.thread_id);
|
|
16302
16307
|
}
|
|
16303
16308
|
return writer;
|
|
16304
16309
|
},
|
|
@@ -16332,11 +16337,18 @@ export const ListThreadRequest = {
|
|
|
16332
16337
|
message.clan_id = reader.string();
|
|
16333
16338
|
continue;
|
|
16334
16339
|
case 4:
|
|
16335
|
-
if (tag !==
|
|
16340
|
+
if (tag !== 34) {
|
|
16341
|
+
break;
|
|
16342
|
+
}
|
|
16343
|
+
|
|
16344
|
+
message.channel_id = reader.string();
|
|
16345
|
+
continue;
|
|
16346
|
+
case 5:
|
|
16347
|
+
if (tag !== 42) {
|
|
16336
16348
|
break;
|
|
16337
16349
|
}
|
|
16338
16350
|
|
|
16339
|
-
message.
|
|
16351
|
+
message.thread_id = reader.string();
|
|
16340
16352
|
continue;
|
|
16341
16353
|
}
|
|
16342
16354
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -16352,7 +16364,8 @@ export const ListThreadRequest = {
|
|
|
16352
16364
|
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
16353
16365
|
state: isSet(object.state) ? Number(object.state) : undefined,
|
|
16354
16366
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
16355
|
-
channel_id: isSet(object.channel_id) ? globalThis.
|
|
16367
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
16368
|
+
thread_id: isSet(object.thread_id) ? globalThis.String(object.thread_id) : "",
|
|
16356
16369
|
};
|
|
16357
16370
|
},
|
|
16358
16371
|
|
|
@@ -16367,8 +16380,11 @@ export const ListThreadRequest = {
|
|
|
16367
16380
|
if (message.clan_id !== "") {
|
|
16368
16381
|
obj.clan_id = message.clan_id;
|
|
16369
16382
|
}
|
|
16370
|
-
if (message.channel_id !==
|
|
16371
|
-
obj.channel_id =
|
|
16383
|
+
if (message.channel_id !== "") {
|
|
16384
|
+
obj.channel_id = message.channel_id;
|
|
16385
|
+
}
|
|
16386
|
+
if (message.thread_id !== "") {
|
|
16387
|
+
obj.thread_id = message.thread_id;
|
|
16372
16388
|
}
|
|
16373
16389
|
return obj;
|
|
16374
16390
|
},
|
|
@@ -16381,7 +16397,8 @@ export const ListThreadRequest = {
|
|
|
16381
16397
|
message.limit = object.limit ?? undefined;
|
|
16382
16398
|
message.state = object.state ?? undefined;
|
|
16383
16399
|
message.clan_id = object.clan_id ?? "";
|
|
16384
|
-
message.channel_id = object.channel_id ??
|
|
16400
|
+
message.channel_id = object.channel_id ?? "";
|
|
16401
|
+
message.thread_id = object.thread_id ?? "";
|
|
16385
16402
|
return message;
|
|
16386
16403
|
},
|
|
16387
16404
|
};
|
|
@@ -1393,7 +1393,9 @@ export interface ListThreadRequest {
|
|
|
1393
1393
|
/** The clan of this channel */
|
|
1394
1394
|
clan_id: string;
|
|
1395
1395
|
/** channel id */
|
|
1396
|
-
channel_id:
|
|
1396
|
+
channel_id: string;
|
|
1397
|
+
/** thread id */
|
|
1398
|
+
thread_id: string;
|
|
1397
1399
|
}
|
|
1398
1400
|
/** List (and optionally filter) channels. */
|
|
1399
1401
|
export interface ListChannelDescsRequest {
|
|
@@ -9994,23 +9996,27 @@ export declare const ListThreadRequest: {
|
|
|
9994
9996
|
limit?: number | undefined;
|
|
9995
9997
|
state?: number | undefined;
|
|
9996
9998
|
clan_id?: string | undefined;
|
|
9997
|
-
channel_id?:
|
|
9999
|
+
channel_id?: string | undefined;
|
|
10000
|
+
thread_id?: string | undefined;
|
|
9998
10001
|
} & {
|
|
9999
10002
|
limit?: number | undefined;
|
|
10000
10003
|
state?: number | undefined;
|
|
10001
10004
|
clan_id?: string | undefined;
|
|
10002
|
-
channel_id?:
|
|
10005
|
+
channel_id?: string | undefined;
|
|
10006
|
+
thread_id?: string | undefined;
|
|
10003
10007
|
} & { [K in Exclude<keyof I, keyof ListThreadRequest>]: never; }>(base?: I | undefined): ListThreadRequest;
|
|
10004
10008
|
fromPartial<I_1 extends {
|
|
10005
10009
|
limit?: number | undefined;
|
|
10006
10010
|
state?: number | undefined;
|
|
10007
10011
|
clan_id?: string | undefined;
|
|
10008
|
-
channel_id?:
|
|
10012
|
+
channel_id?: string | undefined;
|
|
10013
|
+
thread_id?: string | undefined;
|
|
10009
10014
|
} & {
|
|
10010
10015
|
limit?: number | undefined;
|
|
10011
10016
|
state?: number | undefined;
|
|
10012
10017
|
clan_id?: string | undefined;
|
|
10013
|
-
channel_id?:
|
|
10018
|
+
channel_id?: string | undefined;
|
|
10019
|
+
thread_id?: string | undefined;
|
|
10014
10020
|
} & { [K_1 in Exclude<keyof I_1, keyof ListThreadRequest>]: never; }>(object: I_1): ListThreadRequest;
|
|
10015
10021
|
};
|
|
10016
10022
|
export declare const ListChannelDescsRequest: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.94",
|
|
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",
|