mezon-js-protobuf 1.5.90 → 1.5.92
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 +119 -18
- package/dist/mezon-js-protobuf/api/api.d.ts +38 -6
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +0 -78
- package/dist/mezon-js-protobuf.cjs.js +23 -125
- package/dist/mezon-js-protobuf.esm.mjs +23 -125
- package/package.json +1 -1
- package/rtapi/realtime.ts +5 -110
package/api/api.ts
CHANGED
|
@@ -660,8 +660,6 @@ export interface MessageReaction {
|
|
|
660
660
|
message_sender_id: string;
|
|
661
661
|
/** is public */
|
|
662
662
|
is_public: boolean;
|
|
663
|
-
/** The parent id to sent to. */
|
|
664
|
-
parent_id: string;
|
|
665
663
|
}
|
|
666
664
|
|
|
667
665
|
/** Message attachment */
|
|
@@ -1859,6 +1857,21 @@ export interface ChannelDescList {
|
|
|
1859
1857
|
cacheable_cursor: string;
|
|
1860
1858
|
}
|
|
1861
1859
|
|
|
1860
|
+
export interface ListThreadRequest {
|
|
1861
|
+
/** Max number of records to return. Between 1 and 100. */
|
|
1862
|
+
limit:
|
|
1863
|
+
| number
|
|
1864
|
+
| undefined;
|
|
1865
|
+
/** The channel state to list. */
|
|
1866
|
+
state:
|
|
1867
|
+
| number
|
|
1868
|
+
| undefined;
|
|
1869
|
+
/** The clan of this channel */
|
|
1870
|
+
clan_id: string;
|
|
1871
|
+
/** channel id */
|
|
1872
|
+
channel_id: number;
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1862
1875
|
/** List (and optionally filter) channels. */
|
|
1863
1876
|
export interface ListChannelDescsRequest {
|
|
1864
1877
|
/** Max number of records to return. Between 1 and 100. */
|
|
@@ -7401,7 +7414,6 @@ function createBaseMessageReaction(): MessageReaction {
|
|
|
7401
7414
|
mode: 0,
|
|
7402
7415
|
message_sender_id: "",
|
|
7403
7416
|
is_public: false,
|
|
7404
|
-
parent_id: "",
|
|
7405
7417
|
};
|
|
7406
7418
|
}
|
|
7407
7419
|
|
|
@@ -7449,9 +7461,6 @@ export const MessageReaction = {
|
|
|
7449
7461
|
if (message.is_public !== false) {
|
|
7450
7462
|
writer.uint32(112).bool(message.is_public);
|
|
7451
7463
|
}
|
|
7452
|
-
if (message.parent_id !== "") {
|
|
7453
|
-
writer.uint32(122).string(message.parent_id);
|
|
7454
|
-
}
|
|
7455
7464
|
return writer;
|
|
7456
7465
|
},
|
|
7457
7466
|
|
|
@@ -7560,13 +7569,6 @@ export const MessageReaction = {
|
|
|
7560
7569
|
|
|
7561
7570
|
message.is_public = reader.bool();
|
|
7562
7571
|
continue;
|
|
7563
|
-
case 15:
|
|
7564
|
-
if (tag !== 122) {
|
|
7565
|
-
break;
|
|
7566
|
-
}
|
|
7567
|
-
|
|
7568
|
-
message.parent_id = reader.string();
|
|
7569
|
-
continue;
|
|
7570
7572
|
}
|
|
7571
7573
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7572
7574
|
break;
|
|
@@ -7592,7 +7594,6 @@ export const MessageReaction = {
|
|
|
7592
7594
|
mode: isSet(object.mode) ? globalThis.Number(object.mode) : 0,
|
|
7593
7595
|
message_sender_id: isSet(object.message_sender_id) ? globalThis.String(object.message_sender_id) : "",
|
|
7594
7596
|
is_public: isSet(object.is_public) ? globalThis.Boolean(object.is_public) : false,
|
|
7595
|
-
parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
|
|
7596
7597
|
};
|
|
7597
7598
|
},
|
|
7598
7599
|
|
|
@@ -7640,9 +7641,6 @@ export const MessageReaction = {
|
|
|
7640
7641
|
if (message.is_public !== false) {
|
|
7641
7642
|
obj.is_public = message.is_public;
|
|
7642
7643
|
}
|
|
7643
|
-
if (message.parent_id !== "") {
|
|
7644
|
-
obj.parent_id = message.parent_id;
|
|
7645
|
-
}
|
|
7646
7644
|
return obj;
|
|
7647
7645
|
},
|
|
7648
7646
|
|
|
@@ -7665,7 +7663,6 @@ export const MessageReaction = {
|
|
|
7665
7663
|
message.mode = object.mode ?? 0;
|
|
7666
7664
|
message.message_sender_id = object.message_sender_id ?? "";
|
|
7667
7665
|
message.is_public = object.is_public ?? false;
|
|
7668
|
-
message.parent_id = object.parent_id ?? "";
|
|
7669
7666
|
return message;
|
|
7670
7667
|
},
|
|
7671
7668
|
};
|
|
@@ -16285,6 +16282,110 @@ export const ChannelDescList = {
|
|
|
16285
16282
|
},
|
|
16286
16283
|
};
|
|
16287
16284
|
|
|
16285
|
+
function createBaseListThreadRequest(): ListThreadRequest {
|
|
16286
|
+
return { limit: undefined, state: undefined, clan_id: "", channel_id: 0 };
|
|
16287
|
+
}
|
|
16288
|
+
|
|
16289
|
+
export const ListThreadRequest = {
|
|
16290
|
+
encode(message: ListThreadRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
16291
|
+
if (message.limit !== undefined) {
|
|
16292
|
+
Int32Value.encode({ value: message.limit! }, writer.uint32(10).fork()).ldelim();
|
|
16293
|
+
}
|
|
16294
|
+
if (message.state !== undefined) {
|
|
16295
|
+
Int32Value.encode({ value: message.state! }, writer.uint32(18).fork()).ldelim();
|
|
16296
|
+
}
|
|
16297
|
+
if (message.clan_id !== "") {
|
|
16298
|
+
writer.uint32(26).string(message.clan_id);
|
|
16299
|
+
}
|
|
16300
|
+
if (message.channel_id !== 0) {
|
|
16301
|
+
writer.uint32(32).int32(message.channel_id);
|
|
16302
|
+
}
|
|
16303
|
+
return writer;
|
|
16304
|
+
},
|
|
16305
|
+
|
|
16306
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListThreadRequest {
|
|
16307
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
16308
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
16309
|
+
const message = createBaseListThreadRequest();
|
|
16310
|
+
while (reader.pos < end) {
|
|
16311
|
+
const tag = reader.uint32();
|
|
16312
|
+
switch (tag >>> 3) {
|
|
16313
|
+
case 1:
|
|
16314
|
+
if (tag !== 10) {
|
|
16315
|
+
break;
|
|
16316
|
+
}
|
|
16317
|
+
|
|
16318
|
+
message.limit = Int32Value.decode(reader, reader.uint32()).value;
|
|
16319
|
+
continue;
|
|
16320
|
+
case 2:
|
|
16321
|
+
if (tag !== 18) {
|
|
16322
|
+
break;
|
|
16323
|
+
}
|
|
16324
|
+
|
|
16325
|
+
message.state = Int32Value.decode(reader, reader.uint32()).value;
|
|
16326
|
+
continue;
|
|
16327
|
+
case 3:
|
|
16328
|
+
if (tag !== 26) {
|
|
16329
|
+
break;
|
|
16330
|
+
}
|
|
16331
|
+
|
|
16332
|
+
message.clan_id = reader.string();
|
|
16333
|
+
continue;
|
|
16334
|
+
case 4:
|
|
16335
|
+
if (tag !== 32) {
|
|
16336
|
+
break;
|
|
16337
|
+
}
|
|
16338
|
+
|
|
16339
|
+
message.channel_id = reader.int32();
|
|
16340
|
+
continue;
|
|
16341
|
+
}
|
|
16342
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16343
|
+
break;
|
|
16344
|
+
}
|
|
16345
|
+
reader.skipType(tag & 7);
|
|
16346
|
+
}
|
|
16347
|
+
return message;
|
|
16348
|
+
},
|
|
16349
|
+
|
|
16350
|
+
fromJSON(object: any): ListThreadRequest {
|
|
16351
|
+
return {
|
|
16352
|
+
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
16353
|
+
state: isSet(object.state) ? Number(object.state) : undefined,
|
|
16354
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
16355
|
+
channel_id: isSet(object.channel_id) ? globalThis.Number(object.channel_id) : 0,
|
|
16356
|
+
};
|
|
16357
|
+
},
|
|
16358
|
+
|
|
16359
|
+
toJSON(message: ListThreadRequest): unknown {
|
|
16360
|
+
const obj: any = {};
|
|
16361
|
+
if (message.limit !== undefined) {
|
|
16362
|
+
obj.limit = message.limit;
|
|
16363
|
+
}
|
|
16364
|
+
if (message.state !== undefined) {
|
|
16365
|
+
obj.state = message.state;
|
|
16366
|
+
}
|
|
16367
|
+
if (message.clan_id !== "") {
|
|
16368
|
+
obj.clan_id = message.clan_id;
|
|
16369
|
+
}
|
|
16370
|
+
if (message.channel_id !== 0) {
|
|
16371
|
+
obj.channel_id = Math.round(message.channel_id);
|
|
16372
|
+
}
|
|
16373
|
+
return obj;
|
|
16374
|
+
},
|
|
16375
|
+
|
|
16376
|
+
create<I extends Exact<DeepPartial<ListThreadRequest>, I>>(base?: I): ListThreadRequest {
|
|
16377
|
+
return ListThreadRequest.fromPartial(base ?? ({} as any));
|
|
16378
|
+
},
|
|
16379
|
+
fromPartial<I extends Exact<DeepPartial<ListThreadRequest>, I>>(object: I): ListThreadRequest {
|
|
16380
|
+
const message = createBaseListThreadRequest();
|
|
16381
|
+
message.limit = object.limit ?? undefined;
|
|
16382
|
+
message.state = object.state ?? undefined;
|
|
16383
|
+
message.clan_id = object.clan_id ?? "";
|
|
16384
|
+
message.channel_id = object.channel_id ?? 0;
|
|
16385
|
+
return message;
|
|
16386
|
+
},
|
|
16387
|
+
};
|
|
16388
|
+
|
|
16288
16389
|
function createBaseListChannelDescsRequest(): ListChannelDescsRequest {
|
|
16289
16390
|
return { limit: undefined, state: undefined, cursor: "", clan_id: "", channel_type: 0 };
|
|
16290
16391
|
}
|
|
@@ -471,8 +471,6 @@ export interface MessageReaction {
|
|
|
471
471
|
message_sender_id: string;
|
|
472
472
|
/** is public */
|
|
473
473
|
is_public: boolean;
|
|
474
|
-
/** The parent id to sent to. */
|
|
475
|
-
parent_id: string;
|
|
476
474
|
}
|
|
477
475
|
/** Message attachment */
|
|
478
476
|
export interface MessageAttachment {
|
|
@@ -1387,6 +1385,16 @@ export interface ChannelDescList {
|
|
|
1387
1385
|
/** Cacheable cursor to list newer channel description. Durable and designed to be stored, unlike next/prev cursors. */
|
|
1388
1386
|
cacheable_cursor: string;
|
|
1389
1387
|
}
|
|
1388
|
+
export interface ListThreadRequest {
|
|
1389
|
+
/** Max number of records to return. Between 1 and 100. */
|
|
1390
|
+
limit: number | undefined;
|
|
1391
|
+
/** The channel state to list. */
|
|
1392
|
+
state: number | undefined;
|
|
1393
|
+
/** The clan of this channel */
|
|
1394
|
+
clan_id: string;
|
|
1395
|
+
/** channel id */
|
|
1396
|
+
channel_id: number;
|
|
1397
|
+
}
|
|
1390
1398
|
/** List (and optionally filter) channels. */
|
|
1391
1399
|
export interface ListChannelDescsRequest {
|
|
1392
1400
|
/** Max number of records to return. Between 1 and 100. */
|
|
@@ -4231,7 +4239,6 @@ export declare const MessageReaction: {
|
|
|
4231
4239
|
mode?: number | undefined;
|
|
4232
4240
|
message_sender_id?: string | undefined;
|
|
4233
4241
|
is_public?: boolean | undefined;
|
|
4234
|
-
parent_id?: string | undefined;
|
|
4235
4242
|
} & {
|
|
4236
4243
|
id?: string | undefined;
|
|
4237
4244
|
emoji_id?: string | undefined;
|
|
@@ -4247,7 +4254,6 @@ export declare const MessageReaction: {
|
|
|
4247
4254
|
mode?: number | undefined;
|
|
4248
4255
|
message_sender_id?: string | undefined;
|
|
4249
4256
|
is_public?: boolean | undefined;
|
|
4250
|
-
parent_id?: string | undefined;
|
|
4251
4257
|
} & { [K in Exclude<keyof I, keyof MessageReaction>]: never; }>(base?: I | undefined): MessageReaction;
|
|
4252
4258
|
fromPartial<I_1 extends {
|
|
4253
4259
|
id?: string | undefined;
|
|
@@ -4264,7 +4270,6 @@ export declare const MessageReaction: {
|
|
|
4264
4270
|
mode?: number | undefined;
|
|
4265
4271
|
message_sender_id?: string | undefined;
|
|
4266
4272
|
is_public?: boolean | undefined;
|
|
4267
|
-
parent_id?: string | undefined;
|
|
4268
4273
|
} & {
|
|
4269
4274
|
id?: string | undefined;
|
|
4270
4275
|
emoji_id?: string | undefined;
|
|
@@ -4280,7 +4285,6 @@ export declare const MessageReaction: {
|
|
|
4280
4285
|
mode?: number | undefined;
|
|
4281
4286
|
message_sender_id?: string | undefined;
|
|
4282
4287
|
is_public?: boolean | undefined;
|
|
4283
|
-
parent_id?: string | undefined;
|
|
4284
4288
|
} & { [K_1 in Exclude<keyof I_1, keyof MessageReaction>]: never; }>(object: I_1): MessageReaction;
|
|
4285
4289
|
};
|
|
4286
4290
|
export declare const MessageAttachment: {
|
|
@@ -9981,6 +9985,34 @@ export declare const ChannelDescList: {
|
|
|
9981
9985
|
cacheable_cursor?: string | undefined;
|
|
9982
9986
|
} & { [K_19 in Exclude<keyof I_1, keyof ChannelDescList>]: never; }>(object: I_1): ChannelDescList;
|
|
9983
9987
|
};
|
|
9988
|
+
export declare const ListThreadRequest: {
|
|
9989
|
+
encode(message: ListThreadRequest, writer?: _m0.Writer): _m0.Writer;
|
|
9990
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListThreadRequest;
|
|
9991
|
+
fromJSON(object: any): ListThreadRequest;
|
|
9992
|
+
toJSON(message: ListThreadRequest): unknown;
|
|
9993
|
+
create<I extends {
|
|
9994
|
+
limit?: number | undefined;
|
|
9995
|
+
state?: number | undefined;
|
|
9996
|
+
clan_id?: string | undefined;
|
|
9997
|
+
channel_id?: number | undefined;
|
|
9998
|
+
} & {
|
|
9999
|
+
limit?: number | undefined;
|
|
10000
|
+
state?: number | undefined;
|
|
10001
|
+
clan_id?: string | undefined;
|
|
10002
|
+
channel_id?: number | undefined;
|
|
10003
|
+
} & { [K in Exclude<keyof I, keyof ListThreadRequest>]: never; }>(base?: I | undefined): ListThreadRequest;
|
|
10004
|
+
fromPartial<I_1 extends {
|
|
10005
|
+
limit?: number | undefined;
|
|
10006
|
+
state?: number | undefined;
|
|
10007
|
+
clan_id?: string | undefined;
|
|
10008
|
+
channel_id?: number | undefined;
|
|
10009
|
+
} & {
|
|
10010
|
+
limit?: number | undefined;
|
|
10011
|
+
state?: number | undefined;
|
|
10012
|
+
clan_id?: string | undefined;
|
|
10013
|
+
channel_id?: number | undefined;
|
|
10014
|
+
} & { [K_1 in Exclude<keyof I_1, keyof ListThreadRequest>]: never; }>(object: I_1): ListThreadRequest;
|
|
10015
|
+
};
|
|
9984
10016
|
export declare const ListChannelDescsRequest: {
|
|
9985
10017
|
encode(message: ListChannelDescsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
9986
10018
|
decode(input: _m0.Reader | Uint8Array, length?: number): ListChannelDescsRequest;
|