mezon-js-protobuf 1.8.43 → 1.8.44
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 +132 -0
- package/dist/mezon-js-protobuf/api/api.d.ts +38 -0
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +573 -495
- package/dist/mezon-js-protobuf.cjs.js +138 -2
- package/dist/mezon-js-protobuf.esm.mjs +138 -2
- package/package.json +1 -1
- package/rtapi/realtime.ts +48 -0
package/api/api.ts
CHANGED
|
@@ -1284,6 +1284,14 @@ export interface ListClanDescRequest {
|
|
|
1284
1284
|
cursor: string;
|
|
1285
1285
|
}
|
|
1286
1286
|
|
|
1287
|
+
export interface ListClanUnreadMsgIndicatorRequest {
|
|
1288
|
+
clan_id: string;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
export interface ListClanUnreadMsgIndicatorResponse {
|
|
1292
|
+
has_unread_message: boolean;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1287
1295
|
/** A list of clan */
|
|
1288
1296
|
export interface ClanDescList {
|
|
1289
1297
|
/** A list of channel. */
|
|
@@ -12242,6 +12250,130 @@ export const ListClanDescRequest = {
|
|
|
12242
12250
|
},
|
|
12243
12251
|
};
|
|
12244
12252
|
|
|
12253
|
+
function createBaseListClanUnreadMsgIndicatorRequest(): ListClanUnreadMsgIndicatorRequest {
|
|
12254
|
+
return { clan_id: "" };
|
|
12255
|
+
}
|
|
12256
|
+
|
|
12257
|
+
export const ListClanUnreadMsgIndicatorRequest = {
|
|
12258
|
+
encode(message: ListClanUnreadMsgIndicatorRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
12259
|
+
if (message.clan_id !== "") {
|
|
12260
|
+
writer.uint32(10).string(message.clan_id);
|
|
12261
|
+
}
|
|
12262
|
+
return writer;
|
|
12263
|
+
},
|
|
12264
|
+
|
|
12265
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListClanUnreadMsgIndicatorRequest {
|
|
12266
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
12267
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
12268
|
+
const message = createBaseListClanUnreadMsgIndicatorRequest();
|
|
12269
|
+
while (reader.pos < end) {
|
|
12270
|
+
const tag = reader.uint32();
|
|
12271
|
+
switch (tag >>> 3) {
|
|
12272
|
+
case 1:
|
|
12273
|
+
if (tag !== 10) {
|
|
12274
|
+
break;
|
|
12275
|
+
}
|
|
12276
|
+
|
|
12277
|
+
message.clan_id = reader.string();
|
|
12278
|
+
continue;
|
|
12279
|
+
}
|
|
12280
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12281
|
+
break;
|
|
12282
|
+
}
|
|
12283
|
+
reader.skipType(tag & 7);
|
|
12284
|
+
}
|
|
12285
|
+
return message;
|
|
12286
|
+
},
|
|
12287
|
+
|
|
12288
|
+
fromJSON(object: any): ListClanUnreadMsgIndicatorRequest {
|
|
12289
|
+
return { clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "" };
|
|
12290
|
+
},
|
|
12291
|
+
|
|
12292
|
+
toJSON(message: ListClanUnreadMsgIndicatorRequest): unknown {
|
|
12293
|
+
const obj: any = {};
|
|
12294
|
+
if (message.clan_id !== "") {
|
|
12295
|
+
obj.clan_id = message.clan_id;
|
|
12296
|
+
}
|
|
12297
|
+
return obj;
|
|
12298
|
+
},
|
|
12299
|
+
|
|
12300
|
+
create<I extends Exact<DeepPartial<ListClanUnreadMsgIndicatorRequest>, I>>(
|
|
12301
|
+
base?: I,
|
|
12302
|
+
): ListClanUnreadMsgIndicatorRequest {
|
|
12303
|
+
return ListClanUnreadMsgIndicatorRequest.fromPartial(base ?? ({} as any));
|
|
12304
|
+
},
|
|
12305
|
+
fromPartial<I extends Exact<DeepPartial<ListClanUnreadMsgIndicatorRequest>, I>>(
|
|
12306
|
+
object: I,
|
|
12307
|
+
): ListClanUnreadMsgIndicatorRequest {
|
|
12308
|
+
const message = createBaseListClanUnreadMsgIndicatorRequest();
|
|
12309
|
+
message.clan_id = object.clan_id ?? "";
|
|
12310
|
+
return message;
|
|
12311
|
+
},
|
|
12312
|
+
};
|
|
12313
|
+
|
|
12314
|
+
function createBaseListClanUnreadMsgIndicatorResponse(): ListClanUnreadMsgIndicatorResponse {
|
|
12315
|
+
return { has_unread_message: false };
|
|
12316
|
+
}
|
|
12317
|
+
|
|
12318
|
+
export const ListClanUnreadMsgIndicatorResponse = {
|
|
12319
|
+
encode(message: ListClanUnreadMsgIndicatorResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
12320
|
+
if (message.has_unread_message !== false) {
|
|
12321
|
+
writer.uint32(8).bool(message.has_unread_message);
|
|
12322
|
+
}
|
|
12323
|
+
return writer;
|
|
12324
|
+
},
|
|
12325
|
+
|
|
12326
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListClanUnreadMsgIndicatorResponse {
|
|
12327
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
12328
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
12329
|
+
const message = createBaseListClanUnreadMsgIndicatorResponse();
|
|
12330
|
+
while (reader.pos < end) {
|
|
12331
|
+
const tag = reader.uint32();
|
|
12332
|
+
switch (tag >>> 3) {
|
|
12333
|
+
case 1:
|
|
12334
|
+
if (tag !== 8) {
|
|
12335
|
+
break;
|
|
12336
|
+
}
|
|
12337
|
+
|
|
12338
|
+
message.has_unread_message = reader.bool();
|
|
12339
|
+
continue;
|
|
12340
|
+
}
|
|
12341
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12342
|
+
break;
|
|
12343
|
+
}
|
|
12344
|
+
reader.skipType(tag & 7);
|
|
12345
|
+
}
|
|
12346
|
+
return message;
|
|
12347
|
+
},
|
|
12348
|
+
|
|
12349
|
+
fromJSON(object: any): ListClanUnreadMsgIndicatorResponse {
|
|
12350
|
+
return {
|
|
12351
|
+
has_unread_message: isSet(object.has_unread_message) ? globalThis.Boolean(object.has_unread_message) : false,
|
|
12352
|
+
};
|
|
12353
|
+
},
|
|
12354
|
+
|
|
12355
|
+
toJSON(message: ListClanUnreadMsgIndicatorResponse): unknown {
|
|
12356
|
+
const obj: any = {};
|
|
12357
|
+
if (message.has_unread_message !== false) {
|
|
12358
|
+
obj.has_unread_message = message.has_unread_message;
|
|
12359
|
+
}
|
|
12360
|
+
return obj;
|
|
12361
|
+
},
|
|
12362
|
+
|
|
12363
|
+
create<I extends Exact<DeepPartial<ListClanUnreadMsgIndicatorResponse>, I>>(
|
|
12364
|
+
base?: I,
|
|
12365
|
+
): ListClanUnreadMsgIndicatorResponse {
|
|
12366
|
+
return ListClanUnreadMsgIndicatorResponse.fromPartial(base ?? ({} as any));
|
|
12367
|
+
},
|
|
12368
|
+
fromPartial<I extends Exact<DeepPartial<ListClanUnreadMsgIndicatorResponse>, I>>(
|
|
12369
|
+
object: I,
|
|
12370
|
+
): ListClanUnreadMsgIndicatorResponse {
|
|
12371
|
+
const message = createBaseListClanUnreadMsgIndicatorResponse();
|
|
12372
|
+
message.has_unread_message = object.has_unread_message ?? false;
|
|
12373
|
+
return message;
|
|
12374
|
+
},
|
|
12375
|
+
};
|
|
12376
|
+
|
|
12245
12377
|
function createBaseClanDescList(): ClanDescList {
|
|
12246
12378
|
return { clandesc: [] };
|
|
12247
12379
|
}
|
|
@@ -951,6 +951,12 @@ export interface ListClanDescRequest {
|
|
|
951
951
|
/** Cursor to start from */
|
|
952
952
|
cursor: string;
|
|
953
953
|
}
|
|
954
|
+
export interface ListClanUnreadMsgIndicatorRequest {
|
|
955
|
+
clan_id: string;
|
|
956
|
+
}
|
|
957
|
+
export interface ListClanUnreadMsgIndicatorResponse {
|
|
958
|
+
has_unread_message: boolean;
|
|
959
|
+
}
|
|
954
960
|
/** A list of clan */
|
|
955
961
|
export interface ClanDescList {
|
|
956
962
|
/** A list of channel. */
|
|
@@ -8743,6 +8749,38 @@ export declare const ListClanDescRequest: {
|
|
|
8743
8749
|
cursor?: string | undefined;
|
|
8744
8750
|
} & { [K_1 in Exclude<keyof I_1, keyof ListClanDescRequest>]: never; }>(object: I_1): ListClanDescRequest;
|
|
8745
8751
|
};
|
|
8752
|
+
export declare const ListClanUnreadMsgIndicatorRequest: {
|
|
8753
|
+
encode(message: ListClanUnreadMsgIndicatorRequest, writer?: _m0.Writer): _m0.Writer;
|
|
8754
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListClanUnreadMsgIndicatorRequest;
|
|
8755
|
+
fromJSON(object: any): ListClanUnreadMsgIndicatorRequest;
|
|
8756
|
+
toJSON(message: ListClanUnreadMsgIndicatorRequest): unknown;
|
|
8757
|
+
create<I extends {
|
|
8758
|
+
clan_id?: string | undefined;
|
|
8759
|
+
} & {
|
|
8760
|
+
clan_id?: string | undefined;
|
|
8761
|
+
} & { [K in Exclude<keyof I, "clan_id">]: never; }>(base?: I | undefined): ListClanUnreadMsgIndicatorRequest;
|
|
8762
|
+
fromPartial<I_1 extends {
|
|
8763
|
+
clan_id?: string | undefined;
|
|
8764
|
+
} & {
|
|
8765
|
+
clan_id?: string | undefined;
|
|
8766
|
+
} & { [K_1 in Exclude<keyof I_1, "clan_id">]: never; }>(object: I_1): ListClanUnreadMsgIndicatorRequest;
|
|
8767
|
+
};
|
|
8768
|
+
export declare const ListClanUnreadMsgIndicatorResponse: {
|
|
8769
|
+
encode(message: ListClanUnreadMsgIndicatorResponse, writer?: _m0.Writer): _m0.Writer;
|
|
8770
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListClanUnreadMsgIndicatorResponse;
|
|
8771
|
+
fromJSON(object: any): ListClanUnreadMsgIndicatorResponse;
|
|
8772
|
+
toJSON(message: ListClanUnreadMsgIndicatorResponse): unknown;
|
|
8773
|
+
create<I extends {
|
|
8774
|
+
has_unread_message?: boolean | undefined;
|
|
8775
|
+
} & {
|
|
8776
|
+
has_unread_message?: boolean | undefined;
|
|
8777
|
+
} & { [K in Exclude<keyof I, "has_unread_message">]: never; }>(base?: I | undefined): ListClanUnreadMsgIndicatorResponse;
|
|
8778
|
+
fromPartial<I_1 extends {
|
|
8779
|
+
has_unread_message?: boolean | undefined;
|
|
8780
|
+
} & {
|
|
8781
|
+
has_unread_message?: boolean | undefined;
|
|
8782
|
+
} & { [K_1 in Exclude<keyof I_1, "has_unread_message">]: never; }>(object: I_1): ListClanUnreadMsgIndicatorResponse;
|
|
8783
|
+
};
|
|
8746
8784
|
export declare const ClanDescList: {
|
|
8747
8785
|
encode(message: ClanDescList, writer?: _m0.Writer): _m0.Writer;
|
|
8748
8786
|
decode(input: _m0.Reader | Uint8Array, length?: number): ClanDescList;
|