mezon-js-protobuf 1.5.91 → 1.5.93

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 CHANGED
@@ -1857,6 +1857,21 @@ export interface ChannelDescList {
1857
1857
  cacheable_cursor: string;
1858
1858
  }
1859
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: string;
1873
+ }
1874
+
1860
1875
  /** List (and optionally filter) channels. */
1861
1876
  export interface ListChannelDescsRequest {
1862
1877
  /** Max number of records to return. Between 1 and 100. */
@@ -16267,6 +16282,110 @@ export const ChannelDescList = {
16267
16282
  },
16268
16283
  };
16269
16284
 
16285
+ function createBaseListThreadRequest(): ListThreadRequest {
16286
+ return { limit: undefined, state: undefined, clan_id: "", channel_id: "" };
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 !== "") {
16301
+ writer.uint32(34).string(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 !== 34) {
16336
+ break;
16337
+ }
16338
+
16339
+ message.channel_id = reader.string();
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.String(object.channel_id) : "",
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 !== "") {
16371
+ obj.channel_id = 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 ?? "";
16385
+ return message;
16386
+ },
16387
+ };
16388
+
16270
16389
  function createBaseListChannelDescsRequest(): ListChannelDescsRequest {
16271
16390
  return { limit: undefined, state: undefined, cursor: "", clan_id: "", channel_type: 0 };
16272
16391
  }
@@ -1385,6 +1385,16 @@ export interface ChannelDescList {
1385
1385
  /** Cacheable cursor to list newer channel description. Durable and designed to be stored, unlike next/prev cursors. */
1386
1386
  cacheable_cursor: string;
1387
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: string;
1397
+ }
1388
1398
  /** List (and optionally filter) channels. */
1389
1399
  export interface ListChannelDescsRequest {
1390
1400
  /** Max number of records to return. Between 1 and 100. */
@@ -9975,6 +9985,34 @@ export declare const ChannelDescList: {
9975
9985
  cacheable_cursor?: string | undefined;
9976
9986
  } & { [K_19 in Exclude<keyof I_1, keyof ChannelDescList>]: never; }>(object: I_1): ChannelDescList;
9977
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?: string | undefined;
9998
+ } & {
9999
+ limit?: number | undefined;
10000
+ state?: number | undefined;
10001
+ clan_id?: string | undefined;
10002
+ channel_id?: string | 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?: string | undefined;
10009
+ } & {
10010
+ limit?: number | undefined;
10011
+ state?: number | undefined;
10012
+ clan_id?: string | undefined;
10013
+ channel_id?: string | undefined;
10014
+ } & { [K_1 in Exclude<keyof I_1, keyof ListThreadRequest>]: never; }>(object: I_1): ListThreadRequest;
10015
+ };
9978
10016
  export declare const ListChannelDescsRequest: {
9979
10017
  encode(message: ListChannelDescsRequest, writer?: _m0.Writer): _m0.Writer;
9980
10018
  decode(input: _m0.Reader | Uint8Array, length?: number): ListChannelDescsRequest;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.5.91",
3
+ "version": "1.5.93",
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",